I need a comparative DOS CPU tracer.
Like, load two copies of the same EXE, and run until the execution diverges
okay, so, the copy protection:
1. It checks for a sector that should not exist: Track 38, sector 113.
It's on a single-sided double density floppy (160kb), so there's supposed to be 8 sectors per track. But as we saw in this post:https://digipres.club/@foone/115011910054706753
this disk DOES have a sector 113.
Attached: 1 image oh hello copy protection, fancy meeting you here
so step one to bypassing the copy protection is hack that function to return "yes the sector exists".
EXCEPT THAT WON'T WORK. For two reasons. The first I'll get to later. The second is that the actual value of that sector matters, it gets read into memory and the bytes at 0x7-0x8 are checked later.
so I make sure those 2 bytes in memory are set. Easy!
the next phase of copy protection checks another sector: track 39, sector #25.
Another sector that doesn't exist, but it does, and it's 128 bytes long, and... they're doing evil things to DOS to make this readable. They switch the DOS format in memory, reset the disk IO system, and try to successfully read a 128byte sector. Somehow, apparently, this works?
trying to figure out this possible third layer of protection before I continue.
today's scores- emulators crashed:
1. DOSBOX: 2 times
2. MartyPC 1 time
3. 86Box: 0 times
but if you apply these two patches, it'll STILL not work!
But it won't work silently. It'll pretend to work.
But at the end of the game, it'll change your tombstone, and not save your score:
It'll call you "Software Pirate" and say you were killed by the "Copy Protection Mafia"
fun fact: this code is self modifying! not for copy-protection reasons, but for generic-interrupt reasons.
x86 doesn't have an INT r8 instruction, only INT imm8. So to generically call an interrupt, you have to either:
1. do a lookup to a bunch of INT 00h, INT 01h, INT 02h, INT 03h instructions, OR...
2. just rewrite your own code at runtime. overwrite the second byte of the "INT 00" instruction and bam, dynamic interrupts
Rude.
Attached: 1 video I don't post this lightly. It is for public safety: Melody Goad, age 26, formerly Melissa/Darius Goad, nickname "fuel" (formerly qeeg, and formerly "mooch") of Texas, lead developer of PC emulator "PCBox" (a fork of 86box) is a pedophile, who grooms and engages in sexual acts online with teenagers. I've unfriended her. Please ban her from your communities. She told me, confessing everything on video chat. I've recorded the calls. I will be reporting her to the FBI. This is her, in the photos.
@foone Remind me so much of old 68k protections on late ST games.
Jay it works. Wait, why can't I control anything on level 2...
37 bytes , I'm not sure if facetious or

Security via obscurity is a _type_ of security.
@foone True. Last time I wrote 16 bit DOS assembly was last year.
It was to detect sound cards.