MCPcopy Create free account
hub / github.com/changeofpace/Self-Remapping-Code / GetPeSectionByName

Function GetPeSectionByName

Self-Remapping Code/pe_header.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48const PIMAGE_SECTION_HEADER GetPeSectionByName(const PE_HEADER& HeaderData, const char* SectionName)
49{
50 for (auto section : HeaderData.sectionHeaders)
51 if (!strncmp(PCHAR(section->Name), SectionName, 8))
52 return section;
53 return 0;
54}
55
56DWORD GetSizeOfImage(PVOID BaseAddress)
57{

Callers 3

RemapSelfImageMethod · 0.85
ValidateSectionAlignmentFunction · 0.85
TestVirtualProtectFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestVirtualProtectFunction · 0.68