Functions | |
| def | compile_and_disassemble |
| def | no_modrm |
| def | no_grp |
| def | get_encoding |
| def | filter_chars |
| def | generate_functions |
| def | generate_code |
| def | print_code |
| def | add_helper |
Variables | |
| tuple | file = open(FILE, "a") |
| list | opcodes = [] |
| list | segment_list = ["es", "cs", "ss", "ds", "fs", "gs"] |
| tuple | ccflags = map(lambda x: compile_and_disassemble(".byte %#x, 0x00"%x, file, fdict)[2].split()[0][1:], range(0x70, 0x80)) |
| list | ccflag = ccflags[i] |
| dictionary | stringops |
| tuple | encodings = sum(map(lambda x: get_encoding(x, file, fdict), opcodes), []) |
| def build_instructions::add_helper | ( | l, | ||
| flags, | ||||
| params | ||||
| ) |
| def build_instructions::compile_and_disassemble | ( | str, | ||
| file, | ||||
| fdict | ||||
| ) |
| def build_instructions::filter_chars | ( | snippet, | ||
| op_size, | ||||
| flags | ||||
| ) |
| def build_instructions::generate_code | ( | encodings | ) |
| def build_instructions::generate_functions | ( | name, | ||
| flags, | ||||
| snippet, | ||||
| enc, | ||||
| functions, | ||||
| l2 | ||||
| ) |
| def build_instructions::get_encoding | ( | opcode, | ||
| file, | ||||
| fdict | ||||
| ) |
| def build_instructions::no_grp | ( | res, | ||
| prefix | ||||
| ) |
| def build_instructions::no_modrm | ( | res, | ||
| prefix | ||||
| ) |
| def build_instructions::print_code | ( | code, | ||
| functions | ||||
| ) |
| list build_instructions::ccflag = ccflags[i] |
| tuple build_instructions::ccflags = map(lambda x: compile_and_disassemble(".byte %#x, 0x00"%x, file, fdict)[2].split()[0][1:], range(0x70, 0x80)) |
| tuple build_instructions::encodings = sum(map(lambda x: get_encoding(x, file, fdict), opcodes), []) |
| tuple build_instructions::file = open(FILE, "a") |
| list build_instructions::opcodes = [] |
| list build_instructions::segment_list = ["es", "cs", "ss", "ds", "fs", "gs"] |
| dictionary build_instructions::stringops |
00001 {"cmps": "SH_LOAD_ESI | SH_LOAD_EDI | SH_DOOP_CMP", 00002 "ins" : "SH_SAVE_EDI | SH_DOOP_IN", 00003 "movs": "SH_LOAD_ESI | SH_SAVE_EDI", 00004 "outs": "SH_LOAD_ESI | SH_DOOP_OUT", 00005 "scas": "SH_LOAD_EDI | SH_DOOP_CMP", 00006 "stos": "SH_SAVE_EDI", 00007 "lods": "SH_LOAD_ESI | SH_SAVE_EAX"}
1.7.1