miasm
Reverse engineering framework
miasm.loader.pe Namespace Reference

Classes

class  Coffhdr
 
class  Delaydesc_e
 
class  DescName
 
class  DirDelay
 
class  DirExport
 
class  DirImport
 
class  DirReloc
 
class  DirRes
 
class  DirTls
 
class  Doshdr
 
class  ExpDesc_e
 
class  ImpDesc_e
 
class  ImportByName
 
class  InvalidOffset
 
class  NThdr
 
class  NTsig
 
class  Optehdr
 
class  Opthdr32
 
class  Opthdr64
 
class  Ordinal
 
class  Rel
 
class  Reloc
 
class  ResDataEntry
 
class  ResDesc_e
 
class  ResEntry
 
class  Rva
 
class  Rva32
 
class  Shdr
 
class  SHList
 
class  struct_array
 
class  SUnicode
 
class  Symb
 

Functions

def get_optehdr_num (nthdr)
 

Variables

 log = logging.getLogger("pepy")
 
 console_handler = logging.StreamHandler()
 
int DIRECTORY_ENTRY_EXPORT = 0
 
int DIRECTORY_ENTRY_IMPORT = 1
 
int DIRECTORY_ENTRY_RESOURCE = 2
 
int DIRECTORY_ENTRY_EXCEPTION = 3
 
int DIRECTORY_ENTRY_SECURITY = 4
 
int DIRECTORY_ENTRY_BASERELOC = 5
 
int DIRECTORY_ENTRY_DEBUG = 6
 
int DIRECTORY_ENTRY_COPYRIGHT = 7
 
int DIRECTORY_ENTRY_GLOBALPTR = 8
 
int DIRECTORY_ENTRY_TLS = 9
 
int DIRECTORY_ENTRY_LOAD_CONFIG = 10
 
int DIRECTORY_ENTRY_BOUND_IMPORT = 11
 
int DIRECTORY_ENTRY_IAT = 12
 
int DIRECTORY_ENTRY_DELAY_IMPORT = 13
 
int DIRECTORY_ENTRY_COM_DESCRIPTOR = 14
 
int DIRECTORY_ENTRY_RESERVED = 15
 
int RT_CURSOR = 1
 
int RT_BITMAP = 2
 
int RT_ICON = 3
 
int RT_MENU = 4
 
int RT_DIALOG = 5
 
int RT_STRING = 6
 
int RT_FONTDIR = 7
 
int RT_FONT = 8
 
int RT_ACCELERATOR = 9
 
int RT_RCDATA = 10
 
int RT_MESSAGETABLE = 11
 
int RT_GROUP_CURSOR = 12
 
int RT_GROUP_ICON = 14
 
int RT_VERSION = 16
 
int RT_DLGINCLUDE = 17
 
int RT_PLUGPLAY = 19
 
int RT_VXD = 20
 
int RT_ANICURSOR = 21
 
int RT_ANIICON = 22
 
int RT_HTML = 23
 
int RT_MANIFEST = 24
 
dictionary RT
 

Function Documentation

◆ get_optehdr_num()

def miasm.loader.pe.get_optehdr_num (   nthdr)

Variable Documentation

◆ console_handler

miasm.loader.pe.console_handler = logging.StreamHandler()

◆ DIRECTORY_ENTRY_BASERELOC

int miasm.loader.pe.DIRECTORY_ENTRY_BASERELOC = 5

◆ DIRECTORY_ENTRY_BOUND_IMPORT

int miasm.loader.pe.DIRECTORY_ENTRY_BOUND_IMPORT = 11

◆ DIRECTORY_ENTRY_COM_DESCRIPTOR

int miasm.loader.pe.DIRECTORY_ENTRY_COM_DESCRIPTOR = 14

◆ DIRECTORY_ENTRY_COPYRIGHT

int miasm.loader.pe.DIRECTORY_ENTRY_COPYRIGHT = 7

◆ DIRECTORY_ENTRY_DEBUG

int miasm.loader.pe.DIRECTORY_ENTRY_DEBUG = 6

◆ DIRECTORY_ENTRY_DELAY_IMPORT

int miasm.loader.pe.DIRECTORY_ENTRY_DELAY_IMPORT = 13

◆ DIRECTORY_ENTRY_EXCEPTION

int miasm.loader.pe.DIRECTORY_ENTRY_EXCEPTION = 3

◆ DIRECTORY_ENTRY_EXPORT

int miasm.loader.pe.DIRECTORY_ENTRY_EXPORT = 0

◆ DIRECTORY_ENTRY_GLOBALPTR

int miasm.loader.pe.DIRECTORY_ENTRY_GLOBALPTR = 8

◆ DIRECTORY_ENTRY_IAT

int miasm.loader.pe.DIRECTORY_ENTRY_IAT = 12

◆ DIRECTORY_ENTRY_IMPORT

int miasm.loader.pe.DIRECTORY_ENTRY_IMPORT = 1

◆ DIRECTORY_ENTRY_LOAD_CONFIG

int miasm.loader.pe.DIRECTORY_ENTRY_LOAD_CONFIG = 10

◆ DIRECTORY_ENTRY_RESERVED

int miasm.loader.pe.DIRECTORY_ENTRY_RESERVED = 15

◆ DIRECTORY_ENTRY_RESOURCE

int miasm.loader.pe.DIRECTORY_ENTRY_RESOURCE = 2

◆ DIRECTORY_ENTRY_SECURITY

int miasm.loader.pe.DIRECTORY_ENTRY_SECURITY = 4

◆ DIRECTORY_ENTRY_TLS

int miasm.loader.pe.DIRECTORY_ENTRY_TLS = 9

◆ log

miasm.loader.pe.log = logging.getLogger("pepy")

◆ RT

dictionary miasm.loader.pe.RT
Initial value:
1 = {
2  RT_CURSOR: "RT_CURSOR",
3  RT_BITMAP: "RT_BITMAP",
4  RT_ICON: "RT_ICON",
5  RT_MENU: "RT_MENU",
6  RT_DIALOG: "RT_DIALOG",
7  RT_STRING: "RT_STRING",
8  RT_FONTDIR: "RT_FONTDIR",
9  RT_FONT: "RT_FONT",
10  RT_ACCELERATOR: "RT_ACCELERATOR",
11  RT_RCDATA: "RT_RCDATA",
12  RT_MESSAGETABLE: "RT_MESSAGETABLE",
13  RT_GROUP_CURSOR: "RT_GROUP_CURSOR",
14  RT_GROUP_ICON: "RT_GROUP_ICON",
15  RT_VERSION: "RT_VERSION",
16  RT_DLGINCLUDE: "RT_DLGINCLUDE",
17  RT_PLUGPLAY: "RT_PLUGPLAY",
18  RT_VXD: "RT_VXD",
19  RT_ANICURSOR: "RT_ANICURSOR",
20  RT_ANIICON: "RT_ANIICON",
21  RT_HTML: "RT_HTML",
22  RT_MANIFEST: "RT_MANIFEST",
23 }

◆ RT_ACCELERATOR

int miasm.loader.pe.RT_ACCELERATOR = 9

◆ RT_ANICURSOR

int miasm.loader.pe.RT_ANICURSOR = 21

◆ RT_ANIICON

int miasm.loader.pe.RT_ANIICON = 22

◆ RT_BITMAP

int miasm.loader.pe.RT_BITMAP = 2

◆ RT_CURSOR

int miasm.loader.pe.RT_CURSOR = 1

◆ RT_DIALOG

int miasm.loader.pe.RT_DIALOG = 5

◆ RT_DLGINCLUDE

int miasm.loader.pe.RT_DLGINCLUDE = 17

◆ RT_FONT

int miasm.loader.pe.RT_FONT = 8

◆ RT_FONTDIR

int miasm.loader.pe.RT_FONTDIR = 7

◆ RT_GROUP_CURSOR

int miasm.loader.pe.RT_GROUP_CURSOR = 12

◆ RT_GROUP_ICON

int miasm.loader.pe.RT_GROUP_ICON = 14

◆ RT_HTML

int miasm.loader.pe.RT_HTML = 23

◆ RT_ICON

int miasm.loader.pe.RT_ICON = 3

◆ RT_MANIFEST

int miasm.loader.pe.RT_MANIFEST = 24

◆ RT_MENU

int miasm.loader.pe.RT_MENU = 4

◆ RT_MESSAGETABLE

int miasm.loader.pe.RT_MESSAGETABLE = 11

◆ RT_PLUGPLAY

int miasm.loader.pe.RT_PLUGPLAY = 19

◆ RT_RCDATA

int miasm.loader.pe.RT_RCDATA = 10

◆ RT_STRING

int miasm.loader.pe.RT_STRING = 6

◆ RT_VERSION

int miasm.loader.pe.RT_VERSION = 16

◆ RT_VXD

int miasm.loader.pe.RT_VXD = 20