46 bool uneraseDllName(IMAGE_IMPORT_DESCRIPTOR* lib_desc,
const std::string &dll_name);
55 bool writeFoundDllName(IMAGE_IMPORT_DESCRIPTOR* lib_desc,
const std::string &dll_name);
66 template <
typename FIELD_T,
typename IMAGE_THUNK_DATA_T>
68 IN
const FIELD_T ordinal_flag,
69 IN std::map<ULONGLONG, std::set<ExportedFunc>> &addr_to_func,
73 template <
typename FIELD_T>
77 const FIELD_T ordinal_flag,
78 std::map<ULONGLONG, std::set<ExportedFunc>> &addr_to_func
87 template <
typename FIELD_T,
typename IMAGE_THUNK_DATA_T>
Functions related to finding caves in the loaded PE file.
bool writeFoundDllName(IMAGE_IMPORT_DESCRIPTOR *lib_desc, const std::string &dll_name)
ImportsUneraser(PVOID _modulePtr, size_t _moduleSize)
bool fillImportNames(IN OUT IMAGE_IMPORT_DESCRIPTOR *lib_desc, IN const FIELD_T ordinal_flag, IN std::map< ULONGLONG, std::set< ExportedFunc > > &addr_to_func, OUT OPTIONAL ImpsNotCovered *not_covered)
bool uneraseDllName(IMAGE_IMPORT_DESCRIPTOR *lib_desc, const std::string &dll_name)
bool writeFoundFunction(IMAGE_THUNK_DATA_T *desc, const FIELD_T ordinal_flag, const ExportedFunc &foundFunc)
bool uneraseDllImports(IN OUT IMAGE_IMPORT_DESCRIPTOR *lib_desc, IN ImportedDllCoverage &dllCoverage, OUT OPTIONAL ImpsNotCovered *not_covered)
bool findNameInBinaryAndFill(IMAGE_IMPORT_DESCRIPTOR *lib_desc, LPVOID call_via_ptr, LPVOID thunk_ptr, const FIELD_T ordinal_flag, std::map< ULONGLONG, std::set< ExportedFunc > > &addr_to_func)
Functions and classes responsible for fixing Import Table. A definition of ImportedDllCoverage class.
bool is64bit(IN const BYTE *pe_buffer)