lineardisassembly module

Class

Description

binaryninja.lineardisassembly.LinearDisassemblyLine

binaryninja.lineardisassembly.LinearViewCursor

binaryninja.lineardisassembly.LinearViewObject

binaryninja.lineardisassembly.LinearViewObjectIdentifier

class LinearDisassemblyLine[source]

Bases: object

__init__(line_type, func, block, contents)[source]
class LinearViewCursor[source]

Bases: object

__init__(root_object, handle=None)[source]
add_render_layer(layer: RenderLayer)[source]

Add a Render Layer to be applied to this cursor. Note that layers will be applied in the order in which they are added.

Parameters:

layer (RenderLayer) – Render Layer to add

static compare(a, b)[source]
duplicate()[source]
next()[source]
previous()[source]
remove_render_layer(layer: RenderLayer)[source]

Remove a Render Layer from being applied to this cursor

Parameters:

layer (RenderLayer) – Render Layer to remove

seek_to_address(addr)[source]
seek_to_begin()[source]
seek_to_end()[source]
seek_to_ordering_index(idx)[source]
seek_to_path(path, addr=None)[source]
property after_end
property before_begin
property current_object
property lines
property ordering_index
property ordering_index_total
property path
property path_objects
property render_layers: List[RenderLayer]

Get the list of Render Layers which will be applied to this cursor, at the end of calls to lines().

Returns:

List of Render Layers

property valid
class LinearViewObject[source]

Bases: object

__init__(handle, parent=None)[source]
child_for_address(addr)[source]
child_for_identifier(ident)[source]
child_for_ordering_index(idx)[source]
compare_children(a, b)[source]
static data_only(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static disassembly(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

get_lines(prev_obj, next_obj) List[LinearDisassemblyLine][source]
Return type:

List[LinearDisassemblyLine]

static hlil(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static hlil_ssa_form(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static language_representation(view: BinaryView, settings: DisassemblySettings | None = None, language: str = 'Pseudo C') LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static lifted_il(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static llil(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static llil_ssa_form(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static mlil(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static mlil_ssa_form(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static mmlil(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static mmlil_ssa_form(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

ordering_index_for_child(child)[source]
static single_function_disassembly(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_hlil(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_hlil_ssa_form(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_language_representation(func: Function, settings: DisassemblySettings | None = None, language: str = 'Pseudo C') LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_lifted_il(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_llil(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_llil_ssa_form(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_mlil(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_mlil_ssa_form(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_mmlil(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_mmlil_ssa_form(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

property cursor
property end
property first_child
property identifier
property last_child
property next
property ordering_index
property ordering_index_total
property parent
property previous
property start
class LinearViewObjectIdentifier[source]

Bases: object

__init__(name, start=None, end=None)[source]
property address
property end
property has_address
property has_range
property name
property start

LinearDisassemblyLine

class LinearDisassemblyLine[source]

Bases: object

__init__(line_type, func, block, contents)[source]

LinearViewCursor

class LinearViewCursor[source]

Bases: object

__init__(root_object, handle=None)[source]
add_render_layer(layer: RenderLayer)[source]

Add a Render Layer to be applied to this cursor. Note that layers will be applied in the order in which they are added.

Parameters:

layer (RenderLayer) – Render Layer to add

static compare(a, b)[source]
duplicate()[source]
next()[source]
previous()[source]
remove_render_layer(layer: RenderLayer)[source]

Remove a Render Layer from being applied to this cursor

Parameters:

layer (RenderLayer) – Render Layer to remove

seek_to_address(addr)[source]
seek_to_begin()[source]
seek_to_end()[source]
seek_to_ordering_index(idx)[source]
seek_to_path(path, addr=None)[source]
property after_end
property before_begin
property current_object
property lines
property ordering_index
property ordering_index_total
property path
property path_objects
property render_layers: List[RenderLayer]

Get the list of Render Layers which will be applied to this cursor, at the end of calls to lines().

Returns:

List of Render Layers

property valid

LinearViewObject

class LinearViewObject[source]

Bases: object

__init__(handle, parent=None)[source]
child_for_address(addr)[source]
child_for_identifier(ident)[source]
child_for_ordering_index(idx)[source]
compare_children(a, b)[source]
static data_only(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static disassembly(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

get_lines(prev_obj, next_obj) List[LinearDisassemblyLine][source]
Return type:

List[LinearDisassemblyLine]

static hlil(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static hlil_ssa_form(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static language_representation(view: BinaryView, settings: DisassemblySettings | None = None, language: str = 'Pseudo C') LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static lifted_il(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static llil(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static llil_ssa_form(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static mlil(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static mlil_ssa_form(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static mmlil(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static mmlil_ssa_form(view: BinaryView, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

ordering_index_for_child(child)[source]
static single_function_disassembly(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_hlil(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_hlil_ssa_form(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_language_representation(func: Function, settings: DisassemblySettings | None = None, language: str = 'Pseudo C') LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_lifted_il(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_llil(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_llil_ssa_form(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_mlil(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_mlil_ssa_form(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_mmlil(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

static single_function_mmlil_ssa_form(func: Function, settings: DisassemblySettings | None = None) LinearViewObject[source]
Parameters:
Return type:

LinearViewObject

property cursor
property end
property first_child
property identifier
property last_child
property next
property ordering_index
property ordering_index_total
property parent
property previous
property start

LinearViewObjectIdentifier

class LinearViewObjectIdentifier[source]

Bases: object

__init__(name, start=None, end=None)[source]
property address
property end
property has_address
property has_range
property name
property start