miasm
Reverse engineering framework
graph_ir Namespace Reference

Classes

class  GraphIRForm
 
class  GraphMiasmIR
 

Functions

def label_init (self, name="", offset=None)
 
def label_str (self)
 
def color_irblock (irblock, ir_arch)
 
def is_addr_ro_variable (bs, addr, size)
 
def build_graph (start_addr, type_graph, simplify=False, dontmodstack=True, loadint=False, verbose=False)
 
def function_graph_ir ()
 

Variables

int TYPE_GRAPH_IR = 0
 
int TYPE_GRAPH_IRSSA = 1
 
int TYPE_GRAPH_IRSSAUNSSA = 2
 
int OPTION_GRAPH_CODESIMPLIFY = 1
 
int OPTION_GRAPH_DONTMODSTACK = 2
 
int OPTION_GRAPH_LOADMEMINT = 4
 
 fixedblocs
 
 name
 
 attrib
 
 offset
 

Function Documentation

◆ build_graph()

def graph_ir.build_graph (   start_addr,
  type_graph,
  simplify = False,
  dontmodstack = True,
  loadint = False,
  verbose = False 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ color_irblock()

def graph_ir.color_irblock (   irblock,
  ir_arch 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ function_graph_ir()

def graph_ir.function_graph_ir ( )
Here is the call graph for this function:

◆ is_addr_ro_variable()

def graph_ir.is_addr_ro_variable (   bs,
  addr,
  size 
)
Return True if address at @addr is a read-only variable.
WARNING: Quick & Dirty

@addr: integer representing the address of the variable
@size: size in bits

◆ label_init()

def graph_ir.label_init (   self,
  name = "",
  offset = None 
)

◆ label_str()

def graph_ir.label_str (   self)

Variable Documentation

◆ attrib

graph_ir.attrib

◆ fixedblocs

graph_ir.fixedblocs

◆ name

graph_ir.name

◆ offset

graph_ir.offset

◆ OPTION_GRAPH_CODESIMPLIFY

int graph_ir.OPTION_GRAPH_CODESIMPLIFY = 1

◆ OPTION_GRAPH_DONTMODSTACK

int graph_ir.OPTION_GRAPH_DONTMODSTACK = 2

◆ OPTION_GRAPH_LOADMEMINT

int graph_ir.OPTION_GRAPH_LOADMEMINT = 4

◆ TYPE_GRAPH_IR

int graph_ir.TYPE_GRAPH_IR = 0

◆ TYPE_GRAPH_IRSSA

int graph_ir.TYPE_GRAPH_IRSSA = 1

◆ TYPE_GRAPH_IRSSAUNSSA

int graph_ir.TYPE_GRAPH_IRSSAUNSSA = 2