angr.block

class angr.block.DisassemblerBlock

Bases: object

Helper class to represent a block of disassembled target architecture instructions

__init__(addr, insns, thumb, arch)
addr
insns
thumb
arch
pp()
class angr.block.DisassemblerInsn

Bases: object

Helper class to represent a disassembled target architecture instruction

property size: int
property address: int
property mnemonic: str
property op_str: str
class angr.block.CapstoneBlock

Bases: DisassemblerBlock

Deep copy of the capstone blocks, which have serious issues with having extended lifespans outside of capstone itself

class angr.block.CapstoneInsn

Bases: DisassemblerInsn

Represents a capstone instruction.

__init__(capstone_insn)
insn
property size: int
property address: int
property mnemonic: str
property op_str: str
class angr.block.PCodeBlock

Bases: DisassemblerBlock

Deep copy of the pcode blocks

class angr.block.PCodeInsn

Bases: DisassemblerInsn

Represents a capstone instruction.

__init__(pcode_insn)
insn
property size: int
property address: int
property mnemonic: str
property op_str: str
class angr.block.Block

Bases: Serializable

Represents a basic block in a binary or a program.

BLOCK_MAX_SIZE = 4096
__init__(addr, project=None, arch=None, size=None, max_size=None, byte_string=None, thumb=False, backup_state=None, extra_stop_points=None, opt_level=None, num_inst=None, traceflags=0, strict_block_end=None, collect_data_refs=False, cross_insn_opt=True, load_from_ro_regions=False, const_prop=False, initial_regs=None, skip_stmts=False)
Parameters:

arch (Arch | None)

arch
addr
thumb
size
pp(**kwargs)
set_initial_regs()
static reset_initial_regs()
property vex: IRSB | IRSB
property vex_nostmt
property disassembly: DisassemblerBlock

Provide a disassembly object using whatever disassembler is available

property capstone: CapstoneBlock
property pcode: PCodeBlock
property codenode
property bytes: bytes | None
property instructions: int
property instruction_addrs
class angr.block.SootBlock

Bases: object

Represents a Soot IR basic block.

__init__(addr, *, project, arch)
Parameters:
property soot
property size
property codenode