miasm
Reverse engineering framework
miasm.loader.pe_init.PE Class Reference
Inheritance diagram for miasm.loader.pe_init.PE:
Collaboration diagram for miasm.loader.pe_init.PE:

Public Member Functions

def __init__ (self, pestr=None, loadfrommem=False, parse_resources=True, parse_delay=True, parse_reloc=True, wsize=32, **kwargs)
 
def isPE (self)
 
def parse_content (self, parse_resources=True, parse_delay=True, parse_reloc=True)
 
def resize (self, old, new)
 
def __getitem__ (self, item)
 
def __setitem__ (self, item, data)
 
def getsectionbyrva (self, rva)
 
def getsectionbyvad (self, vad)
 
def getsectionbyoff (self, off)
 
def getsectionbyname (self, name)
 
def is_rva_ok (self, rva)
 
def rva2off (self, rva)
 
def off2rva (self, off)
 
def virt2rva (self, addr)
 
def rva2virt (self, rva)
 
def virt2off (self, addr)
 
def off2virt (self, off)
 
def is_in_virt_address (self, addr)
 
def get_drva (self)
 
def get_rva (self)
 
def get_virt (self)
 
def build_content (self)
 
def __bytes__ (self)
 
def __str__ (self)
 
def export_funcs (self)
 
def reloc_to (self, imgbase)
 

Public Attributes

 img_rva
 
 Doshdr
 
 NTsig
 
 Coffhdr
 
 Opthdr
 
 NThdr
 
 SHList
 
 DirImport
 
 DirExport
 
 DirDelay
 
 DirReloc
 
 DirRes
 
 DirTls
 
 loadfrommem
 

Static Public Attributes

 content = ContentManager()
 

Properties

 drva = property(get_drva)
 
 rva = property(get_rva)
 
 virt = property(get_virt)
 

Constructor & Destructor Documentation

◆ __init__()

def miasm.loader.pe_init.PE.__init__ (   self,
  pestr = None,
  loadfrommem = False,
  parse_resources = True,
  parse_delay = True,
  parse_reloc = True,
  wsize = 32,
**  kwargs 
)

Member Function Documentation

◆ __bytes__()

def miasm.loader.pe_init.PE.__bytes__ (   self)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __getitem__()

def miasm.loader.pe_init.PE.__getitem__ (   self,
  item 
)

◆ __setitem__()

def miasm.loader.pe_init.PE.__setitem__ (   self,
  item,
  data 
)

◆ __str__()

def miasm.loader.pe_init.PE.__str__ (   self)
Here is the call graph for this function:

◆ build_content()

def miasm.loader.pe_init.PE.build_content (   self)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ export_funcs()

def miasm.loader.pe_init.PE.export_funcs (   self)
Here is the call graph for this function:

◆ get_drva()

def miasm.loader.pe_init.PE.get_drva (   self)

◆ get_rva()

def miasm.loader.pe_init.PE.get_rva (   self)

◆ get_virt()

def miasm.loader.pe_init.PE.get_virt (   self)

◆ getsectionbyname()

def miasm.loader.pe_init.PE.getsectionbyname (   self,
  name 
)

◆ getsectionbyoff()

def miasm.loader.pe_init.PE.getsectionbyoff (   self,
  off 
)
Here is the caller graph for this function:

◆ getsectionbyrva()

def miasm.loader.pe_init.PE.getsectionbyrva (   self,
  rva 
)
Here is the caller graph for this function:

◆ getsectionbyvad()

def miasm.loader.pe_init.PE.getsectionbyvad (   self,
  vad 
)
Here is the call graph for this function:

◆ is_in_virt_address()

def miasm.loader.pe_init.PE.is_in_virt_address (   self,
  addr 
)
Here is the call graph for this function:

◆ is_rva_ok()

def miasm.loader.pe_init.PE.is_rva_ok (   self,
  rva 
)
Here is the call graph for this function:

◆ isPE()

def miasm.loader.pe_init.PE.isPE (   self)

◆ off2rva()

def miasm.loader.pe_init.PE.off2rva (   self,
  off 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ off2virt()

def miasm.loader.pe_init.PE.off2virt (   self,
  off 
)
Here is the call graph for this function:

◆ parse_content()

def miasm.loader.pe_init.PE.parse_content (   self,
  parse_resources = True,
  parse_delay = True,
  parse_reloc = True 
)

◆ reloc_to()

def miasm.loader.pe_init.PE.reloc_to (   self,
  imgbase 
)

◆ resize()

def miasm.loader.pe_init.PE.resize (   self,
  old,
  new 
)

◆ rva2off()

def miasm.loader.pe_init.PE.rva2off (   self,
  rva 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rva2virt()

def miasm.loader.pe_init.PE.rva2virt (   self,
  rva 
)
Here is the caller graph for this function:

◆ virt2off()

def miasm.loader.pe_init.PE.virt2off (   self,
  addr 
)
Return offset of virtual address @addr
Here is the call graph for this function:

◆ virt2rva()

def miasm.loader.pe_init.PE.virt2rva (   self,
  addr 
)
Return rva of virtual address @addr; None if addr is below ImageBase
Here is the caller graph for this function:

Member Data Documentation

◆ Coffhdr

miasm.loader.pe_init.PE.Coffhdr

◆ content

miasm.loader.pe_init.PE.content = ContentManager()
static

◆ DirDelay

miasm.loader.pe_init.PE.DirDelay

◆ DirExport

miasm.loader.pe_init.PE.DirExport

◆ DirImport

miasm.loader.pe_init.PE.DirImport

◆ DirReloc

miasm.loader.pe_init.PE.DirReloc

◆ DirRes

miasm.loader.pe_init.PE.DirRes

◆ DirTls

miasm.loader.pe_init.PE.DirTls

◆ Doshdr

miasm.loader.pe_init.PE.Doshdr

◆ img_rva

miasm.loader.pe_init.PE.img_rva

◆ loadfrommem

miasm.loader.pe_init.PE.loadfrommem

◆ NThdr

miasm.loader.pe_init.PE.NThdr

◆ NTsig

miasm.loader.pe_init.PE.NTsig

◆ Opthdr

miasm.loader.pe_init.PE.Opthdr

◆ SHList

miasm.loader.pe_init.PE.SHList

Property Documentation

◆ drva

miasm.loader.pe_init.PE.drva = property(get_drva)
static

◆ rva

miasm.loader.pe_init.PE.rva = property(get_rva)
static

◆ virt

miasm.loader.pe_init.PE.virt = property(get_virt)
static

The documentation for this class was generated from the following file: