arch ¤
Classes:
Functions:
-
syntax_highlight– -
register_assign– -
memory_assign– -
memory_or_register_assign–Used when we don't know until runtime whether a codepath will annotate a register or memory location.
Attributes:
-
DEBUG_ENHANCEMENT– -
groups– -
ops– -
access– -
DO_NOT_EMULATE– -
generic_assistant–
DisassemblyAssistant ¤
Methods:
-
for_current_arch– -
enhance– -
can_reason_about_process_state–Determine if the program counter of the process equals the address of the instruction being enhanced.
-
dump–Debug-only method.
Attributes:
-
assistants(dict[str, DisassemblyAssistant]) – -
op_handlers(dict[int, Callable[[PwndbgInstruction, EnhancedOperand, Emulator], int | None]]) – -
op_names(dict[int, Callable[[PwndbgInstruction, EnhancedOperand], str | None]]) –
op_handlers instance-attribute ¤
op_handlers: dict[
int, Callable[[PwndbgInstruction, EnhancedOperand, Emulator], int | None]
] = {
CS_OP_IMM: _parse_immediate,
CS_OP_REG: _parse_register,
CS_OP_MEM: _parse_memory,
}
op_names instance-attribute ¤
op_names: dict[
int, Callable[[PwndbgInstruction, EnhancedOperand], str | None]
] = {
CS_OP_IMM: _immediate_string,
CS_OP_REG: _register_string,
CS_OP_MEM: _memory_string,
}
can_reason_about_process_state ¤
can_reason_about_process_state(instruction: PwndbgInstruction) -> bool
Determine if the program counter of the process equals the address of the instruction being enhanced. If so, it means we can safely reason and read from registers and memory to enhance values that we can add to the annotation string. This becomes relevent when NOT emulating, and is meant to allow more details when the PC is at the instruction being enhanced
memory_or_register_assign ¤
Used when we don't know until runtime whether a codepath will annotate a register or memory location.