MCPcopy Create free account
hub / github.com/d35ha/CallObfuscator / get_dos_header

Method get_dos_header

src/load.cpp:215–222  ·  view source on GitHub ↗

Verify and get the dos header.

Source from the content-addressed store, hash-verified

213
214// Verify and get the dos header.
215BOOL cobf::get_dos_header(PIMAGE_DOS_HEADER& dos_hdr)
216{
217 // Verifing the dos header.
218 dos_hdr = (PIMAGE_DOS_HEADER)this->pe_rawf.data();
219 if (sizeof(*dos_hdr) > this->pe_rawf.size() ||
220 dos_hdr->e_magic != IMAGE_DOS_SIGNATURE) return FALSE;
221 return TRUE;
222};
223
224// Verify and get the nt headers.
225BOOL cobf::get_nt_headers(PIMAGE_DOS_HEADER dos_hdr, PIMAGE_NT_HEADERS& nt_hdrs)

Callers 1

load_peMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected