Home

Awesome

🔗 dll-merger

Merging DLLs with a PE32 EXE without LoadLibrary

Building the project

Principle of merging

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.

executable before merging executable after merging

Demonstration

  1. Execute merger.exe procexp.exe MyDLL.dll
  2. procexp.exe_out.exe is created
  3. MyDLL.dll is invisibly loaded in the procexp.exe_out.exe <img width="80%" src="https://user-images.githubusercontent.com/60180255/152683217-81a0c00f-8a66-4659-81c4-91ba8ec4817a.PNG"/>