Simple Loader (Resource Masking)

This is a Simple Loader with Free() that uses Crystal Palace's generate and xor instructions to mask the appended DLL and PICO. This project also demonstrates printf-style debugging too.

Project Files

Notes

loader.spec is an important player here. We use generate to generate an arbitrary sized key. We use xor to mask our appended assets before we link them. And, notice after each xor, we make use of preplen. This command prepends the [length] of our data to that data. This length hint is critical for unmasking the right amount of data.

loader.c implements the needed code to unmask the appended resources. The random XOR key is an appended resource too.

This program also demonstrates printf()-style debugging with dprintf from the Tradecraft Garden Library. The dprintf function uses OutputDebugStringA. You will need DbgView.exe from Microsoft's Sysinternals Suite to view this output.

License

This project is licensed under the BSD License.