|
cobf
PE imports obfuscator
|
#include <cobf.hpp>
Public Member Functions | |
| cobf (string pe_path) | |
| Constructor for the obfuscation module. More... | |
| cobf_error | load_pe () |
| Load the specified PE from disk. More... | |
| cobf_error | unload_pe () |
| Unload the specified PE from memory. More... | |
| cobf_error | obf_sym (string dll_name, string sym_name, string obf_name) |
| Obfuscate one symbol (name) with another (name). More... | |
| cobf_error | obf_sym (string dll_name, string sym_name, WORD obf_ord) |
| Obfuscate one symbol (name) with another (ordinal). More... | |
| cobf_error | obf_sym (string dll_name, WORD sym_ord, WORD obf_ord) |
| Obfuscate one symbol (ordinal) with another (ordinal). More... | |
| cobf_error | obf_sym (string dll_name, WORD sym_ord, string obf_name) |
| Obfuscate one symbol (ordinal) with another (name). More... | |
| cobf_error | unobf_sym (string dll_name, string sym_name) |
| Unobfuscate one symbol (name). More... | |
| cobf_error | unobf_sym (string dll_name, WORD sym_ord) |
| Unobfuscate one symbol (ordinal). More... | |
| cobf_error | generate (string out_file) |
| Generate the obfuscated PE. More... | |
The main obfuscator class, holds the needed load, configure and obfuscate the input PE.
| cobf::cobf | ( | string | pe_path | ) |
| cobf_error cobf::generate | ( | string | out_file | ) |
Generate the obfuscated PE.
| [in] | out_file | The file to write to. |
Definition at line 78 of file obfuscate.cpp.
| cobf_error cobf::load_pe | ( | ) |
Load the specified PE from disk.
| cobf_error cobf::obf_sym | ( | string | dll_name, |
| string | sym_name, | ||
| string | obf_name | ||
| ) |
Obfuscate one symbol (name) with another (name).
| [in] | dll_name | The dll name. |
| [in] | sym_name | The symbol to unobfuscate (name). |
| [in] | obf_name | The new symbol to obfuscate with (name). |
Definition at line 32 of file obfuscate.cpp.
| cobf_error cobf::obf_sym | ( | string | dll_name, |
| string | sym_name, | ||
| WORD | obf_ord | ||
| ) |
Obfuscate one symbol (name) with another (ordinal).
| [in] | dll_name | The dll name. |
| [in] | sym_name | The symbol to unobfuscate (name). |
| [in] | obf_ord | The new symbol to obfuscate with (ordinal). |
Definition at line 37 of file obfuscate.cpp.
| cobf_error cobf::obf_sym | ( | string | dll_name, |
| WORD | sym_ord, | ||
| string | obf_name | ||
| ) |
Obfuscate one symbol (ordinal) with another (name).
| [in] | dll_name | The dll name. |
| [in] | sym_ord | The symbol to unobfuscate (ordinal). |
| [in] | obf_name | The new symbol to obfuscate with (name). |
Definition at line 47 of file obfuscate.cpp.
| cobf_error cobf::obf_sym | ( | string | dll_name, |
| WORD | sym_ord, | ||
| WORD | obf_ord | ||
| ) |
Obfuscate one symbol (ordinal) with another (ordinal).
| [in] | dll_name | The dll name. |
| [in] | sym_ord | The symbol to unobfuscate (ordinal). |
| [in] | obf_ord | The new symbol to obfuscate with (ordinal). |
Definition at line 42 of file obfuscate.cpp.
| cobf_error cobf::unload_pe | ( | ) |
| cobf_error cobf::unobf_sym | ( | string | dll_name, |
| string | sym_name | ||
| ) |
Unobfuscate one symbol (name).
| [in] | dll_name | The dll name. |
| [in] | sym_name | The symbol to unobfuscate (name). |
Definition at line 68 of file obfuscate.cpp.
| cobf_error cobf::unobf_sym | ( | string | dll_name, |
| WORD | sym_ord | ||
| ) |
Unobfuscate one symbol (ordinal).
| [in] | dll_name | The dll name. |
| [in] | sym_ord | The symbol to unobfuscate (ordinal). |
Definition at line 73 of file obfuscate.cpp.