MCPcopy Create free account
hub / github.com/NtQuery/Scylla / convertRVAToOffsetRelative

Method convertRVAToOffsetRelative

Scylla/PeParser.cpp:923–934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921}
922
923DWORD_PTR PeParser::convertRVAToOffsetRelative(DWORD_PTR dwRVA)
924{
925 for (WORD i = 0; i < getNumberOfSections(); i++)
926 {
927 if ((listPeSection[i].sectionHeader.VirtualAddress <= dwRVA) && ((listPeSection[i].sectionHeader.VirtualAddress + listPeSection[i].sectionHeader.Misc.VirtualSize) > dwRVA))
928 {
929 return (dwRVA - listPeSection[i].sectionHeader.VirtualAddress);
930 }
931 }
932
933 return 0;
934}
935
936DWORD_PTR PeParser::convertOffsetToRVAVector(DWORD_PTR dwOffset)
937{

Callers 2

patchNewIatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected