angr.analyses.decompiler.notes

class angr.analyses.decompiler.notes.DecompilationNote

Bases: object

Describes a note that is generated during decompilation.

Key is a unique string for the decompilation note. It is used as an index in the decompilation notes dictionary in the Decompiler class. Name is string for display by default. Content is the actual content of the note. It can be of any time, but for custom types, you must override __str__ so that it can be displayed. Level is the level of the note. The following values are available: DecompilationNoteLevel.DEBUG, DecompilationNoteLevel.INFO, DecompilationNoteLevel.WARNING, and DecompilationNoteLevel.CRITICAL.

__init__(key, name, content, *, level=DecompilationNoteLevel.INFO)
Parameters:
key
name
content
level
to_jsonable()
Return type:

dict[str, Any]

to_json()
Return type:

str

classmethod from_jsonable(d)
Return type:

DecompilationNote

Parameters:

d (dict[str, Any])

classmethod from_json(s)
Return type:

DecompilationNote

Parameters:

s (str)

class angr.analyses.decompiler.notes.DecompilationNoteLevel

Bases: Enum

Enum class describing the level of each decompilation note.

DEBUG = 0
INFO = 1
WARNING = 2
CRITICAL = 3
class angr.analyses.decompiler.notes.DeobfuscatedString

Bases: object

Represents a deobfuscated string.

__init__(value, obf_type, ref_addr=None)
Parameters:
value
type
ref_addr
class angr.analyses.decompiler.notes.DeobfuscatedStringsNote

Bases: DecompilationNote

Represents a decompilation note that describes obfuscated strings found during decompilation.

__init__(key='deobfuscated_strings', name='Deobfuscated Strings')
Parameters:
strings: dict[int, DeobfuscatedString]
add_string(obf_type, value, *, ref_addr)

Add a deobfuscated string to the note.

Parameters:
  • obf_type (str) – The type of obfuscation (e.g., “1”, “2”).

  • value (bytes) – The deobfuscated string value.

  • ref_addr (int) – The address where this string is referenced, if applicable.

to_jsonable()
Return type:

dict[str, Any]

content
key
level
name

Submodules