Delphi
Given a file, we would like to check if it is a valid .Net assembly file.
How would you go about it?
1. A couple of words about the PE file format
.Net assemblies are valid PE files. A PE file consists of:
* MS-DOS header
* Stub Program
* PE file signature
* PE file header (This is where we position our stream)
* PE optional header
* Section headers (This is where the RVA15 is)
* Section bodies
The PE file header is where we position our file stream at byte offset 60. The 32 bits at this position are the...