fuzziqersoftware / resource_dasm

Classic Mac OS resource fork and application disassembler, with reverse-engineering tools for specific applications
MIT License
114 stars 13 forks source link

Support for CDRV resources? #77

Closed gingerbeardman closed 7 months ago

gingerbeardman commented 7 months ago

there's one in: https://macintoshgarden.org/apps/finderhack

they seem to be code resources.

fuzziqersoftware commented 7 months ago

I suspect CDRV is a nonstandard alias for DRVR - the code in INIT 10 looks like it just copies the contents of the CDRV to an allocated block in the system heap, then calls DrvrInstall on it. I've added an alias in resource_dasm anyway, so it should now disassemble just like a DRVR.

gingerbeardman commented 7 months ago

Thanks!

That was my thinking, that it was some sort of "copy protection" or method of obfuscation.

gingerbeardman commented 7 months ago

Hmm, using today's latest binaries I am still getting a BIN from the CDRV, rather than TXT decompilation?

edit: Oh, LOL, the latest release binaries are exactly a year old today! 🥳

built my own binaries for success. cheers!

fuzziqersoftware commented 7 months ago

It should work if you build from master; I didn't build a new release (yet). In the meantime, you should be able to get CDRV disassembly by using the option --copy-handler=DRVR:CDRV (which is essentially what my change does).

Edit: Didn't see your edit :) Glad it works for you now.