libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
Functions
fix_imports.cpp File Reference
#include "peconv/fix_imports.h"
#include "peconv/imports_uneraser.h"
#include "peconv/file_util.h"
#include <iostream>
#include <algorithm>

Go to the source code of this file.

Functions

template<typename FIELD_T >
size_t find_addresses_to_fill (FIELD_T call_via, FIELD_T thunk_addr, LPVOID modulePtr, size_t moduleSize, IN const peconv::ExportsMapper &exportsMap, OUT std::set< ULONGLONG > &addresses)
 
std::set< std::stringget_all_dlls_exporting_function (ULONGLONG func_addr, const peconv::ExportsMapper &exportsMap)
 
std::set< std::stringget_dlls_intersection (const std::set< std::string > &dllNames, const std::set< std::string > &currDllNames)
 
std::string find_covering_dll (std::set< ULONGLONG > &addresses, const peconv::ExportsMapper &exportsMap)
 
size_t map_addresses_to_functions (std::set< ULONGLONG > &addresses, IN const std::string &chosenDll, IN const peconv::ExportsMapper &exportsMap, OUT std::map< ULONGLONG, std::set< ExportedFunc > > &addr_to_func, OUT std::set< ULONGLONG > &not_found)
 

Function Documentation

◆ find_addresses_to_fill()

template<typename FIELD_T >
size_t find_addresses_to_fill ( FIELD_T call_via,
FIELD_T thunk_addr,
LPVOID modulePtr,
size_t moduleSize,
IN const peconv::ExportsMapper & exportsMap,
OUT std::set< ULONGLONG > & addresses )

Definition at line 11 of file fix_imports.cpp.

Here is the call graph for this function:

◆ find_covering_dll()

std::string find_covering_dll ( std::set< ULONGLONG > & addresses,
const peconv::ExportsMapper & exportsMap )

Definition at line 77 of file fix_imports.cpp.

Here is the call graph for this function:

◆ get_all_dlls_exporting_function()

std::set< std::string > get_all_dlls_exporting_function ( ULONGLONG func_addr,
const peconv::ExportsMapper & exportsMap )

Definition at line 47 of file fix_imports.cpp.

Here is the call graph for this function:

◆ get_dlls_intersection()

std::set< std::string > get_dlls_intersection ( const std::set< std::string > & dllNames,
const std::set< std::string > & currDllNames )

Definition at line 66 of file fix_imports.cpp.

Here is the call graph for this function:

◆ map_addresses_to_functions()

size_t map_addresses_to_functions ( std::set< ULONGLONG > & addresses,
IN const std::string & chosenDll,
IN const peconv::ExportsMapper & exportsMap,
OUT std::map< ULONGLONG, std::set< ExportedFunc > > & addr_to_func,
OUT std::set< ULONGLONG > & not_found )

Definition at line 141 of file fix_imports.cpp.

Here is the call graph for this function: