Hello,
i need to validate whether given binary is a PE file or not. e.g if I rename jS/HTML or .class files to .exe or .dll , it won't be PE files still then. Parsing PE these files would give me info about this problem. What field indicates that given binary is a valid PE file or not..?
Note : I have checked about "e_magic" field of FileHeader. It always gets populated in case of wrong PE files(i.e js/html/java/class files renamed to .dll/Exe) and does'nt says anything at all about validity of PE.
Regards Usman