14 std::size_t
len =
str.length();
17 for (
size_t k =
len;
k != 0;
k--) {
25 if (
c ==
'\\' ||
c ==
'/') {
41 while ((*
fPtr >=
'a' && *
fPtr <=
'z')
66 std::size_t
len =
str.length();
67 std::size_t
ext =
str.find_last_of(
".");
99 if (dllName.length() == 0 || funcName.length() == 0) {
102 std::transform(dllName.begin(), dllName.end(), dllName.begin(),
tolower);
103 return dllName +
"." + funcName;
138 std::cerr <<
"Invalid function data" << std::endl;
158 if (
name.length() == 0) {
167 if (!
func1.isByOrdinal && !
func2.isByOrdinal) {
182 if (
ext.length() > 3) {
186 for (
size_t j = 0;
j <
ext.length();
j++) {
196 size_t len =
str.length();
239 return "[Invalid func]";
static bool isTheSameFunc(const peconv::ExportedFunc &func1, const peconv::ExportedFunc &func2)
Compares functions' names. If function is defined by an ordinal, compares ordinals....
std::string nameToString() const
static bool isTheSameDllName(const peconv::ExportedFunc &func1, const peconv::ExportedFunc &func2)
Compares functions' DLL names.
static bool isTheSameFuncName(const peconv::ExportedFunc &func1, const peconv::ExportedFunc &func2)
Compares functions' names. If function is defined by an ordinal, compares ordinals....
static std::string formatName(std::string name)
std::string toString() const
bool parse_delayed_desc(BYTE *modulePtr, const size_t moduleSize, const ULONGLONG img_base, LPSTR lib_name, const T_FIELD ordinal_flag, IMAGE_DELAYLOAD_DESCRIPTOR *desc, peconv::t_function_resolver *func_resolver)
A definition of ExportedFunc class - used for storing the details of the exported function....
Functions related to operations on files. Wrappers for read/write.
bool is_ordinal_string(const std::string &str)
std::string ordinal_to_string(DWORD func_ordinal)
size_t forwarder_name_len(BYTE *fPtr)
std::string get_func_name(const std::string &str)
bool is_valid_extension(const std::string &ext)
std::string remove_module_extension(IN const std::string str)
std::string format_dll_func(const std::string &str)
DWORD ordinal_string_to_val(const std::string &str)
std::string get_dll_shortname(const std::string &str)
size_t find_extension_pos(IN const std::string str)
std::string get_file_name(IN const std::string full_path)