[C++] Runtime Polymorphic Library (3.7x better)
Dear MPGH,
I have found this pretty interesting polymorphic code library on the *********, coded a while ago by someone named zoomgod.
Always intended to do something with it, ended up making my own polymorph system so here you go.
Instructions on how to use are at the top of the source file, should be pretty self-explanatory after a short read-through.
Better than PolyLoader because you don't need to compile it every time, and it just is so much better. Would love to see some more Polymorphic hacks on MPGH.
Source only, no viiri scans needed.
Code:
The Poly code portion uses "markers" you place in code, at startup you then call FCrypt_PolyTransform to replace them with random op codes
POLY_FAST
POLY_NORM
The difference between the two is the max number of instructions it will generate, to be honest there is no real speed difference between the two unless you have a ton of them being executed.
You can adjust marker length in PolyCode.h
Exported Functions:
On the fly function encrypting, just don't return without calling End :P
FCrypt_Begin( FARPROC FunctionAddress );
BOOL FCrypt_End( FARPROC FunctionAddress );
One shot functions can be wiped
BOOL FCrypt_Wipe( FARPROC FunctionAddress );
Call this once at startup to apply the poly code to markers.
VOID FCrypt_PolyTransform( DWORD start_offset, DWORD size );