commonil module

Class

Description

binaryninja.commonil.AliasedVariableInstruction

binaryninja.commonil.Arithmetic

binaryninja.commonil.BaseILInstruction

binaryninja.commonil.BinaryOperation

binaryninja.commonil.Call

binaryninja.commonil.Carry

binaryninja.commonil.Comparison

binaryninja.commonil.Constant

binaryninja.commonil.ControlFlow

binaryninja.commonil.DoublePrecision

binaryninja.commonil.FloatingPoint

binaryninja.commonil.ILSourceLocation

ILSourceLocation is used to indicate where expressions were defined during the lifting process…

binaryninja.commonil.Intrinsic

binaryninja.commonil.Load

binaryninja.commonil.Localcall

binaryninja.commonil.Loop

binaryninja.commonil.Memory

binaryninja.commonil.Phi

binaryninja.commonil.RegisterStack

binaryninja.commonil.Return

binaryninja.commonil.SSA

binaryninja.commonil.SSAVariableInstruction

binaryninja.commonil.SetReg

binaryninja.commonil.SetVar

binaryninja.commonil.Signed

binaryninja.commonil.StackOperation

binaryninja.commonil.Store

binaryninja.commonil.Syscall

binaryninja.commonil.Tailcall

binaryninja.commonil.Terminal

binaryninja.commonil.UnaryOperation

binaryninja.commonil.VariableInstruction

AliasedVariableInstruction

class AliasedVariableInstruction[source]

Bases: VariableInstruction

__init__() None
Return type:

None

Arithmetic

class Arithmetic[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

BaseILInstruction

class BaseILInstruction[source]

Bases: object

__init__() None
Return type:

None

classmethod add_subgraph(graph: FlowGraph, nodes) FlowGraph[source]
Parameters:

graph (FlowGraph)

Return type:

FlowGraph

classmethod prepend_parent(graph: FlowGraph, node: FlowGraphNode, nodes={})[source]
Parameters:
classmethod show_hierarchy_graph()[source]

BinaryOperation

class BinaryOperation[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

Call

class Call[source]

Bases: ControlFlow

__init__() None
Return type:

None

Carry

class Carry[source]

Bases: Arithmetic

__init__() None
Return type:

None

Comparison

class Comparison[source]

Bases: BinaryOperation

__init__() None
Return type:

None

Constant

class Constant[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

ControlFlow

class ControlFlow[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

DoublePrecision

class DoublePrecision[source]

Bases: Arithmetic

__init__() None
Return type:

None

FloatingPoint

class FloatingPoint[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

ILSourceLocation

class ILSourceLocation[source]

Bases: object

ILSourceLocation is used to indicate where expressions were defined during the lifting process and gets propagated through the lifting process as an instruction’s address/source_operand properties. These are used for, for example, integer display types and expression addresses.

__init__(address: int, source_operand: int)[source]
Parameters:
  • address (int)

  • source_operand (int)

classmethod from_instruction(instr: LowLevelILInstruction | MediumLevelILInstruction | HighLevelILInstruction, il_direct: bool = True) ILSourceLocation[source]

Get the source location of a given instruction :param instr: Instruction, Low, Medium, or High level :return: Its location

Parameters:
Return type:

ILSourceLocation

address: int
il_direct: bool = True
source_hlil_instruction: HighLevelILInstruction | None = None
source_llil_instruction: LowLevelILInstruction | None = None
source_mlil_instruction: MediumLevelILInstruction | None = None
source_operand: int

Intrinsic

class Intrinsic[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

Load

class Load[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

Localcall

class Localcall[source]

Bases: Call

__init__() None
Return type:

None

Loop

class Loop[source]

Bases: ControlFlow

__init__() None
Return type:

None

Memory

class Memory[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

Phi

class Phi[source]

Bases: SSA

__init__() None
Return type:

None

RegisterStack

class RegisterStack[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

Return

class Return[source]

Bases: Terminal

__init__() None
Return type:

None

SSA

class SSA[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

SSAVariableInstruction

class SSAVariableInstruction[source]

Bases: SSA, VariableInstruction

__init__() None
Return type:

None

SetReg

class SetReg[source]

Bases: object

__init__() None
Return type:

None

SetVar

class SetVar[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

Signed

class Signed[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

StackOperation

class StackOperation[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

Store

class Store[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

Syscall

class Syscall[source]

Bases: Call

__init__() None
Return type:

None

Tailcall

class Tailcall[source]

Bases: Localcall

__init__() None
Return type:

None

Terminal

class Terminal[source]

Bases: ControlFlow

__init__() None
Return type:

None

UnaryOperation

class UnaryOperation[source]

Bases: BaseILInstruction

__init__() None
Return type:

None

VariableInstruction

class VariableInstruction[source]

Bases: BaseILInstruction

__init__() None
Return type:

None