hackerb9
Experienced Member
I was trying to disassemble a program (3C5X9CFG.EXE) that turned out to be compressed with PKlite. I couldn't find any generic program for such decompression, but I did find a project that had routines that worked for a couple program (Keen Dreams and The Elder Scrolls Arena). So, I wrote up a little command line wrapper for those routines to make it easier for anyone in the future who needs to do this for disassembling or just searching for strings.
https://github.com/hackerb9/depklite
Note that I didn't make it create a full DOS executable since I didn't need that. It just generates a file with all the decompressed data (plus some header garbage). You don't need to specify any arguments (other than the .EXE file). If you wish, you can also change the byte offset of where the compressed data is (if you don't want the header garbage) or try turning on decryption (if it all looks like garbage). I wrote it for GNU/Linux, but I expect it will work anywhere that has gcc.
https://github.com/hackerb9/depklite
Note that I didn't make it create a full DOS executable since I didn't need that. It just generates a file with all the decompressed data (plus some header garbage). You don't need to specify any arguments (other than the .EXE file). If you wish, you can also change the byte offset of where the compressed data is (if you don't want the header garbage) or try turning on decryption (if it all looks like garbage). I wrote it for GNU/Linux, but I expect it will work anywhere that has gcc.