1kPack v0.9c - An experimental packer for Windows 1k effects
Written by Franck "hitchhikr" Charlet / Neural

-------

How to use:

All you have to worry about is to insert your code in the framework.asm
file than assemble it with nasm and pack it with 1kpack.

The packer command line itself needs 3 arguments:

1. A depacker file.
2. A binary Input file (typically a modified and assembled framework.asm).
3. An output file exectuable name (Optional).

2 depackers are provided, 1 for release purposes (depacker.bin),
the other one (bigger) for debugging purposes (depacker_debug.bin).

-------

About:

The basic principle is to use the zlib embedded inside each d3dx9 dlls
(via the png library) to depack a compressed stream (tweaked via 7zip).

The depacker/importer/stream header itself is relatively small
as it only takes 212 bytes (including the complete PE structure).

The imported dll (d3dx) is also used to extract the few APIs we need
in order to import the necessary functions to open a window and initialize
DirectX (the provided framework.asm file takes advantage of that
by peeking the functions addresses directly from the dll).

The functions in the framework.asm aren't imported by any hash method
because the code of such importer (+ the hash data) would take more
size than the way it is done now.

The result should work on Windows 2000, XP, Vista and Seven give slightly better
results than the public version of crinkler.

-------

Just keep in mind that this wasn't *thoroughly tested* & is still *experimental* software.

f.
