Originally Posted by
Cypher
The next release of HadesMem (check out the link SKU posted -- thanks SKU!) will include a detour component. It's available now under /branches/v1.0.0 if you don't wish to wait for v1.6.0 Final.
I use BeaEngine to disassemble the target, and AsmJit to dynamically generate parts of the trampoline (where things like jump resolution etc are necessary). It's not 'complete' yet, but it should work better than most of the other free alternatives to Detours 3.0 (most don't do any instruction resolution at all, and some won't even do automatic trampoline generation).