Get desktop application:
View/edit binary Protocol Buffers messages
map_addr_to_label: dict[tuple[int, int | None], CLabel]
Used in:
tuple's second element (block_idx); absent means None
CLabel node_id
Used in:
Used in: ,
ailment.Address = tuple[int, int | None]
Used in:
index into AilGraph.blocks
When true, the edge's data is AilGraph.default_edge_data overlaid with ``data`` (which then carries only the fields that differ, e.g. a per-edge ins_addr). Lets the common default edge attributes be stored once.
Used in: ,
DEFAULT_STATEMENT == -2
Used in:
Used in:
Either ``blocks`` carries the payloads inline, or ``block_refs`` indexes into a caller-supplied shared pool (e.g. Clinic.block_pool) so that byte-identical blocks shared between graphs are stored once.
ailment.Block.to_bytes() payloads, in node-insertion order
indices into the shared pool, in node-insertion order
The modal edge-data value (excluding the per-edge ins_addr); edges with has_default_data reference it.
Used in:
ailment.Expr.VirtualVariable via Expression.to_bytes()
polymorphic "<ClassName>\0<proto bytes>" SimVariable encoding
Used in: ,
map_ast_to_pos: dict[SimVariable, set[PositionMappingElement]]
Used in:
Used in: ,
OpDescriptor serialized to JSON
Derived from McSema's CFG.proto
Used in:
Effective address of the block
Instructions in this block
Size of the block
Bytes of this block
Used in:
All edges inside this graph
Serialized form of BlockID (context-sensitive block identifier).
Used in:
CAILBlock (ailment-coupled)
Used in:
ailment.Block.to_bytes()
CAssignment
Used in:
CBinaryOp
Used in:
CBreak / CContinue
Used in:
(message has no fields)
Used in:
CConstant. ``value`` is int | float | str. ``reference_values`` is dict[SimType, int|MemoryData|bytes|str].
Used in:
serialized MemoryData via its existing Serializable
Identifies which payload (oneof variant) a CConstructNode carries; drives the polymorphic dispatch table in Python code.
Used in:
Used in:
== CConstruct.idx (unique across the owning codegen)
index+1 into Codegen.tag_pool; 0 = no tags
numeric suffix of CConstruct.ident ("<ClassName>_<n>"); the class name is derived from kind
For CExpression subclasses only:
_type as index+1 into Codegen.type_pool; 0 = absent
CConstruct.tags is constrained at serialize time to entries with string keys and primitive values (None / bool / int / float / str / list / dict of those, in any nesting). Non-conforming entries are dropped on serialize.
Used in:
The four dominant tag keys get typed fields; everything else stays in the JSON map.
map[key] -> json.dumps(value)
When both ins_addr and vex_block_addr are known, ins_addr is stored as this delta from vex_block_addr (typically a 1-2 byte varint) and the absolute ins_addr field is left unset.
Used in:
(message has no fields)
CDirtyExpression (ailment-coupled)
Used in:
ailment Expression.to_bytes()
CDirtyStatement (NOT ailment-coupled; wraps a CDirtyExpression)
Used in:
CDirtyExpression node_id
CExpressionStatement
Used in:
The identifier of this CFG
All nodes in this CFG
All edges in this CFG
Whether the control flow graph has been normalized or not
Jump tables / indirect jumps
Addresses of blocks that have return statements
Base CFGNode fields
Context-sensitive callstack suffix
Name of the syscall
Number of times this node has been looped
Depth in the exploration
Return target address for call nodes
repr() of CFGNodeCreationFailure, if any
BlockID when block_id is a BlockID object (not int)
Used in: ,
Address of the node
Size of the node
A unique identifier of the node (for int block_ids)
repeated uint64 instr_addrs = 5; // Instruction addresses
Name of the SimProcedure, if any
Whether this node does not return
Address of the function this node belongs to
Whether this is a Thumb mode block (ARM)
Raw bytes of the block
Display name of the node
Whether this is a syscall node
Base address for compact instruction address storage
Instruction sizes as bytestring (one byte per instruction)
CFakeVariable
Used in:
CForLoop
Used in:
Per-node display configuration, stored out-of-line so the common default never occupies node bodies.
Used in:
CFunctionCall. ``callee_target`` is int | str | CExpression — oneof.
Used in:
Function reference; resolved from KB at parse time
show_demangled_name / show_disambiguated_name live in Codegen.node_config; only nodes that override the defaults store a NodeConfigEntry.
CFunction
Used in:
SimTypeFunction; index+1 into Codegen.type_pool, 0 = absent
CVariable node_ids
CStatements node_id
variable_manager is reattached at parse time from kwargs; unified_local_vars is recomputed via refresh().
CGoto. ``target`` may be an int or a CExpression — encode as oneof.
Used in:
CITE
Used in:
CIfBreak
Used in:
CIfElse
Used in:
Used in:
CIncompleteSwitchCase
Used in:
Used in:
CIndexedVariable
Used in:
CLabel
Used in:
CWhileLoop / CDoWhileLoop — same shape.
Used in:
CMultiStatementExpression
Used in:
CRegister
Used in:
CReturn
Used in:
CStatements
Used in:
CStructField
Used in:
CSwitchCase
Used in:
a single int or a tuple of ints
CStatements node_id
Used in:
CExpression node_id
CTypeCast
Used in:
CUnaryOp
Used in:
CUnsupportedStatement (ailment-coupled)
Used in:
ailment Statement.to_bytes()
CVEXCCallExpression
Used in:
CVariableField
Used in:
CStructField node_id
CVariable
Used in:
index+1 into Codegen.simvar_pool; 0 = absent
Used in:
Address of the basic block that ends in a call
Address of the call target; unset if the target is unknown
Address the call returns to; unset if the call does not return
---- Function and arch hints (resolved from project at parse time) -----------------------------------------------
---- AIL-typed slots (typed messages from ail_types.proto) ------------------------------------------------------- Shared pool of ailment.Block.to_bytes() payloads; the graphs reference into it via AilGraph.block_refs so byte-identical blocks appearing in multiple graphs are stored once.
final graph after region simplification
only when Decompiler(save_unoptimized_graph=True)
dict[int, tuple[VirtualVariable, SimVariable]]
---- Already-Serializable sub-objects --------------------------------------------------------------------------- arg_list: list[SimVariable] | None
set[SimMemoryVariable]
---- CLEAN primitive collections --------------------------------------------------------------------------------
dict[int, int]
set[int]
set[int] | None
dict[int, int]
set[int]
set[str] | None
dict[int, StackItem]
---- CLEAN scalars ----------------------------------------------------------------------------------------------
ClinicMode.value
ClinicStage.value
---- Pass class references (round-tripped via the optimization-pass registry) -----------------------------------
FQNs from optimization_pass_registry
True when peephole_optimizations was None (default set)
FQN; empty -> default Typehoon
Derived from McSema's CFG.proto Corresponds to the XRef class in angr
Used in: ,
For AArch64
Address of the referenced data item/block
Address of the basic block
Index of the statement where this reference is.
The index of the operand in the instruction. -1 if unknown
Type of this cross reference.
Used in:
Used in:
Used in:
Used in:
AST table.
node_id of the top-level CFunction
Rendered text.
zlib-compressed UTF-8 rendered text
Display-side state. Merged position maps (see PositionMappingEntry membership flags).
CVariable node_ids
Comments and notes.
DecompilationNote serialized to JSON; key = note key
const_formats: dict[IdentType, dict[str, bool]]; IdentType = tuple[int, int, str]
Interned SimType JSON strings (SimType.to_json output). All *_ref fields above and in the node bodies are index+1 into this pool; 0 means absent.
Interned tag dicts; CConstructNode.tags_ref is index+1 into this pool (identical tag dicts are stored once).
Interned SimVariable payloads ("<ClassName>\0<proto bytes>"); *_ref fields are index+1, 0 = absent.
Out-of-line per-node display config; a node only appears here if it deviates from the defaults.
Display options (round-tripped but not strictly part of the result). This block must stay last: c_serialize treats every field from ``indent`` onward as a display option, so a new display option only needs an optional scalar field appended here whose name matches the attribute on CStructuredCodeGenerator.
Used in:
Used in:
for large constants over 64 bits
Heavy sub-objects, embedded as already-serialized bytes from their own Serializable interfaces.
Clinic.serialize()
CStructuredCodeGenerator.serialize()
Top-level cache state. Collection-typed fields are never None on the Python side; unset fields parse back to empty collections.
dict[int, (VirtualVariable, SimVariable)]; unset -> empty dict
set[tuple[int, ailment.Expression]]; unset -> empty set
The angr version that produced this decompilation and the time (seconds since the epoch) when it happened. Legacy blobs carry the proto3 defaults ""/0, meaning "unknown".
Unset means "no recorded parameters" (e.g. the run had use_cache=False); cache-validity checks treat such a cache as always usable.
DecompilationNote serialized to JSON; key = note key
Collection-typed parameters (except peephole_optimizations) are never None on the Python side (the Decompiler normalizes its inputs to empty collections), so an unset repeated/map field simply parses back to an empty collection.
Used in:
set[str]
frozenset[str]
frozenset[int]
FQN strings
peephole_optimizations is the one None-able collection: None means "use the default peephole set", which is distinct from an explicitly empty list.
True when peephole_optimizations was None (default set in use)
set[tuple[int, ailment.Expression]]; unset -> empty set
unset -> empty dict
Used in: ,
Address of the source block
Address of the destination block
Jumpkind of the edge
Is this an edge going outside of the current function?
Address of the source instruction
ID of the source statement
whether this is a confirmed return edge; 0 = unconfirmed, 1 = confirmed,
Used in: ,
Will be translated to None in Python
More commonly referred to as fall-through edges
The following jumpkinds are mostly specific to VEX IR
Function endpoints
Used in:
Type of the endpoint
Address of the endpoint
Size of the endpoint - so that we do not have to load blocks
Used in:
Used in:
serialized SimMemoryVariable subclass via "<ClassName>\\0<proto bytes>" so polymorphic dispatch works at parse.
Derived from McSema's CFG.proto
Used in:
Derived from McSema's CFG.proto
Used in:
Used in:
Effective address
Is this function the entry point of the binary
Blocks in this function
Function name
If this function is a PLT entry
Is this function a syscall function
Is this function a SimProcedure
If this function returns
Name of the binary where this function belongs to
Graph of this function
Address of referenced functions
Whether this function is used as an alignment filling or not
Whether this function has been normalized or not
If this function is matched to a known library function. If so, which
The recovered function prototype (pickle serialized, can be None)
the recovered calling convention (pickle serialized, can be None)
if we found this prototype in a library, which library?
a JSON-serialized dictionary
Endpoints within this function
Referenced blocks outside this function
Whether the function name is a default name (e.g., sub_123456) or not
Whether calling convention analysis has been performed on this function
Previous names of this function
did we guess this prototype?
Call sites within this function
Used in:
Used in:
Address of the indirect jump/call
Instruction address
Function address
Kind of jump
Statement index
Resolved target addresses
Whether this is a jump table
Jump table info entries
IndirectJumpType value
Derived from McSema's CFG.proto
Used in:
Used in:
Used in:
Used in:
Expression.to_bytes()
Used in: ,
Used in:
Address of the jump table (None if unknown)
Size of the jump table
Size of each entry
Target addresses
Are entries of this jump table guessed
Used in:
Address of the data
Size of the memory data item in memory
Type of the data (reference)
Reference size of the data
Used in:
Used in:
Used in:
Used in:
Used in:
Identified by DecompilationOption.param (a unique key in PARAM_TO_OPTION).
JSON-encoded value. The original tuples (option_obj, value) are reconstructed by looking up the option from PARAM_TO_OPTION at parse time.
A wrapper for int64 values that may be None (used in callstack_key and callsite_tuples).
Used in: ,
Used in:
Used in: ,
0 means "no node" — though in practice obj is always present
Membership flags: map_pos_to_node and map_pos_to_addr mostly contain identical entries, so both are stored in one merged table and each entry marks which map(s) it belongs to.
Used in:
Used in:
Used in:
Used in:
Used in:
SP-base if sp_base is true, or BP-base if sp_base is false
Used in:
SimStackVariable is polymorphic; we use the same "<ClassName>\0<proto bytes>" wrapping as elsewhere.
dict[str, FixedBuffer] (decompilation parameter "static_buffers")
Used in:
dict[int, FixedBufferPtr | ailment.Expr.Const] (decompilation parameter "static_vvars")
Used in:
Expression.to_bytes()
Used in:
Used in:
Used in:
Used in:
Used in:
Used in: , , , ,
Used in:
index+1 into Codegen.simvar_pool; 0 = absent
CVariable node_id
Variables of each type
Variable accesses
Unified variables
Types
Interned SimType JSON strings (json.dumps(SimType.to_json())); VariableType.type_ref is index+1 into this pool
Phi variables
Used in:
index+1 into VariableManagerInternal.type_pool
whether the type was set manually (variables_with_manual_types)