| 46 | } |
| 47 | |
| 48 | const 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 | |
| 56 | DWORD GetSizeOfImage(PVOID BaseAddress) |
| 57 | { |
no outgoing calls