http://dl.dropbox.co...33/DLLCrypt.zip
It's a DLL that will encrypt other DLLs, carefully skipping over important portions of the PE header and the resource section, so that it keeps the version data and icons intact.
The example, while a little impractical (it just en/decrypts; doesn't try to load the resultant DLL or anything), should be enough to get the general gist of using the DLL. The UltraCrypt DLL included with the package is the encryption target for the example program.
If it doesn't work in a specific case, then please PM me a bug report

(This should also work for EXEs, but the EXE will crash on run until it's decrypted again.)
Update - Now works for non-executable files, in a separate function.
Edited by score_under, 31 July 2010 - 09:58 PM.