Malware Analysis Professional: VA/RVA/Offset & PE File Format
Malware Analysis Professional: VA/RVA/Offset & PE File Format
Professional
4.2 VA/RVA/Offset
4.5 Conclusion
Introduction
VA/RVA/Offset
VA_1 = 0x00400000
VA_2 = 0x00401000
RVA of VA_2 = VA_2 - VA_1 = 0x00001000
Overview of the
Portable Executable
Format (PE) [1]
The first bytes of the PE file are, indeed, the traditional MS-
DOS header, called also IMAGE_DOS_HEADER.
This structure is
demonstrated in the figure
here. Figure 4.3 IMAGE_OPTIONAL_HEADER structure
MAPv1: Section 02, Module 04 - Caendra Inc. © 2020 | p.22
4.3.2.2 IMAGE_OPTIONAL_HEADER Structure [4]
Conclusion
IMAGE_NT_HEADERS structure
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680336%28v=vs.85%29.aspx
IMAGE_FILE_HEADER structure
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680313%28v=vs.85%29.aspx
IMAGE_OPTIONAL_HEADER structure
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680339%28v=vs.85%29.aspx
IMAGE_DATA_DIRECTORY structure
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680305%28v=vs.85%29.aspx