Rizin
unix-like reverse engineering framework and cli tools
|
Public Member Functions | |
def | __init__ (self, cs, all_info) |
def | __repr__ (self) |
def | id (self) |
def | address (self) |
def | size (self) |
def | bytes (self) |
def | mnemonic (self) |
def | op_str (self) |
def | regs_read (self) |
def | regs_write (self) |
def | groups (self) |
def | __getattr__ (self, name) |
def | errno (self) |
def | reg_name (self, reg_id, default=None) |
def | insn_name (self, default=None) |
def | group_name (self, group_id, default=None) |
def | group (self, group_id) |
def | reg_read (self, reg_id) |
def | reg_write (self, reg_id) |
def | op_count (self, op_type) |
def | op_find (self, op_type, position) |
def | regs_access (self) |
Public Attributes | |
operands | |
Private Member Functions | |
def | __gen_detail (self) |
Private Attributes | |
_raw | |
_cs | |
Definition at line 530 of file __init__.py.
def capstone.CsInsn.__init__ | ( | self, | |
cs, | |||
all_info | |||
) |
Definition at line 531 of file __init__.py.
|
private |
Definition at line 625 of file __init__.py.
References capstone.CsInsn._cs, capstone.CsInsn._raw, rz_il_vm_t.addr_size, capstone.X86.UnionOpInfo.addr_size, cs_x86.addr_size, capstone.X86.UnionOpInfo.avx_cc, cs_x86.avx_cc, capstone.X86.UnionOpInfo.avx_rm, cs_x86.avx_rm, capstone.X86.UnionOpInfo.avx_sae, cs_x86.avx_sae, rz_analysis_function_t.cc, rz_callable_at.cc, ppc_alias.cc, capstone.Arm.UnionOpInfo.cc, capstone.Arm.OpInfo.cc, capstone.Arm64.UnionOpInfo.cc, capstone.Arm64.OpInfo.cc, capstone.Sparc.UnionOpInfo.cc, capstone.Sparc.OpInfo.cc, capstone.Systemz.UnionOpInfo.cc, capstone.Systemz.OpInfo.cc, cs_arm.cc, cs_arm64.cc, cs_sparc.cc, cs_sysz.cc, capstone.Arm.UnionOpInfo.cps_flag, cs_arm.cps_flag, capstone.Arm.UnionOpInfo.cps_mode, cs_arm.cps_mode, rz_analysis_op_t.disp, capstone.Arm.MemType.disp, capstone.Arm64.MemType.disp, capstone.Mips.MemType.disp, capstone.Ppc.MemType.disp, capstone.Sparc.MemType.disp, capstone.Systemz.MemType.disp, capstone.X86.MemType.disp, capstone.X86.UnionOpInfo.disp, capstone.X86.OpInfo.disp, capstone.Xcore.MemType.disp, arm_op_mem.disp, arm64_op_mem.disp, m68k_op_mem.disp, m68k_op_br_disp.disp, mips_op_mem.disp, ppc_op_mem.disp, sparc_op_mem.disp, sysz_op_mem.disp, tms320c64x_op_mem.disp, x86_op_mem.disp, cs_x86.disp, xcore_op_mem.disp, cs_x86_encoding.disp_offset, m68k_op_br_disp.disp_size, cs_x86_encoding.disp_size, x86_thread_state32.eflags, user_regs_struct_x86_64.eflags, user_regs_struct_x86_32.eflags, match.eflags, capstone.X86.UnionOpInfo.eflags, capstone.X86.OpInfo.eflags, cs_x86.eflags, cs_x86_encoding.imm_offset, cs_x86_encoding.imm_size, MCInst.imm_size, capstone.Arm.UnionOpInfo.mem_barrier, cs_arm.mem_barrier, capstone.X86.UnionOpInfo.modrm, capstone.X86.OpInfo.modrm, cs_x86.modrm, cs_x86_encoding.modrm_offset, cs_m68k.op_size, arc_fields_t.opcode, _pic_midrange_op_analysis_info.opcode, aarch64_opcode.opcode, aarch64_inst.opcode, Opcode_t.opcode, avr_decoder_t.opcode, op_code.opcode, op_basic.opcode, op_nbasic.opcode, HexInsn.opcode, powerpc_opcode.opcode, tricore_opcode.opcode, pcp_opcode.opcode, xtensa_lookup_entry_struct.opcode, _jasm.opcode, bytecode_t.opcode, lh5801_insn_desc.opcode, lh5801_insn.opcode, msp430_cmd.opcode, _nios2_opcode_hash.opcode, insn_extra_t.opcode, insn_t.opcode, ps_opcode_t.opcode, propeller_cmd.opcode, rsp_instruction_priv.opcode, rsp_instruction.opcode, sh_op_raw_t.opcode, sh_opcode_t.opcode, sparc_opcode_hash.opcode, tms320_dasm_t.opcode, decoded_insn.opcode, lookup_t.opcode, rz_analysis_addr_hint_record_t.opcode, rz_analysis_hint_t.opcode, RzBinDwarfLineOp.opcode, InternalInstruction.opcode, capstone.X86.UnionOpInfo.opcode, capstone.X86.OpInfo.opcode, cs_x86.opcode, powerpc_macro.operands, xtensa_iclass_internal_struct.operands, xtensa_isa_internal_struct.operands, cs_mips.operands, msp430_cmd.operands, InternalInstruction.operands, cs_sparc.operands, ppcps_t.operands, cs_sysz.operands, powerpc_opcode.operands, InstructionSpecifier.operands, capstone.CsInsn.operands, cs_arm.operands, amd29k_instr_s.operands, ps_opcode_t.operands, cs_arm64.operands, cs_ppc.operands, cs_tms320c64x.operands, cs_x86.operands, cs_xcore.operands, aarch64_opcode.operands, aarch64_inst.operands, cr16_cmd.operands, ebc_command.operands, h8300_cmd.operands, insn_type_descr_t.operands, cs_m680x.operands, cs_m68k.operands, Opcode_t.operands, propeller_cmd.operands, rsp_instruction.operands, v810_cmd.operands, v850_cmd.operands, CILOpcodeReader.prefix, bfd_elf_special_section.prefix, propeller_cmd.prefix, rz_analysis_op_t.prefix, rz_bin_t.prefix, capstone.X86.UnionOpInfo.prefix, capstone.X86.OpInfo.prefix, tar_header.prefix, cs_x86.prefix, capstone.X86.UnionOpInfo.rex, capstone.X86.OpInfo.rex, cs_x86.rex, InternalInstruction.sib, capstone.X86.UnionOpInfo.sib, capstone.X86.OpInfo.sib, cs_x86.sib, capstone.X86.UnionOpInfo.sib_base, cs_x86.sib_base, capstone.X86.UnionOpInfo.sib_index, cs_x86.sib_index, capstone.X86.UnionOpInfo.sib_scale, cs_x86.sib_scale, capstone.X86.UnionOpInfo.sse_cc, cs_x86.sse_cc, capstone.Arm.UnionOpInfo.update_flags, cs_arm.update_flags, cs_arm64.update_flags, capstone.Arm.UnionOpInfo.usermode, capstone.Arm.OpInfo.usermode, cs_arm.usermode, capstone.Arm.UnionOpInfo.vector_data, cs_arm.vector_data, capstone.Arm.UnionOpInfo.vector_size, cs_arm.vector_size, aarch64_opnd_info.writeback, aarch64_opnd_info::.writeback, Opcode_t.writeback, capstone.Arm.UnionOpInfo.writeback, capstone.Arm.OpInfo.writeback, capstone.Arm64.OpInfo.writeback, cs_arm.writeback, cs_arm64.writeback, MCInst.writeback, capstone.X86.UnionOpInfo.xop_cc, and cs_x86.xop_cc.
Referenced by capstone.CsInsn.__getattr__().
def capstone.CsInsn.__getattr__ | ( | self, | |
name | |||
) |
Definition at line 665 of file __init__.py.
References capstone.CsInsn.__gen_detail(), capstone.CsInsn._cs, and capstone.CsInsn._raw.
def capstone.CsInsn.__repr__ | ( | self | ) |
Definition at line 539 of file __init__.py.
References dwarf_var_location_t.address, ExtAuxRegister.address, property_table_entry_t.address, reloc_cache_entry.address, rz_xnu_kernelcache_parsed_pointer_t.address, cache_map_t.address, cache_img_t.address, cache_mapping_slide.address, _RzParsedPointer.address, rz_analysis_type_alloca_t.address, rz_analysis_esil_t.address, rz_bin_source_line_sample_t.address, RzBinDwarfState.address, dwarf_attr_kind.address, RzBinDwarfSMRegisters.address, rz_il_vm_event_mem_read_t.address, rz_il_vm_event_mem_write_t.address, _PPA.address, diff_function_t.address, capstone.M680x.OpRelative.address, capstone.M680x.OpExtended.address, capstone.CsInsn.address(), m680x_op_rel.address, m680x_op_ext.address, MCInst.address, uv_interface_address_s.address, _HeapBlockBasicInfo.address, rz_test_asm_test_t.bytes, rz_test_asm_test_output_t.bytes, mcore_t.bytes, go_string_recover_t.bytes, rz_asm_code_t.bytes, rz_bp_arch_t.bytes, rz_reg_arena_t.bytes, capstone.CsInsn.bytes(), Length.bytes, hex, amd29k_instr_s.mnemonic, amd29k_instruction_s.mnemonic, Opcode_t.mnemonic, avr_opcode_t.mnemonic, _pic_baseline_op.mnemonic, _pic_midrange_op.mnemonic, rsp_instruction_priv.mnemonic, rsp_instruction.mnemonic, sh_op_raw_t.mnemonic, sh_opcode_t.mnemonic, lookup_t.mnemonic, rz_analysis_op_t.mnemonic, RzPseudoGrammar.mnemonic, capstone.CsInsn.mnemonic(), customized_mnem.mnemonic, cs_opt_mnem.mnemonic, and capstone.CsInsn.op_str().
def capstone.CsInsn.address | ( | self | ) |
Definition at line 549 of file __init__.py.
References capstone.CsInsn._raw.
Referenced by capstone.CsInsn.__repr__().
def capstone.CsInsn.bytes | ( | self | ) |
Definition at line 559 of file __init__.py.
References capstone.CsInsn._raw.
Referenced by capstone.CsInsn.__repr__().
def capstone.CsInsn.errno | ( | self | ) |
Definition at line 682 of file __init__.py.
References capstone.CsInsn._cs.
Referenced by capstone.CsError.__str__().
def capstone.CsInsn.group | ( | self, | |
group_id | |||
) |
Definition at line 714 of file __init__.py.
References capstone.CsInsn._cs, capstone.CsInsn._raw, capstone.CsInsn.groups(), m68k_info.groups, insn_map.groups, and index_stream.groups.
def capstone.CsInsn.group_name | ( | self, | |
group_id, | |||
default = None |
|||
) |
Definition at line 705 of file __init__.py.
References capstone._ascii_name_or_default(), and capstone.CsInsn._cs.
def capstone.CsInsn.groups | ( | self | ) |
Definition at line 612 of file __init__.py.
References capstone.CsInsn._cs, and capstone.CsInsn._raw.
Referenced by capstone.CsInsn.group().
def capstone.CsInsn.id | ( | self | ) |
Definition at line 544 of file __init__.py.
References capstone.CsInsn._raw.
Referenced by capstone.CsInsn.insn_name().
def capstone.CsInsn.insn_name | ( | self, | |
default = None |
|||
) |
Definition at line 694 of file __init__.py.
References capstone._ascii_name_or_default(), capstone.CsInsn._cs, capstone.CsInsn._raw, id, gnu_insn.id, avr_decoder_t.id, HexInsnTemplate.id, bfd_elf_section_data.id, bfd_section.id, bfd.id, psxexe_header.id, rz_bin_wasm_section_t.id, basefind_thread_data_t.id, rz_analysis_op_t.id, rz_analysis_esil_source_t.id, rz_bin_file_t.id, rz_session_header.id, rz_io_map_t.id, rz_lib_type_name_t.id, ppc_alias.id, capstone.CsInsn.id(), customized_mnem.id, cs_opt_mnem.id, insn_map.id, name_map.id, mschmd_section.id, zip_extra_field.id, ef.id, chunkParameters.id, TSNode.id, TSTreeCursor.id, TSQueryMatch.id, QueryState.id, lzma_filter.id, lzma_filter_info_s.id, lzma_next_coder_s.id, lzma_filter_coder.id, lzma_filter_decoder.id, lzma_filter_encoder.id, name_id_map.id, and log.id.
def capstone.CsInsn.mnemonic | ( | self | ) |
Definition at line 564 of file __init__.py.
References capstone.CsInsn._cs, and capstone.CsInsn._raw.
Referenced by capstone.CsInsn.__repr__().
def capstone.CsInsn.op_count | ( | self, | |
op_type | |||
) |
Definition at line 747 of file __init__.py.
References capstone.CsInsn._raw, powerpc_macro.operands, xtensa_iclass_internal_struct.operands, xtensa_isa_internal_struct.operands, InstructionSpecifier.operands, InternalInstruction.operands, capstone.CsInsn.operands, cs_mips.operands, msp430_cmd.operands, cs_arm.operands, cs_sparc.operands, amd29k_instr_s.operands, ppcps_t.operands, ps_opcode_t.operands, cs_sysz.operands, powerpc_opcode.operands, cs_arm64.operands, cs_ppc.operands, cs_tms320c64x.operands, cs_x86.operands, cs_xcore.operands, aarch64_opcode.operands, aarch64_inst.operands, cr16_cmd.operands, ebc_command.operands, h8300_cmd.operands, insn_type_descr_t.operands, cs_m680x.operands, cs_m68k.operands, Opcode_t.operands, propeller_cmd.operands, rsp_instruction.operands, v810_cmd.operands, and v850_cmd.operands.
def capstone.CsInsn.op_find | ( | self, | |
op_type, | |||
position | |||
) |
Definition at line 758 of file __init__.py.
References capstone.CsInsn._raw, powerpc_macro.operands, xtensa_iclass_internal_struct.operands, xtensa_isa_internal_struct.operands, InstructionSpecifier.operands, InternalInstruction.operands, capstone.CsInsn.operands, cs_mips.operands, msp430_cmd.operands, cs_arm.operands, cs_sparc.operands, amd29k_instr_s.operands, ppcps_t.operands, ps_opcode_t.operands, cs_sysz.operands, powerpc_opcode.operands, cs_arm64.operands, cs_ppc.operands, cs_tms320c64x.operands, cs_x86.operands, cs_xcore.operands, aarch64_opcode.operands, aarch64_inst.operands, cr16_cmd.operands, ebc_command.operands, h8300_cmd.operands, insn_type_descr_t.operands, cs_m680x.operands, cs_m68k.operands, Opcode_t.operands, propeller_cmd.operands, rsp_instruction.operands, v810_cmd.operands, and v850_cmd.operands.
def capstone.CsInsn.op_str | ( | self | ) |
Definition at line 573 of file __init__.py.
References capstone.CsInsn._cs, and capstone.CsInsn._raw.
Referenced by capstone.CsInsn.__repr__().
def capstone.CsInsn.reg_name | ( | self, | |
reg_id, | |||
default = None |
|||
) |
Definition at line 686 of file __init__.py.
References capstone._ascii_name_or_default(), and capstone.CsInsn._cs.
def capstone.CsInsn.reg_read | ( | self, | |
reg_id | |||
) |
Definition at line 725 of file __init__.py.
References capstone.CsInsn._cs, capstone.CsInsn._raw, capstone.CsInsn.regs_read(), and m68k_info.regs_read.
def capstone.CsInsn.reg_write | ( | self, | |
reg_id | |||
) |
Definition at line 736 of file __init__.py.
References capstone.CsInsn._cs, capstone.CsInsn._raw, capstone.CsInsn.regs_write(), and m68k_info.regs_write.
def capstone.CsInsn.regs_access | ( | self | ) |
Definition at line 771 of file __init__.py.
References capstone.CsInsn._cs, and capstone.CsInsn._raw.
def capstone.CsInsn.regs_read | ( | self | ) |
Definition at line 582 of file __init__.py.
References capstone.CsInsn._cs, and capstone.CsInsn._raw.
Referenced by capstone.CsInsn.reg_read().
def capstone.CsInsn.regs_write | ( | self | ) |
Definition at line 597 of file __init__.py.
References capstone.CsInsn._cs, and capstone.CsInsn._raw.
Referenced by capstone.CsInsn.reg_write().
def capstone.CsInsn.size | ( | self | ) |
Definition at line 554 of file __init__.py.
References capstone.CsInsn._raw.
|
private |
Definition at line 533 of file __init__.py.
Referenced by capstone.CsInsn.__gen_detail(), capstone.CsInsn.__getattr__(), capstone.CsInsn.errno(), capstone.CsInsn.group(), capstone.CsInsn.group_name(), capstone.CsInsn.groups(), capstone.CsInsn.insn_name(), capstone.CsInsn.mnemonic(), capstone.CsInsn.op_str(), capstone.CsInsn.reg_name(), capstone.CsInsn.reg_read(), capstone.CsInsn.reg_write(), capstone.CsInsn.regs_access(), capstone.CsInsn.regs_read(), and capstone.CsInsn.regs_write().
|
private |
Definition at line 532 of file __init__.py.
Referenced by capstone.CsInsn.__gen_detail(), capstone.CsInsn.__getattr__(), capstone.CsInsn.address(), capstone.CsInsn.bytes(), capstone.CsInsn.group(), capstone.CsInsn.groups(), capstone.CsInsn.id(), capstone.CsInsn.insn_name(), capstone.CsInsn.mnemonic(), capstone.CsInsn.op_count(), capstone.CsInsn.op_find(), capstone.CsInsn.op_str(), capstone.CsInsn.reg_read(), capstone.CsInsn.reg_write(), capstone.CsInsn.regs_access(), capstone.CsInsn.regs_read(), capstone.CsInsn.regs_write(), and capstone.CsInsn.size().
capstone.CsInsn.operands |
Definition at line 647 of file __init__.py.
Referenced by capstone.CsInsn.__gen_detail(), capstone.CsInsn.op_count(), and capstone.CsInsn.op_find().