MCPcopy Create free account
hub / github.com/connorjaydunn/BinaryShield / getNewSectionFileOffset

Method getNewSectionFileOffset

src/pe.cpp:243–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243DWORD PE::getNewSectionFileOffset()
244{
245 // return the next section's file offset
246 return align
247 (
248 pSectionHeader[pNtHeader->FileHeader.NumberOfSections - 1].PointerToRawData + pSectionHeader[pNtHeader->FileHeader.NumberOfSections - 1].SizeOfRawData,
249 pNtHeader->OptionalHeader.FileAlignment
250 );
251}
252
253void PE::redirectFunctionToVmTramp(Function function, DWORD vmTrampRva)
254{

Callers

nothing calls this directly

Calls 1

alignFunction · 0.85

Tested by

no test coverage detected