![]() |
miasm
Reverse engineering framework
|


Public Member Functions | |
| def | guess_mnemo (cls, bs, attrib, pre_dis_info, offset) |
| def | reset_class (self) |
| def | init_class (self) |
| def | add_pre_dis_info (self, prefix=None) |
| def | getbits (cls, bs, attrib, offset_b, l) |
| def | getbytes (cls, bs, offset, l) |
| def | pre_dis (cls, v_o, attrib, offset) |
| def | post_dis (self) |
| def | check_mnemo (cls, fields) |
| def | mod_fields (cls, fields) |
| def | dis (cls, bs_o, mode_o=None, offset=0) |
| def | fromstring (cls, text, loc_db, mode=None) |
| def | dup_info (self, infos) |
| def | get_cls_instance (cls, cc, mode, infos=None) |
| def | asm (cls, instr, loc_db=None) |
| def | filter_asm_candidates (cls, instr, candidates) |
| def | value (self, mode) |
| def | encodefields (self, decoded) |
| def | decoded2bytes (self, result) |
| def | gen_args (self, args) |
| def | args2str (self) |
| def | __str__ (self) |
| def | parse_prefix (self, v) |
| def | set_dst_symbol (self, loc_db) |
| def | getdstflow (self, loc_db) |
Public Member Functions inherited from miasm.core.cpu.metamn | |
| def | __new__ (mcs, name, bases, dct) |
Public Attributes | |
| args | |
| fields_order | |
| to_decode | |
| args_symb | |
Static Public Attributes | |
| list | args_symb = [] |
| instruction = instruction | |
| int | alignment = 1 |
| def miasm.core.cpu.cls_mn.__str__ | ( | self | ) |

| def miasm.core.cpu.cls_mn.add_pre_dis_info | ( | self, | |
prefix = None |
|||
| ) |
Reimplemented in miasm.arch.x86.arch.mn_x86.
| def miasm.core.cpu.cls_mn.args2str | ( | self | ) |
| def miasm.core.cpu.cls_mn.asm | ( | cls, | |
| instr, | |||
loc_db = None |
|||
| ) |
Re asm instruction by searching mnemo using name and args. We then can modify args and get the hex of a modified instruction


| def miasm.core.cpu.cls_mn.check_mnemo | ( | cls, | |
| fields | |||
| ) |
| def miasm.core.cpu.cls_mn.decoded2bytes | ( | self, | |
| result | |||
| ) |
Reimplemented in miasm.arch.msp430.arch.mn_msp430.


| def miasm.core.cpu.cls_mn.dis | ( | cls, | |
| bs_o, | |||
mode_o = None, |
|||
offset = 0 |
|||
| ) |

| def miasm.core.cpu.cls_mn.dup_info | ( | self, | |
| infos | |||
| ) |
Reimplemented in miasm.arch.x86.arch.mn_x86.
| def miasm.core.cpu.cls_mn.encodefields | ( | self, | |
| decoded | |||
| ) |
| def miasm.core.cpu.cls_mn.filter_asm_candidates | ( | cls, | |
| instr, | |||
| candidates | |||
| ) |
| def miasm.core.cpu.cls_mn.fromstring | ( | cls, | |
| text, | |||
| loc_db, | |||
mode = None |
|||
| ) |
| def miasm.core.cpu.cls_mn.gen_args | ( | self, | |
| args | |||
| ) |

| def miasm.core.cpu.cls_mn.get_cls_instance | ( | cls, | |
| cc, | |||
| mode, | |||
infos = None |
|||
| ) |
| def miasm.core.cpu.cls_mn.getbits | ( | cls, | |
| bs, | |||
| attrib, | |||
| offset_b, | |||
| l | |||
| ) |
Reimplemented in miasm.arch.sh4.arch.mn_sh4, miasm.arch.ppc.arch.mn_ppc, miasm.arch.msp430.arch.mn_msp430, miasm.arch.arm.arch.mn_armt, miasm.arch.arm.arch.mn_arm, miasm.arch.aarch64.arch.mn_aarch64, and miasm.arch.mep.arch.mn_mep.

| def miasm.core.cpu.cls_mn.getbytes | ( | cls, | |
| bs, | |||
| offset, | |||
| l | |||
| ) |
Reimplemented in miasm.arch.sh4.arch.mn_sh4, and miasm.arch.msp430.arch.mn_msp430.

| def miasm.core.cpu.cls_mn.getdstflow | ( | self, | |
| loc_db | |||
| ) |

| def miasm.core.cpu.cls_mn.guess_mnemo | ( | cls, | |
| bs, | |||
| attrib, | |||
| pre_dis_info, | |||
| offset | |||
| ) |


| def miasm.core.cpu.cls_mn.init_class | ( | self | ) |
| def miasm.core.cpu.cls_mn.mod_fields | ( | cls, | |
| fields | |||
| ) |
| def miasm.core.cpu.cls_mn.parse_prefix | ( | self, | |
| v | |||
| ) |
| def miasm.core.cpu.cls_mn.post_dis | ( | self | ) |
Reimplemented in miasm.arch.x86.arch.mn_x86, and miasm.arch.ppc.arch.mn_ppc.
| def miasm.core.cpu.cls_mn.pre_dis | ( | cls, | |
| v_o, | |||
| attrib, | |||
| offset | |||
| ) |
| def miasm.core.cpu.cls_mn.reset_class | ( | self | ) |
Reimplemented in miasm.arch.x86.arch.mn_x86, miasm.arch.msp430.arch.mn_msp430, and miasm.arch.aarch64.arch.mn_aarch64.

| def miasm.core.cpu.cls_mn.set_dst_symbol | ( | self, | |
| loc_db | |||
| ) |

| def miasm.core.cpu.cls_mn.value | ( | self, | |
| mode | |||
| ) |
Reimplemented in miasm.arch.sh4.arch.mn_sh4, miasm.arch.ppc.arch.mn_ppc, miasm.arch.mep.arch.mn_mep, miasm.arch.arm.arch.mn_armt, miasm.arch.arm.arch.mn_arm, and miasm.arch.aarch64.arch.mn_aarch64.


|
static |
| miasm.core.cpu.cls_mn.args |
|
static |
| miasm.core.cpu.cls_mn.args_symb |
| miasm.core.cpu.cls_mn.fields_order |
|
static |
| miasm.core.cpu.cls_mn.to_decode |