Merging DLLs with a PE32 EXE without LoadLibrary
git clone https://github.com/ytk2128/dll-merger.git --recurse-submodules
- Open src/merger.sln
- Build Solution
dll-merger merges DLLs with a PE32 EXE and injects the loader code into the EXE and the injected loader loads DLLs manually without LoadLibrary, and thus the loaded DLLs are invisible in the PEB.
- Execute
merger.exe procexp.exe MyDLL.dll
procexp.exe_out.exe
is createdMyDLL.dll
is invisibly loaded in theprocexp.exe_out.exe