| 921 | } |
| 922 | |
| 923 | DWORD_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 | |
| 936 | DWORD_PTR PeParser::convertOffsetToRVAVector(DWORD_PTR dwOffset) |
| 937 | { |
no outgoing calls
no test coverage detected