This repository was created for the purposes of a question on reverseengineering.stackexchange.com.
loader.exeis compiled fromloader.cmy_dll.dllis compiled fromdllmain.c, hooks.cprog_cpp.exeis compiled frommain.cpp, yet compiling this manually would require to changePE_BASEindefs.handFUNC_ADDRinhooks.h, so a precompiled binary is provided. The files were precompiled usingmingw32-gccfor the C files andmingw32-g++for CPP.
Compilation process used for precompiled binaries:
loader.exe:mingw32-gcc -m32 -g -static src/loader.c -o bin/loader.exemy_dll.dll:mingw32-gcc -m32 -g -static -shared src/dllmain.c src/hooks.c -o bin/my_dll.dllprog_cpp.exe:mingw32-g++ -m32 -s src/main.cpp -o bin/prog_cpp.exe