Download fulltext - DiVA Portal
Transcript
CHAPTER 2. BACKGROUND AND THEORY 31 • For which CPU architecture the file is intended. • The size of the application given in number of sections. • Characteristics, for example whether the file is an executable or a library. • Offset of entry point, which is where the executable code begins. • A checksum of the file; in executables this is often set to “0” (not used), while in a DLL or a driver it is set to the actual checksum. After the header, the files have a table that describes the different sections. Sections in PE files are used to discriminate between code, data, global data, debug information and so on. These sections are important in this context, as malware often modify existing or add new sections containing the malware code. Two important sections are the ones called “.idata” and “.edata”, which contain the import and export tables respectively. The first one contains a list of imported APIs12 , the latter all API functions made available to other executables. The section table also has a field called characteristics, which holds labels for the sections describing if they are readable, writable, executable and whether they contains data, code or other information. 12 In other words, this is the IAT described earlier.