Python

Architectures

Engine

class lief.assembly.Engine

Bases: object

This class interfaces the assembler/disassembler support

Instruction

Inheritance diagram of lief._lief.assembly.arm.Instruction, lief._lief.assembly.mips.Instruction, lief._lief.assembly.riscv.Instruction, lief._lief.assembly.ebpf.Instruction, lief._lief.assembly.x86.Instruction, lief._lief.assembly.Instruction, lief._lief.assembly.powerpc.Instruction, lief._lief.assembly.aarch64.Instruction
class lief.assembly.Instruction

Bases: object

This class represents an assembly instruction

property address int

Address of the instruction

property is_branch bool

True if the instruction is a branch

property is_call bool

True if the instruction is a call

property is_syscall bool

True if the instruction is a syscall

property is_terminator bool

True if the instruction marks the end of a basic block

property mnemonic str

Instruction mnemonic (e.g. br)

property raw bytes

Raw bytes of the current instruction

property size int

Size of the instruction in bytes

to_string(self) str

Representation of the current instruction in a pretty assembly way