48 bool uneraseDllName(IMAGE_IMPORT_DESCRIPTOR* lib_desc,
const std::string &dll_name);
57 bool writeFoundDllName(IMAGE_IMPORT_DESCRIPTOR* lib_desc,
const std::string &dll_name);
68 template <
typename FIELD_T,
typename IMAGE_THUNK_DATA_T>
70 IN
const FIELD_T ordinal_flag,
71 IN std::map<ULONGLONG, std::set<ExportedFunc>> &addr_to_func,
75 template <
typename FIELD_T>
79 const FIELD_T ordinal_flag,
80 std::map<ULONGLONG, std::set<ExportedFunc>> &addr_to_func
89 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)
virtual ~ImportsUneraser()
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)