The MS Signature is a special value that indicates to the Windows Loader that the executable file is valid. Historically, it's related to the developer's name.
This video provides a detailed explanation of the Portable Executable (PE) file structure, focusing on its critical components like the Import Directory Table (IDT), Import Address Table (IAT), and Relocation Table. The speaker emphasizes the importance of understanding PE files for reverse engineering, malware analysis, and cybersecurity.
The Relocation Table helps when a PE file is loaded at a different base address by allowing the loader to adjust addresses within the code. If the executable is loaded at an unexpected Image Base, the relocation table contains information indicating which addresses need to be modified. The system calculates a delta (new base minus old base) and adds this delta to the addresses listed in the relocation table to ensure they point to the correct locations in memory. This process corrects potentially invalid or non-functional addresses, resulting in a new, valid address.