10bool peconv::setup_exceptions(
IN BYTE* modulePtr,
IN size_t moduleSize)
12 if (moduleSize == 0) {
30 std::cout <<
"[+] Found exception table of: " << std::dec <<
except_max_count <<
" entries\n";
38#elif defined(_M_ARM64)
46 std::cout <<
"[+] Valid exception entries: " << std::dec <<
i <<
" entries\n";
50 std::cerr <<
"[-] None of the exceptions was valid\n";
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)
Functions related to Exceptions Table.
bool validate_ptr(IN const void *buffer_bgn, IN size_t buffer_size, IN const void *field_bgn, IN size_t field_size)
DWORD get_image_size(IN const BYTE *payload)
IMAGE_DATA_DIRECTORY * get_directory_entry(IN const BYTE *pe_buffer, IN DWORD dir_id, IN bool allow_empty=false)
Wrappers over various fields in the PE header. Read, write, parse PE headers.