RVA
Relative virtual address: a position inside a loaded program counted from its image base, used throughout PE headers.
In more detail
To read a PE file on disk, convert an RVA to a file offset using the section table: find the section whose address range contains it and add the difference to that section's raw data offset. Section headers give each section's virtual address and its raw offset in the file.
Related terms
- Portable Executable — The file format of Windows programs and libraries (.exe and .dll files), with headers that describe code, data and imported functions.
- import table — The part of a PE file that lists the DLLs and functions the program calls from Windows, such as VirtualAllocEx from kernel32.dll.
- file offset — The position of a byte in a file, counted from zero at the start.
- image base — The memory address where a program's executable file is loaded, recorded in its PE header.
Taught in
- Memory Forensics: Process Trees & Injection — Security Operations & Threat Hunting (SOC)
- Malware Triage: Hashes, Strings & Sandboxing — Security Operations & Threat Hunting (SOC)