Skip to content

Generate a new PDB file given a CodeDefender debug file, the original PDB, and the obfuscated PE file.

Notifications You must be signed in to change notification settings

codedefender-io/pdbgen3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This tool is used to generate a new PDB file for a PE file obfuscated by CodeDefender.

Example

Here is an example on how you use pdbgen3 to generate a PDB file for an obfuscated CodeDefender binary.

pdbgen3.exe --obf-pe=example/HelloWorld.obfuscated.exe --debug-file=example/HelloWorld.dbg --orig-pdb=example/HelloWorld.pdb --out-pdb=example/HelloWorld.obfuscated.pdb

This will generate a new pdb HelloWorld.obfuscated.pdb in the example/ folder.

Precompiled

You can download a pre-compiled version of this project instead of having to build this entire project. Head over to the github releases tab.

Building

This will generate cmake build folder. You can then go into build/ and open pdbgen2.sln. You need to have Visual Studios 2022 installed. It will take upwards of 30 minutes to configure, build, and install llvm.

cmake -B build -DLLVM_BUILD_TYPE=Release
# or
cmake -B build -DLLVM_BUILD_TYPE=Debug

Delete the build/ folder if you wish to switch between Release and Debug, then re-run the above command.

Debug File Format

This is just a binary file that contains the following format:

(start rva, end rva, orig rva)

The number of entries is equal to the size of omap file divided by 0xC.

Credits

About

Generate a new PDB file given a CodeDefender debug file, the original PDB, and the obfuscated PE file.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages