function_name
stringlengths
1
87
binary_name
stringlengths
64
64
author_name
stringlengths
2
36
project_name
stringlengths
1
48
opt
stringclasses
1 value
src
stringlengths
11
425k
dbg
stringclasses
1 value
codeart
stringlengths
257
560k
lmpa
stringlengths
619
152k
mycss_selectors_parser_selector_begin
fae6ec7055d349e9fa0a2e92e40c5a6b2d3d093ec925c965855a0e8611ff28e5
lexborisov
Modest
NA
void mycss_selectors_parser_selector_begin(mycss_entry_t* entry, mycss_token_t* token) { mycss_selectors_entry_t *selector = mycss_selectors_entry_create(entry->selectors); mycss_selectors_entry_append_to_current(entry->selectors, selector); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40C9AC", "function_addr": 4245932, "binary_name": "fae6ec7055d349e9fa0a2e92e40c5a6b2d3d093ec925c965855a0e8611ff28e5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_18]"], [6, "mov rax, [rax+40h]"], [7, "mov rdi, rax"], [8, "call sub_40B90E"], [9, "mov [rbp+var_8], rax"], [10, "mov rax, [rbp+var_18]"], [11, "mov rax, [rax+40h]"], [12, "mov rdx, [rbp+var_8]"], [13, "mov rsi, rdx"], [14, "mov rdi, rax"], [15, "call sub_40BB97"], [16, "nop"], [17, "leave"], [18, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [9, 8], [10, 3], [11, 10], [12, 9], [13, 12], [14, 11], [18, 15]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/fae6ec7055d349e9fa0a2e92e40c5a6b2d3d093ec925c965855a0e8611ff28e5_fae6ec7055d349e9fa0a2e92e40c5a6b2d3d093ec925c965855a0e8611ff28e5.jsonl.gz", "strip_func_name": "sub_40C9AC", "query": "\n\n\n__int64 __fastcall sub_40C9AC(__int64 a1)\n{\nvoid *v2; // [rsp+18h] [rbp-8h]\n\nv2 = sub_40B90E(*(_QWORD *)(a1 + 64));\nreturn sub_40BB97(*(_QWORD *)(a1 + 64), (__int64)v2);\n}\n\n\n\nQ:[a1,v2,sub_40C9AC,sub_40B90E,sub_40BB97,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'entry', 'v2': 'selector', 'sub_40C9AC': 'mycss_selectors_parser_selector_begin', 'sub_40B90E': 'mycss_selectors_entry_create', 'sub_40BB97': 'mycss_selectors_entry_append_to_current'}"}
do_callback
f85c5f2f5a3fff1b852aaf59a31dfe68834f0c6e5b944484c00a51c97bdd9441
vincenthz
libjson
NA
static int do_callback(json_parser *parser, int type) { if (!parser->callback) return 0; return (*parser->callback)(parser->userdata, type, NULL, 0); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402B6D", "function_addr": 4205421, "binary_name": "f85c5f2f5a3fff1b852aaf59a31dfe68834f0c6e5b944484c00a51c97bdd9441.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov rax, [rbp+var_8]"], [6, "mov rax, [rax+28h]"], [7, "test rax, rax"], [8, "jnz short loc_402B90"], [9, "mov eax, 0"], [10, "jmp short locret_402BB3"], [11, "mov rax, [rbp+var_8]"], [12, "mov r8, [rax+28h]"], [13, "mov rax, [rbp+var_8]"], [14, "mov rax, [rax+30h]"], [15, "mov esi, [rbp+var_C]"], [16, "mov ecx, 0"], [17, "mov edx, 0"], [18, "mov rdi, rax"], [19, "call r8"], [20, "leave"], [21, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [11, 3], [12, 11], [13, 3], [14, 13], [15, 4], [18, 14], [19, 12], [21, 9], [21, 19]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f85c5f2f5a3fff1b852aaf59a31dfe68834f0c6e5b944484c00a51c97bdd9441_f85c5f2f5a3fff1b852aaf59a31dfe68834f0c6e5b944484c00a51c97bdd9441.jsonl.gz", "strip_func_name": "sub_402B6D", "query": "\n\n\n__int64 __fastcall sub_402B6D(__int64 a1, unsigned int a2)\n{\n__int64 result; // rax\n\nif ( *(_QWORD *)(a1 + 40) )\nresult = (*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD, _QWORD))(a1 + 40))(*(_QWORD *)(a1 + 48), a2, 0LL, 0LL);\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_402B6D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'parser', 'a2': 'type', 'sub_402B6D': 'do_callback'}"}
gfa_cleanup
90e41d9aa32088e205465b4e405454e334ee54e0722a6f9fc6539009d5ecf4b9
lh3
gfatools
NA
void gfa_cleanup(gfa_t *g) { gfa_arc_rm(g); if (!gfa_arc_is_sorted(g)) { gfa_arc_sort(g); if (g->idx) free(g->idx); g->idx = 0; } if (g->idx == 0) gfa_arc_index(g); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408F78", "function_addr": 4231032, "binary_name": "90e41d9aa32088e205465b4e405454e334ee54e0722a6f9fc6539009d5ecf4b9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rdi, rax"], [6, "call sub_408D6E"], [7, "mov rax, [rbp+var_8]"], [8, "mov rdi, rax"], [9, "call sub_408291"], [10, "test eax, eax"], [11, "jnz short loc_408FD5"], [12, "mov rax, [rbp+var_8]"], [13, "mov rdi, rax"], [14, "call sub_408302"], [15, "mov rax, [rbp+var_8]"], [16, "mov rax, [rax+58h]"], [17, "test rax, rax"], [18, "jz short loc_408FC9"], [19, "mov rax, [rbp+var_8]"], [20, "mov rax, [rax+58h]"], [21, "mov rdi, rax"], [22, "call _free"], [23, "mov rax, [rbp+var_8]"], [24, "mov qword ptr [rax+58h], 0"], [25, "mov rax, [rbp+var_8]"], [26, "mov rax, [rax+58h]"], [27, "test rax, rax"], [28, "jnz short loc_408FEE"], [29, "mov rax, [rbp+var_8]"], [30, "mov rdi, rax"], [31, "call sub_408427"], [32, "nop"], [33, "leave"], [34, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 3], [8, 7], [10, 9], [11, 10], [12, 3], [13, 12], [15, 3], [16, 15], [17, 16], [18, 17], [19, 3], [20, 19], [21, 20], [23, 3], [24, 23], [25, 3], [26, 24], [26, 25], [27, 26], [28, 27], [29, 3], [30, 29], [34, 31], [34, 27]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/90e41d9aa32088e205465b4e405454e334ee54e0722a6f9fc6539009d5ecf4b9_90e41d9aa32088e205465b4e405454e334ee54e0722a6f9fc6539009d5ecf4b9.jsonl.gz", "strip_func_name": "sub_408F78", "query": "\n\n\n_QWORD *__fastcall sub_408F78(__int64 a1)\n{\n_QWORD *result; // rax\n\nsub_408D6E(a1);\nif ( !sub_408291(a1) )\n{\nsub_408302(a1);\nif ( *(_QWORD *)(a1 + 88) )\nfree(*(void **)(a1 + 88));\n*(_QWORD *)(a1 + 88) = 0LL;\n}\nresult = *(_QWORD **)(a1 + 88);\nif ( !result )\nresult = sub_408427(a1);\nreturn result;\n}\n\n\n\nQ:[a1,sub_408F78,sub_408D6E,sub_408291,sub_408302,sub_408427,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'g', 'sub_408F78': 'gfa_cleanup', 'sub_408D6E': 'gfa_arc_rm', 'sub_408291': 'gfa_arc_is_sorted', 'sub_408302': 'gfa_arc_sort', 'sub_408427': 'gfa_arc_index'}"}
archive_search_get_num_bpm_distance_candidates
2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3
smarco
gem3-mapper
NA
uint64_t archive_search_get_num_bpm_distance_candidates(const archive_search_t* const archive_search) { return approximate_search_get_num_filtering_candidates(&archive_search->approximate_search); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414953", "function_addr": 4278611, "binary_name": "2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "add rax, 2D8h"], [6, "mov rdi, rax"], [7, "call sub_40D9A0"], [8, "leave"], [9, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [9, 7]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3_2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.jsonl.gz", "strip_func_name": "sub_414953", "query": "\n\n\n__int64 __fastcall sub_414953(__int64 a1)\n{\nreturn sub_40D9A0(a1 + 728);\n}\n\n\n\nQ:[a1,sub_414953,sub_40D9A0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'archive_search', 'sub_414953': 'archive_search_get_num_bpm_distance_candidates', 'sub_40D9A0': 'approximate_search_get_num_filtering_candidates'}"}
swapit
b00facafb0d96d779d0a78ec9cd7e96ebfffae3122c5ff41f7eaa931cb821257
totalspectrum
spin2cpp
NA
static uint32_t swapit(uint32_t val1) { int32_t i, shift; uint32_t mask; uint32_t val2; val2 = 0; for (i = 0; i < 32; i++) { mask = swapmask[i]; shift = swapshift[i]; if (shift >= 0) val2 |= (val1 & mask) << shift; else val2 |= (val1 & mask) >> -shift; } return val2; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B128", "function_addr": 4239656, "binary_name": "b00facafb0d96d779d0a78ec9cd7e96ebfffae3122c5ff41f7eaa931cb821257.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_14], edi"], [3, "mov [rbp+var_8], 0"], [4, "mov [rbp+var_4], 0"], [5, "jmp short loc_40B193"], [6, "mov eax, [rbp+var_4]"], [7, "cdqe"], [8, "mov eax, dword_42C5C0[rax*4]"], [9, "mov [rbp+var_C], eax"], [10, "mov eax, [rbp+var_4]"], [11, "cdqe"], [12, "mov eax, dword_42C540[rax*4]"], [13, "mov [rbp+var_10], eax"], [14, "cmp [rbp+var_10], 0"], [15, "js short loc_40B179"], [16, "mov eax, [rbp+var_14]"], [17, "and eax, [rbp+var_C]"], [18, "mov edx, eax"], [19, "mov eax, [rbp+var_10]"], [20, "mov ecx, eax"], [21, "shl edx, cl"], [22, "mov eax, edx"], [23, "or [rbp+var_8], eax"], [24, "jmp short loc_40B18F"], [25, "mov eax, [rbp+var_14]"], [26, "and eax, [rbp+var_C]"], [27, "mov edx, eax"], [28, "mov eax, [rbp+var_10]"], [29, "neg eax"], [30, "mov ecx, eax"], [31, "shr edx, cl"], [32, "mov eax, edx"], [33, "or [rbp+var_8], eax"], [34, "add [rbp+var_4], 1"], [35, "cmp [rbp+var_4], 1Fh"], [36, "jle short loc_40B13F"], [37, "mov eax, [rbp+var_8]"], [38, "pop rbp"], [39, "retn"]], "data_dep": [[6, 4], [6, 34], [9, 8], [10, 34], [10, 4], [13, 12], [14, 13], [15, 14], [16, 2], [17, 9], [17, 16], [18, 17], [19, 13], [20, 19], [21, 18], [21, 20], [22, 21], [23, 22], [23, 3], [23, 33], [23, 23], [25, 2], [26, 25], [26, 9], [27, 26], [28, 13], [29, 28], [30, 29], [31, 30], [31, 27], [32, 31], [33, 23], [33, 32], [33, 3], [33, 33], [34, 4], [34, 34], [35, 4], [35, 34], [36, 35], [37, 3], [37, 33], [37, 23], [38, 0], [39, 37]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b00facafb0d96d779d0a78ec9cd7e96ebfffae3122c5ff41f7eaa931cb821257_b00facafb0d96d779d0a78ec9cd7e96ebfffae3122c5ff41f7eaa931cb821257.jsonl.gz", "strip_func_name": "sub_40B128", "query": "\n\n\n__int64 __fastcall sub_40B128(unsigned int a1)\n{\nunsigned int v1; // eax\nint v3; // [rsp+4h] [rbp-10h]\nint v4; // [rsp+8h] [rbp-Ch]\nunsigned int v5; // [rsp+Ch] [rbp-8h]\nint i; // [rsp+10h] [rbp-4h]\n\nv5 = 0;\nfor ( i = 0; i <= 31; ++i )\n{\nv4 = dword_42C5C0[i];\nv3 = dword_42C540[i];\nif ( v3 < 0 )\nv1 = (v4 & a1) >> -(char)v3;\nelse\nv1 = (v4 & a1) << v3;\nv5 |= v1;\n}\nreturn v5;\n}\n\n\n\nQ:[a1,v3,v4,v5,sub_40B128,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'val1', 'v3': 'shift', 'v4': 'mask', 'v5': 'val2', 'sub_40B128': 'swapit'}"}
btf_dedup_ref_type
f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a
Netronome
libkefir
NA
static int btf_dedup_ref_type(struct btf_dedup *d, __u32 type_id) { struct hashmap_entry *hash_entry; __u32 new_id = type_id, cand_id; struct btf_type *t, *cand; /* if we don't find equivalent type, then we are representative type */ int ref_type_id; long h; if (d->map[type_id] == BTF_IN_PROGRESS_ID) return -ELOOP; if (d->map[type_id] <= BTF_MAX_NR_TYPES) return resolve_type_id(d, type_id); t = d->btf->types[type_id]; d->map[type_id] = BTF_IN_PROGRESS_ID; switch (btf_kind(t)) { case BTF_KIND_CONST: case BTF_KIND_VOLATILE: case BTF_KIND_RESTRICT: case BTF_KIND_PTR: case BTF_KIND_TYPEDEF: case BTF_KIND_FUNC: ref_type_id = btf_dedup_ref_type(d, t->type); if (ref_type_id < 0) return ref_type_id; t->type = ref_type_id; h = btf_hash_common(t); for_each_dedup_cand(d, hash_entry, h) { cand_id = (__u32)(long)hash_entry->value; cand = d->btf->types[cand_id]; if (btf_equal_common(t, cand)) { new_id = cand_id; break; } } break; case BTF_KIND_ARRAY: { struct btf_array *info = btf_array(t); ref_type_id = btf_dedup_ref_type(d, info->type); if (ref_type_id < 0) return ref_type_id; info->type = ref_type_id; ref_type_id = btf_dedup_ref_type(d, info->index_type); if (ref_type_id < 0) return ref_type_id; info->index_type = ref_type_id; h = btf_hash_array(t); for_each_dedup_cand(d, hash_entry, h) { cand_id = (__u32)(long)hash_entry->value; cand = d->btf->types[cand_id]; if (btf_equal_array(t, cand)) { new_id = cand_id; break; } } break; } case BTF_KIND_FUNC_PROTO: { struct btf_param *param; __u16 vlen; int i; ref_type_id = btf_dedup_ref_type(d, t->type); if (ref_type_id < 0) return ref_type_id; t->type = ref_type_id; vlen = btf_vlen(t); param = btf_params(t); for (i = 0; i < vlen; i++) { ref_type_id = btf_dedup_ref_type(d, param->type); if (ref_type_id < 0) return ref_type_id; param->type = ref_type_id; param++; } h = btf_hash_fnproto(t); for_each_dedup_cand(d, hash_entry, h) { cand_id = (__u32)(long)hash_entry->value; cand = d->btf->types[cand_id]; if (btf_equal_fnproto(t, cand)) { new_id = cand_id; break; } } break; } default: return -EINVAL; } d->map[type_id] = new_id; if (type_id == new_id && btf_dedup_table_add(d, h, type_id)) return -ENOMEM; return new_id; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42F9C5", "function_addr": 4389317, "binary_name": "f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 88h"], [4, "mov [rbp+var_88], rdi"], [5, "mov [rbp+var_8C], esi"], [6, "mov eax, [rbp+var_8C]"], [7, "mov [rbp+var_1C], eax"], [8, "mov rax, [rbp+var_88]"], [9, "mov rdx, [rax+18h]"], [10, "mov eax, [rbp+var_8C]"], [11, "shl rax, 2"], [12, "add rax, rdx"], [13, "mov eax, [rax]"], [14, "cmp eax, 0FFFFFFFEh"], [15, "jnz short loc_42FA10"], [16, "mov eax, 0FFFFFFD8h"], [17, "jmp loc_43000F"], [18, "mov rax, [rbp+var_88]"], [19, "mov rdx, [rax+18h]"], [20, "mov eax, [rbp+var_8C]"], [21, "shl rax, 2"], [22, "add rax, rdx"], [23, "mov eax, [rax]"], [24, "test eax, eax"], [25, "js short loc_42FA4A"], [26, "mov edx, [rbp+var_8C]"], [27, "mov rax, [rbp+var_88]"], [28, "mov esi, edx"], [29, "mov rdi, rax"], [30, "call sub_42F00B"], [31, "jmp loc_43000F"], [32, "mov rax, [rbp+var_88]"], [33, "mov rax, [rax]"], [34, "mov rdx, [rax+8]"], [35, "mov eax, [rbp+var_8C]"], [36, "shl rax, 3"], [37, "add rax, rdx"], [38, "mov rax, [rax]"], [39, "mov [rbp+var_40], rax"], [40, "mov rax, [rbp+var_88]"], [41, "mov rdx, [rax+18h]"], [42, "mov eax, [rbp+var_8C]"], [43, "shl rax, 2"], [44, "add rax, rdx"], [45, "mov dword ptr [rax], 0FFFFFFFEh"], [46, "mov rax, [rbp+var_40]"], [47, "mov rdi, rax"], [48, "call sub_42AE40"], [49, "movzx eax, ax"], [50, "cmp eax, 0Dh"], [51, "jz loc_42FDE3"], [52, "cmp eax, 0Dh"], [53, "jg loc_42FFB6"], [54, "cmp eax, 0Ch"], [55, "jg loc_42FFB6"], [56, "cmp eax, 8"], [57, "jge short loc_42FACC"], [58, "cmp eax, 2"], [59, "jz short loc_42FACC"], [60, "cmp eax, 3"], [61, "jz loc_42FC37"], [62, "jmp loc_42FFB6"], [63, "mov rax, [rbp+var_40]"], [64, "mov edx, [rax+8]"], [65, "mov rax, [rbp+var_88]"], [66, "mov esi, edx"], [67, "mov rdi, rax"], [68, "call sub_42F9C5"], [69, "mov [rbp+var_44], eax"], [70, "cmp [rbp+var_44], 0"], [71, "jns short loc_42FAF5"], [72, "mov eax, [rbp+var_44]"], [73, "jmp loc_43000F"], [74, "mov edx, [rbp+var_44]"], [75, "mov rax, [rbp+var_40]"], [76, "mov [rax+8], edx"], [77, "mov rax, [rbp+var_40]"], [78, "mov rdi, rax"], [79, "call sub_42E351"], [80, "mov [rbp+var_28], rax"], [81, "mov rax, [rbp+var_88]"], [82, "mov rax, [rax+10h]"], [83, "mov rax, [rax+28h]"], [84, "mov ebx, eax"], [85, "mov rax, [rbp+var_88]"], [86, "mov rax, [rax+10h]"], [87, "mov rcx, [rax]"], [88, "mov rax, [rbp+var_88]"], [89, "mov rax, [rax+10h]"], [90, "mov rdx, [rax+10h]"], [91, "mov rax, [rbp+var_28]"], [92, "mov rsi, rdx"], [93, "mov rdi, rax"], [94, "call rcx"], [95, "mov esi, ebx"], [96, "mov rdi, rax"], [97, "call sub_42AFF5"], [98, "mov [rbp+var_78], rax"], [99, "mov rax, [rbp+var_88]"], [100, "mov rax, [rax+10h]"], [101, "mov rax, [rax+18h]"], [102, "test rax, rax"], [103, "jz short loc_42FB8A"], [104, "mov rax, [rbp+var_88]"], [105, "mov rax, [rax+10h]"], [106, "mov rdx, [rax+18h]"], [107, "mov rax, [rbp+var_78]"], [108, "shl rax, 3"], [109, "add rax, rdx"], [110, "mov rax, [rax]"], [111, "jmp short loc_42FB8F"], [112, "mov eax, 0"], [113, "mov [rbp+var_18], rax"], [114, "jmp loc_42FC27"], [115, "mov rax, [rbp+var_88]"], [116, "mov rax, [rax+10h]"], [117, "mov r8, [rax+8]"], [118, "mov rax, [rbp+var_88]"], [119, "mov rax, [rax+10h]"], [120, "mov rdx, [rax+10h]"], [121, "mov rcx, [rbp+var_28]"], [122, "mov rax, [rbp+var_18]"], [123, "mov rax, [rax]"], [124, "mov rsi, rcx"], [125, "mov rdi, rax"], [126, "call r8"], [127, "test al, al"], [128, "jz short loc_42FC1B"], [129, "mov rax, [rbp+var_18]"], [130, "mov rax, [rax+8]"], [131, "mov [rbp+var_54], eax"], [132, "mov rax, [rbp+var_88]"], [133, "mov rax, [rax]"], [134, "mov rdx, [rax+8]"], [135, "mov eax, [rbp+var_54]"], [136, "shl rax, 3"], [137, "add rax, rdx"], [138, "mov rax, [rax]"], [139, "mov [rbp+var_60], rax"], [140, "mov rdx, [rbp+var_60]"], [141, "mov rax, [rbp+var_40]"], [142, "mov rsi, rdx"], [143, "mov rdi, rax"], [144, "call sub_42E3B4"], [145, "test al, al"], [146, "jz short loc_42FC1B"], [147, "mov eax, [rbp+var_54]"], [148, "mov [rbp+var_1C], eax"], [149, "nop"], [150, "jmp loc_42FFBD"], [151, "mov rax, [rbp+var_18]"], [152, "mov rax, [rax+10h]"], [153, "mov [rbp+var_18], rax"], [154, "cmp [rbp+var_18], 0"], [155, "jnz loc_42FB98"], [156, "jmp loc_42FFBD"], [157, "mov rax, [rbp+var_40]"], [158, "mov rdi, rax"], [159, "call sub_42AF89"], [160, "mov [rbp+var_68], rax"], [161, "mov rax, [rbp+var_68]"], [162, "mov edx, [rax]"], [163, "mov rax, [rbp+var_88]"], [164, "mov esi, edx"], [165, "mov rdi, rax"], [166, "call sub_42F9C5"], [167, "mov [rbp+var_44], eax"], [168, "cmp [rbp+var_44], 0"], [169, "jns short loc_42FC6F"], [170, "mov eax, [rbp+var_44]"], [171, "jmp loc_43000F"], [172, "mov edx, [rbp+var_44]"], [173, "mov rax, [rbp+var_68]"], [174, "mov [rax], edx"], [175, "mov rax, [rbp+var_68]"], [176, "mov edx, [rax+4]"], [177, "mov rax, [rbp+var_88]"], [178, "mov esi, edx"], [179, "mov rdi, rax"], [180, "call sub_42F9C5"], [181, "mov [rbp+var_44], eax"], [182, "cmp [rbp+var_44], 0"], [183, "jns short loc_42FCA1"], [184, "mov eax, [rbp+var_44]"], [185, "jmp loc_43000F"], [186, "mov edx, [rbp+var_44]"], [187, "mov rax, [rbp+var_68]"], [188, "mov [rax+4], edx"], [189, "mov rax, [rbp+var_40]"], [190, "mov rdi, rax"], [191, "call sub_42E7CD"], [192, "mov [rbp+var_28], rax"], [193, "mov rax, [rbp+var_88]"], [194, "mov rax, [rax+10h]"], [195, "mov rax, [rax+28h]"], [196, "mov ebx, eax"], [197, "mov rax, [rbp+var_88]"], [198, "mov rax, [rax+10h]"], [199, "mov rcx, [rax]"], [200, "mov rax, [rbp+var_88]"], [201, "mov rax, [rax+10h]"], [202, "mov rdx, [rax+10h]"], [203, "mov rax, [rbp+var_28]"], [204, "mov rsi, rdx"], [205, "mov rdi, rax"], [206, "call rcx"], [207, "mov esi, ebx"], [208, "mov rdi, rax"], [209, "call sub_42AFF5"], [210, "mov [rbp+var_70], rax"], [211, "mov rax, [rbp+var_88]"], [212, "mov rax, [rax+10h]"], [213, "mov rax, [rax+18h]"], [214, "test rax, rax"], [215, "jz short loc_42FD36"], [216, "mov rax, [rbp+var_88]"], [217, "mov rax, [rax+10h]"], [218, "mov rdx, [rax+18h]"], [219, "mov rax, [rbp+var_70]"], [220, "shl rax, 3"], [221, "add rax, rdx"], [222, "mov rax, [rax]"], [223, "jmp short loc_42FD3B"], [224, "mov eax, 0"], [225, "mov [rbp+var_18], rax"], [226, "jmp loc_42FDD3"], [227, "mov rax, [rbp+var_88]"], [228, "mov rax, [rax+10h]"], [229, "mov r8, [rax+8]"], [230, "mov rax, [rbp+var_88]"], [231, "mov rax, [rax+10h]"], [232, "mov rdx, [rax+10h]"], [233, "mov rcx, [rbp+var_28]"], [234, "mov rax, [rbp+var_18]"], [235, "mov rax, [rax]"], [236, "mov rsi, rcx"], [237, "mov rdi, rax"], [238, "call r8"], [239, "test al, al"], [240, "jz short loc_42FDC7"], [241, "mov rax, [rbp+var_18]"], [242, "mov rax, [rax+8]"], [243, "mov [rbp+var_54], eax"], [244, "mov rax, [rbp+var_88]"], [245, "mov rax, [rax]"], [246, "mov rdx, [rax+8]"], [247, "mov eax, [rbp+var_54]"], [248, "shl rax, 3"], [249, "add rax, rdx"], [250, "mov rax, [rax]"], [251, "mov [rbp+var_60], rax"], [252, "mov rdx, [rbp+var_60]"], [253, "mov rax, [rbp+var_40]"], [254, "mov rsi, rdx"], [255, "mov rdi, rax"], [256, "call sub_42E852"], [257, "test al, al"], [258, "jz short loc_42FDC7"], [259, "mov eax, [rbp+var_54]"], [260, "mov [rbp+var_1C], eax"], [261, "nop"], [262, "jmp loc_42FFBD"], [263, "mov rax, [rbp+var_18]"], [264, "mov rax, [rax+10h]"], [265, "mov [rbp+var_18], rax"], [266, "cmp [rbp+var_18], 0"], [267, "jnz loc_42FD44"], [268, "jmp loc_42FFBD"], [269, "mov rax, [rbp+var_40]"], [270, "mov edx, [rax+8]"], [271, "mov rax, [rbp+var_88]"], [272, "mov esi, edx"], [273, "mov rdi, rax"], [274, "call sub_42F9C5"], [275, "mov [rbp+var_44], eax"], [276, "cmp [rbp+var_44], 0"], [277, "jns short loc_42FE0C"], [278, "mov eax, [rbp+var_44]"], [279, "jmp loc_43000F"], [280, "mov edx, [rbp+var_44]"], [281, "mov rax, [rbp+var_40]"], [282, "mov [rax+8], edx"], [283, "mov rax, [rbp+var_40]"], [284, "mov rdi, rax"], [285, "call sub_42AE57"], [286, "mov [rbp+var_46], ax"], [287, "mov rax, [rbp+var_40]"], [288, "mov rdi, rax"], [289, "call sub_42AFBF"], [290, "mov [rbp+var_30], rax"], [291, "mov [rbp+var_34], 0"], [292, "jmp short loc_42FE7B"], [293, "mov rax, [rbp+var_30]"], [294, "mov edx, [rax+4]"], [295, "mov rax, [rbp+var_88]"], [296, "mov esi, edx"], [297, "mov rdi, rax"], [298, "call sub_42F9C5"], [299, "mov [rbp+var_44], eax"], [300, "cmp [rbp+var_44], 0"], [301, "jns short loc_42FE68"], [302, "mov eax, [rbp+var_44]"], [303, "jmp loc_43000F"], [304, "mov edx, [rbp+var_44]"], [305, "mov rax, [rbp+var_30]"], [306, "mov [rax+4], edx"], [307, "add [rbp+var_30], 8"], [308, "add [rbp+var_34], 1"], [309, "movzx eax, [rbp+var_46]"], [310, "cmp [rbp+var_34], eax"], [311, "jl short loc_42FE3F"], [312, "mov rax, [rbp+var_40]"], [313, "mov rdi, rax"], [314, "call sub_42E943"], [315, "mov [rbp+var_28], rax"], [316, "mov rax, [rbp+var_88]"], [317, "mov rax, [rax+10h]"], [318, "mov rax, [rax+28h]"], [319, "mov ebx, eax"], [320, "mov rax, [rbp+var_88]"], [321, "mov rax, [rax+10h]"], [322, "mov rcx, [rax]"], [323, "mov rax, [rbp+var_88]"], [324, "mov rax, [rax+10h]"], [325, "mov rdx, [rax+10h]"], [326, "mov rax, [rbp+var_28]"], [327, "mov rsi, rdx"], [328, "mov rdi, rax"], [329, "call rcx"], [330, "mov esi, ebx"], [331, "mov rdi, rax"], [332, "call sub_42AFF5"], [333, "mov [rbp+var_50], rax"], [334, "mov rax, [rbp+var_88]"], [335, "mov rax, [rax+10h]"], [336, "mov rax, [rax+18h]"], [337, "test rax, rax"], [338, "jz short loc_42FF0F"], [339, "mov rax, [rbp+var_88]"], [340, "mov rax, [rax+10h]"], [341, "mov rdx, [rax+18h]"], [342, "mov rax, [rbp+var_50]"], [343, "shl rax, 3"], [344, "add rax, rdx"], [345, "mov rax, [rax]"], [346, "jmp short loc_42FF14"], [347, "mov eax, 0"], [348, "mov [rbp+var_18], rax"], [349, "jmp loc_42FFA9"], [350, "mov rax, [rbp+var_88]"], [351, "mov rax, [rax+10h]"], [352, "mov r8, [rax+8]"], [353, "mov rax, [rbp+var_88]"], [354, "mov rax, [rax+10h]"], [355, "mov rdx, [rax+10h]"], [356, "mov rcx, [rbp+var_28]"], [357, "mov rax, [rbp+var_18]"], [358, "mov rax, [rax]"], [359, "mov rsi, rcx"], [360, "mov rdi, rax"], [361, "call r8"], [362, "test al, al"], [363, "jz short loc_42FF9D"], [364, "mov rax, [rbp+var_18]"], [365, "mov rax, [rax+8]"], [366, "mov [rbp+var_54], eax"], [367, "mov rax, [rbp+var_88]"], [368, "mov rax, [rax]"], [369, "mov rdx, [rax+8]"], [370, "mov eax, [rbp+var_54]"], [371, "shl rax, 3"], [372, "add rax, rdx"], [373, "mov rax, [rax]"], [374, "mov [rbp+var_60], rax"], [375, "mov rdx, [rbp+var_60]"], [376, "mov rax, [rbp+var_40]"], [377, "mov rsi, rdx"], [378, "mov rdi, rax"], [379, "call sub_42E9D7"], [380, "test al, al"], [381, "jz short loc_42FF9D"], [382, "mov eax, [rbp+var_54]"], [383, "mov [rbp+var_1C], eax"], [384, "nop"], [385, "jmp short loc_42FFBD"], [386, "mov rax, [rbp+var_18]"], [387, "mov rax, [rax+10h]"], [388, "mov [rbp+var_18], rax"], [389, "cmp [rbp+var_18], 0"], [390, "jnz loc_42FF1D"], [391, "jmp short loc_42FFBD"], [392, "mov eax, 0FFFFFFEAh"], [393, "jmp short loc_43000F"], [394, "mov rax, [rbp+var_88]"], [395, "mov rdx, [rax+18h]"], [396, "mov eax, [rbp+var_8C]"], [397, "shl rax, 2"], [398, "add rdx, rax"], [399, "mov eax, [rbp+var_1C]"], [400, "mov [rdx], eax"], [401, "mov eax, [rbp+var_8C]"], [402, "cmp eax, [rbp+var_1C]"], [403, "jnz short loc_43000C"], [404, "mov edx, [rbp+var_8C]"], [405, "mov rcx, [rbp+var_28]"], [406, "mov rax, [rbp+var_88]"], [407, "mov rsi, rcx"], [408, "mov rdi, rax"], [409, "call sub_42D5A9"], [410, "test eax, eax"], [411, "jz short loc_43000C"], [412, "mov eax, 0FFFFFFF4h"], [413, "jmp short loc_43000F"], [414, "mov eax, [rbp+var_1C]"], [415, "mov rbx, [rbp+var_8]"], [416, "leave"], [417, "retn"]], "data_dep": [[6, 5], [7, 6], [8, 4], [9, 8], [10, 5], [11, 10], [12, 9], [12, 11], [13, 12], [14, 13], [15, 14], [18, 4], [19, 18], [20, 5], [21, 20], [22, 19], [22, 21], [23, 22], [24, 23], [25, 24], [26, 5], [27, 4], [28, 26], [29, 27], [32, 4], [33, 32], [34, 33], [35, 5], [36, 35], [37, 34], [37, 36], [38, 37], [39, 38], [40, 4], [41, 40], [42, 5], [43, 42], [44, 41], [44, 43], [45, 44], [46, 39], [47, 46], [49, 48], [50, 49], [51, 50], [52, 49], [53, 52], [54, 49], [55, 54], [56, 49], [57, 56], [58, 49], [59, 58], [60, 49], [61, 60], [63, 39], [64, 45], [64, 63], [65, 4], [66, 64], [67, 65], [69, 68], [70, 69], [71, 70], [72, 69], [74, 69], [75, 39], [76, 75], [76, 74], [77, 39], [78, 77], [80, 79], [81, 4], [82, 81], [82, 76], [83, 76], [83, 82], [84, 83], [85, 4], [86, 76], [86, 85], [87, 45], [87, 86], [87, 76], [88, 4], [89, 76], [89, 88], [90, 76], [90, 89], [91, 80], [92, 90], [93, 91], [94, 87], [95, 84], [96, 94], [98, 97], [99, 4], [100, 99], [100, 76], [101, 100], [101, 76], [102, 101], [103, 102], [104, 4], [105, 45], [105, 104], [105, 76], [106, 105], [106, 45], [106, 76], [107, 98], [108, 107], [109, 106], [109, 108], [110, 109], [110, 45], [110, 76], [113, 112], [113, 110], [115, 4], [116, 45], [116, 76], [116, 115], [117, 116], [117, 45], [117, 76], [118, 4], [119, 45], [119, 118], [119, 76], [120, 45], [120, 119], [120, 76], [121, 80], [122, 113], [122, 153], [123, 45], [123, 122], [123, 76], [124, 121], [125, 123], [126, 117], [127, 126], [128, 127], [129, 113], [129, 153], [130, 45], [130, 76], [130, 129], [131, 130], [132, 4], [133, 45], [133, 132], [133, 76], [134, 76], [134, 45], [134, 133], [135, 131], [136, 135], [137, 134], [137, 136], [138, 45], [138, 137], [138, 76], [139, 138], [140, 139], [141, 39], [142, 140], [143, 141], [145, 144], [146, 145], [147, 131], [148, 147], [151, 113], [151, 153], [152, 76], [152, 151], [152, 45], [153, 152], [154, 113], [154, 153], [155, 154], [157, 39], [158, 157], [160, 159], [161, 160], [162, 161], [162, 45], [163, 4], [164, 162], [165, 163], [167, 166], [168, 167], [169, 168], [170, 167], [172, 167], [173, 160], [174, 173], [174, 172], [175, 160], [176, 175], [176, 174], [177, 4], [178, 176], [179, 177], [181, 180], [182, 181], [183, 182], [184, 181], [186, 181], [187, 160], [188, 187], [188, 186], [189, 39], [190, 189], [192, 191], [193, 4], [194, 193], [194, 188], [195, 188], [195, 194], [196, 195], [197, 4], [198, 188], [198, 197], [199, 198], [199, 188], [199, 174], [200, 4], [201, 188], [201, 200], [202, 188], [202, 201], [203, 192], [204, 202], [205, 203], [206, 199], [207, 196], [208, 206], [210, 209], [211, 4], [212, 211], [212, 188], [213, 212], [213, 188], [214, 213], [215, 214], [216, 4], [217, 216], [217, 45], [217, 188], [217, 174], [218, 45], [218, 217], [218, 188], [218, 174], [219, 210], [220, 219], [221, 218], [221, 220], [222, 188], [222, 174], [222, 45], [222, 221], [225, 224], [225, 222], [227, 4], [228, 188], [228, 174], [228, 227], [228, 45], [229, 228], [229, 45], [229, 188], [229, 174], [230, 4], [231, 230], [231, 188], [231, 174], [231, 45], [232, 45], [232, 231], [232, 188], [232, 174], [233, 192], [234, 265], [234, 225], [235, 45], [235, 234], [235, 188], [235, 174], [236, 233], [237, 235], [238, 229], [239, 238], [240, 239], [241, 265], [241, 225], [242, 45], [242, 241], [242, 188], [242, 174], [243, 242], [244, 4], [245, 45], [245, 244], [245, 188], [245, 174], [246, 45], [246, 245], [246, 188], [246, 174], [247, 243], [248, 247], [249, 246], [249, 248], [250, 249], [250, 188], [250, 174], [250, 45], [251, 250], [252, 251], [253, 39], [254, 252], [255, 253], [257, 256], [258, 257], [259, 243], [260, 259], [263, 225], [263, 265], [264, 45], [264, 263], [264, 188], [264, 174], [265, 264], [266, 225], [266, 265], [267, 266], [269, 39], [270, 45], [270, 269], [271, 4], [272, 270], [273, 271], [275, 274], [276, 275], [277, 276], [278, 275], [280, 275], [281, 39], [282, 280], [282, 281], [283, 39], [284, 283], [286, 285], [287, 39], [288, 287], [290, 289], [293, 290], [293, 307], [294, 306], [294, 45], [294, 282], [294, 293], [295, 4], [296, 294], [297, 295], [299, 298], [300, 299], [301, 300], [302, 299], [304, 299], [305, 307], [305, 290], [306, 304], [306, 305], [307, 290], [307, 307], [308, 291], [308, 308], [309, 286], [310, 291], [310, 309], [310, 308], [311, 310], [312, 39], [313, 312], [315, 314], [316, 4], [317, 316], [317, 306], [317, 45], [317, 282], [318, 306], [318, 45], [318, 282], [318, 317], [319, 318], [320, 4], [321, 320], [321, 306], [321, 45], [321, 282], [322, 321], [322, 306], [322, 45], [322, 282], [323, 4], [324, 306], [324, 45], [324, 282], [324, 323], [325, 306], [325, 324], [325, 45], [325, 282], [326, 315], [327, 325], [328, 326], [329, 322], [330, 319], [331, 329], [333, 332], [334, 4], [335, 334], [335, 306], [335, 45], [335, 282], [336, 335], [336, 306], [336, 45], [336, 282], [337, 336], [338, 337], [339, 4], [340, 306], [340, 45], [340, 282], [340, 339], [341, 306], [341, 45], [341, 282], [341, 340], [342, 333], [343, 342], [344, 343], [344, 341], [345, 344], [345, 306], [345, 45], [345, 282], [348, 345], [348, 347], [350, 4], [351, 306], [351, 45], [351, 282], [351, 350], [352, 306], [352, 45], [352, 282], [352, 351], [353, 4], [354, 353], [354, 306], [354, 45], [354, 282], [355, 354], [355, 306], [355, 45], [355, 282], [356, 315], [357, 348], [357, 388], [358, 357], [358, 306], [358, 45], [358, 282], [359, 356], [360, 358], [361, 352], [362, 361], [363, 362], [364, 388], [364, 348], [365, 306], [365, 45], [365, 282], [365, 364], [366, 365], [367, 4], [368, 367], [368, 306], [368, 45], [368, 282], [369, 368], [369, 306], [369, 45], [369, 282], [370, 366], [371, 370], [372, 369], [372, 371], [373, 45], [373, 282], [373, 306], [373, 372], [374, 373], [375, 374], [376, 39], [377, 375], [378, 376], [380, 379], [381, 380], [382, 366], [383, 382], [386, 388], [386, 348], [387, 306], [387, 386], [387, 45], [387, 282], [388, 387], [389, 348], [389, 388], [390, 389], [394, 4], [395, 394], [395, 306], [395, 45], [395, 188], [395, 282], [395, 174], [395, 76], [395, 400], [396, 5], [397, 396], [398, 395], [398, 397], [399, 383], [399, 148], [399, 260], [399, 7], [400, 398], [400, 399], [401, 5], [402, 383], [402, 401], [402, 148], [402, 260], [402, 7], [403, 402], [404, 5], [405, 80], [405, 192], [405, 315], [406, 4], [407, 405], [408, 406], [410, 409], [411, 410], [414, 148], [414, 260], [414, 7], [414, 383], [417, 302], [417, 414], [417, 278], [417, 72], [417, 184], [417, 170], [417, 412], [417, 30], [417, 16], [417, 392]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a_f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a.jsonl.gz", "strip_func_name": "sub_42F9C5", "query": "\n\n\n__int64 __fastcall sub_42F9C5(_QWORD *a1, unsigned int a2)\n{\n__int64 result; // rax\nint v3; // eax\nchar v4; // bl\n__int64 v5; // rax\n_QWORD *v6; // rax\nchar v7; // bl\n__int64 v8; // rax\n_QWORD *v9; // rax\nchar v10; // bl\n__int64 v11; // rax\n_QWORD *v12; // rax\nunsigned __int64 v13; // [rsp+18h] [rbp-78h]\nunsigned __int64 v14; // [rsp+20h] [rbp-70h]\nunsigned int *v15; // [rsp+28h] [rbp-68h]\nunsigned int v16; // [rsp+3Ch] [rbp-54h]\nunsigned int v17; // [rsp+3Ch] [rbp-54h]\nunsigned int v18; // [rsp+3Ch] [rbp-54h]\nunsigned __int64 v19; // [rsp+40h] [rbp-50h]\nunsigned __int16 v20; // [rsp+4Ah] [rbp-46h]\nint v21; // [rsp+4Ch] [rbp-44h]\nint v22; // [rsp+4Ch] [rbp-44h]\nint v23; // [rsp+4Ch] [rbp-44h]\nint v24; // [rsp+4Ch] [rbp-44h]\nint v25; // [rsp+4Ch] [rbp-44h]\nunsigned int *v26; // [rsp+50h] [rbp-40h]\nint i; // [rsp+5Ch] [rbp-34h]\n__int64 v28; // [rsp+60h] [rbp-30h]\n__int64 v29; // [rsp+68h] [rbp-28h]\nunsigned int v30; // [rsp+74h] [rbp-1Ch]\n_QWORD *k; // [rsp+78h] [rbp-18h]\n_QWORD *l; // [rsp+78h] [rbp-18h]\n_QWORD *j; // [rsp+78h] [rbp-18h]\n\nv30 = a2;\nif ( *(_DWORD *)(a1[3] + 4LL * a2) == -2 )\nreturn 4294967256LL;\nif ( *(int *)(a1[3] + 4LL * a2) >= 0 )\nreturn sub_42F00B((__int64)a1, a2);\nv26 = *(unsigned int **)(*(_QWORD *)(*a1 + 8LL) + 8LL * a2);\n*(_DWORD *)(a1[3] + 4LL * a2) = -2;\nv3 = (unsigned __int16)sub_42AE40((__int64)v26);\nif ( (unsigned __int16)v3 == 13 )\n{\nv24 = sub_42F9C5(a1, v26[2]);\nif ( v24 < 0 )\nreturn (unsigned int)v24;\nv26[2] = v24;\nv20 = sub_42AE57((__int64)v26);\nv28 = sub_42AFBF((__int64)v26);\nfor ( i = 0; i < v20; ++i )\n{\nv25 = sub_42F9C5(a1, *(unsigned int *)(v28 + 4));\nif ( v25 < 0 )\nreturn (unsigned int)v25;\n*(_DWORD *)(v28 + 4) = v25;\nv28 += 8LL;\n}\nv29 = sub_42E943(v26);\nv10 = *(_QWORD *)(a1[2] + 40LL);\nv11 = (*(__int64 (__fastcall **)(__int64, _QWORD))a1[2])(v29, *(_QWORD *)(a1[2] + 16LL));\nv19 = sub_42AFF5(v11, v10);\nif ( *(_QWORD *)(a1[2] + 24LL) )\nv12 = *(_QWORD **)(*(_QWORD *)(a1[2] + 24LL) + 8 * v19);\nelse\nv12 = 0LL;\nfor ( j = v12; j; j = (_QWORD *)j[2] )\n{\nif ( (*(unsigned __int8 (__fastcall **)(_QWORD, __int64, _QWORD))(a1[2] + 8LL))(\n*j,\nv29,\n*(_QWORD *)(a1[2] + 16LL)) )\n{\nv18 = j[1];\nif ( (unsigned __int8)sub_42E9D7(v26, *(_DWORD **)(*(_QWORD *)(*a1 + 8LL) + 8LL * v18)) )\n{\nv30 = v18;\nbreak;\n}\n}\n}\n}\nelse\n{\nif ( v3 > 13 || v3 > 12 )\nreturn 4294967274LL;\nif ( v3 >= 8 || v3 == 2 )\n{\nv21 = sub_42F9C5(a1, v26[2]);\nif ( v21 < 0 )\nreturn (unsigned int)v21;\nv26[2] = v21;\nv29 = sub_42E351(v26);\nv4 = *(_QWORD *)(a1[2] + 40LL);\nv5 = (*(__int64 (__fastcall **)(__int64, _QWORD))a1[2])(v29, *(_QWORD *)(a1[2] + 16LL));\nv13 = sub_42AFF5(v5, v4);\nif ( *(_QWORD *)(a1[2] + 24LL) )\nv6 = *(_QWORD **)(*(_QWORD *)(a1[2] + 24LL) + 8 * v13);\nelse\nv6 = 0LL;\nfor ( k = v6; k; k = (_QWORD *)k[2] )\n{\nif ( (*(unsigned __int8 (__fastcall **)(_QWORD, __int64, _QWORD))(a1[2] + 8LL))(\n*k,\nv29,\n*(_QWORD *)(a1[2] + 16LL)) )\n{\nv16 = k[1];\nif ( sub_42E3B4(v26, *(_DWORD **)(*(_QWORD *)(*a1 + 8LL) + 8LL * v16)) )\n{\nv30 = v16;\nbreak;\n}\n}\n}\n}\nelse\n{\nif ( v3 != 3 )\nreturn 4294967274LL;\nv15 = (unsigned int *)sub_42AF89((__int64)v26);\nv22 = sub_42F9C5(a1, *v15);\nif ( v22 < 0 )\nreturn (unsigned int)v22;\n*v15 = v22;\nv23 = sub_42F9C5(a1, v15[1]);\nif ( v23 < 0 )\nreturn (unsigned int)v23;\nv15[1] = v23;\nv29 = sub_42E7CD(v26);\nv7 = *(_QWORD *)(a1[2] + 40LL);\nv8 = (*(__int64 (__fastcall **)(__int64, _QWORD))a1[2])(v29, *(_QWORD *)(a1[2] + 16LL));\nv14 = sub_42AFF5(v8, v7);\nif ( *(_QWORD *)(a1[2] + 24LL) )\nv9 = *(_QWORD **)(*(_QWORD *)(a1[2] + 24LL) + 8 * v14);\nelse\nv9 = 0LL;\nfor ( l = v9; l; l = (_QWORD *)l[2] )\n{\nif ( (*(unsigned __int8 (__fastcall **)(_QWORD, __int64, _QWORD))(a1[2] + 8LL))(\n*l,\nv29,\n*(_QWORD *)(a1[2] + 16LL)) )\n{\nv17 = l[1];\nif ( sub_42E852(v26, *(_DWORD **)(*(_QWORD *)(*a1 + 8LL) + 8LL * v17)) )\n{\nv30 = v17;\nbreak;\n}\n}\n}\n}\n}\n*(_DWORD *)(4LL * a2 + a1[3]) = v30;\nif ( a2 == v30 && (unsigned int)sub_42D5A9((__int64)a1, v29, a2) )\nresult = 4294967284LL;\nelse\nresult = v30;\nreturn result;\n}\n\n\n\nQ:[a1,a2,v6,v13,v14,v15,v16,v19,v20,v22,v26,v28,v29,v30,j,sub_42F9C5,sub_42F00B,sub_42AE40,sub_42AE57,sub_42AFBF,sub_42E943,sub_42AFF5,sub_42E9D7,sub_42E351,sub_42E3B4,sub_42AF89,sub_42E7CD,sub_42E852,sub_42D5A9,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'd', 'a2': 'type_id', 'v6': 'result', 'v13': 'bkt', 'v14': 'bkt_0', 'v15': 'info', 'v16': 'cand_ida', 'v19': 'bkt_1', 'v20': 'vlen', 'v22': 'ref_type_idb', 'v26': 't', 'v28': 'param', 'v29': 'h', 'v30': 'new_id', 'j': 'hash_entrya', 'sub_42F9C5': 'btf_dedup_ref_type', 'sub_42F00B': 'resolve_type_id', 'sub_42AE40': 'btf_kind_0', 'sub_42AE57': 'btf_vlen_0', 'sub_42AFBF': 'btf_params', 'sub_42E943': 'btf_hash_fnproto', 'sub_42AFF5': 'hash_bits_0', 'sub_42E9D7': 'btf_equal_fnproto', 'sub_42E351': 'btf_hash_common', 'sub_42E3B4': 'btf_equal_common', 'sub_42AF89': 'btf_array', 'sub_42E7CD': 'btf_hash_array', 'sub_42E852': 'btf_equal_array', 'sub_42D5A9': 'btf_dedup_table_add'}"}
TF_HandleReceivedMessage
8133ae02f1d68463182c4dda9703638a97776e2304f635f34bbbe2c7956432d3
MightyPork
TinyFrame
NA
static void _TF_FN TF_HandleReceivedMessage(TinyFrame *tf) { TF_COUNT i; struct TF_IdListener_ *ilst; struct TF_TypeListener_ *tlst; struct TF_GenericListener_ *glst; TF_Result res; // Prepare message object TF_Msg msg; TF_ClearMsg(&msg); msg.frame_id = tf->id; msg.is_response = false; msg.type = tf->type; msg.data = tf->data; msg.len = tf->len; // Any listener can consume the message, or let someone else handle it. // The loop upper bounds are the highest currently used slot index // (or close to it, depending on the order of listener removals). // ID listeners first for (i = 0; i < tf->count_id_lst; i++) { ilst = &tf->id_listeners[i]; if (ilst->fn && ilst->id == msg.frame_id) { msg.userdata = ilst->userdata; // pass userdata pointer to the callback msg.userdata2 = ilst->userdata2; res = ilst->fn(tf, &msg); ilst->userdata = msg.userdata; // put it back (may have changed the pointer or set to NULL) ilst->userdata2 = msg.userdata2; // put it back (may have changed the pointer or set to NULL) if (res != TF_NEXT) { // if it's TF_CLOSE, we assume user already cleaned up userdata if (res == TF_RENEW) { renew_id_listener(ilst); } else if (res == TF_CLOSE) { // Set userdata to NULL to avoid calling user for cleanup ilst->userdata = NULL; ilst->userdata2 = NULL; cleanup_id_listener(tf, i, ilst); } return; } } } // clean up for the following listeners that don't use userdata (this avoids data from // an ID listener that returned TF_NEXT from leaking into Type and Generic listeners) msg.userdata = NULL; msg.userdata2 = NULL; // Type listeners for (i = 0; i < tf->count_type_lst; i++) { tlst = &tf->type_listeners[i]; if (tlst->fn && tlst->type == msg.type) { res = tlst->fn(tf, &msg); if (res != TF_NEXT) { // type listeners don't have userdata. // TF_RENEW doesn't make sense here because type listeners don't expire = same as TF_STAY if (res == TF_CLOSE) { cleanup_type_listener(tf, i, tlst); } return; } } } // Generic listeners for (i = 0; i < tf->count_generic_lst; i++) { glst = &tf->generic_listeners[i]; if (glst->fn) { res = glst->fn(tf, &msg); if (res != TF_NEXT) { // generic listeners don't have userdata. // TF_RENEW doesn't make sense here because generic listeners don't expire = same as TF_STAY // note: It's not expected that user will have multiple generic listeners, or // ever actually remove them. They're most useful as default callbacks if no other listener // handled the message. if (res == TF_CLOSE) { cleanup_generic_listener(tf, i, glst); } return; } } } TF_Error("Unhandled message, type %d", (int)msg.type); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401C40", "function_addr": 4201536, "binary_name": "8133ae02f1d68463182c4dda9703638a97776e2304f635f34bbbe2c7956432d3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_58], rdi"], [4, "lea rax, [rbp+var_50]"], [5, "mov rdi, rax"], [6, "call sub_4014DD"], [7, "mov rax, [rbp+var_58]"], [8, "movzx eax, byte ptr [rax+1Ah]"], [9, "mov [rbp+var_50], al"], [10, "mov [rbp+var_4F], 0"], [11, "mov rax, [rbp+var_58]"], [12, "movzx eax, byte ptr [rax+424h]"], [13, "mov [rbp+var_4E], al"], [14, "mov rax, [rbp+var_58]"], [15, "add rax, 1Eh"], [16, "mov [rbp+var_48], rax"], [17, "mov rax, [rbp+var_58]"], [18, "movzx eax, word ptr [rax+1Ch]"], [19, "mov [rbp+var_40], ax"], [20, "mov [rbp+var_1], 0"], [21, "jmp loc_401D93"], [22, "movzx eax, [rbp+var_1]"], [23, "movsxd rdx, eax"], [24, "mov rax, rdx"], [25, "add rax, rax"], [26, "add rax, rdx"], [27, "shl rax, 4"], [28, "lea rdx, [rax+830h]"], [29, "mov rax, [rbp+var_58]"], [30, "add rax, rdx"], [31, "add rax, 8"], [32, "mov [rbp+var_28], rax"], [33, "mov rax, [rbp+var_28]"], [34, "mov rax, [rax+8]"], [35, "test rax, rax"], [36, "jz loc_401D89"], [37, "mov rax, [rbp+var_28]"], [38, "movzx edx, byte ptr [rax]"], [39, "movzx eax, [rbp+var_50]"], [40, "cmp dl, al"], [41, "jnz loc_401D89"], [42, "mov rax, [rbp+var_28]"], [43, "mov rax, [rax+20h]"], [44, "mov [rbp+var_38], rax"], [45, "mov rax, [rbp+var_28]"], [46, "mov rax, [rax+28h]"], [47, "mov [rbp+var_30], rax"], [48, "mov rax, [rbp+var_28]"], [49, "mov rcx, [rax+8]"], [50, "lea rdx, [rbp+var_50]"], [51, "mov rax, [rbp+var_58]"], [52, "mov rsi, rdx"], [53, "mov rdi, rax"], [54, "call rcx"], [55, "mov [rbp+var_14], eax"], [56, "mov rdx, [rbp+var_38]"], [57, "mov rax, [rbp+var_28]"], [58, "mov [rax+20h], rdx"], [59, "mov rdx, [rbp+var_30]"], [60, "mov rax, [rbp+var_28]"], [61, "mov [rax+28h], rdx"], [62, "cmp [rbp+var_14], 0"], [63, "jz short loc_401D89"], [64, "cmp [rbp+var_14], 2"], [65, "jnz short loc_401D4C"], [66, "mov rax, [rbp+var_28]"], [67, "mov rdi, rax"], [68, "call sub_40168B"], [69, "jmp loc_401F0D"], [70, "cmp [rbp+var_14], 3"], [71, "jnz loc_401F0D"], [72, "mov rax, [rbp+var_28]"], [73, "mov qword ptr [rax+20h], 0"], [74, "mov rax, [rbp+var_28]"], [75, "mov qword ptr [rax+28h], 0"], [76, "movzx ecx, [rbp+var_1]"], [77, "mov rdx, [rbp+var_28]"], [78, "mov rax, [rbp+var_58]"], [79, "mov esi, ecx"], [80, "mov rdi, rax"], [81, "call sub_4016A6"], [82, "jmp loc_401F0D"], [83, "movzx eax, [rbp+var_1]"], [84, "add eax, 1"], [85, "mov [rbp+var_1], al"], [86, "mov rax, [rbp+var_58]"], [87, "movzx eax, byte ptr [rax+0AE0h]"], [88, "cmp [rbp+var_1], al"], [89, "jb loc_401C96"], [90, "mov [rbp+var_38], 0"], [91, "mov [rbp+var_30], 0"], [92, "mov [rbp+var_1], 0"], [93, "jmp loc_401E4E"], [94, "movzx eax, [rbp+var_1]"], [95, "cdqe"], [96, "add rax, 0A1h"], [97, "shl rax, 4"], [98, "mov rdx, rax"], [99, "mov rax, [rbp+var_58]"], [100, "add rax, rdx"], [101, "add rax, 8"], [102, "mov [rbp+var_20], rax"], [103, "mov rax, [rbp+var_20]"], [104, "mov rax, [rax+8]"], [105, "test rax, rax"], [106, "jz short loc_401E44"], [107, "mov rax, [rbp+var_20]"], [108, "movzx edx, byte ptr [rax]"], [109, "movzx eax, [rbp+var_4E]"], [110, "cmp dl, al"], [111, "jnz short loc_401E44"], [112, "mov rax, [rbp+var_20]"], [113, "mov rcx, [rax+8]"], [114, "lea rdx, [rbp+var_50]"], [115, "mov rax, [rbp+var_58]"], [116, "mov rsi, rdx"], [117, "mov rdi, rax"], [118, "call rcx"], [119, "mov [rbp+var_14], eax"], [120, "cmp [rbp+var_14], 0"], [121, "jz short loc_401E44"], [122, "cmp [rbp+var_14], 3"], [123, "jnz loc_401F10"], [124, "movzx ecx, [rbp+var_1]"], [125, "mov rdx, [rbp+var_20]"], [126, "mov rax, [rbp+var_58]"], [127, "mov esi, ecx"], [128, "mov rdi, rax"], [129, "call sub_40176C"], [130, "jmp loc_401F10"], [131, "movzx eax, [rbp+var_1]"], [132, "add eax, 1"], [133, "mov [rbp+var_1], al"], [134, "mov rax, [rbp+var_58]"], [135, "movzx eax, byte ptr [rax+0AE1h]"], [136, "cmp [rbp+var_1], al"], [137, "jb loc_401DC0"], [138, "mov [rbp+var_1], 0"], [139, "jmp short loc_401EDF"], [140, "movzx eax, [rbp+var_1]"], [141, "cdqe"], [142, "add rax, 156h"], [143, "lea rdx, ds:0[rax*8]"], [144, "mov rax, [rbp+var_58]"], [145, "add rax, rdx"], [146, "add rax, 8"], [147, "mov [rbp+var_10], rax"], [148, "mov rax, [rbp+var_10]"], [149, "mov rax, [rax]"], [150, "test rax, rax"], [151, "jz short loc_401ED5"], [152, "mov rax, [rbp+var_10]"], [153, "mov rcx, [rax]"], [154, "lea rdx, [rbp+var_50]"], [155, "mov rax, [rbp+var_58]"], [156, "mov rsi, rdx"], [157, "mov rdi, rax"], [158, "call rcx"], [159, "mov [rbp+var_14], eax"], [160, "cmp [rbp+var_14], 0"], [161, "jz short loc_401ED5"], [162, "cmp [rbp+var_14], 3"], [163, "jnz short loc_401F13"], [164, "movzx ecx, [rbp+var_1]"], [165, "mov rdx, [rbp+var_10]"], [166, "mov rax, [rbp+var_58]"], [167, "mov esi, ecx"], [168, "mov rdi, rax"], [169, "call sub_4017BD"], [170, "jmp short loc_401F13"], [171, "movzx eax, [rbp+var_1]"], [172, "add eax, 1"], [173, "mov [rbp+var_1], al"], [174, "mov rax, [rbp+var_58]"], [175, "movzx eax, byte ptr [rax+0AE2h]"], [176, "cmp [rbp+var_1], al"], [177, "jb loc_401E68"], [178, "movzx eax, [rbp+var_4E]"], [179, "movzx eax, al"], [180, "mov esi, eax"], [181, "mov edi, offset aTfUnhandledMes"], [182, "mov eax, 0"], [183, "call _printf"], [184, "jmp short locret_401F14"], [185, "nop"], [186, "jmp short locret_401F14"], [187, "nop"], [188, "jmp short locret_401F14"], [189, "nop"], [190, "leave"], [191, "retn"]], "data_dep": [[5, 4], [7, 3], [8, 7], [9, 8], [11, 3], [12, 11], [13, 12], [14, 3], [15, 14], [16, 15], [17, 3], [18, 17], [19, 18], [22, 85], [22, 20], [23, 22], [24, 23], [25, 24], [26, 23], [26, 25], [27, 26], [28, 58], [28, 23], [28, 61], [28, 27], [29, 3], [30, 29], [30, 28], [31, 30], [32, 31], [33, 32], [34, 58], [34, 61], [34, 33], [35, 34], [36, 35], [37, 32], [38, 61], [38, 37], [38, 58], [39, 9], [40, 38], [40, 39], [41, 40], [42, 32], [43, 61], [43, 58], [43, 42], [44, 43], [45, 32], [46, 61], [46, 45], [46, 58], [47, 46], [48, 32], [49, 48], [49, 61], [49, 58], [50, 38], [50, 9], [51, 3], [52, 50], [53, 51], [54, 49], [55, 54], [56, 44], [57, 32], [58, 56], [58, 57], [59, 47], [60, 32], [61, 60], [61, 59], [62, 55], [63, 62], [64, 55], [65, 64], [66, 32], [67, 66], [70, 55], [71, 70], [72, 32], [73, 72], [74, 32], [75, 74], [76, 85], [76, 20], [77, 32], [78, 3], [79, 76], [80, 78], [83, 85], [83, 20], [84, 83], [85, 84], [86, 3], [87, 61], [87, 86], [87, 58], [88, 85], [88, 87], [88, 20], [89, 88], [94, 133], [94, 92], [96, 94], [97, 96], [98, 97], [99, 3], [100, 98], [100, 99], [101, 100], [102, 101], [103, 102], [104, 61], [104, 58], [104, 103], [105, 104], [106, 105], [107, 102], [108, 107], [108, 61], [108, 58], [109, 13], [110, 109], [110, 108], [111, 110], [112, 102], [113, 112], [113, 61], [113, 58], [114, 108], [114, 9], [115, 3], [116, 114], [117, 115], [118, 113], [119, 118], [120, 119], [121, 120], [122, 119], [123, 122], [124, 133], [124, 92], [125, 102], [126, 3], [127, 124], [128, 126], [131, 133], [131, 92], [132, 131], [133, 132], [134, 3], [135, 58], [135, 61], [135, 134], [136, 135], [136, 133], [136, 92], [137, 136], [140, 173], [140, 138], [142, 140], [143, 108], [143, 28], [143, 114], [143, 98], [143, 38], [143, 59], [143, 143], [143, 154], [144, 3], [145, 144], [145, 143], [146, 145], [147, 146], [148, 147], [149, 148], [149, 61], [149, 58], [150, 149], [151, 150], [152, 147], [153, 61], [153, 152], [153, 58], [154, 9], [154, 143], [155, 3], [156, 154], [157, 155], [158, 153], [159, 158], [160, 159], [161, 160], [162, 159], [163, 162], [164, 173], [164, 138], [165, 147], [166, 3], [167, 164], [168, 166], [171, 138], [171, 173], [172, 171], [173, 172], [174, 3], [175, 58], [175, 174], [175, 61], [176, 173], [176, 175], [176, 138], [177, 176], [178, 13], [179, 178], [180, 179], [191, 68], [191, 118], [191, 81], [191, 129], [191, 60], [191, 183], [191, 158], [191, 169]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8133ae02f1d68463182c4dda9703638a97776e2304f635f34bbbe2c7956432d3_8133ae02f1d68463182c4dda9703638a97776e2304f635f34bbbe2c7956432d3.jsonl.gz", "strip_func_name": "sub_401C40", "query": "\n\n\nint __fastcall sub_401C40(__int64 a1)\n{\n__int64 v1; // rdx\nint result; // eax\n__int64 v3; // rdx\nchar v4[2]; // [rsp+10h] [rbp-50h] BYREF\nunsigned __int8 v5; // [rsp+12h] [rbp-4Eh]\n__int64 v6; // [rsp+18h] [rbp-48h]\n__int16 v7; // [rsp+20h] [rbp-40h]\n__int64 v8; // [rsp+28h] [rbp-38h]\n__int64 v9; // [rsp+30h] [rbp-30h]\n_QWORD *v10; // [rsp+38h] [rbp-28h]\n__int64 v11; // [rsp+40h] [rbp-20h]\nint v12; // [rsp+4Ch] [rbp-14h]\n__int64 (__fastcall **v13)(__int64, char *); // [rsp+50h] [rbp-10h]\nunsigned __int8 i; // [rsp+5Fh] [rbp-1h]\n\nsub_4014DD(v4);\nv4[0] = *(_BYTE *)(a1 + 26);\nv4[1] = 0;\nv5 = *(_BYTE *)(a1 + 1060);\nv6 = a1 + 30;\nv7 = *(_WORD *)(a1 + 28);\nfor ( i = 0; i < *(_BYTE *)(a1 + 2784); ++i )\n{\nv1 = 48LL * i + 2096;\nv10 = (_QWORD *)(v1 + a1 + 8);\nif ( *(_QWORD *)(v1 + a1 + 16) )\n{\nif ( *(_BYTE *)v10 == v4[0] )\n{\nv8 = v10[4];\nv9 = v10[5];\nv12 = ((__int64 (__fastcall *)(__int64, char *))v10[1])(a1, v4);\nv10[4] = v8;\nresult = (int)v10;\nv10[5] = v9;\nif ( v12 )\n{\nif ( v12 == 2 )\nreturn sub_40168B((__int64)v10);\nif ( v12 == 3 )\n{\nv10[4] = 0LL;\nv10[5] = 0LL;\nresult = sub_4016A6(a1, i, v10);\n}\nreturn result;\n}\n}\n}\n}\nv8 = 0LL;\nv9 = 0LL;\nfor ( i = 0; i < *(_BYTE *)(a1 + 2785); ++i )\n{\nv3 = 16 * (i + 161LL);\nv11 = v3 + a1 + 8;\nif ( *(_QWORD *)(v3 + a1 + 16) )\n{\nif ( *(_BYTE *)v11 == v5 )\n{\nresult = (*(__int64 (__fastcall **)(__int64, char *))(v11 + 8))(a1, v4);\nv12 = result;\nif ( result )\n{\nif ( v12 == 3 )\nresult = sub_40176C(a1, i, v11);\nreturn result;\n}\n}\n}\n}\nfor ( i = 0; ; ++i )\n{\nif ( i >= *(_BYTE *)(a1 + 2786) )\nreturn printf(\"[TF] Unhandled message, type %d\\n\", v5);\nv13 = (__int64 (__fastcall **)(__int64, char *))(8 * (i + 342LL) + a1 + 8);\nif ( *v13 )\n{\nresult = (*v13)(a1, v4);\nv12 = result;\nif ( result )\nbreak;\n}\n}\nif ( v12 == 3 )\nresult = sub_4017BD(a1, i, v13);\nreturn result;\n}\n\n\n\nQ:[a1,v4,v10,v11,v12,v13,sub_401C40,sub_4014DD,sub_40168B,sub_4016A6,sub_40176C,sub_4017BD,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'tf_0', 'v4': 'msg', 'v10': 'ilst', 'v11': 'tlst', 'v12': 'res', 'v13': 'glst', 'sub_401C40': 'TF_HandleReceivedMessage', 'sub_4014DD': 'TF_ClearMsg_0', 'sub_40168B': 'renew_id_listener', 'sub_4016A6': 'cleanup_id_listener', 'sub_40176C': 'cleanup_type_listener', 'sub_4017BD': 'cleanup_generic_listener'}"}
mbedtls_psa_rsa_export_public_key
ff5699798398ae88f37e03e58544b6b9131de65c851c8a96bc8e095fd0cb9939
FreeRTOS
iot-reference-stm32u5
NA
psa_status_t mbedtls_psa_rsa_export_public_key( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, uint8_t *data, size_t data_size, size_t *data_length ) { return( rsa_export_public_key( attributes, key_buffer, key_buffer_size, data, data_size, data_length ) ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43104A", "function_addr": 4395082, "binary_name": "ff5699798398ae88f37e03e58544b6b9131de65c851c8a96bc8e095fd0cb9939.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov [rbp+var_20], rcx"], [7, "mov [rbp+var_28], r8"], [8, "mov [rbp+var_30], r9"], [9, "mov r8, [rbp+var_30]"], [10, "mov rdi, [rbp+var_28]"], [11, "mov rcx, [rbp+var_20]"], [12, "mov rdx, [rbp+var_18]"], [13, "mov rsi, [rbp+var_10]"], [14, "mov rax, [rbp+var_8]"], [15, "mov r9, r8"], [16, "mov r8, rdi"], [17, "mov rdi, rax"], [18, "call sub_430989"], [19, "leave"], [20, "retn"]], "data_dep": [[9, 8], [10, 7], [11, 6], [12, 5], [13, 4], [14, 3], [15, 9], [16, 10], [17, 14], [20, 18]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ff5699798398ae88f37e03e58544b6b9131de65c851c8a96bc8e095fd0cb9939_ff5699798398ae88f37e03e58544b6b9131de65c851c8a96bc8e095fd0cb9939.jsonl.gz", "strip_func_name": "sub_43104A", "query": "\n\n\n__int64 __fastcall sub_43104A(__int16 *a1, char *a2, size_t a3, char *a4, size_t a5, _QWORD *a6)\n{\nreturn sub_430989(a1, a2, a3, a4, a5, a6);\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,sub_43104A,sub_430989,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'key_buffer_size', 'a4': 'data', 'a1': 'attributes', 'a2': 'key_buffer', 'a5': 'data_size', 'a6': 'data_length', 'sub_43104A': 'mbedtls_psa_rsa_export_public_key', 'sub_430989': 'rsa_export_public_key'}"}
HUF_decompress4X1
8344e4f2e71647113a4027b2f26417ee1a42cf3c0de632f9252e1b29c5147f05
soedinglab
MMseqs2
NA
size_t HUF_decompress4X1 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize) { HUF_CREATE_STATIC_DTABLEX1(DTable, HUF_TABLELOG_MAX); return HUF_decompress4X1_DCtx(DTable, dst, dstSize, cSrc, cSrcSize); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_49C406", "function_addr": 4834310, "binary_name": "8344e4f2e71647113a4027b2f26417ee1a42cf3c0de632f9252e1b29c5147f05.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 2030h"], [3, "mov [rbp+var_2018], rdi"], [4, "mov [rbp+var_2020], rsi"], [5, "mov [rbp+var_2028], rdx"], [6, "mov [rbp+var_2030], rcx"], [7, "lea rax, [rbp+s]"], [8, "mov edx, 2004h"], [9, "mov esi, 0"], [10, "mov rdi, rax"], [11, "call _memset"], [12, "mov [rbp+s], 0B00000Bh"], [13, "mov rdi, [rbp+var_2030]"], [14, "mov rcx, [rbp+var_2028]"], [15, "mov rdx, [rbp+var_2020]"], [16, "mov rsi, [rbp+var_2018]"], [17, "lea rax, [rbp+s]"], [18, "mov r8, rdi"], [19, "mov rdi, rax"], [20, "call sub_49C391"], [21, "leave"], [22, "retn"]], "data_dep": [[10, 7], [13, 6], [14, 5], [15, 4], [16, 3], [17, 12], [17, 11], [18, 13], [19, 17], [22, 20]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8344e4f2e71647113a4027b2f26417ee1a42cf3c0de632f9252e1b29c5147f05_8344e4f2e71647113a4027b2f26417ee1a42cf3c0de632f9252e1b29c5147f05.jsonl.gz", "strip_func_name": "sub_49C406", "query": "\n\n\n__int64 __fastcall sub_49C406(__int64 a1, __int64 a2, unsigned __int8 *a3, unsigned __int64 a4)\n{\nunsigned int s[2052]; // [rsp+20h] [rbp-2010h] BYREF\n\nmemset(s, 0, 0x2004uLL);\ns[0] = 184549387;\nreturn sub_49C391(s, a1, a2, a3, a4);\n}\n\n\n\nQ:[a3,a4,a1,a2,s,sub_49C406,sub_49C391,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'cSrc', 'a4': 'cSrcSize', 'a1': 'dst', 'a2': 'dstSize', 's': 'DTable', 'sub_49C406': 'HUF_decompress4X1', 'sub_49C391': 'HUF_decompress4X1_DCtx'}"}
js_typed_array_constructor
5221d4ac5c6be3ca70ca9c6f05f545a1bdebfe8115ffd22ebc92b53971dadcff
sunnyxx
quickjs-debug
NA
static JSValue js_typed_array_constructor(JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv, int classid) { JSValue buffer, obj; JSArrayBuffer *abuf; int size_log2; uint64_t len, offset; size_log2 = typed_array_size_log2(classid); if (JS_VALUE_GET_TAG(argv[0]) != JS_TAG_OBJECT) { if (JS_ToIndex(ctx, &len, argv[0])) return JS_EXCEPTION; buffer = js_array_buffer_constructor1(ctx, JS_UNDEFINED, len << size_log2); if (JS_IsException(buffer)) return JS_EXCEPTION; offset = 0; } else { JSObject *p = JS_VALUE_GET_OBJ(argv[0]); if (p->class_id == JS_CLASS_ARRAY_BUFFER || p->class_id == JS_CLASS_SHARED_ARRAY_BUFFER) { abuf = p->u.array_buffer; if (JS_ToIndex(ctx, &offset, argv[1])) return JS_EXCEPTION; if (abuf->detached) return JS_ThrowTypeErrorDetachedArrayBuffer(ctx); if ((offset & ((1 << size_log2) - 1)) != 0 || offset > abuf->byte_length) return JS_ThrowRangeError(ctx, "invalid offset"); if (JS_IsUndefined(argv[2])) { if ((abuf->byte_length & ((1 << size_log2) - 1)) != 0) goto invalid_length; len = (abuf->byte_length - offset) >> size_log2; } else { if (JS_ToIndex(ctx, &len, argv[2])) return JS_EXCEPTION; if (abuf->detached) return JS_ThrowTypeErrorDetachedArrayBuffer(ctx); if ((offset + (len << size_log2)) > abuf->byte_length) { invalid_length: return JS_ThrowRangeError(ctx, "invalid length"); } } buffer = JS_DupValue(ctx, argv[0]); } else { if (p->class_id >= JS_CLASS_UINT8C_ARRAY && p->class_id <= JS_CLASS_FLOAT64_ARRAY) { return js_typed_array_constructor_ta(ctx, new_target, argv[0], classid); } else { return js_typed_array_constructor_obj(ctx, new_target, argv[0], classid); } } } obj = js_create_from_ctor(ctx, new_target, classid); if (JS_IsException(obj)) { JS_FreeValue(ctx, buffer); return JS_EXCEPTION; } if (typed_array_init(ctx, obj, buffer, offset, len)) { JS_FreeValue(ctx, obj); return JS_EXCEPTION; } return obj; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4823F8", "function_addr": 4727800, "binary_name": "5221d4ac5c6be3ca70ca9c6f05f545a1bdebfe8115ffd22ebc92b53971dadcff.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 88h"], [4, "mov [rbp+var_68], rdi"], [5, "mov rax, rsi"], [6, "mov rsi, rdx"], [7, "mov rdx, rsi"], [8, "mov [rbp+var_80], rax"], [9, "mov [rbp+var_78], rdx"], [10, "mov [rbp+var_6C], ecx"], [11, "mov [rbp+var_88], r8"], [12, "mov [rbp+var_70], r9d"], [13, "mov eax, [rbp+var_70]"], [14, "sub eax, 15h"], [15, "cdqe"], [16, "movzx eax, ds:byte_4940A0[rax]"], [17, "movzx eax, al"], [18, "mov [rbp+var_14], eax"], [19, "mov rax, [rbp+var_88]"], [20, "mov rax, [rax+8]"], [21, "cmp eax, 0FFFFFFFFh"], [22, "jz loc_4824FF"], [23, "mov rax, [rbp+var_88]"], [24, "mov rdx, [rax+8]"], [25, "mov rax, [rax]"], [26, "lea rsi, [rbp+var_58]"], [27, "mov rdi, [rbp+var_68]"], [28, "mov rcx, rdx"], [29, "mov rdx, rax"], [30, "call sub_41BC7B"], [31, "test eax, eax"], [32, "jz short loc_482489"], [33, "mov eax, 0"], [34, "mov edx, 0"], [35, "mov edx, 6"], [36, "jmp loc_482844"], [37, "mov rdx, [rbp+var_58]"], [38, "mov eax, [rbp+var_14]"], [39, "mov ecx, eax"], [40, "shl rdx, cl"], [41, "mov ecx, 0"], [42, "mov ebx, 0"], [43, "mov ebx, 3"], [44, "mov rsi, rcx"], [45, "mov rdi, rbx"], [46, "mov rdi, rbx"], [47, "mov rax, [rbp+var_68]"], [48, "mov rcx, rdx"], [49, "mov rdx, rdi"], [50, "mov rdi, rax"], [51, "call sub_47CBC3"], [52, "mov [rbp+var_40], rax"], [53, "mov [rbp+var_38], rdx"], [54, "mov rdx, [rbp+var_40]"], [55, "mov rax, [rbp+var_38]"], [56, "mov rdi, rdx"], [57, "mov rsi, rax"], [58, "call sub_403D2B"], [59, "test eax, eax"], [60, "jz short loc_4824F2"], [61, "mov eax, 0"], [62, "mov edx, 0"], [63, "mov edx, 6"], [64, "jmp loc_482844"], [65, "mov [rbp+var_60], 0"], [66, "jmp loc_482785"], [67, "mov rax, [rbp+var_88]"], [68, "mov rax, [rax]"], [69, "mov [rbp+var_20], rax"], [70, "mov rax, [rbp+var_20]"], [71, "movzx eax, word ptr [rax+6]"], [72, "cmp ax, 13h"], [73, "jz short loc_48252D"], [74, "mov rax, [rbp+var_20]"], [75, "movzx eax, word ptr [rax+6]"], [76, "cmp ax, 14h"], [77, "jnz loc_482707"], [78, "mov rax, [rbp+var_20]"], [79, "mov rax, [rax+30h]"], [80, "mov [rbp+var_28], rax"], [81, "mov rax, [rbp+var_88]"], [82, "add rax, 10h"], [83, "mov rdx, [rax+8]"], [84, "mov rax, [rax]"], [85, "lea rsi, [rbp+var_60]"], [86, "mov rdi, [rbp+var_68]"], [87, "mov rcx, rdx"], [88, "mov rdx, rax"], [89, "call sub_41BC7B"], [90, "test eax, eax"], [91, "jz short loc_482576"], [92, "mov eax, 0"], [93, "mov edx, 0"], [94, "mov edx, 6"], [95, "jmp loc_482844"], [96, "mov rax, [rbp+var_28]"], [97, "movzx eax, byte ptr [rax+4]"], [98, "test al, al"], [99, "jz short loc_482593"], [100, "mov rax, [rbp+var_68]"], [101, "mov rdi, rax"], [102, "call sub_47CF43"], [103, "jmp loc_482844"], [104, "mov eax, [rbp+var_14]"], [105, "mov edx, 1"], [106, "mov ecx, eax"], [107, "shl edx, cl"], [108, "mov eax, edx"], [109, "sub eax, 1"], [110, "movsxd rdx, eax"], [111, "mov rax, [rbp+var_60]"], [112, "and rax, rdx"], [113, "test rax, rax"], [114, "jnz short loc_4825C5"], [115, "mov rax, [rbp+var_28]"], [116, "mov eax, [rax]"], [117, "movsxd rdx, eax"], [118, "mov rax, [rbp+var_60]"], [119, "cmp rdx, rax"], [120, "jnb short loc_4825E0"], [121, "mov rax, [rbp+var_68]"], [122, "mov esi, offset aInvalidOffset"], [123, "mov rdi, rax"], [124, "mov eax, 0"], [125, "call sub_410A05"], [126, "jmp loc_482844"], [127, "mov rax, [rbp+var_88]"], [128, "add rax, 20h "], [129, "mov rdx, [rax]"], [130, "mov rax, [rax+8]"], [131, "mov rdi, rdx"], [132, "mov rsi, rax"], [133, "call sub_403D07"], [134, "test eax, eax"], [135, "jz short loc_482648"], [136, "mov rax, [rbp+var_28]"], [137, "mov edx, [rax]"], [138, "mov eax, [rbp+var_14]"], [139, "mov esi, 1"], [140, "mov ecx, eax"], [141, "shl esi, cl"], [142, "mov eax, esi"], [143, "sub eax, 1"], [144, "and eax, edx"], [145, "test eax, eax"], [146, "jnz loc_4826C4"], [147, "mov rax, [rbp+var_28]"], [148, "mov eax, [rax]"], [149, "cdqe"], [150, "mov rcx, [rbp+var_60]"], [151, "sub rax, rcx"], [152, "mov rdx, rax"], [153, "mov eax, [rbp+var_14]"], [154, "mov ecx, eax"], [155, "shr rdx, cl"], [156, "mov rax, rdx"], [157, "mov [rbp+var_58], rax"], [158, "jmp loc_4826E0"], [159, "mov rax, [rbp+var_88]"], [160, "add rax, 20h "], [161, "mov rdx, [rax+8]"], [162, "mov rax, [rax]"], [163, "lea rsi, [rbp+var_58]"], [164, "mov rdi, [rbp+var_68]"], [165, "mov rcx, rdx"], [166, "mov rdx, rax"], [167, "call sub_41BC7B"], [168, "test eax, eax"], [169, "jz short loc_482685"], [170, "mov eax, 0"], [171, "mov edx, 0"], [172, "mov edx, 6"], [173, "jmp loc_482844"], [174, "mov rax, [rbp+var_28]"], [175, "movzx eax, byte ptr [rax+4]"], [176, "test al, al"], [177, "jz short loc_4826A2"], [178, "mov rax, [rbp+var_68]"], [179, "mov rdi, rax"], [180, "call sub_47CF43"], [181, "jmp loc_482844"], [182, "mov rdx, [rbp+var_58]"], [183, "mov eax, [rbp+var_14]"], [184, "mov ecx, eax"], [185, "shl rdx, cl"], [186, "mov rax, [rbp+var_60]"], [187, "add rdx, rax"], [188, "mov rax, [rbp+var_28]"], [189, "mov eax, [rax]"], [190, "cdqe"], [191, "cmp rdx, rax"], [192, "jbe short loc_4826E0"], [193, "jmp short loc_4826C5"], [194, "nop"], [195, "mov rax, [rbp+var_68]"], [196, "mov esi, offset aInvalidLength"], [197, "mov rdi, rax"], [198, "mov eax, 0"], [199, "call sub_410A05"], [200, "jmp loc_482844"], [201, "mov rax, [rbp+var_88]"], [202, "mov rcx, [rax]"], [203, "mov rdx, [rax+8]"], [204, "mov rax, [rbp+var_68]"], [205, "mov rsi, rcx"], [206, "mov rdi, rax"], [207, "call sub_403EA7"], [208, "mov [rbp+var_40], rax"], [209, "mov [rbp+var_38], rdx"], [210, "jmp short loc_482785"], [211, "mov rax, [rbp+var_20]"], [212, "movzx eax, word ptr [rax+6]"], [213, "cmp ax, 14h"], [214, "jbe short loc_482754"], [215, "mov rax, [rbp+var_20]"], [216, "movzx eax, word ptr [rax+6]"], [217, "cmp ax, 1Dh"], [218, "ja short loc_482754"], [219, "mov r8d, [rbp+var_70]"], [220, "mov rax, [rbp+var_88]"], [221, "mov rcx, [rax]"], [222, "mov rdi, [rax+8]"], [223, "mov rsi, [rbp+var_80]"], [224, "mov rdx, [rbp+var_78]"], [225, "mov rax, [rbp+var_68]"], [226, "mov r9d, r8d"], [227, "mov r8, rdi"], [228, "mov rdi, rax"], [229, "call sub_482009"], [230, "jmp loc_482844"], [231, "mov r8d, [rbp+var_70]"], [232, "mov rax, [rbp+var_88]"], [233, "mov rcx, [rax]"], [234, "mov rdi, [rax+8]"], [235, "mov rsi, [rbp+var_80]"], [236, "mov rdx, [rbp+var_78]"], [237, "mov rax, [rbp+var_68]"], [238, "mov r9d, r8d"], [239, "mov r8, rdi"], [240, "mov rdi, rax"], [241, "call sub_481BF5"], [242, "jmp loc_482844"], [243, "mov ecx, [rbp+var_70]"], [244, "mov rsi, [rbp+var_80]"], [245, "mov rdx, [rbp+var_78]"], [246, "mov rax, [rbp+var_68]"], [247, "mov rdi, rax"], [248, "call sub_42E0F2"], [249, "mov [rbp+var_50], rax"], [250, "mov [rbp+var_48], rdx"], [251, "mov rdx, [rbp+var_50]"], [252, "mov rax, [rbp+var_48]"], [253, "mov rdi, rdx"], [254, "mov rsi, rax"], [255, "call sub_403D2B"], [256, "test eax, eax"], [257, "jz short loc_4827E3"], [258, "mov rcx, [rbp+var_40]"], [259, "mov rdx, [rbp+var_38]"], [260, "mov rax, [rbp+var_68]"], [261, "mov rsi, rcx"], [262, "mov rdi, rax"], [263, "call sub_403DDF"], [264, "mov eax, 0"], [265, "mov edx, 0"], [266, "mov edx, 6"], [267, "jmp short loc_482844"], [268, "mov rdi, [rbp+var_58]"], [269, "mov r9, [rbp+var_60]"], [270, "mov rcx, [rbp+var_40]"], [271, "mov r8, [rbp+var_38]"], [272, "mov rsi, [rbp+var_50]"], [273, "mov rdx, [rbp+var_48]"], [274, "mov rax, [rbp+var_68]"], [275, "sub rsp, 8"], [276, "push rdi"], [277, "mov rdi, rax"], [278, "call sub_4817DD"], [279, "add rsp, 10h"], [280, "test eax, eax"], [281, "jz short loc_48283C"], [282, "mov rcx, [rbp+var_50]"], [283, "mov rdx, [rbp+var_48]"], [284, "mov rax, [rbp+var_68]"], [285, "mov rsi, rcx"], [286, "mov rdi, rax"], [287, "call sub_403DDF"], [288, "mov eax, 0"], [289, "mov edx, 0"], [290, "mov edx, 6"], [291, "jmp short loc_482844"], [292, "mov rax, [rbp+var_50]"], [293, "mov rdx, [rbp+var_48]"], [294, "mov rbx, [rbp+var_8]"], [295, "leave"], [296, "retn"]], "data_dep": [[7, 6], [8, 5], [9, 7], [13, 12], [14, 13], [17, 16], [18, 17], [19, 11], [20, 19], [21, 20], [22, 21], [23, 11], [24, 23], [25, 23], [26, 6], [27, 4], [28, 24], [29, 25], [31, 30], [32, 31], [38, 18], [39, 38], [40, 37], [40, 39], [44, 41], [45, 43], [46, 43], [47, 4], [48, 40], [49, 46], [50, 47], [52, 51], [53, 49], [54, 52], [55, 53], [56, 54], [57, 55], [59, 58], [60, 59], [67, 11], [68, 67], [69, 68], [70, 69], [71, 70], [72, 71], [73, 72], [74, 69], [75, 74], [76, 75], [77, 76], [78, 69], [79, 78], [80, 79], [81, 11], [82, 81], [83, 82], [84, 82], [85, 6], [86, 4], [87, 83], [88, 84], [90, 89], [91, 90], [96, 80], [97, 96], [98, 97], [99, 98], [100, 4], [101, 100], [104, 18], [106, 104], [107, 106], [107, 105], [108, 107], [109, 108], [110, 109], [112, 111], [112, 110], [113, 112], [114, 113], [115, 80], [116, 115], [117, 116], [119, 118], [119, 117], [120, 119], [121, 4], [123, 121], [127, 11], [128, 127], [129, 128], [130, 128], [131, 129], [132, 130], [134, 133], [135, 134], [136, 80], [137, 136], [138, 18], [140, 138], [141, 140], [141, 139], [142, 141], [143, 142], [144, 143], [144, 137], [145, 144], [146, 145], [147, 80], [148, 147], [151, 148], [151, 150], [152, 151], [153, 18], [154, 153], [155, 152], [155, 154], [156, 155], [157, 156], [159, 11], [160, 159], [161, 160], [162, 160], [163, 132], [164, 4], [165, 161], [166, 162], [168, 167], [169, 168], [174, 80], [175, 174], [176, 175], [177, 176], [178, 4], [179, 178], [183, 18], [184, 183], [185, 182], [185, 184], [187, 185], [187, 186], [188, 80], [189, 188], [191, 187], [191, 189], [192, 191], [195, 4], [197, 195], [201, 11], [202, 201], [203, 201], [204, 4], [205, 202], [206, 204], [208, 207], [209, 203], [211, 69], [212, 211], [213, 212], [214, 213], [215, 69], [216, 215], [217, 216], [218, 217], [219, 12], [220, 11], [221, 220], [222, 220], [223, 8], [224, 9], [225, 4], [226, 219], [227, 222], [228, 225], [231, 12], [232, 11], [233, 232], [234, 232], [235, 8], [236, 9], [237, 4], [238, 231], [239, 234], [240, 237], [243, 12], [244, 8], [245, 9], [246, 4], [247, 246], [249, 248], [250, 245], [251, 249], [252, 250], [253, 251], [254, 252], [256, 255], [257, 256], [258, 208], [258, 52], [259, 209], [259, 53], [260, 4], [261, 258], [262, 260], [268, 157], [269, 65], [270, 52], [270, 208], [271, 209], [271, 53], [272, 249], [273, 250], [274, 4], [275, 3], [276, 268], [277, 274], [279, 275], [280, 278], [281, 280], [282, 249], [283, 250], [284, 4], [285, 282], [286, 284], [292, 249], [293, 250], [296, 92], [296, 229], [296, 199], [296, 288], [296, 61], [296, 180], [296, 125], [296, 292], [296, 102], [296, 241], [296, 33], [296, 170], [296, 264]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/5221d4ac5c6be3ca70ca9c6f05f545a1bdebfe8115ffd22ebc92b53971dadcff_5221d4ac5c6be3ca70ca9c6f05f545a1bdebfe8115ffd22ebc92b53971dadcff.jsonl.gz", "strip_func_name": "sub_4823F8", "query": "\n\n\n_DWORD *__fastcall sub_4823F8(__int64 *a1, __int64 a2, __int64 a3, __int64 a4, __int64 *a5, signed int a6)\n{\n_DWORD *result; // rax\n__int64 v7; // rdx\n__int64 *v8; // rsi\n__int64 v9; // rdx\n__int64 v10; // rcx\n__int64 v11; // r8\n__int64 v12; // r9\nunsigned __int64 v13; // rdx\nunsigned __int64 v14; // rdx\n__int64 v15; // rcx\n__int64 v16; // rdx\n__int64 v17; // rdx\nunsigned __int64 v22; // [rsp+30h] [rbp-60h] BYREF\n__int64 v23; // [rsp+38h] [rbp-58h] BYREF\n_DWORD *v24; // [rsp+40h] [rbp-50h]\n__int64 v25; // [rsp+48h] [rbp-48h]\n_DWORD *v26; // [rsp+50h] [rbp-40h]\n__int64 v27; // [rsp+58h] [rbp-38h]\nint *v28; // [rsp+68h] [rbp-28h]\n__int64 v29; // [rsp+70h] [rbp-20h]\nunsigned int v30; // [rsp+7Ch] [rbp-14h]\n\nv30 = (unsigned __int8)byte_4940A0[a6 - 21];\nif ( (unsigned int)a5[1] != -1 )\n{\nif ( (unsigned int)sub_41BC7B(a1, &v23, (_DWORD *)*a5, a5[1]) )\nreturn 0LL;\nv26 = sub_47CBC3(a1, 0LL, 3LL, v23 << v30);\nv27 = v7;\nif ( sub_403D2B((__int64)v26, v7) )\nreturn 0LL;\nv22 = 0LL;\ngoto LABEL_29;\n}\nv29 = *a5;\nif ( *(_WORD *)(v29 + 6) == 19 || *(_WORD *)(v29 + 6) == 20 )\n{\nv28 = *(int **)(v29 + 48);\nv8 = (__int64 *)&v22;\nif ( (unsigned int)sub_41BC7B(a1, &v22, (_DWORD *)a5[2], a5[3]) )\nreturn 0LL;\nif ( *((_BYTE *)v28 + 4) )\nreturn (_DWORD *)sub_47CF43(a1, (__int64)v8, v9, v10, v11, v12);\nv13 = (1 << v30) - 1;\nif ( (v13 & v22) != 0 )\nreturn (_DWORD *)sub_410A05(a1, \"invalid offset\", v13, v30, v11, v12);\nv13 = *v28;\nif ( v13 < v22 )\nreturn (_DWORD *)sub_410A05(a1, \"invalid offset\", v13, v30, v11, v12);\nif ( sub_403D07(a5[4], a5[5]) )\n{\nv14 = (unsigned int)*v28;\nv15 = v30;\nif ( ((unsigned int)v14 & ((1 << v30) - 1)) == 0 )\n{\nv23 = (*v28 - v22) >> v30;\ngoto LABEL_24;\n}\n}\nelse\n{\nv8 = &v23;\nif ( (unsigned int)sub_41BC7B(a1, &v23, (_DWORD *)a5[4], a5[5]) )\nreturn 0LL;\nif ( *((_BYTE *)v28 + 4) )\nreturn (_DWORD *)sub_47CF43(a1, (__int64)v8, v9, v10, v11, v12);\nv15 = v30;\nv14 = v22 + (v23 << v30);\nif ( v14 <= *v28 )\n{\nLABEL_24:\nv26 = sub_403EA7((__int64)a1, (_DWORD *)*a5, a5[1]);\nv27 = v16;\nLABEL_29:\nv24 = (_DWORD *)sub_42E0F2(a1, a2, a3, a6);\nv25 = v17;\nif ( sub_403D2B((__int64)v24, v17) )\n{\nsub_403DDF((__int64)a1, v26, v27);\nresult = 0LL;\n}\nelse if ( (unsigned int)sub_4817DD(\n(__int64 (__fastcall ***)(__int64, __int64))a1,\n(__int64)v24,\nv25,\n(__int64)v26,\nv27,\nv22,\nv23) )\n{\nsub_403DDF((__int64)a1, v24, v25);\nresult = 0LL;\n}\nelse\n{\nresult = v24;\n}\nreturn result;\n}\n}\nreturn (_DWORD *)sub_410A05(a1, \"invalid length\", v14, v15, v11, v12);\n}\nif ( *(_WORD *)(v29 + 6) <= 0x14u || *(_WORD *)(v29 + 6) > 0x1Du )\nresult = sub_481BF5(a1, a2, a3, (_DWORD *)*a5, a5[1], a6);\nelse\nresult = sub_482009(a1, a2, a3, *a5, a5[1], a6);\nreturn result;\n}\n\n\n\nQ:[a1,a2,a5,a6,a4,v8,v10,v11,v12,v22,v23,v24,v26,v28,v29,v30,sub_4823F8,sub_41BC7B,sub_47CBC3,sub_403D2B,sub_47CF43,sub_410A05,sub_403D07,sub_403EA7,sub_42E0F2,sub_403DDF,sub_4817DD,sub_481BF5,sub_482009,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ctx', 'a2': 'new_target', 'a5': 'argv', 'a6': 'classid', 'a4': 'argc', 'v8': 'new_target', 'v10': 'argc', 'v11': 'argv', 'v12': 'classid', 'v22': 'offset', 'v23': 'len', 'v24': 'obj', 'v26': 'buffer', 'v28': 'abuf', 'v29': 'p', 'v30': 'size_log2', 'sub_4823F8': 'js_typed_array_constructor', 'sub_41BC7B': 'JS_ToIndex', 'sub_47CBC3': 'js_array_buffer_constructor1', 'sub_403D2B': 'JS_IsException', 'sub_47CF43': 'JS_ThrowTypeErrorDetachedArrayBuffer', 'sub_410A05': 'JS_ThrowRangeError', 'sub_403D07': 'JS_IsUndefined', 'sub_403EA7': 'JS_DupValue', 'sub_42E0F2': 'js_create_from_ctor', 'sub_403DDF': 'JS_FreeValue', 'sub_4817DD': 'typed_array_init', 'sub_481BF5': 'js_typed_array_constructor_obj', 'sub_482009': 'js_typed_array_constructor_ta'}"}
pjsip_msg_clone
a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c
AonCyberLabs
D-Modem
NA
PJ_DEF(pjsip_msg*) pjsip_msg_clone( pj_pool_t *pool, const pjsip_msg *src) { pjsip_msg *dst; const pjsip_hdr *sh; dst = pjsip_msg_create(pool, src->type); /* Clone request/status line */ if (src->type == PJSIP_REQUEST_MSG) { pjsip_method_copy(pool, &dst->line.req.method, &src->line.req.method); dst->line.req.uri = (pjsip_uri*) pjsip_uri_clone(pool, src->line.req.uri); } else { dst->line.status.code = src->line.status.code; pj_strdup(pool, &dst->line.status.reason, &src->line.status.reason); } /* Clone headers */ sh = src->hdr.next; while (sh != &src->hdr) { pjsip_hdr *dh = (pjsip_hdr*) pjsip_hdr_clone(pool, sh); pjsip_msg_add_hdr(dst, dh); sh = sh->next; } /* Clone message body */ if (src->body) { dst->body = pjsip_msg_body_clone(pool, src->body); } return dst; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_419FB0", "function_addr": 4300720, "binary_name": "a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rax, [rbp+var_30]"], [6, "mov edx, [rax]"], [7, "mov rax, [rbp+var_28]"], [8, "mov esi, edx"], [9, "mov rdi, rax"], [10, "call sub_419F61"], [11, "mov [rbp+var_10], rax"], [12, "mov rax, [rbp+var_30]"], [13, "mov eax, [rax]"], [14, "test eax, eax"], [15, "jnz short loc_41A022"], [16, "mov rax, [rbp+var_30]"], [17, "lea rdx, [rax+8]"], [18, "mov rax, [rbp+var_10]"], [19, "lea rcx, [rax+8]"], [20, "mov rax, [rbp+var_28]"], [21, "mov rsi, rcx"], [22, "mov rdi, rax"], [23, "call sub_419E8D"], [24, "mov rax, [rbp+var_30]"], [25, "mov rdx, [rax+20h]"], [26, "mov rax, [rbp+var_28]"], [27, "mov rsi, rdx"], [28, "mov rdi, rax"], [29, "call sub_419520"], [30, "mov rdx, [rbp+var_10]"], [31, "mov [rdx+20h], rax"], [32, "jmp short loc_41A04F"], [33, "mov rax, [rbp+var_30]"], [34, "mov edx, [rax+8]"], [35, "mov rax, [rbp+var_10]"], [36, "mov [rax+8], edx"], [37, "mov rax, [rbp+var_30]"], [38, "lea rdx, [rax+10h]"], [39, "mov rax, [rbp+var_10]"], [40, "lea rcx, [rax+10h]"], [41, "mov rax, [rbp+var_28]"], [42, "mov rsi, rcx"], [43, "mov rdi, rax"], [44, "call sub_4C1B0D"], [45, "mov rax, [rbp+var_30]"], [46, "mov rax, [rax+30h]"], [47, "mov [rbp+var_8], rax"], [48, "jmp short loc_41A093"], [49, "mov rdx, [rbp+var_8]"], [50, "mov rax, [rbp+var_28]"], [51, "mov rsi, rdx"], [52, "mov rdi, rax"], [53, "call sub_41A861"], [54, "mov [rbp+var_18], rax"], [55, "mov rdx, [rbp+var_18]"], [56, "mov rax, [rbp+var_10]"], [57, "mov rsi, rdx"], [58, "mov rdi, rax"], [59, "call sub_41954D"], [60, "mov rax, [rbp+var_8]"], [61, "mov rax, [rax+8]"], [62, "mov [rbp+var_8], rax"], [63, "mov rax, [rbp+var_30]"], [64, "add rax, 28h "], [65, "cmp [rbp+var_8], rax"], [66, "jnz short loc_41A05D"], [67, "mov rax, [rbp+var_30]"], [68, "mov rax, [rax+68h]"], [69, "test rax, rax"], [70, "jz short loc_41A0CD"], [71, "mov rax, [rbp+var_30]"], [72, "mov rdx, [rax+68h]"], [73, "mov rax, [rbp+var_28]"], [74, "mov rsi, rdx"], [75, "mov rdi, rax"], [76, "call sub_41DF4F"], [77, "mov rdx, [rbp+var_10]"], [78, "mov [rdx+68h], rax"], [79, "mov rax, [rbp+var_10]"], [80, "leave"], [81, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 3], [8, 6], [9, 7], [11, 10], [12, 4], [13, 12], [14, 13], [15, 14], [16, 4], [17, 16], [17, 6], [18, 11], [19, 18], [20, 3], [21, 19], [22, 20], [24, 4], [25, 24], [26, 3], [27, 25], [28, 26], [30, 11], [31, 29], [31, 30], [33, 4], [34, 33], [35, 11], [36, 34], [36, 35], [37, 4], [38, 34], [38, 36], [38, 37], [39, 11], [40, 36], [40, 39], [41, 3], [42, 40], [43, 41], [45, 4], [46, 36], [46, 45], [46, 31], [47, 46], [49, 62], [49, 47], [50, 3], [51, 49], [52, 50], [54, 53], [55, 54], [56, 11], [57, 55], [58, 56], [60, 62], [60, 47], [61, 36], [61, 31], [61, 60], [62, 61], [63, 4], [64, 63], [65, 47], [65, 62], [65, 64], [66, 65], [67, 4], [68, 36], [68, 31], [68, 67], [69, 68], [70, 69], [71, 4], [72, 36], [72, 31], [72, 78], [72, 71], [73, 3], [74, 72], [75, 73], [77, 11], [78, 77], [78, 76], [79, 11], [81, 79]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c_a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.jsonl.gz", "strip_func_name": "sub_419FB0", "query": "\n\n\n__int64 __fastcall sub_419FB0(__int64 a1, __int64 a2)\n{\n__int64 v3; // [rsp+18h] [rbp-18h]\n__int64 v4; // [rsp+20h] [rbp-10h]\n__int64 i; // [rsp+28h] [rbp-8h]\n\nv4 = sub_419F61(a1, *(_DWORD *)a2);\nif ( *(_DWORD *)a2 )\n{\n*(_DWORD *)(v4 + 8) = *(_DWORD *)(a2 + 8);\nsub_4C1B0D(a1, v4 + 16, a2 + 16);\n}\nelse\n{\nsub_419E8D(a1, v4 + 8, a2 + 8);\n*(_QWORD *)(v4 + 32) = sub_419520(a1, *(_QWORD *)(a2 + 32));\n}\nfor ( i = *(_QWORD *)(a2 + 48); i != a2 + 40; i = *(_QWORD *)(i + 8) )\n{\nv3 = sub_41A861(a1, i);\nsub_41954D(v4, v3);\n}\nif ( *(_QWORD *)(a2 + 104) )\n*(_QWORD *)(v4 + 104) = sub_41DF4F(a1, *(_QWORD *)(a2 + 104));\nreturn v4;\n}\n\n\n\nQ:[a1,a2,v4,i,sub_419FB0,sub_419F61,sub_4C1B0D,sub_419E8D,sub_419520,sub_41A861,sub_41954D,sub_41DF4F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pool', 'a2': 'src', 'v4': 'dst', 'i': 'sh', 'sub_419FB0': 'pjsip_msg_clone', 'sub_419F61': 'pjsip_msg_create', 'sub_4C1B0D': 'pj_strdup', 'sub_419E8D': 'pjsip_method_copy', 'sub_419520': 'pjsip_uri_clone_1', 'sub_41A861': 'pjsip_hdr_clone', 'sub_41954D': 'pjsip_msg_add_hdr_2', 'sub_41DF4F': 'pjsip_msg_body_clone'}"}
guest_code
da41dd24b2456dd116bdf4e18d8ba75b626d268e4613bfc082043f84d88874ff
Broadcom
arm64-linux
NA
static void guest_code(void) { uint64_t addr; int i; /* * On s390x, all pages of a 1M segment are initially marked as dirty * when a page of the segment is written to for the very first time. * To compensate this specialty in this test, we need to touch all * pages during the first iteration. */ for (i = 0; i < guest_num_pages; i++) { addr = guest_test_virt_mem + i * guest_page_size; *(uint64_t *)addr = READ_ONCE(iteration); } while (true) { for (i = 0; i < TEST_PAGES_PER_LOOP; i++) { addr = guest_test_virt_mem; addr += (READ_ONCE(random_array[i]) % guest_num_pages) * guest_page_size; addr &= ~(host_page_size - 1); *(uint64_t *)addr = READ_ONCE(iteration); } /* Tell the host that we need more random numbers */ GUEST_SYNC(1); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40268D", "function_addr": 4204173, "binary_name": "da41dd24b2456dd116bdf4e18d8ba75b626d268e4613bfc082043f84d88874ff.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 70h"], [3, "mov [rbp+var_4], 0"], [4, "jmp loc_40276F"], [5, "mov eax, [rbp+var_4]"], [6, "movsxd rdx, eax"], [7, "mov rax, cs:qword_41A4E8"], [8, "imul rdx, rax"], [9, "mov rax, cs:qword_41A240"], [10, "add rax, rdx"], [11, "mov [rbp+var_10], rax"], [12, "mov [rbp+var_60], 0"], [13, "mov [rbp+src], offset qword_41C500"], [14, "lea rax, [rbp+var_60]"], [15, "mov [rbp+dest], rax"], [16, "mov [rbp+var_24], 8"], [17, "cmp [rbp+var_24], 8"], [18, "jz short loc_402732"], [19, "cmp [rbp+var_24], 8"], [20, "jg short loc_402742"], [21, "cmp [rbp+var_24], 4"], [22, "jz short loc_402724"], [23, "cmp [rbp+var_24], 4"], [24, "jg short loc_402742"], [25, "cmp [rbp+var_24], 1"], [26, "jz short loc_402705"], [27, "cmp [rbp+var_24], 2"], [28, "jz short loc_402714"], [29, "jmp short loc_402742"], [30, "mov rax, [rbp+src]"], [31, "movzx edx, byte ptr [rax]"], [32, "mov rax, [rbp+dest]"], [33, "mov [rax], dl"], [34, "jmp short loc_40275F"], [35, "mov rax, [rbp+src]"], [36, "movzx edx, word ptr [rax]"], [37, "mov rax, [rbp+dest]"], [38, "mov [rax], dx"], [39, "jmp short loc_40275F"], [40, "mov rax, [rbp+src]"], [41, "mov edx, [rax]"], [42, "mov rax, [rbp+dest]"], [43, "mov [rax], edx"], [44, "jmp short loc_40275F"], [45, "mov rax, [rbp+src]"], [46, "mov rdx, [rax]"], [47, "mov rax, [rbp+dest]"], [48, "mov [rax], rdx"], [49, "jmp short loc_40275F"], [50, "mov eax, [rbp+var_24]"], [51, "cdqe"], [52, "mov rcx, [rbp+dest]"], [53, "mov rdx, [rbp+src]"], [54, "mov rsi, rdx"], [55, "mov rdx, rax"], [56, "mov rdi, rcx"], [57, "call _memcpy"], [58, "jmp short $+2"], [59, "nop"], [60, "mov rdx, [rbp+var_60]"], [61, "mov rax, [rbp+var_10]"], [62, "mov [rax], rdx"], [63, "add [rbp+var_4], 1"], [64, "mov eax, [rbp+var_4]"], [65, "movsxd rdx, eax"], [66, "mov rax, cs:qword_41A4F0"], [67, "cmp rdx, rax"], [68, "jb loc_4026A1"], [69, "mov [rbp+var_4], 0"], [70, "jmp loc_402924"], [71, "mov rax, cs:qword_41A240"], [72, "mov [rbp+var_10], rax"], [73, "mov [rbp+var_68], 0"], [74, "mov eax, [rbp+var_4]"], [75, "cdqe"], [76, "shl rax, 3"], [77, "add rax, 41A500h"], [78, "mov [rbp+var_48], rax"], [79, "lea rax, [rbp+var_68]"], [80, "mov [rbp+var_50], rax"], [81, "mov [rbp+var_54], 8"], [82, "cmp [rbp+var_54], 8"], [83, "jz short loc_402819"], [84, "cmp [rbp+var_54], 8"], [85, "jg short loc_402829"], [86, "cmp [rbp+var_54], 4"], [87, "jz short loc_40280B"], [88, "cmp [rbp+var_54], 4"], [89, "jg short loc_402829"], [90, "cmp [rbp+var_54], 1"], [91, "jz short loc_4027EC"], [92, "cmp [rbp+var_54], 2"], [93, "jz short loc_4027FB"], [94, "jmp short loc_402829"], [95, "mov rax, [rbp+var_48]"], [96, "movzx edx, byte ptr [rax]"], [97, "mov rax, [rbp+var_50]"], [98, "mov [rax], dl"], [99, "jmp short loc_402844"], [100, "mov rax, [rbp+var_48]"], [101, "movzx edx, word ptr [rax]"], [102, "mov rax, [rbp+var_50]"], [103, "mov [rax], dx"], [104, "jmp short loc_402844"], [105, "mov rax, [rbp+var_48]"], [106, "mov edx, [rax]"], [107, "mov rax, [rbp+var_50]"], [108, "mov [rax], edx"], [109, "jmp short loc_402844"], [110, "mov rax, [rbp+var_48]"], [111, "mov rdx, [rax]"], [112, "mov rax, [rbp+var_50]"], [113, "mov [rax], rdx"], [114, "jmp short loc_402844"], [115, "mov eax, [rbp+var_54]"], [116, "cdqe"], [117, "mov rcx, [rbp+var_50]"], [118, "mov rdx, [rbp+var_48]"], [119, "mov rsi, rdx"], [120, "mov rdx, rax"], [121, "mov rdi, rcx"], [122, "call _memcpy"], [123, "nop"], [124, "mov rax, [rbp+var_68]"], [125, "mov rcx, cs:qword_41A4F0"], [126, "mov edx, 0"], [127, "div rcx"], [128, "mov rax, cs:qword_41A4E8"], [129, "imul rax, rdx"], [130, "add [rbp+var_10], rax"], [131, "mov rax, cs:qword_41A4E0"], [132, "neg rax"], [133, "and [rbp+var_10], rax"], [134, "mov [rbp+var_70], 0"], [135, "mov [rbp+var_30], offset qword_41C500"], [136, "lea rax, [rbp+var_70]"], [137, "mov [rbp+var_38], rax"], [138, "mov [rbp+var_3C], 8"], [139, "cmp [rbp+var_3C], 8"], [140, "jz short loc_4028E7"], [141, "cmp [rbp+var_3C], 8"], [142, "jg short loc_4028F7"], [143, "cmp [rbp+var_3C], 4"], [144, "jz short loc_4028D9"], [145, "cmp [rbp+var_3C], 4"], [146, "jg short loc_4028F7"], [147, "cmp [rbp+var_3C], 1"], [148, "jz short loc_4028BA"], [149, "cmp [rbp+var_3C], 2"], [150, "jz short loc_4028C9"], [151, "jmp short loc_4028F7"], [152, "mov rax, [rbp+var_30]"], [153, "movzx edx, byte ptr [rax]"], [154, "mov rax, [rbp+var_38]"], [155, "mov [rax], dl"], [156, "jmp short loc_402914"], [157, "mov rax, [rbp+var_30]"], [158, "movzx edx, word ptr [rax]"], [159, "mov rax, [rbp+var_38]"], [160, "mov [rax], dx"], [161, "jmp short loc_402914"], [162, "mov rax, [rbp+var_30]"], [163, "mov edx, [rax]"], [164, "mov rax, [rbp+var_38]"], [165, "mov [rax], edx"], [166, "jmp short loc_402914"], [167, "mov rax, [rbp+var_30]"], [168, "mov rdx, [rax]"], [169, "mov rax, [rbp+var_38]"], [170, "mov [rax], rdx"], [171, "jmp short loc_402914"], [172, "mov eax, [rbp+var_3C]"], [173, "cdqe"], [174, "mov rcx, [rbp+var_38]"], [175, "mov rdx, [rbp+var_30]"], [176, "mov rsi, rdx"], [177, "mov rdx, rax"], [178, "mov rdi, rcx"], [179, "call _memcpy"], [180, "jmp short $+2"], [181, "nop"], [182, "mov rdx, [rbp+var_70]"], [183, "mov rax, [rbp+var_10]"], [184, "mov [rax], rdx"], [185, "add [rbp+var_4], 1"], [186, "cmp [rbp+var_4], 3FFh"], [187, "jle loc_402791"], [188, "mov ecx, 1"], [189, "mov edx, offset aHello"], [190, "mov esi, 2"], [191, "mov edi, 1"], [192, "mov eax, 0"], [193, "call sub_40F8CD"], [194, "jmp loc_402785"]], "data_dep": [[5, 3], [5, 63], [6, 5], [8, 6], [8, 7], [10, 8], [10, 9], [11, 10], [14, 10], [14, 12], [15, 14], [17, 16], [18, 17], [19, 16], [20, 19], [21, 16], [22, 21], [23, 16], [24, 23], [25, 16], [26, 25], [27, 16], [28, 27], [30, 13], [31, 38], [31, 33], [31, 30], [31, 62], [31, 48], [31, 43], [32, 15], [33, 31], [33, 32], [35, 13], [36, 62], [36, 48], [36, 43], [36, 38], [36, 33], [36, 35], [37, 15], [38, 36], [38, 37], [40, 13], [41, 40], [41, 33], [41, 62], [41, 48], [41, 43], [41, 38], [42, 15], [43, 41], [43, 42], [45, 13], [46, 48], [46, 43], [46, 45], [46, 38], [46, 33], [46, 62], [47, 15], [48, 47], [48, 46], [50, 16], [52, 15], [53, 13], [54, 53], [55, 50], [56, 52], [60, 12], [61, 11], [62, 60], [62, 61], [63, 63], [63, 3], [64, 63], [64, 3], [65, 64], [67, 65], [67, 66], [68, 67], [72, 71], [74, 185], [74, 69], [76, 74], [77, 76], [78, 77], [79, 73], [79, 77], [80, 79], [82, 81], [83, 82], [84, 81], [85, 84], [86, 81], [87, 86], [88, 81], [89, 88], [90, 81], [91, 90], [92, 81], [93, 92], [95, 78], [96, 95], [96, 113], [96, 33], [96, 170], [96, 108], [96, 165], [96, 103], [96, 48], [96, 160], [96, 62], [96, 98], [96, 155], [96, 43], [96, 38], [96, 184], [97, 80], [98, 96], [98, 97], [100, 78], [101, 33], [101, 170], [101, 108], [101, 165], [101, 103], [101, 48], [101, 160], [101, 62], [101, 98], [101, 155], [101, 43], [101, 100], [101, 38], [101, 184], [101, 113], [102, 80], [103, 102], [103, 101], [105, 78], [106, 43], [106, 38], [106, 184], [106, 113], [106, 33], [106, 170], [106, 108], [106, 165], [106, 103], [106, 48], [106, 160], [106, 105], [106, 62], [106, 98], [106, 155], [107, 80], [108, 107], [108, 106], [110, 78], [111, 165], [111, 110], [111, 103], [111, 48], [111, 160], [111, 62], [111, 98], [111, 155], [111, 43], [111, 38], [111, 184], [111, 113], [111, 33], [111, 170], [111, 108], [112, 80], [113, 112], [113, 111], [115, 81], [117, 80], [118, 78], [119, 118], [120, 115], [121, 117], [124, 73], [127, 125], [129, 128], [129, 126], [130, 72], [130, 129], [132, 131], [133, 132], [133, 130], [136, 132], [136, 134], [137, 136], [139, 138], [140, 139], [141, 138], [142, 141], [143, 138], [144, 143], [145, 138], [146, 145], [147, 138], [148, 147], [149, 138], [150, 149], [152, 135], [153, 98], [153, 155], [153, 43], [153, 152], [153, 38], [153, 184], [153, 113], [153, 33], [153, 170], [153, 108], [153, 62], [153, 165], [153, 103], [153, 48], [153, 160], [154, 137], [155, 153], [155, 154], [157, 135], [158, 113], [158, 33], [158, 170], [158, 108], [158, 62], [158, 165], [158, 103], [158, 48], [158, 160], [158, 98], [158, 155], [158, 157], [158, 43], [158, 38], [158, 184], [159, 137], [160, 158], [160, 159], [162, 135], [163, 43], [163, 38], [163, 184], [163, 113], [163, 33], [163, 170], [163, 108], [163, 165], [163, 103], [163, 48], [163, 155], [163, 160], [163, 62], [163, 98], [163, 162], [164, 137], [165, 163], [165, 164], [167, 135], [168, 98], [168, 43], [168, 155], [168, 38], [168, 48], [168, 184], [168, 113], [168, 33], [168, 170], [168, 108], [168, 62], [168, 165], [168, 103], [168, 167], [168, 160], [169, 137], [170, 169], [170, 168], [172, 138], [174, 137], [175, 135], [176, 175], [177, 172], [178, 174], [182, 134], [183, 133], [184, 182], [184, 183], [185, 69], [185, 185], [186, 69], [186, 185], [187, 186]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/da41dd24b2456dd116bdf4e18d8ba75b626d268e4613bfc082043f84d88874ff_da41dd24b2456dd116bdf4e18d8ba75b626d268e4613bfc082043f84d88874ff.jsonl.gz", "strip_func_name": "sub_40268D", "query": "\n\n\nvoid __fastcall __noreturn sub_40268D(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int a5, int a6)\n{\n__int64 v6; // [rsp+0h] [rbp-70h] BYREF\nunsigned __int64 v7; // [rsp+8h] [rbp-68h] BYREF\n__int64 v8; // [rsp+10h] [rbp-60h] BYREF\nint v9; // [rsp+1Ch] [rbp-54h]\nvoid *v10; // [rsp+20h] [rbp-50h]\nvoid *v11; // [rsp+28h] [rbp-48h]\nint v12; // [rsp+34h] [rbp-3Ch]\nvoid *v13; // [rsp+38h] [rbp-38h]\nvoid *v14; // [rsp+40h] [rbp-30h]\nint v15; // [rsp+4Ch] [rbp-24h]\nvoid *dest; // [rsp+50h] [rbp-20h]\nvoid *src; // [rsp+58h] [rbp-18h]\n__int64 v18; // [rsp+60h] [rbp-10h]\nint i; // [rsp+6Ch] [rbp-4h]\n\nfor ( i = 0; i < (unsigned __int64)qword_41A4F0; ++i )\n{\nv18 = qword_41A4E8 * i + qword_41A240;\nsrc = &qword_41C500;\ndest = &v8;\nv15 = 8;\nv8 = qword_41C500;\n*(_QWORD *)v18 = qword_41C500;\n}\nwhile ( 1 )\n{\nfor ( i = 0; i <= 1023; ++i )\n{\nv18 = qword_41A240;\nv7 = 0LL;\nv11 = (void *)(8LL * i + 4302080);\nv10 = &v7;\nv9 = 8;\nv7 = qword_41A500[i];\nv18 = v7 % qword_41A4F0 * qword_41A4E8 + qword_41A240;\nv18 &= -qword_41A4E0;\nv14 = &qword_41C500;\nv13 = &v6;\nv12 = 8;\nv6 = qword_41C500;\n*(_QWORD *)v18 = qword_41C500;\n}\nsub_40F8CD(1, 2, (unsigned int)\"hello\", 1, a5, a6, v6);\n}\n}\n\n\n\nQ:[v6,v7,v8,v18,sub_40268D,sub_40F8CD,]\nAssistant: ", "hints": "[]", "response": "{'v6': '__u_1', 'v7': '__u_0', 'v8': '__u', 'v18': 'addr', 'sub_40268D': 'guest_code', 'sub_40F8CD': 'ucall_0'}"}
s2n_connection_recv_stuffer
7421faa8c444aeca9266add08f45c75a4f43aebd993f880cd35dd964f63fdfb2
aws
s2n-tls
NA
int s2n_connection_recv_stuffer(struct s2n_stuffer *stuffer, struct s2n_connection *conn, uint32_t len) { POSIX_ENSURE_REF(conn->recv); /* Make sure we have enough space to write */ POSIX_GUARD(s2n_stuffer_reserve_space(stuffer, len)); int r = 0; S2N_IO_RETRY_EINTR(r, conn->recv(conn->recv_io_context, stuffer->blob.data + stuffer->write_cursor, len)); POSIX_ENSURE(r >= 0, S2N_ERR_RECV_STUFFER_FROM_CONN); /* Record just how many bytes we have written */ POSIX_GUARD(s2n_stuffer_skip_write(stuffer, r)); return r; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42F28B", "function_addr": 4387467, "binary_name": "7421faa8c444aeca9266add08f45c75a4f43aebd993f880cd35dd964f63fdfb2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_24], edx"], [6, "mov rax, fs:28h"], [7, "mov [rbp+var_8], rax"], [8, "xor eax, eax"], [9, "mov rax, [rbp+var_20]"], [10, "mov rax, [rax+38h]"], [11, "test rax, rax"], [12, "jnz short loc_42F2F9"], [13, "mov rax, fs:0"], [14, "lea rax, [rax-18h]"], [15, "lea rdx, aErrorEncounter_541"], [16, "mov [rax], rdx"], [17, "mov rax, fs:0"], [18, "lea rax, [rax-20h]"], [19, "mov dword ptr [rax], 18000009h"], [20, "call sub_46D9B7"], [21, "mov eax, 0FFFFFFFFh"], [22, "jmp loc_42F3D0"], [23, "mov edx, [rbp+var_24]"], [24, "mov rax, [rbp+var_18]"], [25, "mov esi, edx"], [26, "mov rdi, rax"], [27, "call sub_41CD1B"], [28, "test eax, eax"], [29, "jns short loc_42F318"], [30, "mov eax, 0FFFFFFFFh"], [31, "jmp loc_42F3D0"], [32, "mov [rbp+var_C], 0"], [33, "call ___errno_location"], [34, "mov dword ptr [rax], 0"], [35, "mov rax, [rbp+var_20]"], [36, "mov rcx, [rax+38h]"], [37, "mov rax, [rbp+var_18]"], [38, "mov rdx, [rax]"], [39, "mov rax, [rbp+var_18]"], [40, "mov eax, [rax+1Ch]"], [41, "mov eax, eax"], [42, "lea rsi, [rdx+rax]"], [43, "mov rax, [rbp+var_20]"], [44, "mov rax, [rax+48h]"], [45, "mov edx, [rbp+var_24]"], [46, "mov rdi, rax"], [47, "call rcx"], [48, "mov [rbp+var_C], eax"], [49, "cmp [rbp+var_C], 0"], [50, "jns short loc_42F3A7"], [51, "call ___errno_location"], [52, "mov eax, [rax]"], [53, "cmp eax, 4"], [54, "jz short loc_42F3A7"], [55, "mov rax, fs:0"], [56, "lea rax, [rax-18h]"], [57, "lea rdx, aErrorEncounter_542"], [58, "mov [rax], rdx"], [59, "mov rax, fs:0"], [60, "lea rax, [rax-20h]"], [61, "mov dword ptr [rax], 1800003Dh"], [62, "call sub_46D9B7"], [63, "mov eax, 0FFFFFFFFh"], [64, "jmp short loc_42F3D0"], [65, "cmp [rbp+var_C], 0"], [66, "js loc_42F31F"], [67, "mov edx, [rbp+var_C]"], [68, "mov rax, [rbp+var_18]"], [69, "mov esi, edx"], [70, "mov rdi, rax"], [71, "call sub_41C44A"], [72, "test eax, eax"], [73, "jns short loc_42F3CD"], [74, "mov eax, 0FFFFFFFFh"], [75, "jmp short loc_42F3D0"], [76, "mov eax, [rbp+var_C]"], [77, "mov rcx, [rbp+var_8]"], [78, "sub rcx, fs:28h"], [79, "jz short locret_42F3E4"], [80, "call ___stack_chk_fail"], [81, "leave"], [82, "retn"]], "data_dep": [[7, 6], [9, 4], [10, 9], [11, 10], [12, 11], [14, 13], [16, 15], [16, 14], [18, 17], [18, 16], [19, 18], [23, 5], [24, 3], [25, 23], [26, 24], [28, 27], [29, 28], [34, 33], [35, 4], [36, 34], [36, 35], [37, 3], [38, 37], [38, 34], [39, 3], [40, 34], [40, 39], [41, 40], [42, 41], [42, 25], [42, 34], [42, 42], [43, 4], [44, 34], [44, 43], [45, 5], [46, 44], [47, 36], [48, 47], [49, 48], [50, 49], [52, 51], [52, 34], [53, 52], [54, 53], [56, 34], [56, 58], [56, 55], [56, 61], [57, 45], [58, 56], [58, 57], [60, 59], [60, 58], [61, 60], [65, 48], [66, 65], [67, 48], [68, 3], [69, 67], [70, 68], [72, 71], [73, 72], [76, 48], [77, 7], [78, 77], [79, 78], [82, 74], [82, 76], [82, 21], [82, 30], [82, 63]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/7421faa8c444aeca9266add08f45c75a4f43aebd993f880cd35dd964f63fdfb2_7421faa8c444aeca9266add08f45c75a4f43aebd993f880cd35dd964f63fdfb2.jsonl.gz", "strip_func_name": "sub_42F28B", "query": "\n\n\n__int64 __fastcall sub_42F28B(__int64 a1, __int64 a2, unsigned int a3)\n{\n__int64 result; // rax\n__int64 v4; // rsi\n__int64 v5; // rdi\nint v9; // [rsp+24h] [rbp-Ch]\n\nif ( *(_QWORD *)(a2 + 56) )\n{\nif ( (int)sub_41CD1B(a1, a3) >= 0 )\n{\ndo\n{\n*__errno_location() = 0;\nv4 = *(_QWORD *)a1 + *(unsigned int *)(a1 + 28);\nv5 = *(_QWORD *)(a2 + 72);\nv9 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(a2 + 56))(v5, v4, a3);\nif ( v9 < 0 && *__errno_location() != 4 )\n{\n*(_QWORD *)(__readfsqword(0) - 24) = \"Error encountered in s2n_connection.c:1264\";\n*(_DWORD *)(__readfsqword(0) - 32) = 402653245;\nsub_46D9B7(v5, v4);\nreturn 0xFFFFFFFFLL;\n}\n}\nwhile ( v9 < 0 );\nif ( (int)sub_41C44A(a1, (unsigned int)v9) >= 0 )\nresult = (unsigned int)v9;\nelse\nresult = 0xFFFFFFFFLL;\n}\nelse\n{\nresult = 0xFFFFFFFFLL;\n}\n}\nelse\n{\n*(_QWORD *)(__readfsqword(0) - 24) = \"Error encountered in s2n_connection.c:1256\";\n*(_DWORD *)(__readfsqword(0) - 32) = 402653193;\nsub_46D9B7(a1, a2);\nresult = 0xFFFFFFFFLL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v4,v5,v9,sub_42F28B,sub_41CD1B,sub_46D9B7,sub_41C44A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'len', 'a1': 'stuffer', 'a2': 'conn', 'v4': 'conn', 'v5': 'stuffer', 'v9': 'r', 'sub_42F28B': 's2n_connection_recv_stuffer', 'sub_41CD1B': 's2n_stuffer_reserve_space', 'sub_46D9B7': 's2n_calculate_stacktrace', 'sub_41C44A': 's2n_stuffer_skip_write'}"}
netns_save
b464ae102055d473ef25f33f11f1d68262df0c4bcafdcb7870c1329cbf64cb74
cloudflare
cloudflare-blog
NA
int netns_save() { int net_ns = open("/proc/self/ns/net", O_RDONLY); if (net_ns < 0) { PFATAL("open(/proc/self/ns/net)"); } return net_ns; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402412", "function_addr": 4203538, "binary_name": "b464ae102055d473ef25f33f11f1d68262df0c4bcafdcb7870c1329cbf64cb74.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov esi, 0"], [4, "mov edi, offset aProcSelfNsNet"], [5, "mov eax, 0"], [6, "call _open"], [7, "mov [rbp+var_4], eax"], [8, "cmp [rbp+var_4], 0"], [9, "jns short loc_4024A6"], [10, "mov rax, cs:stderr"], [11, "mov rcx, rax"], [12, "mov edx, 2Ah "], [13, "mov esi, 1"], [14, "mov edi, offset aSystemErrorOpe_0"], [15, "call _fwrite"], [16, "mov rax, cs:stderr"], [17, "mov r8d, 14h"], [18, "mov ecx, offset aSrcNamespaceC"], [19, "mov edx, offset aNetnsSave"], [20, "mov esi, offset aLocationSSU_1"], [21, "mov rdi, rax"], [22, "mov eax, 0"], [23, "call _fprintf"], [24, "mov edi, offset aOsMessage_1"], [25, "call _perror"], [26, "mov rax, cs:stderr"], [27, "mov rsi, rax"], [28, "mov edi, 0Ah"], [29, "call _fputc"], [30, "mov edi, 1"], [31, "call _exit"], [32, "mov eax, [rbp+var_4]"], [33, "leave"], [34, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [11, 10], [21, 16], [27, 26], [32, 7], [34, 32]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b464ae102055d473ef25f33f11f1d68262df0c4bcafdcb7870c1329cbf64cb74_b464ae102055d473ef25f33f11f1d68262df0c4bcafdcb7870c1329cbf64cb74.jsonl.gz", "strip_func_name": "sub_402412", "query": "\n\n\n__int64 sub_402412()\n{\nint v1; // [rsp+Ch] [rbp-4h]\n\nv1 = open(\"/proc/self/ns/net\", 0);\nif ( v1 < 0 )\n{\nfwrite(\"[-] SYSTEM ERROR : open(/proc/self/ns/net)\", 1uLL, 0x2AuLL, stderr);\nfprintf(stderr, \"\\n\\tLocation : %s(), %s:%u\\n\", \"netns_save\", \"src/namespace.c\", 20LL);\nperror(\" OS message \");\nfputc(10, stderr);\nexit(1);\n}\nreturn (unsigned int)v1;\n}\n\n\n\nQ:[v1,sub_402412,]\nAssistant: ", "hints": "[]", "response": "{'v1': 'net_ns', 'sub_402412': 'netns_save'}"}
hts_tpool_process_ref_decr
46189af39af10ccaca23eefe30c687d1c137b2067e20bf73f79a757c1f387e60
liulab-dfci
MAESTRO
NA
void hts_tpool_process_ref_decr(hts_tpool_process *q) { pthread_mutex_lock(&q->p->pool_m); if (--q->ref_count <= 0) { pthread_mutex_unlock(&q->p->pool_m); hts_tpool_process_destroy(q); return; } // maybe also call destroy here if needed? pthread_mutex_unlock(&q->p->pool_m); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_47C521", "function_addr": 4703521, "binary_name": "46189af39af10ccaca23eefe30c687d1c137b2067e20bf73f79a757c1f387e60.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rax, [rax]"], [6, "add rax, 38h "], [7, "mov rdi, rax"], [8, "call _pthread_mutex_lock"], [9, "mov rax, [rbp+var_8]"], [10, "mov eax, [rax+58h]"], [11, "lea edx, [rax-1]"], [12, "mov rax, [rbp+var_8]"], [13, "mov [rax+58h], edx"], [14, "mov rax, [rbp+var_8]"], [15, "mov eax, [rax+58h]"], [16, "test eax, eax"], [17, "jg short loc_47C57D"], [18, "mov rax, [rbp+var_8]"], [19, "mov rax, [rax]"], [20, "add rax, 38h "], [21, "mov rdi, rax"], [22, "call _pthread_mutex_unlock"], [23, "mov rax, [rbp+var_8]"], [24, "mov rdi, rax"], [25, "call sub_47C862"], [26, "jmp short locret_47C590"], [27, "mov rax, [rbp+var_8]"], [28, "mov rax, [rax]"], [29, "add rax, 38h "], [30, "mov rdi, rax"], [31, "call _pthread_mutex_unlock"], [32, "leave"], [33, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [9, 3], [10, 9], [11, 10], [12, 3], [13, 11], [13, 12], [14, 3], [15, 14], [15, 13], [16, 15], [17, 16], [18, 3], [19, 18], [19, 13], [20, 19], [21, 20], [23, 3], [24, 23], [27, 3], [28, 27], [28, 13], [29, 28], [30, 29], [33, 25], [33, 31]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/46189af39af10ccaca23eefe30c687d1c137b2067e20bf73f79a757c1f387e60_46189af39af10ccaca23eefe30c687d1c137b2067e20bf73f79a757c1f387e60.jsonl.gz", "strip_func_name": "sub_47C521", "query": "\n\n\nint __fastcall sub_47C521(_DWORD *a1)\n{\npthread_mutex_lock((pthread_mutex_t *)(*(_QWORD *)a1 + 56LL));\nif ( (int)--a1[22] > 0 )\nreturn pthread_mutex_unlock((pthread_mutex_t *)(*(_QWORD *)a1 + 56LL));\npthread_mutex_unlock((pthread_mutex_t *)(*(_QWORD *)a1 + 56LL));\nreturn sub_47C862(a1);\n}\n\n\n\nQ:[a1,sub_47C521,sub_47C862,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'q', 'sub_47C521': 'hts_tpool_process_ref_decr', 'sub_47C862': 'hts_tpool_process_destroy'}"}
is_driver_loaded
7d7ad269fc9867615593a48ee15368251fd56a2ba66d568f117132d9d77d105c
cisco
exanic-software
NA
int is_driver_loaded(void) { DIR* handle = opendir(EXANIC_DRIVER_SYSFS_ENTRY); if (handle) { closedir(handle); return 1; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409A31", "function_addr": 4233777, "binary_name": "7d7ad269fc9867615593a48ee15368251fd56a2ba66d568f117132d9d77d105c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov edi, offset aSysBusPciDrive"], [4, "call _opendir"], [5, "mov [rbp+dirp], rax"], [6, "cmp [rbp+dirp], 0"], [7, "jz short loc_409A61"], [8, "mov rax, [rbp+dirp]"], [9, "mov rdi, rax"], [10, "call _closedir"], [11, "mov eax, 1"], [12, "jmp short locret_409A66"], [13, "mov eax, 0"], [14, "leave"], [15, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 5], [9, 8], [15, 11], [15, 13]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/7d7ad269fc9867615593a48ee15368251fd56a2ba66d568f117132d9d77d105c_7d7ad269fc9867615593a48ee15368251fd56a2ba66d568f117132d9d77d105c.jsonl.gz", "strip_func_name": "sub_409A31", "query": "\n\n\n__int64 sub_409A31()\n{\nDIR *dirp; // [rsp+8h] [rbp-8h]\n\ndirp = opendir(\"/sys/bus/pci/drivers/exanic\");\nif ( !dirp )\nreturn 0LL;\nclosedir(dirp);\nreturn 1LL;\n}\n\n\n\nQ:[dirp,sub_409A31,]\nAssistant: ", "hints": "[]", "response": "{'dirp': 'handle', 'sub_409A31': 'is_driver_loaded'}"}
_hexval_of_char
0f9bcbc1d0fbf6c6839abd8f910f83266284ee2d5e0731c128fb20004c6eb44f
asrlora
alios-asr-lora
NA
static uint8_t _hexval_of_char(char hex) { if (LITE_isdigit(hex)) { return (hex - '0'); } if (hex >= 'a' && hex <= 'f') { return (hex - 'a' + 10); } if (hex >= 'A' && hex <= 'F') { return (hex - 'A' + 10); } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407B79", "function_addr": 4225913, "binary_name": "0f9bcbc1d0fbf6c6839abd8f910f83266284ee2d5e0731c128fb20004c6eb44f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, edi"], [3, "mov [rbp+var_4], al"], [4, "mov rax, cs:qword_414940"], [5, "add rax, 1"], [6, "mov cs:qword_414940, rax"], [7, "cmp [rbp+var_4], 39h "], [8, "jg short loc_407BCD"], [9, "mov rax, cs:qword_414948"], [10, "add rax, 1"], [11, "mov cs:qword_414948, rax"], [12, "cmp [rbp+var_4], 2Fh "], [13, "jle short loc_407BCD"], [14, "mov rax, cs:qword_414950"], [15, "add rax, 1"], [16, "mov cs:qword_414950, rax"], [17, "movzx eax, [rbp+var_4]"], [18, "sub eax, 30h "], [19, "jmp short loc_407C44"], [20, "cmp [rbp+var_4], 60h "], [21, "jle short loc_407C06"], [22, "mov rax, cs:qword_414958"], [23, "add rax, 1"], [24, "mov cs:qword_414958, rax"], [25, "cmp [rbp+var_4], 66h "], [26, "jg short loc_407C06"], [27, "mov rax, cs:qword_414960"], [28, "add rax, 1"], [29, "mov cs:qword_414960, rax"], [30, "movzx eax, [rbp+var_4]"], [31, "sub eax, 57h "], [32, "jmp short loc_407C44"], [33, "cmp [rbp+var_4], 40h "], [34, "jle short loc_407C3F"], [35, "mov rax, cs:qword_414968"], [36, "add rax, 1"], [37, "mov cs:qword_414968, rax"], [38, "cmp [rbp+var_4], 46h "], [39, "jg short loc_407C3F"], [40, "mov rax, cs:qword_414970"], [41, "add rax, 1"], [42, "mov cs:qword_414970, rax"], [43, "movzx eax, [rbp+var_4]"], [44, "sub eax, 37h "], [45, "jmp short loc_407C44"], [46, "mov eax, 0"], [47, "pop rbp"], [48, "retn"]], "data_dep": [[3, 2], [5, 4], [6, 5], [7, 3], [8, 7], [10, 9], [11, 10], [12, 3], [13, 12], [15, 14], [16, 15], [17, 3], [18, 17], [20, 3], [21, 20], [23, 22], [24, 23], [25, 3], [26, 25], [28, 27], [29, 28], [30, 3], [31, 30], [33, 3], [34, 33], [36, 35], [37, 36], [38, 3], [39, 38], [41, 40], [42, 41], [43, 3], [44, 43], [47, 0], [48, 44], [48, 31], [48, 46], [48, 18]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/0f9bcbc1d0fbf6c6839abd8f910f83266284ee2d5e0731c128fb20004c6eb44f_0f9bcbc1d0fbf6c6839abd8f910f83266284ee2d5e0731c128fb20004c6eb44f.jsonl.gz", "strip_func_name": "sub_407B79", "query": "\n\n\n__int64 __fastcall sub_407B79(char a1)\n{\n__int64 result; // rax\n\n++qword_414940;\nif ( a1 > 57 || (++qword_414948, a1 <= 47) )\n{\nif ( a1 <= 96 || (++qword_414958, a1 > 102) )\n{\nif ( a1 <= 64 || (++qword_414968, a1 > 70) )\n{\nresult = 0LL;\n}\nelse\n{\n++qword_414970;\nresult = (unsigned int)(unsigned __int8)a1 - 55;\n}\n}\nelse\n{\n++qword_414960;\nresult = (unsigned int)(unsigned __int8)a1 - 87;\n}\n}\nelse\n{\n++qword_414950;\nresult = (unsigned int)(unsigned __int8)a1 - 48;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_407B79,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'hex', 'sub_407B79': '_hexval_of_char'}"}
janet_asm_longjmp
34d708bcb60d5af2e39328b237b23bc6bb4df80dc158ca9262fb4bf1d3328aba
janet-lang
janet
NA
static void janet_asm_longjmp(JanetAssembler *a) { #if defined(JANET_BSD) || defined(JANET_APPLE) _longjmp(a->on_error, 1); #else longjmp(a->on_error, 1); #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40C2D3", "function_addr": 4244179, "binary_name": "34d708bcb60d5af2e39328b237b23bc6bb4df80dc158ca9262fb4bf1d3328aba.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "add rax, 10h"], [6, "mov esi, 1"], [7, "mov rdi, rax"], [8, "call _longjmp"]], "data_dep": [[4, 3], [5, 4], [7, 5]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/34d708bcb60d5af2e39328b237b23bc6bb4df80dc158ca9262fb4bf1d3328aba_34d708bcb60d5af2e39328b237b23bc6bb4df80dc158ca9262fb4bf1d3328aba.jsonl.gz", "strip_func_name": "sub_40C2D3", "query": "\n\n\nvoid __fastcall __noreturn sub_40C2D3(__int64 a1)\n{\nlongjmp((struct __jmp_buf_tag *)(a1 + 16), 1);\n}\n\n\n\nQ:[a1,sub_40C2D3,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'a', 'sub_40C2D3': 'janet_asm_longjmp'}"}
export_file_list
d7d8c2786d99212eeec476ef8e04011aaa733e63dfe7c4f854df34437a85aa08
jarun
nnn
NA
static void export_file_list(void) { if (!ndents) return; struct entry *pdent = pdents; int fd = create_tmp_file(); if (fd == -1) { DPRINTF_S(strerror(errno)); return; } for (int r = 0; r < ndents; ++pdent, ++r) { if (write(fd, pdent->name, pdent->nlen - 1) != (pdent->nlen - 1)) break; if ((r != ndents - 1) && (write(fd, "\n", 1) != 1)) break; } if (close(fd)) { DPRINTF_S(strerror(errno)); } spawn(editor, g_tmpfpath, NULL, NULL, F_CLI); if (xconfirm(get_input(messages[MSG_RM_TMP]))) unlink(g_tmpfpath); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406615", "function_addr": 4220437, "binary_name": "d7d8c2786d99212eeec476ef8e04011aaa733e63dfe7c4f854df34437a85aa08.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov eax, cs:dword_426D80"], [4, "test eax, eax"], [5, "jz loc_406720"], [6, "mov rax, cs:base"], [7, "mov [rbp+var_8], rax"], [8, "call sub_404A22"], [9, "mov [rbp+fd], eax"], [10, "cmp [rbp+fd], 0FFFFFFFFh"], [11, "jz loc_406723"], [12, "mov [rbp+var_C], 0"], [13, "jmp short loc_4066BD"], [14, "mov rax, [rbp+var_8]"], [15, "movzx eax, word ptr [rax+25h]"], [16, "movzx eax, ax"], [17, "sub eax, 1"], [18, "movsxd rdx, eax"], [19, "mov rax, [rbp+var_8]"], [20, "mov rcx, [rax]"], [21, "mov eax, [rbp+fd]"], [22, "mov rsi, rcx"], [23, "mov edi, eax"], [24, "call _write"], [25, "mov rdx, [rbp+var_8]"], [26, "movzx edx, word ptr [rdx+25h]"], [27, "movzx edx, dx"], [28, "sub edx, 1"], [29, "movsxd rdx, edx"], [30, "cmp rax, rdx"], [31, "jnz short loc_4066CA"], [32, "mov eax, cs:dword_426D80"], [33, "sub eax, 1"], [34, "cmp [rbp+var_C], eax"], [35, "jz short loc_4066B4"], [36, "mov eax, [rbp+fd]"], [37, "mov edx, 1"], [38, "mov esi, offset asc_41897D"], [39, "mov edi, eax"], [40, "call _write"], [41, "cmp rax, 1"], [42, "jnz short loc_4066CD"], [43, "add [rbp+var_8], 30h "], [44, "add [rbp+var_C], 1"], [45, "mov eax, cs:dword_426D80"], [46, "cmp [rbp+var_C], eax"], [47, "jl short loc_406651"], [48, "jmp short loc_4066CE"], [49, "nop"], [50, "jmp short loc_4066CE"], [51, "nop"], [52, "mov eax, [rbp+fd]"], [53, "mov edi, eax"], [54, "call _close"], [55, "mov rax, cs:qword_426DE0"], [56, "mov r8d, 9"], [57, "mov ecx, 0"], [58, "mov edx, 0"], [59, "mov esi, offset name"], [60, "mov rdi, rax"], [61, "call sub_406F0A"], [62, "mov eax, offset aRemoveTmpFile"], [63, "mov rdi, rax"], [64, "call sub_404D12"], [65, "mov edi, eax"], [66, "call sub_404CEE"], [67, "test al, al"], [68, "jz short locret_406724"], [69, "mov edi, offset name"], [70, "call _unlink"], [71, "jmp short locret_406724"], [72, "nop"], [73, "jmp short locret_406724"], [74, "nop"], [75, "leave"], [76, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [9, 8], [10, 9], [11, 10], [14, 7], [14, 43], [15, 14], [16, 15], [17, 16], [18, 17], [19, 43], [19, 7], [20, 19], [21, 9], [22, 20], [23, 21], [25, 7], [25, 43], [26, 25], [27, 26], [28, 27], [29, 28], [30, 24], [30, 29], [31, 30], [33, 32], [34, 12], [34, 33], [34, 44], [35, 34], [36, 9], [39, 36], [41, 40], [42, 41], [43, 43], [43, 7], [44, 44], [44, 12], [46, 45], [46, 44], [46, 12], [47, 46], [52, 9], [53, 52], [60, 55], [63, 62], [65, 64], [67, 66], [68, 67], [76, 67], [76, 70], [76, 8], [76, 4]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d7d8c2786d99212eeec476ef8e04011aaa733e63dfe7c4f854df34437a85aa08_d7d8c2786d99212eeec476ef8e04011aaa733e63dfe7c4f854df34437a85aa08.jsonl.gz", "strip_func_name": "sub_406615", "query": "\n\n\nint sub_406615()\n{\nint result; // eax\nint v1; // eax\nint fd; // [rsp+0h] [rbp-10h]\nint i; // [rsp+4h] [rbp-Ch]\nchar *v4; // [rsp+8h] [rbp-8h]\n\nresult = dword_426D80;\nif ( dword_426D80 )\n{\nv4 = (char *)base;\nresult = sub_404A22();\nfd = result;\nif ( result != -1 )\n{\nfor ( i = 0;\ni < dword_426D80\n&& write(fd, *(const void **)v4, *(unsigned __int16 *)(v4 + 37) - 1) == *(unsigned __int16 *)(v4 + 37) - 1\n&& (i == dword_426D80 - 1 || write(fd, \"\\n\", 1uLL) == 1);\n++i )\n{\nv4 += 48;\n}\nclose(fd);\nsub_406F0A(qword_426DE0, name, 0LL, 0LL, 9LL);\nv1 = sub_404D12(\"remove tmp file?\");\nresult = sub_404CEE(v1);\nif ( (_BYTE)result )\nresult = unlink(name);\n}\n}\nreturn result;\n}\n\n\n\nQ:[i,v4,sub_406615,sub_404A22,sub_406F0A,sub_404D12,sub_404CEE,]\nAssistant: ", "hints": "[]", "response": "{'i': 'r', 'v4': 'pdent', 'sub_406615': 'export_file_list', 'sub_404A22': 'create_tmp_file', 'sub_406F0A': 'spawn', 'sub_404D12': 'get_input', 'sub_404CEE': 'xconfirm'}"}
sqlite3WalEndWriteTransaction
1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627
andoma
movian
NA
SQLITE_PRIVATE int sqlite3WalEndWriteTransaction(Wal *pWal){ if( pWal->writeLock ){ walUnlockExclusive(pWal, WAL_WRITE_LOCK, 1); pWal->writeLock = 0; pWal->truncateOnCommit = 0; } return SQLITE_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42A689", "function_addr": 4368009, "binary_name": "1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "movzx eax, byte ptr [rax+40h]"], [6, "test al, al"], [7, "jz short loc_42A6C7"], [8, "mov rax, [rbp+var_8]"], [9, "mov edx, 1"], [10, "mov esi, 0"], [11, "mov rdi, rax"], [12, "call sub_42836B"], [13, "mov rax, [rbp+var_8]"], [14, "mov byte ptr [rax+40h], 0"], [15, "mov rax, [rbp+var_8]"], [16, "mov byte ptr [rax+43h], 0"], [17, "mov eax, 0"], [18, "leave"], [19, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 3], [11, 8], [13, 3], [14, 13], [15, 3], [16, 15], [19, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627_1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627.jsonl.gz", "strip_func_name": "sub_42A689", "query": "\n\n\n__int64 __fastcall sub_42A689(__int64 a1)\n{\nif ( *(_BYTE *)(a1 + 64) )\n{\nsub_42836B(a1, 0, 1u);\n*(_BYTE *)(a1 + 64) = 0;\n*(_BYTE *)(a1 + 67) = 0;\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,sub_42A689,sub_42836B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pWal', 'sub_42A689': 'sqlite3WalEndWriteTransaction', 'sub_42836B': 'walUnlockExclusive'}"}
get_sdk_info
25b439ec7a75ac8aebcaf0e6497be1807ff5f348281cd743a8741f3ee1a9430d
darwin-on-arm
darwin-sdk
NA
static sdk_config get_sdk_info(const char *path) { sdk_config config; char info_path[PATH_MAX] = { 0 }; sprintf(info_path, "%s/info.ini", path); if (ini_parse(info_path, sdk_cfg_handler, &config) != (-1)) return config; fprintf(stderr, "xcrun: error: failed to retrieve sdk info from '\%s\'. (%s)\n", info_path, strerror(errno)); exit(1); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401FA7", "function_addr": 4202407, "binary_name": "25b439ec7a75ac8aebcaf0e6497be1807ff5f348281cd743a8741f3ee1a9430d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 1048h"], [4, "mov [rbp+var_1048], rdi"], [5, "mov [rbp+var_1050], rsi"], [6, "mov qword ptr [rbp+s], 0"], [7, "mov [rbp+var_1038], 0"], [8, "lea rdx, [rbp+var_1030]"], [9, "mov eax, 0"], [10, "mov ecx, 1FEh"], [11, "mov rdi, rdx"], [12, "rep stosq"], [13, "mov rdx, [rbp+var_1050]"], [14, "lea rax, [rbp+s]"], [15, "mov esi, offset format"], [16, "mov rdi, rax"], [17, "mov eax, 0"], [18, "call _sprintf"], [19, "lea rdx, [rbp+var_40]"], [20, "lea rax, [rbp+s]"], [21, "mov esi, offset sub_401C3E"], [22, "mov rdi, rax"], [23, "call sub_401809"], [24, "cmp eax, 0FFFFFFFFh"], [25, "jz short loc_40205B"], [26, "mov rax, [rbp+var_1048]"], [27, "mov rcx, [rbp+var_40]"], [28, "mov rbx, [rbp+var_38]"], [29, "mov [rax], rcx"], [30, "mov [rax+8], rbx"], [31, "mov rcx, [rbp+var_30]"], [32, "mov rbx, [rbp+var_28]"], [33, "mov [rax+10h], rcx"], [34, "mov [rax+18h], rbx"], [35, "mov rdx, [rbp+var_20]"], [36, "mov [rax+20h], rdx"], [37, "jmp short loc_402096"], [38, "call ___errno_location"], [39, "mov eax, [rax]"], [40, "mov edi, eax"], [41, "call _strerror"], [42, "mov rcx, rax"], [43, "mov rax, cs:stderr"], [44, "lea rdx, [rbp+s]"], [45, "mov esi, offset aXcrunErrorFail_0"], [46, "mov rdi, rax"], [47, "mov eax, 0"], [48, "call _fprintf"], [49, "mov edi, 1"], [50, "call _exit"], [51, "mov rax, [rbp+var_1048]"], [52, "mov rbx, [rbp+var_8]"], [53, "leave"], [54, "retn"]], "data_dep": [[11, 8], [13, 5], [14, 6], [14, 9], [16, 14], [19, 13], [20, 6], [20, 18], [22, 20], [24, 23], [25, 24], [26, 4], [29, 26], [29, 27], [30, 26], [30, 28], [33, 26], [33, 31], [34, 26], [34, 32], [36, 26], [36, 35], [39, 38], [40, 39], [42, 41], [44, 19], [44, 6], [46, 43], [51, 4], [54, 51]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/25b439ec7a75ac8aebcaf0e6497be1807ff5f348281cd743a8741f3ee1a9430d_25b439ec7a75ac8aebcaf0e6497be1807ff5f348281cd743a8741f3ee1a9430d.jsonl.gz", "strip_func_name": "sub_401FA7", "query": "\n\n\n_QWORD *__fastcall sub_401FA7(_QWORD *a1, const char *a2)\n{\n__int64 v2; // rbx\n__int64 v3; // rbx\nint *v4; // rax\nchar *v5; // rax\nchar s[8]; // [rsp+10h] [rbp-1040h] BYREF\n__int64 v8; // [rsp+18h] [rbp-1038h]\nchar v9[4080]; // [rsp+20h] [rbp-1030h] BYREF\n__int64 v10[7]; // [rsp+1010h] [rbp-40h] BYREF\n\n*(_QWORD *)s = 0LL;\nv8 = 0LL;\nmemset(v9, 0, sizeof(v9));\nsprintf(s, \"%s/info.ini\", a2);\nif ( (unsigned int)sub_401809(\ns,\n(unsigned int (__fastcall *)(__int64, __int64 *, __int64 *, char *))sub_401C3E,\n(__int64)v10) == -1 )\n{\nv4 = __errno_location();\nv5 = strerror(*v4);\nfprintf(stderr, \"xcrun: error: failed to retrieve sdk info from '%s'. (%s)\\n\", s, v5);\nexit(1);\n}\nv2 = v10[1];\n*a1 = v10[0];\na1[1] = v2;\nv3 = v10[3];\na1[2] = v10[2];\na1[3] = v3;\na1[4] = v10[4];\nreturn a1;\n}\n\n\n\nQ:[a1,a2,s,v10,sub_401FA7,sub_401809,sub_401C3E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'retstr', 'a2': 'path', 's': 'info_path', 'v10': 'config', 'sub_401FA7': 'get_sdk_info', 'sub_401809': 'ini_parse', 'sub_401C3E': 'sdk_cfg_handler'}"}
get_devlist_super_block
13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664
neilbrown
mdadm
NA
static int get_devlist_super_block(struct md_list *devlist, struct intel_super **super_list, int *max, int keep_fd) { struct md_list *tmpdev; int err = 0; int i = 0; for (i = 0, tmpdev = devlist; tmpdev; tmpdev = tmpdev->next) { if (tmpdev->used != 1) continue; if (tmpdev->container == 1) { int lmax = 0; int fd = dev_open(tmpdev->devname, O_RDONLY|O_EXCL); if (fd < 0) { pr_err("cannot open device %s: %s\n", tmpdev->devname, strerror(errno)); err = 8; goto error; } err = get_sra_super_block(fd, super_list, tmpdev->devname, &lmax, keep_fd); i += lmax; close(fd); if (err) { err = 7; goto error; } } else { int major = major(tmpdev->st_rdev); int minor = minor(tmpdev->st_rdev); err = get_super_block(super_list, NULL, tmpdev->devname, major, minor, keep_fd); i++; if (err) { err = 6; goto error; } } } error: *max = i; return err; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4201BA", "function_addr": 4325818, "binary_name": "13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_3C], ecx"], [7, "mov [rbp+var_C], 0"], [8, "mov [rbp+var_10], 0"], [9, "mov [rbp+var_10], 0"], [10, "mov rax, [rbp+var_28]"], [11, "mov [rbp+var_8], rax"], [12, "jmp loc_420333"], [13, "mov rax, [rbp+var_8]"], [14, "mov eax, [rax]"], [15, "cmp eax, 1"], [16, "jnz loc_420326"], [17, "mov rax, [rbp+var_8]"], [18, "mov eax, [rax+14h]"], [19, "cmp eax, 1"], [20, "jnz loc_4202C2"], [21, "mov [rbp+var_20], 0"], [22, "mov rax, [rbp+var_8]"], [23, "mov rax, [rax+8]"], [24, "mov esi, 80h"], [25, "mov rdi, rax"], [26, "call sub_40B4F6"], [27, "mov [rbp+fd], eax"], [28, "cmp [rbp+fd], 0"], [29, "jns short loc_420280"], [30, "call ___errno_location"], [31, "mov eax, [rax]"], [32, "mov edi, eax"], [33, "call _strerror"], [34, "mov rcx, rax"], [35, "mov rax, [rbp+var_8]"], [36, "mov rdx, [rax+8]"], [37, "mov rax, cs:stderr"], [38, "mov r8, rcx"], [39, "mov rcx, rdx"], [40, "mov edx, offset buf"], [41, "mov esi, offset aSCannotOpenDev_0"], [42, "mov rdi, rax"], [43, "mov eax, 0"], [44, "call _fprintf"], [45, "mov [rbp+var_C], 8"], [46, "jmp loc_42033F"], [47, "mov rax, [rbp+var_8]"], [48, "mov rdx, [rax+8]"], [49, "mov edi, [rbp+var_3C]"], [50, "lea rcx, [rbp+var_20]"], [51, "mov rsi, [rbp+var_30]"], [52, "mov eax, [rbp+fd]"], [53, "mov r8d, edi"], [54, "mov edi, eax"], [55, "call sub_4204E1"], [56, "mov [rbp+var_C], eax"], [57, "mov eax, [rbp+var_20]"], [58, "add [rbp+var_10], eax"], [59, "mov eax, [rbp+fd]"], [60, "mov edi, eax"], [61, "call _close"], [62, "cmp [rbp+var_C], 0"], [63, "jz short loc_420327"], [64, "mov [rbp+var_C], 7"], [65, "jmp short loc_42033F"], [66, "mov rax, [rbp+var_8]"], [67, "mov rax, [rax+18h]"], [68, "mov rdi, rax"], [69, "call _gnu_dev_major"], [70, "mov [rbp+var_14], eax"], [71, "mov rax, [rbp+var_8]"], [72, "mov rax, [rax+18h]"], [73, "mov rdi, rax"], [74, "call _gnu_dev_minor"], [75, "mov [rbp+var_18], eax"], [76, "mov rax, [rbp+var_8]"], [77, "mov rdx, [rax+8]"], [78, "mov edi, [rbp+var_3C]"], [79, "mov esi, [rbp+var_18]"], [80, "mov ecx, [rbp+var_14]"], [81, "mov rax, [rbp+var_30]"], [82, "mov r9d, edi"], [83, "mov r8d, esi"], [84, "mov esi, 0"], [85, "mov rdi, rax"], [86, "call sub_42034D"], [87, "mov [rbp+var_C], eax"], [88, "add [rbp+var_10], 1"], [89, "cmp [rbp+var_C], 0"], [90, "jz short loc_420327"], [91, "mov [rbp+var_C], 6"], [92, "jmp short loc_42033F"], [93, "nop"], [94, "mov rax, [rbp+var_8]"], [95, "mov rax, [rax+20h]"], [96, "mov [rbp+var_8], rax"], [97, "cmp [rbp+var_8], 0"], [98, "jnz loc_4201F3"], [99, "nop"], [100, "mov rax, [rbp+var_38]"], [101, "mov edx, [rbp+var_10]"], [102, "mov [rax], edx"], [103, "mov eax, [rbp+var_C]"], [104, "leave"], [105, "retn"]], "data_dep": [[10, 3], [11, 10], [13, 11], [13, 96], [14, 13], [15, 14], [16, 15], [17, 11], [17, 96], [18, 17], [19, 18], [20, 19], [22, 96], [22, 11], [23, 22], [25, 23], [27, 26], [28, 27], [29, 28], [31, 30], [32, 31], [34, 33], [35, 96], [35, 11], [36, 35], [38, 34], [39, 36], [42, 37], [47, 11], [47, 96], [48, 47], [49, 6], [50, 21], [50, 80], [50, 50], [51, 4], [52, 27], [53, 49], [54, 52], [56, 55], [57, 21], [58, 58], [58, 88], [58, 9], [58, 57], [59, 27], [60, 59], [62, 56], [63, 62], [66, 96], [66, 11], [67, 66], [68, 67], [70, 69], [71, 96], [71, 11], [72, 71], [73, 72], [75, 74], [76, 96], [76, 11], [77, 76], [78, 6], [79, 75], [80, 70], [81, 4], [82, 78], [83, 79], [85, 81], [87, 86], [88, 58], [88, 88], [88, 9], [89, 87], [90, 89], [94, 96], [94, 11], [95, 94], [96, 95], [97, 96], [97, 11], [98, 97], [100, 5], [101, 88], [101, 9], [101, 58], [102, 100], [102, 101], [103, 45], [103, 56], [103, 87], [103, 7], [103, 64], [103, 91], [105, 103]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664_13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664.jsonl.gz", "strip_func_name": "sub_4201BA", "query": "\n\n\n__int64 __fastcall sub_4201BA(__int64 a1, __int64 a2, _DWORD *a3, unsigned int a4)\n{\nint *v4; // rax\nchar *v5; // rax\nint v9; // [rsp+20h] [rbp-20h] BYREF\nint fd; // [rsp+24h] [rbp-1Ch]\nunsigned int v11; // [rsp+28h] [rbp-18h]\nunsigned int v12; // [rsp+2Ch] [rbp-14h]\nint v13; // [rsp+30h] [rbp-10h]\nunsigned int v14; // [rsp+34h] [rbp-Ch]\n__int64 i; // [rsp+38h] [rbp-8h]\n\nv14 = 0;\nv13 = 0;\nfor ( i = a1; i; i = *(_QWORD *)(i + 32) )\n{\nif ( *(_DWORD *)i == 1 )\n{\nif ( *(_DWORD *)(i + 20) == 1 )\n{\nv9 = 0;\nfd = sub_40B4F6(*(const char **)(i + 8), 128);\nif ( fd < 0 )\n{\nv4 = __errno_location();\nv5 = strerror(*v4);\nfprintf(stderr, \"%s: cannot open device %s: %s\\n\", \"mdmon\", *(const char **)(i + 8), v5);\nv14 = 8;\nbreak;\n}\nv14 = sub_4204E1((unsigned int)fd, a2, *(_QWORD *)(i + 8), &v9, a4);\nv13 += v9;\nclose(fd);\nif ( v14 )\n{\nv14 = 7;\nbreak;\n}\n}\nelse\n{\nv12 = gnu_dev_major(*(_QWORD *)(i + 24));\nv11 = gnu_dev_minor(*(_QWORD *)(i + 24));\nv14 = sub_42034D(a2, 0LL, *(_QWORD *)(i + 8), v12, v11, a4);\n++v13;\nif ( v14 )\n{\nv14 = 6;\nbreak;\n}\n}\n}\n}\n*a3 = v13;\nreturn v14;\n}\n\n\n\nQ:[a3,a4,a1,a2,v9,v11,v12,v14,i,sub_4201BA,sub_40B4F6,sub_4204E1,sub_42034D,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'max', 'a4': 'keep_fd', 'a1': 'devlist', 'a2': 'super_list', 'v9': 'lmax', 'v11': 'minor', 'v12': 'major', 'v14': 'err', 'i': 'tmpdev', 'sub_4201BA': 'get_devlist_super_block', 'sub_40B4F6': 'dev_open', 'sub_4204E1': 'get_sra_super_block', 'sub_42034D': 'get_super_block'}"}
x86_Convert
26696d66cd72850ea76eb2f6d907f242bb576f8834d93a2da3dfaf9013e2fe63
wolfpld
usenetarchive
NA
SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding) { SizeT bufferPos = 0, prevPosT; UInt32 prevMask = *state & 0x7; if (size < 5) return 0; ip += 5; prevPosT = (SizeT)0 - 1; for (;;) { Byte *p = data + bufferPos; Byte *limit = data + size - 4; for (; p < limit; p++) if ((*p & 0xFE) == 0xE8) break; bufferPos = (SizeT)(p - data); if (p >= limit) break; prevPosT = bufferPos - prevPosT; if (prevPosT > 3) prevMask = 0; else { prevMask = (prevMask << ((int)prevPosT - 1)) & 0x7; if (prevMask != 0) { Byte b = p[4 - kMaskToBitNumber[prevMask]]; if (!kMaskToAllowedStatus[prevMask] || Test86MSByte(b)) { prevPosT = bufferPos; prevMask = ((prevMask << 1) & 0x7) | 1; bufferPos++; continue; } } } prevPosT = bufferPos; if (Test86MSByte(p[4])) { UInt32 src = ((UInt32)p[4] << 24) | ((UInt32)p[3] << 16) | ((UInt32)p[2] << 8) | ((UInt32)p[1]); UInt32 dest; for (;;) { Byte b; int index; if (encoding) dest = (ip + (UInt32)bufferPos) + src; else dest = src - (ip + (UInt32)bufferPos); if (prevMask == 0) break; index = kMaskToBitNumber[prevMask] * 8; b = (Byte)(dest >> (24 - index)); if (!Test86MSByte(b)) break; src = dest ^ ((1 << (32 - index)) - 1); } p[4] = (Byte)(~(((dest >> 24) & 1) - 1)); p[3] = (Byte)(dest >> 16); p[2] = (Byte)(dest >> 8); p[1] = (Byte)dest; bufferPos += 5; } else { prevMask = ((prevMask << 1) & 0x7) | 1; bufferPos++; } } prevPosT = bufferPos - prevPosT; *state = ((prevPosT > 3) ? 0 : ((prevMask << ((int)prevPosT - 1)) & 0x7)); return bufferPos; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_46BE08", "function_addr": 4636168, "binary_name": "26696d66cd72850ea76eb2f6d907f242bb576f8834d93a2da3dfaf9013e2fe63.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_48], rdi"], [3, "mov [rbp+var_50], rsi"], [4, "mov [rbp+var_54], edx"], [5, "mov [rbp+var_60], rcx"], [6, "mov [rbp+var_58], r8d"], [7, "mov [rbp+var_8], 0"], [8, "mov rax, [rbp+var_60]"], [9, "mov eax, [rax]"], [10, "and eax, 7"], [11, "mov [rbp+var_14], eax"], [12, "cmp [rbp+var_50], 4"], [13, "ja short loc_46BE44"], [14, "mov eax, 0"], [15, "jmp loc_46C0EF"], [16, "add [rbp+var_54], 5"], [17, "mov [rbp+var_10], 0FFFFFFFFFFFFFFFFh"], [18, "mov rdx, [rbp+var_48]"], [19, "mov rax, [rbp+var_8]"], [20, "add rax, rdx"], [21, "mov [rbp+var_20], rax"], [22, "mov rax, [rbp+var_50]"], [23, "lea rdx, [rax-4]"], [24, "mov rax, [rbp+var_48]"], [25, "add rax, rdx"], [26, "mov [rbp+var_30], rax"], [27, "jmp short loc_46BE8F"], [28, "mov rax, [rbp+var_20]"], [29, "movzx eax, byte ptr [rax]"], [30, "movzx eax, al"], [31, "and eax, 0FEh"], [32, "cmp eax, 0E8h"], [33, "jz short loc_46BE9B"], [34, "add [rbp+var_20], 1"], [35, "mov rax, [rbp+var_20]"], [36, "cmp rax, [rbp+var_30]"], [37, "jb short loc_46BE74"], [38, "jmp short loc_46BE9C"], [39, "nop"], [40, "mov rax, [rbp+var_20]"], [41, "sub rax, [rbp+var_48]"], [42, "mov [rbp+var_8], rax"], [43, "mov rax, [rbp+var_20]"], [44, "cmp rax, [rbp+var_30]"], [45, "jnb loc_46C0B5"], [46, "mov rax, [rbp+var_8]"], [47, "sub rax, [rbp+var_10]"], [48, "mov [rbp+var_10], rax"], [49, "cmp [rbp+var_10], 3"], [50, "jbe short loc_46BED2"], [51, "mov [rbp+var_14], 0"], [52, "jmp short loc_46BF4C"], [53, "mov rax, [rbp+var_10]"], [54, "sub eax, 1"], [55, "mov edx, [rbp+var_14]"], [56, "mov ecx, eax"], [57, "shl edx, cl"], [58, "mov eax, edx"], [59, "and eax, 7"], [60, "mov [rbp+var_14], eax"], [61, "cmp [rbp+var_14], 0"], [62, "jz short loc_46BF4C"], [63, "mov eax, [rbp+var_14]"], [64, "movzx eax, ds:byte_474348[rax]"], [65, "movzx edx, al"], [66, "mov eax, 4"], [67, "sub eax, edx"], [68, "movsxd rdx, eax"], [69, "mov rax, [rbp+var_20]"], [70, "add rax, rdx"], [71, "movzx eax, byte ptr [rax]"], [72, "mov [rbp+var_31], al"], [73, "mov eax, [rbp+var_14]"], [74, "movzx eax, ds:byte_474340[rax]"], [75, "test al, al"], [76, "jz short loc_46BF2C"], [77, "cmp [rbp+var_31], 0"], [78, "jz short loc_46BF2C"], [79, "cmp [rbp+var_31], 0FFh"], [80, "jnz short loc_46BF4C"], [81, "mov rax, [rbp+var_8]"], [82, "mov [rbp+var_10], rax"], [83, "mov eax, [rbp+var_14]"], [84, "add eax, eax"], [85, "and eax, 6"], [86, "or eax, 1"], [87, "mov [rbp+var_14], eax"], [88, "add [rbp+var_8], 1"], [89, "jmp loc_46C0B0"], [90, "mov rax, [rbp+var_8]"], [91, "mov [rbp+var_10], rax"], [92, "mov rax, [rbp+var_20]"], [93, "add rax, 4"], [94, "movzx eax, byte ptr [rax]"], [95, "test al, al"], [96, "jz short loc_46BF76"], [97, "mov rax, [rbp+var_20]"], [98, "add rax, 4"], [99, "movzx eax, byte ptr [rax]"], [100, "cmp al, 0FFh"], [101, "jnz loc_46C09D"], [102, "mov rax, [rbp+var_20]"], [103, "add rax, 4"], [104, "movzx eax, byte ptr [rax]"], [105, "movzx eax, al"], [106, "shl eax, 18h"], [107, "mov edx, eax"], [108, "mov rax, [rbp+var_20]"], [109, "add rax, 3"], [110, "movzx eax, byte ptr [rax]"], [111, "movzx eax, al"], [112, "shl eax, 10h"], [113, "or edx, eax"], [114, "mov rax, [rbp+var_20]"], [115, "add rax, 2"], [116, "movzx eax, byte ptr [rax]"], [117, "movzx eax, al"], [118, "shl eax, 8"], [119, "or edx, eax"], [120, "mov rax, [rbp+var_20]"], [121, "add rax, 1"], [122, "movzx eax, byte ptr [rax]"], [123, "movzx eax, al"], [124, "or eax, edx"], [125, "mov [rbp+var_24], eax"], [126, "cmp [rbp+var_58], 0"], [127, "jz short loc_46BFDD"], [128, "mov rax, [rbp+var_8]"], [129, "mov edx, eax"], [130, "mov eax, [rbp+var_54]"], [131, "add edx, eax"], [132, "mov eax, [rbp+var_24]"], [133, "add eax, edx"], [134, "mov [rbp+var_28], eax"], [135, "jmp short loc_46BFF0"], [136, "mov rax, [rbp+var_8]"], [137, "mov edx, eax"], [138, "mov eax, [rbp+var_54]"], [139, "add edx, eax"], [140, "mov eax, [rbp+var_24]"], [141, "sub eax, edx"], [142, "mov [rbp+var_28], eax"], [143, "cmp [rbp+var_14], 0"], [144, "jz short loc_46C04A"], [145, "mov eax, [rbp+var_14]"], [146, "movzx eax, ds:byte_474348[rax]"], [147, "movzx eax, al"], [148, "shl eax, 3"], [149, "mov [rbp+var_38], eax"], [150, "mov eax, 18h"], [151, "sub eax, [rbp+var_38]"], [152, "mov edx, [rbp+var_28]"], [153, "mov ecx, eax"], [154, "shr edx, cl"], [155, "mov eax, edx"], [156, "mov [rbp+var_39], al"], [157, "cmp [rbp+var_39], 0"], [158, "jz short loc_46C029"], [159, "cmp [rbp+var_39], 0FFh"], [160, "jnz short loc_46C04D"], [161, "mov eax, 20h "], [162, "sub eax, [rbp+var_38]"], [163, "mov edx, 1"], [164, "mov ecx, eax"], [165, "shl edx, cl"], [166, "mov eax, edx"], [167, "sub eax, 1"], [168, "xor eax, [rbp+var_28]"], [169, "mov [rbp+var_24], eax"], [170, "jmp loc_46BFC2"], [171, "nop"], [172, "jmp short loc_46C04E"], [173, "nop"], [174, "mov eax, [rbp+var_28]"], [175, "shr eax, 18h"], [176, "and eax, 1"], [177, "mov edx, eax"], [178, "mov rax, [rbp+var_20]"], [179, "add rax, 4"], [180, "neg edx"], [181, "mov [rax], dl"], [182, "mov eax, [rbp+var_28]"], [183, "shr eax, 10h"], [184, "mov edx, eax"], [185, "mov rax, [rbp+var_20]"], [186, "add rax, 3"], [187, "mov [rax], dl"], [188, "mov eax, [rbp+var_28]"], [189, "shr eax, 8"], [190, "mov edx, eax"], [191, "mov rax, [rbp+var_20]"], [192, "add rax, 2"], [193, "mov [rax], dl"], [194, "mov rax, [rbp+var_20]"], [195, "add rax, 1"], [196, "mov edx, [rbp+var_28]"], [197, "mov [rax], dl"], [198, "add [rbp+var_8], 5"], [199, "jmp short loc_46C0B0"], [200, "mov eax, [rbp+var_14]"], [201, "add eax, eax"], [202, "and eax, 6"], [203, "or eax, 1"], [204, "mov [rbp+var_14], eax"], [205, "add [rbp+var_8], 1"], [206, "jmp loc_46BE50"], [207, "nop"], [208, "mov rax, [rbp+var_8]"], [209, "sub rax, [rbp+var_10]"], [210, "mov [rbp+var_10], rax"], [211, "cmp [rbp+var_10], 3"], [212, "ja short loc_46C0E0"], [213, "mov rax, [rbp+var_10]"], [214, "sub eax, 1"], [215, "mov edx, [rbp+var_14]"], [216, "mov ecx, eax"], [217, "shl edx, cl"], [218, "mov eax, edx"], [219, "and eax, 7"], [220, "mov edx, eax"], [221, "jmp short loc_46C0E5"], [222, "mov edx, 0"], [223, "mov rax, [rbp+var_60]"], [224, "mov [rax], edx"], [225, "mov rax, [rbp+var_8]"], [226, "pop rbp"], [227, "retn"]], "data_dep": [[8, 5], [9, 8], [10, 9], [11, 10], [12, 3], [13, 12], [16, 4], [18, 2], [19, 205], [19, 198], [19, 88], [19, 7], [20, 19], [20, 18], [21, 20], [22, 3], [23, 187], [23, 22], [23, 193], [23, 197], [23, 181], [23, 18], [24, 2], [25, 23], [25, 24], [26, 25], [28, 21], [28, 34], [29, 187], [29, 193], [29, 28], [29, 197], [29, 181], [30, 29], [31, 30], [32, 31], [33, 32], [34, 21], [34, 34], [35, 21], [35, 34], [36, 26], [36, 35], [37, 36], [40, 34], [40, 21], [41, 40], [41, 2], [42, 41], [43, 21], [43, 34], [44, 26], [44, 43], [45, 44], [46, 42], [47, 82], [47, 91], [47, 17], [47, 46], [48, 47], [49, 48], [50, 49], [53, 48], [54, 53], [55, 11], [55, 51], [55, 60], [55, 204], [55, 87], [56, 54], [57, 56], [57, 55], [58, 57], [59, 58], [60, 59], [61, 60], [62, 61], [63, 60], [65, 64], [67, 65], [67, 66], [68, 67], [69, 21], [69, 34], [70, 68], [70, 69], [71, 193], [71, 197], [71, 181], [71, 187], [71, 70], [72, 71], [73, 60], [75, 74], [76, 75], [77, 72], [78, 77], [79, 72], [80, 79], [81, 42], [82, 81], [83, 60], [84, 83], [85, 84], [86, 85], [87, 86], [88, 42], [90, 42], [91, 90], [92, 21], [92, 34], [93, 92], [94, 197], [94, 187], [94, 93], [94, 193], [94, 181], [95, 94], [96, 95], [97, 21], [97, 34], [98, 97], [99, 193], [99, 181], [99, 197], [99, 98], [99, 187], [100, 99], [101, 100], [102, 34], [102, 21], [103, 102], [104, 197], [104, 187], [104, 193], [104, 181], [104, 103], [105, 104], [106, 105], [107, 106], [108, 34], [108, 21], [109, 108], [110, 187], [110, 109], [110, 193], [110, 197], [110, 181], [111, 110], [112, 111], [113, 112], [113, 107], [114, 21], [114, 34], [115, 114], [116, 193], [116, 115], [116, 181], [116, 197], [116, 187], [117, 116], [118, 117], [119, 118], [119, 113], [120, 21], [120, 34], [121, 120], [122, 197], [122, 181], [122, 121], [122, 187], [122, 193], [123, 122], [124, 119], [124, 123], [125, 124], [126, 6], [127, 126], [128, 42], [129, 128], [130, 16], [131, 129], [131, 130], [132, 169], [132, 125], [133, 132], [133, 131], [134, 133], [136, 42], [137, 136], [138, 16], [139, 137], [139, 138], [140, 125], [140, 169], [141, 140], [141, 139], [142, 141], [143, 60], [143, 51], [144, 143], [145, 51], [145, 60], [147, 146], [148, 147], [149, 148], [151, 150], [151, 149], [152, 142], [152, 134], [153, 151], [154, 153], [154, 152], [155, 154], [156, 155], [157, 156], [158, 157], [159, 156], [160, 159], [162, 161], [162, 149], [164, 162], [165, 163], [165, 164], [166, 165], [167, 166], [168, 134], [168, 142], [168, 167], [169, 168], [174, 134], [174, 142], [175, 174], [176, 175], [177, 176], [178, 21], [178, 34], [179, 178], [180, 177], [181, 180], [181, 179], [182, 134], [182, 142], [183, 182], [184, 183], [185, 34], [185, 21], [186, 185], [187, 184], [187, 186], [188, 142], [188, 134], [189, 188], [190, 189], [191, 21], [191, 34], [192, 191], [193, 190], [193, 192], [194, 21], [194, 34], [195, 194], [196, 142], [196, 134], [197, 195], [197, 196], [198, 42], [200, 51], [200, 60], [201, 200], [202, 201], [203, 202], [204, 203], [205, 42], [208, 42], [209, 17], [209, 208], [209, 82], [209, 91], [210, 209], [211, 210], [212, 211], [213, 210], [214, 213], [215, 87], [215, 11], [215, 204], [215, 51], [215, 60], [216, 214], [217, 215], [217, 216], [218, 217], [219, 218], [220, 219], [223, 5], [224, 220], [224, 222], [224, 223], [225, 42], [226, 0], [227, 225], [227, 14]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/26696d66cd72850ea76eb2f6d907f242bb576f8834d93a2da3dfaf9013e2fe63_26696d66cd72850ea76eb2f6d907f242bb576f8834d93a2da3dfaf9013e2fe63.jsonl.gz", "strip_func_name": "sub_46BE08", "query": "\n\n\n_BYTE *__fastcall sub_46BE08(__int64 a1, unsigned __int64 a2, int a3, int *a4, int a5)\n{\nint v6; // edx\nint v7; // [rsp+Ch] [rbp-54h]\nchar v8; // [rsp+27h] [rbp-39h]\nchar v9; // [rsp+28h] [rbp-38h]\nchar v10; // [rsp+2Fh] [rbp-31h]\nunsigned __int64 v11; // [rsp+30h] [rbp-30h]\nunsigned int v12; // [rsp+38h] [rbp-28h]\nint i; // [rsp+3Ch] [rbp-24h]\n_BYTE *v14; // [rsp+40h] [rbp-20h]\nint v15; // [rsp+4Ch] [rbp-14h]\n__int64 v16; // [rsp+50h] [rbp-10h]\nunsigned __int64 v17; // [rsp+50h] [rbp-10h]\nunsigned __int64 v18; // [rsp+50h] [rbp-10h]\n_BYTE *v19; // [rsp+58h] [rbp-8h]\n_BYTE *v20; // [rsp+58h] [rbp-8h]\n\nv19 = 0LL;\nv15 = *a4 & 7;\nif ( a2 <= 4 )\nreturn 0LL;\nv7 = a3 + 5;\nv16 = -1LL;\nwhile ( 1 )\n{\nv14 = &v19[a1];\nv11 = a2 - 4 + a1;\nwhile ( (unsigned __int64)v14 < v11 && (*v14 & 0xFE) != 232 )\n++v14;\nv20 = &v14[-a1];\nif ( (unsigned __int64)v14 >= v11 )\nbreak;\nv17 = (unsigned __int64)&v20[-v16];\nif ( v17 <= 3 )\n{\nv15 = (v15 << (v17 - 1)) & 7;\nif ( !v15 )\ngoto LABEL_16;\nv10 = v14[4 - (unsigned __int8)byte_474348[v15]];\nif ( byte_474340[v15] )\n{\nif ( v10 && v10 != -1 )\ngoto LABEL_16;\n}\nv16 = (__int64)&v14[-a1];\nv15 = (2 * (_BYTE)v15) & 6 | 1;\nv19 = v20 + 1;\n}\nelse\n{\nv15 = 0;\nLABEL_16:\nv16 = (__int64)&v14[-a1];\nif ( v14[4] && v14[4] != 0xFF )\n{\nv15 = (2 * (_BYTE)v15) & 6 | 1;\nv19 = v20 + 1;\n}\nelse\n{\nfor ( i = ((unsigned __int8)v14[2] << 8) | ((unsigned __int8)v14[3] << 16) | ((unsigned __int8)v14[4] << 24) | (unsigned __int8)v14[1];\n;\ni = v12 ^ ((1 << (32 - v9)) - 1) )\n{\nv12 = a5 ? v7 + (_DWORD)v20 + i : i - (v7 + (_DWORD)v20);\nif ( !v15 )\nbreak;\nv9 = 8 * byte_474348[v15];\nv8 = v12 >> (24 - v9);\nif ( v8 )\n{\nif ( v8 != -1 )\nbreak;\n}\n}\nv14[4] = -(HIBYTE(v12) & 1);\n*((_WORD *)v14 + 1) = *(_WORD *)((char *)&v12 + 1);\nv14[1] = v12;\nv19 = v20 + 5;\n}\n}\n}\nv18 = (unsigned __int64)&v20[-v16];\nif ( v18 > 3 )\nv6 = 0;\nelse\nv6 = (v15 << (v18 - 1)) & 7;\n*a4 = v6;\nreturn &v14[-a1];\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v7,v8,v9,v10,v11,v12,i,v14,v15,v18,v19,sub_46BE08,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'ip_0', 'a4': 'state', 'a1': 'data', 'a2': 'size', 'a5': 'encoding', 'v7': 'ip_0a', 'v8': 'b_0', 'v9': 'index', 'v10': 'b', 'v11': 'limit', 'v12': 'dest', 'i': 'src', 'v14': 'p', 'v15': 'prevMask', 'v18': 'prevPosT', 'v19': 'bufferPos', 'sub_46BE08': 'x86_Convert'}"}
sparsebit_any_clear
4367b30aa50f1daeb962e2111ecaeaa03a987638753eb38b7332c164d2e0a506
microsoft
CBL-Mariner-Linux-Kernel
NA
bool sparsebit_any_clear(struct sparsebit *s) { return !sparsebit_all_set(s); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407BA6", "function_addr": 4225958, "binary_name": "4367b30aa50f1daeb962e2111ecaeaa03a987638753eb38b7332c164d2e0a506.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 8"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rdi, rax"], [6, "call sub_4068FE"], [7, "movzx eax, al"], [8, "test eax, eax"], [9, "setnz al"], [10, "xor eax, 1"], [11, "movzx eax, al"], [12, "and eax, 1"], [13, "leave"], [14, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 11], [14, 12]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/4367b30aa50f1daeb962e2111ecaeaa03a987638753eb38b7332c164d2e0a506_4367b30aa50f1daeb962e2111ecaeaa03a987638753eb38b7332c164d2e0a506.jsonl.gz", "strip_func_name": "sub_407BA6", "query": "\n\n\n_BOOL8 __fastcall sub_407BA6(_QWORD *a1)\n{\nreturn !sub_4068FE(a1);\n}\n\n\n\nQ:[a1,sub_407BA6,sub_4068FE,]\nAssistant: ", "hints": "[]", "response": "{'a1': 's', 'sub_407BA6': 'sparsebit_any_clear', 'sub_4068FE': 'sparsebit_all_set'}"}
mark_as_variable
025cbe50dbc52b2c8f0d4b83aa381ff6443ebf8122f2978df77b4c01fb2616ed
MoonLight-SteinsGate
LearnAFL
NA
static void mark_as_variable(struct queue_entry* q) { u8 *fn = strrchr(q->fname, '/') + 1, *ldest; ldest = alloc_printf("../../%s", fn); fn = alloc_printf("%s/queue/.state/variable_behavior/%s", out_dir, fn); if (symlink(ldest, fn)) { s32 fd = open(fn, O_WRONLY | O_CREAT | O_EXCL, 0600); if (fd < 0) PFATAL("Unable to create '%s'", fn); close(fd); } ck_free(ldest); ck_free(fn); q->var_behavior = 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404C69", "function_addr": 4213865, "binary_name": "025cbe50dbc52b2c8f0d4b83aa381ff6443ebf8122f2978df77b4c01fb2616ed.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_48], rdi"], [4, "mov rax, [rbp+var_48]"], [5, "mov rax, [rax]"], [6, "mov esi, 2Fh "], [7, "mov rdi, rax"], [8, "call _strrchr"], [9, "add rax, 1"], [10, "mov [rbp+to], rax"], [11, "mov rax, [rbp+to]"], [12, "mov rcx, rax"], [13, "mov edx, offset aS"], [14, "mov esi, 0"], [15, "mov edi, 0"], [16, "mov eax, 0"], [17, "call _snprintf"], [18, "mov [rbp+var_C], eax"], [19, "cmp [rbp+var_C], 0"], [20, "jns short loc_404CF1"], [21, "mov edi, offset byte_41B428"], [22, "mov eax, 0"], [23, "call _printf"], [24, "mov ecx, 323h"], [25, "mov edx, offset aAflFuzzC"], [26, "mov esi, offset aMarkAsVariable"], [27, "mov edi, offset a191mLocation0m"], [28, "mov eax, 0"], [29, "call _printf"], [30, "mov edi, 1"], [31, "call _exit"], [32, "mov eax, [rbp+var_C]"], [33, "add eax, 1"], [34, "mov edi, eax"], [35, "call sub_40284B"], [36, "mov [rbp+s], rax"], [37, "mov eax, [rbp+var_C]"], [38, "add eax, 1"], [39, "movsxd rsi, eax"], [40, "mov rdx, [rbp+to]"], [41, "mov rax, [rbp+s]"], [42, "mov rcx, rdx"], [43, "mov edx, offset aS"], [44, "mov rdi, rax"], [45, "mov eax, 0"], [46, "call _snprintf"], [47, "mov rax, [rbp+s]"], [48, "mov [rbp+from], rax"], [49, "mov rax, cs:qword_4274B0"], [50, "mov rdx, [rbp+to]"], [51, "mov r8, rdx"], [52, "mov rcx, rax"], [53, "mov edx, offset aSQueueStateVar"], [54, "mov esi, 0"], [55, "mov edi, 0"], [56, "mov eax, 0"], [57, "call _snprintf"], [58, "mov [rbp+var_24], eax"], [59, "cmp [rbp+var_24], 0"], [60, "jns short loc_404D9A"], [61, "mov edi, offset byte_41B428"], [62, "mov eax, 0"], [63, "call _printf"], [64, "mov ecx, 324h"], [65, "mov edx, offset aAflFuzzC"], [66, "mov esi, offset aMarkAsVariable"], [67, "mov edi, offset a191mLocation0m"], [68, "mov eax, 0"], [69, "call _printf"], [70, "mov edi, 1"], [71, "call _exit"], [72, "mov eax, [rbp+var_24]"], [73, "add eax, 1"], [74, "mov edi, eax"], [75, "call sub_40284B"], [76, "mov [rbp+var_30], rax"], [77, "mov rdx, cs:qword_4274B0"], [78, "mov eax, [rbp+var_24]"], [79, "add eax, 1"], [80, "movsxd rsi, eax"], [81, "mov rcx, [rbp+to]"], [82, "mov rax, [rbp+var_30]"], [83, "mov r8, rcx"], [84, "mov rcx, rdx"], [85, "mov edx, offset aSQueueStateVar"], [86, "mov rdi, rax"], [87, "mov eax, 0"], [88, "call _snprintf"], [89, "mov rax, [rbp+var_30]"], [90, "mov [rbp+to], rax"], [91, "mov rdx, [rbp+to]"], [92, "mov rax, [rbp+from]"], [93, "mov rsi, rdx"], [94, "mov rdi, rax"], [95, "call _symlink"], [96, "test eax, eax"], [97, "jz loc_404E99"], [98, "mov rax, [rbp+to]"], [99, "mov edx, 180h"], [100, "mov esi, 0C1h"], [101, "mov rdi, rax"], [102, "mov eax, 0"], [103, "call _open64"], [104, "mov [rbp+fd], eax"], [105, "cmp [rbp+fd], 0"], [106, "jns short loc_404E8F"], [107, "mov rax, cs:stdout"], [108, "mov rdi, rax"], [109, "call _fflush"], [110, "mov rax, [rbp+to]"], [111, "mov rsi, rax"], [112, "mov edi, offset byte_41B880"], [113, "mov eax, 0"], [114, "call _printf"], [115, "mov ecx, 329h"], [116, "mov edx, offset aAflFuzzC"], [117, "mov esi, offset aMarkAsVariable"], [118, "mov edi, offset a191mStopLocati_0"], [119, "mov eax, 0"], [120, "call _printf"], [121, "call ___errno_location"], [122, "mov eax, [rax]"], [123, "mov edi, eax"], [124, "call _strerror"], [125, "mov rsi, rax"], [126, "mov edi, offset a191mOsMessage0"], [127, "mov eax, 0"], [128, "call _printf"], [129, "mov edi, 1"], [130, "call _exit"], [131, "mov eax, [rbp+fd]"], [132, "mov edi, eax"], [133, "call _close"], [134, "mov rax, [rbp+from]"], [135, "mov rdi, rax"], [136, "call sub_402887"], [137, "mov rax, [rbp+to]"], [138, "mov rdi, rax"], [139, "call sub_402887"], [140, "mov rax, [rbp+var_48]"], [141, "mov byte ptr [rax+19h], 1"], [142, "nop"], [143, "leave"], [144, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 5], [9, 8], [10, 9], [11, 10], [12, 11], [18, 17], [19, 18], [20, 19], [32, 18], [33, 32], [34, 33], [36, 35], [37, 18], [38, 37], [39, 38], [40, 10], [41, 36], [42, 40], [44, 41], [47, 36], [48, 47], [50, 10], [51, 50], [52, 49], [58, 57], [59, 58], [60, 59], [72, 58], [73, 72], [74, 73], [76, 75], [78, 58], [79, 78], [80, 79], [81, 10], [82, 76], [83, 81], [84, 77], [86, 82], [89, 76], [90, 89], [91, 90], [92, 48], [93, 91], [94, 92], [96, 95], [97, 96], [98, 90], [101, 98], [104, 103], [105, 104], [106, 105], [108, 107], [110, 90], [111, 110], [122, 121], [123, 122], [125, 124], [131, 104], [132, 131], [134, 48], [135, 134], [137, 90], [138, 137], [140, 3], [141, 140], [144, 140]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/025cbe50dbc52b2c8f0d4b83aa381ff6443ebf8122f2978df77b4c01fb2616ed_025cbe50dbc52b2c8f0d4b83aa381ff6443ebf8122f2978df77b4c01fb2616ed.jsonl.gz", "strip_func_name": "sub_404C69", "query": "\n\n\n__int64 __fastcall sub_404C69(__int64 a1)\n{\nint *v1; // rax\nchar *v2; // rax\n__int64 result; // rax\nint fd; // [rsp+1Ch] [rbp-34h]\nchar *v5; // [rsp+20h] [rbp-30h]\nint v6; // [rsp+2Ch] [rbp-24h]\nchar *s; // [rsp+38h] [rbp-18h]\nint v8; // [rsp+44h] [rbp-Ch]\nchar *to; // [rsp+48h] [rbp-8h]\n\nto = strrchr(*(const char **)a1, 47) + 1;\nv8 = snprintf(0LL, 0LL, \"../../%s\", to);\nif ( v8 < 0 )\n{\nprintf(&byte_41B428);\nprintf(\"\\x1B[1;91m\\n Location : \\x1B[0m%s(), %s:%u\\n\\n\", \"mark_as_variable\", \"afl-fuzz.c\", 803LL);\nexit(1);\n}\ns = (char *)sub_40284B(v8 + 1);\nsnprintf(s, v8 + 1, \"../../%s\", to);\nv6 = snprintf(0LL, 0LL, \"%s/queue/.state/variable_behavior/%s\", qword_4274B0, to);\nif ( v6 < 0 )\n{\nprintf(&byte_41B428);\nprintf(\"\\x1B[1;91m\\n Location : \\x1B[0m%s(), %s:%u\\n\\n\", \"mark_as_variable\", \"afl-fuzz.c\", 804LL);\nexit(1);\n}\nv5 = (char *)sub_40284B(v6 + 1);\nsnprintf(v5, v6 + 1, \"%s/queue/.state/variable_behavior/%s\", qword_4274B0, to);\nif ( symlink(s, v5) )\n{\nfd = open64(v5, 193, 384LL);\nif ( fd < 0 )\n{\nfflush(stdout);\nprintf(&byte_41B880, v5);\nprintf(\"\\x1B[1;91m\\n Stop location : \\x1B[0m%s(), %s:%u\\n\", \"mark_as_variable\", \"afl-fuzz.c\", 809LL);\nv1 = __errno_location();\nv2 = strerror(*v1);\nprintf(\"\\x1B[1;91m OS message : \\x1B[0m%s\\n\", v2);\nexit(1);\n}\nclose(fd);\n}\nsub_402887((__int64)s);\nsub_402887((__int64)v5);\nresult = a1;\n*(_BYTE *)(a1 + 25) = 1;\nreturn result;\n}\n\n\n\nQ:[a1,v5,v6,s,v8,to,sub_404C69,sub_40284B,sub_402887,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'q', 'v5': '_tmp_0', 'v6': '_len_0', 's': '_tmp', 'v8': '_len', 'to': 'fn', 'sub_404C69': 'mark_as_variable', 'sub_40284B': 'DFL_ck_alloc', 'sub_402887': 'DFL_ck_free'}"}
DeallocateSlot
8b6cb3d3772d441e5e752dd0e1a24610197f2880ca88d33bd4ddb4e33fa6697e
wasm3
wasm3
NA
static inline void DeallocateSlot (IM3Compilation o, i16 i_slot, u8 i_type) { d_m3Assert (i_slot >= o->slotFirstDynamicIndex); d_m3Assert (i_slot < o->slotMaxAllocatedIndexPlusOne); for (u16 i = 0; i < GetTypeNumSlots (i_type); ++i, ++i_slot) { d_m3Assert (o->m3Slots [i_slot]); -- o->m3Slots [i_slot]; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41C03E", "function_addr": 4309054, "binary_name": "8b6cb3d3772d441e5e752dd0e1a24610197f2880ca88d33bd4ddb4e33fa6697e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov eax, esi"], [5, "mov [rbp+var_1C], ax"], [6, "mov eax, edx"], [7, "mov [rbp+var_20], al"], [8, "mov [rbp+var_2], 0"], [9, "jmp short loc_41C090"], [10, "movsx eax, [rbp+var_1C]"], [11, "mov rcx, [rbp+var_18]"], [12, "movsxd rdx, eax"], [13, "movzx edx, byte ptr [rcx+rdx+19C8h]"], [14, "lea ecx, [rdx-1]"], [15, "mov rdx, [rbp+var_18]"], [16, "cdqe"], [17, "mov [rdx+rax+19C8h], cl"], [18, "add [rbp+var_2], 1"], [19, "movzx eax, [rbp+var_1C]"], [20, "add eax, 1"], [21, "mov [rbp+var_1C], ax"], [22, "movzx eax, [rbp+var_20]"], [23, "mov edi, eax"], [24, "call sub_41B980"], [25, "cmp [rbp+var_2], ax"], [26, "jb short loc_41C05D"], [27, "nop"], [28, "nop"], [29, "leave"], [30, "retn"]], "data_dep": [[5, 4], [7, 6], [10, 21], [10, 5], [11, 3], [12, 10], [13, 11], [13, 17], [14, 13], [14, 11], [14, 17], [15, 3], [17, 14], [17, 10], [18, 18], [18, 8], [19, 21], [19, 5], [20, 19], [21, 20], [22, 7], [23, 22], [25, 18], [25, 24], [25, 8], [26, 25], [30, 24]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8b6cb3d3772d441e5e752dd0e1a24610197f2880ca88d33bd4ddb4e33fa6697e_8b6cb3d3772d441e5e752dd0e1a24610197f2880ca88d33bd4ddb4e33fa6697e.jsonl.gz", "strip_func_name": "sub_41C03E", "query": "\n\n\n__int64 __fastcall sub_41C03E(__int64 a1, __int16 a2, char a3)\n{\n__int64 result; // rax\nunsigned __int16 v6; // [rsp+1Eh] [rbp-2h]\n\nv6 = 0;\nfor ( result = sub_41B980(a3); v6 < (unsigned __int16)result; result = sub_41B980(a3) )\n{\n--*(_BYTE *)(a1 + a2 + 6600);\n++v6;\n++a2;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,sub_41C03E,sub_41B980,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'i_type', 'a1': 'o', 'a2': 'i_slot', 'sub_41C03E': 'DeallocateSlot', 'sub_41B980': 'GetTypeNumSlots'}"}
SplitAddAttr
03106a6a0c751e17d177860ac50c6698b68e09b39f5be7d1f98bb9d3a7c7c1b9
reidrac
dan64
NA
void SplitAddAttr (Collection* C, const char* Combined, const char* Name) /* Split a combined name/value pair and add it as an attribute to C. Some ** attributes may not need a name. If the name is missing, use Name. If ** Name is NULL, terminate with an error. */ { /* Name and value are separated by an equal sign */ const char* Pos = strchr (Combined, '='); if (Pos == 0) { /* Combined is actually a value */ if (Name == 0) { Error ("Command line attribute `%s' doesn't contain a name", Combined); } AddAttr (C, Name, Combined); } else { /* Must split name and value */ StrBuf N = AUTO_STRBUF_INITIALIZER; SB_CopyBuf (&N, Combined, Pos - Combined); SB_Terminate (&N); /* Add the attribute */ AddAttr (C, SB_GetConstBuf (&N), Pos+1); /* Release memory */ SB_Done (&N); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401F92", "function_addr": 4202386, "binary_name": "03106a6a0c751e17d177860ac50c6698b68e09b39f5be7d1f98bb9d3a7c7c1b9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 48h"], [4, "mov [rbp+var_38], rdi"], [5, "mov [rbp+s], rsi"], [6, "mov [rbp+var_48], rdx"], [7, "mov rax, [rbp+s]"], [8, "mov esi, 3Dh "], [9, "mov rdi, rax"], [10, "call _strchr"], [11, "mov [rbp+var_18], rax"], [12, "cmp [rbp+var_18], 0"], [13, "jnz short loc_401FF9"], [14, "cmp [rbp+var_48], 0"], [15, "jnz short loc_401FE0"], [16, "mov rax, [rbp+s]"], [17, "mov rsi, rax"], [18, "mov edi, offset aCommandLineAtt"], [19, "mov eax, 0"], [20, "call sub_401946"], [21, "mov rdx, [rbp+s]"], [22, "mov rcx, [rbp+var_48]"], [23, "mov rax, [rbp+var_38]"], [24, "mov rsi, rcx"], [25, "mov rdi, rax"], [26, "call sub_401F1D"], [27, "jmp short loc_402074"], [28, "mov [rbp+var_30], 0"], [29, "mov [rbp+var_28], 0"], [30, "mov [rbp+var_24], 0"], [31, "mov [rbp+var_20], 0"], [32, "mov rax, [rbp+var_18]"], [33, "sub rax, [rbp+s]"], [34, "mov edx, eax"], [35, "mov rcx, [rbp+s]"], [36, "lea rax, [rbp+var_30]"], [37, "mov rsi, rcx"], [38, "mov rdi, rax"], [39, "call sub_40771B"], [40, "lea rax, [rbp+var_30]"], [41, "mov rdi, rax"], [42, "call sub_4076CC"], [43, "mov rax, [rbp+var_18]"], [44, "lea rbx, [rax+1]"], [45, "lea rax, [rbp+var_30]"], [46, "mov rdi, rax"], [47, "call sub_401B0A"], [48, "mov rcx, rax"], [49, "mov rax, [rbp+var_38]"], [50, "mov rdx, rbx"], [51, "mov rsi, rcx"], [52, "mov rdi, rax"], [53, "call sub_401F1D"], [54, "lea rax, [rbp+var_30]"], [55, "mov rdi, rax"], [56, "call sub_4074C9"], [57, "nop"], [58, "mov rbx, [rbp+var_8]"], [59, "leave"], [60, "retn"]], "data_dep": [[7, 5], [9, 7], [11, 10], [12, 11], [13, 12], [14, 6], [15, 14], [16, 5], [17, 16], [21, 5], [22, 6], [23, 4], [24, 22], [25, 23], [32, 11], [33, 5], [33, 32], [34, 33], [35, 5], [36, 28], [36, 33], [37, 35], [38, 36], [40, 28], [40, 39], [41, 40], [43, 11], [44, 43], [45, 28], [45, 43], [46, 45], [48, 47], [49, 4], [50, 44], [51, 48], [52, 49], [54, 28], [54, 53], [55, 54], [60, 56], [60, 26]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/03106a6a0c751e17d177860ac50c6698b68e09b39f5be7d1f98bb9d3a7c7c1b9_03106a6a0c751e17d177860ac50c6698b68e09b39f5be7d1f98bb9d3a7c7c1b9.jsonl.gz", "strip_func_name": "sub_401F92", "query": "\n\n\n__int64 __fastcall sub_401F92(unsigned int *a1, const char *a2, const char *a3)\n{\n__int64 v3; // rdx\n__int64 v4; // rcx\n__int64 v5; // r8\n__int64 v6; // r9\n__int64 result; // rax\nconst char *v8; // rbx\nconst char *v9; // rax\n__int64 v11; // [rsp+20h] [rbp-30h] BYREF\nint v12; // [rsp+28h] [rbp-28h]\nint v13; // [rsp+2Ch] [rbp-24h]\nint v14; // [rsp+30h] [rbp-20h]\nchar *v15; // [rsp+38h] [rbp-18h]\n\nv15 = strchr(a2, 61);\nif ( v15 )\n{\nv11 = 0LL;\nv12 = 0;\nv13 = 0;\nv14 = 0;\nsub_40771B(&v11, a2, (unsigned int)((_DWORD)v15 - (_DWORD)a2));\nsub_4076CC(&v11);\nv8 = v15 + 1;\nv9 = (const char *)sub_401B0A((__int64)&v11);\nsub_401F1D(a1, v9, v8);\nresult = sub_4074C9(&v11);\n}\nelse\n{\nif ( !a3 )\nsub_401946(\"Command line attribute `%s' doesn't contain a name\", (__int64)a2, v3, v4, v5, v6);\nresult = sub_401F1D(a1, a3, a2);\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v3,v11,v15,sub_401F92,sub_40771B,sub_4076CC,sub_401B0A,sub_401F1D,sub_4074C9,sub_401946,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'Name', 'a1': 'C', 'a2': 'Combined', 'v3': 'Name', 'v11': 'N', 'v15': 'Pos', 'sub_401F92': 'SplitAddAttr', 'sub_40771B': 'SB_CopyBuf', 'sub_4076CC': 'SB_Terminate', 'sub_401B0A': 'SB_GetConstBuf', 'sub_401F1D': 'AddAttr', 'sub_4074C9': 'SB_Done', 'sub_401946': 'Error'}"}
doreadlink
3fdae2be882b780d1a67910267da0c2d1686137097f9fe6d13498606dfdc8de6
jingchunzhang
backdoor_rootkit
NA
static int doreadlink(path, rbuf, rbln) char *path; /* path */ char *rbuf; /* response buffer */ int rbln; /* response buffer length */ { return(readlink(path, rbuf, rbln)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4177F1", "function_addr": 4290545, "binary_name": "3fdae2be882b780d1a67910267da0c2d1686137097f9fe6d13498606dfdc8de6.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+path], rdi"], [4, "mov [rbp+buf], rsi"], [5, "mov [rbp+var_14], edx"], [6, "mov eax, [rbp+var_14]"], [7, "movsxd rdx, eax"], [8, "mov rcx, [rbp+buf]"], [9, "mov rax, [rbp+path]"], [10, "mov rsi, rcx"], [11, "mov rdi, rax"], [12, "call _readlink"], [13, "leave"], [14, "retn"]], "data_dep": [[6, 5], [7, 6], [8, 4], [9, 3], [10, 8], [11, 9], [14, 12]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/3fdae2be882b780d1a67910267da0c2d1686137097f9fe6d13498606dfdc8de6_3fdae2be882b780d1a67910267da0c2d1686137097f9fe6d13498606dfdc8de6.jsonl.gz", "strip_func_name": "sub_4177F1", "query": "\n\n\nssize_t __fastcall sub_4177F1(const char *a1, char *a2, int a3)\n{\nreturn readlink(a1, a2, a3);\n}\n\n\n\nQ:[a3,a1,a2,sub_4177F1,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'rbln', 'a1': 'path', 'a2': 'rbuf', 'sub_4177F1': 'doreadlink'}"}
set_video_out_params
25178079c47330e4dfa5811fc354b14219b39d542a522904dc1b75c54ba9dfc3
DevonCrawford
Video-Editing-Automation
NA
void set_video_out_params(VideoOutParams *op, AVCodecContext *c) { op->codec_id = c->codec_id; op->pix_fmt = c->pix_fmt; op->width = c->width; op->height = c->height; op->bit_rate = c->bit_rate; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408BF3", "function_addr": 4230131, "binary_name": "25178079c47330e4dfa5811fc354b14219b39d542a522904dc1b75c54ba9dfc3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_10], rsi"], [4, "mov rax, [rbp+var_10]"], [5, "mov edx, [rax+18h]"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rax], edx"], [8, "mov rax, [rbp+var_10]"], [9, "mov edx, [rax+88h]"], [10, "mov rax, [rbp+var_8]"], [11, "mov [rax+4], edx"], [12, "mov rax, [rbp+var_10]"], [13, "mov edx, [rax+74h]"], [14, "mov rax, [rbp+var_8]"], [15, "mov [rax+8], edx"], [16, "mov rax, [rbp+var_10]"], [17, "mov edx, [rax+78h]"], [18, "mov rax, [rbp+var_8]"], [19, "mov [rax+0Ch], edx"], [20, "mov rax, [rbp+var_10]"], [21, "mov rdx, [rax+38h]"], [22, "mov rax, [rbp+var_8]"], [23, "mov [rax+10h], rdx"], [24, "nop"], [25, "pop rbp"], [26, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 2], [7, 6], [7, 5], [8, 3], [9, 8], [9, 7], [10, 2], [11, 10], [11, 9], [12, 3], [13, 11], [13, 12], [14, 2], [15, 14], [15, 13], [16, 3], [17, 15], [17, 16], [18, 2], [19, 18], [19, 17], [20, 3], [21, 19], [21, 20], [22, 2], [23, 22], [23, 21], [25, 0], [26, 22]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/25178079c47330e4dfa5811fc354b14219b39d542a522904dc1b75c54ba9dfc3_25178079c47330e4dfa5811fc354b14219b39d542a522904dc1b75c54ba9dfc3.jsonl.gz", "strip_func_name": "sub_408BF3", "query": "\n\n\n__int64 __fastcall sub_408BF3(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\n\n*(_DWORD *)a1 = *(_DWORD *)(a2 + 24);\n*(_DWORD *)(a1 + 4) = *(_DWORD *)(a2 + 136);\n*(_DWORD *)(a1 + 8) = *(_DWORD *)(a2 + 116);\n*(_DWORD *)(a1 + 12) = *(_DWORD *)(a2 + 120);\nresult = a1;\n*(_QWORD *)(a1 + 16) = *(_QWORD *)(a2 + 56);\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_408BF3,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'op', 'a2': 'c', 'sub_408BF3': 'set_video_out_params'}"}
strtotsv
c0bdda158aca46d0badc1243ee55b1fe1912f6e65bb27050c715097b539c99f7
open-simh
simh
NA
t_svalue strtotsv (CONST char *inptr, CONST char **endptr, uint32 radix) { t_bool nodigits; t_svalue val; t_svalue negate = 1; uint32 c, digit; if (endptr) *endptr = inptr; /* assume fails */ if (((radix < 2) || (radix > 36)) && (radix != 0)) return 0; while (sim_isspace (*inptr)) /* bypass white space */ inptr++; if ((*inptr == '-') || (*inptr == '+')) { if (*inptr == '-') negate = -1; ++inptr; } if (((radix == 0) || (radix == 16)) && ((!memcmp("0x", inptr, 2)) || (!memcmp("0X", inptr, 2)))) { radix = 16; inptr += 2; } if (((radix == 0) || (radix == 2)) && ((!memcmp("0b", inptr, 2)) || (!memcmp("0B", inptr, 2)))) { radix = 2; inptr += 2; } if ((radix == 0) && (*inptr == '0')) /* Default radix and octal? */ radix = 8; if (radix == 0) /* Default base 10 radix */ radix = 10; val = 0; nodigits = TRUE; for (c = *inptr; sim_isalnum(c); c = *++inptr) { /* loop through char */ c = sim_toupper (c); if (sim_isdigit (c)) /* digit? */ digit = c - (uint32) '0'; else { if (radix <= 10) /* stop if not expected */ break; else digit = c + 10 - (uint32) 'A'; /* convert letter */ } if (digit >= radix) /* valid in radix? */ return 0; val = (val * radix) + digit; /* add to value */ nodigits = FALSE; } if (nodigits) /* no digits? */ return 0; if (endptr) *endptr = inptr; /* result pointer */ return val * negate; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4345A1", "function_addr": 4408737, "binary_name": "c0bdda158aca46d0badc1243ee55b1fe1912f6e65bb27050c715097b539c99f7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+s2], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_34], edx"], [6, "mov [rbp+var_18], 1"], [7, "cmp [rbp+var_30], 0"], [8, "jz short loc_4345CE"], [9, "mov rax, [rbp+var_30]"], [10, "mov rdx, [rbp+s2]"], [11, "mov [rax], rdx"], [12, "cmp [rbp+var_34], 1"], [13, "jbe short loc_4345DA"], [14, "cmp [rbp+var_34], 24h "], [15, "jbe short loc_4345EF"], [16, "cmp [rbp+var_34], 0"], [17, "jz short loc_4345EF"], [18, "mov eax, 0"], [19, "jmp locret_4347B8"], [20, "add [rbp+s2], 1"], [21, "mov rax, [rbp+s2]"], [22, "movzx eax, byte ptr [rax]"], [23, "movsx eax, al"], [24, "mov edi, eax"], [25, "call sub_44EBC5"], [26, "test eax, eax"], [27, "jnz short loc_4345EA"], [28, "mov rax, [rbp+s2]"], [29, "movzx eax, byte ptr [rax]"], [30, "cmp al, 2Dh "], [31, "jz short loc_43461A"], [32, "mov rax, [rbp+s2]"], [33, "movzx eax, byte ptr [rax]"], [34, "cmp al, 2Bh "], [35, "jnz short loc_434632"], [36, "mov rax, [rbp+s2]"], [37, "movzx eax, byte ptr [rax]"], [38, "cmp al, 2Dh "], [39, "jnz short loc_43462D"], [40, "mov [rbp+var_18], 0FFFFFFFFFFFFFFFFh"], [41, "add [rbp+s2], 1"], [42, "cmp [rbp+var_34], 0"], [43, "jz short loc_43463E"], [44, "cmp [rbp+var_34], 10h"], [45, "jnz short loc_43467E"], [46, "mov rax, [rbp+s2]"], [47, "mov edx, 2"], [48, "mov rsi, rax"], [49, "mov edi, offset unk_4B3FC8"], [50, "call _memcmp"], [51, "test eax, eax"], [52, "jz short loc_434672"], [53, "mov rax, [rbp+s2]"], [54, "mov edx, 2"], [55, "mov rsi, rax"], [56, "mov edi, offset unk_4B3FCB"], [57, "call _memcmp"], [58, "test eax, eax"], [59, "jnz short loc_43467E"], [60, "mov [rbp+var_34], 10h"], [61, "add [rbp+s2], 2"], [62, "cmp [rbp+var_34], 0"], [63, "jz short loc_43468A"], [64, "cmp [rbp+var_34], 2"], [65, "jnz short loc_4346CA"], [66, "mov rax, [rbp+s2]"], [67, "mov edx, 2"], [68, "mov rsi, rax"], [69, "mov edi, offset unk_4B3FCE"], [70, "call _memcmp"], [71, "test eax, eax"], [72, "jz short loc_4346BE"], [73, "mov rax, [rbp+s2]"], [74, "mov edx, 2"], [75, "mov rsi, rax"], [76, "mov edi, offset unk_4B3FD1"], [77, "call _memcmp"], [78, "test eax, eax"], [79, "jnz short loc_4346CA"], [80, "mov [rbp+var_34], 2"], [81, "add [rbp+s2], 2"], [82, "cmp [rbp+var_34], 0"], [83, "jnz short loc_4346E2"], [84, "mov rax, [rbp+s2]"], [85, "movzx eax, byte ptr [rax]"], [86, "cmp al, 30h "], [87, "jnz short loc_4346E2"], [88, "mov [rbp+var_34], 8"], [89, "cmp [rbp+var_34], 0"], [90, "jnz short loc_4346EF"], [91, "mov [rbp+var_34], 0Ah"], [92, "mov [rbp+var_10], 0"], [93, "mov [rbp+var_4], 1"], [94, "mov rax, [rbp+s2]"], [95, "movzx eax, byte ptr [rax]"], [96, "movsx eax, al"], [97, "mov [rbp+var_1C], eax"], [98, "jmp short loc_43477F"], [99, "mov eax, [rbp+var_1C]"], [100, "mov edi, eax"], [101, "call sub_44EC31"], [102, "mov [rbp+var_1C], eax"], [103, "mov eax, [rbp+var_1C]"], [104, "mov edi, eax"], [105, "call sub_44ECC5"], [106, "test eax, eax"], [107, "jz short loc_434733"], [108, "mov eax, [rbp+var_1C]"], [109, "sub eax, 30h "], [110, "mov [rbp+var_20], eax"], [111, "jmp short loc_434742"], [112, "cmp [rbp+var_34], 0Ah"], [113, "jbe short loc_43478F"], [114, "mov eax, [rbp+var_1C]"], [115, "sub eax, 37h "], [116, "mov [rbp+var_20], eax"], [117, "mov eax, [rbp+var_20]"], [118, "cmp eax, [rbp+var_34]"], [119, "jb short loc_434751"], [120, "mov eax, 0"], [121, "jmp short locret_4347B8"], [122, "mov eax, [rbp+var_34]"], [123, "imul rax, [rbp+var_10]"], [124, "mov rdx, rax"], [125, "mov eax, [rbp+var_20]"], [126, "add rax, rdx"], [127, "mov [rbp+var_10], rax"], [128, "mov [rbp+var_4], 0"], [129, "add [rbp+s2], 1"], [130, "mov rax, [rbp+s2]"], [131, "movzx eax, byte ptr [rax]"], [132, "movsx eax, al"], [133, "mov [rbp+var_1C], eax"], [134, "mov eax, [rbp+var_1C]"], [135, "mov edi, eax"], [136, "call sub_44ED10"], [137, "test eax, eax"], [138, "jnz short loc_43470D"], [139, "jmp short loc_434790"], [140, "nop"], [141, "cmp [rbp+var_4], 0"], [142, "jz short loc_43479D"], [143, "mov eax, 0"], [144, "jmp short locret_4347B8"], [145, "cmp [rbp+var_30], 0"], [146, "jz short loc_4347AF"], [147, "mov rax, [rbp+var_30]"], [148, "mov rdx, [rbp+s2]"], [149, "mov [rax], rdx"], [150, "mov rax, [rbp+var_10]"], [151, "imul rax, [rbp+var_18]"], [152, "leave"], [153, "retn"]], "data_dep": [[7, 4], [8, 7], [9, 4], [10, 3], [11, 9], [11, 10], [12, 5], [13, 12], [14, 5], [15, 14], [16, 5], [17, 16], [20, 20], [20, 3], [21, 20], [21, 3], [22, 21], [22, 11], [23, 22], [24, 23], [26, 25], [27, 26], [28, 3], [28, 20], [29, 28], [29, 11], [30, 29], [31, 30], [32, 3], [32, 20], [33, 11], [33, 32], [34, 33], [35, 34], [36, 20], [36, 3], [37, 11], [37, 36], [38, 37], [39, 38], [41, 3], [41, 20], [42, 5], [43, 42], [44, 5], [45, 44], [46, 20], [46, 41], [46, 3], [48, 46], [51, 50], [52, 51], [53, 20], [53, 41], [53, 3], [55, 53], [58, 57], [59, 58], [61, 20], [61, 3], [61, 41], [62, 60], [62, 5], [63, 62], [64, 5], [64, 60], [65, 64], [66, 41], [66, 61], [66, 20], [66, 3], [68, 66], [71, 70], [72, 71], [73, 3], [73, 20], [73, 41], [73, 61], [75, 73], [78, 77], [79, 78], [81, 41], [81, 20], [81, 61], [81, 3], [82, 60], [82, 5], [82, 80], [83, 82], [84, 20], [84, 41], [84, 61], [84, 81], [84, 3], [85, 11], [85, 84], [86, 85], [87, 86], [89, 88], [89, 60], [89, 5], [89, 80], [90, 89], [94, 3], [94, 20], [94, 41], [94, 61], [94, 81], [95, 94], [95, 11], [96, 95], [97, 96], [99, 97], [99, 133], [100, 99], [102, 101], [103, 102], [104, 103], [106, 105], [107, 106], [108, 102], [109, 108], [110, 109], [112, 91], [112, 88], [112, 60], [112, 5], [112, 80], [113, 112], [114, 102], [115, 114], [116, 115], [117, 110], [117, 116], [118, 60], [118, 117], [118, 5], [118, 80], [118, 91], [118, 88], [119, 118], [122, 60], [122, 5], [122, 80], [122, 91], [122, 88], [123, 127], [123, 122], [123, 92], [124, 123], [125, 116], [125, 110], [126, 125], [126, 124], [127, 126], [129, 20], [129, 61], [129, 81], [129, 129], [129, 3], [129, 41], [130, 129], [131, 11], [131, 130], [132, 131], [133, 132], [134, 133], [134, 97], [135, 134], [137, 136], [138, 137], [141, 128], [141, 93], [142, 141], [145, 4], [146, 145], [147, 4], [148, 61], [148, 81], [148, 129], [148, 3], [148, 41], [148, 20], [149, 148], [149, 147], [150, 127], [150, 92], [151, 150], [151, 6], [151, 40], [153, 18], [153, 143], [153, 120], [153, 151]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c0bdda158aca46d0badc1243ee55b1fe1912f6e65bb27050c715097b539c99f7_c0bdda158aca46d0badc1243ee55b1fe1912f6e65bb27050c715097b539c99f7.jsonl.gz", "strip_func_name": "sub_4345A1", "query": "\n\n\n__int64 __fastcall sub_4345A1(_BYTE *a1, _QWORD *a2, unsigned int a3)\n{\nunsigned int v4; // [rsp+Ch] [rbp-34h]\n_BYTE *s2; // [rsp+18h] [rbp-28h]\nunsigned int v6; // [rsp+20h] [rbp-20h]\nunsigned int i; // [rsp+24h] [rbp-1Ch]\nunsigned int v8; // [rsp+24h] [rbp-1Ch]\n__int64 v9; // [rsp+28h] [rbp-18h]\n__int64 v10; // [rsp+30h] [rbp-10h]\nint v11; // [rsp+3Ch] [rbp-4h]\n\ns2 = a1;\nv4 = a3;\nv9 = 1LL;\nif ( a2 )\n*a2 = a1;\nif ( (a3 <= 1 || a3 > 0x24) && a3 )\nreturn 0LL;\nwhile ( (unsigned int)sub_44EBC5((unsigned int)(char)*s2) )\n++s2;\nif ( *s2 == 45 || *s2 == 43 )\n{\nif ( *s2 == 45 )\nv9 = -1LL;\n++s2;\n}\nif ( (!v4 || v4 == 16) && (!memcmp(&unk_4B3FC8, s2, 2uLL) || !memcmp(&unk_4B3FCB, s2, 2uLL)) )\n{\nv4 = 16;\ns2 += 2;\n}\nif ( (!v4 || v4 == 2) && (!memcmp(&unk_4B3FCE, s2, 2uLL) || !memcmp(&unk_4B3FD1, s2, 2uLL)) )\n{\nv4 = 2;\ns2 += 2;\n}\nif ( !v4 && *s2 == 48 )\nv4 = 8;\nif ( !v4 )\nv4 = 10;\nv10 = 0LL;\nv11 = 1;\nfor ( i = (char)*s2; (unsigned int)sub_44ED10(i); i = (char)*s2 )\n{\nv8 = sub_44EC31(i);\nif ( (unsigned int)sub_44ECC5(v8) )\n{\nv6 = v8 - 48;\n}\nelse\n{\nif ( v4 <= 0xA )\nbreak;\nv6 = v8 - 55;\n}\nif ( v6 >= v4 )\nreturn 0LL;\nv10 = v10 * v4 + v6;\nv11 = 0;\n++s2;\n}\nif ( v11 )\nreturn 0LL;\nif ( a2 )\n*a2 = s2;\nreturn v9 * v10;\n}\n\n\n\nQ:[a3,a1,a2,v4,s2,v6,v8,v9,v10,v11,sub_4345A1,sub_44EBC5,sub_44ED10,sub_44EC31,sub_44ECC5,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'radix', 'a1': 'inptr', 'a2': 'endptr', 'v4': 'radixa', 's2': 'inptra', 'v6': 'digit', 'v8': 'ca', 'v9': 'negate', 'v10': 'val', 'v11': 'nodigits', 'sub_4345A1': 'strtotsv', 'sub_44EBC5': 'sim_isspace', 'sub_44ED10': 'sim_isalnum', 'sub_44EC31': 'sim_toupper', 'sub_44ECC5': 'sim_isdigit'}"}
dram_2_phys
c805e522923b6498c99e36304411d63498fbf04c56c58ae44c2750031b31ce42
vusec
trrespass
NA
physaddr_t dram_2_phys(DRAMAddr d_addr) { physaddr_t p_addr = 0; uint64_t col_val = 0; p_addr = (d_addr.row << __builtin_ctzl(g_mem_layout.row_mask)); // set row bits p_addr |= (d_addr.col << __builtin_ctzl(g_mem_layout.col_mask)); // set col bits for (int i = 0; i < g_mem_layout.h_fns.len; i++) { uint64_t masked_addr = p_addr & g_mem_layout.h_fns.lst[i]; // if the address already respects the h_fn then just move to the next func if (__builtin_parity(masked_addr) == ((d_addr.bank >> i) & 1L)) { continue; } // else flip a bit of the address so that the address respects the dram h_fn // that is get only bits not affecting the row. uint64_t h_lsb = __builtin_ctzl((g_mem_layout.h_fns.lst[i]) & ~(g_mem_layout.col_mask) & ~(g_mem_layout.row_mask)); p_addr ^= 1 << h_lsb; } #if DEBUG_REVERSE_FN int correct = 1; for (int i = 0; i < g_mem_layout.h_fns.len; i++) { if (__builtin_parity(p_addr & g_mem_layout.h_fns.lst[i]) != ((d_addr.bank >> i) & 1L)) { correct = 0; break; } } if (d_addr.row != ((p_addr & g_mem_layout.row_mask) >> __builtin_ctzl(g_mem_layout.row_mask))) correct = 0; if (!correct) fprintf(stderr, "[DEBUG] - Mapping function for 0x%lx not respected\n", p_addr); #endif return p_addr; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405CDA", "function_addr": 4218074, "binary_name": "c805e522923b6498c99e36304411d63498fbf04c56c58ae44c2750031b31ce42.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_8], 0"], [4, "mov [rbp+var_20], 0"], [5, "mov rax, [rbp+arg_8]"], [6, "mov rdx, cs:qword_40A2B8"], [7, "tzcnt rdx, rdx"], [8, "mov ecx, edx"], [9, "shl rax, cl"], [10, "mov [rbp+var_8], rax"], [11, "mov rax, [rbp+arg_10]"], [12, "mov rdx, cs:qword_40A2C0"], [13, "tzcnt rdx, rdx"], [14, "mov ecx, edx"], [15, "shl rax, cl"], [16, "or [rbp+var_8], rax"], [17, "mov [rbp+var_C], 0"], [18, "mov eax, [rbp+var_C]"], [19, "movsxd rdx, eax"], [20, "mov rax, cs:qword_40A2B0"], [21, "cmp rdx, rax"], [22, "jnb loc_405DCE"], [23, "mov eax, [rbp+var_C]"], [24, "cdqe"], [25, "mov rax, qword_40A280[rax*8]"], [26, "and rax, [rbp+var_8]"], [27, "mov [rbp+var_28], rax"], [28, "mov rax, [rbp+var_28]"], [29, "popcnt eax, eax"], [30, "and eax, 1"], [31, "movsxd rdx, eax"], [32, "mov rsi, [rbp+arg_0]"], [33, "mov eax, [rbp+var_C]"], [34, "mov ecx, eax"], [35, "shr rsi, cl"], [36, "mov rax, rsi"], [37, "and eax, 1"], [38, "cmp rdx, rax"], [39, "jz short loc_405DC4"], [40, "mov eax, [rbp+var_C]"], [41, "cdqe"], [42, "mov rdx, qword_40A280[rax*8]"], [43, "mov rax, cs:qword_40A2C0"], [44, "not rax"], [45, "and rdx, rax"], [46, "mov rax, cs:qword_40A2B8"], [47, "not rax"], [48, "and rax, rdx"], [49, "tzcnt rax, rax"], [50, "cdqe"], [51, "mov [rbp+var_30], rax"], [52, "mov rax, [rbp+var_30]"], [53, "mov edx, 1"], [54, "mov ecx, eax"], [55, "shl edx, cl"], [56, "mov eax, edx"], [57, "cdqe"], [58, "xor [rbp+var_8], rax"], [59, "jmp short loc_405DC5"], [60, "nop"], [61, "add [rbp+var_C], 1"], [62, "jmp loc_405D2B"], [63, "mov [rbp+var_10], 1"], [64, "mov [rbp+var_14], 0"], [65, "mov eax, [rbp+var_14]"], [66, "movsxd rdx, eax"], [67, "mov rax, cs:qword_40A2B0"], [68, "cmp rdx, rax"], [69, "jnb short loc_405E33"], [70, "mov eax, [rbp+var_14]"], [71, "cdqe"], [72, "mov rax, qword_40A280[rax*8]"], [73, "mov edx, eax"], [74, "mov rax, [rbp+var_8]"], [75, "and eax, edx"], [76, "popcnt eax, eax"], [77, "and eax, 1"], [78, "movsxd rdx, eax"], [79, "mov rsi, [rbp+arg_0]"], [80, "mov eax, [rbp+var_14]"], [81, "mov ecx, eax"], [82, "shr rsi, cl"], [83, "mov rax, rsi"], [84, "and eax, 1"], [85, "cmp rdx, rax"], [86, "jz short loc_405E2D"], [87, "mov [rbp+var_10], 0"], [88, "jmp short loc_405E33"], [89, "add [rbp+var_14], 1"], [90, "jmp short loc_405DDC"], [91, "mov rdx, [rbp+arg_8]"], [92, "mov rax, cs:qword_40A2B8"], [93, "and rax, [rbp+var_8]"], [94, "mov rcx, cs:qword_40A2B8"], [95, "tzcnt rcx, rcx"], [96, "shr rax, cl"], [97, "cmp rdx, rax"], [98, "jz short loc_405E5D"], [99, "mov [rbp+var_10], 0"], [100, "cmp [rbp+var_10], 0"], [101, "jnz short loc_405E80"], [102, "mov rax, cs:stderr"], [103, "mov rdx, [rbp+var_8]"], [104, "mov esi, offset aDebugMappingFu"], [105, "mov rdi, rax"], [106, "mov eax, 0"], [107, "call _fprintf"], [108, "mov rax, [rbp+var_8]"], [109, "leave"], [110, "retn"]], "data_dep": [[5, 3], [7, 6], [8, 7], [9, 8], [9, 5], [10, 9], [13, 12], [14, 13], [15, 14], [15, 11], [16, 15], [16, 10], [18, 17], [18, 61], [19, 18], [21, 20], [21, 19], [22, 21], [23, 61], [23, 17], [26, 16], [26, 25], [26, 58], [27, 26], [28, 27], [29, 28], [30, 29], [31, 30], [33, 17], [33, 61], [34, 33], [35, 32], [35, 34], [36, 35], [37, 36], [38, 31], [38, 37], [39, 38], [40, 61], [40, 17], [44, 43], [45, 42], [45, 44], [47, 46], [48, 45], [48, 47], [49, 48], [51, 49], [52, 51], [54, 52], [55, 54], [55, 53], [56, 55], [58, 56], [58, 58], [58, 16], [61, 61], [61, 17], [65, 89], [65, 64], [66, 65], [68, 66], [68, 67], [69, 68], [70, 64], [70, 89], [73, 72], [74, 58], [74, 16], [75, 74], [75, 73], [76, 75], [77, 76], [78, 77], [80, 89], [80, 64], [81, 80], [82, 79], [82, 81], [83, 82], [84, 83], [85, 84], [85, 78], [86, 85], [89, 89], [89, 64], [91, 16], [91, 58], [93, 58], [93, 92], [93, 16], [95, 94], [96, 95], [96, 93], [97, 96], [97, 91], [98, 97], [100, 87], [100, 63], [100, 99], [101, 100], [103, 58], [103, 16], [105, 102], [108, 58], [108, 16], [110, 108]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c805e522923b6498c99e36304411d63498fbf04c56c58ae44c2750031b31ce42_c805e522923b6498c99e36304411d63498fbf04c56c58ae44c2750031b31ce42.jsonl.gz", "strip_func_name": "sub_405CDA", "query": "\n\n\n__int64 __fastcall sub_405CDA(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, unsigned __int64 a7, __int64 a8, __int64 a9)\n{\nint j; // [rsp+1Ch] [rbp-14h]\nint v19; // [rsp+20h] [rbp-10h]\nint i; // [rsp+24h] [rbp-Ch]\n__int64 v21; // [rsp+28h] [rbp-8h]\n__int64 v22; // [rsp+28h] [rbp-8h]\n\n_RDX = qword_40A2B8;\n__asm { tzcnt rdx, rdx }\nv21 = a8 << _RDX;\n_RDX = qword_40A2C0;\n__asm { tzcnt rdx, rdx }\nv22 = (a9 << _RDX) | v21;\nfor ( i = 0; i < (unsigned __int64)qword_40A2B0; ++i )\n{\nif ( (__popcnt(v22 & LODWORD(qword_40A280[i])) & 1) != ((a7 >> i) & 1) )\n{\n_RAX = ~qword_40A2C0 & qword_40A280[i] & ~qword_40A2B8;\n__asm { tzcnt rax, rax }\nv22 = (1 << _RAX) ^ (unsigned __int64)v22;\n}\n}\nv19 = 1;\nfor ( j = 0; j < (unsigned __int64)qword_40A2B0; ++j )\n{\nif ( (__popcnt(qword_40A280[j] & v22) & 1) != ((a7 >> j) & 1) )\n{\nv19 = 0;\nbreak;\n}\n}\n_RCX = qword_40A2B8;\n__asm { tzcnt rcx, rcx }\nif ( a8 != (v22 & (unsigned __int64)qword_40A2B8) >> _RCX )\nv19 = 0;\nif ( !v19 )\nfprintf(stderr, \"[DEBUG] - Mapping function for 0x%lx not respected\\n\", v22);\nreturn v22;\n}\n\n\n\nQ:[a7,j,v19,v22,sub_405CDA,]\nAssistant: ", "hints": "[]", "response": "{'a7': 'd_addr', 'j': 'i_0', 'v19': 'correct', 'v22': 'p_addr', 'sub_405CDA': 'dram_2_phys'}"}
pjmedia_aud_driver_init
a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c
AonCyberLabs
D-Modem
NA
PJ_DEF(pj_status_t) pjmedia_aud_driver_init(unsigned drv_idx, pj_bool_t refresh) { pjmedia_aud_driver *drv = &aud_subsys.drv[drv_idx]; pjmedia_aud_dev_factory *f; unsigned i, dev_cnt; pj_status_t status; if (!refresh && drv->create) { /* Create the factory */ f = (*drv->create)(aud_subsys.pf); if (!f) return PJ_EUNKNOWN; /* Call factory->init() */ status = f->op->init(f); if (status != PJ_SUCCESS) { f->op->destroy(f); return status; } } else { f = drv->f; } if (!f) return PJ_EUNKNOWN; /* Get number of devices */ dev_cnt = f->op->get_dev_count(f); if (dev_cnt + aud_subsys.dev_cnt > PJMEDIA_AUD_MAX_DEVS) { PJ_LOG(4,(THIS_FILE, "%d device(s) cannot be registered because" " there are too many devices", aud_subsys.dev_cnt + dev_cnt - PJMEDIA_AUD_MAX_DEVS)); dev_cnt = PJMEDIA_AUD_MAX_DEVS - aud_subsys.dev_cnt; } /* enabling this will cause pjsua-lib initialization to fail when there * is no sound device installed in the system, even when pjsua has been * run with --null-audio * if (dev_cnt == 0) { f->op->destroy(f); return PJMEDIA_EAUD_NODEV; } */ /* Fill in default devices */ drv->play_dev_idx = drv->rec_dev_idx = drv->dev_idx = PJMEDIA_AUD_INVALID_DEV; for (i=0; i<dev_cnt; ++i) { pjmedia_aud_dev_info info; status = f->op->get_dev_info(f, i, &info); if (status != PJ_SUCCESS) { f->op->destroy(f); return status; } if (drv->name[0]=='\0') { /* Set driver name */ pj_ansi_strncpy(drv->name, info.driver, sizeof(drv->name)); drv->name[sizeof(drv->name)-1] = '\0'; } if (drv->play_dev_idx < 0 && info.output_count) { /* Set default playback device */ drv->play_dev_idx = i; } if (drv->rec_dev_idx < 0 && info.input_count) { /* Set default capture device */ drv->rec_dev_idx = i; } if (drv->dev_idx < 0 && info.input_count && info.output_count) { /* Set default capture and playback device */ drv->dev_idx = i; } if (drv->play_dev_idx >= 0 && drv->rec_dev_idx >= 0 && drv->dev_idx >= 0) { /* Done. */ break; } } /* Register the factory */ drv->f = f; drv->f->sys.drv_idx = drv_idx; drv->start_idx = aud_subsys.dev_cnt; drv->dev_cnt = dev_cnt; /* Register devices to global list */ for (i=0; i<dev_cnt; ++i) { aud_subsys.dev_list[aud_subsys.dev_cnt++] = MAKE_DEV_ID(drv_idx, i); } return PJ_SUCCESS; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_46B081", "function_addr": 4632705, "binary_name": "a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 1D0h"], [3, "mov [rbp+var_1C4], edi"], [4, "mov [rbp+var_1C8], esi"], [5, "mov edx, [rbp+var_1C4]"], [6, "mov rax, rdx"], [7, "shl rax, 3"], [8, "add rax, rdx"], [9, "shl rax, 3"], [10, "add rax, 10h"], [11, "add rax, 517920h"], [12, "add rax, 8"], [13, "mov [rbp+var_18], rax"], [14, "cmp [rbp+var_1C8], 0"], [15, "jnz short loc_46B135"], [16, "mov rax, [rbp+var_18]"], [17, "mov rax, [rax]"], [18, "test rax, rax"], [19, "jz short loc_46B135"], [20, "mov rax, [rbp+var_18]"], [21, "mov rdx, [rax]"], [22, "mov rax, cs:qword_517928"], [23, "mov rdi, rax"], [24, "call rdx"], [25, "mov [rbp+var_8], rax"], [26, "cmp [rbp+var_8], 0"], [27, "jnz short loc_46B0FB"], [28, "mov eax, 11171h"], [29, "jmp locret_46B385"], [30, "mov rax, [rbp+var_8]"], [31, "mov rax, [rax+8]"], [32, "mov rdx, [rax]"], [33, "mov rax, [rbp+var_8]"], [34, "mov rdi, rax"], [35, "call rdx"], [36, "mov [rbp+var_1C], eax"], [37, "cmp [rbp+var_1C], 0"], [38, "jz short loc_46B141"], [39, "mov rax, [rbp+var_8]"], [40, "mov rax, [rax+8]"], [41, "mov rdx, [rax+8]"], [42, "mov rax, [rbp+var_8]"], [43, "mov rdi, rax"], [44, "call rdx"], [45, "mov eax, [rbp+var_1C]"], [46, "jmp locret_46B385"], [47, "mov rax, [rbp+var_18]"], [48, "mov rax, [rax+8]"], [49, "mov [rbp+var_8], rax"], [50, "cmp [rbp+var_8], 0"], [51, "jnz short loc_46B152"], [52, "mov eax, 11171h"], [53, "jmp locret_46B385"], [54, "mov rax, [rbp+var_8]"], [55, "mov rax, [rax+8]"], [56, "mov rdx, [rax+10h]"], [57, "mov rax, [rbp+var_8]"], [58, "mov rdi, rax"], [59, "call rdx"], [60, "mov [rbp+var_10], eax"], [61, "mov edx, cs:dword_517DB8"], [62, "mov eax, [rbp+var_10]"], [63, "add eax, edx"], [64, "cmp eax, 40h "], [65, "jbe short loc_46B1B8"], [66, "call sub_4BD030"], [67, "cmp eax, 3"], [68, "jle short loc_46B1A8"], [69, "mov edx, cs:dword_517DB8"], [70, "mov eax, [rbp+var_10]"], [71, "add eax, edx"], [72, "sub eax, 40h "], [73, "mov edx, eax"], [74, "mov esi, offset aDDeviceSCannot"], [75, "mov edi, offset aAudiodevC"], [76, "mov eax, 0"], [77, "call sub_4BD9A4"], [78, "mov edx, cs:dword_517DB8"], [79, "mov eax, 40h "], [80, "sub eax, edx"], [81, "mov [rbp+var_10], eax"], [82, "mov rax, [rbp+var_18]"], [83, "mov dword ptr [rax+40h], 0FFFFFFFDh"], [84, "mov rax, [rbp+var_18]"], [85, "mov edx, [rax+40h]"], [86, "mov rax, [rbp+var_18]"], [87, "mov [rax+38h], edx"], [88, "mov rax, [rbp+var_18]"], [89, "mov edx, [rax+38h]"], [90, "mov rax, [rbp+var_18]"], [91, "mov [rax+3Ch], edx"], [92, "mov [rbp+var_C], 0"], [93, "jmp loc_46B2F6"], [94, "mov rax, [rbp+var_8]"], [95, "mov rax, [rax+8]"], [96, "mov r8, [rax+18h]"], [97, "lea rdx, [rbp+var_1C0]"], [98, "mov ecx, [rbp+var_C]"], [99, "mov rax, [rbp+var_8]"], [100, "mov esi, ecx"], [101, "mov rdi, rax"], [102, "call r8"], [103, "mov [rbp+var_1C], eax"], [104, "cmp [rbp+var_1C], 0"], [105, "jz short loc_46B233"], [106, "mov rax, [rbp+var_8]"], [107, "mov rax, [rax+8]"], [108, "mov rdx, [rax+8]"], [109, "mov rax, [rbp+var_8]"], [110, "mov rdi, rax"], [111, "call rdx"], [112, "mov eax, [rbp+var_1C]"], [113, "jmp locret_46B385"], [114, "mov rax, [rbp+var_18]"], [115, "movzx eax, byte ptr [rax+10h]"], [116, "test al, al"], [117, "jnz short loc_46B26A"], [118, "mov rax, [rbp+var_18]"], [119, "add rax, 10h"], [120, "lea rdx, [rbp+var_1C0]"], [121, "lea rcx, [rdx+4Ch]"], [122, "mov edx, 20h "], [123, "mov rsi, rcx"], [124, "mov rdi, rax"], [125, "call _strncpy"], [126, "mov rax, [rbp+var_18]"], [127, "mov byte ptr [rax+2Fh], 0"], [128, "mov rax, [rbp+var_18]"], [129, "mov eax, [rax+3Ch]"], [130, "test eax, eax"], [131, "jns short loc_46B289"], [132, "mov eax, [rbp+var_17C]"], [133, "test eax, eax"], [134, "jz short loc_46B289"], [135, "mov edx, [rbp+var_C]"], [136, "mov rax, [rbp+var_18]"], [137, "mov [rax+3Ch], edx"], [138, "mov rax, [rbp+var_18]"], [139, "mov eax, [rax+38h]"], [140, "test eax, eax"], [141, "jns short loc_46B2A8"], [142, "mov eax, [rbp+var_180]"], [143, "test eax, eax"], [144, "jz short loc_46B2A8"], [145, "mov edx, [rbp+var_C]"], [146, "mov rax, [rbp+var_18]"], [147, "mov [rax+38h], edx"], [148, "mov rax, [rbp+var_18]"], [149, "mov eax, [rax+40h]"], [150, "test eax, eax"], [151, "jns short loc_46B2D1"], [152, "mov eax, [rbp+var_180]"], [153, "test eax, eax"], [154, "jz short loc_46B2D1"], [155, "mov eax, [rbp+var_17C]"], [156, "test eax, eax"], [157, "jz short loc_46B2D1"], [158, "mov edx, [rbp+var_C]"], [159, "mov rax, [rbp+var_18]"], [160, "mov [rax+40h], edx"], [161, "mov rax, [rbp+var_18]"], [162, "mov eax, [rax+3Ch]"], [163, "test eax, eax"], [164, "js short loc_46B2F2"], [165, "mov rax, [rbp+var_18]"], [166, "mov eax, [rax+38h]"], [167, "test eax, eax"], [168, "js short loc_46B2F2"], [169, "mov rax, [rbp+var_18]"], [170, "mov eax, [rax+40h]"], [171, "test eax, eax"], [172, "jns short loc_46B304"], [173, "add [rbp+var_C], 1"], [174, "mov eax, [rbp+var_C]"], [175, "cmp eax, [rbp+var_10]"], [176, "jb loc_46B1EB"], [177, "jmp short loc_46B305"], [178, "nop"], [179, "mov rax, [rbp+var_18]"], [180, "mov rdx, [rbp+var_8]"], [181, "mov [rax+8], rdx"], [182, "mov rax, [rbp+var_18]"], [183, "mov rax, [rax+8]"], [184, "mov edx, [rbp+var_1C4]"], [185, "mov [rax], edx"], [186, "mov edx, cs:dword_517DB8"], [187, "mov rax, [rbp+var_18]"], [188, "mov [rax+34h], edx"], [189, "mov rax, [rbp+var_18]"], [190, "mov edx, [rbp+var_10]"], [191, "mov [rax+30h], edx"], [192, "mov [rbp+var_C], 0"], [193, "jmp short loc_46B378"], [194, "mov eax, [rbp+var_1C4]"], [195, "shl eax, 10h"], [196, "mov esi, eax"], [197, "mov eax, [rbp+var_C]"], [198, "movzx ecx, ax"], [199, "mov eax, cs:dword_517DB8"], [200, "lea edx, [rax+1]"], [201, "mov cs:dword_517DB8, edx"], [202, "or esi, ecx"], [203, "mov edx, esi"], [204, "mov eax, eax"], [205, "add rax, 124h"], [206, "mov dword ptr ds:qword_517928+4[rax*4], edx"], [207, "add [rbp+var_C], 1"], [208, "mov eax, [rbp+var_C]"], [209, "cmp eax, [rbp+var_10]"], [210, "jb short loc_46B341"], [211, "mov eax, 0"], [212, "leave"], [213, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [8, 5], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [14, 4], [15, 14], [16, 13], [17, 16], [18, 17], [19, 18], [20, 13], [21, 20], [23, 22], [24, 21], [25, 24], [26, 25], [27, 26], [30, 25], [31, 30], [32, 31], [33, 25], [34, 33], [35, 32], [36, 35], [37, 36], [38, 37], [39, 25], [40, 39], [41, 40], [42, 25], [43, 42], [44, 41], [45, 36], [47, 13], [48, 47], [49, 48], [50, 49], [50, 25], [51, 50], [54, 49], [54, 25], [55, 54], [56, 55], [57, 49], [57, 25], [58, 57], [59, 56], [60, 59], [62, 60], [63, 61], [63, 62], [64, 63], [65, 64], [67, 66], [68, 67], [70, 60], [71, 69], [71, 70], [72, 71], [73, 72], [80, 79], [80, 78], [81, 80], [82, 13], [83, 82], [84, 13], [85, 84], [85, 83], [86, 13], [87, 86], [87, 85], [88, 13], [89, 88], [89, 87], [90, 13], [91, 90], [91, 89], [94, 25], [94, 49], [95, 83], [95, 87], [95, 91], [95, 147], [95, 160], [95, 137], [95, 127], [95, 94], [96, 95], [96, 83], [96, 87], [96, 91], [96, 147], [96, 160], [96, 137], [96, 127], [97, 145], [97, 122], [97, 89], [97, 158], [97, 135], [97, 97], [98, 92], [98, 173], [99, 49], [99, 25], [100, 98], [101, 99], [102, 96], [103, 102], [104, 103], [105, 104], [106, 49], [106, 25], [107, 106], [107, 83], [107, 87], [107, 91], [107, 147], [107, 160], [107, 137], [107, 127], [108, 147], [108, 160], [108, 137], [108, 127], [108, 107], [108, 83], [108, 87], [108, 91], [109, 49], [109, 25], [110, 109], [111, 108], [112, 103], [114, 13], [115, 83], [115, 87], [115, 91], [115, 147], [115, 160], [115, 137], [115, 114], [115, 127], [116, 115], [117, 116], [118, 13], [119, 118], [120, 97], [121, 160], [121, 137], [121, 127], [121, 98], [121, 120], [121, 83], [121, 87], [121, 91], [121, 147], [123, 121], [124, 119], [126, 13], [127, 126], [128, 13], [129, 128], [129, 137], [129, 127], [129, 83], [129, 87], [129, 91], [129, 147], [129, 160], [130, 129], [131, 130], [133, 132], [134, 133], [135, 173], [135, 92], [136, 13], [137, 135], [137, 136], [138, 13], [139, 138], [139, 83], [139, 87], [139, 91], [139, 147], [139, 160], [139, 137], [139, 127], [140, 139], [141, 140], [143, 142], [144, 143], [145, 173], [145, 92], [146, 13], [147, 146], [147, 145], [148, 13], [149, 87], [149, 91], [149, 147], [149, 160], [149, 137], [149, 127], [149, 148], [149, 83], [150, 149], [151, 150], [153, 152], [154, 153], [156, 155], [157, 156], [158, 92], [158, 173], [159, 13], [160, 159], [160, 158], [161, 13], [162, 161], [162, 160], [162, 137], [162, 127], [162, 83], [162, 147], [162, 87], [162, 91], [163, 162], [164, 163], [165, 13], [166, 147], [166, 87], [166, 91], [166, 165], [166, 160], [166, 137], [166, 127], [166, 83], [167, 166], [168, 167], [169, 13], [170, 160], [170, 169], [170, 137], [170, 127], [170, 83], [170, 87], [170, 91], [170, 147], [171, 170], [172, 171], [173, 173], [173, 92], [174, 92], [174, 173], [175, 60], [175, 81], [175, 174], [176, 175], [179, 13], [180, 49], [180, 25], [181, 180], [181, 179], [182, 13], [183, 182], [183, 181], [184, 3], [185, 184], [185, 183], [187, 13], [188, 187], [188, 186], [189, 13], [190, 81], [190, 60], [191, 190], [191, 189], [194, 3], [195, 194], [196, 195], [197, 207], [197, 192], [198, 197], [199, 201], [200, 188], [200, 160], [200, 137], [200, 127], [200, 191], [200, 83], [200, 181], [200, 190], [200, 199], [200, 185], [200, 147], [200, 87], [200, 91], [200, 203], [201, 200], [202, 196], [202, 198], [203, 202], [204, 199], [205, 204], [206, 203], [207, 207], [207, 192], [208, 207], [208, 192], [209, 208], [209, 81], [209, 60], [210, 209], [213, 112], [213, 52], [213, 28], [213, 45], [213, 211]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c_a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.jsonl.gz", "strip_func_name": "sub_46B081", "query": "\n\n\n__int64 __fastcall sub_46B081(unsigned int a1, int a2)\n{\nint v3; // ecx\nint v4; // er8\nint v5; // er9\nunsigned int v6; // eax\nchar v7[64]; // [rsp+10h] [rbp-1C0h] BYREF\nint v8; // [rsp+50h] [rbp-180h]\nint v9; // [rsp+54h] [rbp-17Ch]\nchar v10[344]; // [rsp+5Ch] [rbp-174h] BYREF\nunsigned int v11; // [rsp+1B4h] [rbp-1Ch]\n__int64 v12; // [rsp+1B8h] [rbp-18h]\nunsigned int v13; // [rsp+1C0h] [rbp-10h]\nunsigned int i; // [rsp+1C4h] [rbp-Ch]\n__int64 v15; // [rsp+1C8h] [rbp-8h]\n\nv12 = 72LL * a1 + 5339448;\nif ( a2 || !*(_QWORD *)v12 )\n{\nv15 = *(_QWORD *)(v12 + 8);\n}\nelse\n{\nv15 = (*(__int64 (__fastcall **)(__int64))v12)(qword_517928);\nif ( !v15 )\nreturn 70001LL;\nv11 = (**(__int64 (__fastcall ***)(__int64))(v15 + 8))(v15);\nif ( v11 )\n{\n(*(void (__fastcall **)(__int64))(*(_QWORD *)(v15 + 8) + 8LL))(v15);\nreturn v11;\n}\n}\nif ( !v15 )\nreturn 70001LL;\nv13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v15 + 8) + 16LL))(v15);\nif ( dword_517DB8 + v13 > 0x40 )\n{\nif ( (int)sub_4BD030(v15) > 3 )\nsub_4BD9A4(\n(unsigned int)\"audiodev.c\",\n(unsigned int)\"%d device(s) cannot be registered because there are too many devices\",\ndword_517DB8 + v13 - 64,\nv3,\nv4,\nv5);\nv13 = 64 - dword_517DB8;\n}\n*(_DWORD *)(v12 + 64) = -3;\n*(_DWORD *)(v12 + 56) = *(_DWORD *)(v12 + 64);\n*(_DWORD *)(v12 + 60) = *(_DWORD *)(v12 + 56);\nfor ( i = 0; i < v13; ++i )\n{\nv11 = (*(__int64 (__fastcall **)(__int64, _QWORD, char *))(*(_QWORD *)(v15 + 8) + 24LL))(v15, i, v7);\nif ( v11 )\n{\n(*(void (__fastcall **)(__int64))(*(_QWORD *)(v15 + 8) + 8LL))(v15);\nreturn v11;\n}\nif ( !*(_BYTE *)(v12 + 16) )\n{\nstrncpy((char *)(v12 + 16), v10, 0x20uLL);\n*(_BYTE *)(v12 + 47) = 0;\n}\nif ( *(int *)(v12 + 60) < 0 && v9 )\n*(_DWORD *)(v12 + 60) = i;\nif ( *(int *)(v12 + 56) < 0 && v8 )\n*(_DWORD *)(v12 + 56) = i;\nif ( *(int *)(v12 + 64) < 0 && v8 && v9 )\n*(_DWORD *)(v12 + 64) = i;\nif ( *(int *)(v12 + 60) >= 0 && *(int *)(v12 + 56) >= 0 && *(int *)(v12 + 64) >= 0 )\nbreak;\n}\n*(_QWORD *)(v12 + 8) = v15;\n**(_DWORD **)(v12 + 8) = a1;\n*(_DWORD *)(v12 + 52) = dword_517DB8;\n*(_DWORD *)(v12 + 48) = v13;\nfor ( i = 0; i < v13; ++i )\n{\nv6 = dword_517DB8++;\n*((_DWORD *)&qword_517928 + v6 + 293) = (unsigned __int16)i | (a1 << 16);\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,v7,v11,v12,v13,v15,sub_46B081,sub_4BD030,sub_4BD9A4,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'drv_idx', 'a2': 'refresh', 'v7': 'info', 'v11': 'status', 'v12': 'drv', 'v13': 'dev_cnt', 'v15': 'f', 'sub_46B081': 'pjmedia_aud_driver_init', 'sub_4BD030': 'pj_log_get_level', 'sub_4BD9A4': 'pj_log_4'}"}
array_remove
cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da
aclements
mtrace
NA
static int array_remove(array_t* array,int index) { return array_remove_slice(array, index, 1); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_423B73", "function_addr": 4340595, "binary_name": "cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov rax, fs:28h"], [6, "mov [rbp+var_8], rax"], [7, "xor eax, eax"], [8, "mov ecx, [rbp+var_1C]"], [9, "mov rax, [rbp+var_18]"], [10, "mov edx, 1"], [11, "mov esi, ecx"], [12, "mov rdi, rax"], [13, "call sub_423A8D"], [14, "mov rdx, [rbp+var_8]"], [15, "sub rdx, fs:28h"], [16, "jz short locret_423BBB"], [17, "call ___stack_chk_fail"], [18, "leave"], [19, "retn"]], "data_dep": [[6, 5], [8, 4], [9, 3], [11, 8], [12, 9], [14, 6], [15, 14], [16, 15], [19, 13]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da_cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.jsonl.gz", "strip_func_name": "sub_423B73", "query": "\n\n\n__int64 __fastcall sub_423B73(__int64 a1, int a2)\n{\nreturn sub_423A8D(a1, a2, 1);\n}\n\n\n\nQ:[a1,a2,sub_423B73,sub_423A8D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'array', 'a2': 'index', 'sub_423B73': 'array_remove', 'sub_423A8D': 'array_remove_slice'}"}
qed_fmt_is_raw
cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da
aclements
mtrace
NA
static bool qed_fmt_is_raw(const char *fmt) { return fmt && strcmp(fmt, "raw") == 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43604C", "function_addr": 4415564, "binary_name": "cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+s1], rdi"], [4, "mov rax, fs:28h"], [5, "mov [rbp+var_8], rax"], [6, "xor eax, eax"], [7, "cmp [rbp+s1], 0"], [8, "jz short loc_43608A"], [9, "mov rax, [rbp+s1]"], [10, "mov esi, offset off_451B50"], [11, "mov rdi, rax"], [12, "call _strcmp"], [13, "test eax, eax"], [14, "jnz short loc_43608A"], [15, "mov eax, 1"], [16, "jmp short loc_43608F"], [17, "mov eax, 0"], [18, "and eax, 1"], [19, "mov rdx, [rbp+var_8]"], [20, "sub rdx, fs:28h"], [21, "jz short locret_4360A6"], [22, "call ___stack_chk_fail"], [23, "leave"], [24, "retn"]], "data_dep": [[5, 4], [7, 3], [8, 7], [9, 3], [11, 9], [13, 12], [14, 13], [18, 17], [18, 15], [19, 5], [20, 19], [21, 20], [24, 18]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da_cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.jsonl.gz", "strip_func_name": "sub_43604C", "query": "\n\n\n_BOOL8 __fastcall sub_43604C(const char *a1)\n{\nreturn a1 && !strcmp(a1, off_451B50);\n}\n\n\n\nQ:[a1,sub_43604C,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fmt', 'sub_43604C': 'qed_fmt_is_raw'}"}
DrawLayout
f8d22cca63ba08634a4b40ef86166921bf41bbe3f1c0cc3af98f7806a283ba43
cyring
xfreq
NA
void DrawLayout(uARG *A, int G) { switch(G) { case MAIN: { int edline=_IS_MDI_ ? A->L.Axes[G].Segment[1].y2 + Footer_Height(G) + 1 : A->W[G].height; const int KeyStop=MAIN_TEXT_WIDTH - 8; XPoint Origin= { .x=0, .y=edline - 1 }; if(A->L.Input.KeyInsert > KeyStop) Origin.x=(KeyStop * One_Char_Width(G)) + Quarter_Char_Width(G); else Origin.x=(A->L.Input.KeyInsert * One_Char_Width(G)) + Quarter_Char_Width(G); // Draw the buffer if it is not empty. if(A->L.Input.KeyLength > 0) { XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_PROMPT].RGB); if(A->L.Input.KeyInsert > KeyStop) { const int KeyShift=A->L.Input.KeyInsert - KeyStop; XDrawImageString(A->display, A->W[G].pixmap.F, A->W[G].gc, Quarter_Char_Width(G), edline - Half_Char_Height(G), &A->L.Input.KeyBuffer[KeyShift], KeyStop); } else XDrawImageString(A->display, A->W[G].pixmap.F, A->W[G].gc, Quarter_Char_Width(G), edline - Half_Char_Height(G), &A->L.Input.KeyBuffer[0], MIN(A->L.Input.KeyLength, KeyStop)); } DrawCursor(A, G, &Origin); } break; case CORES: { char str[TASK_COMM_LEN]={0}; int cpu=0; for(cpu=0; cpu < A->SHM->P.CPU; cpu++) if(A->SHM->C[cpu].T.Offline != TRUE) { // Select a color based ratio. const struct { unsigned long int Bg, Fg; } Bar[10] = { {A->L.Colors[COLOR_INIT_VALUE].RGB, A->L.Colors[COLOR_DYNAMIC].RGB}, {A->L.Colors[COLOR_LOW_VALUE].RGB, A->L.Colors[BACKGROUND_CORES].RGB}, {A->L.Colors[COLOR_MED_VALUE].RGB, A->L.Colors[BACKGROUND_CORES].RGB}, {A->L.Colors[COLOR_MED_VALUE].RGB, A->L.Colors[BACKGROUND_CORES].RGB}, {A->L.Colors[COLOR_MED_VALUE].RGB, A->L.Colors[BACKGROUND_CORES].RGB}, {A->L.Colors[COLOR_MED_VALUE].RGB, A->L.Colors[BACKGROUND_CORES].RGB}, {A->L.Colors[COLOR_MED_VALUE].RGB, A->L.Colors[BACKGROUND_CORES].RGB}, {A->L.Colors[COLOR_MED_VALUE].RGB, A->L.Colors[BACKGROUND_CORES].RGB}, {A->L.Colors[COLOR_HIGH_VALUE].RGB, A->L.Colors[BACKGROUND_CORES].RGB}, {A->L.Colors[COLOR_HIGH_VALUE].RGB, A->L.Colors[BACKGROUND_CORES].RGB}, }; unsigned int i=0; for(i=0; i < 9; i++) if(A->SHM->P.Boost[i] != 0) if(!(A->SHM->C[cpu].RelativeRatio > A->SHM->P.Boost[i])) break; // Draw the Core frequency. XSetForeground(A->display, A->W[G].gc, Bar[i].Bg); if(A->L.Play.fillGraphics) XFillRectangle( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * 3, 3 + ( One_Char_Height(G) * (cpu + 1) ), (A->W[G].extents.overall.width * A->SHM->C[cpu].RelativeRatio) / CORES_TEXT_WIDTH, One_Char_Height(G) - 3); else XDrawRectangle( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * 3, 3 + ( One_Char_Height(G) * (cpu + 1) ), (A->W[G].extents.overall.width * A->SHM->C[cpu].RelativeRatio) / CORES_TEXT_WIDTH, One_Char_Height(G) - 3); // For each Core, display its frequency, C-STATE & ratio. if(A->L.Play.freqHertz && (A->SHM->C[cpu].RelativeRatio >= 5.0f) ) { sprintf(str, CORE_FREQ, A->SHM->C[cpu].RelativeFreq); if(A->L.Play.fillGraphics) XSetForeground(A->display, A->W[G].gc, Bar[i].Fg); else XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * 5, One_Char_Height(G) * (cpu + 1 + 1), str, strlen(str) ); } if(A->L.Play.showCycles) { if(!A->L.Play.showIPS && !A->L.Play.showIPC && !A->L.Play.showCPI) { useconds_t LoopTime=IDLE_BASE_USEC * A->SHM->P.IdleTime; sprintf(str, CORE_DELTA, A->SHM->C[cpu].Delta.INST / LoopTime, A->SHM->C[cpu].Delta.C0.UCC / LoopTime, A->SHM->C[cpu].Delta.C0.URC / LoopTime, (A->SHM->C[cpu].Delta.C1+A->SHM->C[cpu].Delta.C3+A->SHM->C[cpu].Delta.C6+A->SHM->C[cpu].Delta.C7) / LoopTime, A->SHM->C[cpu].Delta.TSC / LoopTime); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * 13, One_Char_Height(G) * (cpu + 1 + 1), str, strlen(str) ); } } else { if(A->SHM->S.Monitor) { if(!A->L.Play.showRatios) { if(A->SHM->C[cpu].Task[0].pid > 0) { sprintf(str, TASK_PID_FMT, A->SHM->C[cpu].Task[0].pid); int l=strlen(str); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_GRAPH1].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, A->W[G].width - (One_Char_Width(G) * l), One_Char_Height(G) * (cpu + 1 + 1), str, l ); } } if(!A->L.Play.showIPS && !A->L.Play.showIPC && !A->L.Play.showCPI) { XRectangle R[]= { { .x=One_Char_Width(G) * 13, .y=Header_Height(G), .width=One_Char_Width(G) * ((CORES_TEXT_WIDTH - 7) << 1), .height=One_Char_Height(G) * CORES_TEXT_HEIGHT } }; XSetClipRectangles(A->display, A->W[G].gc, 0, 0, R, 1, Unsorted); int depth=0, L=(CORES_TEXT_WIDTH << 1); do { int l=(A->SHM->C[cpu].Task[depth].pid == 0) ? 0 : strlen(A->SHM->C[cpu].Task[depth].comm); L-=((l > 0) ? (l + 2) : 0); if(l > 0) { XSetForeground( A->display, A->W[G].gc, (depth == 0) ? A->L.Colors[COLOR_PULSE].RGB : !strcasecmp(A->SHM->C[cpu].Task[depth].state, "R") ? A->L.Colors[COLOR_GRAPH1].RGB : A->L.Colors[COLOR_LABEL].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * L, One_Char_Height(G) * (cpu + 1 + 1), A->SHM->C[cpu].Task[depth].comm, l ); } depth++; } while(depth < TASK_PIPE_DEPTH) ; XSetClipMask(A->display, A->W[G].gc, None); } } else if(!A->L.Play.showRatios && !A->L.Play.showIPS && !A->L.Play.showIPC && !A->L.Play.showCPI) { sprintf(str, CORE_CYCLES, A->SHM->C[cpu].Cycles.C0[1].UCC, A->SHM->C[cpu].Cycles.C0[1].URC); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * 13, One_Char_Height(G) * (cpu + 1 + 1), str, strlen(str) ); } } if(A->L.Play.showIPS) { sprintf(str, CORE_IPS, A->SHM->C[cpu].IPS); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * 15, One_Char_Height(G) * (cpu + 1 + 1), str, strlen(str) ); } if(A->L.Play.showIPC) { sprintf(str, CORE_IPS, A->SHM->C[cpu].IPC); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * 23, One_Char_Height(G) * (cpu + 1 + 1), str, strlen(str) ); } if(A->L.Play.showCPI) { sprintf(str, CORE_IPS, A->SHM->C[cpu].CPI); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * 31, One_Char_Height(G) * (cpu + 1 + 1), str, strlen(str) ); } if(A->L.Play.showRatios) { sprintf(str, CORE_RATIO, A->SHM->C[cpu].RelativeRatio); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, Twice_Char_Width(G) * CORES_TEXT_WIDTH, One_Char_Height(G) * (cpu + 1 + 1), str, strlen(str) ); } } else { XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_LABEL].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, Twice_Char_Width(G) * CORES_TEXT_WIDTH, One_Char_Height(G) * (cpu + 1 + 1), "OFF", 3 ); } } break; case CSTATES: { char *str=calloc(80, 1); int cpu=0; for(cpu=0; cpu < A->SHM->P.CPU; cpu++) if(A->SHM->C[cpu].T.Offline != TRUE) { // Prepare the C0 chart. A->L.Usage.C0[cpu].x=Half_Char_Width(G) + ((cpu * CSTATES_TEXT_SPACING) * One_Half_Char_Width(G)); A->L.Usage.C0[cpu].y=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * (1 - A->SHM->C[cpu].State.C0); A->L.Usage.C0[cpu].width=(One_Char_Width(G) * CSTATES_TEXT_SPACING) / 5; A->L.Usage.C0[cpu].height=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * A->SHM->C[cpu].State.C0; // Prepare the C1 chart. A->L.Usage.C1[cpu].x=Half_Char_Width(G) + A->L.Usage.C0[cpu].x + A->L.Usage.C0[cpu].width; A->L.Usage.C1[cpu].y=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * (1 - A->SHM->C[cpu].State.C1); A->L.Usage.C1[cpu].width=(One_Char_Width(G) * CSTATES_TEXT_SPACING) / 5; A->L.Usage.C1[cpu].height=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * A->SHM->C[cpu].State.C1; // Prepare the C3 chart. A->L.Usage.C3[cpu].x=Half_Char_Width(G) + A->L.Usage.C1[cpu].x + A->L.Usage.C1[cpu].width; A->L.Usage.C3[cpu].y=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * (1 - A->SHM->C[cpu].State.C3); A->L.Usage.C3[cpu].width=(One_Char_Width(G) * CSTATES_TEXT_SPACING) / 5; A->L.Usage.C3[cpu].height=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * A->SHM->C[cpu].State.C3; // Prepare the C6 chart. A->L.Usage.C6[cpu].x=Half_Char_Width(G) + A->L.Usage.C3[cpu].x + A->L.Usage.C3[cpu].width; A->L.Usage.C6[cpu].y=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * (1 - A->SHM->C[cpu].State.C6); A->L.Usage.C6[cpu].width=(One_Char_Width(G) * CSTATES_TEXT_SPACING) / 5; A->L.Usage.C6[cpu].height=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * A->SHM->C[cpu].State.C6; // Prepare the C7 chart. A->L.Usage.C7[cpu].x=Half_Char_Width(G) + A->L.Usage.C6[cpu].x + A->L.Usage.C6[cpu].width; A->L.Usage.C7[cpu].y=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * (1 - A->SHM->C[cpu].State.C7); A->L.Usage.C7[cpu].width=(One_Char_Width(G) * CSTATES_TEXT_SPACING) / 5; A->L.Usage.C7[cpu].height=One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT - 1)) * A->SHM->C[cpu].State.C7; } // Display the C-State averages. XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); sprintf(str, CSTATES_AVERAGE, 100.f * A->SHM->P.Avg.Turbo, 100.f * A->SHM->P.Avg.C0, 100.f * A->SHM->P.Avg.C1, 100.f * A->SHM->P.Avg.C3, 100.f * A->SHM->P.Avg.C6, 100.f * A->SHM->P.Avg.C7); XDrawString(A->display, A->W[G].pixmap.F, A->W[G].gc, 6*One_Char_Width(G), One_Char_Height(G) + (One_Char_Height(G) * (CSTATES_TEXT_HEIGHT + 1)), str, strlen(str) ); // Draw C0 to C7 states. XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_GRAPH1].RGB); XFillRectangles(A->display, A->W[G].pixmap.F, A->W[G].gc, A->L.Usage.C0, A->SHM->P.CPU); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_GRAPH2].RGB); XFillRectangles(A->display, A->W[G].pixmap.F, A->W[G].gc, A->L.Usage.C1, A->SHM->P.CPU); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_GRAPH3].RGB); XFillRectangles(A->display, A->W[G].pixmap.F, A->W[G].gc, A->L.Usage.C3, A->SHM->P.CPU); XFillRectangles(A->display, A->W[G].pixmap.F, A->W[G].gc, A->L.Usage.C6, A->SHM->P.CPU); XFillRectangles(A->display, A->W[G].pixmap.F, A->W[G].gc, A->L.Usage.C7, A->SHM->P.CPU); if(A->L.Play.cStatePercent) for(cpu=0; cpu < A->SHM->P.CPU; cpu++) if(A->SHM->C[cpu].T.Offline != TRUE) { XSetForeground(A->display, A->W[G].gc, A->W[G].foreground); sprintf(str, CORE_NUM, cpu); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, 0, One_Char_Height(G) * (cpu + 1 + 1), str, strlen(str) ); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); sprintf(str, CSTATES_PERCENT, 100.f * A->SHM->C[cpu].State.Turbo, 100.f * A->SHM->C[cpu].State.C0, 100.f * A->SHM->C[cpu].State.C1, 100.f * A->SHM->C[cpu].State.C3, 100.f * A->SHM->C[cpu].State.C6, 100.f * A->SHM->C[cpu].State.C7); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, 5*One_Char_Width(G), One_Char_Height(G) * (cpu + 1 + 1), str, strlen(str) ); } free(str); } break; case TEMPS: { char str[8]={0}; // Display the Core temperature. int cpu=0; for(cpu=0; cpu < A->SHM->P.CPU; cpu++) if(A->SHM->C[cpu].T.Offline != TRUE) { // Update & draw the temperature histogram per logical core. int i=0; XSegment *U=&A->L.Temps[cpu].Segment[i], *V=&A->L.Temps[cpu].Segment[i + 1]; for(i=0; i < (TEMPS_TEXT_WIDTH - 1); i++, U=&A->L.Temps[cpu].Segment[i], V=&A->L.Temps[cpu].Segment[i + 1]) { U->x1=V->x1 - One_Char_Width(G); U->x2=V->x2 - One_Char_Width(G); U->y1=V->y1; U->y2=V->y2; } V=&A->L.Temps[cpu].Segment[i - 1]; U->x1=(TEMPS_TEXT_WIDTH + 2) * One_Char_Width(G); U->y1=V->y2; U->x2=U->x1 + One_Char_Width(G); U->y2=(A->W[G].height * A->SHM->C[cpu].ThermStat.DTS) / A->SHM->C[cpu].TjMax.Target; XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_GRAPH1].RGB | ROL32(0x28104080, cpu) | ROR32(0x01010011, A->SHM->C[cpu].T.APIC_ID) | ROL32(0x80808080, A->SHM->C[cpu].T.Core_ID) | ROR32(0x01010100, A->SHM->C[cpu].T.Thread_ID)); if(A->L.Play.showTemps[cpu] == TRUE) XDrawSegments(A->display, A->W[G].pixmap.F, A->W[G].gc, A->L.Temps[cpu].Segment, A->L.Temps[cpu].N); sprintf(str, TEMPERATURE, A->SHM->C[cpu].TjMax.Target - A->SHM->C[cpu].ThermStat.DTS); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, (One_Char_Width(G) * 5) + Quarter_Char_Width(G) + (cpu << 1) * Twice_Char_Width(G), One_Char_Height(G) * (TEMPS_TEXT_HEIGHT + 1 + 1), str, strlen(str)); } else // Is the Core disabled ? { XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_LABEL].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, (One_Char_Width(G) * 5) + Quarter_Char_Width(G) + (cpu << 1) * Twice_Char_Width(G), One_Char_Height(G) * (TEMPS_TEXT_HEIGHT + 1 + 1), "OFF", 3); } // Show Temperature Thresholds /* XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_GRAPH2].RGB); int Threshold[2]={ (( (TEMPS_TEXT_HEIGHT * A->SHM->C[A->SHM->P.Hot].ThermIntr.Threshold1) / A->SHM->C[A->SHM->P.Hot].TjMax.Target) + 2) * One_Char_Height(G), (( (TEMPS_TEXT_HEIGHT * A->SHM->C[A->SHM->P.Hot].ThermIntr.Threshold2) / A->SHM->C[A->SHM->P.Hot].TjMax.Target) + 2) * One_Char_Height(G) }; XDrawLine( A->display, A->W[G].pixmap.F, A->W[G].gc, Twice_Char_Width(G), Threshold[0], U->x2, Threshold[1]); XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_DYNAMIC].RGB); XDrawString(A->display, A->W[G].pixmap.F, A->W[G].gc, One_Half_Char_Width(G) << 2, Threshold[0], "T#1", 3); XDrawString(A->display, A->W[G].pixmap.F, A->W[G].gc, TEMPS_TEXT_WIDTH * One_Char_Width(G), Threshold[1], "T#2", 3); */ // Display the hottest temperature between all Cores, and the coldest since start up. int HotValue=A->SHM->C[A->SHM->P.Hot].TjMax.Target - A->SHM->C[A->SHM->P.Hot].ThermStat.DTS; if(HotValue <= LOW_TEMP_VALUE) XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_INIT_VALUE].RGB); if(HotValue > LOW_TEMP_VALUE) XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_LOW_VALUE].RGB); if(HotValue > MED_TEMP_VALUE) XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_MED_VALUE].RGB); if(HotValue >= HIGH_TEMP_VALUE) XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_HIGH_VALUE].RGB); sprintf(str, TEMPERATURE, HotValue); XDrawImageString(A->display, A->W[G].pixmap.F, A->W[G].gc, ((TEMPS_TEXT_WIDTH + 2) * One_Char_Width(G)) + Half_Char_Width(G), (A->W[G].height * A->SHM->C[A->SHM->P.Hot].ThermStat.DTS) / A->SHM->C[A->SHM->P.Hot].TjMax.Target, str, 3); int ColdValue=A->SHM->C[A->SHM->P.Hot].TjMax.Target - A->SHM->P.Cold, yCold=(A->W[G].height * A->SHM->P.Cold) / A->SHM->C[A->SHM->P.Hot].TjMax.Target; if(ColdValue <= LOW_TEMP_VALUE) XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_INIT_VALUE].RGB); if(ColdValue > LOW_TEMP_VALUE) XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_LOW_VALUE].RGB); if(ColdValue > MED_TEMP_VALUE) XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_MED_VALUE].RGB); if(ColdValue >= HIGH_TEMP_VALUE) XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_HIGH_VALUE].RGB); sprintf(str, TEMPERATURE, ColdValue); XDrawImageString(A->display, A->W[G].pixmap.F, A->W[G].gc, 0, yCold, str, 3); } break; case SYSINFO: // Display the Wallboard. if(A->L.Play.wallboard) { // Scroll the Wallboard. if(A->L.WB.Scroll < A->L.WB.Length) A->L.WB.Scroll++; else A->L.WB.Scroll=0; int padding=SYSINFO_TEXT_WIDTH - strlen(A->L.Page[G].Title) - WALLBOARD_PADDING; XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_PRINT].RGB); XDrawString( A->display, A->W[G].pixmap.F, A->W[G].gc, One_Char_Width(G) * (strlen(A->L.Page[G].Title) + 2), One_Char_Height(G), &A->L.WB.String[A->L.WB.Scroll], padding); } break; case DUMP: // Dump a bunch of Registers with their Address, Name & Value. { // Dump the built in array then add the user specified registers. int Rows=DUMP_ARRAY_DIMENSION, row=0; char *items=calloc(Rows, 128); char *mask=calloc(128, 1), *str=calloc(128, 1); char *binStr=calloc(DUMP_BIN64_STR + 1, 1); for(row=0; row < Rows; row++) { DumpRegister(A->SHM->D.Array[row].Value, NULL, binStr); sprintf(mask, REG_FORMAT_BOL, A->SHM->D.Array[row].Addr, A->SHM->D.Array[row].Name, DUMP_REG_ALIGN - strlen(A->SHM->D.Array[row].Name)); sprintf(str, mask, 0x20); strcat(items, str); int H=0; for(H=0; H < 15; H++) { strncat(items, &binStr[H << 2], 4); strcat(items, " "); }; strncat(items, &binStr[H << 2], 4); sprintf(str, REG_FORMAT_EOL, A->SHM->D.Array[row].Core); strcat(items, str); } free(binStr); free(str); free(mask); /* if(A->L.Page[G].Pageable) { // Clear the scrolling area. XSetForeground(A->display, A->W[G].gc, A->W[G].background); XFillRectangle(A->display, A->L.Page[G].Pixmap, A->W[G].gc, 0, 0, GetHFrame(G) * One_Char_Width(G), GetVFrame(G) * (One_Char_Height(G) + Quarter_Char_Height(G))); // Draw the Registers in a scrolling area. XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_PRINT].RGB); A->L.Page[G].Listing=XPrint(A->display, A->L.Page[G].Pixmap, A->W[G].gc, 4 * One_Char_Width(G), One_Char_Height(G) + Quarter_Char_Height(G), items, One_Char_Height(G) + Quarter_Char_Height(G)); } else */ { // Draw the Registers in a fixed height area. XSetForeground(A->display, A->W[G].gc, A->L.Colors[COLOR_PRINT].RGB); A->L.Page[G].Listing=XPrint(A->display, A->W[G].pixmap.F, A->W[G].gc, Half_Char_Width(G), Header_Height(G) + One_Half_Char_Height(G), items, One_Char_Height(G) + Quarter_Char_Height(G)); } free(items); } break; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4167AC", "function_addr": 4286380, "binary_name": "f8d22cca63ba08634a4b40ef86166921bf41bbe3f1c0cc3af98f7806a283ba43.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r13"], [3, "push r12"], [4, "push rbx"], [5, "sub rsp, 178h"], [6, "mov [rbp+var_188], rdi"], [7, "mov [rbp+var_18C], esi"], [8, "cmp [rbp+var_18C], 5"], [9, "ja def_4167E4"], [10, "mov eax, [rbp+var_18C]"], [11, "mov rax, ds:jpt_4167E4[rax*8]"], [12, "jmp rax"], [13, "mov rax, [rbp+var_188]"], [14, "mov eax, [rax+1088h]"], [15, "test eax, eax"], [16, "jz loc_416884"], [17, "mov rdx, [rbp+var_188]"], [18, "mov eax, [rbp+var_18C]"], [19, "cdqe"], [20, "add rax, 65h "], [21, "shl rax, 4"], [22, "add rax, rdx"], [23, "add rax, 10h"], [24, "mov rax, [rax]"], [25, "add rax, 8"], [26, "movzx eax, word ptr [rax+6]"], [27, "movsx ecx, ax"], [28, "mov rsi, [rbp+var_188]"], [29, "mov eax, [rbp+var_18C]"], [30, "movsxd rdx, eax"], [31, "mov rax, rdx"], [32, "shl rax, 4"], [33, "add rax, rdx"], [34, "shl rax, 3"], [35, "add rax, rsi"], [36, "add rax, 12Ch"], [37, "mov esi, [rax]"], [38, "mov rdi, [rbp+var_188]"], [39, "mov eax, [rbp+var_18C]"], [40, "movsxd rdx, eax"], [41, "mov rax, rdx"], [42, "shl rax, 4"], [43, "add rax, rdx"], [44, "shl rax, 3"], [45, "add rax, rdi"], [46, "add rax, 12Ch"], [47, "mov eax, [rax]"], [48, "sar eax, 1"], [49, "add eax, esi"], [50, "add eax, ecx"], [51, "add eax, 1"], [52, "jmp short loc_4168AD"], [53, "mov rcx, [rbp+var_188]"], [54, "mov eax, [rbp+var_18C]"], [55, "movsxd rdx, eax"], [56, "mov rax, rdx"], [57, "shl rax, 4"], [58, "add rax, rdx"], [59, "shl rax, 3"], [60, "add rax, rcx"], [61, "add rax, 0FCh"], [62, "mov eax, [rax]"], [63, "mov [rbp+var_A8], eax"], [64, "mov rax, [rbp+var_188]"], [65, "mov eax, [rax+414h]"], [66, "mov edx, 54h "], [67, "cmp eax, 54h "], [68, "cmovl eax, edx"], [69, "sub eax, 8"], [70, "mov [rbp+var_AC], eax"], [71, "mov [rbp+var_B4], 0"], [72, "mov eax, [rbp+var_A8]"], [73, "sub eax, 1"], [74, "mov [rbp+var_B2], ax"], [75, "mov rax, [rbp+var_188]"], [76, "mov eax, [rax+6DCh]"], [77, "cmp [rbp+var_AC], eax"], [78, "jge short loc_41696F"], [79, "mov rcx, [rbp+var_188]"], [80, "mov eax, [rbp+var_18C]"], [81, "movsxd rdx, eax"], [82, "mov rax, rdx"], [83, "shl rax, 4"], [84, "add rax, rdx"], [85, "shl rax, 3"], [86, "add rax, rcx"], [87, "add rax, 128h"], [88, "mov eax, [rax]"], [89, "mov edx, eax"], [90, "mov eax, [rbp+var_AC]"], [91, "mov ecx, edx"], [92, "imul ecx, eax"], [93, "mov rsi, [rbp+var_188]"], [94, "mov eax, [rbp+var_18C]"], [95, "movsxd rdx, eax"], [96, "mov rax, rdx"], [97, "shl rax, 4"], [98, "add rax, rdx"], [99, "shl rax, 3"], [100, "add rax, rsi"], [101, "add rax, 128h"], [102, "mov eax, [rax]"], [103, "sar eax, 2"], [104, "add eax, ecx"], [105, "mov [rbp+var_B4], ax"], [106, "jmp short loc_4169E1"], [107, "mov rax, [rbp+var_188]"], [108, "mov eax, [rax+6DCh]"], [109, "mov esi, eax"], [110, "mov rcx, [rbp+var_188]"], [111, "mov eax, [rbp+var_18C]"], [112, "movsxd rdx, eax"], [113, "mov rax, rdx"], [114, "shl rax, 4"], [115, "add rax, rdx"], [116, "shl rax, 3"], [117, "add rax, rcx"], [118, "add rax, 128h"], [119, "mov eax, [rax]"], [120, "imul esi, eax"], [121, "mov ecx, esi"], [122, "mov rsi, [rbp+var_188]"], [123, "mov eax, [rbp+var_18C]"], [124, "movsxd rdx, eax"], [125, "mov rax, rdx"], [126, "shl rax, 4"], [127, "add rax, rdx"], [128, "shl rax, 3"], [129, "add rax, rsi"], [130, "add rax, 128h"], [131, "mov eax, [rax]"], [132, "sar eax, 2"], [133, "add eax, ecx"], [134, "mov [rbp+var_B4], ax"], [135, "mov rax, [rbp+var_188]"], [136, "mov eax, [rax+6D8h]"], [137, "test eax, eax"], [138, "jle loc_416C77"], [139, "mov rax, [rbp+var_188]"], [140, "mov rdx, [rax+0EC0h]"], [141, "mov rsi, [rbp+var_188]"], [142, "mov eax, [rbp+var_18C]"], [143, "movsxd rcx, eax"], [144, "mov rax, rcx"], [145, "shl rax, 4"], [146, "add rax, rcx"], [147, "shl rax, 3"], [148, "add rax, rsi"], [149, "add rax, 0E8h"], [150, "mov rcx, [rax]"], [151, "mov rax, [rbp+var_188]"], [152, "mov rax, [rax+18h]"], [153, "mov rsi, rcx"], [154, "mov rdi, rax"], [155, "call _XSetForeground"], [156, "mov rax, [rbp+var_188]"], [157, "mov eax, [rax+6DCh]"], [158, "cmp [rbp+var_AC], eax"], [159, "jge loc_416B71"], [160, "mov rax, [rbp+var_188]"], [161, "mov eax, [rax+6DCh]"], [162, "sub eax, [rbp+var_AC]"], [163, "mov [rbp+var_B0], eax"], [164, "mov rax, [rbp+var_188]"], [165, "mov rdx, [rax+6D0h]"], [166, "mov eax, [rbp+var_B0]"], [167, "cdqe"], [168, "lea r9, [rdx+rax]"], [169, "mov rcx, [rbp+var_188]"], [170, "mov eax, [rbp+var_18C]"], [171, "movsxd rdx, eax"], [172, "mov rax, rdx"], [173, "shl rax, 4"], [174, "add rax, rdx"], [175, "shl rax, 3"], [176, "add rax, rcx"], [177, "add rax, 12Ch"], [178, "mov eax, [rax]"], [179, "sar eax, 1"], [180, "mov edx, eax"], [181, "mov eax, [rbp+var_A8]"], [182, "sub eax, edx"], [183, "mov r8d, eax"], [184, "mov rcx, [rbp+var_188]"], [185, "mov eax, [rbp+var_18C]"], [186, "movsxd rdx, eax"], [187, "mov rax, rdx"], [188, "shl rax, 4"], [189, "add rax, rdx"], [190, "shl rax, 3"], [191, "add rax, rcx"], [192, "add rax, 128h"], [193, "mov eax, [rax]"], [194, "sar eax, 2"], [195, "mov ecx, eax"], [196, "mov rsi, [rbp+var_188]"], [197, "mov eax, [rbp+var_18C]"], [198, "movsxd rdx, eax"], [199, "mov rax, rdx"], [200, "shl rax, 4"], [201, "add rax, rdx"], [202, "shl rax, 3"], [203, "add rax, rsi"], [204, "add rax, 0E8h"], [205, "mov rdx, [rax]"], [206, "mov rdi, [rbp+var_188]"], [207, "mov eax, [rbp+var_18C]"], [208, "movsxd rsi, eax"], [209, "mov rax, rsi"], [210, "shl rax, 4"], [211, "add rax, rsi"], [212, "shl rax, 3"], [213, "add rax, rdi"], [214, "add rax, 0D8h"], [215, "mov rsi, [rax]"], [216, "mov rax, [rbp+var_188]"], [217, "mov rax, [rax+18h]"], [218, "sub rsp, 8"], [219, "mov edi, [rbp+var_AC]"], [220, "push rdi"], [221, "mov rdi, rax"], [222, "call _XDrawImageString"], [223, "add rsp, 10h"], [224, "jmp loc_416C77"], [225, "mov rax, [rbp+var_188]"], [226, "mov eax, [rax+6D8h]"], [227, "cmp [rbp+var_AC], eax"], [228, "cmovle eax, [rbp+var_AC]"], [229, "mov edi, eax"], [230, "mov rax, [rbp+var_188]"], [231, "mov r8, [rax+6D0h]"], [232, "mov rcx, [rbp+var_188]"], [233, "mov eax, [rbp+var_18C]"], [234, "movsxd rdx, eax"], [235, "mov rax, rdx"], [236, "shl rax, 4"], [237, "add rax, rdx"], [238, "shl rax, 3"], [239, "add rax, rcx"], [240, "add rax, 12Ch"], [241, "mov eax, [rax]"], [242, "sar eax, 1"], [243, "mov edx, eax"], [244, "mov eax, [rbp+var_A8]"], [245, "sub eax, edx"], [246, "mov r10d, eax"], [247, "mov rcx, [rbp+var_188]"], [248, "mov eax, [rbp+var_18C]"], [249, "movsxd rdx, eax"], [250, "mov rax, rdx"], [251, "shl rax, 4"], [252, "add rax, rdx"], [253, "shl rax, 3"], [254, "add rax, rcx"], [255, "add rax, 128h"], [256, "mov eax, [rax]"], [257, "sar eax, 2"], [258, "mov ecx, eax"], [259, "mov rsi, [rbp+var_188]"], [260, "mov eax, [rbp+var_18C]"], [261, "movsxd rdx, eax"], [262, "mov rax, rdx"], [263, "shl rax, 4"], [264, "add rax, rdx"], [265, "shl rax, 3"], [266, "add rax, rsi"], [267, "add rax, 0E8h"], [268, "mov rdx, [rax]"], [269, "mov r9, [rbp+var_188]"], [270, "mov eax, [rbp+var_18C]"], [271, "movsxd rsi, eax"], [272, "mov rax, rsi"], [273, "shl rax, 4"], [274, "add rax, rsi"], [275, "shl rax, 3"], [276, "add rax, r9"], [277, "add rax, 0D8h"], [278, "mov rsi, [rax]"], [279, "mov rax, [rbp+var_188]"], [280, "mov rax, [rax+18h]"], [281, "sub rsp, 8"], [282, "push rdi"], [283, "mov r9, r8"], [284, "mov r8d, r10d"], [285, "mov rdi, rax"], [286, "call _XDrawImageString"], [287, "add rsp, 10h"], [288, "lea rdx, [rbp+var_B4]"], [289, "mov ecx, [rbp+var_18C]"], [290, "mov rax, [rbp+var_188]"], [291, "mov esi, ecx"], [292, "mov rdi, rax"], [293, "call sub_416508"], [294, "jmp def_4167E4"], [295, "mov qword ptr [rbp+s], 0"], [296, "mov [rbp+var_C8], 0"], [297, "mov [rbp+var_24], 0"], [298, "mov [rbp+var_24], 0"], [299, "jmp loc_418A54"], [300, "mov rax, [rbp+var_188]"], [301, "mov rdx, [rax+8]"], [302, "mov eax, [rbp+var_24]"], [303, "cdqe"], [304, "imul rax, 788h"], [305, "add rax, rdx"], [306, "add rax, 770h"], [307, "mov eax, [rax]"], [308, "cmp eax, 1"], [309, "jz loc_4188F9"], [310, "mov rax, [rbp+var_188]"], [311, "mov rax, [rax+0F50h]"], [312, "mov [rbp+var_180], rax"], [313, "mov rax, [rbp+var_188]"], [314, "mov rax, [rax+0EF0h]"], [315, "mov [rbp+var_178], rax"], [316, "mov rax, [rbp+var_188]"], [317, "mov rax, [rax+0F68h]"], [318, "mov [rbp+var_170], rax"], [319, "mov rax, [rbp+var_188]"], [320, "mov rax, [rax+0D88h]"], [321, "mov [rbp+var_168], rax"], [322, "mov rax, [rbp+var_188]"], [323, "mov rax, [rax+0F80h]"], [324, "mov [rbp+var_160], rax"], [325, "mov rax, [rbp+var_188]"], [326, "mov rax, [rax+0D88h]"], [327, "mov [rbp+var_158], rax"], [328, "mov rax, [rbp+var_188]"], [329, "mov rax, [rax+0F80h]"], [330, "mov [rbp+var_150], rax"], [331, "mov rax, [rbp+var_188]"], [332, "mov rax, [rax+0D88h]"], [333, "mov [rbp+var_148], rax"], [334, "mov rax, [rbp+var_188]"], [335, "mov rax, [rax+0F80h]"], [336, "mov [rbp+var_140], rax"], [337, "mov rax, [rbp+var_188]"], [338, "mov rax, [rax+0D88h]"], [339, "mov [rbp+var_138], rax"], [340, "mov rax, [rbp+var_188]"], [341, "mov rax, [rax+0F80h]"], [342, "mov [rbp+var_130], rax"], [343, "mov rax, [rbp+var_188]"], [344, "mov rax, [rax+0D88h]"], [345, "mov [rbp+var_128], rax"], [346, "mov rax, [rbp+var_188]"], [347, "mov rax, [rax+0F80h]"], [348, "mov [rbp+var_120], rax"], [349, "mov rax, [rbp+var_188]"], [350, "mov rax, [rax+0D88h]"], [351, "mov [rbp+var_118], rax"], [352, "mov rax, [rbp+var_188]"], [353, "mov rax, [rax+0F80h]"], [354, "mov [rbp+var_110], rax"], [355, "mov rax, [rbp+var_188]"], [356, "mov rax, [rax+0D88h]"], [357, "mov [rbp+var_108], rax"], [358, "mov rax, [rbp+var_188]"], [359, "mov rax, [rax+0F98h]"], [360, "mov [rbp+var_100], rax"], [361, "mov rax, [rbp+var_188]"], [362, "mov rax, [rax+0D88h]"], [363, "mov [rbp+var_F8], rax"], [364, "mov rax, [rbp+var_188]"], [365, "mov rax, [rax+0F98h]"], [366, "mov [rbp+var_F0], rax"], [367, "mov rax, [rbp+var_188]"], [368, "mov rax, [rax+0D88h]"], [369, "mov [rbp+var_E8], rax"], [370, "mov [rbp+var_28], 0"], [371, "mov [rbp+var_28], 0"], [372, "jmp loc_416F36"], [373, "mov rax, [rbp+var_188]"], [374, "mov rax, [rax+8]"], [375, "mov edx, [rbp+var_28]"], [376, "add rdx, 58h "], [377, "mov eax, [rax+rdx*4+10h]"], [378, "test eax, eax"], [379, "jz short loc_416F32"], [380, "mov rax, [rbp+var_188]"], [381, "mov rdx, [rax+8]"], [382, "mov eax, [rbp+var_24]"], [383, "cdqe"], [384, "imul rax, 788h"], [385, "add rax, rdx"], [386, "add rax, 8D8h"], [387, "movsd xmm1, qword ptr [rax]"], [388, "mov rax, [rbp+var_188]"], [389, "mov rax, [rax+8]"], [390, "mov edx, [rbp+var_28]"], [391, "add rdx, 58h "], [392, "mov eax, [rax+rdx*4+10h]"], [393, "mov eax, eax"], [394, "test rax, rax"], [395, "js short loc_416F0B"], [396, "pxor xmm0, xmm0"], [397, "cvtsi2sd xmm0, rax"], [398, "jmp short loc_416F24"], [399, "mov rdx, rax"], [400, "shr rdx, 1"], [401, "and eax, 1"], [402, "or rdx, rax"], [403, "pxor xmm0, xmm0"], [404, "cvtsi2sd xmm0, rdx"], [405, "addsd xmm0, xmm0"], [406, "comisd xmm1, xmm0"], [407, "setnbe al"], [408, "xor eax, 1"], [409, "test al, al"], [410, "jnz short loc_416F42"], [411, "add [rbp+var_28], 1"], [412, "cmp [rbp+var_28], 8"], [413, "jbe loc_416EA5"], [414, "jmp short loc_416F43"], [415, "nop"], [416, "mov eax, [rbp+var_28]"], [417, "shl rax, 4"], [418, "lea rbx, [rbp+var_20]"], [419, "add rax, rbx"], [420, "sub rax, 160h"], [421, "mov rdx, [rax]"], [422, "mov rsi, [rbp+var_188]"], [423, "mov eax, [rbp+var_18C]"], [424, "movsxd rcx, eax"], [425, "mov rax, rcx"], [426, "shl rax, 4"], [427, "add rax, rcx"], [428, "shl rax, 3"], [429, "add rax, rsi"], [430, "add rax, 0E8h"], [431, "mov rcx, [rax]"], [432, "mov rax, [rbp+var_188]"], [433, "mov rax, [rax+18h]"], [434, "mov rsi, rcx"], [435, "mov rdi, rax"], [436, "call _XSetForeground"], [437, "mov rax, [rbp+var_188]"], [438, "mov eax, [rax+5C0h]"], [439, "test eax, eax"], [440, "jz loc_4171BE"], [441, "mov rcx, [rbp+var_188]"], [442, "mov eax, [rbp+var_18C]"], [443, "movsxd rdx, eax"], [444, "mov rax, rdx"], [445, "shl rax, 4"], [446, "add rax, rdx"], [447, "shl rax, 3"], [448, "add rax, rcx"], [449, "add rax, 12Ch"], [450, "mov eax, [rax]"], [451, "sub eax, 3"], [452, "mov r8d, eax"], [453, "mov rcx, [rbp+var_188]"], [454, "mov eax, [rbp+var_18C]"], [455, "movsxd rdx, eax"], [456, "mov rax, rdx"], [457, "shl rax, 4"], [458, "add rax, rdx"], [459, "shl rax, 3"], [460, "add rax, rcx"], [461, "add rax, 114h"], [462, "movzx eax, word ptr [rax]"], [463, "cwde"], [464, "pxor xmm1, xmm1"], [465, "cvtsi2sd xmm1, eax"], [466, "mov rax, [rbp+var_188]"], [467, "mov rdx, [rax+8]"], [468, "mov eax, [rbp+var_24]"], [469, "cdqe"], [470, "imul rax, 788h"], [471, "add rax, rdx"], [472, "add rax, 8D8h"], [473, "movsd xmm0, qword ptr [rax]"], [474, "mulsd xmm1, xmm0"], [475, "mov rax, [rbp+var_188]"], [476, "mov rax, [rax+8]"], [477, "mov edx, [rax+194h]"], [478, "mov rax, [rbp+var_188]"], [479, "mov eax, [rax+45Ch]"], [480, "cmp edx, eax"], [481, "jbe short loc_417099"], [482, "mov rax, [rbp+var_188]"], [483, "mov rax, [rax+8]"], [484, "mov eax, [rax+194h]"], [485, "mov eax, eax"], [486, "test rax, rax"], [487, "js short loc_41707E"], [488, "pxor xmm0, xmm0"], [489, "cvtsi2sd xmm0, rax"], [490, "jmp short loc_4170D1"], [491, "mov rdx, rax"], [492, "shr rdx, 1"], [493, "and eax, 1"], [494, "or rdx, rax"], [495, "pxor xmm0, xmm0"], [496, "cvtsi2sd xmm0, rdx"], [497, "addsd xmm0, xmm0"], [498, "jmp short loc_4170D1"], [499, "mov rax, [rbp+var_188]"], [500, "mov eax, [rax+45Ch]"], [501, "mov eax, eax"], [502, "test rax, rax"], [503, "js short loc_4170B8"], [504, "pxor xmm0, xmm0"], [505, "cvtsi2sd xmm0, rax"], [506, "jmp short loc_4170D1"], [507, "mov rdx, rax"], [508, "shr rdx, 1"], [509, "and eax, 1"], [510, "or rdx, rax"], [511, "pxor xmm0, xmm0"], [512, "cvtsi2sd xmm0, rdx"], [513, "addsd xmm0, xmm0"], [514, "divsd xmm1, xmm0"], [515, "cvttsd2si rax, xmm1"], [516, "mov r10d, eax"], [517, "mov rcx, [rbp+var_188]"], [518, "mov eax, [rbp+var_18C]"], [519, "movsxd rdx, eax"], [520, "mov rax, rdx"], [521, "shl rax, 4"], [522, "add rax, rdx"], [523, "shl rax, 3"], [524, "add rax, rcx"], [525, "add rax, 12Ch"], [526, "mov eax, [rax]"], [527, "mov edx, [rbp+var_24]"], [528, "add edx, 1"], [529, "imul eax, edx"], [530, "lea edi, [rax+3]"], [531, "mov rcx, [rbp+var_188]"], [532, "mov eax, [rbp+var_18C]"], [533, "movsxd rdx, eax"], [534, "mov rax, rdx"], [535, "shl rax, 4"], [536, "add rax, rdx"], [537, "shl rax, 3"], [538, "add rax, rcx"], [539, "add rax, 128h"], [540, "mov edx, [rax]"], [541, "mov eax, edx"], [542, "add eax, eax"], [543, "lea ecx, [rax+rdx]"], [544, "mov rsi, [rbp+var_188]"], [545, "mov eax, [rbp+var_18C]"], [546, "movsxd rdx, eax"], [547, "mov rax, rdx"], [548, "shl rax, 4"], [549, "add rax, rdx"], [550, "shl rax, 3"], [551, "add rax, rsi"], [552, "add rax, 0E8h"], [553, "mov rdx, [rax]"], [554, "mov r9, [rbp+var_188]"], [555, "mov eax, [rbp+var_18C]"], [556, "movsxd rsi, eax"], [557, "mov rax, rsi"], [558, "shl rax, 4"], [559, "add rax, rsi"], [560, "shl rax, 3"], [561, "add rax, r9"], [562, "add rax, 0D8h"], [563, "mov rsi, [rax]"], [564, "mov rax, [rbp+var_188]"], [565, "mov rax, [rax+18h]"], [566, "sub rsp, 8"], [567, "push r8"], [568, "mov r9d, r10d"], [569, "mov r8d, edi"], [570, "mov rdi, rax"], [571, "call _XFillRectangle"], [572, "add rsp, 10h"], [573, "jmp loc_4173C8"], [574, "mov rcx, [rbp+var_188]"], [575, "mov eax, [rbp+var_18C]"], [576, "movsxd rdx, eax"], [577, "mov rax, rdx"], [578, "shl rax, 4"], [579, "add rax, rdx"], [580, "shl rax, 3"], [581, "add rax, rcx"], [582, "add rax, 12Ch"], [583, "mov eax, [rax]"], [584, "sub eax, 3"], [585, "mov r8d, eax"], [586, "mov rcx, [rbp+var_188]"], [587, "mov eax, [rbp+var_18C]"], [588, "movsxd rdx, eax"], [589, "mov rax, rdx"], [590, "shl rax, 4"], [591, "add rax, rdx"], [592, "shl rax, 3"], [593, "add rax, rcx"], [594, "add rax, 114h"], [595, "movzx eax, word ptr [rax]"], [596, "cwde"], [597, "pxor xmm1, xmm1"], [598, "cvtsi2sd xmm1, eax"], [599, "mov rax, [rbp+var_188]"], [600, "mov rdx, [rax+8]"], [601, "mov eax, [rbp+var_24]"], [602, "cdqe"], [603, "imul rax, 788h"], [604, "add rax, rdx"], [605, "add rax, 8D8h"], [606, "movsd xmm0, qword ptr [rax]"], [607, "mulsd xmm1, xmm0"], [608, "mov rax, [rbp+var_188]"], [609, "mov rax, [rax+8]"], [610, "mov edx, [rax+194h]"], [611, "mov rax, [rbp+var_188]"], [612, "mov eax, [rax+45Ch]"], [613, "cmp edx, eax"], [614, "jbe short loc_4172A8"], [615, "mov rax, [rbp+var_188]"], [616, "mov rax, [rax+8]"], [617, "mov eax, [rax+194h]"], [618, "mov eax, eax"], [619, "test rax, rax"], [620, "js short loc_41728D"], [621, "pxor xmm0, xmm0"], [622, "cvtsi2sd xmm0, rax"], [623, "jmp short loc_4172E0"], [624, "mov rdx, rax"], [625, "shr rdx, 1"], [626, "and eax, 1"], [627, "or rdx, rax"], [628, "pxor xmm0, xmm0"], [629, "cvtsi2sd xmm0, rdx"], [630, "addsd xmm0, xmm0"], [631, "jmp short loc_4172E0"], [632, "mov rax, [rbp+var_188]"], [633, "mov eax, [rax+45Ch]"], [634, "mov eax, eax"], [635, "test rax, rax"], [636, "js short loc_4172C7"], [637, "pxor xmm0, xmm0"], [638, "cvtsi2sd xmm0, rax"], [639, "jmp short loc_4172E0"], [640, "mov rdx, rax"], [641, "shr rdx, 1"], [642, "and eax, 1"], [643, "or rdx, rax"], [644, "pxor xmm0, xmm0"], [645, "cvtsi2sd xmm0, rdx"], [646, "addsd xmm0, xmm0"], [647, "divsd xmm1, xmm0"], [648, "cvttsd2si rax, xmm1"], [649, "mov r10d, eax"], [650, "mov rcx, [rbp+var_188]"], [651, "mov eax, [rbp+var_18C]"], [652, "movsxd rdx, eax"], [653, "mov rax, rdx"], [654, "shl rax, 4"], [655, "add rax, rdx"], [656, "shl rax, 3"], [657, "add rax, rcx"], [658, "add rax, 12Ch"], [659, "mov eax, [rax]"], [660, "mov edx, [rbp+var_24]"], [661, "add edx, 1"], [662, "imul eax, edx"], [663, "lea edi, [rax+3]"], [664, "mov rcx, [rbp+var_188]"], [665, "mov eax, [rbp+var_18C]"], [666, "movsxd rdx, eax"], [667, "mov rax, rdx"], [668, "shl rax, 4"], [669, "add rax, rdx"], [670, "shl rax, 3"], [671, "add rax, rcx"], [672, "add rax, 128h"], [673, "mov edx, [rax]"], [674, "mov eax, edx"], [675, "add eax, eax"], [676, "lea ecx, [rax+rdx]"], [677, "mov rsi, [rbp+var_188]"], [678, "mov eax, [rbp+var_18C]"], [679, "movsxd rdx, eax"], [680, "mov rax, rdx"], [681, "shl rax, 4"], [682, "add rax, rdx"], [683, "shl rax, 3"], [684, "add rax, rsi"], [685, "add rax, 0E8h"], [686, "mov rdx, [rax]"], [687, "mov r9, [rbp+var_188]"], [688, "mov eax, [rbp+var_18C]"], [689, "movsxd rsi, eax"], [690, "mov rax, rsi"], [691, "shl rax, 4"], [692, "add rax, rsi"], [693, "shl rax, 3"], [694, "add rax, r9"], [695, "add rax, 0D8h"], [696, "mov rsi, [rax]"], [697, "mov rax, [rbp+var_188]"], [698, "mov rax, [rax+18h]"], [699, "sub rsp, 8"], [700, "push r8"], [701, "mov r9d, r10d"], [702, "mov r8d, edi"], [703, "mov rdi, rax"], [704, "call _XDrawRectangle"], [705, "add rsp, 10h"], [706, "mov rax, [rbp+var_188]"], [707, "mov eax, [rax+5C4h]"], [708, "test eax, eax"], [709, "jz loc_4175FD"], [710, "mov rax, [rbp+var_188]"], [711, "mov rdx, [rax+8]"], [712, "mov eax, [rbp+var_24]"], [713, "cdqe"], [714, "imul rax, 788h"], [715, "add rax, rdx"], [716, "add rax, 8D8h"], [717, "movsd xmm0, qword ptr [rax]"], [718, "comisd xmm0, cs:qword_42A230"], [719, "jb loc_4175FD"], [720, "mov rax, [rbp+var_188]"], [721, "mov rdx, [rax+8]"], [722, "mov eax, [rbp+var_24]"], [723, "cdqe"], [724, "imul rax, 788h"], [725, "add rax, rdx"], [726, "add rax, 8E0h"], [727, "mov rdx, [rax]"], [728, "lea rax, [rbp+s]"], [729, "movq xmm0, rdx"], [730, "mov esi, offset a40fmhz"], [731, "mov rdi, rax"], [732, "mov eax, 1"], [733, "call _sprintf"], [734, "mov rax, [rbp+var_188]"], [735, "mov eax, [rax+5C0h]"], [736, "test eax, eax"], [737, "jz short loc_4174BA"], [738, "mov eax, [rbp+var_28]"], [739, "shl rax, 4"], [740, "lea rbx, [rbp+var_20]"], [741, "add rax, rbx"], [742, "sub rax, 158h"], [743, "mov rdx, [rax]"], [744, "mov rsi, [rbp+var_188]"], [745, "mov eax, [rbp+var_18C]"], [746, "movsxd rcx, eax"], [747, "mov rax, rcx"], [748, "shl rax, 4"], [749, "add rax, rcx"], [750, "shl rax, 3"], [751, "add rax, rsi"], [752, "add rax, 0E8h"], [753, "mov rcx, [rax]"], [754, "mov rax, [rbp+var_188]"], [755, "mov rax, [rax+18h]"], [756, "mov rsi, rcx"], [757, "mov rdi, rax"], [758, "call _XSetForeground"], [759, "jmp short loc_417508"], [760, "mov rax, [rbp+var_188]"], [761, "mov rdx, [rax+0EF0h]"], [762, "mov rsi, [rbp+var_188]"], [763, "mov eax, [rbp+var_18C]"], [764, "movsxd rcx, eax"], [765, "mov rax, rcx"], [766, "shl rax, 4"], [767, "add rax, rcx"], [768, "shl rax, 3"], [769, "add rax, rsi"], [770, "add rax, 0E8h"], [771, "mov rcx, [rax]"], [772, "mov rax, [rbp+var_188]"], [773, "mov rax, [rax+18h]"], [774, "mov rsi, rcx"], [775, "mov rdi, rax"], [776, "call _XSetForeground"], [777, "lea rax, [rbp+s]"], [778, "mov rdi, rax"], [779, "call _strlen"], [780, "mov r9d, eax"], [781, "mov rcx, [rbp+var_188]"], [782, "mov eax, [rbp+var_18C]"], [783, "movsxd rdx, eax"], [784, "mov rax, rdx"], [785, "shl rax, 4"], [786, "add rax, rdx"], [787, "shl rax, 3"], [788, "add rax, rcx"], [789, "add rax, 12Ch"], [790, "mov eax, [rax]"], [791, "mov edx, [rbp+var_24]"], [792, "add edx, 2"], [793, "imul eax, edx"], [794, "mov edi, eax"], [795, "mov rcx, [rbp+var_188]"], [796, "mov eax, [rbp+var_18C]"], [797, "movsxd rdx, eax"], [798, "mov rax, rdx"], [799, "shl rax, 4"], [800, "add rax, rdx"], [801, "shl rax, 3"], [802, "add rax, rcx"], [803, "add rax, 128h"], [804, "mov edx, [rax]"], [805, "mov eax, edx"], [806, "shl eax, 2"], [807, "lea ecx, [rax+rdx]"], [808, "mov rsi, [rbp+var_188]"], [809, "mov eax, [rbp+var_18C]"], [810, "movsxd rdx, eax"], [811, "mov rax, rdx"], [812, "shl rax, 4"], [813, "add rax, rdx"], [814, "shl rax, 3"], [815, "add rax, rsi"], [816, "add rax, 0E8h"], [817, "mov rdx, [rax]"], [818, "mov r8, [rbp+var_188]"], [819, "mov eax, [rbp+var_18C]"], [820, "movsxd rsi, eax"], [821, "mov rax, rsi"], [822, "shl rax, 4"], [823, "add rax, rsi"], [824, "shl rax, 3"], [825, "add rax, r8"], [826, "add rax, 0D8h"], [827, "mov rsi, [rax]"], [828, "mov rax, [rbp+var_188]"], [829, "mov rax, [rax+18h]"], [830, "lea r8, [rbp+s]"], [831, "sub rsp, 8"], [832, "push r9"], [833, "mov r9, r8"], [834, "mov r8d, edi"], [835, "mov rdi, rax"], [836, "call _XDrawString"], [837, "add rsp, 10h"], [838, "mov rax, [rbp+var_188]"], [839, "mov eax, [rax+5C8h]"], [840, "test eax, eax"], [841, "jz loc_417959"], [842, "mov rax, [rbp+var_188]"], [843, "mov eax, [rax+5CCh]"], [844, "test eax, eax"], [845, "jnz loc_418269"], [846, "mov rax, [rbp+var_188]"], [847, "mov eax, [rax+5D0h]"], [848, "test eax, eax"], [849, "jnz loc_418269"], [850, "mov rax, [rbp+var_188]"], [851, "mov eax, [rax+5D4h]"], [852, "test eax, eax"], [853, "jnz loc_418269"], [854, "mov rax, [rbp+var_188]"], [855, "mov rax, [rax+8]"], [856, "mov eax, [rax+1DCh]"], [857, "imul eax, 0C350h"], [858, "mov [rbp+var_A4], eax"], [859, "mov rax, [rbp+var_188]"], [860, "mov rdx, [rax+8]"], [861, "mov eax, [rbp+var_24]"], [862, "cdqe"], [863, "imul rax, 788h"], [864, "add rax, rdx"], [865, "add rax, 880h"], [866, "mov rax, [rax]"], [867, "mov ebx, [rbp+var_A4]"], [868, "mov edx, 0"], [869, "div rbx"], [870, "mov rsi, rax"], [871, "mov rax, [rbp+var_188]"], [872, "mov rdx, [rax+8]"], [873, "mov eax, [rbp+var_24]"], [874, "cdqe"], [875, "imul rax, 788h"], [876, "add rax, rdx"], [877, "add rax, 888h"], [878, "mov rdx, [rax]"], [879, "mov rax, [rbp+var_188]"], [880, "mov rcx, [rax+8]"], [881, "mov eax, [rbp+var_24]"], [882, "cdqe"], [883, "imul rax, 788h"], [884, "add rax, rcx"], [885, "add rax, 868h"], [886, "mov rax, [rax]"], [887, "lea rcx, [rdx+rax]"], [888, "mov rax, [rbp+var_188]"], [889, "mov rdx, [rax+8]"], [890, "mov eax, [rbp+var_24]"], [891, "cdqe"], [892, "imul rax, 788h"], [893, "add rax, rdx"], [894, "add rax, 870h"], [895, "mov rax, [rax]"], [896, "add rcx, rax"], [897, "mov rax, [rbp+var_188]"], [898, "mov rdx, [rax+8]"], [899, "mov eax, [rbp+var_24]"], [900, "cdqe"], [901, "imul rax, 788h"], [902, "add rax, rdx"], [903, "add rax, 878h"], [904, "mov rax, [rax]"], [905, "add rax, rcx"], [906, "mov ebx, [rbp+var_A4]"], [907, "mov edx, 0"], [908, "div rbx"], [909, "mov r8, rax"], [910, "mov rax, [rbp+var_188]"], [911, "mov rdx, [rax+8]"], [912, "mov eax, [rbp+var_24]"], [913, "cdqe"], [914, "imul rax, 788h"], [915, "add rax, rdx"], [916, "add rax, 860h"], [917, "mov rax, [rax]"], [918, "mov ebx, [rbp+var_A4]"], [919, "mov edx, 0"], [920, "div rbx"], [921, "mov rdi, rax"], [922, "mov rax, [rbp+var_188]"], [923, "mov rdx, [rax+8]"], [924, "mov eax, [rbp+var_24]"], [925, "cdqe"], [926, "imul rax, 788h"], [927, "add rax, rdx"], [928, "add rax, 858h"], [929, "mov rax, [rax]"], [930, "mov ebx, [rbp+var_A4]"], [931, "mov edx, 0"], [932, "div rbx"], [933, "mov rcx, rax"], [934, "mov rax, [rbp+var_188]"], [935, "mov rdx, [rax+8]"], [936, "mov eax, [rbp+var_24]"], [937, "cdqe"], [938, "imul rax, 788h"], [939, "add rax, rdx"], [940, "add rax, 850h"], [941, "mov rax, [rax]"], [942, "mov ebx, [rbp+var_A4]"], [943, "mov edx, 0"], [944, "div rbx"], [945, "mov rdx, rax"], [946, "lea rax, [rbp+s]"], [947, "sub rsp, 8"], [948, "push rsi"], [949, "mov r9, r8"], [950, "mov r8, rdi"], [951, "mov esi, offset a04llu04llu04ll"], [952, "mov rdi, rax"], [953, "mov eax, 0"], [954, "call _sprintf"], [955, "add rsp, 10h"], [956, "mov rax, [rbp+var_188]"], [957, "mov rdx, [rax+0EF0h]"], [958, "mov rsi, [rbp+var_188]"], [959, "mov eax, [rbp+var_18C]"], [960, "movsxd rcx, eax"], [961, "mov rax, rcx"], [962, "shl rax, 4"], [963, "add rax, rcx"], [964, "shl rax, 3"], [965, "add rax, rsi"], [966, "add rax, 0E8h"], [967, "mov rcx, [rax]"], [968, "mov rax, [rbp+var_188]"], [969, "mov rax, [rax+18h]"], [970, "mov rsi, rcx"], [971, "mov rdi, rax"], [972, "call _XSetForeground"], [973, "lea rax, [rbp+s]"], [974, "mov rdi, rax"], [975, "call _strlen"], [976, "mov r9d, eax"], [977, "mov rcx, [rbp+var_188]"], [978, "mov eax, [rbp+var_18C]"], [979, "movsxd rdx, eax"], [980, "mov rax, rdx"], [981, "shl rax, 4"], [982, "add rax, rdx"], [983, "shl rax, 3"], [984, "add rax, rcx"], [985, "add rax, 12Ch"], [986, "mov eax, [rax]"], [987, "mov edx, [rbp+var_24]"], [988, "add edx, 2"], [989, "imul eax, edx"], [990, "mov edi, eax"], [991, "mov rcx, [rbp+var_188]"], [992, "mov eax, [rbp+var_18C]"], [993, "movsxd rdx, eax"], [994, "mov rax, rdx"], [995, "shl rax, 4"], [996, "add rax, rdx"], [997, "shl rax, 3"], [998, "add rax, rcx"], [999, "add rax, 128h"], [1000, "mov edx, [rax]"], [1001, "mov eax, edx"], [1002, "add eax, eax"], [1003, "add eax, edx"], [1004, "shl eax, 2"], [1005, "lea ecx, [rax+rdx]"], [1006, "mov rsi, [rbp+var_188]"], [1007, "mov eax, [rbp+var_18C]"], [1008, "movsxd rdx, eax"], [1009, "mov rax, rdx"], [1010, "shl rax, 4"], [1011, "add rax, rdx"], [1012, "shl rax, 3"], [1013, "add rax, rsi"], [1014, "add rax, 0E8h"], [1015, "mov rdx, [rax]"], [1016, "mov r8, [rbp+var_188]"], [1017, "mov eax, [rbp+var_18C]"], [1018, "movsxd rsi, eax"], [1019, "mov rax, rsi"], [1020, "shl rax, 4"], [1021, "add rax, rsi"], [1022, "shl rax, 3"], [1023, "add rax, r8"], [1024, "add rax, 0D8h"], [1025, "mov rsi, [rax]"], [1026, "mov rax, [rbp+var_188]"], [1027, "mov rax, [rax+18h]"], [1028, "lea r8, [rbp+s]"], [1029, "sub rsp, 8"], [1030, "push r9"], [1031, "mov r9, r8"], [1032, "mov r8d, edi"], [1033, "mov rdi, rax"], [1034, "call _XDrawString"], [1035, "add rsp, 10h"], [1036, "jmp loc_418269"], [1037, "mov rax, [rbp+var_188]"], [1038, "mov rax, [rax+8]"], [1039, "mov eax, [rax+75Ch]"], [1040, "test eax, eax"], [1041, "jz loc_41806F"], [1042, "mov rax, [rbp+var_188]"], [1043, "mov eax, [rax+5D8h]"], [1044, "test eax, eax"], [1045, "jnz loc_417B5F"], [1046, "mov rax, [rbp+var_188]"], [1047, "mov rdx, [rax+8]"], [1048, "mov eax, [rbp+var_24]"], [1049, "cdqe"], [1050, "imul rax, 788h"], [1051, "add rax, rdx"], [1052, "add rax, 918h"], [1053, "mov rax, [rax]"], [1054, "test rax, rax"], [1055, "jle loc_417B5F"], [1056, "mov rax, [rbp+var_188]"], [1057, "mov rdx, [rax+8]"], [1058, "mov eax, [rbp+var_24]"], [1059, "cdqe"], [1060, "imul rax, 788h"], [1061, "add rax, rdx"], [1062, "add rax, 918h"], [1063, "mov rdx, [rax]"], [1064, "lea rax, [rbp+s]"], [1065, "mov esi, offset a5ld"], [1066, "mov rdi, rax"], [1067, "mov eax, 0"], [1068, "call _sprintf"], [1069, "lea rax, [rbp+s]"], [1070, "mov rdi, rax"], [1071, "call _strlen"], [1072, "mov [rbp+var_9C], eax"], [1073, "mov rax, [rbp+var_188]"], [1074, "mov rdx, [rax+0F08h]"], [1075, "mov rsi, [rbp+var_188]"], [1076, "mov eax, [rbp+var_18C]"], [1077, "movsxd rcx, eax"], [1078, "mov rax, rcx"], [1079, "shl rax, 4"], [1080, "add rax, rcx"], [1081, "shl rax, 3"], [1082, "add rax, rsi"], [1083, "add rax, 0E8h"], [1084, "mov rcx, [rax]"], [1085, "mov rax, [rbp+var_188]"], [1086, "mov rax, [rax+18h]"], [1087, "mov rsi, rcx"], [1088, "mov rdi, rax"], [1089, "call _XSetForeground"], [1090, "mov rcx, [rbp+var_188]"], [1091, "mov eax, [rbp+var_18C]"], [1092, "movsxd rdx, eax"], [1093, "mov rax, rdx"], [1094, "shl rax, 4"], [1095, "add rax, rdx"], [1096, "shl rax, 3"], [1097, "add rax, rcx"], [1098, "add rax, 12Ch"], [1099, "mov eax, [rax]"], [1100, "mov edx, [rbp+var_24]"], [1101, "add edx, 2"], [1102, "imul eax, edx"], [1103, "mov r8d, eax"], [1104, "mov rcx, [rbp+var_188]"], [1105, "mov eax, [rbp+var_18C]"], [1106, "movsxd rdx, eax"], [1107, "mov rax, rdx"], [1108, "shl rax, 4"], [1109, "add rax, rdx"], [1110, "shl rax, 3"], [1111, "add rax, rcx"], [1112, "add rax, 0F8h"], [1113, "mov ecx, [rax]"], [1114, "mov rsi, [rbp+var_188]"], [1115, "mov eax, [rbp+var_18C]"], [1116, "movsxd rdx, eax"], [1117, "mov rax, rdx"], [1118, "shl rax, 4"], [1119, "add rax, rdx"], [1120, "shl rax, 3"], [1121, "add rax, rsi"], [1122, "add rax, 128h"], [1123, "mov eax, [rax]"], [1124, "imul eax, [rbp+var_9C]"], [1125, "sub ecx, eax"], [1126, "mov rsi, [rbp+var_188]"], [1127, "mov eax, [rbp+var_18C]"], [1128, "movsxd rdx, eax"], [1129, "mov rax, rdx"], [1130, "shl rax, 4"], [1131, "add rax, rdx"], [1132, "shl rax, 3"], [1133, "add rax, rsi"], [1134, "add rax, 0E8h"], [1135, "mov rdx, [rax]"], [1136, "mov rdi, [rbp+var_188]"], [1137, "mov eax, [rbp+var_18C]"], [1138, "movsxd rsi, eax"], [1139, "mov rax, rsi"], [1140, "shl rax, 4"], [1141, "add rax, rsi"], [1142, "shl rax, 3"], [1143, "add rax, rdi"], [1144, "add rax, 0D8h"], [1145, "mov rsi, [rax]"], [1146, "mov rax, [rbp+var_188]"], [1147, "mov rax, [rax+18h]"], [1148, "lea r9, [rbp+s]"], [1149, "sub rsp, 8"], [1150, "mov edi, [rbp+var_9C]"], [1151, "push rdi"], [1152, "mov rdi, rax"], [1153, "call _XDrawString"], [1154, "add rsp, 10h"], [1155, "mov rax, [rbp+var_188]"], [1156, "mov eax, [rax+5CCh]"], [1157, "test eax, eax"], [1158, "jnz loc_418269"], [1159, "mov rax, [rbp+var_188]"], [1160, "mov eax, [rax+5D0h]"], [1161, "test eax, eax"], [1162, "jnz loc_418269"], [1163, "mov rax, [rbp+var_188]"], [1164, "mov eax, [rax+5D4h]"], [1165, "test eax, eax"], [1166, "jnz loc_418269"], [1167, "mov rcx, [rbp+var_188]"], [1168, "mov eax, [rbp+var_18C]"], [1169, "movsxd rdx, eax"], [1170, "mov rax, rdx"], [1171, "shl rax, 4"], [1172, "add rax, rdx"], [1173, "shl rax, 3"], [1174, "add rax, rcx"], [1175, "add rax, 128h"], [1176, "mov eax, [rax]"], [1177, "mov edx, eax"], [1178, "mov eax, edx"], [1179, "add eax, eax"], [1180, "add eax, edx"], [1181, "shl eax, 2"], [1182, "add eax, edx"], [1183, "mov [rbp+var_D8.x], ax"], [1184, "mov rcx, [rbp+var_188]"], [1185, "mov eax, [rbp+var_18C]"], [1186, "movsxd rdx, eax"], [1187, "mov rax, rdx"], [1188, "shl rax, 4"], [1189, "add rax, rdx"], [1190, "shl rax, 3"], [1191, "add rax, rcx"], [1192, "add rax, 12Ch"], [1193, "mov eax, [rax]"], [1194, "mov esi, eax"], [1195, "mov rcx, [rbp+var_188]"], [1196, "mov eax, [rbp+var_18C]"], [1197, "movsxd rdx, eax"], [1198, "mov rax, rdx"], [1199, "shl rax, 4"], [1200, "add rax, rdx"], [1201, "shl rax, 3"], [1202, "add rax, rcx"], [1203, "add rax, 12Ch"], [1204, "mov eax, [rax]"], [1205, "sar eax, 2"], [1206, "add eax, esi"], [1207, "mov [rbp+var_D8.y], ax"], [1208, "mov rcx, [rbp+var_188]"], [1209, "mov eax, [rbp+var_18C]"], [1210, "movsxd rdx, eax"], [1211, "mov rax, rdx"], [1212, "shl rax, 4"], [1213, "add rax, rdx"], [1214, "shl rax, 3"], [1215, "add rax, rcx"], [1216, "add rax, 128h"], [1217, "mov eax, [rax]"], [1218, "mov ecx, eax"], [1219, "mov rax, [rbp+var_188]"], [1220, "mov eax, [rax+45Ch]"], [1221, "mov edx, eax"], [1222, "mov rax, [rbp+var_188]"], [1223, "mov rax, [rax+8]"], [1224, "mov eax, [rax+194h]"], [1225, "cmp edx, eax"], [1226, "cmovnb eax, edx"], [1227, "sub eax, 7"], [1228, "add eax, eax"], [1229, "imul eax, ecx"], [1230, "mov [rbp+var_D8.width], ax"], [1231, "mov rcx, [rbp+var_188]"], [1232, "mov eax, [rbp+var_18C]"], [1233, "movsxd rdx, eax"], [1234, "mov rax, rdx"], [1235, "shl rax, 4"], [1236, "add rax, rdx"], [1237, "shl rax, 3"], [1238, "add rax, rcx"], [1239, "add rax, 12Ch"], [1240, "mov eax, [rax]"], [1241, "mov edx, eax"], [1242, "mov rax, [rbp+var_188]"], [1243, "mov rax, [rax+8]"], [1244, "mov eax, [rax+168h]"], [1245, "imul eax, edx"], [1246, "mov [rbp+var_D8.height], ax"], [1247, "mov rcx, [rbp+var_188]"], [1248, "mov eax, [rbp+var_18C]"], [1249, "movsxd rdx, eax"], [1250, "mov rax, rdx"], [1251, "shl rax, 4"], [1252, "add rax, rdx"], [1253, "shl rax, 3"], [1254, "add rax, rcx"], [1255, "add rax, 0E8h"], [1256, "mov rsi, [rax]"], [1257, "mov rax, [rbp+var_188]"], [1258, "mov rax, [rax+18h]"], [1259, "lea rdx, [rbp+var_D8]"], [1260, "sub rsp, 8"], [1261, "push 0"], [1262, "mov r9d, 1"], [1263, "mov r8, rdx"], [1264, "mov ecx, 0"], [1265, "mov edx, 0"], [1266, "mov rdi, rax"], [1267, "call _XSetClipRectangles"], [1268, "add rsp, 10h"], [1269, "mov [rbp+var_2C], 0"], [1270, "mov rax, [rbp+var_188]"], [1271, "mov eax, [rax+45Ch]"], [1272, "mov edx, eax"], [1273, "mov rax, [rbp+var_188]"], [1274, "mov rax, [rax+8]"], [1275, "mov eax, [rax+194h]"], [1276, "cmp edx, eax"], [1277, "cmovnb eax, edx"], [1278, "add eax, eax"], [1279, "mov [rbp+var_30], eax"], [1280, "mov rax, [rbp+var_188]"], [1281, "mov rsi, [rax+8]"], [1282, "mov eax, [rbp+var_2C]"], [1283, "movsxd rdx, eax"], [1284, "mov eax, [rbp+var_24]"], [1285, "movsxd rcx, eax"], [1286, "mov rax, rdx"], [1287, "shl rax, 3"], [1288, "add rax, rdx"], [1289, "add rax, rax"], [1290, "add rax, rdx"], [1291, "shl rax, 3"], [1292, "imul rdx, rcx, 788h"], [1293, "add rax, rdx"], [1294, "add rax, rsi"], [1295, "add rax, 918h"], [1296, "mov rax, [rax]"], [1297, "test rax, rax"], [1298, "jz short loc_417E04"], [1299, "mov rax, [rbp+var_188]"], [1300, "mov rcx, [rax+8]"], [1301, "mov eax, [rbp+var_2C]"], [1302, "movsxd rdx, eax"], [1303, "mov rax, rdx"], [1304, "shl rax, 3"], [1305, "add rax, rdx"], [1306, "add rax, rax"], [1307, "add rax, rdx"], [1308, "shl rax, 3"], [1309, "mov edx, [rbp+var_24]"], [1310, "movsxd rdx, edx"], [1311, "imul rdx, 788h"], [1312, "add rax, rdx"], [1313, "add rax, 900h"], [1314, "add rax, rcx"], [1315, "add rax, 8"], [1316, "mov rdi, rax"], [1317, "call _strlen"], [1318, "jmp short loc_417E09"], [1319, "mov eax, 0"], [1320, "mov [rbp+var_A0], eax"], [1321, "cmp [rbp+var_A0], 0"], [1322, "jle short loc_417E23"], [1323, "mov eax, [rbp+var_A0]"], [1324, "add eax, 2"], [1325, "jmp short loc_417E28"], [1326, "mov eax, 0"], [1327, "sub [rbp+var_30], eax"], [1328, "cmp [rbp+var_A0], 0"], [1329, "jle loc_418017"], [1330, "cmp [rbp+var_2C], 0"], [1331, "jnz short loc_417E4E"], [1332, "mov rax, [rbp+var_188]"], [1333, "mov rdx, [rax+0FB0h]"], [1334, "jmp short loc_417EBB"], [1335, "mov rax, [rbp+var_188]"], [1336, "mov rcx, [rax+8]"], [1337, "mov eax, [rbp+var_2C]"], [1338, "movsxd rdx, eax"], [1339, "mov rax, rdx"], [1340, "shl rax, 3"], [1341, "add rax, rdx"], [1342, "add rax, rax"], [1343, "add rax, rdx"], [1344, "shl rax, 3"], [1345, "mov edx, [rbp+var_24]"], [1346, "movsxd rdx, edx"], [1347, "imul rdx, 788h"], [1348, "add rax, rdx"], [1349, "add rax, 900h"], [1350, "add rax, rcx"], [1351, "mov esi, offset s2"], [1352, "mov rdi, rax"], [1353, "call _strcasecmp"], [1354, "test eax, eax"], [1355, "jnz short loc_417EAD"], [1356, "mov rax, [rbp+var_188]"], [1357, "mov rdx, [rax+0F08h]"], [1358, "jmp short loc_417EBB"], [1359, "mov rax, [rbp+var_188]"], [1360, "mov rdx, [rax+0E90h]"], [1361, "mov rsi, [rbp+var_188]"], [1362, "mov eax, [rbp+var_18C]"], [1363, "movsxd rcx, eax"], [1364, "mov rax, rcx"], [1365, "shl rax, 4"], [1366, "add rax, rcx"], [1367, "shl rax, 3"], [1368, "add rax, rsi"], [1369, "add rax, 0E8h"], [1370, "mov rcx, [rax]"], [1371, "mov rax, [rbp+var_188]"], [1372, "mov rax, [rax+18h]"], [1373, "mov rsi, rcx"], [1374, "mov rdi, rax"], [1375, "call _XSetForeground"], [1376, "mov rax, [rbp+var_188]"], [1377, "mov rcx, [rax+8]"], [1378, "mov eax, [rbp+var_2C]"], [1379, "movsxd rdx, eax"], [1380, "mov rax, rdx"], [1381, "shl rax, 3"], [1382, "add rax, rdx"], [1383, "add rax, rax"], [1384, "add rax, rdx"], [1385, "shl rax, 3"], [1386, "mov edx, [rbp+var_24]"], [1387, "movsxd rdx, edx"], [1388, "imul rdx, 788h"], [1389, "add rax, rdx"], [1390, "add rax, 900h"], [1391, "add rax, rcx"], [1392, "lea r9, [rax+8]"], [1393, "mov rcx, [rbp+var_188]"], [1394, "mov eax, [rbp+var_18C]"], [1395, "movsxd rdx, eax"], [1396, "mov rax, rdx"], [1397, "shl rax, 4"], [1398, "add rax, rdx"], [1399, "shl rax, 3"], [1400, "add rax, rcx"], [1401, "add rax, 12Ch"], [1402, "mov eax, [rax]"], [1403, "mov edx, [rbp+var_24]"], [1404, "add edx, 2"], [1405, "imul eax, edx"], [1406, "mov r8d, eax"], [1407, "mov rcx, [rbp+var_188]"], [1408, "mov eax, [rbp+var_18C]"], [1409, "movsxd rdx, eax"], [1410, "mov rax, rdx"], [1411, "shl rax, 4"], [1412, "add rax, rdx"], [1413, "shl rax, 3"], [1414, "add rax, rcx"], [1415, "add rax, 128h"], [1416, "mov eax, [rax]"], [1417, "imul eax, [rbp+var_30]"], [1418, "mov ecx, eax"], [1419, "mov rsi, [rbp+var_188]"], [1420, "mov eax, [rbp+var_18C]"], [1421, "movsxd rdx, eax"], [1422, "mov rax, rdx"], [1423, "shl rax, 4"], [1424, "add rax, rdx"], [1425, "shl rax, 3"], [1426, "add rax, rsi"], [1427, "add rax, 0E8h"], [1428, "mov rdx, [rax]"], [1429, "mov rdi, [rbp+var_188]"], [1430, "mov eax, [rbp+var_18C]"], [1431, "movsxd rsi, eax"], [1432, "mov rax, rsi"], [1433, "shl rax, 4"], [1434, "add rax, rsi"], [1435, "shl rax, 3"], [1436, "add rax, rdi"], [1437, "add rax, 0D8h"], [1438, "mov rsi, [rax]"], [1439, "mov rax, [rbp+var_188]"], [1440, "mov rax, [rax+18h]"], [1441, "sub rsp, 8"], [1442, "mov edi, [rbp+var_A0]"], [1443, "push rdi"], [1444, "mov rdi, rax"], [1445, "call _XDrawString"], [1446, "add rsp, 10h"], [1447, "add [rbp+var_2C], 1"], [1448, "cmp [rbp+var_2C], 9"], [1449, "jle loc_417D72"], [1450, "mov rcx, [rbp+var_188]"], [1451, "mov eax, [rbp+var_18C]"], [1452, "movsxd rdx, eax"], [1453, "mov rax, rdx"], [1454, "shl rax, 4"], [1455, "add rax, rdx"], [1456, "shl rax, 3"], [1457, "add rax, rcx"], [1458, "add rax, 0E8h"], [1459, "mov rcx, [rax]"], [1460, "mov rax, [rbp+var_188]"], [1461, "mov rax, [rax+18h]"], [1462, "mov edx, 0"], [1463, "mov rsi, rcx"], [1464, "mov rdi, rax"], [1465, "call _XSetClipMask"], [1466, "jmp loc_418269"], [1467, "mov rax, [rbp+var_188]"], [1468, "mov eax, [rax+5D8h]"], [1469, "test eax, eax"], [1470, "jnz loc_418269"], [1471, "mov rax, [rbp+var_188]"], [1472, "mov eax, [rax+5CCh]"], [1473, "test eax, eax"], [1474, "jnz loc_418269"], [1475, "mov rax, [rbp+var_188]"], [1476, "mov eax, [rax+5D0h]"], [1477, "test eax, eax"], [1478, "jnz loc_418269"], [1479, "mov rax, [rbp+var_188]"], [1480, "mov eax, [rax+5D4h]"], [1481, "test eax, eax"], [1482, "jnz loc_418269"], [1483, "mov rax, [rbp+var_188]"], [1484, "mov rdx, [rax+8]"], [1485, "mov eax, [rbp+var_24]"], [1486, "cdqe"], [1487, "imul rax, 788h"], [1488, "add rax, rdx"], [1489, "add rax, 7F8h"], [1490, "mov rcx, [rax]"], [1491, "mov rax, [rbp+var_188]"], [1492, "mov rdx, [rax+8]"], [1493, "mov eax, [rbp+var_24]"], [1494, "cdqe"], [1495, "imul rax, 788h"], [1496, "add rax, rdx"], [1497, "add rax, 7F0h"], [1498, "mov rdx, [rax]"], [1499, "lea rax, [rbp+s]"], [1500, "mov esi, offset a016llu016llu"], [1501, "mov rdi, rax"], [1502, "mov eax, 0"], [1503, "call _sprintf"], [1504, "mov rax, [rbp+var_188]"], [1505, "mov rdx, [rax+0EF0h]"], [1506, "mov rsi, [rbp+var_188]"], [1507, "mov eax, [rbp+var_18C]"], [1508, "movsxd rcx, eax"], [1509, "mov rax, rcx"], [1510, "shl rax, 4"], [1511, "add rax, rcx"], [1512, "shl rax, 3"], [1513, "add rax, rsi"], [1514, "add rax, 0E8h"], [1515, "mov rcx, [rax]"], [1516, "mov rax, [rbp+var_188]"], [1517, "mov rax, [rax+18h]"], [1518, "mov rsi, rcx"], [1519, "mov rdi, rax"], [1520, "call _XSetForeground"], [1521, "lea rax, [rbp+s]"], [1522, "mov rdi, rax"], [1523, "call _strlen"], [1524, "mov r9d, eax"], [1525, "mov rcx, [rbp+var_188]"], [1526, "mov eax, [rbp+var_18C]"], [1527, "movsxd rdx, eax"], [1528, "mov rax, rdx"], [1529, "shl rax, 4"], [1530, "add rax, rdx"], [1531, "shl rax, 3"], [1532, "add rax, rcx"], [1533, "add rax, 12Ch"], [1534, "mov eax, [rax]"], [1535, "mov edx, [rbp+var_24]"], [1536, "add edx, 2"], [1537, "imul eax, edx"], [1538, "mov edi, eax"], [1539, "mov rcx, [rbp+var_188]"], [1540, "mov eax, [rbp+var_18C]"], [1541, "movsxd rdx, eax"], [1542, "mov rax, rdx"], [1543, "shl rax, 4"], [1544, "add rax, rdx"], [1545, "shl rax, 3"], [1546, "add rax, rcx"], [1547, "add rax, 128h"], [1548, "mov edx, [rax]"], [1549, "mov eax, edx"], [1550, "add eax, eax"], [1551, "add eax, edx"], [1552, "shl eax, 2"], [1553, "lea ecx, [rax+rdx]"], [1554, "mov rsi, [rbp+var_188]"], [1555, "mov eax, [rbp+var_18C]"], [1556, "movsxd rdx, eax"], [1557, "mov rax, rdx"], [1558, "shl rax, 4"], [1559, "add rax, rdx"], [1560, "shl rax, 3"], [1561, "add rax, rsi"], [1562, "add rax, 0E8h"], [1563, "mov rdx, [rax]"], [1564, "mov r8, [rbp+var_188]"], [1565, "mov eax, [rbp+var_18C]"], [1566, "movsxd rsi, eax"], [1567, "mov rax, rsi"], [1568, "shl rax, 4"], [1569, "add rax, rsi"], [1570, "shl rax, 3"], [1571, "add rax, r8"], [1572, "add rax, 0D8h"], [1573, "mov rsi, [rax]"], [1574, "mov rax, [rbp+var_188]"], [1575, "mov rax, [rax+18h]"], [1576, "lea r8, [rbp+s]"], [1577, "sub rsp, 8"], [1578, "push r9"], [1579, "mov r9, r8"], [1580, "mov r8d, edi"], [1581, "mov rdi, rax"], [1582, "call _XDrawString"], [1583, "add rsp, 10h"], [1584, "mov rax, [rbp+var_188]"], [1585, "mov eax, [rax+5CCh]"], [1586, "test eax, eax"], [1587, "jz loc_418403"], [1588, "mov rax, [rbp+var_188]"], [1589, "mov rdx, [rax+8]"], [1590, "mov eax, [rbp+var_24]"], [1591, "cdqe"], [1592, "imul rax, 788h"], [1593, "add rax, rdx"], [1594, "add rax, 890h"], [1595, "mov rdx, [rax]"], [1596, "lea rax, [rbp+s]"], [1597, "movq xmm0, rdx"], [1598, "mov esi, offset a52f"], [1599, "mov rdi, rax"], [1600, "mov eax, 1"], [1601, "call _sprintf"], [1602, "mov rax, [rbp+var_188]"], [1603, "mov rdx, [rax+0EF0h]"], [1604, "mov rsi, [rbp+var_188]"], [1605, "mov eax, [rbp+var_18C]"], [1606, "movsxd rcx, eax"], [1607, "mov rax, rcx"], [1608, "shl rax, 4"], [1609, "add rax, rcx"], [1610, "shl rax, 3"], [1611, "add rax, rsi"], [1612, "add rax, 0E8h"], [1613, "mov rcx, [rax]"], [1614, "mov rax, [rbp+var_188]"], [1615, "mov rax, [rax+18h]"], [1616, "mov rsi, rcx"], [1617, "mov rdi, rax"], [1618, "call _XSetForeground"], [1619, "lea rax, [rbp+s]"], [1620, "mov rdi, rax"], [1621, "call _strlen"], [1622, "mov r9d, eax"], [1623, "mov rcx, [rbp+var_188]"], [1624, "mov eax, [rbp+var_18C]"], [1625, "movsxd rdx, eax"], [1626, "mov rax, rdx"], [1627, "shl rax, 4"], [1628, "add rax, rdx"], [1629, "shl rax, 3"], [1630, "add rax, rcx"], [1631, "add rax, 12Ch"], [1632, "mov eax, [rax]"], [1633, "mov edx, [rbp+var_24]"], [1634, "add edx, 2"], [1635, "imul eax, edx"], [1636, "mov edi, eax"], [1637, "mov rcx, [rbp+var_188]"], [1638, "mov eax, [rbp+var_18C]"], [1639, "movsxd rdx, eax"], [1640, "mov rax, rdx"], [1641, "shl rax, 4"], [1642, "add rax, rdx"], [1643, "shl rax, 3"], [1644, "add rax, rcx"], [1645, "add rax, 128h"], [1646, "mov edx, [rax]"], [1647, "mov eax, edx"], [1648, "shl eax, 4"], [1649, "sub eax, edx"], [1650, "mov ecx, eax"], [1651, "mov rsi, [rbp+var_188]"], [1652, "mov eax, [rbp+var_18C]"], [1653, "movsxd rdx, eax"], [1654, "mov rax, rdx"], [1655, "shl rax, 4"], [1656, "add rax, rdx"], [1657, "shl rax, 3"], [1658, "add rax, rsi"], [1659, "add rax, 0E8h"], [1660, "mov rdx, [rax]"], [1661, "mov r8, [rbp+var_188]"], [1662, "mov eax, [rbp+var_18C]"], [1663, "movsxd rsi, eax"], [1664, "mov rax, rsi"], [1665, "shl rax, 4"], [1666, "add rax, rsi"], [1667, "shl rax, 3"], [1668, "add rax, r8"], [1669, "add rax, 0D8h"], [1670, "mov rsi, [rax]"], [1671, "mov rax, [rbp+var_188]"], [1672, "mov rax, [rax+18h]"], [1673, "lea r8, [rbp+s]"], [1674, "sub rsp, 8"], [1675, "push r9"], [1676, "mov r9, r8"], [1677, "mov r8d, edi"], [1678, "mov rdi, rax"], [1679, "call _XDrawString"], [1680, "add rsp, 10h"], [1681, "mov rax, [rbp+var_188]"], [1682, "mov eax, [rax+5D0h]"], [1683, "test eax, eax"], [1684, "jz loc_418597"], [1685, "mov rax, [rbp+var_188]"], [1686, "mov rdx, [rax+8]"], [1687, "mov eax, [rbp+var_24]"], [1688, "cdqe"], [1689, "imul rax, 788h"], [1690, "add rax, rdx"], [1691, "add rax, 898h"], [1692, "mov rdx, [rax]"], [1693, "lea rax, [rbp+s]"], [1694, "movq xmm0, rdx"], [1695, "mov esi, offset a52f"], [1696, "mov rdi, rax"], [1697, "mov eax, 1"], [1698, "call _sprintf"], [1699, "mov rax, [rbp+var_188]"], [1700, "mov rdx, [rax+0EF0h]"], [1701, "mov rsi, [rbp+var_188]"], [1702, "mov eax, [rbp+var_18C]"], [1703, "movsxd rcx, eax"], [1704, "mov rax, rcx"], [1705, "shl rax, 4"], [1706, "add rax, rcx"], [1707, "shl rax, 3"], [1708, "add rax, rsi"], [1709, "add rax, 0E8h"], [1710, "mov rcx, [rax]"], [1711, "mov rax, [rbp+var_188]"], [1712, "mov rax, [rax+18h]"], [1713, "mov rsi, rcx"], [1714, "mov rdi, rax"], [1715, "call _XSetForeground"], [1716, "lea rax, [rbp+s]"], [1717, "mov rdi, rax"], [1718, "call _strlen"], [1719, "mov r9d, eax"], [1720, "mov rcx, [rbp+var_188]"], [1721, "mov eax, [rbp+var_18C]"], [1722, "movsxd rdx, eax"], [1723, "mov rax, rdx"], [1724, "shl rax, 4"], [1725, "add rax, rdx"], [1726, "shl rax, 3"], [1727, "add rax, rcx"], [1728, "add rax, 12Ch"], [1729, "mov eax, [rax]"], [1730, "mov edx, [rbp+var_24]"], [1731, "add edx, 2"], [1732, "imul eax, edx"], [1733, "mov edi, eax"], [1734, "mov rcx, [rbp+var_188]"], [1735, "mov eax, [rbp+var_18C]"], [1736, "movsxd rdx, eax"], [1737, "mov rax, rdx"], [1738, "shl rax, 4"], [1739, "add rax, rdx"], [1740, "shl rax, 3"], [1741, "add rax, rcx"], [1742, "add rax, 128h"], [1743, "mov eax, [rax]"], [1744, "imul ecx, eax, 17h"], [1745, "mov rsi, [rbp+var_188]"], [1746, "mov eax, [rbp+var_18C]"], [1747, "movsxd rdx, eax"], [1748, "mov rax, rdx"], [1749, "shl rax, 4"], [1750, "add rax, rdx"], [1751, "shl rax, 3"], [1752, "add rax, rsi"], [1753, "add rax, 0E8h"], [1754, "mov rdx, [rax]"], [1755, "mov r8, [rbp+var_188]"], [1756, "mov eax, [rbp+var_18C]"], [1757, "movsxd rsi, eax"], [1758, "mov rax, rsi"], [1759, "shl rax, 4"], [1760, "add rax, rsi"], [1761, "shl rax, 3"], [1762, "add rax, r8"], [1763, "add rax, 0D8h"], [1764, "mov rsi, [rax]"], [1765, "mov rax, [rbp+var_188]"], [1766, "mov rax, [rax+18h]"], [1767, "lea r8, [rbp+s]"], [1768, "sub rsp, 8"], [1769, "push r9"], [1770, "mov r9, r8"], [1771, "mov r8d, edi"], [1772, "mov rdi, rax"], [1773, "call _XDrawString"], [1774, "add rsp, 10h"], [1775, "mov rax, [rbp+var_188]"], [1776, "mov eax, [rax+5D4h]"], [1777, "test eax, eax"], [1778, "jz loc_418731"], [1779, "mov rax, [rbp+var_188]"], [1780, "mov rdx, [rax+8]"], [1781, "mov eax, [rbp+var_24]"], [1782, "cdqe"], [1783, "imul rax, 788h"], [1784, "add rax, rdx"], [1785, "add rax, 8A0h"], [1786, "mov rdx, [rax]"], [1787, "lea rax, [rbp+s]"], [1788, "movq xmm0, rdx"], [1789, "mov esi, offset a52f"], [1790, "mov rdi, rax"], [1791, "mov eax, 1"], [1792, "call _sprintf"], [1793, "mov rax, [rbp+var_188]"], [1794, "mov rdx, [rax+0EF0h]"], [1795, "mov rsi, [rbp+var_188]"], [1796, "mov eax, [rbp+var_18C]"], [1797, "movsxd rcx, eax"], [1798, "mov rax, rcx"], [1799, "shl rax, 4"], [1800, "add rax, rcx"], [1801, "shl rax, 3"], [1802, "add rax, rsi"], [1803, "add rax, 0E8h"], [1804, "mov rcx, [rax]"], [1805, "mov rax, [rbp+var_188]"], [1806, "mov rax, [rax+18h]"], [1807, "mov rsi, rcx"], [1808, "mov rdi, rax"], [1809, "call _XSetForeground"], [1810, "lea rax, [rbp+s]"], [1811, "mov rdi, rax"], [1812, "call _strlen"], [1813, "mov r9d, eax"], [1814, "mov rcx, [rbp+var_188]"], [1815, "mov eax, [rbp+var_18C]"], [1816, "movsxd rdx, eax"], [1817, "mov rax, rdx"], [1818, "shl rax, 4"], [1819, "add rax, rdx"], [1820, "shl rax, 3"], [1821, "add rax, rcx"], [1822, "add rax, 12Ch"], [1823, "mov eax, [rax]"], [1824, "mov edx, [rbp+var_24]"], [1825, "add edx, 2"], [1826, "imul eax, edx"], [1827, "mov edi, eax"], [1828, "mov rcx, [rbp+var_188]"], [1829, "mov eax, [rbp+var_18C]"], [1830, "movsxd rdx, eax"], [1831, "mov rax, rdx"], [1832, "shl rax, 4"], [1833, "add rax, rdx"], [1834, "shl rax, 3"], [1835, "add rax, rcx"], [1836, "add rax, 128h"], [1837, "mov edx, [rax]"], [1838, "mov eax, edx"], [1839, "shl eax, 5"], [1840, "sub eax, edx"], [1841, "mov ecx, eax"], [1842, "mov rsi, [rbp+var_188]"], [1843, "mov eax, [rbp+var_18C]"], [1844, "movsxd rdx, eax"], [1845, "mov rax, rdx"], [1846, "shl rax, 4"], [1847, "add rax, rdx"], [1848, "shl rax, 3"], [1849, "add rax, rsi"], [1850, "add rax, 0E8h"], [1851, "mov rdx, [rax]"], [1852, "mov r8, [rbp+var_188]"], [1853, "mov eax, [rbp+var_18C]"], [1854, "movsxd rsi, eax"], [1855, "mov rax, rsi"], [1856, "shl rax, 4"], [1857, "add rax, rsi"], [1858, "shl rax, 3"], [1859, "add rax, r8"], [1860, "add rax, 0D8h"], [1861, "mov rsi, [rax]"], [1862, "mov rax, [rbp+var_188]"], [1863, "mov rax, [rax+18h]"], [1864, "lea r8, [rbp+s]"], [1865, "sub rsp, 8"], [1866, "push r9"], [1867, "mov r9, r8"], [1868, "mov r8d, edi"], [1869, "mov rdi, rax"], [1870, "call _XDrawString"], [1871, "add rsp, 10h"], [1872, "mov rax, [rbp+var_188]"], [1873, "mov eax, [rax+5D8h]"], [1874, "test eax, eax"], [1875, "jz loc_418A50"], [1876, "mov rax, [rbp+var_188]"], [1877, "mov rdx, [rax+8]"], [1878, "mov eax, [rbp+var_24]"], [1879, "cdqe"], [1880, "imul rax, 788h"], [1881, "add rax, rdx"], [1882, "add rax, 8D8h"], [1883, "mov rdx, [rax]"], [1884, "lea rax, [rbp+s]"], [1885, "movq xmm0, rdx"], [1886, "mov esi, offset a31f"], [1887, "mov rdi, rax"], [1888, "mov eax, 1"], [1889, "call _sprintf"], [1890, "mov rax, [rbp+var_188]"], [1891, "mov rdx, [rax+0EF0h]"], [1892, "mov rsi, [rbp+var_188]"], [1893, "mov eax, [rbp+var_18C]"], [1894, "movsxd rcx, eax"], [1895, "mov rax, rcx"], [1896, "shl rax, 4"], [1897, "add rax, rcx"], [1898, "shl rax, 3"], [1899, "add rax, rsi"], [1900, "add rax, 0E8h"], [1901, "mov rcx, [rax]"], [1902, "mov rax, [rbp+var_188]"], [1903, "mov rax, [rax+18h]"], [1904, "mov rsi, rcx"], [1905, "mov rdi, rax"], [1906, "call _XSetForeground"], [1907, "lea rax, [rbp+s]"], [1908, "mov rdi, rax"], [1909, "call _strlen"], [1910, "mov r8d, eax"], [1911, "mov rcx, [rbp+var_188]"], [1912, "mov eax, [rbp+var_18C]"], [1913, "movsxd rdx, eax"], [1914, "mov rax, rdx"], [1915, "shl rax, 4"], [1916, "add rax, rdx"], [1917, "shl rax, 3"], [1918, "add rax, rcx"], [1919, "add rax, 12Ch"], [1920, "mov eax, [rax]"], [1921, "mov edx, [rbp+var_24]"], [1922, "add edx, 2"], [1923, "imul eax, edx"], [1924, "mov edi, eax"], [1925, "mov rcx, [rbp+var_188]"], [1926, "mov eax, [rbp+var_18C]"], [1927, "movsxd rdx, eax"], [1928, "mov rax, rdx"], [1929, "shl rax, 4"], [1930, "add rax, rdx"], [1931, "shl rax, 3"], [1932, "add rax, rcx"], [1933, "add rax, 128h"], [1934, "mov eax, [rax]"], [1935, "add eax, eax"], [1936, "mov ecx, eax"], [1937, "mov rax, [rbp+var_188]"], [1938, "mov eax, [rax+45Ch]"], [1939, "mov edx, eax"], [1940, "mov rax, [rbp+var_188]"], [1941, "mov rax, [rax+8]"], [1942, "mov eax, [rax+194h]"], [1943, "cmp edx, eax"], [1944, "cmovnb eax, edx"], [1945, "imul eax, ecx"], [1946, "mov r10d, eax"], [1947, "mov rcx, [rbp+var_188]"], [1948, "mov eax, [rbp+var_18C]"], [1949, "movsxd rdx, eax"], [1950, "mov rax, rdx"], [1951, "shl rax, 4"], [1952, "add rax, rdx"], [1953, "shl rax, 3"], [1954, "add rax, rcx"], [1955, "add rax, 0E8h"], [1956, "mov rdx, [rax]"], [1957, "mov rsi, [rbp+var_188]"], [1958, "mov eax, [rbp+var_18C]"], [1959, "movsxd rcx, eax"], [1960, "mov rax, rcx"], [1961, "shl rax, 4"], [1962, "add rax, rcx"], [1963, "shl rax, 3"], [1964, "add rax, rsi"], [1965, "add rax, 0D8h"], [1966, "mov rsi, [rax]"], [1967, "mov rax, [rbp+var_188]"], [1968, "mov rax, [rax+18h]"], [1969, "lea rcx, [rbp+s]"], [1970, "sub rsp, 8"], [1971, "push r8"], [1972, "mov r9, rcx"], [1973, "mov r8d, edi"], [1974, "mov ecx, r10d"], [1975, "mov rdi, rax"], [1976, "call _XDrawString"], [1977, "add rsp, 10h"], [1978, "jmp loc_418A50"], [1979, "mov rax, [rbp+var_188]"], [1980, "mov rdx, [rax+0E90h]"], [1981, "mov rsi, [rbp+var_188]"], [1982, "mov eax, [rbp+var_18C]"], [1983, "movsxd rcx, eax"], [1984, "mov rax, rcx"], [1985, "shl rax, 4"], [1986, "add rax, rcx"], [1987, "shl rax, 3"], [1988, "add rax, rsi"], [1989, "add rax, 0E8h"], [1990, "mov rcx, [rax]"], [1991, "mov rax, [rbp+var_188]"], [1992, "mov rax, [rax+18h]"], [1993, "mov rsi, rcx"], [1994, "mov rdi, rax"], [1995, "call _XSetForeground"], [1996, "mov rcx, [rbp+var_188]"], [1997, "mov eax, [rbp+var_18C]"], [1998, "movsxd rdx, eax"], [1999, "mov rax, rdx"], [2000, "shl rax, 4"], [2001, "add rax, rdx"], [2002, "shl rax, 3"], [2003, "add rax, rcx"], [2004, "add rax, 12Ch"], [2005, "mov eax, [rax]"], [2006, "mov edx, [rbp+var_24]"], [2007, "add edx, 2"], [2008, "imul eax, edx"], [2009, "mov edi, eax"], [2010, "mov rcx, [rbp+var_188]"], [2011, "mov eax, [rbp+var_18C]"], [2012, "movsxd rdx, eax"], [2013, "mov rax, rdx"], [2014, "shl rax, 4"], [2015, "add rax, rdx"], [2016, "shl rax, 3"], [2017, "add rax, rcx"], [2018, "add rax, 128h"], [2019, "mov eax, [rax]"], [2020, "add eax, eax"], [2021, "mov ecx, eax"], [2022, "mov rax, [rbp+var_188]"], [2023, "mov eax, [rax+45Ch]"], [2024, "mov edx, eax"], [2025, "mov rax, [rbp+var_188]"], [2026, "mov rax, [rax+8]"], [2027, "mov eax, [rax+194h]"], [2028, "cmp edx, eax"], [2029, "cmovnb eax, edx"], [2030, "imul eax, ecx"], [2031, "mov r10d, eax"], [2032, "mov rcx, [rbp+var_188]"], [2033, "mov eax, [rbp+var_18C]"], [2034, "movsxd rdx, eax"], [2035, "mov rax, rdx"], [2036, "shl rax, 4"], [2037, "add rax, rdx"], [2038, "shl rax, 3"], [2039, "add rax, rcx"], [2040, "add rax, 0E8h"], [2041, "mov rdx, [rax]"], [2042, "mov rsi, [rbp+var_188]"], [2043, "mov eax, [rbp+var_18C]"], [2044, "movsxd rcx, eax"], [2045, "mov rax, rcx"], [2046, "shl rax, 4"], [2047, "add rax, rcx"], [2048, "shl rax, 3"], [2049, "add rax, rsi"], [2050, "add rax, 0D8h"], [2051, "mov rsi, [rax]"], [2052, "mov rax, [rbp+var_188]"], [2053, "mov rax, [rax+18h]"], [2054, "sub rsp, 8"], [2055, "push 3"], [2056, "mov r9d, offset aOff"], [2057, "mov r8d, edi"], [2058, "mov ecx, r10d"], [2059, "mov rdi, rax"], [2060, "call _XDrawString"], [2061, "add rsp, 10h"]], "data_dep": [[8, 7], [9, 8], [10, 7], [12, 11], [13, 6], [14, 13], [15, 14], [16, 15], [17, 6], [18, 7], [20, 18], [21, 20], [22, 17], [22, 21], [23, 22], [24, 23], [25, 24], [26, 25], [27, 26], [28, 6], [29, 7], [30, 29], [31, 30], [32, 31], [33, 30], [33, 32], [34, 33], [35, 34], [35, 28], [36, 35], [37, 36], [38, 6], [39, 7], [40, 39], [41, 40], [42, 41], [43, 40], [43, 42], [44, 43], [45, 38], [45, 44], [46, 45], [47, 46], [48, 47], [49, 37], [49, 48], [50, 27], [50, 49], [51, 50], [53, 6], [54, 7], [55, 54], [56, 55], [57, 56], [58, 55], [58, 57], [59, 58], [60, 59], [60, 53], [61, 60], [62, 61], [63, 62], [63, 51], [64, 6], [65, 64], [67, 65], [68, 66], [68, 67], [69, 68], [70, 69], [72, 63], [73, 72], [74, 73], [75, 6], [76, 75], [77, 76], [77, 70], [78, 77], [79, 6], [80, 7], [81, 80], [82, 81], [83, 82], [84, 81], [84, 83], [85, 84], [86, 85], [86, 79], [87, 86], [88, 87], [89, 88], [90, 70], [91, 89], [92, 90], [92, 91], [93, 6], [94, 7], [95, 94], [96, 95], [97, 96], [98, 95], [98, 97], [99, 98], [100, 93], [100, 99], [101, 100], [102, 101], [103, 102], [104, 103], [104, 92], [105, 104], [107, 6], [108, 107], [109, 108], [110, 6], [111, 7], [112, 111], [113, 112], [114, 113], [115, 112], [115, 114], [116, 115], [117, 116], [117, 110], [118, 117], [119, 118], [120, 119], [120, 109], [121, 120], [122, 6], [123, 7], [124, 123], [125, 124], [126, 125], [127, 126], [127, 124], [128, 127], [129, 122], [129, 128], [130, 129], [131, 130], [132, 131], [133, 132], [133, 121], [134, 133], [135, 6], [136, 135], [137, 136], [138, 137], [139, 6], [140, 139], [141, 6], [142, 7], [143, 142], [144, 143], [145, 144], [146, 143], [146, 145], [147, 146], [148, 147], [148, 141], [149, 148], [150, 149], [151, 6], [152, 151], [153, 150], [154, 152], [156, 6], [157, 156], [158, 157], [158, 70], [159, 158], [160, 6], [161, 160], [162, 70], [162, 161], [163, 162], [164, 6], [165, 164], [166, 163], [168, 166], [169, 6], [170, 7], [171, 170], [172, 171], [173, 172], [174, 171], [174, 173], [175, 174], [176, 175], [176, 169], [177, 176], [178, 177], [179, 178], [180, 179], [181, 63], [182, 180], [182, 181], [183, 182], [184, 6], [185, 7], [186, 185], [187, 186], [188, 187], [189, 186], [189, 188], [190, 189], [191, 190], [191, 184], [192, 191], [193, 192], [194, 193], [195, 194], [196, 6], [197, 7], [198, 197], [199, 198], [200, 199], [201, 198], [201, 200], [202, 201], [203, 196], [203, 202], [204, 203], [205, 204], [206, 6], [207, 7], [208, 207], [209, 208], [210, 209], [211, 210], [211, 208], [212, 211], [213, 206], [213, 212], [214, 213], [215, 214], [216, 6], [217, 216], [218, 5], [219, 70], [220, 219], [221, 217], [223, 218], [225, 6], [226, 225], [227, 70], [227, 226], [228, 70], [229, 228], [230, 6], [231, 230], [232, 6], [233, 7], [234, 233], [235, 234], [236, 235], [237, 234], [237, 236], [238, 237], [239, 232], [239, 238], [240, 239], [241, 240], [242, 241], [243, 242], [244, 63], [245, 244], [245, 243], [246, 245], [247, 6], [248, 7], [249, 248], [250, 249], [251, 250], [252, 249], [252, 251], [253, 252], [254, 253], [254, 247], [255, 254], [256, 255], [257, 256], [258, 257], [259, 6], [260, 7], [261, 260], [262, 261], [263, 262], [264, 261], [264, 263], [265, 264], [266, 259], [266, 265], [267, 266], [268, 267], [269, 6], [270, 7], [271, 270], [272, 271], [273, 272], [274, 271], [274, 273], [275, 274], [276, 275], [276, 269], [277, 276], [278, 277], [279, 6], [280, 279], [281, 5], [282, 229], [283, 231], [284, 246], [285, 280], [287, 281], [288, 134], [288, 268], [288, 124], [288, 105], [288, 95], [288, 205], [289, 7], [290, 6], [291, 289], [292, 290], [301, 300], [304, 302], [305, 301], [305, 304], [306, 305], [307, 306], [308, 307], [309, 308], [311, 310], [312, 311], [314, 313], [315, 314], [317, 316], [318, 317], [320, 319], [321, 320], [323, 322], [324, 323], [326, 325], [327, 326], [329, 328], [330, 329], [332, 331], [333, 332], [335, 334], [336, 335], [338, 337], [339, 338], [341, 340], [342, 341], [344, 343], [345, 344], [347, 346], [348, 347], [350, 349], [351, 350], [353, 352], [354, 353], [356, 355], [357, 356], [359, 358], [360, 359], [362, 361], [363, 362], [365, 364], [366, 365], [368, 367], [369, 368], [374, 373], [375, 411], [375, 371], [376, 375], [377, 374], [378, 377], [379, 378], [381, 380], [384, 382], [385, 384], [385, 381], [386, 385], [387, 386], [389, 388], [390, 411], [390, 371], [391, 390], [392, 389], [393, 392], [394, 393], [395, 394], [397, 394], [397, 396], [399, 394], [400, 399], [401, 394], [402, 401], [402, 400], [404, 402], [404, 403], [405, 404], [406, 397], [406, 387], [406, 405], [407, 401], [407, 402], [407, 394], [408, 407], [409, 408], [410, 409], [411, 411], [411, 371], [412, 371], [412, 411], [413, 412], [416, 411], [416, 371], [417, 416], [419, 418], [419, 417], [420, 419], [421, 420], [424, 423], [425, 424], [426, 425], [427, 424], [427, 426], [428, 427], [429, 428], [429, 422], [430, 429], [431, 430], [433, 432], [434, 431], [435, 433], [438, 437], [439, 438], [440, 439], [443, 442], [444, 443], [445, 444], [446, 445], [446, 443], [447, 446], [448, 447], [448, 441], [449, 448], [450, 449], [451, 450], [452, 451], [455, 454], [456, 455], [457, 456], [458, 455], [458, 457], [459, 458], [460, 459], [460, 453], [461, 460], [462, 461], [465, 462], [465, 464], [467, 466], [470, 468], [471, 467], [471, 470], [472, 471], [473, 472], [474, 473], [474, 465], [476, 475], [477, 476], [479, 478], [480, 477], [480, 479], [481, 480], [483, 482], [484, 483], [485, 484], [486, 485], [487, 486], [489, 486], [489, 488], [491, 486], [492, 491], [493, 486], [494, 493], [494, 492], [496, 495], [496, 494], [497, 496], [500, 499], [501, 500], [502, 501], [503, 502], [505, 504], [505, 502], [507, 502], [508, 507], [509, 502], [510, 509], [510, 508], [512, 510], [512, 511], [513, 512], [514, 513], [514, 505], [514, 474], [514, 497], [514, 489], [515, 502], [515, 514], [515, 493], [515, 509], [515, 486], [516, 515], [519, 518], [520, 519], [521, 520], [522, 519], [522, 521], [523, 522], [524, 517], [524, 523], [525, 524], [526, 525], [528, 527], [529, 526], [529, 528], [530, 435], [530, 529], [533, 532], [534, 533], [535, 534], [536, 533], [536, 535], [537, 536], [538, 537], [538, 531], [539, 538], [540, 539], [541, 540], [542, 541], [543, 531], [543, 542], [546, 545], [547, 546], [548, 547], [549, 546], [549, 548], [550, 549], [551, 544], [551, 550], [552, 551], [553, 552], [556, 555], [557, 556], [558, 557], [559, 556], [559, 558], [560, 559], [561, 560], [561, 554], [562, 561], [563, 562], [565, 564], [567, 452], [568, 516], [569, 530], [570, 565], [572, 566], [576, 575], [577, 576], [578, 577], [579, 576], [579, 578], [580, 579], [581, 580], [581, 574], [582, 581], [583, 582], [584, 583], [585, 584], [588, 587], [589, 588], [590, 589], [591, 588], [591, 590], [592, 591], [593, 586], [593, 592], [594, 593], [595, 594], [598, 597], [598, 595], [600, 599], [603, 601], [604, 600], [604, 603], [605, 604], [606, 605], [607, 606], [607, 598], [609, 608], [610, 609], [612, 611], [613, 612], [613, 610], [614, 613], [616, 615], [617, 616], [618, 617], [619, 618], [620, 619], [622, 619], [622, 621], [624, 619], [625, 624], [626, 619], [627, 625], [627, 626], [629, 627], [629, 628], [630, 629], [633, 632], [634, 633], [635, 634], [636, 635], [638, 637], [638, 635], [640, 635], [641, 640], [642, 635], [643, 641], [643, 642], [645, 643], [645, 644], [646, 645], [647, 646], [647, 638], [647, 630], [647, 607], [647, 622], [648, 635], [648, 647], [648, 626], [648, 619], [648, 642], [649, 648], [652, 651], [653, 652], [654, 653], [655, 652], [655, 654], [656, 655], [657, 650], [657, 656], [658, 657], [659, 658], [661, 660], [662, 659], [662, 661], [663, 662], [663, 435], [666, 665], [667, 666], [668, 667], [669, 668], [669, 666], [670, 669], [671, 670], [671, 664], [672, 671], [673, 672], [674, 673], [675, 674], [676, 664], [676, 675], [679, 678], [680, 679], [681, 680], [682, 679], [682, 681], [683, 682], [684, 677], [684, 683], [685, 684], [686, 685], [689, 688], [690, 689], [691, 690], [692, 689], [692, 691], [693, 692], [694, 687], [694, 693], [695, 694], [696, 695], [698, 697], [700, 585], [701, 649], [702, 663], [703, 698], [705, 699], [707, 706], [708, 707], [709, 708], [711, 710], [714, 712], [715, 714], [715, 711], [716, 715], [717, 716], [718, 717], [719, 716], [721, 720], [724, 722], [725, 721], [725, 724], [726, 725], [727, 726], [728, 726], [729, 727], [731, 728], [735, 734], [736, 735], [737, 736], [738, 411], [738, 371], [739, 738], [740, 418], [741, 739], [741, 740], [742, 741], [743, 742], [746, 745], [747, 746], [748, 747], [749, 746], [749, 748], [750, 749], [751, 750], [751, 744], [752, 751], [753, 752], [755, 754], [756, 753], [757, 755], [761, 760], [764, 763], [765, 764], [766, 765], [767, 764], [767, 766], [768, 767], [769, 762], [769, 768], [770, 769], [771, 770], [773, 772], [774, 771], [775, 773], [777, 776], [777, 758], [778, 777], [780, 779], [783, 782], [784, 783], [785, 784], [786, 783], [786, 785], [787, 786], [788, 787], [788, 781], [789, 788], [790, 789], [792, 791], [793, 790], [793, 792], [794, 793], [797, 796], [798, 797], [799, 798], [800, 797], [800, 799], [801, 800], [802, 795], [802, 801], [803, 802], [804, 803], [805, 804], [806, 805], [807, 795], [807, 806], [810, 809], [811, 810], [812, 811], [813, 812], [813, 810], [814, 813], [815, 814], [815, 808], [816, 815], [817, 816], [820, 819], [821, 820], [822, 821], [823, 820], [823, 822], [824, 823], [825, 818], [825, 824], [826, 825], [827, 826], [829, 828], [830, 818], [831, 572], [831, 705], [832, 780], [833, 830], [834, 794], [835, 829], [837, 831], [839, 838], [840, 839], [841, 840], [843, 842], [844, 843], [845, 844], [847, 846], [848, 847], [849, 848], [851, 850], [852, 851], [853, 852], [855, 854], [856, 855], [857, 856], [858, 857], [860, 859], [863, 861], [864, 860], [864, 863], [865, 864], [866, 865], [867, 858], [869, 867], [870, 866], [872, 871], [875, 873], [876, 875], [876, 872], [877, 876], [878, 877], [880, 879], [883, 881], [884, 883], [884, 880], [885, 884], [886, 885], [887, 880], [887, 886], [889, 888], [892, 890], [893, 889], [893, 892], [894, 893], [895, 894], [896, 895], [896, 887], [898, 897], [901, 899], [902, 898], [902, 901], [903, 902], [904, 903], [905, 896], [905, 904], [906, 858], [908, 906], [909, 905], [911, 910], [914, 912], [915, 914], [915, 911], [916, 915], [917, 916], [918, 858], [920, 918], [921, 917], [923, 922], [926, 924], [927, 923], [927, 926], [928, 927], [929, 928], [930, 858], [932, 930], [933, 929], [935, 934], [938, 936], [939, 938], [939, 935], [940, 939], [941, 940], [942, 858], [944, 942], [945, 941], [946, 941], [947, 572], [947, 837], [947, 705], [948, 870], [949, 909], [950, 921], [952, 946], [955, 947], [957, 956], [960, 959], [961, 960], [962, 961], [963, 960], [963, 962], [964, 963], [965, 958], [965, 964], [966, 965], [967, 966], [969, 968], [970, 967], [971, 969], [973, 972], [974, 973], [976, 975], [979, 978], [980, 979], [981, 980], [982, 981], [982, 979], [983, 982], [984, 983], [984, 977], [985, 984], [986, 985], [988, 987], [989, 986], [989, 988], [990, 989], [993, 992], [994, 993], [995, 994], [996, 993], [996, 995], [997, 996], [998, 991], [998, 997], [999, 998], [1000, 999], [1001, 1000], [1002, 1001], [1003, 1002], [1003, 1000], [1004, 1003], [1005, 1004], [1005, 991], [1008, 1007], [1009, 1008], [1010, 1009], [1011, 1008], [1011, 1010], [1012, 1011], [1013, 1006], [1013, 1012], [1014, 1013], [1015, 1014], [1018, 1017], [1019, 1018], [1020, 1019], [1021, 1018], [1021, 1020], [1022, 1021], [1023, 1022], [1023, 1016], [1024, 1023], [1025, 1024], [1027, 1026], [1028, 1016], [1029, 955], [1030, 976], [1031, 1028], [1032, 990], [1033, 1027], [1035, 1029], [1038, 1037], [1039, 1038], [1040, 1039], [1041, 1040], [1043, 1042], [1044, 1043], [1045, 1044], [1047, 1046], [1050, 1048], [1051, 1050], [1051, 1047], [1052, 1051], [1053, 1052], [1054, 1053], [1055, 1054], [1057, 1056], [1060, 1058], [1061, 1057], [1061, 1060], [1062, 1061], [1063, 1062], [1064, 1062], [1066, 1064], [1069, 1068], [1070, 1069], [1072, 1071], [1074, 1073], [1077, 1076], [1078, 1077], [1079, 1078], [1080, 1077], [1080, 1079], [1081, 1080], [1082, 1081], [1082, 1075], [1083, 1082], [1084, 1083], [1086, 1085], [1087, 1084], [1088, 1086], [1092, 1091], [1093, 1092], [1094, 1093], [1095, 1092], [1095, 1094], [1096, 1095], [1097, 1090], [1097, 1096], [1098, 1097], [1099, 1098], [1101, 1100], [1102, 1099], [1102, 1101], [1103, 1102], [1106, 1105], [1107, 1106], [1108, 1107], [1109, 1108], [1109, 1106], [1110, 1109], [1111, 1110], [1111, 1104], [1112, 1111], [1113, 1112], [1116, 1115], [1117, 1116], [1118, 1117], [1119, 1116], [1119, 1118], [1120, 1119], [1121, 1114], [1121, 1120], [1122, 1121], [1123, 1122], [1124, 1123], [1124, 1072], [1125, 1113], [1125, 1124], [1128, 1127], [1129, 1128], [1130, 1129], [1131, 1128], [1131, 1130], [1132, 1131], [1133, 1132], [1133, 1126], [1134, 1133], [1135, 1134], [1138, 1137], [1139, 1138], [1140, 1139], [1141, 1140], [1141, 1138], [1142, 1141], [1143, 1136], [1143, 1142], [1144, 1143], [1145, 1144], [1147, 1146], [1148, 568], [1148, 701], [1148, 833], [1149, 572], [1149, 837], [1149, 705], [1150, 1072], [1151, 1150], [1152, 1147], [1154, 1149], [1156, 1155], [1157, 1156], [1158, 1157], [1160, 1159], [1161, 1160], [1162, 1161], [1164, 1163], [1165, 1164], [1166, 1165], [1169, 1168], [1170, 1169], [1171, 1170], [1172, 1171], [1172, 1169], [1173, 1172], [1174, 1167], [1174, 1173], [1175, 1174], [1176, 1175], [1177, 1176], [1178, 1177], [1179, 1178], [1180, 1177], [1180, 1179], [1181, 1180], [1182, 1181], [1182, 1177], [1183, 1182], [1186, 1185], [1187, 1186], [1188, 1187], [1189, 1186], [1189, 1188], [1190, 1189], [1191, 1184], [1191, 1190], [1192, 1191], [1193, 1192], [1194, 1193], [1197, 1196], [1198, 1197], [1199, 1198], [1200, 1197], [1200, 1199], [1201, 1200], [1202, 1201], [1202, 1195], [1203, 1202], [1204, 1203], [1205, 1204], [1206, 1205], [1206, 1194], [1207, 1206], [1210, 1209], [1211, 1210], [1212, 1211], [1213, 1210], [1213, 1212], [1214, 1213], [1215, 1214], [1215, 1208], [1216, 1215], [1217, 1216], [1218, 1217], [1220, 1219], [1221, 1220], [1223, 1222], [1224, 1223], [1225, 1221], [1225, 1224], [1226, 1221], [1226, 1225], [1227, 1226], [1228, 1227], [1229, 1228], [1229, 1218], [1230, 1229], [1233, 1232], [1234, 1233], [1235, 1234], [1236, 1233], [1236, 1235], [1237, 1236], [1238, 1237], [1238, 1231], [1239, 1238], [1240, 1239], [1241, 1240], [1243, 1242], [1244, 1243], [1245, 1244], [1245, 1241], [1246, 1245], [1249, 1248], [1250, 1249], [1251, 1250], [1252, 1249], [1252, 1251], [1253, 1252], [1254, 1247], [1254, 1253], [1255, 1254], [1256, 1255], [1258, 1257], [1259, 1249], [1260, 572], [1260, 837], [1260, 705], [1260, 1154], [1263, 1259], [1266, 1258], [1268, 1260], [1271, 1270], [1272, 1271], [1274, 1273], [1275, 1274], [1276, 1272], [1276, 1275], [1277, 1272], [1277, 1276], [1278, 1277], [1279, 1278], [1281, 1280], [1282, 1269], [1282, 1447], [1283, 1282], [1285, 1284], [1286, 1283], [1287, 1286], [1288, 1283], [1288, 1287], [1289, 1288], [1290, 1289], [1290, 1283], [1291, 1290], [1292, 1283], [1292, 1285], [1293, 1292], [1293, 1291], [1294, 1281], [1294, 1293], [1295, 1294], [1296, 1295], [1297, 1296], [1298, 1297], [1300, 1299], [1301, 1269], [1301, 1447], [1302, 1301], [1303, 1302], [1304, 1303], [1305, 1304], [1305, 1302], [1306, 1305], [1307, 1302], [1307, 1306], [1308, 1307], [1310, 1309], [1311, 1310], [1312, 1311], [1312, 1308], [1313, 1312], [1314, 1300], [1314, 1313], [1315, 1314], [1316, 1315], [1320, 1317], [1320, 1319], [1321, 1320], [1322, 1321], [1323, 1320], [1324, 1323], [1327, 1279], [1327, 1324], [1327, 1327], [1327, 1326], [1328, 1320], [1329, 1328], [1330, 1447], [1330, 1269], [1331, 1330], [1333, 1332], [1336, 1335], [1337, 1269], [1337, 1447], [1338, 1337], [1339, 1338], [1340, 1339], [1341, 1338], [1341, 1340], [1342, 1341], [1343, 1342], [1343, 1338], [1344, 1343], [1346, 1345], [1347, 1346], [1348, 1344], [1348, 1347], [1349, 1348], [1350, 1336], [1350, 1349], [1352, 1350], [1354, 1353], [1355, 1354], [1357, 1356], [1360, 1359], [1363, 1362], [1364, 1363], [1365, 1364], [1366, 1363], [1366, 1365], [1367, 1366], [1368, 1361], [1368, 1367], [1369, 1368], [1370, 1369], [1372, 1371], [1373, 1370], [1374, 1372], [1377, 1376], [1378, 1447], [1378, 1269], [1379, 1378], [1380, 1379], [1381, 1380], [1382, 1379], [1382, 1381], [1383, 1382], [1384, 1379], [1384, 1383], [1385, 1384], [1387, 1386], [1388, 1387], [1389, 1385], [1389, 1388], [1390, 1389], [1391, 1377], [1391, 1390], [1392, 1391], [1392, 1262], [1392, 1392], [1395, 1394], [1396, 1395], [1397, 1396], [1398, 1395], [1398, 1397], [1399, 1398], [1400, 1393], [1400, 1399], [1401, 1400], [1402, 1401], [1404, 1403], [1405, 1404], [1405, 1402], [1406, 1405], [1409, 1408], [1410, 1409], [1411, 1410], [1412, 1411], [1412, 1409], [1413, 1412], [1414, 1413], [1414, 1407], [1415, 1414], [1416, 1415], [1417, 1416], [1417, 1327], [1418, 1417], [1421, 1420], [1422, 1421], [1423, 1422], [1424, 1421], [1424, 1423], [1425, 1424], [1426, 1419], [1426, 1425], [1427, 1426], [1428, 1427], [1431, 1430], [1432, 1431], [1433, 1432], [1434, 1431], [1434, 1433], [1435, 1434], [1436, 1435], [1436, 1429], [1437, 1436], [1438, 1437], [1440, 1439], [1441, 1268], [1441, 1446], [1442, 1320], [1443, 1442], [1444, 1440], [1446, 1441], [1447, 1269], [1447, 1447], [1448, 1447], [1449, 1448], [1452, 1451], [1453, 1452], [1454, 1453], [1455, 1452], [1455, 1454], [1456, 1455], [1457, 1450], [1457, 1456], [1458, 1457], [1459, 1458], [1461, 1460], [1463, 1459], [1464, 1461], [1468, 1467], [1469, 1468], [1470, 1469], [1472, 1471], [1473, 1472], [1474, 1473], [1476, 1475], [1477, 1476], [1478, 1477], [1480, 1479], [1481, 1480], [1482, 1481], [1484, 1483], [1487, 1485], [1488, 1484], [1488, 1487], [1489, 1488], [1490, 1489], [1492, 1491], [1495, 1493], [1496, 1492], [1496, 1495], [1497, 1496], [1498, 1497], [1499, 1497], [1501, 1499], [1505, 1504], [1508, 1507], [1509, 1508], [1510, 1509], [1511, 1510], [1511, 1508], [1512, 1511], [1513, 1512], [1513, 1506], [1514, 1513], [1515, 1514], [1517, 1516], [1518, 1515], [1519, 1517], [1521, 1520], [1522, 1521], [1524, 1523], [1527, 1526], [1528, 1527], [1529, 1528], [1530, 1527], [1530, 1529], [1531, 1530], [1532, 1525], [1532, 1531], [1533, 1532], [1534, 1533], [1536, 1535], [1537, 1534], [1537, 1536], [1538, 1537], [1541, 1540], [1542, 1541], [1543, 1542], [1544, 1543], [1544, 1541], [1545, 1544], [1546, 1545], [1546, 1539], [1547, 1546], [1548, 1547], [1549, 1548], [1550, 1549], [1551, 1548], [1551, 1550], [1552, 1551], [1553, 1539], [1553, 1552], [1556, 1555], [1557, 1556], [1558, 1557], [1559, 1556], [1559, 1558], [1560, 1559], [1561, 1554], [1561, 1560], [1562, 1561], [1563, 1562], [1566, 1565], [1567, 1566], [1568, 1567], [1569, 1568], [1569, 1566], [1570, 1569], [1571, 1570], [1571, 1564], [1572, 1571], [1573, 1572], [1575, 1574], [1576, 1564], [1577, 572], [1577, 837], [1577, 705], [1578, 1524], [1579, 1576], [1580, 1538], [1581, 1575], [1583, 1577], [1585, 1584], [1586, 1585], [1587, 1586], [1589, 1588], [1592, 1590], [1593, 1589], [1593, 1592], [1594, 1593], [1595, 1594], [1596, 1594], [1597, 1595], [1599, 1596], [1603, 1602], [1606, 1605], [1607, 1606], [1608, 1607], [1609, 1606], [1609, 1608], [1610, 1609], [1611, 1610], [1611, 1604], [1612, 1611], [1613, 1612], [1615, 1614], [1616, 1613], [1617, 1615], [1619, 1618], [1620, 1619], [1622, 1621], [1625, 1624], [1626, 1625], [1627, 1626], [1628, 1625], [1628, 1627], [1629, 1628], [1630, 1629], [1630, 1623], [1631, 1630], [1632, 1631], [1634, 1633], [1635, 1634], [1635, 1632], [1636, 1635], [1639, 1638], [1640, 1639], [1641, 1640], [1642, 1639], [1642, 1641], [1643, 1642], [1644, 1643], [1644, 1637], [1645, 1644], [1646, 1645], [1647, 1646], [1648, 1647], [1649, 1646], [1649, 1648], [1650, 1649], [1653, 1652], [1654, 1653], [1655, 1654], [1656, 1653], [1656, 1655], [1657, 1656], [1658, 1651], [1658, 1657], [1659, 1658], [1660, 1659], [1663, 1662], [1664, 1663], [1665, 1664], [1666, 1665], [1666, 1663], [1667, 1666], [1668, 1667], [1668, 1661], [1669, 1668], [1670, 1669], [1672, 1671], [1673, 1661], [1674, 1035], [1674, 572], [1674, 837], [1674, 1268], [1674, 705], [1674, 1446], [1674, 1583], [1674, 1154], [1675, 1622], [1676, 1673], [1677, 1636], [1678, 1672], [1680, 1674], [1682, 1681], [1683, 1682], [1684, 1683], [1686, 1685], [1689, 1687], [1690, 1686], [1690, 1689], [1691, 1690], [1692, 1691], [1693, 1691], [1694, 1692], [1696, 1693], [1700, 1699], [1703, 1702], [1704, 1703], [1705, 1704], [1706, 1703], [1706, 1705], [1707, 1706], [1708, 1707], [1708, 1701], [1709, 1708], [1710, 1709], [1712, 1711], [1713, 1710], [1714, 1712], [1716, 1715], [1717, 1716], [1719, 1718], [1722, 1721], [1723, 1722], [1724, 1723], [1725, 1722], [1725, 1724], [1726, 1725], [1727, 1720], [1727, 1726], [1728, 1727], [1729, 1728], [1731, 1730], [1732, 1731], [1732, 1729], [1733, 1732], [1736, 1735], [1737, 1736], [1738, 1737], [1739, 1736], [1739, 1738], [1740, 1739], [1741, 1740], [1741, 1734], [1742, 1741], [1743, 1742], [1744, 1743], [1744, 1734], [1747, 1746], [1748, 1747], [1749, 1748], [1750, 1747], [1750, 1749], [1751, 1750], [1752, 1751], [1752, 1745], [1753, 1752], [1754, 1753], [1757, 1756], [1758, 1757], [1759, 1758], [1760, 1757], [1760, 1759], [1761, 1760], [1762, 1755], [1762, 1761], [1763, 1762], [1764, 1763], [1766, 1765], [1767, 1755], [1768, 1446], [1768, 1680], [1768, 1583], [1768, 572], [1768, 837], [1768, 1154], [1768, 1268], [1768, 705], [1768, 1035], [1769, 1719], [1770, 1767], [1771, 1733], [1772, 1766], [1774, 1768], [1776, 1775], [1777, 1776], [1778, 1777], [1780, 1779], [1783, 1781], [1784, 1780], [1784, 1783], [1785, 1784], [1786, 1785], [1787, 1785], [1788, 1786], [1790, 1787], [1794, 1793], [1797, 1796], [1798, 1797], [1799, 1798], [1800, 1797], [1800, 1799], [1801, 1800], [1802, 1795], [1802, 1801], [1803, 1802], [1804, 1803], [1806, 1805], [1807, 1804], [1808, 1806], [1810, 1809], [1811, 1810], [1813, 1812], [1816, 1815], [1817, 1816], [1818, 1817], [1819, 1816], [1819, 1818], [1820, 1819], [1821, 1820], [1821, 1814], [1822, 1821], [1823, 1822], [1825, 1824], [1826, 1823], [1826, 1825], [1827, 1826], [1830, 1829], [1831, 1830], [1832, 1831], [1833, 1830], [1833, 1832], [1834, 1833], [1835, 1828], [1835, 1834], [1836, 1835], [1837, 1836], [1838, 1837], [1839, 1838], [1840, 1839], [1840, 1837], [1841, 1840], [1844, 1843], [1845, 1844], [1846, 1845], [1847, 1844], [1847, 1846], [1848, 1847], [1849, 1848], [1849, 1842], [1850, 1849], [1851, 1850], [1854, 1853], [1855, 1854], [1856, 1855], [1857, 1854], [1857, 1856], [1858, 1857], [1859, 1852], [1859, 1858], [1860, 1859], [1861, 1860], [1863, 1862], [1864, 1852], [1865, 1268], [1865, 705], [1865, 1446], [1865, 1680], [1865, 1583], [1865, 1154], [1865, 1035], [1865, 1774], [1865, 572], [1865, 837], [1866, 1813], [1867, 1864], [1868, 1827], [1869, 1863], [1871, 1865], [1873, 1872], [1874, 1873], [1875, 1874], [1877, 1876], [1880, 1878], [1881, 1877], [1881, 1880], [1882, 1881], [1883, 1882], [1884, 1882], [1885, 1883], [1887, 1884], [1891, 1890], [1894, 1893], [1895, 1894], [1896, 1895], [1897, 1896], [1897, 1894], [1898, 1897], [1899, 1892], [1899, 1898], [1900, 1899], [1901, 1900], [1903, 1902], [1904, 1901], [1905, 1903], [1907, 1906], [1908, 1907], [1910, 1909], [1913, 1912], [1914, 1913], [1915, 1914], [1916, 1913], [1916, 1915], [1917, 1916], [1918, 1911], [1918, 1917], [1919, 1918], [1920, 1919], [1922, 1921], [1923, 1920], [1923, 1922], [1924, 1923], [1927, 1926], [1928, 1927], [1929, 1928], [1930, 1929], [1930, 1927], [1931, 1930], [1932, 1925], [1932, 1931], [1933, 1932], [1934, 1933], [1935, 1934], [1936, 1935], [1938, 1937], [1939, 1938], [1941, 1940], [1942, 1941], [1943, 1939], [1943, 1942], [1944, 1939], [1944, 1943], [1945, 1944], [1945, 1936], [1946, 1945], [1949, 1948], [1950, 1949], [1951, 1950], [1952, 1949], [1952, 1951], [1953, 1952], [1954, 1953], [1954, 1947], [1955, 1954], [1956, 1955], [1959, 1958], [1960, 1959], [1961, 1960], [1962, 1959], [1962, 1961], [1963, 1962], [1964, 1963], [1964, 1957], [1965, 1964], [1966, 1965], [1968, 1967], [1969, 1959], [1970, 1871], [1970, 1583], [1970, 1154], [1970, 1035], [1970, 1774], [1970, 572], [1970, 837], [1970, 1268], [1970, 705], [1970, 1446], [1970, 1680], [1971, 1910], [1972, 1969], [1973, 1924], [1974, 1946], [1975, 1968], [1977, 1970], [1980, 1979], [1983, 1982], [1984, 1983], [1985, 1984], [1986, 1983], [1986, 1985], [1987, 1986], [1988, 1981], [1988, 1987], [1989, 1988], [1990, 1989], [1992, 1991], [1993, 1990], [1994, 1992], [1998, 1997], [1999, 1998], [2000, 1999], [2001, 2000], [2001, 1998], [2002, 2001], [2003, 2002], [2003, 1996], [2004, 2003], [2005, 2004], [2007, 2006], [2008, 2005], [2008, 2007], [2009, 2008], [2012, 2011], [2013, 2012], [2014, 2013], [2015, 2012], [2015, 2014], [2016, 2015], [2017, 2016], [2017, 2010], [2018, 2017], [2019, 2018], [2020, 2019], [2021, 2020], [2023, 2022], [2024, 2023], [2026, 2025], [2027, 2026], [2028, 2024], [2028, 2027], [2029, 2024], [2029, 2028], [2030, 2021], [2030, 2029], [2031, 2030], [2034, 2033], [2035, 2034], [2036, 2035], [2037, 2036], [2037, 2034], [2038, 2037], [2039, 2038], [2039, 2032], [2040, 2039], [2041, 2040], [2044, 2043], [2045, 2044], [2046, 2045], [2047, 2044], [2047, 2046], [2048, 2047], [2049, 2042], [2049, 2048], [2050, 2049], [2051, 2050], [2053, 2052], [2057, 2009], [2058, 2031], [2059, 2053], [2061, 2054]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f8d22cca63ba08634a4b40ef86166921bf41bbe3f1c0cc3af98f7806a283ba43_f8d22cca63ba08634a4b40ef86166921bf41bbe3f1c0cc3af98f7806a283ba43.jsonl.gz", "strip_func_name": "sub_4167AC", "query": "\n\n\nvoid __fastcall sub_4167AC(__int64 a1, int a2)\n{\nint v2; // eax\nint v3; // eax\nint v4; // ecx\nint v5; // eax\ndouble v6; // xmm0_8\ndouble v7; // xmm0_8\nint v8; // eax\nint v9; // eax\nunsigned int v10; // eax\nunsigned int v11; // eax\nint v12; // eax\nint v13; // eax\nunsigned __int64 v14; // rdx\nint v15; // eax\nint v16; // eax\nint v17; // eax\nint v18; // eax\nint v19; // er8\nunsigned int v20; // eax\nunsigned int v21; // eax\nint v22; // eax\nint v23; // eax\nint v24; // eax\nint v25; // eax\nint v26; // eax\nint v27; // eax\nint v28; // eax\nint v29; // eax\nint v30; // eax\nint v31; // eax\nint v32; // er8\nint v33; // eax\nint v34; // eax\nint v35; // eax\nunsigned int v36; // eax\nunsigned int v37; // eax\nunsigned __int64 v38; // rbx\nunsigned __int64 v39; // rbx\nunsigned __int64 v40; // rbx\nunsigned __int64 v41; // rbx\nunsigned int v42; // eax\nint v43; // er9\nint v44; // eax\nint v45; // eax\nunsigned int v46; // eax\nint v47; // ebx\nconst char *v48; // r12\nint v49; // ebx\nint v50; // er13\nint v51; // eax\nsize_t v52; // rax\n__int64 v53; // [rsp+10h] [rbp-180h]\n__int64 v54[19]; // [rsp+18h] [rbp-178h]\nchar v55[8]; // [rsp+B0h] [rbp-E0h] BYREF\nXRectangle v56; // [rsp+B8h] [rbp-D8h] BYREF\nchar s[8]; // [rsp+C0h] [rbp-D0h] BYREF\n__int64 v58; // [rsp+C8h] [rbp-C8h]\n__int16 v59[2]; // [rsp+DCh] [rbp-B4h] BYREF\nint v60; // [rsp+E0h] [rbp-B0h]\nint v61; // [rsp+E4h] [rbp-ACh]\nint v62; // [rsp+E8h] [rbp-A8h]\nunsigned int v63; // [rsp+ECh] [rbp-A4h]\nint v64; // [rsp+F0h] [rbp-A0h]\nint v65; // [rsp+F4h] [rbp-9Ch]\nchar *v66; // [rsp+F8h] [rbp-98h]\nint v67; // [rsp+100h] [rbp-90h]\nint v68; // [rsp+104h] [rbp-8Ch]\nint v69; // [rsp+108h] [rbp-88h]\nint v70; // [rsp+10Ch] [rbp-84h]\nvoid *ptr; // [rsp+110h] [rbp-80h]\nchar *src; // [rsp+118h] [rbp-78h]\nchar *format; // [rsp+120h] [rbp-70h]\nchar *dest; // [rsp+128h] [rbp-68h]\nint v75; // [rsp+134h] [rbp-5Ch]\nint ii; // [rsp+138h] [rbp-58h]\nint n; // [rsp+13Ch] [rbp-54h]\n_WORD *v78; // [rsp+140h] [rbp-50h]\n_WORD *v79; // [rsp+148h] [rbp-48h]\nunsigned int m; // [rsp+154h] [rbp-3Ch]\nunsigned int l; // [rsp+158h] [rbp-38h]\nunsigned int k; // [rsp+15Ch] [rbp-34h]\nunsigned int v83; // [rsp+160h] [rbp-30h]\nint v84; // [rsp+164h] [rbp-2Ch]\nunsigned int j; // [rsp+168h] [rbp-28h]\nunsigned int i; // [rsp+16Ch] [rbp-24h]\n\nswitch ( a2 )\n{\ncase 0:\nif ( *(_DWORD *)(a1 + 4232) )\nv2 = *(__int16 *)(*(_QWORD *)(a1 + 16 * (a2 + 101LL) + 16) + 14LL)\n+ *(_DWORD *)(a1 + 136LL * a2 + 300)\n+ (*(int *)(a1 + 136LL * a2 + 300) >> 1)\n+ 1;\nelse\nv2 = *(_DWORD *)(a1 + 136LL * a2 + 252);\nv62 = v2;\nv3 = *(_DWORD *)(a1 + 1044);\nif ( v3 < 84 )\nv3 = 84;\nv61 = v3 - 8;\nv59[0] = 0;\nv59[1] = v62 - 1;\nif ( v3 - 8 >= *(_DWORD *)(a1 + 1756) )\nv4 = *(_DWORD *)(a1 + 136LL * a2 + 296) * *(_DWORD *)(a1 + 1756);\nelse\nv4 = v61 * *(_DWORD *)(a1 + 136LL * a2 + 296);\nv59[0] = v4 + (*(int *)(a1 + 136LL * a2 + 296) >> 2);\nif ( *(int *)(a1 + 1752) > 0 )\n{\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3776));\nif ( v61 >= *(_DWORD *)(a1 + 1756) )\n{\nv5 = *(_DWORD *)(a1 + 1752);\nif ( v61 <= v5 )\nv5 = v61;\nXDrawImageString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(int *)(a1 + 136LL * a2 + 296) >> 2,\nv62 - (*(int *)(a1 + 136LL * a2 + 300) >> 1),\n*(const char **)(a1 + 1744),\nv5);\n}\nelse\n{\nv60 = *(_DWORD *)(a1 + 1756) - v61;\nXDrawImageString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(int *)(a1 + 136LL * a2 + 296) >> 2,\nv62 - (*(int *)(a1 + 136LL * a2 + 300) >> 1),\n(const char *)(*(_QWORD *)(a1 + 1744) + v60),\nv61);\n}\n}\nsub_416508(a1, a2, v59);\nbreak;\ncase 1:\n*(_QWORD *)s = 0LL;\nv58 = 0LL;\nfor ( i = 0; *(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL) > i; ++i )\n{\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 1904) == 1 )\n{\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3728));\nv21 = *(_DWORD *)(*(_QWORD *)(a1 + 8) + 404LL);\nif ( *(_DWORD *)(a1 + 1116) >= v21 )\nv21 = *(_DWORD *)(a1 + 1116);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n2 * *(_DWORD *)(a1 + 136LL * a2 + 296) * v21,\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\n\"OFF\",\n3);\n}\nelse\n{\nv53 = *(_QWORD *)(a1 + 3920);\nv54[0] = *(_QWORD *)(a1 + 3824);\nv54[1] = *(_QWORD *)(a1 + 3944);\nv54[2] = *(_QWORD *)(a1 + 3464);\nv54[3] = *(_QWORD *)(a1 + 3968);\nv54[4] = *(_QWORD *)(a1 + 3464);\nv54[5] = *(_QWORD *)(a1 + 3968);\nv54[6] = *(_QWORD *)(a1 + 3464);\nv54[7] = *(_QWORD *)(a1 + 3968);\nv54[8] = *(_QWORD *)(a1 + 3464);\nv54[9] = *(_QWORD *)(a1 + 3968);\nv54[10] = *(_QWORD *)(a1 + 3464);\nv54[11] = *(_QWORD *)(a1 + 3968);\nv54[12] = *(_QWORD *)(a1 + 3464);\nv54[13] = *(_QWORD *)(a1 + 3968);\nv54[14] = *(_QWORD *)(a1 + 3464);\nv54[15] = *(_QWORD *)(a1 + 3992);\nv54[16] = *(_QWORD *)(a1 + 3464);\nv54[17] = *(_QWORD *)(a1 + 3992);\nv54[18] = *(_QWORD *)(a1 + 3464);\nfor ( j = 0;\nj <= 8\n&& (!*(_DWORD *)(*(_QWORD *)(a1 + 8) + 4 * (j + 88LL) + 16)\n|| *(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2264) > (double)*(int *)(*(_QWORD *)(a1 + 8)\n+ 4 * (j + 88LL)\n+ 16));\n++j )\n{\n;\n}\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(&v53 + 2 * j));\nif ( *(_DWORD *)(a1 + 1472) )\n{\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 8) + 404LL) <= *(_DWORD *)(a1 + 1116) )\nv6 = (double)*(int *)(a1 + 1116);\nelse\nv6 = (double)*(int *)(*(_QWORD *)(a1 + 8) + 404LL);\nXFillRectangle(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n3 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 1) * *(_DWORD *)(a1 + 136LL * a2 + 300) + 3,\n(int)((double)*(__int16 *)(a1 + 136LL * a2 + 276)\n* *(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2264)\n/ v6),\n*(_DWORD *)(a1 + 136LL * a2 + 300) - 3);\n}\nelse\n{\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 8) + 404LL) <= *(_DWORD *)(a1 + 1116) )\nv7 = (double)*(int *)(a1 + 1116);\nelse\nv7 = (double)*(int *)(*(_QWORD *)(a1 + 8) + 404LL);\nXDrawRectangle(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n3 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 1) * *(_DWORD *)(a1 + 136LL * a2 + 300) + 3,\n(int)((double)*(__int16 *)(a1 + 136LL * a2 + 276)\n* *(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2264)\n/ v7),\n*(_DWORD *)(a1 + 136LL * a2 + 300) - 3);\n}\nif ( *(_DWORD *)(a1 + 1476) && *(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2264) >= 5.0 )\n{\nsprintf(s, \"%4.0fMHz\", *(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2272));\nif ( *(_DWORD *)(a1 + 1472) )\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), v54[2 * j]);\nelse\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3824));\nv8 = strlen(s);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n5 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\ns,\nv8);\n}\nif ( *(_DWORD *)(a1 + 1480) )\n{\nif ( !*(_DWORD *)(a1 + 1484) && !*(_DWORD *)(a1 + 1488) && !*(_DWORD *)(a1 + 1492) )\n{\nv63 = 50000 * *(_DWORD *)(*(_QWORD *)(a1 + 8) + 476LL);\nsprintf(\ns,\n\"%04llu %04llu:%04llu %04llu / %04llu\",\n*(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2128) / (unsigned __int64)v63,\n*(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2136) / (unsigned __int64)v63,\n*(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2144) / (unsigned __int64)v63,\n(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2160)\n+ *(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2184)\n+ *(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2152)\n+ *(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2168))\n/ (unsigned __int64)v63,\n*(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2176) / (unsigned __int64)v63);\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3824));\nv9 = strlen(s);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n13 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\ns,\nv9);\n}\n}\nelse if ( *(_DWORD *)(*(_QWORD *)(a1 + 8) + 1884LL) )\n{\nif ( !*(_DWORD *)(a1 + 1496) && *(__int64 *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2328) > 0 )\n{\nsprintf(s, \"%5ld\", *(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2328));\nv65 = strlen(s);\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3848));\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(_DWORD *)(a1 + 136LL * a2 + 248) - v65 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\ns,\nv65);\n}\nif ( !*(_DWORD *)(a1 + 1484) && !*(_DWORD *)(a1 + 1488) && !*(_DWORD *)(a1 + 1492) )\n{\nv56.x = 13 * *(_DWORD *)(a1 + 136LL * a2 + 296);\nv56.y = *(_DWORD *)(a1 + 136LL * a2 + 300) + (*(int *)(a1 + 136LL * a2 + 300) >> 2);\nv10 = *(_DWORD *)(*(_QWORD *)(a1 + 8) + 404LL);\nif ( *(_DWORD *)(a1 + 1116) >= v10 )\nLOWORD(v10) = *(_DWORD *)(a1 + 1116);\nv56.width = *(_DWORD *)(a1 + 136LL * a2 + 296) * 2 * (v10 - 7);\nv56.height = *(_DWORD *)(a1 + 136LL * a2 + 300) * *(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL);\nXSetClipRectangles(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), 0, 0, &v56, 1, 0);\nv84 = 0;\nv11 = *(_DWORD *)(*(_QWORD *)(a1 + 8) + 404LL);\nif ( *(_DWORD *)(a1 + 1116) >= v11 )\nv11 = *(_DWORD *)(a1 + 1116);\nv83 = 2 * v11;\ndo\n{\nif ( *(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 152LL * v84 + 2328) )\nv12 = strlen((const char *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 152LL * v84 + 2304 + 8));\nelse\nv12 = 0;\nv64 = v12;\nif ( v12 <= 0 )\nv13 = 0;\nelse\nv13 = v64 + 2;\nv83 -= v13;\nif ( v64 > 0 )\n{\nif ( v84 )\n{\nif ( !strcasecmp((const char *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 152LL * v84 + 2304), \"R\") )\nv14 = *(_QWORD *)(a1 + 3848);\nelse\nv14 = *(_QWORD *)(a1 + 3728);\n}\nelse\n{\nv14 = *(_QWORD *)(a1 + 4016);\n}\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), v14);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\nv83 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\n(const char *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 152LL * v84 + 2304 + 8),\nv64);\n}\n++v84;\n}\nwhile ( v84 <= 9 );\nXSetClipMask(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), 0LL);\n}\n}\nelse if ( !*(_DWORD *)(a1 + 1496)\n&& !*(_DWORD *)(a1 + 1484)\n&& !*(_DWORD *)(a1 + 1488)\n&& !*(_DWORD *)(a1 + 1492) )\n{\nsprintf(\ns,\n\"%016llu:%016llu\",\n*(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2032),\n*(_QWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2040));\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3824));\nv15 = strlen(s);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n13 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\ns,\nv15);\n}\nif ( *(_DWORD *)(a1 + 1484) )\n{\nsprintf(s, \"%5.2f\", *(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2192));\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3824));\nv16 = strlen(s);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n15 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\ns,\nv16);\n}\nif ( *(_DWORD *)(a1 + 1488) )\n{\nsprintf(s, \"%5.2f\", *(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2200));\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3824));\nv17 = strlen(s);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n23 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\ns,\nv17);\n}\nif ( *(_DWORD *)(a1 + 1492) )\n{\nsprintf(s, \"%5.2f\", *(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2208));\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3824));\nv18 = strlen(s);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n31 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\ns,\nv18);\n}\nif ( *(_DWORD *)(a1 + 1496) )\n{\nsprintf(s, \"%-3.1f\", *(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)i + 2264));\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3824));\nv19 = strlen(s);\nv20 = *(_DWORD *)(*(_QWORD *)(a1 + 8) + 404LL);\nif ( *(_DWORD *)(a1 + 1116) >= v20 )\nv20 = *(_DWORD *)(a1 + 1116);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n2 * *(_DWORD *)(a1 + 136LL * a2 + 296) * v20,\n(i + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\ns,\nv19);\n}\n}\n}\nbreak;\ncase 2:\nv66 = (char *)calloc(0x50uLL, 1uLL);\nfor ( k = 0; *(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL) > k; ++k )\n{\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)k + 1904) != 1 )\n{\n*(_WORD *)(*(_QWORD *)(a1 + 1584) + 8LL * (int)k) = (*(int *)(a1 + 136LL * a2 + 296) >> 1)\n+ 6\n* k\n* (*(_DWORD *)(a1 + 136LL * a2 + 296)\n+ (*(int *)(a1 + 136LL * a2 + 296) >> 1));\nv22 = *(_DWORD *)(a1 + 1192);\nif ( v22 < 10 )\nv22 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1584) + 8LL * (int)k + 2) = (int)((1.0\n- *(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2224))\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v22 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n*(_WORD *)(*(_QWORD *)(a1 + 1584) + 8LL * (int)k + 4) = (__int16)(6 * *(_WORD *)(a1 + 136LL * a2 + 296)) / 5;\nv23 = *(_DWORD *)(a1 + 1192);\nif ( v23 < 10 )\nv23 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1584) + 8LL * (int)k + 6) = (int)(*(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2224)\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v23 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n*(_WORD *)(*(_QWORD *)(a1 + 1592) + 8LL * (int)k) = *(_WORD *)(*(_QWORD *)(a1 + 1584) + 8LL * (int)k)\n+ (*(int *)(a1 + 136LL * a2 + 296) >> 1)\n+ *(_WORD *)(*(_QWORD *)(a1 + 1584) + 8LL * (int)k + 4);\nv24 = *(_DWORD *)(a1 + 1192);\nif ( v24 < 10 )\nv24 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1592) + 8LL * (int)k + 2) = (int)((1.0\n- *(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2256))\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v24 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n*(_WORD *)(*(_QWORD *)(a1 + 1592) + 8LL * (int)k + 4) = (__int16)(6 * *(_WORD *)(a1 + 136LL * a2 + 296)) / 5;\nv25 = *(_DWORD *)(a1 + 1192);\nif ( v25 < 10 )\nv25 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1592) + 8LL * (int)k + 6) = (int)(*(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2256)\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v25 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n*(_WORD *)(*(_QWORD *)(a1 + 1600) + 8LL * (int)k) = *(_WORD *)(*(_QWORD *)(a1 + 1592) + 8LL * (int)k)\n+ (*(int *)(a1 + 136LL * a2 + 296) >> 1)\n+ *(_WORD *)(*(_QWORD *)(a1 + 1592) + 8LL * (int)k + 4);\nv26 = *(_DWORD *)(a1 + 1192);\nif ( v26 < 10 )\nv26 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1600) + 8LL * (int)k + 2) = (int)((1.0\n- *(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2232))\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v26 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n*(_WORD *)(*(_QWORD *)(a1 + 1600) + 8LL * (int)k + 4) = (__int16)(6 * *(_WORD *)(a1 + 136LL * a2 + 296)) / 5;\nv27 = *(_DWORD *)(a1 + 1192);\nif ( v27 < 10 )\nv27 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1600) + 8LL * (int)k + 6) = (int)(*(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2232)\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v27 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n*(_WORD *)(*(_QWORD *)(a1 + 1608) + 8LL * (int)k) = *(_WORD *)(*(_QWORD *)(a1 + 1600) + 8LL * (int)k)\n+ (*(int *)(a1 + 136LL * a2 + 296) >> 1)\n+ *(_WORD *)(*(_QWORD *)(a1 + 1600) + 8LL * (int)k + 4);\nv28 = *(_DWORD *)(a1 + 1192);\nif ( v28 < 10 )\nv28 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1608) + 8LL * (int)k + 2) = (int)((1.0\n- *(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2240))\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v28 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n*(_WORD *)(*(_QWORD *)(a1 + 1608) + 8LL * (int)k + 4) = (__int16)(6 * *(_WORD *)(a1 + 136LL * a2 + 296)) / 5;\nv29 = *(_DWORD *)(a1 + 1192);\nif ( v29 < 10 )\nv29 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1608) + 8LL * (int)k + 6) = (int)(*(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2240)\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v29 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n*(_WORD *)(*(_QWORD *)(a1 + 1616) + 8LL * (int)k) = *(_WORD *)(*(_QWORD *)(a1 + 1608) + 8LL * (int)k)\n+ (*(int *)(a1 + 136LL * a2 + 296) >> 1)\n+ *(_WORD *)(*(_QWORD *)(a1 + 1608) + 8LL * (int)k + 4);\nv30 = *(_DWORD *)(a1 + 1192);\nif ( v30 < 10 )\nv30 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1616) + 8LL * (int)k + 2) = (int)((1.0\n- *(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2248))\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v30 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n*(_WORD *)(*(_QWORD *)(a1 + 1616) + 8LL * (int)k + 4) = (__int16)(6 * *(_WORD *)(a1 + 136LL * a2 + 296)) / 5;\nv31 = *(_DWORD *)(a1 + 1192);\nif ( v31 < 10 )\nv31 = 10;\n*(_WORD *)(*(_QWORD *)(a1 + 1616) + 8LL * (int)k + 6) = (int)(*(double *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * (int)k\n+ 2248)\n* (double)(*(_DWORD *)(a1 + 136LL * a2 + 300)\n* (v31 - 1))\n+ (double)*(int *)(a1 + 136LL * a2 + 300));\n}\n}\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3824));\nsprintf(\nv66,\n\"%6.2f%% %6.2f%% %6.2f%% %6.2f%% %6.2f%% %6.2f%%\",\n*(double *)(*(_QWORD *)(a1 + 8) + 408LL) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 416LL) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 448LL) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 424LL) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 432LL) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 440LL) * 100.0);\nv32 = strlen(v66);\nv33 = *(_DWORD *)(a1 + 1192);\nif ( v33 < 10 )\nv33 = 10;\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n6 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n*(_DWORD *)(a1 + 136LL * a2 + 300) + *(_DWORD *)(a1 + 136LL * a2 + 300) * (v33 + 1),\nv66,\nv32);\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3848));\nXFillRectangles(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(XRectangle **)(a1 + 1584),\n*(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL));\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3872));\nXFillRectangles(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(XRectangle **)(a1 + 1592),\n*(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL));\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3896));\nXFillRectangles(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(XRectangle **)(a1 + 1600),\n*(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL));\nXFillRectangles(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(XRectangle **)(a1 + 1608),\n*(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL));\nXFillRectangles(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(XRectangle **)(a1 + 1616),\n*(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL));\nif ( *(_DWORD *)(a1 + 1504) )\n{\nfor ( k = 0; *(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL) > k; ++k )\n{\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)k + 1904) != 1 )\n{\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 136LL * a2 + 312));\nsprintf(v66, \"#%-2d\", k);\nv34 = strlen(v66);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n0,\n(k + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\nv66,\nv34);\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3824));\nsprintf(\nv66,\n\"%6.2f%% %6.2f%% %6.2f%% %6.2f%% %6.2f%% %6.2f%%\",\n*(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)k + 2216) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)k + 2224) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)k + 2256) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)k + 2232) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)k + 2240) * 100.0,\n*(double *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)k + 2248) * 100.0);\nv35 = strlen(v66);\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n5 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(k + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\nv66,\nv35);\n}\n}\n}\nfree(v66);\nbreak;\ncase 3:\n*(_QWORD *)v55 = 0LL;\nfor ( l = 0; *(_DWORD *)(*(_QWORD *)(a1 + 8) + 360LL) > l; ++l )\n{\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)l + 1904) == 1 )\n{\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3728));\nv45 = *(_DWORD *)(a1 + 1264);\nif ( v45 < 10 )\nv45 = 10;\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n5 * *(_DWORD *)(a1 + 136LL * a2 + 296)\n+ (*(int *)(a1 + 136LL * a2 + 296) >> 2)\n+ 2 * l * 2 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(v45 + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\n\"OFF\",\n3);\n}\nelse\n{\nm = 0;\nv79 = *(_WORD **)(*(_QWORD *)(a1 + 1720) + 16LL * (int)l + 8);\nv78 = (_WORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1720) + 16LL * (int)l + 8) + 8LL);\nfor ( m = 0; ; v78 = (_WORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1720) + 16LL * (int)l + 8) + 8 * ((int)m + 1LL)) )\n{\nv36 = 4 * (*(_DWORD *)(*(_QWORD *)(a1 + 8) + 128LL) + 1);\nif ( *(_DWORD *)(a1 + 1260) >= v36 )\nv36 = *(_DWORD *)(a1 + 1260);\nif ( v36 - 1 <= m )\nbreak;\n*v79 = *v78 - *(_DWORD *)(a1 + 136LL * a2 + 296);\nv79[2] = v78[2] - *(_DWORD *)(a1 + 136LL * a2 + 296);\nv79[1] = v78[1];\nv79[3] = v78[3];\nv79 = (_WORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1720) + 16LL * (int)l + 8) + 8LL * (int)++m);\n}\nv78 = (_WORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1720) + 16LL * (int)l + 8) + 8LL * (int)m - 8);\nv37 = 4 * (*(_DWORD *)(*(_QWORD *)(a1 + 8) + 128LL) + 1);\nif ( *(_DWORD *)(a1 + 1260) >= v37 )\nLOWORD(v37) = *(_DWORD *)(a1 + 1260);\n*v79 = (v37 + 2) * *(_DWORD *)(a1 + 136LL * a2 + 296);\nv79[1] = v78[3];\nv79[2] = *v79 + *(_DWORD *)(a1 + 136LL * a2 + 296);\nv79[3] = *(_DWORD *)(a1 + 136LL * a2 + 252)\n* (*(_BYTE *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)l + 2298) & 0x7F)\n/ *(unsigned __int8 *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)l + 2282);\nv38 = *(_QWORD *)(a1 + 3848);\nv39 = (unsigned int)sub_424E6F(672153728LL, (unsigned __int16)l) | v38;\nv40 = (unsigned int)sub_424E8D(\n16842769LL,\n(unsigned __int16)*(_DWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)l + 1908)) | v39;\nv41 = (unsigned int)sub_424E6F(\n2155905152LL,\n(unsigned __int16)*(_DWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)l + 1912)) | v40;\nv42 = sub_424E8D(16843008LL, (unsigned __int16)*(_DWORD *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)l + 1916));\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), v42 | v41);\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 4LL * (int)l) == 1 )\nXDrawSegments(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(XSegment **)(*(_QWORD *)(a1 + 1720) + 16LL * (int)l + 8),\n*(_DWORD *)(*(_QWORD *)(a1 + 1720) + 16LL * (int)l));\nsprintf(\nv55,\n\"%3d\",\n*(unsigned __int8 *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)l + 2282)\n- (*(_BYTE *)(*(_QWORD *)(a1 + 8) + 1928LL * (int)l + 2298) & 0x7Fu));\nv43 = strlen(v55);\nv44 = *(_DWORD *)(a1 + 1264);\nif ( v44 < 10 )\nv44 = 10;\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n5 * *(_DWORD *)(a1 + 136LL * a2 + 296)\n+ (*(int *)(a1 + 136LL * a2 + 296) >> 2)\n+ 2 * l * 2 * *(_DWORD *)(a1 + 136LL * a2 + 296),\n(v44 + 2) * *(_DWORD *)(a1 + 136LL * a2 + 300),\nv55,\nv43);\n}\n}\nv69 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 8) + 1928LL * *(unsigned int *)(*(_QWORD *)(a1 + 8) + 460LL) + 2282)\n- (*(_BYTE *)(*(_QWORD *)(a1 + 8) + 1928LL * *(unsigned int *)(*(_QWORD *)(a1 + 8) + 460LL) + 2298) & 0x7F);\nif ( v69 <= 35 )\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3920));\nif ( v69 > 35 )\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3944));\nif ( v69 > 45 )\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3968));\nif ( v69 > 64 )\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3992));\nsprintf(v55, \"%3d\", (unsigned int)v69);\nv46 = 4 * (*(_DWORD *)(*(_QWORD *)(a1 + 8) + 128LL) + 1);\nif ( *(_DWORD *)(a1 + 1260) >= v46 )\nv46 = *(_DWORD *)(a1 + 1260);\nXDrawImageString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n*(_DWORD *)(a1 + 136LL * a2 + 296) * (v46 + 2) + (*(int *)(a1 + 136LL * a2 + 296) >> 1),\n*(_DWORD *)(a1 + 136LL * a2 + 252)\n* (*(_BYTE *)(*(_QWORD *)(a1 + 8) + 1928LL * *(unsigned int *)(*(_QWORD *)(a1 + 8) + 460LL) + 2298) & 0x7F)\n/ *(unsigned __int8 *)(*(_QWORD *)(a1 + 8) + 1928LL * *(unsigned int *)(*(_QWORD *)(a1 + 8) + 460LL) + 2282),\nv55,\n3);\nv68 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 8) + 1928LL * *(unsigned int *)(*(_QWORD *)(a1 + 8) + 460LL) + 2282)\n- *(_DWORD *)(*(_QWORD *)(a1 + 8) + 464LL);\nv67 = *(_DWORD *)(a1 + 136LL * a2 + 252)\n* *(_DWORD *)(*(_QWORD *)(a1 + 8) + 464LL)\n/ (unsigned int)*(unsigned __int8 *)(*(_QWORD *)(a1 + 8)\n+ 1928LL * *(unsigned int *)(*(_QWORD *)(a1 + 8) + 460LL)\n+ 2282);\nif ( v68 <= 35 )\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3920));\nif ( v68 > 35 )\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3944));\nif ( v68 > 45 )\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3968));\nif ( v68 > 64 )\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3992));\nsprintf(v55, \"%3d\", (unsigned int)v68);\nXDrawImageString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\n0,\nv67,\nv55,\n3);\nbreak;\ncase 4:\nif ( *(_DWORD *)(a1 + 1520) )\n{\nif ( *(_DWORD *)(a1 + 1568) >= *(_DWORD *)(a1 + 1572) )\n*(_DWORD *)(a1 + 1568) = 0;\nelse\n++*(_DWORD *)(a1 + 1568);\nif ( *(int *)(a1 + 1332) <= 79 )\nv47 = 80;\nelse\nv47 = *(_DWORD *)(a1 + 1332);\nv70 = v47 - strlen(*(const char **)(a1 + 72LL * a2 + 1104)) - 11;\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3752));\nv48 = (const char *)(*(_QWORD *)(a1 + 1576) + *(int *)(a1 + 1568));\nv49 = *(_DWORD *)(a1 + 136LL * a2 + 300);\nv50 = *(_DWORD *)(a1 + 136LL * a2 + 296);\nv51 = strlen(*(const char **)(a1 + 72LL * a2 + 1104));\nXDrawString(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(GC *)(a1 + 136LL * a2 + 232),\nv50 * (v51 + 2),\nv49,\nv48,\nv70);\n}\nbreak;\ncase 5:\nv75 = 16;\ndest = (char *)calloc(0x10uLL, 0x80uLL);\nformat = (char *)calloc(0x80uLL, 1uLL);\nsrc = (char *)calloc(0x80uLL, 1uLL);\nptr = calloc(0x42uLL, 1uLL);\nfor ( n = 0; n < v75; ++n )\n{\nsub_4038B2(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 40LL * n + 568), 0LL, (__int64)ptr);\nv52 = strlen((const char *)(*(_QWORD *)(a1 + 8) + 40LL * n + 528 + 12));\nsprintf(\nformat,\n\"%08X %s%%%zdc\",\n*(unsigned int *)(*(_QWORD *)(a1 + 8) + 40LL * n + 564),\n(const char *)(*(_QWORD *)(a1 + 8) + 40LL * n + 528 + 12),\n24 - v52);\nsprintf(src, format, 32LL);\nstrcat(dest, src);\nfor ( ii = 0; ii <= 14; ++ii )\n{\nstrncat(dest, (const char *)ptr + 4 * ii, 4uLL);\n*(_WORD *)&dest[strlen(dest)] = 32;\n}\nstrncat(dest, (const char *)ptr + 4 * ii, 4uLL);\nsprintf(src, \" #%-2d\\n\", *(unsigned int *)(*(_QWORD *)(a1 + 8) + 40LL * n + 536));\nstrcat(dest, src);\n}\nfree(ptr);\nfree(src);\nfree(format);\nXSetForeground(*(Display **)(a1 + 24), *(GC *)(a1 + 136LL * a2 + 232), *(_QWORD *)(a1 + 3752));\n*(_QWORD *)(a1 + 72LL * a2 + 1060) = sub_405D1A(\n*(Display **)(a1 + 24),\n*(_QWORD *)(a1 + 136LL * a2 + 216),\n*(_XGC **)(a1 + 136LL * a2 + 232),\n*(int *)(a1 + 136LL * a2 + 296) >> 1,\n*(_DWORD *)(a1 + 136LL * a2 + 300)\n+ (*(int *)(a1 + 136LL * a2 + 300) >> 2)\n+ *(_DWORD *)(a1 + 136LL * a2 + 300)\n+ (*(int *)(a1 + 136LL * a2 + 300) >> 1),\ndest,\n*(_DWORD *)(a1 + 136LL * a2 + 300) + (*(int *)(a1 + 136LL * a2 + 300) >> 2));\nfree(dest);\nbreak;\ndefault:\nreturn;\n}\n}\n\n\n\nQ:[a1,a2,v53,v55,v56,s,v59,v60,v61,v62,v63,v64,v65,v66,v67,v68,v69,v70,ptr,src,format,dest,v75,ii,n,v78,v79,m,l,k,v83,v84,i,sub_4167AC,sub_416508,sub_424E6F,sub_424E8D,sub_4038B2,sub_405D1A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'A', 'a2': 'G', 'v53': 'Bar', 'v55': 'str_1', 'v56': 'R', 's': 'str', 'v59': 'Origin', 'v60': 'KeyShift', 'v61': 'KeyStop', 'v62': 'edline', 'v63': 'LoopTime', 'v64': 'l_0', 'v65': 'l', 'v66': 'str_0', 'v67': 'yCold', 'v68': 'ColdValue', 'v69': 'HotValue', 'v70': 'padding', 'ptr': 'binStr', 'src': 'str_2', 'format': 'mask', 'dest': 'items', 'v75': 'Rows', 'ii': 'H', 'n': 'row', 'v78': 'V', 'v79': 'U', 'm': 'i_0', 'l': 'cpu_1', 'k': 'cpu_0', 'v83': 'L', 'v84': 'depth', 'i': 'cpu', 'sub_4167AC': 'DrawLayout', 'sub_416508': 'DrawCursor', 'sub_424E6F': 'ROL32', 'sub_424E8D': 'ROR32', 'sub_4038B2': 'DumpRegister', 'sub_405D1A': 'XPrint'}"}
test_policy_priv_by_id
1f704ad36c4065c41e3b9d38534903b12f15636544135d4c064d093060bb8380
systemd
kdbus
NA
static int test_policy_priv_by_id(const char *bus, struct kdbus_conn *conn_dst, bool drop_second_user, int parent_status, int child_status) { int ret = 0; uint64_t expected_cookie = time(NULL) ^ 0xdeadbeef; ASSERT_RETURN(conn_dst); ret = RUN_UNPRIVILEGED_CONN(unpriv, bus, ({ ret = kdbus_msg_send(unpriv, NULL, expected_cookie, 0, 0, 0, conn_dst->id); ASSERT_EXIT(ret == child_status); })); ASSERT_RETURN(ret >= 0); ret = kdbus_msg_recv_poll(conn_dst, 300, NULL, NULL); ASSERT_RETURN(ret == parent_status); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41D23C", "function_addr": 4313660, "binary_name": "1f704ad36c4065c41e3b9d38534903b12f15636544135d4c064d093060bb8380.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_40], rsi"], [5, "mov eax, edx"], [6, "mov [rbp+var_48], ecx"], [7, "mov [rbp+var_4C], r8d"], [8, "mov [rbp+var_44], al"], [9, "mov [rbp+var_4], 0"], [10, "mov edi, 0"], [11, "call _time"], [12, "mov edx, 0DEADBEEFh"], [13, "xor rax, rdx"], [14, "mov [rbp+var_10], rax"], [15, "cmp [rbp+var_40], 0"], [16, "jnz short loc_41D2B5"], [17, "mov rax, cs:stderr"], [18, "mov r9d, 1Bh"], [19, "mov r8d, offset aTestPolicyPriv"], [20, "mov ecx, offset aTestPolicyPriv_0"], [21, "mov edx, offset aConnDst_0"], [22, "mov esi, offset aAssertionSFail_16"], [23, "mov rdi, rax"], [24, "mov eax, 0"], [25, "call _fprintf"], [26, "mov eax, 2"], [27, "jmp locret_41D5A8"], [28, "call _fork"], [29, "mov [rbp+pid], eax"], [30, "cmp [rbp+pid], 0"], [31, "jnz loc_41D409"], [32, "mov esi, 0FFFEh"], [33, "mov edi, 0FFFEh"], [34, "call sub_405F22"], [35, "mov [rbp+status], eax"], [36, "mov eax, [rbp+status]"], [37, "test eax, eax"], [38, "jz short loc_41D319"], [39, "mov rax, cs:stderr"], [40, "mov r9d, 1Dh"], [41, "mov r8d, offset aTestPolicyPriv"], [42, "mov ecx, offset aTestPolicyPriv_0"], [43, "mov edx, offset aRet0_26"], [44, "mov esi, offset aAssertionSFail_16"], [45, "mov rdi, rax"], [46, "mov eax, 0"], [47, "call _fprintf"], [48, "mov eax, [rbp+status]"], [49, "mov edi, eax"], [50, "call __exit"], [51, "mov rax, [rbp+var_38]"], [52, "mov ecx, 0"], [53, "mov edx, 0"], [54, "mov esi, 0"], [55, "mov rdi, rax"], [56, "call sub_402ED7"], [57, "mov [rbp+var_20], rax"], [58, "cmp [rbp+var_20], 0"], [59, "jnz short loc_41D378"], [60, "mov rax, cs:stderr"], [61, "mov r9d, 1Dh"], [62, "mov r8d, offset aTestPolicyPriv"], [63, "mov ecx, offset aTestPolicyPriv_0"], [64, "mov edx, offset aUnpriv_0"], [65, "mov esi, offset aAssertionSFail_16"], [66, "mov rdi, rax"], [67, "mov eax, 0"], [68, "call _fprintf"], [69, "mov edi, 1"], [70, "call __exit"], [71, "mov rax, [rbp+var_40]"], [72, "mov rcx, [rax+8]"], [73, "mov rdx, [rbp+var_10]"], [74, "mov rax, [rbp+var_20]"], [75, "sub rsp, 8"], [76, "push rcx"], [77, "mov r9d, 0"], [78, "mov r8d, 0"], [79, "mov ecx, 0"], [80, "mov esi, 0"], [81, "mov rdi, rax"], [82, "call sub_4040AB"], [83, "add rsp, 10h"], [84, "mov [rbp+status], eax"], [85, "mov eax, [rbp+status]"], [86, "cmp [rbp+var_4C], eax"], [87, "jz short loc_41D3F3"], [88, "mov rax, cs:stderr"], [89, "mov r9d, 21h "], [90, "mov r8d, offset aTestPolicyPriv"], [91, "mov ecx, offset aTestPolicyPriv_0"], [92, "mov edx, offset aRetChildStatus_0"], [93, "mov esi, offset aAssertionSFail_16"], [94, "mov rdi, rax"], [95, "mov eax, 0"], [96, "call _fprintf"], [97, "mov edi, 1"], [98, "call __exit"], [99, "mov rax, [rbp+var_20]"], [100, "mov rdi, rax"], [101, "call sub_4038F7"], [102, "mov edi, 0"], [103, "call __exit"], [104, "cmp [rbp+pid], 0"], [105, "jle loc_41D4FF"], [106, "lea rcx, [rbp+status]"], [107, "mov eax, [rbp+pid]"], [108, "mov edx, 0"], [109, "mov rsi, rcx"], [110, "mov edi, eax"], [111, "call _waitpid"], [112, "mov [rbp+var_18], eax"], [113, "mov eax, [rbp+var_18]"], [114, "cmp eax, [rbp+pid]"], [115, "jz short loc_41D46D"], [116, "mov rax, cs:stderr"], [117, "mov r9d, 1Dh"], [118, "mov r8d, offset aTestPolicyPriv"], [119, "mov ecx, offset aTestPolicyPriv_0"], [120, "mov edx, offset aRpidPid_5"], [121, "mov esi, offset aAssertionSFail_16"], [122, "mov rdi, rax"], [123, "mov eax, 0"], [124, "call _fprintf"], [125, "mov eax, 2"], [126, "jmp locret_41D5A8"], [127, "mov eax, [rbp+status]"], [128, "and eax, 7Fh"], [129, "test eax, eax"], [130, "jz short loc_41D4B0"], [131, "mov rax, cs:stderr"], [132, "mov r9d, 1Dh"], [133, "mov r8d, offset aTestPolicyPriv"], [134, "mov ecx, offset aTestPolicyPriv_0"], [135, "mov edx, offset aRet0x7f0_4"], [136, "mov esi, offset aAssertionSFail_16"], [137, "mov rdi, rax"], [138, "mov eax, 0"], [139, "call _fprintf"], [140, "mov eax, 2"], [141, "jmp locret_41D5A8"], [142, "mov eax, [rbp+status]"], [143, "sar eax, 8"], [144, "movzx eax, al"], [145, "test eax, eax"], [146, "jz short loc_41D4F6"], [147, "mov rax, cs:stderr"], [148, "mov r9d, 1Dh"], [149, "mov r8d, offset aTestPolicyPriv"], [150, "mov ecx, offset aTestPolicyPriv_0"], [151, "mov edx, offset aRet0xff0080_4"], [152, "mov esi, offset aAssertionSFail_16"], [153, "mov rdi, rax"], [154, "mov eax, 0"], [155, "call _fprintf"], [156, "mov eax, 2"], [157, "jmp locret_41D5A8"], [158, "mov [rbp+status], 0"], [159, "jmp short loc_41D505"], [160, "mov eax, [rbp+pid]"], [161, "mov [rbp+status], eax"], [162, "mov eax, [rbp+status]"], [163, "mov [rbp+var_4], eax"], [164, "cmp [rbp+var_4], 0"], [165, "jns short loc_41D547"], [166, "mov rax, cs:stderr"], [167, "mov r9d, 23h "], [168, "mov r8d, offset aTestPolicyPriv"], [169, "mov ecx, offset aTestPolicyPriv_0"], [170, "mov edx, offset aRet0_27"], [171, "mov esi, offset aAssertionSFail_16"], [172, "mov rdi, rax"], [173, "mov eax, 0"], [174, "call _fprintf"], [175, "mov eax, 2"], [176, "jmp short locret_41D5A8"], [177, "mov rax, [rbp+var_40]"], [178, "mov ecx, 0"], [179, "mov edx, 0"], [180, "mov esi, 12Ch"], [181, "mov rdi, rax"], [182, "call sub_4052C2"], [183, "mov [rbp+var_4], eax"], [184, "mov eax, [rbp+var_4]"], [185, "cmp eax, [rbp+var_48]"], [186, "jz short loc_41D5A3"], [187, "mov rax, cs:stderr"], [188, "mov r9d, 26h "], [189, "mov r8d, offset aTestPolicyPriv"], [190, "mov ecx, offset aTestPolicyPriv_0"], [191, "mov edx, offset aRetParentStatu_0"], [192, "mov esi, offset aAssertionSFail_16"], [193, "mov rdi, rax"], [194, "mov eax, 0"], [195, "call _fprintf"], [196, "mov eax, 2"], [197, "jmp short locret_41D5A8"], [198, "mov eax, 0"], [199, "leave"], [200, "retn"]], "data_dep": [[8, 5], [13, 12], [13, 11], [14, 13], [15, 4], [16, 15], [23, 17], [29, 28], [30, 29], [31, 30], [35, 34], [36, 35], [37, 36], [38, 37], [45, 39], [48, 35], [49, 48], [51, 3], [55, 51], [57, 56], [58, 57], [59, 58], [66, 60], [71, 4], [72, 71], [73, 14], [74, 57], [75, 2], [76, 72], [81, 74], [83, 75], [84, 82], [85, 84], [86, 85], [86, 7], [87, 86], [94, 88], [99, 57], [100, 99], [104, 29], [105, 104], [107, 29], [109, 106], [110, 107], [112, 111], [113, 112], [114, 113], [114, 29], [115, 114], [122, 116], [128, 127], [129, 128], [130, 129], [137, 131], [143, 142], [144, 143], [145, 144], [146, 145], [153, 147], [160, 29], [161, 160], [162, 161], [162, 158], [163, 162], [164, 163], [165, 164], [172, 166], [177, 4], [181, 177], [183, 182], [184, 183], [185, 6], [185, 184], [186, 185], [193, 187], [200, 156], [200, 175], [200, 196], [200, 125], [200, 198], [200, 26], [200, 140]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1f704ad36c4065c41e3b9d38534903b12f15636544135d4c064d093060bb8380_1f704ad36c4065c41e3b9d38534903b12f15636544135d4c064d093060bb8380.jsonl.gz", "strip_func_name": "sub_41D23C", "query": "\n\n\n__int64 __fastcall sub_41D23C(char *a1, __int64 a2, __int64 a3, int a4, int a5)\n{\n__int64 result; // rax\nint status; // [rsp+2Ch] [rbp-24h] BYREF\nvoid *v9; // [rsp+30h] [rbp-20h]\n__pid_t v10; // [rsp+38h] [rbp-18h]\n__pid_t pid; // [rsp+3Ch] [rbp-14h]\n__int64 v12; // [rsp+40h] [rbp-10h]\nint v13; // [rsp+4Ch] [rbp-4h]\n\nv13 = 0;\nv12 = time(0LL) ^ 0xDEADBEEFLL;\nif ( !a2 )\n{\nfprintf(\nstderr,\n\"Assertion '%s' failed in %s(), %s:%d\\n\",\n\"conn_dst\",\n\"test_policy_priv_by_id\",\n\"test-policy-priv.c\",\n27LL);\nreturn 2LL;\n}\npid = fork();\nif ( !pid )\n{\nstatus = sub_405F22(0xFFFEu, 0xFFFEu);\nif ( status )\n{\nfprintf(\nstderr,\n\"Assertion '%s' failed in %s(), %s:%d\\n\",\n\"ret == 0\",\n\"test_policy_priv_by_id\",\n\"test-policy-priv.c\",\n29LL);\n_exit(status);\n}\nv9 = sub_402ED7(a1, 0LL, 0LL, 0LL);\nif ( !v9 )\n{\nfprintf(\nstderr,\n\"Assertion '%s' failed in %s(), %s:%d\\n\",\n\"unpriv\",\n\"test_policy_priv_by_id\",\n\"test-policy-priv.c\",\n29LL);\n_exit(1);\n}\nif ( a5 != (unsigned int)sub_4040AB((__int64)v9, 0LL, v12, 0LL, 0LL, 0LL, *(_QWORD *)(a2 + 8)) )\n{\nfprintf(\nstderr,\n\"Assertion '%s' failed in %s(), %s:%d\\n\",\n\"ret == child_status\",\n\"test_policy_priv_by_id\",\n\"test-policy-priv.c\",\n33LL);\n_exit(1);\n}\nsub_4038F7((__int64)v9);\n_exit(0);\n}\nif ( pid <= 0 )\n{\nstatus = pid;\n}\nelse\n{\nv10 = waitpid(pid, &status, 0);\nif ( v10 != pid )\n{\nfprintf(\nstderr,\n\"Assertion '%s' failed in %s(), %s:%d\\n\",\n\"rpid == pid\",\n\"test_policy_priv_by_id\",\n\"test-policy-priv.c\",\n29LL);\nreturn 2LL;\n}\nif ( (status & 0x7F) != 0 )\n{\nfprintf(\nstderr,\n\"Assertion '%s' failed in %s(), %s:%d\\n\",\n\"(((ret) & 0x7f) == 0)\",\n\"test_policy_priv_by_id\",\n\"test-policy-priv.c\",\n29LL);\nreturn 2LL;\n}\nif ( BYTE1(status) )\n{\nfprintf(\nstderr,\n\"Assertion '%s' failed in %s(), %s:%d\\n\",\n\"(((ret) & 0xff00) >> 8) == 0\",\n\"test_policy_priv_by_id\",\n\"test-policy-priv.c\",\n29LL);\nreturn 2LL;\n}\nstatus = 0;\n}\nv13 = status;\nif ( status >= 0 )\n{\nv13 = sub_4052C2((int *)a2, 300, 0LL, 0LL);\nif ( v13 == a4 )\n{\nresult = 0LL;\n}\nelse\n{\nfprintf(\nstderr,\n\"Assertion '%s' failed in %s(), %s:%d\\n\",\n\"ret == parent_status\",\n\"test_policy_priv_by_id\",\n\"test-policy-priv.c\",\n38LL);\nresult = 2LL;\n}\n}\nelse\n{\nfprintf(\nstderr,\n\"Assertion '%s' failed in %s(), %s:%d\\n\",\n\"ret >= 0\",\n\"test_policy_priv_by_id\",\n\"test-policy-priv.c\",\n35LL);\nresult = 2LL;\n}\nreturn result;\n}\n\n\n\nQ:[a4,a1,a2,a5,a3,status,v9,v10,v12,sub_41D23C,sub_405F22,sub_402ED7,sub_4040AB,sub_4038F7,sub_4052C2,]\nAssistant: ", "hints": "[]", "response": "{'a4': 'parent_status', 'a1': 'bus', 'a2': 'conn_dst', 'a5': 'child_status', 'a3': 'drop_second_user', 'status': 'ret_0', 'v9': 'unpriv', 'v10': 'rpid', 'v12': 'expected_cookie', 'sub_41D23C': 'test_policy_priv_by_id', 'sub_405F22': 'drop_privileges', 'sub_402ED7': 'kdbus_hello', 'sub_4040AB': 'kdbus_msg_send', 'sub_4038F7': 'kdbus_conn_free', 'sub_4052C2': 'kdbus_msg_recv_poll'}"}
re_string_realloc_buffers
fe061f006c9207a403c62f4326f1088f1778f9ddddd6b2b4a2e47dc4d592c0fc
msysgit
msysgit
NA
static reg_errcode_t internal_function re_string_realloc_buffers (re_string_t *pstr, int new_buf_len) { #ifdef RE_ENABLE_I18N if (pstr->mb_cur_max > 1) { wint_t *new_wcs; /* Avoid overflow in realloc. */ const size_t max_object_size = MAX (sizeof (wint_t), sizeof (int)); if (BE (SIZE_MAX / max_object_size < new_buf_len, 0)) return REG_ESPACE; new_wcs = re_realloc (pstr->wcs, wint_t, new_buf_len); if (BE (new_wcs == NULL, 0)) return REG_ESPACE; pstr->wcs = new_wcs; if (pstr->offsets != NULL) { int *new_offsets = re_realloc (pstr->offsets, int, new_buf_len); if (BE (new_offsets == NULL, 0)) return REG_ESPACE; pstr->offsets = new_offsets; } } #endif /* RE_ENABLE_I18N */ if (pstr->mbs_allocated) { unsigned char *new_mbs = re_realloc (pstr->mbs, unsigned char, new_buf_len); if (BE (new_mbs == NULL, 0)) return REG_ESPACE; pstr->mbs = new_mbs; } pstr->bufs_len = new_buf_len; return REG_NOERROR; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_429AA8", "function_addr": 4364968, "binary_name": "fe061f006c9207a403c62f4326f1088f1778f9ddddd6b2b4a2e47dc4d592c0fc.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov rax, [rbp+var_18]"], [6, "movzx eax, byte ptr [rax+4Bh]"], [7, "test al, al"], [8, "jz short loc_429B24"], [9, "mov rax, [rbp+var_18]"], [10, "mov rax, [rax+8]"], [11, "test rax, rax"], [12, "jz short loc_429AEB"], [13, "mov eax, [rbp+var_1C]"], [14, "movsxd rdx, eax"], [15, "mov rax, [rbp+var_18]"], [16, "mov rax, [rax+8]"], [17, "mov rsi, rdx"], [18, "mov rdi, rax"], [19, "call _realloc"], [20, "jmp short loc_429AFD"], [21, "mov eax, [rbp+var_1C]"], [22, "cdqe"], [23, "mov esi, 1"], [24, "mov rdi, rax"], [25, "call _calloc"], [26, "mov [rbp+var_8], rax"], [27, "cmp [rbp+var_8], 0"], [28, "setz al"], [29, "movzx eax, al"], [30, "test rax, rax"], [31, "jz short loc_429B18"], [32, "mov eax, 0Ch"], [33, "jmp short locret_429B33"], [34, "mov rax, [rbp+var_18]"], [35, "mov rdx, [rbp+var_8]"], [36, "mov [rax+8], rdx"], [37, "mov rax, [rbp+var_18]"], [38, "mov edx, [rbp+var_1C]"], [39, "mov [rax+1Ch], edx"], [40, "mov eax, 0"], [41, "leave"], [42, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [9, 3], [10, 9], [11, 10], [12, 11], [13, 4], [14, 13], [15, 3], [16, 15], [17, 14], [18, 16], [21, 4], [24, 21], [26, 19], [26, 25], [27, 26], [28, 27], [28, 19], [28, 25], [29, 28], [30, 29], [31, 30], [34, 3], [35, 26], [36, 34], [36, 35], [37, 3], [38, 4], [39, 38], [39, 37], [42, 32], [42, 40]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/fe061f006c9207a403c62f4326f1088f1778f9ddddd6b2b4a2e47dc4d592c0fc_fe061f006c9207a403c62f4326f1088f1778f9ddddd6b2b4a2e47dc4d592c0fc.jsonl.gz", "strip_func_name": "sub_429AA8", "query": "\n\n\n__int64 __fastcall sub_429AA8(__int64 a1, int a2)\n{\nvoid *v2; // rax\n\nif ( *(_BYTE *)(a1 + 75) )\n{\nif ( *(_QWORD *)(a1 + 8) )\nv2 = realloc(*(void **)(a1 + 8), a2);\nelse\nv2 = calloc(a2, 1uLL);\nif ( !v2 )\nreturn 12LL;\n*(_QWORD *)(a1 + 8) = v2;\n}\n*(_DWORD *)(a1 + 28) = a2;\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,sub_429AA8,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pstr', 'a2': 'new_buf_len', 'sub_429AA8': 're_string_realloc_buffers'}"}
get_udflag
252818bc5ed0beb9415d5d771c24cc24721386a04ac6ccdf6ba5672d5ecfa737
forth32
qtools
NA
unsigned int get_udflag() { return chipset[chip_type].udflag; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405A5A", "function_addr": 4217434, "binary_name": "252818bc5ed0beb9415d5d771c24cc24721386a04ac6ccdf6ba5672d5ecfa737.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, cs:dword_40C500"], [3, "movsxd rdx, eax"], [4, "mov rax, rdx"], [5, "shl rax, 4"], [6, "sub rax, rdx"], [7, "shl rax, 3"], [8, "add rax, 40C528h"], [9, "movzx eax, byte ptr [rax]"], [10, "movzx eax, al"], [11, "pop rbp"], [12, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [6, 3], [7, 6], [8, 7], [9, 8], [10, 9], [11, 0], [12, 10]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/252818bc5ed0beb9415d5d771c24cc24721386a04ac6ccdf6ba5672d5ecfa737_252818bc5ed0beb9415d5d771c24cc24721386a04ac6ccdf6ba5672d5ecfa737.jsonl.gz", "strip_func_name": "sub_405A5A", "query": "\n\n\n__int64 sub_405A5A()\n{\nreturn LOBYTE(dword_40C524[30 * dword_40C500 + 1]);\n}\n\n\n\nQ:[sub_405A5A,]\nAssistant: ", "hints": "[]", "response": "{'sub_405A5A': 'get_udflag'}"}
sim_tape_rdrlrev
b3a8b4769bdb267a1562d144bd5416f56584185a8ee940d909e9d5c1f4737051
open-simh
simh
NA
static t_stat sim_tape_rdrlrev (UNIT *uptr, t_mtrlnt *bc) { struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; t_stat status; *bc = 0; if (ctx == NULL) /* if not properly attached? */ return sim_messagef (SCPE_IERR, "Bad Attach\n"); /* that's a problem */ status = sim_tape_rdlntr (uptr, bc); /* read the record length */ sim_debug_unit (MTSE_DBG_STR, uptr, "rd_lntr: st: %d, lnt: %d, pos: %" T_ADDR_FMT "u\n", status, *bc, uptr->pos); return status; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_464EA8", "function_addr": 4607656, "binary_name": "b3a8b4769bdb267a1562d144bd5416f56584185a8ee940d909e9d5c1f4737051.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_18]"], [6, "mov rax, [rax+78h]"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_20]"], [9, "mov dword ptr [rax], 0"], [10, "cmp [rbp+var_8], 0"], [11, "jnz short loc_464EEE"], [12, "mov esi, offset aBadAttach"], [13, "mov edi, 65h "], [14, "mov eax, 0"], [15, "call sub_42C99F"], [16, "jmp locret_464F7B"], [17, "mov rdx, [rbp+var_20]"], [18, "mov rax, [rbp+var_18]"], [19, "mov rsi, rdx"], [20, "mov rdi, rax"], [21, "call sub_4644B3"], [22, "mov [rbp+var_C], eax"], [23, "mov rax, cs:qword_4DEDA0"], [24, "test rax, rax"], [25, "jz short loc_464F78"], [26, "cmp [rbp+var_18], 0"], [27, "jz short loc_464F78"], [28, "mov rax, [rbp+var_18]"], [29, "mov rax, [rax+0B0h]"], [30, "test rax, rax"], [31, "jz short loc_464F78"], [32, "mov rax, [rbp+var_18]"], [33, "mov edx, [rax+0B8h]"], [34, "mov rax, [rbp+var_18]"], [35, "mov rax, [rax+0B0h]"], [36, "mov eax, [rax+74h]"], [37, "or eax, edx"], [38, "test eax, eax"], [39, "jns short loc_464F78"], [40, "mov rax, [rbp+var_18]"], [41, "mov esi, [rax+44h]"], [42, "mov rax, [rbp+var_20]"], [43, "mov ecx, [rax]"], [44, "mov edx, [rbp+var_C]"], [45, "mov rax, [rbp+var_18]"], [46, "mov r9d, esi"], [47, "mov r8d, ecx"], [48, "mov ecx, edx"], [49, "mov edx, offset aRdLntrStDLntDP"], [50, "mov rsi, rax"], [51, "mov edi, 80000000h"], [52, "mov eax, 0"], [53, "call sub_42D2B9"], [54, "mov eax, [rbp+var_C]"], [55, "leave"], [56, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 4], [9, 8], [10, 7], [11, 10], [17, 4], [18, 3], [19, 17], [20, 18], [22, 21], [24, 23], [25, 24], [26, 3], [27, 26], [28, 3], [29, 28], [29, 9], [30, 29], [31, 30], [32, 3], [33, 32], [33, 9], [34, 3], [35, 34], [35, 9], [36, 9], [36, 35], [37, 33], [37, 36], [38, 37], [39, 38], [40, 3], [41, 40], [41, 9], [42, 4], [43, 9], [43, 42], [44, 22], [45, 3], [46, 41], [47, 43], [48, 44], [50, 45], [54, 22], [56, 15], [56, 54]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b3a8b4769bdb267a1562d144bd5416f56584185a8ee940d909e9d5c1f4737051_b3a8b4769bdb267a1562d144bd5416f56584185a8ee940d909e9d5c1f4737051.jsonl.gz", "strip_func_name": "sub_464EA8", "query": "\n\n\n__int64 __fastcall sub_464EA8(__int64 a1, unsigned int *a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nunsigned int v7; // [rsp+14h] [rbp-Ch]\n__int64 v8; // [rsp+18h] [rbp-8h]\n\nv8 = *(_QWORD *)(a1 + 120);\n*a2 = 0;\nif ( !v8 )\nreturn sub_42C99F(101, \"Bad Attach\\n\", a3, a4, a5, a6);\nv7 = sub_4644B3(a1, a2);\nif ( qword_4DEDA0\n&& a1\n&& *(_QWORD *)(a1 + 176)\n&& (*(_DWORD *)(a1 + 184) | *(_DWORD *)(*(_QWORD *)(a1 + 176) + 116LL)) < 0 )\n{\nsub_42D2B9(0x80000000, a1, \"rd_lntr: st: %d, lnt: %d, pos: %u\\n\", v7, *a2, *(unsigned int *)(a1 + 68));\n}\nreturn v7;\n}\n\n\n\nQ:[a1,a2,v7,v8,sub_464EA8,sub_42C99F,sub_4644B3,sub_42D2B9,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'uptr', 'a2': 'bc', 'v7': 'status', 'v8': 'ctx', 'sub_464EA8': 'sim_tape_rdrlrev', 'sub_42C99F': 'sim_messagef', 'sub_4644B3': 'sim_tape_rdlntr', 'sub_42D2B9': '_sim_debug_unit'}"}
pj_perror_2
d8d3ef21e51c96db765e8f0d32e6b1df14da5354e4a3a9cd3b6492c5bc4a8750
AonCyberLabs
D-Modem
NA
PJ_DEF(void) pj_perror_2(const char *sender, pj_status_t status, const char *title_fmt, ...) { va_list marker; va_start(marker, title_fmt); pj_perror_imp(2, sender, status, title_fmt, marker); va_end(marker); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_486832", "function_addr": 4745266, "binary_name": "d8d3ef21e51c96db765e8f0d32e6b1df14da5354e4a3a9cd3b6492c5bc4a8750.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0F0h"], [3, "mov [rbp+var_D8], rdi"], [4, "mov [rbp+var_DC], esi"], [5, "mov [rbp+var_E8], rdx"], [6, "mov [rbp+var_98], rcx"], [7, "mov [rbp+var_90], r8"], [8, "mov [rbp+var_88], r9"], [9, "test al, al"], [10, "jz short loc_48688A"], [11, "movaps [rbp+var_80], xmm0"], [12, "movaps [rbp+var_70], xmm1"], [13, "movaps [rbp+var_60], xmm2"], [14, "movaps [rbp+var_50], xmm3"], [15, "movaps [rbp+var_40], xmm4"], [16, "movaps [rbp+var_30], xmm5"], [17, "movaps [rbp+var_20], xmm6"], [18, "movaps [rbp+var_10], xmm7"], [19, "mov [rbp+var_C8], 18h"], [20, "mov [rbp+var_C4], 30h "], [21, "lea rax, [rbp+arg_0]"], [22, "mov [rbp+var_C0], rax"], [23, "lea rax, [rbp+var_B0]"], [24, "mov [rbp+var_B8], rax"], [25, "lea rsi, [rbp+var_C8]"], [26, "mov rcx, [rbp+var_E8]"], [27, "mov edx, [rbp+var_DC]"], [28, "mov rax, [rbp+var_D8]"], [29, "mov r8, rsi"], [30, "mov rsi, rax"], [31, "mov edi, 2"], [32, "call sub_486614"], [33, "nop"], [34, "leave"], [35, "retn"]], "data_dep": [[10, 9], [21, 9], [22, 21], [23, 21], [24, 23], [25, 19], [26, 5], [27, 4], [28, 3], [29, 25], [30, 28], [35, 32]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d8d3ef21e51c96db765e8f0d32e6b1df14da5354e4a3a9cd3b6492c5bc4a8750_d8d3ef21e51c96db765e8f0d32e6b1df14da5354e4a3a9cd3b6492c5bc4a8750.jsonl.gz", "strip_func_name": "sub_486832", "query": "\n\n\n__int64 sub_486832(__int64 a1, signed int a2, const char *a3, __int64 a4, __int64 a5, __int64 a6, ...)\n{\ngcc_va_list va; // [rsp+28h] [rbp-C8h] BYREF\n__int64 v8; // [rsp+58h] [rbp-98h]\n__int64 v9; // [rsp+60h] [rbp-90h]\n__int64 v10; // [rsp+68h] [rbp-88h]\n\nva_start(va, a6);\nv8 = a4;\nv9 = a5;\nv10 = a6;\nva[0].gp_offset = 24;\nreturn sub_486614(2u, a1, a2, a3, va);\n}\n\n\n\nQ:[a3,a1,a2,va,sub_486832,sub_486614,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'title_fmt', 'a1': 'sender', 'a2': 'status', 'va': 'marker', 'sub_486832': 'pj_perror_2', 'sub_486614': 'pj_perror_imp'}"}
check_find_3
658a799d933c82416c76088ba33f6049ac538ac4de5d9bb6696ad094043f2783
alliedvision
linux_nvidia_jetson
NA
static noinline void check_find_3(struct xarray *xa) { XA_STATE(xas, xa, 0); unsigned long i, j, k; void *entry; for (i = 0; i < 100; i++) { for (j = 0; j < 100; j++) { rcu_read_lock(); for (k = 0; k < 100; k++) { xas_set(&xas, j); xas_for_each_marked(&xas, entry, k, XA_MARK_0) ; if (j > k) XA_BUG_ON(xa, xas.xa_node != XAS_RESTART); } rcu_read_unlock(); } xa_store_index(xa, i, GFP_KERNEL); xa_set_mark(xa, i, XA_MARK_0); } xa_destroy(xa); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_430541", "function_addr": 4392257, "binary_name": "658a799d933c82416c76088ba33f6049ac538ac4de5d9bb6696ad094043f2783.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r14"], [3, "push r13"], [4, "push r12"], [5, "push rbx"], [6, "sub rsp, 0B0h"], [7, "mov [rbp+var_C8], rdi"], [8, "lea r12, [rbp+var_A0]"], [9, "mov r14, r12"], [10, "cmp cs:__asan_option_detect_stack_use_after_return, 0"], [11, "jz short loc_43057F"], [12, "mov edi, 80h"], [13, "call ___asan_stack_malloc_1"], [14, "test rax, rax"], [15, "jz short loc_43057F"], [16, "mov r12, rax"], [17, "lea rax, [r12+80h]"], [18, "mov rbx, rax"], [19, "mov qword ptr [r12], 41B58AB3h"], [20, "mov qword ptr [r12+8], offset a148488Xas1075"], [21, "mov qword ptr [r12+10h], offset sub_430541"], [22, "mov r13, r12"], [23, "shr r13, 3"], [24, "mov dword ptr [r13+7FFF8000h], 0F1F1F1F1h"], [25, "mov dword ptr [r13+7FFF8004h], 0F1F1h"], [26, "mov dword ptr [r13+7FFF800Ch], 0F3F3F3F3h"], [27, "lea rax, [rbx-50h]"], [28, "mov rdx, rax"], [29, "shr rdx, 3"], [30, "add rdx, 7FFF8000h"], [31, "movzx edx, byte ptr [rdx]"], [32, "test dl, dl"], [33, "jz short loc_4305ED"], [34, "mov rdi, rax"], [35, "call ___asan_report_store8"], [36, "mov rax, [rbp+var_C8]"], [37, "mov [rbx-50h], rax"], [38, "lea rax, [rbx-50h]"], [39, "add rax, 8"], [40, "mov rdx, rax"], [41, "shr rdx, 3"], [42, "add rdx, 7FFF8000h"], [43, "movzx edx, byte ptr [rdx]"], [44, "test dl, dl"], [45, "jz short loc_43061D"], [46, "mov rdi, rax"], [47, "call ___asan_report_store8"], [48, "mov qword ptr [rbx-48h], 0"], [49, "lea rax, [rbx-50h]"], [50, "add rax, 10h"], [51, "mov rdx, rax"], [52, "mov rax, rdx"], [53, "shr rax, 3"], [54, "add rax, 7FFF8000h"], [55, "movzx eax, byte ptr [rax]"], [56, "test al, al"], [57, "setnz cl"], [58, "test al, al"], [59, "setle al"], [60, "and eax, ecx"], [61, "test al, al"], [62, "jz short loc_430658"], [63, "mov rdi, rdx"], [64, "call ___asan_report_store1"], [65, "mov byte ptr [rbx-40h], 0"], [66, "lea rax, [rbx-50h]"], [67, "add rax, 11h"], [68, "mov rdx, rax"], [69, "shr rdx, 3"], [70, "add rdx, 7FFF8000h"], [71, "movzx edx, byte ptr [rdx]"], [72, "test dl, dl"], [73, "setnz cl"], [74, "mov rsi, rax"], [75, "and esi, 7"], [76, "cmp sil, dl"], [77, "setnl dl"], [78, "and edx, ecx"], [79, "test dl, dl"], [80, "jz short loc_430694"], [81, "mov rdi, rax"], [82, "call ___asan_report_store1"], [83, "mov byte ptr [rbx-3Fh], 0"], [84, "lea rax, [rbx-50h]"], [85, "add rax, 12h"], [86, "mov rdx, rax"], [87, "shr rdx, 3"], [88, "add rdx, 7FFF8000h"], [89, "movzx edx, byte ptr [rdx]"], [90, "test dl, dl"], [91, "setnz cl"], [92, "mov rsi, rax"], [93, "and esi, 7"], [94, "cmp sil, dl"], [95, "setnl dl"], [96, "and edx, ecx"], [97, "test dl, dl"], [98, "jz short loc_4306D0"], [99, "mov rdi, rax"], [100, "call ___asan_report_store1"], [101, "mov byte ptr [rbx-3Eh], 0"], [102, "lea rax, [rbx-50h]"], [103, "add rax, 13h"], [104, "mov rdx, rax"], [105, "shr rdx, 3"], [106, "add rdx, 7FFF8000h"], [107, "movzx edx, byte ptr [rdx]"], [108, "test dl, dl"], [109, "setnz cl"], [110, "mov rsi, rax"], [111, "and esi, 7"], [112, "cmp sil, dl"], [113, "setnl dl"], [114, "and edx, ecx"], [115, "test dl, dl"], [116, "jz short loc_43070C"], [117, "mov rdi, rax"], [118, "call ___asan_report_store1"], [119, "mov byte ptr [rbx-3Dh], 0"], [120, "lea rax, [rbx-50h]"], [121, "add rax, 18h"], [122, "mov rdx, rax"], [123, "shr rdx, 3"], [124, "add rdx, 7FFF8000h"], [125, "movzx edx, byte ptr [rdx]"], [126, "test dl, dl"], [127, "jz short loc_430735"], [128, "mov rdi, rax"], [129, "call ___asan_report_store8"], [130, "mov qword ptr [rbx-38h], 3"], [131, "lea rax, [rbx-50h]"], [132, "add rax, 20h "], [133, "mov rdx, rax"], [134, "shr rdx, 3"], [135, "add rdx, 7FFF8000h"], [136, "movzx edx, byte ptr [rdx]"], [137, "test dl, dl"], [138, "jz short loc_430762"], [139, "mov rdi, rax"], [140, "call ___asan_report_store8"], [141, "mov qword ptr [rbx-30h], 0"], [142, "lea rax, [rbx-50h]"], [143, "add rax, 28h "], [144, "mov rdx, rax"], [145, "shr rdx, 3"], [146, "add rdx, 7FFF8000h"], [147, "movzx edx, byte ptr [rdx]"], [148, "test dl, dl"], [149, "jz short loc_43078F"], [150, "mov rdi, rax"], [151, "call ___asan_report_store8"], [152, "mov qword ptr [rbx-28h], 0"], [153, "mov [rbp+var_C0], 0"], [154, "jmp loc_43094E"], [155, "mov [rbp+var_B8], 0"], [156, "jmp loc_4308FC"], [157, "call sub_40B398"], [158, "mov [rbp+var_B0], 0"], [159, "jmp loc_4308E1"], [160, "mov rdx, [rbp+var_B8]"], [161, "lea rax, [rbx-50h]"], [162, "mov rsi, rdx"], [163, "mov rdi, rax"], [164, "call sub_40C735"], [165, "mov rcx, [rbp+var_B0]"], [166, "lea rax, [rbx-50h]"], [167, "mov edx, 0"], [168, "mov rsi, rcx"], [169, "mov rdi, rax"], [170, "call sub_419D3B"], [171, "mov [rbp+var_A8], rax"], [172, "jmp short loc_430828"], [173, "mov rcx, [rbp+var_B0]"], [174, "lea rax, [rbx-50h]"], [175, "mov edx, 0"], [176, "mov rsi, rcx"], [177, "mov rdi, rax"], [178, "call sub_40D3D3"], [179, "mov [rbp+var_A8], rax"], [180, "cmp [rbp+var_A8], 0"], [181, "jnz short loc_430806"], [182, "mov rax, [rbp+var_B8]"], [183, "cmp rax, [rbp+var_B0]"], [184, "jbe loc_4308D9"], [185, "mov eax, cs:dword_4C4100"], [186, "add eax, 1"], [187, "mov cs:dword_4C4100, eax"], [188, "lea rax, [rbx-50h]"], [189, "add rax, 18h"], [190, "mov rdx, rax"], [191, "shr rdx, 3"], [192, "add rdx, 7FFF8000h"], [193, "movzx edx, byte ptr [rdx]"], [194, "test dl, dl"], [195, "jz short loc_43087A"], [196, "mov rdi, rax"], [197, "call ___asan_report_load8"], [198, "mov rax, [rbx-38h]"], [199, "cmp rax, 3"], [200, "jz short loc_4308CA"], [201, "mov edx, 43Fh"], [202, "mov esi, offset aCheckFind3"], [203, "mov edi, offset aBugAtSD"], [204, "mov eax, 0"], [205, "call _printf"], [206, "mov rax, [rbp+var_C8]"], [207, "mov rdi, rax"], [208, "call sub_421F07"], [209, "call ___asan_handle_no_return"], [210, "mov ecx, offset aCheckFind3_0"], [211, "mov edx, 43Fh"], [212, "mov esi, offset aLibTestXarrayC"], [213, "mov edi, offset a0_0"], [214, "call ___assert_fail"], [215, "mov eax, cs:dword_4C4140"], [216, "add eax, 1"], [217, "mov cs:dword_4C4140, eax"], [218, "add [rbp+var_B0], 1"], [219, "cmp [rbp+var_B0], 63h "], [220, "jbe loc_4307CC"], [221, "call sub_40B4BB"], [222, "add [rbp+var_B8], 1"], [223, "cmp [rbp+var_B8], 63h "], [224, "jbe loc_4307B7"], [225, "mov rcx, [rbp+var_C0]"], [226, "mov rax, [rbp+var_C8]"], [227, "mov edx, 24000C0h"], [228, "mov rsi, rcx"], [229, "mov rdi, rax"], [230, "call sub_422150"], [231, "mov rcx, [rbp+var_C0]"], [232, "mov rax, [rbp+var_C8]"], [233, "mov edx, 0"], [234, "mov rsi, rcx"], [235, "mov rdi, rax"], [236, "call sub_41F8A5"], [237, "add [rbp+var_C0], 1"], [238, "cmp [rbp+var_C0], 63h "], [239, "jbe loc_4307A7"], [240, "mov rax, [rbp+var_C8]"], [241, "mov rdi, rax"], [242, "call sub_4210F9"], [243, "nop"], [244, "cmp r14, r12"], [245, "jz short loc_4309A5"], [246, "mov qword ptr [r12], 45E0360Eh"], [247, "mov rax, 0F5F5F5F5F5F5F5F5h"], [248, "mov rdx, 0F5F5F5F5F5F5F5F5h"], [249, "mov [r13+7FFF8000h], rax"], [250, "mov [r13+7FFF8008h], rdx"], [251, "mov rax, [r12+78h]"], [252, "mov byte ptr [rax], 0"], [253, "jmp short loc_4309BB"], [254, "mov qword ptr [r13+7FFF8000h], 0"], [255, "mov dword ptr [r13+7FFF800Ch], 0"], [256, "add rsp, 0B0h"], [257, "pop rbx"], [258, "pop r12"], [259, "pop r13"], [260, "pop r14"], [261, "pop rbp"], [262, "retn"]], "data_dep": [[9, 8], [11, 10], [14, 13], [15, 14], [16, 14], [17, 14], [17, 8], [17, 16], [18, 17], [19, 8], [19, 16], [20, 8], [20, 16], [21, 8], [21, 16], [22, 8], [22, 16], [23, 22], [24, 23], [25, 23], [26, 23], [27, 17], [27, 26], [27, 18], [28, 27], [29, 28], [30, 29], [31, 26], [31, 30], [32, 31], [33, 32], [34, 27], [36, 7], [37, 18], [37, 36], [38, 18], [38, 36], [38, 37], [39, 38], [40, 39], [41, 40], [42, 41], [43, 42], [43, 37], [44, 43], [45, 44], [46, 39], [48, 18], [49, 18], [49, 39], [49, 48], [49, 47], [49, 37], [50, 49], [51, 50], [52, 51], [53, 52], [54, 53], [55, 54], [55, 48], [56, 55], [57, 56], [58, 56], [59, 58], [60, 59], [60, 57], [61, 60], [62, 61], [63, 51], [65, 18], [66, 61], [66, 37], [66, 18], [66, 65], [66, 64], [67, 66], [68, 67], [69, 68], [70, 69], [71, 65], [71, 70], [72, 71], [73, 72], [73, 57], [74, 67], [75, 74], [76, 72], [76, 75], [77, 76], [77, 72], [78, 77], [78, 73], [79, 78], [80, 79], [81, 67], [83, 18], [84, 83], [84, 82], [84, 67], [84, 37], [84, 18], [85, 84], [86, 85], [87, 86], [88, 87], [89, 88], [89, 83], [90, 89], [91, 90], [91, 73], [92, 85], [93, 92], [94, 90], [94, 93], [95, 90], [95, 94], [96, 95], [96, 91], [97, 96], [98, 97], [99, 85], [101, 18], [102, 85], [102, 37], [102, 18], [102, 101], [102, 100], [103, 102], [104, 103], [105, 104], [106, 105], [107, 106], [107, 101], [108, 107], [109, 91], [109, 108], [110, 103], [111, 110], [112, 111], [112, 108], [113, 108], [113, 112], [114, 109], [114, 113], [115, 114], [116, 115], [117, 103], [119, 18], [120, 37], [120, 18], [120, 119], [120, 118], [120, 103], [121, 120], [122, 121], [123, 122], [124, 123], [125, 124], [125, 119], [126, 125], [127, 126], [128, 121], [130, 18], [131, 37], [131, 18], [131, 130], [131, 129], [131, 121], [132, 131], [133, 132], [134, 133], [135, 134], [136, 135], [136, 130], [137, 136], [138, 137], [139, 132], [141, 18], [142, 37], [142, 140], [142, 18], [142, 132], [142, 141], [143, 142], [144, 143], [145, 144], [146, 145], [147, 146], [147, 141], [148, 147], [149, 148], [150, 143], [152, 18], [160, 222], [160, 155], [161, 182], [161, 65], [161, 83], [161, 19], [161, 37], [161, 18], [161, 130], [161, 157], [161, 152], [161, 101], [161, 119], [161, 216], [161, 26], [161, 21], [161, 48], [161, 25], [161, 20], [161, 141], [161, 24], [162, 160], [163, 161], [165, 158], [165, 218], [166, 19], [166, 37], [166, 18], [166, 130], [166, 152], [166, 101], [166, 119], [166, 26], [166, 21], [166, 48], [166, 25], [166, 164], [166, 20], [166, 141], [166, 24], [166, 65], [166, 83], [168, 165], [169, 166], [171, 170], [173, 218], [173, 158], [174, 18], [174, 130], [174, 152], [174, 26], [174, 101], [174, 119], [174, 170], [174, 21], [174, 48], [174, 178], [174, 25], [174, 20], [174, 141], [174, 24], [174, 19], [174, 65], [174, 83], [174, 37], [176, 173], [177, 174], [179, 178], [180, 171], [180, 179], [181, 180], [182, 222], [182, 155], [183, 182], [183, 218], [183, 158], [184, 183], [185, 187], [186, 185], [187, 186], [188, 65], [188, 83], [188, 186], [188, 37], [188, 18], [188, 130], [188, 152], [188, 26], [188, 101], [188, 119], [188, 21], [188, 48], [188, 25], [188, 20], [188, 141], [188, 24], [188, 19], [189, 188], [190, 189], [191, 190], [192, 191], [193, 152], [193, 26], [193, 21], [193, 101], [193, 119], [193, 192], [193, 48], [193, 25], [193, 20], [193, 141], [193, 24], [193, 19], [193, 130], [193, 65], [193, 83], [193, 37], [194, 193], [195, 194], [196, 189], [198, 21], [198, 48], [198, 25], [198, 20], [198, 141], [198, 24], [198, 19], [198, 65], [198, 83], [198, 37], [198, 18], [198, 130], [198, 152], [198, 26], [198, 101], [198, 119], [199, 198], [200, 199], [206, 7], [207, 206], [215, 217], [216, 215], [217, 216], [218, 218], [218, 158], [219, 158], [219, 218], [220, 219], [222, 155], [222, 222], [223, 222], [223, 155], [224, 223], [225, 237], [225, 153], [226, 7], [228, 225], [229, 226], [231, 153], [231, 237], [232, 7], [234, 231], [235, 232], [237, 153], [237, 237], [238, 237], [238, 153], [239, 238], [240, 7], [241, 240], [244, 9], [244, 8], [244, 16], [245, 244], [246, 8], [246, 16], [249, 23], [249, 247], [250, 248], [250, 23], [251, 8], [251, 250], [251, 16], [252, 251], [254, 23], [255, 23], [256, 6], [257, 5], [258, 4], [259, 3], [260, 2], [261, 0], [262, 242], [262, 251]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/658a799d933c82416c76088ba33f6049ac538ac4de5d9bb6696ad094043f2783_658a799d933c82416c76088ba33f6049ac538ac4de5d9bb6696ad094043f2783.jsonl.gz", "strip_func_name": "sub_430541", "query": "\n\n\nint __fastcall sub_430541(__int64 a1)\n{\nunsigned __int64 v1; // r12\n__int64 v2; // rax\n_DWORD *v3; // r13\nunsigned __int64 v4; // rsi\n_BYTE *v5; // rax\nunsigned __int64 v7; // [rsp+8h] [rbp-C8h]\nunsigned __int64 i; // [rsp+10h] [rbp-C0h]\nunsigned __int64 j; // [rsp+18h] [rbp-B8h]\nunsigned __int64 k; // [rsp+20h] [rbp-B0h]\n__int64 l; // [rsp+28h] [rbp-A8h]\nchar v12[160]; // [rsp+30h] [rbp-A0h] BYREF\n\nv7 = a1;\nv1 = (unsigned __int64)v12;\nif ( _asan_option_detect_stack_use_after_return )\n{\na1 = 128LL;\nv2 = __asan_stack_malloc_1();\nif ( v2 )\nv1 = v2;\n}\n*(_QWORD *)v1 = 1102416563LL;\n*(_QWORD *)(v1 + 8) = \"1 48 48 8 xas:1075\";\n*(_QWORD *)(v1 + 16) = sub_430541;\nv3 = (_DWORD *)(v1 >> 3);\nv3[536862720] = -235802127;\nv3[536862721] = 61937;\nv3[536862723] = -202116109;\nif ( *(_BYTE *)(((v1 + 48) >> 3) + 0x7FFF8000) )\n{\na1 = v1 + 48;\n__asan_report_store8();\n}\n*(_QWORD *)(v1 + 48) = v7;\nif ( *(_BYTE *)(((v1 + 56) >> 3) + 0x7FFF8000) )\n{\na1 = v1 + 56;\n__asan_report_store8();\n}\n*(_QWORD *)(v1 + 56) = 0LL;\nif ( *(char *)(((v1 + 64) >> 3) + 0x7FFF8000) < 0 )\n{\na1 = v1 + 64;\n__asan_report_store1();\n}\n*(_BYTE *)(v1 + 64) = 0;\nif ( *(_BYTE *)(((v1 + 65) >> 3) + 0x7FFF8000) != 0\n&& (char)((v1 + 65) & 7) >= *(_BYTE *)(((v1 + 65) >> 3) + 0x7FFF8000) )\n{\na1 = v1 + 65;\n__asan_report_store1();\n}\n*(_BYTE *)(v1 + 65) = 0;\nif ( *(_BYTE *)(((v1 + 66) >> 3) + 0x7FFF8000) != 0\n&& (char)((v1 + 66) & 7) >= *(_BYTE *)(((v1 + 66) >> 3) + 0x7FFF8000) )\n{\na1 = v1 + 66;\n__asan_report_store1();\n}\n*(_BYTE *)(v1 + 66) = 0;\nv4 = ((_BYTE)v1 + 67) & 7;\nif ( *(_BYTE *)(((v1 + 67) >> 3) + 0x7FFF8000) != 0 && (char)v4 >= *(_BYTE *)(((v1 + 67) >> 3) + 0x7FFF8000) )\n{\na1 = v1 + 67;\n__asan_report_store1();\n}\n*(_BYTE *)(v1 + 67) = 0;\nif ( *(_BYTE *)(((v1 + 72) >> 3) + 0x7FFF8000) )\n{\na1 = v1 + 72;\n__asan_report_store8();\n}\n*(_QWORD *)(v1 + 72) = 3LL;\nif ( *(_BYTE *)(((v1 + 80) >> 3) + 0x7FFF8000) )\n{\na1 = v1 + 80;\n__asan_report_store8();\n}\n*(_QWORD *)(v1 + 80) = 0LL;\nif ( *(_BYTE *)(((v1 + 88) >> 3) + 0x7FFF8000) )\n{\na1 = v1 + 88;\n__asan_report_store8();\n}\n*(_QWORD *)(v1 + 88) = 0LL;\nfor ( i = 0LL; i <= 0x63; ++i )\n{\nfor ( j = 0LL; j <= 0x63; ++j )\n{\nsub_40B398();\nfor ( k = 0LL; k <= 0x63; ++k )\n{\nsub_40C735(v1 + 48, j);\nv4 = k;\na1 = v1 + 48;\nfor ( l = sub_419D3B(v1 + 48, k, 0); l; l = sub_40D3D3(v1 + 48, k, 0) )\n{\nv4 = k;\na1 = v1 + 48;\n}\nif ( j > k )\n{\n++dword_4C4100;\nif ( *(_BYTE *)(((v1 + 72) >> 3) + 0x7FFF8000) )\n{\na1 = v1 + 72;\n__asan_report_load8();\n}\nif ( *(_QWORD *)(v1 + 72) != 3LL )\n{\nprintf(\"BUG at %s:%d\\n\", \"check_find_3\", 1087LL);\nsub_421F07(v7);\n__asan_handle_no_return();\n__assert_fail(\"0\", \"../../../lib/test_xarray.c\", 0x43Fu, \"check_find_3\");\n}\n++dword_4C4140;\n}\n}\nsub_40B4BB(a1, v4);\n}\nsub_422150(v7, i, 0x24000C0u);\nv4 = i;\na1 = v7;\nsub_41F8A5(v7, i, 0);\n}\nLODWORD(v5) = sub_4210F9(v7);\nif ( v12 == (char *)v1 )\n{\n*(_QWORD *)((v1 >> 3) + 0x7FFF8000) = 0LL;\n*(_DWORD *)((v1 >> 3) + 0x7FFF800C) = 0;\n}\nelse\n{\n*(_QWORD *)v1 = 1172321806LL;\n*(_QWORD *)((v1 >> 3) + 0x7FFF8000) = 0xF5F5F5F5F5F5F5F5LL;\n*(_QWORD *)((v1 >> 3) + 0x7FFF8008) = 0xF5F5F5F5F5F5F5F5LL;\nv5 = *(_BYTE **)(v1 + 120);\n*v5 = 0;\n}\nreturn (int)v5;\n}\n\n\n\nQ:[a1,l,sub_430541,sub_40B398,sub_40C735,sub_419D3B,sub_40D3D3,sub_421F07,sub_40B4BB,sub_422150,sub_41F8A5,sub_4210F9,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'xa', 'l': 'entry', 'sub_430541': 'check_find_3', 'sub_40B398': '_rcu_read_lock_memb_0', 'sub_40C735': 'xas_set', 'sub_419D3B': 'xas_find_marked', 'sub_40D3D3': 'xas_next_marked', 'sub_421F07': 'xa_dump', 'sub_40B4BB': '_rcu_read_unlock_memb_0', 'sub_422150': 'xa_store_index', 'sub_41F8A5': 'xa_set_mark', 'sub_4210F9': 'xa_destroy'}"}
msecs
31ae09a7412b8ca053e5c026e9c27b7129f96f308d2e0fcf57d9b6a45c5698b1
freak07
Kirisakura_Raviole
NA
static inline unsigned long long msecs(void) { struct timespec ts; unsigned long long msecs; clock_gettime(CLOCK_REALTIME, &ts); msecs = ts.tv_sec * 1000ull; msecs += ts.tv_nsec / 1000000ull; return msecs; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42FC0D", "function_addr": 4389901, "binary_name": "31ae09a7412b8ca053e5c026e9c27b7129f96f308d2e0fcf57d9b6a45c5698b1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "lea rax, [rbp+tp]"], [4, "mov rsi, rax"], [5, "mov edi, 0"], [6, "call _clock_gettime"], [7, "mov rax, [rbp+tp.tv_sec]"], [8, "imul rax, 3E8h"], [9, "mov [rbp+var_8], rax"], [10, "mov rax, [rbp+tp.tv_nsec]"], [11, "mov rdx, 431BDE82D7B634DBh"], [12, "mul rdx"], [13, "mov rax, rdx"], [14, "shr rax, 12h"], [15, "add [rbp+var_8], rax"], [16, "mov rax, [rbp+var_8]"], [17, "leave"], [18, "retn"]], "data_dep": [[4, 3], [8, 7], [9, 8], [12, 11], [13, 12], [14, 13], [15, 14], [15, 9], [16, 15], [18, 16]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/31ae09a7412b8ca053e5c026e9c27b7129f96f308d2e0fcf57d9b6a45c5698b1_31ae09a7412b8ca053e5c026e9c27b7129f96f308d2e0fcf57d9b6a45c5698b1.jsonl.gz", "strip_func_name": "sub_42FC0D", "query": "\n\n\nunsigned __int64 sub_42FC0D()\n{\nstruct timespec tp; // [rsp+0h] [rbp-20h] BYREF\n\nclock_gettime(0, &tp);\nreturn tp.tv_nsec / 0xF4240uLL + 1000 * tp.tv_sec;\n}\n\n\n\nQ:[tp,sub_42FC0D,]\nAssistant: ", "hints": "[]", "response": "{'tp': 'ts', 'sub_42FC0D': 'msecs'}"}
main
2fec72a0d684270ed27e67e3baa32c7521fe5b1b5afd5e6b127dddef513ead4f
shinh
elvm
NA
int main(int argc, char **argv) { #ifdef __eir__ infile = "-"; #else setbuf(stdout, NULL); if (atexit(delete_temp_files)) perror("atexit"); parseopt(argc, argv); #endif lex_init(infile); cpp_init(); parse_init(); #ifndef __eir__ set_output_file(open_asmfile()); if (buf_len(cppdefs) > 0) read_from_string(buf_body(cppdefs)); #endif if (cpponly) preprocess(); Vector *toplevels = read_toplevels(); for (int i = 0; i < vec_len(toplevels); i++) { Node *v = vec_get(toplevels, i); if (dumpast) printf("%s", node2s(v)); else emit_toplevel(v); } close_output_file(); #ifndef __eir__ if (!dumpast && !dumpasm) { if (!outfile) outfile = replace_suffix(base(infile), 'o'); pid_t pid = fork(); if (pid < 0) perror("fork"); if (pid == 0) { execlp("as", "as", "-o", outfile, "-c", asmfile, (char *)NULL); perror("execl failed"); } int status; waitpid(pid, &status, 0); if (status < 0) error("as failed"); } #endif return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4205056, "binary_name": "2fec72a0d684270ed27e67e3baa32c7521fe5b1b5afd5e6b127dddef513ead4f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_34], edi"], [4, "mov [rbp+var_40], rsi"], [5, "mov rax, cs:stdout"], [6, "mov esi, 0"], [7, "mov rdi, rax"], [8, "call _setbuf"], [9, "mov edi, offset sub_402494"], [10, "call sub_418AE0"], [11, "test eax, eax"], [12, "jz short loc_402A3B"], [13, "mov edi, offset aAtexit"], [14, "call _perror"], [15, "mov rdx, [rbp+var_40]"], [16, "mov eax, [rbp+var_34]"], [17, "mov rsi, rdx"], [18, "mov edi, eax"], [19, "call sub_402780"], [20, "mov rax, cs:qword_425A70"], [21, "mov rdi, rax"], [22, "call sub_40BCC9"], [23, "call sub_405FC3"], [24, "call sub_416C0C"], [25, "mov eax, 0"], [26, "call sub_402579"], [27, "mov rdi, rax"], [28, "call sub_407895"], [29, "mov rax, cs:qword_425A90"], [30, "mov rdi, rax"], [31, "call sub_416DA3"], [32, "test eax, eax"], [33, "jle short loc_402AA1"], [34, "mov rax, cs:qword_425A90"], [35, "mov rdi, rax"], [36, "call sub_416D92"], [37, "mov rdi, rax"], [38, "call sub_406061"], [39, "movzx eax, cs:byte_425A89"], [40, "test al, al"], [41, "jz short loc_402AB6"], [42, "mov eax, 0"], [43, "call sub_402983"], [44, "call sub_4169B4"], [45, "mov [rbp+var_10], rax"], [46, "mov [rbp+var_4], 0"], [47, "jmp short loc_402B18"], [48, "mov edx, [rbp+var_4]"], [49, "mov rax, [rbp+var_10]"], [50, "mov esi, edx"], [51, "mov rdi, rax"], [52, "call sub_40D8EF"], [53, "mov [rbp+var_20], rax"], [54, "movzx eax, cs:byte_425A88"], [55, "test al, al"], [56, "jz short loc_402B08"], [57, "mov rax, [rbp+var_20]"], [58, "mov rdi, rax"], [59, "call sub_40729F"], [60, "mov rsi, rax"], [61, "mov edi, offset format"], [62, "mov eax, 0"], [63, "call _printf"], [64, "jmp short loc_402B14"], [65, "mov rax, [rbp+var_20]"], [66, "mov rdi, rax"], [67, "call sub_40BBCF"], [68, "add [rbp+var_4], 1"], [69, "mov rax, [rbp+var_10]"], [70, "mov rdi, rax"], [71, "call sub_40DABC"], [72, "cmp [rbp+var_4], eax"], [73, "jl short loc_402AC8"], [74, "call sub_4078AB"], [75, "movzx eax, cs:byte_425A88"], [76, "xor eax, 1"], [77, "test al, al"], [78, "jz loc_402C1C"], [79, "movzx eax, cs:byte_425A8A"], [80, "xor eax, 1"], [81, "test al, al"], [82, "jz loc_402C1C"], [83, "mov rax, cs:qword_425A78"], [84, "test rax, rax"], [85, "jnz short loc_402B81"], [86, "mov rax, cs:qword_425A70"], [87, "mov rdi, rax"], [88, "call sub_4024DD"], [89, "mov esi, 6Fh "], [90, "mov rdi, rax"], [91, "call sub_4024FF"], [92, "mov cs:qword_425A78, rax"], [93, "call _fork"], [94, "mov [rbp+pid], eax"], [95, "cmp [rbp+pid], 0"], [96, "jns short loc_402B99"], [97, "mov edi, offset aFork_0"], [98, "call _perror"], [99, "cmp [rbp+pid], 0"], [100, "jnz short loc_402BE6"], [101, "mov rdx, cs:filename"], [102, "mov rax, cs:qword_425A78"], [103, "sub rsp, 8"], [104, "push 0"], [105, "mov r9, rdx"], [106, "mov r8d, offset aC"], [107, "mov rcx, rax"], [108, "mov edx, offset aO"], [109, "mov esi, offset arg"], [110, "mov edi, offset arg"], [111, "mov eax, 0"], [112, "call _execlp"], [113, "add rsp, 10h"], [114, "mov edi, offset aExeclFailed"], [115, "call _perror"], [116, "lea rcx, [rbp+stat_loc]"], [117, "mov eax, [rbp+pid]"], [118, "mov edx, 0"], [119, "mov rsi, rcx"], [120, "mov edi, eax"], [121, "call _waitpid"], [122, "mov eax, [rbp+stat_loc]"], [123, "test eax, eax"], [124, "jns short loc_402C1C"], [125, "mov edx, offset aAsFailed"], [126, "mov esi, 0"], [127, "mov edi, offset aMainC214"], [128, "mov eax, 0"], [129, "call sub_417A3A"], [130, "mov eax, 0"], [131, "leave"], [132, "retn"]], "data_dep": [[7, 5], [11, 10], [12, 11], [15, 4], [16, 3], [17, 15], [18, 16], [21, 20], [27, 26], [30, 29], [32, 31], [33, 32], [35, 34], [37, 36], [40, 39], [41, 40], [45, 44], [48, 68], [48, 46], [49, 45], [50, 48], [51, 49], [53, 52], [55, 54], [56, 55], [57, 53], [58, 57], [60, 59], [65, 53], [66, 65], [68, 68], [68, 46], [69, 45], [70, 69], [72, 68], [72, 71], [72, 46], [73, 72], [76, 75], [77, 76], [78, 77], [80, 79], [81, 80], [82, 81], [84, 83], [85, 84], [87, 86], [90, 88], [92, 91], [94, 93], [95, 94], [96, 95], [99, 94], [100, 99], [102, 92], [103, 2], [105, 101], [107, 102], [113, 103], [116, 107], [117, 94], [119, 116], [120, 117], [123, 122], [124, 123], [132, 130]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/2fec72a0d684270ed27e67e3baa32c7521fe5b1b5afd5e6b127dddef513ead4f_2fec72a0d684270ed27e67e3baa32c7521fe5b1b5afd5e6b127dddef513ead4f.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n__int64 __fastcall main(int a1, char **a2, char **a3)\n{\n__int64 v3; // rdi\nint v4; // edx\nint v5; // ecx\nint v6; // er8\nint v7; // er9\nFILE *v8; // rax\n__int64 v9; // rax\nconst char *v10; // rax\nint v11; // eax\nint v12; // edx\nint v13; // ecx\nint v14; // er8\nint v15; // er9\nint v16; // ecx\nint v17; // er8\nint v18; // er9\nint stat_loc; // [rsp+1Ch] [rbp-24h] BYREF\n__int64 v21; // [rsp+20h] [rbp-20h]\n__pid_t pid; // [rsp+2Ch] [rbp-14h]\n__int64 v23; // [rsp+30h] [rbp-10h]\nint i; // [rsp+3Ch] [rbp-4h]\n\nsetbuf(stdout, 0LL);\nif ( (unsigned int)sub_418AE0(sub_402494) )\nperror(\"atexit\");\nsub_402780(a1, a2);\nv3 = qword_425A70;\nsub_40BCC9(qword_425A70);\nsub_405FC3();\nsub_416C0C();\nv8 = sub_402579(v3, (int)a2, v4, v5, v6, v7);\nsub_407895(v8);\nif ( (int)sub_416DA3(qword_425A90) > 0 )\n{\nv9 = sub_416D92(qword_425A90);\nsub_406061(v9);\n}\nif ( byte_425A89 )\nsub_402983();\nv23 = sub_4169B4();\nfor ( i = 0; i < (int)sub_40DABC(v23); ++i )\n{\nv21 = sub_40D8EF(v23, (unsigned int)i);\nif ( byte_425A88 )\n{\nv10 = (const char *)sub_40729F(v21);\nprintf(\"%s\", v10);\n}\nelse\n{\nsub_40BBCF(v21);\n}\n}\nsub_4078AB();\nif ( byte_425A88 != 1 && byte_425A8A != 1 )\n{\nif ( !qword_425A78 )\n{\nv11 = (unsigned int)sub_4024DD((const char *)qword_425A70);\nqword_425A78 = (__int64)sub_4024FF(v11, 111, v12, v13, v14, v15);\n}\npid = fork();\nif ( pid < 0 )\nperror(\"fork\");\nif ( !pid )\n{\nexeclp(\"as\", \"as\", \"-o\", qword_425A78, \"-c\", filename, 0LL);\nperror(\"execl failed\");\n}\nwaitpid(pid, &stat_loc, 0);\nif ( stat_loc < 0 )\nsub_417A3A((unsigned int)\"main.c:214\", 0, (unsigned int)\"as failed\", v16, v17, v18);\n}\nreturn 0LL;\n}\n\n\n\nQ:[a2,a3,a1,v3,v4,stat_loc,v21,v23,sub_418AE0,sub_402780,sub_40BCC9,sub_405FC3,sub_416C0C,sub_402579,sub_407895,sub_416DA3,sub_416D92,sub_406061,sub_402983,sub_4169B4,sub_40DABC,sub_40D8EF,sub_40729F,sub_40BBCF,sub_4078AB,sub_4024DD,sub_4024FF,sub_417A3A,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v3': 'argc', 'v4': 'envp', 'stat_loc': 'status', 'v21': 'v', 'v23': 'toplevels', 'sub_418AE0': 'atexit', 'sub_402780': 'parseopt', 'sub_40BCC9': 'lex_init', 'sub_405FC3': 'cpp_init', 'sub_416C0C': 'parse_init', 'sub_402579': 'open_asmfile', 'sub_407895': 'set_output_file', 'sub_416DA3': 'buf_len', 'sub_416D92': 'buf_body', 'sub_406061': 'read_from_string', 'sub_402983': 'preprocess', 'sub_4169B4': 'read_toplevels', 'sub_40DABC': 'vec_len', 'sub_40D8EF': 'vec_get', 'sub_40729F': 'node2s', 'sub_40BBCF': 'emit_toplevel', 'sub_4078AB': 'close_output_file', 'sub_4024DD': 'base', 'sub_4024FF': 'replace_suffix', 'sub_417A3A': 'errorf'}"}
lv_example_textarea_3
1ba19119f39f257e698158d43e5d3674346db96601f10ff9792919370406ff3a
FASTSHIFT
lv_gba_emu
NA
void lv_example_textarea_3(void) { /*Create the text area*/ lv_obj_t * ta = lv_textarea_create(lv_scr_act()); lv_obj_add_event(ta, ta_event_cb, LV_EVENT_VALUE_CHANGED, NULL); lv_textarea_set_accepted_chars(ta, "0123456789:"); lv_textarea_set_max_length(ta, 5); lv_textarea_set_one_line(ta, true); lv_textarea_set_text(ta, ""); /*Create a keyboard*/ kb = lv_keyboard_create(lv_scr_act()); lv_obj_set_size(kb, LV_HOR_RES, LV_VER_RES / 2); lv_keyboard_set_mode(kb, LV_KEYBOARD_MODE_NUMBER); lv_keyboard_set_textarea(kb, ta); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_485EF8", "function_addr": 4742904, "binary_name": "1ba19119f39f257e698158d43e5d3674346db96601f10ff9792919370406ff3a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 18h"], [4, "call sub_485EE5"], [5, "mov rdi, rax"], [6, "call sub_454270"], [7, "mov [rbp+var_18], rax"], [8, "mov rax, [rbp+var_18]"], [9, "mov ecx, 0"], [10, "mov edx, 1Dh"], [11, "mov esi, offset sub_485FF4"], [12, "mov rdi, rax"], [13, "call sub_42171D"], [14, "mov rax, [rbp+var_18]"], [15, "mov esi, offset a0123456789"], [16, "mov rdi, rax"], [17, "call sub_455123"], [18, "mov rax, [rbp+var_18]"], [19, "mov esi, 5"], [20, "mov rdi, rax"], [21, "call sub_455146"], [22, "mov rax, [rbp+var_18]"], [23, "mov esi, 1"], [24, "mov rdi, rax"], [25, "call sub_455008"], [26, "mov rax, [rbp+var_18]"], [27, "mov esi, offset unk_4E787C"], [28, "mov rdi, rax"], [29, "call sub_4548CD"], [30, "call sub_485EE5"], [31, "mov rdi, rax"], [32, "call sub_458E97"], [33, "mov cs:qword_538F08, rax"], [34, "call sub_41CA36"], [35, "mov rdi, rax"], [36, "call sub_41CC41"], [37, "mov edx, eax"], [38, "shr dx, 0Fh"], [39, "add eax, edx"], [40, "sar ax, 1"], [41, "movsx ebx, ax"], [42, "call sub_41CA36"], [43, "mov rdi, rax"], [44, "call sub_41CBE7"], [45, "movsx ecx, ax"], [46, "mov rax, cs:qword_538F08"], [47, "mov edx, ebx"], [48, "mov esi, ecx"], [49, "mov rdi, rax"], [50, "call sub_4304B6"], [51, "mov rax, cs:qword_538F08"], [52, "mov esi, 3"], [53, "mov rdi, rax"], [54, "call sub_458F2D"], [55, "mov rax, cs:qword_538F08"], [56, "mov rdx, [rbp+var_18]"], [57, "mov rsi, rdx"], [58, "mov rdi, rax"], [59, "call sub_458ECA"], [60, "nop"], [61, "mov rbx, [rbp+var_8]"], [62, "leave"], [63, "retn"]], "data_dep": [[5, 4], [7, 6], [8, 7], [12, 8], [14, 7], [16, 14], [18, 7], [20, 18], [22, 7], [24, 22], [26, 7], [28, 26], [31, 30], [33, 32], [35, 34], [37, 36], [38, 37], [39, 36], [39, 38], [40, 39], [41, 40], [43, 42], [45, 44], [46, 33], [47, 41], [48, 45], [49, 46], [51, 33], [53, 51], [55, 33], [56, 7], [57, 56], [58, 55], [63, 59]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1ba19119f39f257e698158d43e5d3674346db96601f10ff9792919370406ff3a_1ba19119f39f257e698158d43e5d3674346db96601f10ff9792919370406ff3a.jsonl.gz", "strip_func_name": "sub_485EF8", "query": "\n\n\n__int64 sub_485EF8()\n{\n__int64 v0; // rax\n__int64 v1; // rax\nunsigned __int16 *v2; // rax\n__int16 v3; // bx\nunsigned __int16 *v4; // rax\n__int16 v5; // ax\nint *v7; // [rsp+8h] [rbp-18h]\n\nv0 = sub_485EE5();\nv7 = sub_454270(v0);\nsub_42171D((__int64)v7, (__int64)sub_485FF4, 29, 0LL);\nsub_455123((__int64)v7, (__int64)\"0123456789:\");\nsub_455146((__int64)v7, 5);\nsub_455008((__int64)v7, 1);\nsub_4548CD((__int64)v7, (const char *)&unk_4E787C);\nv1 = sub_485EE5();\nqword_538F08 = (__int64)sub_458E97(v1);\nv2 = (unsigned __int16 *)sub_41CA36();\nv3 = (__int16)sub_41CC41(v2) / 2;\nv4 = (unsigned __int16 *)sub_41CA36();\nv5 = sub_41CBE7(v4);\nsub_4304B6(qword_538F08, v5, v3);\nsub_458F2D(qword_538F08, 3);\nreturn sub_458ECA(qword_538F08, (__int64)v7);\n}\n\n\n\nQ:[v7,sub_485EF8,sub_485EE5,sub_454270,sub_42171D,sub_485FF4,sub_455123,sub_455146,sub_455008,sub_4548CD,sub_458E97,sub_41CA36,sub_41CC41,sub_41CBE7,sub_4304B6,sub_458F2D,sub_458ECA,]\nAssistant: ", "hints": "[]", "response": "{'v7': 'ta', 'sub_485EF8': 'lv_example_textarea_3', 'sub_485EE5': 'lv_scr_act_58', 'sub_454270': 'lv_textarea_create', 'sub_42171D': 'lv_obj_add_event', 'sub_485FF4': 'ta_event_cb', 'sub_455123': 'lv_textarea_set_accepted_chars', 'sub_455146': 'lv_textarea_set_max_length', 'sub_455008': 'lv_textarea_set_one_line', 'sub_4548CD': 'lv_textarea_set_text', 'sub_458E97': 'lv_keyboard_create', 'sub_41CA36': 'lv_disp_get_default', 'sub_41CC41': 'lv_disp_get_ver_res', 'sub_41CBE7': 'lv_disp_get_hor_res', 'sub_4304B6': 'lv_obj_set_size', 'sub_458F2D': 'lv_keyboard_set_mode', 'sub_458ECA': 'lv_keyboard_set_textarea'}"}
pinconvert
6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17
RTimothyEdwards
XCircuit
NA
void pinconvert(labelptr thislab, pointertype mode) { thislab->pin = mode; switch (mode) { case NORMAL: thislab->color = DEFAULTCOLOR; /* nominally black */ break; case GLOBAL: thislab->color = GLOBALPINCOLOR; /* orange */ break; case LOCAL: thislab->color = LOCALPINCOLOR; /* red */ break; case INFO: thislab->color = INFOLABELCOLOR; /* green */ break; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_469D1E", "function_addr": 4627742, "binary_name": "6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_10], rsi"], [4, "mov rax, [rbp+var_10]"], [5, "mov edx, eax"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rax+26h], dl"], [8, "cmp [rbp+var_10], 3"], [9, "jz short loc_469D8A"], [10, "cmp [rbp+var_10], 3"], [11, "ja short loc_469D96"], [12, "cmp [rbp+var_10], 2"], [13, "jz short loc_469D70"], [14, "cmp [rbp+var_10], 2"], [15, "ja short loc_469D96"], [16, "cmp [rbp+var_10], 0"], [17, "jz short loc_469D63"], [18, "cmp [rbp+var_10], 1"], [19, "jz short loc_469D7D"], [20, "jmp short loc_469D96"], [21, "mov rax, [rbp+var_8]"], [22, "mov dword ptr [rax+4], 0FFFFFFFFh"], [23, "jmp short loc_469D96"], [24, "mov rax, [rbp+var_8]"], [25, "mov dword ptr [rax+4], 0Dh"], [26, "jmp short loc_469D96"], [27, "mov rax, [rbp+var_8]"], [28, "mov dword ptr [rax+4], 0Ch"], [29, "jmp short loc_469D96"], [30, "mov rax, [rbp+var_8]"], [31, "mov dword ptr [rax+4], 0Eh"], [32, "nop"], [33, "nop"], [34, "pop rbp"], [35, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 2], [7, 6], [7, 5], [8, 3], [9, 8], [10, 3], [11, 10], [12, 3], [13, 12], [14, 3], [15, 14], [16, 3], [17, 16], [18, 3], [19, 18], [21, 2], [22, 21], [24, 2], [25, 24], [27, 2], [28, 27], [30, 2], [31, 30], [34, 0], [35, 30], [35, 27], [35, 6], [35, 21], [35, 24]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17_6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17.jsonl.gz", "strip_func_name": "sub_469D1E", "query": "\n\n\n__int64 __fastcall sub_469D1E(__int64 a1, unsigned __int64 a2)\n{\n__int64 result; // rax\n\nresult = a1;\n*(_BYTE *)(a1 + 38) = a2;\nif ( a2 == 3 )\n{\nresult = a1;\n*(_DWORD *)(a1 + 4) = 14;\n}\nelse if ( a2 <= 3 )\n{\nif ( a2 == 2 )\n{\nresult = a1;\n*(_DWORD *)(a1 + 4) = 13;\n}\nelse\n{\nresult = a1;\nif ( a2 )\n*(_DWORD *)(a1 + 4) = 12;\nelse\n*(_DWORD *)(a1 + 4) = -1;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_469D1E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'thislab', 'a2': 'mode', 'sub_469D1E': 'pinconvert'}"}
cimagf
307aa35045457a12f9839fa7e02a022f4ac2aede35e11cb8e76b24ad63eee97a
mirage
ocaml-solo5
NA
OLM_DLLEXPORT float cimagf(float complex z) { return (__imag__ z); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41B5CA", "function_addr": 4306378, "binary_name": "307aa35045457a12f9839fa7e02a022f4ac2aede35e11cb8e76b24ad63eee97a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "movq rax, xmm0"], [3, "mov [rbp+var_8], rax"], [4, "movss xmm1, dword ptr [rbp+var_8]"], [5, "movss xmm0, dword ptr [rbp+var_8+4]"], [6, "movss [rbp+var_10], xmm1"], [7, "movss [rbp+var_C], xmm0"], [8, "movss xmm0, [rbp+var_C]"], [9, "pop rbp"], [10, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 4], [7, 5], [8, 7], [9, 0], [10, 2]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/307aa35045457a12f9839fa7e02a022f4ac2aede35e11cb8e76b24ad63eee97a_307aa35045457a12f9839fa7e02a022f4ac2aede35e11cb8e76b24ad63eee97a.jsonl.gz", "strip_func_name": "sub_41B5CA", "query": "\n\n\nfloat __fastcall sub_41B5CA(double a1)\n{\nreturn *((float *)&a1 + 1);\n}\n\n\n\nQ:[sub_41B5CA,]\nAssistant: ", "hints": "[]", "response": "{'sub_41B5CA': 'cimagf'}"}
ttfGetMaxChar
d0ebaa77558783765df381826c961e95c83338e285011d501a62bea474e93451
michaelrsweet
pdfio
NA
int // O - Last character in font ttfGetMaxChar(ttf_t *font) // I - Font { return (font ? font->max_char : 0); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41E5E2", "function_addr": 4318690, "binary_name": "d0ebaa77558783765df381826c961e95c83338e285011d501a62bea474e93451.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "cmp [rbp+var_8], 0"], [4, "jz short loc_41E5FA"], [5, "mov rax, [rbp+var_8]"], [6, "mov eax, [rax+7Ch]"], [7, "jmp short loc_41E5FF"], [8, "mov eax, 0"], [9, "pop rbp"], [10, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 2], [6, 5], [9, 0], [10, 8], [10, 6]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d0ebaa77558783765df381826c961e95c83338e285011d501a62bea474e93451_d0ebaa77558783765df381826c961e95c83338e285011d501a62bea474e93451.jsonl.gz", "strip_func_name": "sub_41E5E2", "query": "\n\n\n__int64 __fastcall sub_41E5E2(__int64 a1)\n{\n__int64 result; // rax\n\nif ( a1 )\nresult = *(unsigned int *)(a1 + 124);\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a1,sub_41E5E2,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'font', 'sub_41E5E2': 'ttfGetMaxChar'}"}
zmemzero
4bd79747e1dc57f4771eefd9a3a47d051b453172d6afd251df0ca1c3a230b34e
cloudflare
pngcrush
NA
void ZLIB_INTERNAL zmemzero(dest, len) Bytef* dest; uInt len; { if (len == 0) return; do { *dest++ = 0; /* ??? to be unrolled */ } while (--len != 0); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44230A", "function_addr": 4465418, "binary_name": "4bd79747e1dc57f4771eefd9a3a47d051b453172d6afd251df0ca1c3a230b34e.elf_extract.pkl\n"}, "code": [[0, "mov [rsp+var_8], rdi"], [1, "mov [rsp+var_C], esi"], [2, "cmp [rsp+var_C], 0"], [3, "jz short loc_442338"], [4, "mov rax, [rsp+var_8]"], [5, "lea rdx, [rax+1]"], [6, "mov [rsp+var_8], rdx"], [7, "mov byte ptr [rax], 0"], [8, "sub [rsp+var_C], 1"], [9, "cmp [rsp+var_C], 0"], [10, "jnz short loc_44231A"], [11, "retn"], [12, "nop"], [13, "retn"]], "data_dep": [[2, 1], [3, 2], [4, 0], [4, 6], [5, 5], [5, 4], [5, 7], [6, 5], [7, 4], [8, 8], [8, 1], [9, 8], [10, 9], [11, 4]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/4bd79747e1dc57f4771eefd9a3a47d051b453172d6afd251df0ca1c3a230b34e_4bd79747e1dc57f4771eefd9a3a47d051b453172d6afd251df0ca1c3a230b34e.jsonl.gz", "strip_func_name": "sub_44230A", "query": "\n\n\n_BYTE *__fastcall sub_44230A(_BYTE *a1, int a2)\n{\n_BYTE *result; // rax\nint i; // [rsp+0h] [rbp-Ch]\n\nfor ( i = a2; i; --i )\n{\nresult = a1++;\n*result = 0;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,i,sub_44230A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dest', 'a2': 'len', 'i': 'lena', 'sub_44230A': 'zmemzero'}"}
hostapd_register_probereq_cb
20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640
sonic-net
sonic-buildimage
NA
int hostapd_register_probereq_cb(struct hostapd_data *hapd, int (*cb)(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid, const u8 *ie, size_t ie_len, int ssi_signal), void *ctx) { struct hostapd_probereq_cb *n; n = os_realloc_array(hapd->probereq_cb, hapd->num_probereq_cb + 1, sizeof(struct hostapd_probereq_cb)); if (n == NULL) return -1; hapd->probereq_cb = n; n = &hapd->probereq_cb[hapd->num_probereq_cb]; hapd->num_probereq_cb++; n->cb = cb; n->ctx = ctx; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4338CA", "function_addr": 4405450, "binary_name": "20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, [rbp+var_18]"], [7, "mov rax, [rax+0AA8h]"], [8, "lea rcx, [rax+1]"], [9, "mov rax, [rbp+var_18]"], [10, "mov rax, [rax+0AA0h]"], [11, "mov edx, 10h"], [12, "mov rsi, rcx"], [13, "mov rdi, rax"], [14, "call sub_43386F"], [15, "mov [rbp+var_8], rax"], [16, "cmp [rbp+var_8], 0"], [17, "jnz short loc_43391A"], [18, "mov eax, 0FFFFFFFFh"], [19, "jmp short locret_433980"], [20, "mov rax, [rbp+var_18]"], [21, "mov rdx, [rbp+var_8]"], [22, "mov [rax+0AA0h], rdx"], [23, "mov rax, [rbp+var_18]"], [24, "mov rdx, [rax+0AA0h]"], [25, "mov rax, [rbp+var_18]"], [26, "mov rax, [rax+0AA8h]"], [27, "shl rax, 4"], [28, "add rax, rdx"], [29, "mov [rbp+var_8], rax"], [30, "mov rax, [rbp+var_18]"], [31, "mov rax, [rax+0AA8h]"], [32, "lea rdx, [rax+1]"], [33, "mov rax, [rbp+var_18]"], [34, "mov [rax+0AA8h], rdx"], [35, "mov rax, [rbp+var_8]"], [36, "mov rdx, [rbp+var_20]"], [37, "mov [rax], rdx"], [38, "mov rax, [rbp+var_8]"], [39, "mov rdx, [rbp+var_28]"], [40, "mov [rax+8], rdx"], [41, "mov eax, 0"], [42, "leave"], [43, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 3], [10, 9], [12, 8], [13, 10], [15, 14], [16, 15], [17, 16], [20, 3], [21, 15], [22, 20], [22, 21], [23, 3], [24, 23], [24, 22], [25, 3], [26, 25], [26, 22], [27, 26], [28, 24], [28, 27], [29, 28], [30, 3], [31, 22], [31, 30], [32, 31], [32, 24], [32, 22], [33, 3], [34, 33], [34, 32], [35, 29], [36, 4], [37, 36], [37, 35], [38, 29], [39, 5], [40, 38], [40, 39], [43, 18], [43, 41]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640_20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640.jsonl.gz", "strip_func_name": "sub_4338CA", "query": "\n\n\n__int64 __fastcall sub_4338CA(__int64 a1, __int64 a2, __int64 a3)\n{\nvoid *v5; // [rsp+28h] [rbp-8h]\n_QWORD *v6; // [rsp+28h] [rbp-8h]\n\nv5 = sub_43386F(*(void **)(a1 + 2720), *(_QWORD *)(a1 + 2728) + 1LL, 0x10uLL);\nif ( !v5 )\nreturn 0xFFFFFFFFLL;\n*(_QWORD *)(a1 + 2720) = v5;\nv6 = (_QWORD *)(*(_QWORD *)(a1 + 2720) + 16LL * (*(_QWORD *)(a1 + 2728))++);\n*v6 = a2;\nv6[1] = a3;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v6,sub_4338CA,sub_43386F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'ctx', 'a1': 'hapd', 'a2': 'cb', 'v6': 'n', 'sub_4338CA': 'hostapd_register_probereq_cb', 'sub_43386F': 'os_realloc_array_1'}"}
rk_reset
1812cddc11d5d37e1bfd4b1269e60e52c00acecac170e6456fc2ba2cddc55918
open-simh
simh
NA
t_stat rk_reset (DEVICE *dptr) { int32 i; UNIT *uptr; rk_cmd = rk_ma = rk_da = rk_sta = rk_busy = 0; int_req = int_req & ~INT_RK; /* clear interrupt */ for (i = 0; i < RK_NUMDR; i++) { /* stop all units */ uptr = rk_dev.units + i; sim_cancel (uptr); uptr->flags = uptr->flags & ~UNIT_SWLK; uptr->CYL = uptr->FUNC = 0; } return SCPE_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40DF89", "function_addr": 4251529, "binary_name": "1812cddc11d5d37e1bfd4b1269e60e52c00acecac170e6456fc2ba2cddc55918.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov cs:dword_500800, 0"], [5, "mov eax, cs:dword_500800"], [6, "mov cs:dword_500804, eax"], [7, "mov eax, cs:dword_500804"], [8, "mov cs:dword_50080C, eax"], [9, "mov eax, cs:dword_50080C"], [10, "mov cs:dword_500810, eax"], [11, "mov eax, cs:dword_500810"], [12, "mov cs:dword_500808, eax"], [13, "mov eax, cs:dword_500574"], [14, "and ah, 7Fh"], [15, "mov cs:dword_500574, eax"], [16, "mov [rbp+var_4], 0"], [17, "jmp short loc_40E047"], [18, "mov rcx, cs:off_4DBCA8"], [19, "mov eax, [rbp+var_4]"], [20, "movsxd rdx, eax"], [21, "mov rax, rdx"], [22, "shl rax, 5"], [23, "add rax, rdx"], [24, "shl rax, 3"], [25, "add rax, rcx"], [26, "mov [rbp+var_10], rax"], [27, "mov rax, [rbp+var_10]"], [28, "mov rdi, rax"], [29, "call sub_437826"], [30, "mov rax, [rbp+var_10]"], [31, "mov eax, [rax+38h]"], [32, "and eax, 0FFFEFFFFh"], [33, "mov edx, eax"], [34, "mov rax, [rbp+var_10]"], [35, "mov [rax+38h], edx"], [36, "mov rax, [rbp+var_10]"], [37, "mov dword ptr [rax+60h], 0"], [38, "mov rax, [rbp+var_10]"], [39, "mov edx, [rax+60h]"], [40, "mov rax, [rbp+var_10]"], [41, "mov [rax+5Ch], edx"], [42, "add [rbp+var_4], 1"], [43, "cmp [rbp+var_4], 3"], [44, "jle short loc_40DFE7"], [45, "mov eax, 0"], [46, "leave"], [47, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 11], [14, 13], [15, 14], [19, 42], [19, 16], [20, 19], [21, 20], [22, 21], [23, 22], [23, 20], [24, 23], [25, 18], [25, 24], [26, 25], [27, 26], [28, 27], [30, 26], [31, 35], [31, 41], [31, 37], [31, 30], [32, 31], [33, 32], [34, 26], [35, 33], [35, 34], [36, 26], [37, 36], [38, 26], [39, 38], [39, 37], [40, 26], [41, 40], [41, 39], [42, 16], [42, 42], [43, 42], [43, 16], [44, 43], [47, 45]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1812cddc11d5d37e1bfd4b1269e60e52c00acecac170e6456fc2ba2cddc55918_1812cddc11d5d37e1bfd4b1269e60e52c00acecac170e6456fc2ba2cddc55918.jsonl.gz", "strip_func_name": "sub_40DF89", "query": "\n\n\n__int64 sub_40DF89()\n{\nint v0; // eax\n_DWORD *v2; // [rsp+10h] [rbp-10h]\nint i; // [rsp+1Ch] [rbp-4h]\n\ndword_500800 = 0;\ndword_500804 = 0;\ndword_50080C = 0;\ndword_500810 = 0;\ndword_500808 = 0;\nv0 = dword_500574;\nBYTE1(v0) = BYTE1(dword_500574) & 0x7F;\ndword_500574 = v0;\nfor ( i = 0; i <= 3; ++i )\n{\nv2 = (char *)off_4DBCA8 + 264 * i;\nsub_437826(v2);\nv2[14] &= 0xFFFEFFFF;\nv2[24] = 0;\nv2[23] = v2[24];\n}\nreturn 0LL;\n}\n\n\n\nQ:[v2,sub_40DF89,sub_437826,]\nAssistant: ", "hints": "[]", "response": "{'v2': 'uptr', 'sub_40DF89': 'rk_reset', 'sub_437826': 'sim_cancel'}"}
MSG_WriteDeltaUsercmd
65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604
FrozenSand
ioq3-for-UrbanTerror-4
NA
void MSG_WriteDeltaUsercmd( msg_t *msg, usercmd_t *from, usercmd_t *to ) { if ( to->serverTime - from->serverTime < 256 ) { MSG_WriteBits( msg, 1, 1 ); MSG_WriteBits( msg, to->serverTime - from->serverTime, 8 ); } else { MSG_WriteBits( msg, 0, 1 ); MSG_WriteBits( msg, to->serverTime, 32 ); } MSG_WriteDelta( msg, from->angles[0], to->angles[0], 16 ); MSG_WriteDelta( msg, from->angles[1], to->angles[1], 16 ); MSG_WriteDelta( msg, from->angles[2], to->angles[2], 16 ); MSG_WriteDelta( msg, from->forwardmove, to->forwardmove, 8 ); MSG_WriteDelta( msg, from->rightmove, to->rightmove, 8 ); MSG_WriteDelta( msg, from->upmove, to->upmove, 8 ); MSG_WriteDelta( msg, from->buttons, to->buttons, 16 ); MSG_WriteDelta( msg, from->weapon, to->weapon, 8 ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43BB92", "function_addr": 4438930, "binary_name": "65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 28h"], [1, "mov [rsp+28h+var_10], rdi"], [2, "mov [rsp+28h+var_18], rsi"], [3, "mov [rsp+28h+var_20], rdx"], [4, "mov rax, [rsp+28h+var_20]"], [5, "mov edx, [rax]"], [6, "mov rax, [rsp+28h+var_18]"], [7, "mov ecx, [rax]"], [8, "mov eax, edx"], [9, "sub eax, ecx"], [10, "cmp eax, 0FFh"], [11, "jg short loc_43BBFD"], [12, "mov rax, [rsp+28h+var_10]"], [13, "mov edx, 1"], [14, "mov esi, 1"], [15, "mov rdi, rax"], [16, "call sub_43AB8C"], [17, "mov rax, [rsp+28h+var_20]"], [18, "mov edx, [rax]"], [19, "mov rax, [rsp+28h+var_18]"], [20, "mov eax, [rax]"], [21, "mov ecx, edx"], [22, "sub ecx, eax"], [23, "mov rax, [rsp+28h+var_10]"], [24, "mov edx, 8"], [25, "mov esi, ecx"], [26, "mov rdi, rax"], [27, "call sub_43AB8C"], [28, "jmp short loc_43BC2F"], [29, "mov rax, [rsp+28h+var_10]"], [30, "mov edx, 1"], [31, "mov esi, 0"], [32, "mov rdi, rax"], [33, "call sub_43AB8C"], [34, "mov rax, [rsp+28h+var_20]"], [35, "mov ecx, [rax]"], [36, "mov rax, [rsp+28h+var_10]"], [37, "mov edx, 20h "], [38, "mov esi, ecx"], [39, "mov rdi, rax"], [40, "call sub_43AB8C"], [41, "mov rax, [rsp+28h+var_20]"], [42, "mov edx, [rax+4]"], [43, "mov rax, [rsp+28h+var_18]"], [44, "mov esi, [rax+4]"], [45, "mov rax, [rsp+28h+var_10]"], [46, "mov ecx, 10h"], [47, "mov rdi, rax"], [48, "call sub_43B878"], [49, "mov rax, [rsp+28h+var_20]"], [50, "mov edx, [rax+8]"], [51, "mov rax, [rsp+28h+var_18]"], [52, "mov esi, [rax+8]"], [53, "mov rax, [rsp+28h+var_10]"], [54, "mov ecx, 10h"], [55, "mov rdi, rax"], [56, "call sub_43B878"], [57, "mov rax, [rsp+28h+var_20]"], [58, "mov edx, [rax+0Ch]"], [59, "mov rax, [rsp+28h+var_18]"], [60, "mov esi, [rax+0Ch]"], [61, "mov rax, [rsp+28h+var_10]"], [62, "mov ecx, 10h"], [63, "mov rdi, rax"], [64, "call sub_43B878"], [65, "mov rax, [rsp+28h+var_20]"], [66, "movzx eax, byte ptr [rax+15h]"], [67, "movsx edx, al"], [68, "mov rax, [rsp+28h+var_18]"], [69, "movzx eax, byte ptr [rax+15h]"], [70, "movsx esi, al"], [71, "mov rax, [rsp+28h+var_10]"], [72, "mov ecx, 8"], [73, "mov rdi, rax"], [74, "call sub_43B878"], [75, "mov rax, [rsp+28h+var_20]"], [76, "movzx eax, byte ptr [rax+16h]"], [77, "movsx edx, al"], [78, "mov rax, [rsp+28h+var_18]"], [79, "movzx eax, byte ptr [rax+16h]"], [80, "movsx esi, al"], [81, "mov rax, [rsp+28h+var_10]"], [82, "mov ecx, 8"], [83, "mov rdi, rax"], [84, "call sub_43B878"], [85, "mov rax, [rsp+28h+var_20]"], [86, "movzx eax, byte ptr [rax+17h]"], [87, "movsx edx, al"], [88, "mov rax, [rsp+28h+var_18]"], [89, "movzx eax, byte ptr [rax+17h]"], [90, "movsx esi, al"], [91, "mov rax, [rsp+28h+var_10]"], [92, "mov ecx, 8"], [93, "mov rdi, rax"], [94, "call sub_43B878"], [95, "mov rax, [rsp+28h+var_20]"], [96, "mov edx, [rax+10h]"], [97, "mov rax, [rsp+28h+var_18]"], [98, "mov esi, [rax+10h]"], [99, "mov rax, [rsp+28h+var_10]"], [100, "mov ecx, 10h"], [101, "mov rdi, rax"], [102, "call sub_43B878"], [103, "mov rax, [rsp+28h+var_20]"], [104, "movzx eax, byte ptr [rax+14h]"], [105, "movzx edx, al"], [106, "mov rax, [rsp+28h+var_18]"], [107, "movzx eax, byte ptr [rax+14h]"], [108, "movzx esi, al"], [109, "mov rax, [rsp+28h+var_10]"], [110, "mov ecx, 8"], [111, "mov rdi, rax"], [112, "call sub_43B878"], [113, "nop"], [114, "add rsp, 28h"], [115, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 2], [7, 6], [8, 5], [9, 8], [9, 7], [10, 9], [11, 10], [12, 1], [15, 12], [17, 3], [18, 17], [19, 2], [20, 19], [21, 18], [22, 21], [22, 20], [23, 1], [25, 22], [26, 23], [29, 1], [32, 29], [34, 3], [35, 34], [36, 1], [38, 35], [39, 36], [41, 3], [42, 41], [43, 2], [44, 43], [45, 1], [47, 45], [49, 3], [50, 49], [51, 2], [52, 51], [53, 1], [55, 53], [57, 3], [58, 57], [59, 2], [60, 59], [61, 1], [63, 61], [65, 3], [66, 65], [67, 66], [68, 2], [69, 68], [70, 69], [71, 1], [73, 71], [75, 3], [76, 75], [77, 76], [78, 2], [79, 78], [80, 79], [81, 1], [83, 81], [85, 3], [86, 85], [87, 86], [88, 2], [89, 88], [90, 89], [91, 1], [93, 91], [95, 3], [96, 95], [97, 2], [98, 97], [99, 1], [101, 99], [103, 3], [104, 103], [105, 104], [106, 2], [107, 106], [108, 107], [109, 1], [111, 109], [114, 0], [115, 112]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604_65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604.jsonl.gz", "strip_func_name": "sub_43BB92", "query": "\n\n\n__int64 __fastcall sub_43BB92(__int64 a1, __int64 a2, __int64 a3)\n{\nif ( *(_DWORD *)a3 - *(_DWORD *)a2 > 255 )\n{\nsub_43AB8C(a1, 0, 1);\nsub_43AB8C(a1, *(_DWORD *)a3, 32);\n}\nelse\n{\nsub_43AB8C(a1, 1, 1);\nsub_43AB8C(a1, *(_DWORD *)a3 - *(_DWORD *)a2, 8);\n}\nsub_43B878(a1, *(_DWORD *)(a2 + 4), *(_DWORD *)(a3 + 4), 16);\nsub_43B878(a1, *(_DWORD *)(a2 + 8), *(_DWORD *)(a3 + 8), 16);\nsub_43B878(a1, *(_DWORD *)(a2 + 12), *(_DWORD *)(a3 + 12), 16);\nsub_43B878(a1, *(char *)(a2 + 21), *(char *)(a3 + 21), 8);\nsub_43B878(a1, *(char *)(a2 + 22), *(char *)(a3 + 22), 8);\nsub_43B878(a1, *(char *)(a2 + 23), *(char *)(a3 + 23), 8);\nsub_43B878(a1, *(_DWORD *)(a2 + 16), *(_DWORD *)(a3 + 16), 16);\nreturn sub_43B878(a1, *(unsigned __int8 *)(a2 + 20), *(unsigned __int8 *)(a3 + 20), 8);\n}\n\n\n\nQ:[a3,a1,a2,sub_43BB92,sub_43AB8C,sub_43B878,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'to', 'a1': 'msg', 'a2': 'from', 'sub_43BB92': 'MSG_WriteDeltaUsercmd', 'sub_43AB8C': 'MSG_WriteBits', 'sub_43B878': 'MSG_WriteDelta'}"}
containermap_release
40224e9ca508830f8b23454d22e675aac604ab5e3e3bb8d50d741975cd828fab
wuxb45
lsm-trie
NA
bool containermap_release(struct ContainerMap * const cm, const uint64_t offset) { pthread_mutex_lock(&(cm->mutex_cm)); assert((offset & (CONTAINER_UNIT_SIZE - 1u)) == 0); const uint64_t id = offset / CONTAINER_UNIT_SIZE; assert(id < cm->nr_units); const uint8_t byte = cm->bits[id >> 3]; const uint8_t new_byte = byte & (~ (1u << (id & 7u))); assert(new_byte < byte); cm->bits[id >> 3] = new_byte; cm->nr_used--; if ((cm->discard == true) && (cm->raw_fd >= 0)) { // issue TRIM const uint64_t range[2] = {offset, CONTAINER_UNIT_SIZE}; ioctl(cm->raw_fd, BLKDISCARD, range); } pthread_mutex_unlock(&(cm->mutex_cm)); return true; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40E7E8", "function_addr": 4253672, "binary_name": "40224e9ca508830f8b23454d22e675aac604ab5e3e3bb8d50d741975cd828fab.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rax, [rbp+var_28]"], [6, "add rax, 20h "], [7, "mov rdi, rax"], [8, "call _pthread_mutex_lock"], [9, "mov rax, [rbp+var_30]"], [10, "and eax, 1FFFFFFh"], [11, "test rax, rax"], [12, "jz short loc_40E82F"], [13, "mov ecx, offset aContainermapRe"], [14, "mov edx, 0E3h"], [15, "mov esi, offset aCmapC"], [16, "mov edi, offset aOffsetContaine"], [17, "call ___assert_fail"], [18, "mov rax, [rbp+var_30]"], [19, "shr rax, 19h"], [20, "mov [rbp+var_8], rax"], [21, "mov rax, [rbp+var_28]"], [22, "mov rax, [rax]"], [23, "cmp [rbp+var_8], rax"], [24, "jb short loc_40E861"], [25, "mov ecx, offset aContainermapRe"], [26, "mov edx, 0E5h"], [27, "mov esi, offset aCmapC"], [28, "mov edi, offset aIdCmNrUnits"], [29, "call ___assert_fail"], [30, "mov rax, [rbp+var_8]"], [31, "shr rax, 3"], [32, "mov rdx, rax"], [33, "mov rax, [rbp+var_28]"], [34, "movzx eax, byte ptr [rax+rdx+48h]"], [35, "mov [rbp+var_9], al"], [36, "mov rax, [rbp+var_8]"], [37, "and eax, 7"], [38, "mov edx, 1"], [39, "mov ecx, eax"], [40, "shl edx, cl"], [41, "mov eax, edx"], [42, "not eax"], [43, "and al, [rbp+var_9]"], [44, "mov [rbp+var_A], al"], [45, "movzx eax, [rbp+var_A]"], [46, "cmp al, [rbp+var_9]"], [47, "jb short loc_40E8B4"], [48, "mov ecx, offset aContainermapRe"], [49, "mov edx, 0E8h"], [50, "mov esi, offset aCmapC"], [51, "mov edi, offset aNewByteByte"], [52, "call ___assert_fail"], [53, "mov rax, [rbp+var_8]"], [54, "shr rax, 3"], [55, "mov rcx, rax"], [56, "mov rax, [rbp+var_28]"], [57, "movzx edx, [rbp+var_A]"], [58, "mov [rax+rcx+48h], dl"], [59, "mov rax, [rbp+var_28]"], [60, "mov rax, [rax+8]"], [61, "lea rdx, [rax-1]"], [62, "mov rax, [rbp+var_28]"], [63, "mov [rax+8], rdx"], [64, "mov rax, [rbp+var_28]"], [65, "movzx eax, byte ptr [rax+18h]"], [66, "test al, al"], [67, "jz short loc_40E922"], [68, "mov rax, [rbp+var_28]"], [69, "mov eax, [rax+1Ch]"], [70, "test eax, eax"], [71, "js short loc_40E922"], [72, "mov rax, [rbp+var_30]"], [73, "mov [rbp+var_20], rax"], [74, "mov [rbp+var_18], 2000000h"], [75, "mov rax, [rbp+var_28]"], [76, "mov eax, [rax+1Ch]"], [77, "lea rdx, [rbp+var_20]"], [78, "mov esi, 1277h"], [79, "mov edi, eax"], [80, "mov eax, 0"], [81, "call _ioctl"], [82, "mov rax, [rbp+var_28]"], [83, "add rax, 20h "], [84, "mov rdi, rax"], [85, "call _pthread_mutex_unlock"], [86, "mov eax, 1"], [87, "leave"], [88, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [9, 4], [10, 9], [11, 10], [12, 11], [18, 4], [19, 18], [20, 19], [21, 3], [22, 21], [23, 22], [23, 20], [24, 23], [30, 20], [31, 30], [32, 31], [33, 3], [34, 33], [35, 34], [36, 20], [37, 36], [39, 37], [40, 38], [40, 39], [41, 40], [42, 41], [43, 42], [43, 35], [44, 43], [45, 44], [46, 45], [46, 35], [47, 46], [53, 20], [54, 53], [55, 54], [56, 3], [57, 44], [58, 56], [58, 57], [59, 3], [60, 59], [60, 58], [61, 58], [61, 57], [61, 60], [62, 3], [63, 62], [63, 61], [64, 3], [65, 64], [65, 63], [66, 65], [67, 66], [68, 3], [69, 68], [69, 58], [69, 63], [70, 69], [71, 70], [72, 4], [73, 72], [75, 3], [76, 58], [76, 63], [76, 75], [77, 61], [77, 73], [79, 76], [82, 3], [83, 82], [84, 83], [88, 86]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/40224e9ca508830f8b23454d22e675aac604ab5e3e3bb8d50d741975cd828fab_40224e9ca508830f8b23454d22e675aac604ab5e3e3bb8d50d741975cd828fab.jsonl.gz", "strip_func_name": "sub_40E7E8", "query": "\n\n\n__int64 __fastcall sub_40E7E8(__int64 a1, unsigned __int64 a2)\n{\n__int64 v3[2]; // [rsp+10h] [rbp-20h] BYREF\nunsigned __int8 v4; // [rsp+26h] [rbp-Ah]\nunsigned __int8 v5; // [rsp+27h] [rbp-9h]\nunsigned __int64 v6; // [rsp+28h] [rbp-8h]\n\npthread_mutex_lock((pthread_mutex_t *)(a1 + 32));\nif ( (a2 & 0x1FFFFFF) != 0 )\n__assert_fail(\"(offset & (CONTAINER_UNIT_SIZE - 1u)) == 0\", \"cmap.c\", 0xE3u, \"containermap_release\");\nv6 = a2 >> 25;\nif ( a2 >> 25 >= *(_QWORD *)a1 )\n__assert_fail(\"id < cm->nr_units\", \"cmap.c\", 0xE5u, \"containermap_release\");\nv5 = *(_BYTE *)(a1 + (v6 >> 3) + 72);\nv4 = v5 & ~(unsigned __int8)(1 << (v6 & 7));\nif ( v4 >= v5 )\n__assert_fail(\"new_byte < byte\", \"cmap.c\", 0xE8u, \"containermap_release\");\n*(_BYTE *)(a1 + (v6 >> 3) + 72) = v4;\n--*(_QWORD *)(a1 + 8);\nif ( *(_BYTE *)(a1 + 24) && *(int *)(a1 + 28) >= 0 )\n{\nv3[0] = a2;\nv3[1] = 0x2000000LL;\nioctl(*(_DWORD *)(a1 + 28), 0x1277uLL, v3);\n}\npthread_mutex_unlock((pthread_mutex_t *)(a1 + 32));\nreturn 1LL;\n}\n\n\n\nQ:[a1,a2,v3,v4,v5,v6,sub_40E7E8,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'cm', 'a2': 'offset', 'v3': 'range', 'v4': 'new_byte', 'v5': 'byte', 'v6': 'id', 'sub_40E7E8': 'containermap_release'}"}
ZSTD_compress
8344e4f2e71647113a4027b2f26417ee1a42cf3c0de632f9252e1b29c5147f05
soedinglab
MMseqs2
NA
size_t ZSTD_compress(void* dst, size_t dstCapacity, const void* src, size_t srcSize, int compressionLevel) { size_t result; ZSTD_CCtx ctxBody; ZSTD_initCCtx(&ctxBody, ZSTD_defaultCMem); result = ZSTD_compressCCtx(&ctxBody, dst, dstCapacity, src, srcSize, compressionLevel); ZSTD_freeCCtxContent(&ctxBody); /* can't free ctxBody itself, as it's on stack; free only heap content */ return result; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4122EA", "function_addr": 4268778, "binary_name": "8344e4f2e71647113a4027b2f26417ee1a42cf3c0de632f9252e1b29c5147f05.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 400h"], [3, "mov [rbp+var_3D8], rdi"], [4, "mov [rbp+var_3E0], rsi"], [5, "mov [rbp+var_3E8], rdx"], [6, "mov [rbp+var_3F0], rcx"], [7, "mov [rbp+var_3F4], r8d"], [8, "lea rax, [rbp+var_3D0]"], [9, "sub rsp, 8"], [10, "push cs:qword_4A7650"], [11, "push cs:qword_4A7648"], [12, "push cs:qword_4A7640"], [13, "mov rdi, rax"], [14, "call sub_409895"], [15, "add rsp, 20h"], [16, "mov r8d, [rbp+var_3F4]"], [17, "mov rdi, [rbp+var_3F0]"], [18, "mov rcx, [rbp+var_3E8]"], [19, "mov rdx, [rbp+var_3E0]"], [20, "mov rsi, [rbp+var_3D8]"], [21, "lea rax, [rbp+var_3D0]"], [22, "mov r9d, r8d"], [23, "mov r8, rdi"], [24, "mov rdi, rax"], [25, "call sub_41229C"], [26, "mov [rbp+var_8], rax"], [27, "lea rax, [rbp+var_3D0]"], [28, "mov rdi, rax"], [29, "call sub_409ABB"], [30, "mov rax, [rbp+var_8]"], [31, "leave"], [32, "retn"]], "data_dep": [[9, 2], [13, 8], [15, 9], [16, 7], [17, 6], [18, 5], [19, 4], [20, 3], [21, 14], [22, 16], [23, 17], [24, 21], [26, 25], [27, 25], [28, 27], [30, 26], [32, 30]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8344e4f2e71647113a4027b2f26417ee1a42cf3c0de632f9252e1b29c5147f05_8344e4f2e71647113a4027b2f26417ee1a42cf3c0de632f9252e1b29c5147f05.jsonl.gz", "strip_func_name": "sub_4122EA", "query": "\n\n\n__int64 __fastcall sub_4122EA(_DWORD *a1, unsigned __int64 a2, char *a3, unsigned __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 v6; // rdx\n__int64 v7; // rcx\n__int64 v8; // r8\n__int64 v9; // r9\nunsigned int v11; // [rsp+14h] [rbp-3F4h]\n_QWORD v14[121]; // [rsp+38h] [rbp-3D0h] BYREF\n__int64 v15; // [rsp+400h] [rbp-8h]\n\nv11 = a5;\nsub_409895((__int64)v14, a2, (__int64)a3, a4, a5, a6, 0LL, 0LL, 0LL);\nv15 = sub_41229C(v14, a1, a2, a3, a4, v11);\nsub_409ABB((__int64)v14, (__int64)a1, v6, v7, v8, v9);\nreturn v15;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v6,v7,v8,v14,v15,sub_4122EA,sub_409895,sub_41229C,sub_409ABB,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'src', 'a4': 'srcSize', 'a1': 'dst', 'a2': 'dstCapacity', 'a5': 'compressionLevel', 'v6': 'src', 'v7': 'srcSize', 'v8': 'compressionLevel', 'v14': 'ctxBody', 'v15': 'result', 'sub_4122EA': 'ZSTD_compress', 'sub_409895': 'ZSTD_initCCtx', 'sub_41229C': 'ZSTD_compressCCtx', 'sub_409ABB': 'ZSTD_freeCCtxContent'}"}
demo
d81ba0b98a2e6f05fc62ccb4475f11ccebfd5b93f2e7f73ee52f2f5bbe21f3e8
lemire
Code-used-on-Daniel-Lemire-s-blog
NA
void demo(size_t N) { uint32_t * data = malloc(N * sizeof(uint32_t)); fillwithascii(data,N); uint32_t * buffer = malloc(N * sizeof(uint32_t)); memcpy(buffer,data,N * sizeof(uint32_t)); size_t expected = removewhite(buffer,N); int repeat = 5; BEST_TIME( removewhite(buffer,N), expected, memcpy(buffer,data,N * sizeof(uint32_t)), repeat, N, true); BEST_TIME( lu_removewhite(buffer,N), expected, memcpy(buffer,data,N * sizeof(uint32_t)), repeat, N, true); free(data); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401496", "function_addr": 4199574, "binary_name": "d81ba0b98a2e6f05fc62ccb4475f11ccebfd5b93f2e7f73ee52f2f5bbe21f3e8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 148h"], [4, "mov [rbp+var_148], rdi"], [5, "mov rax, [rbp+var_148]"], [6, "shl rax, 2"], [7, "mov rdi, rax"], [8, "call _malloc"], [9, "mov [rbp+src], rax"], [10, "mov rdx, [rbp+var_148]"], [11, "mov rax, [rbp+src]"], [12, "mov rsi, rdx"], [13, "mov rdi, rax"], [14, "call sub_40142D"], [15, "mov rax, [rbp+var_148]"], [16, "shl rax, 2"], [17, "mov rdi, rax"], [18, "call _malloc"], [19, "mov [rbp+dest], rax"], [20, "mov rax, [rbp+var_148]"], [21, "lea rdx, ds:0[rax*4]"], [22, "mov rcx, [rbp+src]"], [23, "mov rax, [rbp+dest]"], [24, "mov rsi, rcx"], [25, "mov rdi, rax"], [26, "call _memcpy"], [27, "mov rdx, [rbp+var_148]"], [28, "mov rax, [rbp+dest]"], [29, "mov rsi, rdx"], [30, "mov rdi, rax"], [31, "call sub_4012AF"], [32, "mov [rbp+var_78], rax"], [33, "mov [rbp+var_7C], 5"], [34, "mov rax, cs:qword_404078"], [35, "cmp rax, 0FFFFFFFFFFFFFFFFh"], [36, "jnz loc_401604"], [37, "mov [rbp+var_18], 0FFFFFFFFFFFFFFFFh"], [38, "mov [rbp+var_1C], 0"], [39, "jmp loc_4015ED"], [40, "cpuid"], [41, "rdtsc"], [42, "mov edi, edx"], [43, "mov esi, eax"], [44, "mov [rbp+var_80], edi"], [45, "mov [rbp+var_84], esi"], [46, "mov eax, [rbp+var_80]"], [47, "shl rax, 20h"], [48, "mov rdx, rax"], [49, "mov eax, [rbp+var_84]"], [50, "or rax, rdx"], [51, "mov [rbp+var_90], rax"], [52, "mov edi, 1"], [53, "call sub_401192"], [54, "rdtscp"], [55, "mov edi, edx"], [56, "mov esi, eax"], [57, "cpuid"], [58, "mov [rbp+var_94], edi"], [59, "mov [rbp+var_98], esi"], [60, "mov eax, [rbp+var_94]"], [61, "shl rax, 20h"], [62, "mov rdx, rax"], [63, "mov eax, [rbp+var_98]"], [64, "or rax, rdx"], [65, "mov [rbp+var_A0], rax"], [66, "mov rax, [rbp+var_A0]"], [67, "sub rax, [rbp+var_90]"], [68, "mov [rbp+var_A8], rax"], [69, "mov rax, [rbp+var_A8]"], [70, "cmp rax, [rbp+var_18]"], [71, "jnb short loc_4015E9"], [72, "mov rax, [rbp+var_A8]"], [73, "mov [rbp+var_18], rax"], [74, "add [rbp+var_1C], 1"], [75, "mov eax, [rbp+var_1C]"], [76, "cmp eax, [rbp+var_7C]"], [77, "jl loc_401555"], [78, "mov rax, [rbp+var_18]"], [79, "mov cs:qword_404078, rax"], [80, "mov esi, offset aRemovewhiteBuf"], [81, "mov edi, offset format"], [82, "mov eax, 0"], [83, "call _printf"], [84, "mov edi, 0"], [85, "call _fflush"], [86, "mov [rbp+var_28], 0FFFFFFFFFFFFFFFFh"], [87, "mov [rbp+var_30], 0"], [88, "mov [rbp+var_34], 0"], [89, "jmp loc_401759"], [90, "mov rax, [rbp+var_148]"], [91, "lea rdx, ds:0[rax*4]"], [92, "mov rcx, [rbp+src]"], [93, "mov rax, [rbp+dest]"], [94, "mov rsi, rcx"], [95, "mov rdi, rax"], [96, "call _memcpy"], [97, "cpuid"], [98, "rdtsc"], [99, "mov edi, edx"], [100, "mov esi, eax"], [101, "mov [rbp+var_AC], edi"], [102, "mov [rbp+var_B0], esi"], [103, "mov eax, [rbp+var_AC]"], [104, "shl rax, 20h"], [105, "mov rdx, rax"], [106, "mov eax, [rbp+var_B0]"], [107, "or rax, rdx"], [108, "mov [rbp+var_B8], rax"], [109, "mov rdx, [rbp+var_148]"], [110, "mov rax, [rbp+dest]"], [111, "mov rsi, rdx"], [112, "mov rdi, rax"], [113, "call sub_4012AF"], [114, "cmp [rbp+var_78], rax"], [115, "jz short loc_4016E1"], [116, "mov rax, [rbp+var_78]"], [117, "mov ebx, eax"], [118, "mov rdx, [rbp+var_148]"], [119, "mov rax, [rbp+dest]"], [120, "mov rsi, rdx"], [121, "mov rdi, rax"], [122, "call sub_4012AF"], [123, "mov edx, ebx"], [124, "mov esi, eax"], [125, "mov edi, offset aNotExpectedDD"], [126, "mov eax, 0"], [127, "call _printf"], [128, "jmp loc_401765"], [129, "rdtscp"], [130, "mov edi, edx"], [131, "mov esi, eax"], [132, "cpuid"], [133, "mov [rbp+var_BC], edi"], [134, "mov [rbp+var_C0], esi"], [135, "mov eax, [rbp+var_BC]"], [136, "shl rax, 20h"], [137, "mov rdx, rax"], [138, "mov eax, [rbp+var_C0]"], [139, "or rax, rdx"], [140, "mov [rbp+var_C8], rax"], [141, "mov rax, [rbp+var_C8]"], [142, "sub rax, [rbp+var_B8]"], [143, "mov rdx, cs:qword_404078"], [144, "sub rax, rdx"], [145, "mov [rbp+var_D0], rax"], [146, "mov rax, [rbp+var_D0]"], [147, "cmp rax, [rbp+var_28]"], [148, "jnb short loc_40174A"], [149, "mov rax, [rbp+var_D0]"], [150, "mov [rbp+var_28], rax"], [151, "mov rax, [rbp+var_D0]"], [152, "add [rbp+var_30], rax"], [153, "add [rbp+var_34], 1"], [154, "mov eax, [rbp+var_34]"], [155, "cmp eax, [rbp+var_7C]"], [156, "jl loc_40163E"], [157, "mov rax, [rbp+var_148]"], [158, "mov [rbp+var_D8], rax"], [159, "mov rax, [rbp+var_28]"], [160, "test rax, rax"], [161, "js short loc_401787"], [162, "pxor xmm0, xmm0"], [163, "cvtsi2sd xmm0, rax"], [164, "jmp short loc_4017A0"], [165, "mov rdx, rax"], [166, "shr rdx, 1"], [167, "and eax, 1"], [168, "or rdx, rax"], [169, "pxor xmm0, xmm0"], [170, "cvtsi2sd xmm0, rdx"], [171, "addsd xmm0, xmm0"], [172, "mov rax, [rbp+var_D8]"], [173, "test rax, rax"], [174, "js short loc_4017B7"], [175, "pxor xmm1, xmm1"], [176, "cvtsi2sd xmm1, rax"], [177, "jmp short loc_4017D0"], [178, "mov rdx, rax"], [179, "shr rdx, 1"], [180, "and eax, 1"], [181, "or rdx, rax"], [182, "pxor xmm1, xmm1"], [183, "cvtsi2sd xmm1, rdx"], [184, "addsd xmm1, xmm1"], [185, "divsd xmm0, xmm1"], [186, "cvtsd2ss xmm0, xmm0"], [187, "movss [rbp+var_DC], xmm0"], [188, "mov rax, [rbp+var_30]"], [189, "test rax, rax"], [190, "js short loc_4017F4"], [191, "pxor xmm0, xmm0"], [192, "cvtsi2sd xmm0, rax"], [193, "jmp short loc_40180D"], [194, "mov rdx, rax"], [195, "shr rdx, 1"], [196, "and eax, 1"], [197, "or rdx, rax"], [198, "pxor xmm0, xmm0"], [199, "cvtsi2sd xmm0, rdx"], [200, "addsd xmm0, xmm0"], [201, "mov rax, [rbp+var_D8]"], [202, "test rax, rax"], [203, "js short loc_401824"], [204, "pxor xmm1, xmm1"], [205, "cvtsi2sd xmm1, rax"], [206, "jmp short loc_40183D"], [207, "mov rdx, rax"], [208, "shr rdx, 1"], [209, "and eax, 1"], [210, "or rdx, rax"], [211, "pxor xmm1, xmm1"], [212, "cvtsi2sd xmm1, rdx"], [213, "addsd xmm1, xmm1"], [214, "pxor xmm2, xmm2"], [215, "cvtsi2sd xmm2, [rbp+var_7C]"], [216, "mulsd xmm1, xmm2"], [217, "divsd xmm0, xmm1"], [218, "cvtsd2ss xmm0, xmm0"], [219, "movss [rbp+var_E0], xmm0"], [220, "mov rdx, cs:off_404070"], [221, "pxor xmm3, xmm3"], [222, "cvtss2sd xmm3, [rbp+var_DC]"], [223, "movq rax, xmm3"], [224, "mov rsi, rdx"], [225, "movq xmm0, rax"], [226, "mov edi, offset a3fSPerOperatio"], [227, "mov eax, 1"], [228, "call _printf"], [229, "mov rdx, cs:off_404070"], [230, "pxor xmm4, xmm4"], [231, "cvtss2sd xmm4, [rbp+var_E0]"], [232, "movq rax, xmm4"], [233, "mov rsi, rdx"], [234, "movq xmm0, rax"], [235, "mov edi, offset a3fSPerOperatio_0"], [236, "mov eax, 1"], [237, "call _printf"], [238, "mov edi, 0Ah"], [239, "call _putchar"], [240, "mov edi, 0"], [241, "call _fflush"], [242, "mov rax, cs:qword_404078"], [243, "cmp rax, 0FFFFFFFFFFFFFFFFh"], [244, "jnz loc_4019A6"], [245, "mov [rbp+var_40], 0FFFFFFFFFFFFFFFFh"], [246, "mov [rbp+var_44], 0"], [247, "jmp loc_40198F"], [248, "cpuid"], [249, "rdtsc"], [250, "mov edi, edx"], [251, "mov esi, eax"], [252, "mov [rbp+var_E4], edi"], [253, "mov [rbp+var_E8], esi"], [254, "mov eax, [rbp+var_E4]"], [255, "shl rax, 20h"], [256, "mov rdx, rax"], [257, "mov eax, [rbp+var_E8]"], [258, "or rax, rdx"], [259, "mov [rbp+var_F0], rax"], [260, "mov edi, 1"], [261, "call sub_401192"], [262, "rdtscp"], [263, "mov edi, edx"], [264, "mov esi, eax"], [265, "cpuid"], [266, "mov [rbp+var_F4], edi"], [267, "mov [rbp+var_F8], esi"], [268, "mov eax, [rbp+var_F4]"], [269, "shl rax, 20h"], [270, "mov rdx, rax"], [271, "mov eax, [rbp+var_F8]"], [272, "or rax, rdx"], [273, "mov [rbp+var_100], rax"], [274, "mov rax, [rbp+var_100]"], [275, "sub rax, [rbp+var_F0]"], [276, "mov [rbp+var_108], rax"], [277, "mov rax, [rbp+var_108]"], [278, "cmp rax, [rbp+var_40]"], [279, "jnb short loc_40198B"], [280, "mov rax, [rbp+var_108]"], [281, "mov [rbp+var_40], rax"], [282, "add [rbp+var_44], 1"], [283, "mov eax, [rbp+var_44]"], [284, "cmp eax, [rbp+var_7C]"], [285, "jl loc_4018F1"], [286, "mov rax, [rbp+var_40]"], [287, "mov cs:qword_404078, rax"], [288, "mov esi, offset aLuRemovewhiteB"], [289, "mov edi, offset format"], [290, "mov eax, 0"], [291, "call _printf"], [292, "mov edi, 0"], [293, "call _fflush"], [294, "mov [rbp+var_50], 0FFFFFFFFFFFFFFFFh"], [295, "mov [rbp+var_58], 0"], [296, "mov [rbp+var_5C], 0"], [297, "jmp loc_401AFB"], [298, "mov rax, [rbp+var_148]"], [299, "lea rdx, ds:0[rax*4]"], [300, "mov rcx, [rbp+src]"], [301, "mov rax, [rbp+dest]"], [302, "mov rsi, rcx"], [303, "mov rdi, rax"], [304, "call _memcpy"], [305, "cpuid"], [306, "rdtsc"], [307, "mov edi, edx"], [308, "mov esi, eax"], [309, "mov [rbp+var_10C], edi"], [310, "mov [rbp+var_110], esi"], [311, "mov eax, [rbp+var_10C]"], [312, "shl rax, 20h"], [313, "mov rdx, rax"], [314, "mov eax, [rbp+var_110]"], [315, "or rax, rdx"], [316, "mov [rbp+var_118], rax"], [317, "mov rdx, [rbp+var_148]"], [318, "mov rax, [rbp+dest]"], [319, "mov rsi, rdx"], [320, "mov rdi, rax"], [321, "call sub_401331"], [322, "cmp [rbp+var_78], rax"], [323, "jz short loc_401A83"], [324, "mov rax, [rbp+var_78]"], [325, "mov ebx, eax"], [326, "mov rdx, [rbp+var_148]"], [327, "mov rax, [rbp+dest]"], [328, "mov rsi, rdx"], [329, "mov rdi, rax"], [330, "call sub_401331"], [331, "mov edx, ebx"], [332, "mov esi, eax"], [333, "mov edi, offset aNotExpectedDD"], [334, "mov eax, 0"], [335, "call _printf"], [336, "jmp loc_401B07"], [337, "rdtscp"], [338, "mov edi, edx"], [339, "mov esi, eax"], [340, "cpuid"], [341, "mov [rbp+var_11C], edi"], [342, "mov [rbp+var_120], esi"], [343, "mov eax, [rbp+var_11C]"], [344, "shl rax, 20h"], [345, "mov rdx, rax"], [346, "mov eax, [rbp+var_120]"], [347, "or rax, rdx"], [348, "mov [rbp+var_128], rax"], [349, "mov rax, [rbp+var_128]"], [350, "sub rax, [rbp+var_118]"], [351, "mov rdx, cs:qword_404078"], [352, "sub rax, rdx"], [353, "mov [rbp+var_130], rax"], [354, "mov rax, [rbp+var_130]"], [355, "cmp rax, [rbp+var_50]"], [356, "jnb short loc_401AEC"], [357, "mov rax, [rbp+var_130]"], [358, "mov [rbp+var_50], rax"], [359, "mov rax, [rbp+var_130]"], [360, "add [rbp+var_58], rax"], [361, "add [rbp+var_5C], 1"], [362, "mov eax, [rbp+var_5C]"], [363, "cmp eax, [rbp+var_7C]"], [364, "jl loc_4019E0"], [365, "mov rax, [rbp+var_148]"], [366, "mov [rbp+var_138], rax"], [367, "mov rax, [rbp+var_50]"], [368, "test rax, rax"], [369, "js short loc_401B29"], [370, "pxor xmm0, xmm0"], [371, "cvtsi2sd xmm0, rax"], [372, "jmp short loc_401B42"], [373, "mov rdx, rax"], [374, "shr rdx, 1"], [375, "and eax, 1"], [376, "or rdx, rax"], [377, "pxor xmm0, xmm0"], [378, "cvtsi2sd xmm0, rdx"], [379, "addsd xmm0, xmm0"], [380, "mov rax, [rbp+var_138]"], [381, "test rax, rax"], [382, "js short loc_401B59"], [383, "pxor xmm1, xmm1"], [384, "cvtsi2sd xmm1, rax"], [385, "jmp short loc_401B72"], [386, "mov rdx, rax"], [387, "shr rdx, 1"], [388, "and eax, 1"], [389, "or rdx, rax"], [390, "pxor xmm1, xmm1"], [391, "cvtsi2sd xmm1, rdx"], [392, "addsd xmm1, xmm1"], [393, "divsd xmm0, xmm1"], [394, "cvtsd2ss xmm0, xmm0"], [395, "movss [rbp+var_13C], xmm0"], [396, "mov rax, [rbp+var_58]"], [397, "test rax, rax"], [398, "js short loc_401B96"], [399, "pxor xmm0, xmm0"], [400, "cvtsi2sd xmm0, rax"], [401, "jmp short loc_401BAF"], [402, "mov rdx, rax"], [403, "shr rdx, 1"], [404, "and eax, 1"], [405, "or rdx, rax"], [406, "pxor xmm0, xmm0"], [407, "cvtsi2sd xmm0, rdx"], [408, "addsd xmm0, xmm0"], [409, "mov rax, [rbp+var_138]"], [410, "test rax, rax"], [411, "js short loc_401BC6"], [412, "pxor xmm1, xmm1"], [413, "cvtsi2sd xmm1, rax"], [414, "jmp short loc_401BDF"], [415, "mov rdx, rax"], [416, "shr rdx, 1"], [417, "and eax, 1"], [418, "or rdx, rax"], [419, "pxor xmm1, xmm1"], [420, "cvtsi2sd xmm1, rdx"], [421, "addsd xmm1, xmm1"], [422, "pxor xmm2, xmm2"], [423, "cvtsi2sd xmm2, [rbp+var_7C]"], [424, "mulsd xmm1, xmm2"], [425, "divsd xmm0, xmm1"], [426, "cvtsd2ss xmm0, xmm0"], [427, "movss [rbp+var_140], xmm0"], [428, "mov rdx, cs:off_404070"], [429, "pxor xmm5, xmm5"], [430, "cvtss2sd xmm5, [rbp+var_13C]"], [431, "movq rax, xmm5"], [432, "mov rsi, rdx"], [433, "movq xmm0, rax"], [434, "mov edi, offset a3fSPerOperatio"], [435, "mov eax, 1"], [436, "call _printf"], [437, "mov rdx, cs:off_404070"], [438, "pxor xmm6, xmm6"], [439, "cvtss2sd xmm6, [rbp+var_140]"], [440, "movq rax, xmm6"], [441, "mov rsi, rdx"], [442, "movq xmm0, rax"], [443, "mov edi, offset a3fSPerOperatio_0"], [444, "mov eax, 1"], [445, "call _printf"], [446, "mov edi, 0Ah"], [447, "call _putchar"], [448, "mov edi, 0"], [449, "call _fflush"], [450, "mov rax, [rbp+src]"], [451, "mov rdi, rax"], [452, "call _free"], [453, "nop"], [454, "mov rbx, [rbp+var_8]"], [455, "leave"], [456, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [9, 8], [10, 4], [11, 9], [12, 10], [13, 11], [15, 4], [16, 15], [17, 16], [19, 18], [20, 4], [21, 10], [22, 9], [23, 19], [24, 22], [25, 23], [27, 4], [28, 19], [29, 27], [30, 28], [32, 31], [35, 34], [36, 35], [42, 62], [42, 27], [43, 75], [44, 42], [45, 43], [46, 44], [47, 46], [48, 47], [49, 45], [50, 48], [50, 49], [51, 50], [55, 48], [56, 53], [58, 55], [59, 56], [60, 58], [61, 60], [62, 61], [63, 59], [64, 62], [64, 63], [65, 64], [66, 65], [67, 66], [67, 51], [68, 67], [69, 68], [70, 73], [70, 37], [70, 69], [71, 70], [72, 68], [73, 72], [74, 38], [74, 74], [75, 38], [75, 74], [76, 75], [76, 33], [77, 76], [78, 37], [78, 73], [79, 78], [90, 4], [91, 62], [91, 27], [91, 143], [92, 9], [93, 19], [94, 92], [95, 93], [99, 91], [100, 96], [101, 99], [102, 100], [103, 101], [104, 103], [105, 104], [106, 102], [107, 106], [107, 105], [108, 107], [109, 4], [110, 19], [111, 109], [112, 110], [114, 113], [114, 32], [115, 114], [116, 32], [117, 116], [118, 4], [119, 19], [120, 118], [121, 119], [123, 117], [124, 122], [130, 109], [131, 113], [133, 130], [134, 131], [135, 133], [136, 135], [137, 136], [138, 134], [139, 138], [139, 137], [140, 139], [141, 140], [142, 141], [142, 108], [143, 79], [144, 143], [144, 142], [145, 144], [146, 145], [147, 86], [147, 146], [147, 150], [148, 147], [149, 145], [150, 149], [151, 145], [152, 87], [152, 151], [152, 152], [153, 153], [153, 88], [154, 88], [154, 153], [155, 33], [155, 154], [156, 155], [157, 4], [158, 157], [159, 150], [159, 86], [160, 159], [161, 160], [163, 160], [163, 162], [165, 160], [166, 165], [167, 160], [168, 167], [168, 166], [170, 169], [170, 168], [171, 170], [172, 158], [173, 172], [174, 173], [176, 175], [176, 173], [178, 173], [179, 178], [180, 173], [181, 180], [181, 179], [183, 182], [183, 181], [184, 183], [185, 171], [185, 184], [185, 163], [185, 176], [186, 185], [187, 186], [188, 152], [188, 87], [189, 188], [190, 189], [192, 191], [192, 189], [194, 189], [195, 194], [196, 189], [197, 196], [197, 195], [199, 198], [199, 197], [200, 199], [201, 158], [202, 201], [203, 202], [205, 204], [205, 202], [207, 202], [208, 207], [209, 202], [210, 209], [210, 208], [212, 211], [212, 210], [213, 212], [215, 33], [215, 214], [216, 215], [216, 205], [216, 213], [217, 216], [217, 192], [217, 200], [218, 217], [219, 218], [222, 187], [222, 221], [223, 222], [224, 220], [225, 223], [231, 230], [231, 219], [232, 231], [233, 229], [234, 232], [242, 79], [243, 242], [244, 243], [250, 270], [250, 229], [251, 283], [252, 250], [253, 251], [254, 252], [255, 254], [256, 255], [257, 253], [258, 257], [258, 256], [259, 258], [263, 256], [264, 261], [266, 263], [267, 264], [268, 266], [269, 268], [270, 269], [271, 267], [272, 271], [272, 270], [273, 272], [274, 273], [275, 259], [275, 274], [276, 275], [277, 276], [278, 277], [278, 245], [278, 281], [279, 278], [280, 276], [281, 280], [282, 246], [282, 282], [283, 282], [283, 246], [284, 33], [284, 283], [285, 284], [286, 245], [286, 281], [287, 286], [298, 4], [299, 351], [299, 229], [299, 270], [300, 9], [301, 19], [302, 300], [303, 301], [307, 299], [308, 304], [309, 307], [310, 308], [311, 309], [312, 311], [313, 312], [314, 310], [315, 313], [315, 314], [316, 315], [317, 4], [318, 19], [319, 317], [320, 318], [322, 321], [322, 32], [323, 322], [324, 32], [325, 324], [326, 4], [327, 19], [328, 326], [329, 327], [331, 325], [332, 330], [338, 317], [339, 321], [341, 338], [342, 339], [343, 341], [344, 343], [345, 344], [346, 342], [347, 346], [347, 345], [348, 347], [349, 348], [350, 349], [350, 316], [351, 287], [351, 79], [352, 351], [352, 350], [353, 352], [354, 353], [355, 294], [355, 354], [355, 358], [356, 355], [357, 353], [358, 357], [359, 353], [360, 295], [360, 360], [360, 359], [361, 361], [361, 296], [362, 361], [362, 296], [363, 33], [363, 362], [364, 363], [365, 4], [366, 365], [367, 294], [367, 358], [368, 367], [369, 368], [371, 368], [371, 370], [373, 368], [374, 373], [375, 368], [376, 375], [376, 374], [378, 377], [378, 376], [379, 378], [380, 366], [381, 380], [382, 381], [384, 381], [384, 383], [386, 381], [387, 386], [388, 381], [389, 388], [389, 387], [391, 390], [391, 389], [392, 391], [393, 371], [393, 384], [393, 379], [393, 392], [394, 393], [395, 394], [396, 295], [396, 360], [397, 396], [398, 397], [400, 397], [400, 399], [402, 397], [403, 402], [404, 397], [405, 403], [405, 404], [407, 405], [407, 406], [408, 407], [409, 366], [410, 409], [411, 410], [413, 412], [413, 410], [415, 410], [416, 415], [417, 410], [418, 417], [418, 416], [420, 419], [420, 418], [421, 420], [423, 33], [423, 422], [424, 421], [424, 423], [424, 413], [425, 400], [425, 408], [425, 424], [426, 425], [427, 426], [430, 429], [430, 395], [431, 430], [432, 428], [433, 431], [439, 438], [439, 427], [440, 439], [441, 437], [442, 440], [450, 9], [451, 450], [456, 452]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d81ba0b98a2e6f05fc62ccb4475f11ccebfd5b93f2e7f73ee52f2f5bbe21f3e8_d81ba0b98a2e6f05fc62ccb4475f11ccebfd5b93f2e7f73ee52f2f5bbe21f3e8.jsonl.gz", "strip_func_name": "sub_401496", "query": "\n\n\nvoid __fastcall sub_401496(unsigned __int64 a1)\n{\nunsigned int v6; // edx\nunsigned int v7; // edi\nunsigned int v8; // esi\nunsigned int v20; // edx\nunsigned int v21; // eax\nunsigned int v22; // edi\nunsigned int v23; // esi\ndouble v28; // xmm0_8\ndouble v29; // xmm1_8\nfloat v30; // xmm0_4\ndouble v31; // xmm0_8\ndouble v32; // xmm1_8\nfloat v33; // xmm0_4\nunsigned int v39; // edx\nunsigned int v40; // edi\nunsigned int v41; // esi\nunsigned int v53; // edx\nunsigned int v54; // eax\nunsigned int v55; // edi\nunsigned int v56; // esi\ndouble v61; // xmm0_8\ndouble v62; // xmm1_8\nfloat v63; // xmm0_4\ndouble v64; // xmm0_8\ndouble v65; // xmm1_8\nfloat v66; // xmm0_4\nfloat v68; // [rsp+14h] [rbp-13Ch]\nunsigned __int64 v69; // [rsp+38h] [rbp-118h]\nunsigned __int64 v70; // [rsp+60h] [rbp-F0h]\nfloat v71; // [rsp+74h] [rbp-DCh]\nunsigned __int64 v72; // [rsp+98h] [rbp-B8h]\nunsigned __int64 v73; // [rsp+C0h] [rbp-90h]\n__int64 v74; // [rsp+D8h] [rbp-78h]\nvoid *dest; // [rsp+E0h] [rbp-70h]\nvoid *src; // [rsp+E8h] [rbp-68h]\nint l; // [rsp+F4h] [rbp-5Ch]\n__int64 v78; // [rsp+F8h] [rbp-58h]\nunsigned __int64 v79; // [rsp+100h] [rbp-50h]\nint k; // [rsp+10Ch] [rbp-44h]\nunsigned __int64 v81; // [rsp+110h] [rbp-40h]\nint j; // [rsp+11Ch] [rbp-34h]\n__int64 v83; // [rsp+120h] [rbp-30h]\nunsigned __int64 v84; // [rsp+128h] [rbp-28h]\nint i; // [rsp+134h] [rbp-1Ch]\nunsigned __int64 v86; // [rsp+138h] [rbp-18h]\n\nsrc = malloc(4 * a1);\nsub_40142D(src, a1);\ndest = malloc(4 * a1);\nmemcpy(dest, src, 4 * a1);\nv74 = sub_4012AF((__int64)dest, a1);\nif ( qword_404078 == -1 )\n{\nv86 = -1LL;\nfor ( i = 0; ; ++i )\n{\n_RAX = (unsigned int)i;\nif ( i >= 5 )\nbreak;\n__asm { cpuid }\nv73 = __rdtsc();\n_RAX = sub_401192(1LL);\n__asm { rdtscp }\nv7 = v6;\nv8 = _RAX;\n__asm { cpuid }\nif ( (((unsigned __int64)v7 << 32) | v8) - v73 < v86 )\nv86 = (((unsigned __int64)v7 << 32) | v8) - v73;\n}\nqword_404078 = v86;\n}\nprintf(\"%-60s\\t: \", \"removewhite(buffer,N)\");\nfflush(0LL);\nv84 = -1LL;\nv83 = 0LL;\nfor ( j = 0; j < 5; ++j )\n{\n_RAX = memcpy(dest, src, 4 * a1);\n__asm { cpuid }\nv72 = __rdtsc();\n_RAX = sub_4012AF((__int64)dest, a1);\nif ( v74 != _RAX )\n{\nv21 = sub_4012AF((__int64)dest, a1);\nprintf(\"not expected (%d , %d )\", v21, (unsigned int)v74);\nbreak;\n}\n__asm { rdtscp }\nv22 = v20;\nv23 = _RAX;\n__asm { cpuid }\nif ( (((unsigned __int64)v22 << 32) | v23) - v72 - qword_404078 < v84 )\nv84 = (((unsigned __int64)v22 << 32) | v23) - v72 - qword_404078;\nv83 += (((unsigned __int64)v22 << 32) | v23) - v72 - qword_404078;\n}\nif ( (v84 & 0x8000000000000000LL) != 0LL )\nv28 = (double)(int)(v84 & 1 | (v84 >> 1)) + (double)(int)(v84 & 1 | (v84 >> 1));\nelse\nv28 = (double)(int)v84;\nif ( (a1 & 0x8000000000000000LL) != 0LL )\nv29 = (double)(int)(a1 & 1 | (a1 >> 1)) + (double)(int)(a1 & 1 | (a1 >> 1));\nelse\nv29 = (double)(int)a1;\nv30 = v28 / v29;\nv71 = v30;\nif ( v83 < 0 )\nv31 = (double)(int)(v83 & 1 | ((unsigned __int64)v83 >> 1)) + (double)(int)(v83 & 1 | ((unsigned __int64)v83 >> 1));\nelse\nv31 = (double)(int)v83;\nif ( (a1 & 0x8000000000000000LL) != 0LL )\nv32 = (double)(int)(a1 & 1 | (a1 >> 1)) + (double)(int)(a1 & 1 | (a1 >> 1));\nelse\nv32 = (double)(int)a1;\nv33 = v31 / (v32 * (double)5);\nprintf(\" %.3f %s per operation (best) \", v71, off_404070);\nprintf(\"\\t%.3f %s per operation (avg) \", v33, off_404070);\nputchar(10);\nfflush(0LL);\nif ( qword_404078 == -1 )\n{\nv81 = -1LL;\nfor ( k = 0; ; ++k )\n{\n_RAX = (unsigned int)k;\nif ( k >= 5 )\nbreak;\n__asm { cpuid }\nv70 = __rdtsc();\n_RAX = sub_401192(1LL);\n__asm { rdtscp }\nv40 = v39;\nv41 = _RAX;\n__asm { cpuid }\nif ( (((unsigned __int64)v40 << 32) | v41) - v70 < v81 )\nv81 = (((unsigned __int64)v40 << 32) | v41) - v70;\n}\nqword_404078 = v81;\n}\nprintf(\"%-60s\\t: \", \"lu_removewhite(buffer,N)\");\nfflush(0LL);\nv79 = -1LL;\nv78 = 0LL;\nfor ( l = 0; l < 5; ++l )\n{\n_RAX = memcpy(dest, src, 4 * a1);\n__asm { cpuid }\nv69 = __rdtsc();\n_RAX = sub_401331((__int64)dest, a1);\nif ( v74 != _RAX )\n{\nv54 = sub_401331((__int64)dest, a1);\nprintf(\"not expected (%d , %d )\", v54, (unsigned int)v74);\nbreak;\n}\n__asm { rdtscp }\nv55 = v53;\nv56 = _RAX;\n__asm { cpuid }\nif ( (((unsigned __int64)v55 << 32) | v56) - v69 - qword_404078 < v79 )\nv79 = (((unsigned __int64)v55 << 32) | v56) - v69 - qword_404078;\nv78 += (((unsigned __int64)v55 << 32) | v56) - v69 - qword_404078;\n}\nif ( (v79 & 0x8000000000000000LL) != 0LL )\nv61 = (double)(int)(v79 & 1 | (v79 >> 1)) + (double)(int)(v79 & 1 | (v79 >> 1));\nelse\nv61 = (double)(int)v79;\nif ( (a1 & 0x8000000000000000LL) != 0LL )\nv62 = (double)(int)(a1 & 1 | (a1 >> 1)) + (double)(int)(a1 & 1 | (a1 >> 1));\nelse\nv62 = (double)(int)a1;\nv63 = v61 / v62;\nv68 = v63;\nif ( v78 < 0 )\nv64 = (double)(int)(v78 & 1 | ((unsigned __int64)v78 >> 1)) + (double)(int)(v78 & 1 | ((unsigned __int64)v78 >> 1));\nelse\nv64 = (double)(int)v78;\nif ( (a1 & 0x8000000000000000LL) != 0LL )\nv65 = (double)(int)(a1 & 1 | (a1 >> 1)) + (double)(int)(a1 & 1 | (a1 >> 1));\nelse\nv65 = (double)(int)a1;\nv66 = v64 / (v65 * (double)5);\nprintf(\" %.3f %s per operation (best) \", v68, off_404070);\nprintf(\"\\t%.3f %s per operation (avg) \", v66, off_404070);\nputchar(10);\nfflush(0LL);\nfree(src);\n}\n\n\n\nQ:[a1,v68,v69,v70,v71,v72,v73,v74,dest,src,l,v78,v79,k,v81,j,v83,v84,v86,sub_401496,sub_40142D,sub_4012AF,sub_401192,sub_401331,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'N', 'v68': 'cycle_per_op_0', 'v69': 'cycles_start_1', 'v70': 'cycles_start_2', 'v71': 'cycle_per_op', 'v72': 'cycles_start', 'v73': 'cycles_start_0', 'v74': 'expected', 'dest': 'buffer', 'src': 'data', 'l': 'i_2', 'v78': 'sum_diff_0', 'v79': 'min_diff_1', 'k': 'i_1', 'v81': 'min_diff_2', 'j': 'i_0', 'v83': 'sum_diff', 'v84': 'min_diff', 'v86': 'min_diff_0', 'sub_401496': 'demo', 'sub_40142D': 'fillwithascii', 'sub_4012AF': 'removewhite', 'sub_401192': 'rdtsc_overhead_func', 'sub_401331': 'lu_removewhite'}"}
main
c78cb222ebd8412a2bd21a07ec5c48a10de59b95e04c8d8010ec937cf57b8a8f
stephenrkell
liballocs
NA
int main() { xprintf("foo\n"); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4198896, "binary_name": "c78cb222ebd8412a2bd21a07ec5c48a10de59b95e04c8d8010ec937cf57b8a8f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov edi, offset aFoo"], [3, "mov eax, 0"], [4, "call sub_40114E"], [5, "mov eax, 0"], [6, "pop rbp"], [7, "retn"]], "data_dep": [[6, 0], [7, 5]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c78cb222ebd8412a2bd21a07ec5c48a10de59b95e04c8d8010ec937cf57b8a8f_c78cb222ebd8412a2bd21a07ec5c48a10de59b95e04c8d8010ec937cf57b8a8f.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n__int64 __fastcall main(int a1, char **a2, char **a3, __int64 a4, __int64 a5, __int64 a6)\n{\nsub_40114E(\"foo\\n\", (__int64)a2, (__int64)a3, a4, a5, a6);\nreturn 0LL;\n}\n\n\n\nQ:[a2,a3,a1,sub_40114E,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'sub_40114E': 'xprintf'}"}
bz_config_ok
76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60
Wiimm
wiimms-szs-tools
NA
static int bz_config_ok ( void ) { if (sizeof(int) != 4) return 0; if (sizeof(short) != 2) return 0; if (sizeof(char) != 1) return 0; return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4B3D92", "function_addr": 4930962, "binary_name": "76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60.elf_extract.pkl\n"}, "code": [[0, "mov eax, 1"], [1, "retn"]], "data_dep": [[1, 0]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60_76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60.jsonl.gz", "strip_func_name": "sub_4B3D92", "query": "\n\n\n__int64 sub_4B3D92()\n{\nreturn 1LL;\n}\n\n\n\nQ:[sub_4B3D92,]\nAssistant: ", "hints": "[]", "response": "{'sub_4B3D92': 'bz_config_ok'}"}
PHYSFS_utf8ToUcs4
83a9aa4126c589a6f8453a0849c3fcd29d44c939e30436d38b3d30eb244fd78e
solenum
exengine
NA
void PHYSFS_utf8ToUcs4(const char *src, PHYSFS_uint32 *dst, PHYSFS_uint64 len) { len -= sizeof (PHYSFS_uint32); /* save room for null char. */ while (len >= sizeof (PHYSFS_uint32)) { PHYSFS_uint32 cp = utf8codepoint(&src); if (cp == 0) break; else if (cp == UNICODE_BOGUS_CHAR_VALUE) cp = UNICODE_BOGUS_CHAR_CODEPOINT; *(dst++) = cp; len -= sizeof (PHYSFS_uint32); } /* while */ *dst = 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_426384", "function_addr": 4350852, "binary_name": "83a9aa4126c589a6f8453a0849c3fcd29d44c939e30436d38b3d30eb244fd78e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 28h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "sub [rbp+var_28], 4"], [7, "jmp short loc_4263D7"], [8, "lea rax, [rbp+var_18]"], [9, "mov rdi, rax"], [10, "call sub_425D39"], [11, "mov [rbp+var_4], eax"], [12, "cmp [rbp+var_4], 0"], [13, "jz short loc_4263E0"], [14, "cmp [rbp+var_4], 0FFFFFFFFh"], [15, "jnz short loc_4263C1"], [16, "mov [rbp+var_4], 3Fh "], [17, "mov rax, [rbp+var_20]"], [18, "lea rdx, [rax+4]"], [19, "mov [rbp+var_20], rdx"], [20, "mov edx, [rbp+var_4]"], [21, "mov [rax], edx"], [22, "sub [rbp+var_28], 4"], [23, "cmp [rbp+var_28], 3"], [24, "ja short loc_42639F"], [25, "jmp short loc_4263E1"], [26, "nop"], [27, "mov rax, [rbp+var_20]"], [28, "mov dword ptr [rax], 0"], [29, "nop"], [30, "leave"], [31, "retn"]], "data_dep": [[6, 5], [8, 3], [8, 17], [9, 8], [11, 10], [12, 11], [13, 12], [14, 11], [15, 14], [17, 4], [17, 19], [18, 17], [18, 20], [18, 21], [19, 18], [20, 11], [20, 16], [21, 17], [21, 20], [22, 22], [22, 6], [23, 22], [23, 6], [24, 23], [27, 4], [27, 19], [28, 27], [31, 27]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/83a9aa4126c589a6f8453a0849c3fcd29d44c939e30436d38b3d30eb244fd78e_83a9aa4126c589a6f8453a0849c3fcd29d44c939e30436d38b3d30eb244fd78e.jsonl.gz", "strip_func_name": "sub_426384", "query": "\n\n\n_DWORD *__fastcall sub_426384(unsigned __int8 *a1, _DWORD *a2, __int64 a3)\n{\n_DWORD *v3; // rax\n_DWORD *result; // rax\nunsigned __int64 i; // [rsp+0h] [rbp-28h]\nunsigned __int8 *v7; // [rsp+10h] [rbp-18h] BYREF\nint v8; // [rsp+24h] [rbp-4h]\n\nv7 = a1;\nfor ( i = a3 - 4; i > 3; i -= 4LL )\n{\nv8 = sub_425D39(&v7);\nif ( !v8 )\nbreak;\nif ( v8 == -1 )\nv8 = 63;\nv3 = a2++;\n*v3 = v8;\n}\nresult = a2;\n*a2 = 0;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,i,v7,v8,sub_426384,sub_425D39,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'len', 'a1': 'src', 'a2': 'dst', 'i': 'lena', 'v7': 'srca', 'v8': 'cp', 'sub_426384': 'PHYSFS_utf8ToUcs4', 'sub_425D39': 'utf8codepoint'}"}
name_matches
419510bcecc994a3754e5ab47aa58d228bb38fb3eef1e1256af3b83aa3eae934
neilbrown
mdadm
NA
static int name_matches(char *found, char *required, char *homehost, int require_homehost) { /* See if the name found matches the required name, possibly * prefixed with 'homehost' */ char *sep; unsigned int l; if (strcmp(found, required)==0) return 1; sep = strchr(found, ':'); if (!sep) return 0; l = sep - found; if (strncmp(found, "any:", 4) == 0 || (homehost && strcmp(homehost, "any") == 0) || !require_homehost || (homehost && strlen(homehost) == l && strncmp(found, homehost, l) == 0)) { /* matching homehost */ if (strcmp(sep+1, required) == 0) return 1; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41A26B", "function_addr": 4301419, "binary_name": "419510bcecc994a3754e5ab47aa58d228bb38fb3eef1e1256af3b83aa3eae934.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+s1], rdi"], [4, "mov [rbp+s2], rsi"], [5, "mov [rbp+s], rdx"], [6, "mov [rbp+var_2C], ecx"], [7, "mov rdx, [rbp+s2]"], [8, "mov rax, [rbp+s1]"], [9, "mov rsi, rdx"], [10, "mov rdi, rax"], [11, "call _strcmp"], [12, "test eax, eax"], [13, "jnz short loc_41A2A3"], [14, "mov eax, 1"], [15, "jmp locret_41A36C"], [16, "mov rax, [rbp+s1]"], [17, "mov esi, 3Ah "], [18, "mov rdi, rax"], [19, "call _strchr"], [20, "mov [rbp+n+4], rax"], [21, "cmp [rbp+n+4], 0"], [22, "jnz short loc_41A2C9"], [23, "mov eax, 0"], [24, "jmp locret_41A36C"], [25, "mov rax, [rbp+n+4]"], [26, "sub rax, [rbp+s1]"], [27, "mov dword ptr [rbp+n], eax"], [28, "mov rax, [rbp+s1]"], [29, "mov edx, 4"], [30, "mov esi, offset aAny"], [31, "mov rdi, rax"], [32, "call _strncmp"], [33, "test eax, eax"], [34, "jz short loc_41A345"], [35, "cmp [rbp+s], 0"], [36, "jz short loc_41A30A"], [37, "mov rax, [rbp+s]"], [38, "mov esi, offset aAny_0"], [39, "mov rdi, rax"], [40, "call _strcmp"], [41, "test eax, eax"], [42, "jz short loc_41A345"], [43, "cmp [rbp+var_2C], 0"], [44, "jz short loc_41A345"], [45, "cmp [rbp+s], 0"], [46, "jz short loc_41A367"], [47, "mov rax, [rbp+s]"], [48, "mov rdi, rax"], [49, "call _strlen"], [50, "mov edx, dword ptr [rbp+n]"], [51, "cmp rax, rdx"], [52, "jnz short loc_41A367"], [53, "mov edx, dword ptr [rbp+n]"], [54, "mov rcx, [rbp+s]"], [55, "mov rax, [rbp+s1]"], [56, "mov rsi, rcx"], [57, "mov rdi, rax"], [58, "call _strncmp"], [59, "test eax, eax"], [60, "jnz short loc_41A367"], [61, "mov rax, [rbp+n+4]"], [62, "lea rdx, [rax+1]"], [63, "mov rax, [rbp+s2]"], [64, "mov rsi, rax"], [65, "mov rdi, rdx"], [66, "call _strcmp"], [67, "test eax, eax"], [68, "jnz short loc_41A367"], [69, "mov eax, 1"], [70, "jmp short locret_41A36C"], [71, "mov eax, 0"], [72, "leave"], [73, "retn"]], "data_dep": [[7, 4], [8, 3], [9, 7], [10, 8], [12, 11], [13, 12], [16, 3], [18, 16], [20, 19], [21, 20], [22, 21], [25, 20], [26, 25], [26, 3], [27, 26], [28, 3], [31, 28], [33, 32], [34, 33], [35, 5], [36, 35], [37, 5], [39, 37], [41, 40], [42, 41], [43, 6], [44, 43], [45, 5], [46, 45], [47, 5], [48, 47], [50, 27], [51, 50], [51, 49], [52, 51], [53, 27], [54, 5], [55, 3], [56, 54], [57, 55], [59, 58], [60, 59], [61, 20], [62, 29], [62, 53], [62, 61], [63, 4], [64, 63], [65, 62], [67, 66], [68, 67], [73, 14], [73, 23], [73, 71], [73, 69]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/419510bcecc994a3754e5ab47aa58d228bb38fb3eef1e1256af3b83aa3eae934_419510bcecc994a3754e5ab47aa58d228bb38fb3eef1e1256af3b83aa3eae934.jsonl.gz", "strip_func_name": "sub_41A26B", "query": "\n\n\n_BOOL8 __fastcall sub_41A26B(const char *a1, const char *a2, const char *a3, int a4)\n{\nunsigned int n; // [rsp+24h] [rbp-Ch]\nchar *n_4; // [rsp+28h] [rbp-8h]\n\nif ( !strcmp(a1, a2) )\nreturn 1LL;\nn_4 = strchr(a1, 58);\nif ( !n_4 )\nreturn 0LL;\nn = (_DWORD)n_4 - (_DWORD)a1;\nreturn (!strncmp(a1, \"any:\", 4uLL) || a3 && !strcmp(a3, \"any\") || !a4 || a3 && strlen(a3) == n && !strncmp(a1, a3, n))\n&& !strcmp(n_4 + 1, a2);\n}\n\n\n\nQ:[a3,a4,a1,a2,n,n_4,sub_41A26B,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'homehost', 'a4': 'require_homehost', 'a1': 'found', 'a2': 'required', 'n': 'l', 'n_4': 'sep', 'sub_41A26B': 'name_matches'}"}
_printn
62f77b4bb4c070cc987471204bb781c797be16a2b0fcb85d3f689e1fbf7e21aa
x43x61x69
gbdk-osx
NA
static void _printn(int n) { int rem; if (n < 0) { _putchar('-'); n = -n; } rem = __mod(n, 10); if (rem != n) { _printn(__div(n, 10)); } _putchar('0' + rem); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401256", "function_addr": 4198998, "binary_name": "62f77b4bb4c070cc987471204bb781c797be16a2b0fcb85d3f689e1fbf7e21aa.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_14], edi"], [4, "cmp [rbp+var_14], 0"], [5, "jns short loc_401274"], [6, "mov edi, 2Dh "], [7, "call sub_40159B"], [8, "neg [rbp+var_14]"], [9, "mov eax, [rbp+var_14]"], [10, "mov esi, 0Ah"], [11, "mov edi, eax"], [12, "call sub_401237"], [13, "mov [rbp+var_4], eax"], [14, "mov eax, [rbp+var_4]"], [15, "cmp eax, [rbp+var_14]"], [16, "jz short loc_4012A4"], [17, "mov eax, [rbp+var_14]"], [18, "mov esi, 0Ah"], [19, "mov edi, eax"], [20, "call sub_40120D"], [21, "mov edi, eax"], [22, "call sub_401256"], [23, "mov eax, [rbp+var_4]"], [24, "add eax, 30h "], [25, "movsx eax, al"], [26, "mov edi, eax"], [27, "call sub_40159B"], [28, "nop"], [29, "leave"], [30, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 3], [9, 8], [9, 3], [11, 9], [13, 12], [14, 13], [15, 8], [15, 14], [15, 3], [16, 15], [17, 3], [17, 8], [19, 17], [21, 20], [23, 13], [24, 23], [25, 24], [26, 25], [30, 27]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/62f77b4bb4c070cc987471204bb781c797be16a2b0fcb85d3f689e1fbf7e21aa_62f77b4bb4c070cc987471204bb781c797be16a2b0fcb85d3f689e1fbf7e21aa.jsonl.gz", "strip_func_name": "sub_401256", "query": "\n\n\n__int64 __fastcall sub_401256(int a1)\n{\nunsigned int v1; // eax\nint v3; // [rsp+Ch] [rbp-14h]\nint v4; // [rsp+1Ch] [rbp-4h]\n\nv3 = a1;\nif ( a1 < 0 )\n{\nsub_40159B(45LL);\nv3 = -a1;\n}\nv4 = sub_401237(v3, 10);\nif ( v4 != v3 )\n{\nv1 = sub_40120D(v3, 10);\nsub_401256(v1);\n}\nreturn sub_40159B((unsigned int)(char)(v4 + 48));\n}\n\n\n\nQ:[a1,v3,v4,sub_401256,sub_40159B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'n', 'v3': 'na', 'v4': 'rem', 'sub_401256': '_printn', 'sub_40159B': '_putchar'}"}
l2cap_handle_channel_closed
266b6bceb9d3f5222a007f960f0190a531bfea0cb420d862c9ab53bf7bbb75b7
Kevincoooool
esp32s3_openmv_lvgl
NA
static void l2cap_handle_channel_closed(l2cap_channel_t * channel){ #ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE // emit ertm buffer released, as it's not needed anymore. if in basic mode, it was either not allocated or already released if (channel->mode == L2CAP_CHANNEL_MODE_ENHANCED_RETRANSMISSION){ l2cap_emit_simple_event_with_cid(channel, L2CAP_EVENT_ERTM_BUFFER_RELEASED); } #endif l2cap_emit_channel_closed(channel); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_417B07", "function_addr": 4291335, "binary_name": "266b6bceb9d3f5222a007f960f0190a531bfea0cb420d862c9ab53bf7bbb75b7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov eax, [rax+90h]"], [6, "cmp eax, 3"], [7, "jnz short loc_417B33"], [8, "mov rax, [rbp+var_8]"], [9, "mov esi, 7Eh "], [10, "mov rdi, rax"], [11, "call sub_417650"], [12, "mov rax, [rbp+var_8]"], [13, "mov rdi, rax"], [14, "call sub_41791C"], [15, "nop"], [16, "leave"], [17, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 3], [10, 8], [12, 3], [13, 12], [17, 14]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/266b6bceb9d3f5222a007f960f0190a531bfea0cb420d862c9ab53bf7bbb75b7_266b6bceb9d3f5222a007f960f0190a531bfea0cb420d862c9ab53bf7bbb75b7.jsonl.gz", "strip_func_name": "sub_417B07", "query": "\n\n\n__int64 __fastcall sub_417B07(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nif ( *(_DWORD *)(a1 + 144) == 3 )\n{\na2 = 126LL;\nsub_417650(a1, 126);\n}\nreturn sub_41791C(a1, a2, a3, a4, a5, a6);\n}\n\n\n\nQ:[a1,sub_417B07,sub_417650,sub_41791C,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'channel', 'sub_417B07': 'l2cap_handle_channel_closed', 'sub_417650': 'l2cap_emit_simple_event_with_cid', 'sub_41791C': 'l2cap_emit_channel_closed'}"}
simplify_deposit
c01d3aec38f1f0fc6d283c3a670d938f7f9dc20a11765202b902e11a359342bd
teslamotors
coreboot
NA
static void simplify_deposit(struct compile_state *state, struct triple *ins) { if (is_simple_const(RHS(ins, 0)) && is_simple_const(RHS(ins, 1))) { ulong_t targ, val; ulong_t mask; targ = read_const(state, ins, RHS(ins, 0)); val = read_const(state, ins, RHS(ins, 1)); mask = 1; mask <<= ins->u.bitfield.size; mask -= 1; mask <<= ins->u.bitfield.offset; targ &= ~mask; val <<= ins->u.bitfield.offset; val &= mask; targ |= val; mkconst(state, ins, targ); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41951F", "function_addr": 4298015, "binary_name": "c01d3aec38f1f0fc6d283c3a670d938f7f9dc20a11765202b902e11a359342bd.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_20]"], [6, "mov eax, [rax+20h]"], [7, "shr eax, 0Fh"], [8, "and eax, 3Fh"], [9, "movzx edx, al"], [10, "mov rax, [rbp+var_20]"], [11, "movsxd rdx, edx"], [12, "add rdx, 6"], [13, "mov rax, [rax+rdx*8+8]"], [14, "mov rdi, rax"], [15, "call sub_413B62"], [16, "test eax, eax"], [17, "jz loc_419664"], [18, "mov rax, [rbp+var_20]"], [19, "mov eax, [rax+20h]"], [20, "shr eax, 0Fh"], [21, "and eax, 3Fh"], [22, "movzx eax, al"], [23, "lea edx, [rax+1]"], [24, "mov rax, [rbp+var_20]"], [25, "movsxd rdx, edx"], [26, "add rdx, 6"], [27, "mov rax, [rax+rdx*8+8]"], [28, "mov rdi, rax"], [29, "call sub_413B62"], [30, "test eax, eax"], [31, "jz loc_419664"], [32, "mov rax, [rbp+var_20]"], [33, "mov eax, [rax+20h]"], [34, "shr eax, 0Fh"], [35, "and eax, 3Fh"], [36, "movzx edx, al"], [37, "mov rax, [rbp+var_20]"], [38, "movsxd rdx, edx"], [39, "add rdx, 6"], [40, "mov rdx, [rax+rdx*8+8]"], [41, "mov rcx, [rbp+var_20]"], [42, "mov rax, [rbp+var_18]"], [43, "mov rsi, rcx"], [44, "mov rdi, rax"], [45, "call sub_413F3B"], [46, "mov [rbp+var_4], eax"], [47, "mov rax, [rbp+var_20]"], [48, "mov eax, [rax+20h]"], [49, "shr eax, 0Fh"], [50, "and eax, 3Fh"], [51, "movzx eax, al"], [52, "lea edx, [rax+1]"], [53, "mov rax, [rbp+var_20]"], [54, "movsxd rdx, edx"], [55, "add rdx, 6"], [56, "mov rdx, [rax+rdx*8+8]"], [57, "mov rcx, [rbp+var_20]"], [58, "mov rax, [rbp+var_18]"], [59, "mov rsi, rcx"], [60, "mov rdi, rax"], [61, "call sub_413F3B"], [62, "mov [rbp+var_8], eax"], [63, "mov [rbp+var_C], 1"], [64, "mov rax, [rbp+var_20]"], [65, "movzx eax, byte ptr [rax+30h]"], [66, "movzx eax, al"], [67, "mov ecx, eax"], [68, "shl [rbp+var_C], cl"], [69, "sub [rbp+var_C], 1"], [70, "mov rax, [rbp+var_20]"], [71, "mov eax, [rax+30h]"], [72, "shr eax, 8"], [73, "mov ecx, eax"], [74, "shl [rbp+var_C], cl"], [75, "mov eax, [rbp+var_C]"], [76, "not eax"], [77, "and [rbp+var_4], eax"], [78, "mov rax, [rbp+var_20]"], [79, "mov eax, [rax+30h]"], [80, "shr eax, 8"], [81, "mov ecx, eax"], [82, "shl [rbp+var_8], cl"], [83, "mov eax, [rbp+var_C]"], [84, "and [rbp+var_8], eax"], [85, "mov eax, [rbp+var_8]"], [86, "or [rbp+var_4], eax"], [87, "mov edx, [rbp+var_4]"], [88, "mov rcx, [rbp+var_20]"], [89, "mov rax, [rbp+var_18]"], [90, "mov rsi, rcx"], [91, "mov rdi, rax"], [92, "call sub_4149C1"], [93, "nop"], [94, "leave"], [95, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 4], [11, 9], [12, 11], [13, 10], [14, 13], [16, 15], [17, 16], [18, 4], [19, 18], [20, 19], [21, 20], [22, 21], [23, 22], [23, 12], [24, 4], [25, 23], [26, 25], [27, 24], [28, 27], [30, 29], [31, 30], [32, 4], [33, 32], [34, 33], [35, 34], [36, 35], [37, 4], [38, 36], [39, 38], [40, 37], [41, 4], [42, 3], [43, 41], [44, 42], [46, 45], [47, 4], [48, 47], [49, 48], [50, 49], [51, 50], [52, 40], [52, 51], [53, 4], [54, 52], [55, 54], [56, 53], [57, 4], [58, 3], [59, 57], [60, 58], [62, 61], [64, 4], [65, 64], [66, 65], [67, 66], [68, 63], [68, 67], [69, 68], [70, 4], [71, 70], [72, 71], [73, 72], [74, 73], [74, 69], [75, 74], [76, 75], [77, 46], [77, 76], [78, 4], [79, 78], [80, 79], [81, 80], [82, 81], [82, 62], [83, 74], [84, 83], [84, 82], [85, 84], [86, 85], [86, 77], [87, 86], [88, 4], [89, 3], [90, 88], [91, 89], [95, 92], [95, 30], [95, 16]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c01d3aec38f1f0fc6d283c3a670d938f7f9dc20a11765202b902e11a359342bd_c01d3aec38f1f0fc6d283c3a670d938f7f9dc20a11765202b902e11a359342bd.jsonl.gz", "strip_func_name": "sub_41951F", "query": "\n\n\n__int64 __fastcall sub_41951F(FILE **a1, __int64 a2)\n{\n__int64 result; // rax\nint v3; // eax\nint v4; // [rsp+14h] [rbp-Ch]\nunsigned int v5; // [rsp+1Ch] [rbp-4h]\n\nresult = sub_413B62(*(_QWORD *)(a2 + 8 * (((*(_DWORD *)(a2 + 32) >> 15) & 0x3F) + 6LL) + 8));\nif ( (_DWORD)result )\n{\nresult = sub_413B62(*(_QWORD *)(a2 + 8 * (((*(_DWORD *)(a2 + 32) >> 15) & 0x3F) + 1 + 6LL) + 8));\nif ( (_DWORD)result )\n{\nv5 = sub_413F3B(a1, a2, *(_QWORD *)(a2 + 8 * (((*(_DWORD *)(a2 + 32) >> 15) & 0x3F) + 6LL) + 8));\nv3 = sub_413F3B(a1, a2, *(_QWORD *)(a2 + 8 * (((*(_DWORD *)(a2 + 32) >> 15) & 0x3F) + 1 + 6LL) + 8));\nv4 = ((1 << *(_BYTE *)(a2 + 48)) - 1) << BYTE1(*(_DWORD *)(a2 + 48));\nresult = sub_4149C1(a1, a2, v4 & (v3 << BYTE1(*(_DWORD *)(a2 + 48))) | ~v4 & v5);\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v4,v5,sub_41951F,sub_413B62,sub_413F3B,sub_4149C1,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'state', 'a2': 'ins', 'v4': 'mask', 'v5': 'targ', 'sub_41951F': 'simplify_deposit', 'sub_413B62': 'is_simple_const', 'sub_413F3B': 'read_const', 'sub_4149C1': 'mkconst'}"}
CmdHF14AMfEKeyPrn
4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487
nccgroup
proxmark3-amiimicyou
NA
int CmdHF14AMfEKeyPrn(const char *Cmd) { int i; uint8_t numSectors; uint8_t data[16]; uint64_t keyA, keyB; if (param_getchar(Cmd, 0) == 'h') { PrintAndLog("It prints the keys loaded in the emulator memory"); PrintAndLog("Usage: hf mf ekeyprn [card memory]"); PrintAndLog(" [card memory]: 0 = 320 bytes (Mifare Mini), 1 = 1K (default), 2 = 2K, 4 = 4K"); PrintAndLog(""); PrintAndLog(" sample: hf mf ekeyprn 1"); return 0; } char cmdp = param_getchar(Cmd, 0); switch (cmdp) { case '0' : numSectors = 5; break; case '1' : case '\0': numSectors = 16; break; case '2' : numSectors = 32; break; case '4' : numSectors = 40; break; default: numSectors = 16; } PrintAndLog("|---|----------------|----------------|"); PrintAndLog("|sec|key A |key B |"); PrintAndLog("|---|----------------|----------------|"); for (i = 0; i < numSectors; i++) { if (mfEmlGetMem(data, FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1, 1)) { PrintAndLog("error get block %d", FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1); break; } keyA = bytes_to_num(data, 6); keyB = bytes_to_num(data + 10, 6); PrintAndLog("|%03d| %012" PRIx64 " | %012" PRIx64 " |", i, keyA, keyB); } PrintAndLog("|---|----------------|----------------|"); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "CmdHF14AMfEKeyPrn", "function_addr": 4454330, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 48h"], [4, "mov [rbp+var_48], rdi"], [5, "mov rax, [rbp+var_48]"], [6, "mov esi, 0"], [7, "mov rdi, rax"], [8, "call param_getchar"], [9, "cmp al, 68h "], [10, "jnz short loc_43F831"], [11, "mov edi, offset aItPrintsTheKey"], [12, "mov eax, 0"], [13, "call PrintAndLog"], [14, "mov edi, offset aUsageHfMfEkeyp"], [15, "mov eax, 0"], [16, "call PrintAndLog"], [17, "mov edi, offset aCardMemory0320"], [18, "mov eax, 0"], [19, "call PrintAndLog"], [20, "mov edi, offset unk_4A93D9"], [21, "mov eax, 0"], [22, "call PrintAndLog"], [23, "mov edi, offset aSampleHfMfEkey"], [24, "mov eax, 0"], [25, "call PrintAndLog"], [26, "mov eax, 0"], [27, "jmp loc_43F9A8"], [28, "mov rax, [rbp+var_48]"], [29, "mov esi, 0"], [30, "mov rdi, rax"], [31, "call param_getchar"], [32, "mov [rbp+var_16], al"], [33, "movsx eax, [rbp+var_16]"], [34, "cmp eax, 34h "], [35, "jz short loc_43F882"], [36, "cmp eax, 34h "], [37, "jg short loc_43F888"], [38, "cmp eax, 32h "], [39, "jz short loc_43F87C"], [40, "cmp eax, 32h "], [41, "jg short loc_43F888"], [42, "cmp eax, 31h "], [43, "jz short loc_43F876"], [44, "cmp eax, 31h "], [45, "jg short loc_43F888"], [46, "test eax, eax"], [47, "jz short loc_43F876"], [48, "cmp eax, 30h "], [49, "jnz short loc_43F888"], [50, "mov [rbp+var_15], 5"], [51, "jmp short loc_43F88C"], [52, "mov [rbp+var_15], 10h"], [53, "jmp short loc_43F88C"], [54, "mov [rbp+var_15], 20h "], [55, "jmp short loc_43F88C"], [56, "mov [rbp+var_15], 28h "], [57, "jmp short loc_43F88C"], [58, "mov [rbp+var_15], 10h"], [59, "mov edi, offset asc_4AB470"], [60, "mov eax, 0"], [61, "call PrintAndLog"], [62, "mov edi, offset aSecKeyAKeyB"], [63, "mov eax, 0"], [64, "call PrintAndLog"], [65, "mov edi, offset asc_4AB470"], [66, "mov eax, 0"], [67, "call PrintAndLog"], [68, "mov [rbp+var_14], 0"], [69, "jmp loc_43F987"], [70, "mov eax, [rbp+var_14]"], [71, "movzx eax, al"], [72, "mov edi, eax"], [73, "call FirstBlockOfSector"], [74, "movzx ebx, al"], [75, "mov eax, [rbp+var_14]"], [76, "movzx eax, al"], [77, "mov edi, eax"], [78, "call NumBlocksPerSector"], [79, "movzx eax, al"], [80, "add eax, ebx"], [81, "lea ecx, [rax-1]"], [82, "lea rax, [rbp+var_40]"], [83, "mov edx, 1"], [84, "mov esi, ecx"], [85, "mov rdi, rax"], [86, "call mfEmlGetMem"], [87, "test eax, eax"], [88, "jz short loc_43F939"], [89, "mov eax, [rbp+var_14]"], [90, "movzx eax, al"], [91, "mov edi, eax"], [92, "call FirstBlockOfSector"], [93, "movzx ebx, al"], [94, "mov eax, [rbp+var_14]"], [95, "movzx eax, al"], [96, "mov edi, eax"], [97, "call NumBlocksPerSector"], [98, "movzx eax, al"], [99, "add eax, ebx"], [100, "sub eax, 1"], [101, "mov esi, eax"], [102, "mov edi, offset aErrorGetBlockD"], [103, "mov eax, 0"], [104, "call PrintAndLog"], [105, "jmp short loc_43F994"], [106, "lea rax, [rbp+var_40]"], [107, "mov esi, 6"], [108, "mov rdi, rax"], [109, "call bytes_to_num"], [110, "mov [rbp+var_20], rax"], [111, "lea rax, [rbp+var_40]"], [112, "add rax, 0Ah"], [113, "mov esi, 6"], [114, "mov rdi, rax"], [115, "call bytes_to_num"], [116, "mov [rbp+var_28], rax"], [117, "mov rcx, [rbp+var_28]"], [118, "mov rdx, [rbp+var_20]"], [119, "mov eax, [rbp+var_14]"], [120, "mov esi, eax"], [121, "mov edi, offset a03d012lx012lx"], [122, "mov eax, 0"], [123, "call PrintAndLog"], [124, "add [rbp+var_14], 1"], [125, "movzx eax, [rbp+var_15]"], [126, "cmp [rbp+var_14], eax"], [127, "jl loc_43F8C5"], [128, "mov edi, offset asc_4AB470"], [129, "mov eax, 0"], [130, "call PrintAndLog"], [131, "mov eax, 0"], [132, "mov rbx, [rbp+var_8]"], [133, "leave"], [134, "retn"]], "data_dep": [[5, 4], [7, 5], [9, 8], [10, 9], [28, 4], [30, 28], [32, 31], [33, 32], [34, 33], [35, 34], [36, 33], [37, 36], [38, 33], [39, 38], [40, 33], [41, 40], [42, 33], [43, 42], [44, 33], [45, 44], [46, 33], [47, 46], [48, 46], [49, 48], [70, 68], [70, 124], [71, 70], [72, 71], [74, 73], [75, 124], [75, 68], [76, 75], [77, 76], [79, 78], [80, 74], [80, 79], [81, 80], [81, 117], [82, 80], [84, 81], [85, 82], [87, 86], [88, 87], [89, 68], [89, 124], [90, 89], [91, 90], [93, 92], [94, 68], [94, 124], [95, 94], [96, 95], [98, 97], [99, 93], [99, 98], [100, 99], [101, 100], [106, 87], [108, 106], [110, 109], [111, 109], [112, 111], [114, 112], [116, 115], [117, 116], [118, 110], [119, 68], [119, 124], [120, 119], [124, 124], [124, 68], [125, 50], [125, 52], [125, 54], [125, 56], [125, 58], [126, 68], [126, 125], [126, 124], [127, 126], [134, 131], [134, 26]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487_4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.jsonl.gz", "strip_func_name": "CmdHF14AMfEKeyPrn", "query": "\n\n\n__int64 __fastcall CmdHF14AMfEKeyPrn(const char *a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9)\n{\n__int64 v9; // rdx\n__int64 v10; // rcx\n__int64 v11; // r8\n__int64 v12; // r9\n__m128 v13; // xmm4\n__m128 v14; // xmm5\n__int64 v15; // rdx\n__int64 v16; // rcx\n__int64 v17; // r8\n__int64 v18; // r9\n__m128 v19; // xmm4\n__m128 v20; // xmm5\n__int64 v21; // rdx\n__int64 v22; // rcx\n__int64 v23; // r8\n__int64 v24; // r9\n__m128 v25; // xmm4\n__m128 v26; // xmm5\n__int64 v27; // rdx\n__int64 v28; // rcx\n__int64 v29; // r8\n__int64 v30; // r9\n__m128 v31; // xmm4\n__m128 v32; // xmm5\n__int64 v33; // rdx\n__int64 v34; // rcx\n__int64 v35; // r8\n__int64 v36; // r9\n__m128 v37; // xmm4\n__m128 v38; // xmm5\n__int64 v40; // rsi\n__int64 v41; // rdx\n__int64 v42; // rcx\n__int64 v43; // r8\n__int64 v44; // r9\n__m128 v45; // xmm4\n__m128 v46; // xmm5\n__int64 v47; // rdx\n__int64 v48; // rcx\n__int64 v49; // r8\n__int64 v50; // r9\n__m128 v51; // xmm4\n__m128 v52; // xmm5\n__int64 v53; // rdx\n__int64 v54; // rcx\n__int64 v55; // r8\n__int64 v56; // r9\n__m128 v57; // xmm4\n__m128 v58; // xmm5\n__int64 v59; // rdx\n__int64 v60; // rcx\n__int64 v61; // r8\n__int64 v62; // r9\n__m128 v63; // xmm4\n__m128 v64; // xmm5\nint v65; // ebx\nunsigned __int8 v66; // al\nint v67; // er8\nint v68; // er9\nint v69; // ebx\n__int64 v70; // rdx\n__int64 v71; // rcx\n__int64 v72; // r8\n__int64 v73; // r9\n__m128 v74; // xmm4\n__m128 v75; // xmm5\n__int64 v76; // r8\n__int64 v77; // r9\n__m128 v78; // xmm4\n__m128 v79; // xmm5\nchar v80; // [rsp+0h] [rbp-50h]\nchar v81; // [rsp+0h] [rbp-50h]\nchar v82; // [rsp+0h] [rbp-50h]\nchar v83; // [rsp+0h] [rbp-50h]\nchar v84; // [rsp+0h] [rbp-50h]\nchar v85; // [rsp+0h] [rbp-50h]\nchar v86; // [rsp+0h] [rbp-50h]\nchar v87; // [rsp+0h] [rbp-50h]\nunsigned __int8 v88[10]; // [rsp+10h] [rbp-40h] BYREF\nunsigned __int8 v89[14]; // [rsp+1Ah] [rbp-36h] BYREF\n__int64 v90; // [rsp+28h] [rbp-28h]\n__int64 v91; // [rsp+30h] [rbp-20h]\nchar v92; // [rsp+3Ah] [rbp-16h]\nunsigned __int8 v93; // [rsp+3Bh] [rbp-15h]\nunsigned int i; // [rsp+3Ch] [rbp-14h]\n\nif ( (unsigned __int8)param_getchar(a1, 0) == 104 )\n{\nPrintAndLog(\n\"It prints the keys loaded in the emulator memory\",\n0LL,\nv9,\nv10,\nv11,\nv12,\na2,\na3,\na4,\na5,\nv13,\nv14,\na8,\na9,\nv80);\nPrintAndLog(\"Usage: hf mf ekeyprn [card memory]\", 0LL, v15, v16, v17, v18, a2, a3, a4, a5, v19, v20, a8, a9, v81);\nPrintAndLog(\n\" [card memory]: 0 = 320 bytes (Mifare Mini), 1 = 1K (default), 2 = 2K, 4 = 4K\",\n0LL,\nv21,\nv22,\nv23,\nv24,\na2,\na3,\na4,\na5,\nv25,\nv26,\na8,\na9,\nv82);\nPrintAndLog(byte_4A93D9, 0LL, v27, v28, v29, v30, a2, a3, a4, a5, v31, v32, a8, a9, v83);\nPrintAndLog(\" sample: hf mf ekeyprn 1\", 0LL, v33, v34, v35, v36, a2, a3, a4, a5, v37, v38, a8, a9, v84);\nreturn 0LL;\n}\nv40 = 0LL;\nv92 = param_getchar(a1, 0);\nif ( v92 == 52 )\n{\nv93 = 40;\n}\nelse\n{\nif ( v92 <= 52 )\n{\nif ( v92 == 50 )\n{\nv93 = 32;\ngoto LABEL_15;\n}\nif ( v92 <= 50 )\n{\nif ( v92 == 49 || !v92 )\n{\nv93 = 16;\ngoto LABEL_15;\n}\nif ( v92 == 48 )\n{\nv93 = 5;\ngoto LABEL_15;\n}\n}\n}\nv93 = 16;\n}\nLABEL_15:\nPrintAndLog(\"|---|----------------|----------------|\", 0LL, v41, v42, v43, v44, a2, a3, a4, a5, v45, v46, a8, a9, v80);\nPrintAndLog(\"|sec|key A |key B |\", 0LL, v47, v48, v49, v50, a2, a3, a4, a5, v51, v52, a8, a9, v85);\nPrintAndLog(\"|---|----------------|----------------|\", 0LL, v53, v54, v55, v56, a2, a3, a4, a5, v57, v58, a8, a9, v86);\nfor ( i = 0; (int)i < v93; ++i )\n{\nv65 = (unsigned __int8)FirstBlockOfSector(i);\nv66 = NumBlocksPerSector(i);\nif ( (unsigned int)mfEmlGetMem(v88, v65 + (unsigned int)v66 - 1, 1, v65 + (unsigned int)v66 - 1, v67, v68) )\n{\nv69 = (unsigned __int8)FirstBlockOfSector(i);\nv40 = v69 + (unsigned int)(unsigned __int8)NumBlocksPerSector(i) - 1;\nPrintAndLog(\"error get block %d\", v40, v70, v71, v72, v73, a2, a3, a4, a5, v74, v75, a8, a9, v87);\nbreak;\n}\nv91 = bytes_to_num(v88, 6LL);\nv90 = bytes_to_num(v89, 6LL);\nv40 = i;\nPrintAndLog(\"|%03d| %012lx | %012lx |\", i, v91, v90, v76, v77, a2, a3, a4, a5, v78, v79, a8, a9, v87);\n}\nPrintAndLog(\"|---|----------------|----------------|\", v40, v59, v60, v61, v62, a2, a3, a4, a5, v63, v64, a8, a9, v87);\nreturn 0LL;\n}\n\n\n\nQ:[a1,v88,v90,v91,v92,v93,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'Cmd', 'v88': 'data', 'v90': 'keyB', 'v91': 'keyA', 'v92': 'cmdp', 'v93': 'numSectors'}"}
bpf_linker__add_file
dbf98db2a0f1b887d4bf144dd282b41d458f005787ca0a1575346fa1b41f63d5
intel
uintr-linux-kernel
NA
int bpf_linker__add_file(struct bpf_linker *linker, const char *filename, const struct bpf_linker_file_opts *opts) { struct src_obj obj = {}; int err = 0; if (!OPTS_VALID(opts, bpf_linker_file_opts)) return libbpf_err(-EINVAL); if (!linker->elf) return libbpf_err(-EINVAL); err = err ?: linker_load_obj_file(linker, filename, opts, &obj); err = err ?: linker_append_sec_data(linker, &obj); err = err ?: linker_append_elf_syms(linker, &obj); err = err ?: linker_append_elf_relos(linker, &obj); err = err ?: linker_append_btf(linker, &obj); err = err ?: linker_append_btf_ext(linker, &obj); /* free up src_obj resources */ free(obj.btf_type_map); btf__free(obj.btf); btf_ext__free(obj.btf_ext); free(obj.secs); free(obj.sym_map); if (obj.elf) elf_end(obj.elf); if (obj.fd >= 0) close(obj.fd); return libbpf_err(err); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43EB4D", "function_addr": 4451149, "binary_name": "dbf98db2a0f1b887d4bf144dd282b41d458f005787ca0a1575346fa1b41f63d5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "add rsp, 0FFFFFFFFFFFFFF80h"], [3, "mov [rbp+var_68], rdi"], [4, "mov [rbp+var_70], rsi"], [5, "mov [rbp+var_78], rdx"], [6, "lea rdx, [rbp+var_60]"], [7, "mov eax, 0"], [8, "mov ecx, 0Bh"], [9, "mov rdi, rdx"], [10, "rep stosq"], [11, "mov [rbp+var_4], 0"], [12, "cmp [rbp+var_78], 0"], [13, "jz short loc_43EBB6"], [14, "mov rax, [rbp+var_78]"], [15, "mov rdx, [rax]"], [16, "mov rax, [rbp+var_78]"], [17, "mov ecx, offset aBpfLinkerFileO"], [18, "mov esi, 8"], [19, "mov rdi, rax"], [20, "call sub_43DF87"], [21, "xor eax, 1"], [22, "test al, al"], [23, "jz short loc_43EBB6"], [24, "mov edi, 0FFFFFFEAh"], [25, "call sub_43E020"], [26, "jmp locret_43ECF1"], [27, "mov rax, [rbp+var_68]"], [28, "mov rax, [rax+10h]"], [29, "test rax, rax"], [30, "jnz short loc_43EBD2"], [31, "mov edi, 0FFFFFFEAh"], [32, "call sub_43E020"], [33, "jmp locret_43ECF1"], [34, "mov eax, [rbp+var_4]"], [35, "test eax, eax"], [36, "jnz short loc_43EBF1"], [37, "lea rcx, [rbp+var_60]"], [38, "mov rdx, [rbp+var_78]"], [39, "mov rsi, [rbp+var_70]"], [40, "mov rax, [rbp+var_68]"], [41, "mov rdi, rax"], [42, "call sub_43EF2C"], [43, "mov [rbp+var_4], eax"], [44, "mov eax, [rbp+var_4]"], [45, "test eax, eax"], [46, "jnz short loc_43EC0E"], [47, "lea rdx, [rbp+var_60]"], [48, "mov rax, [rbp+var_68]"], [49, "mov rsi, rdx"], [50, "mov rdi, rax"], [51, "call sub_4407F0"], [52, "mov [rbp+var_4], eax"], [53, "mov eax, [rbp+var_4]"], [54, "test eax, eax"], [55, "jnz short loc_43EC2B"], [56, "lea rdx, [rbp+var_60]"], [57, "mov rax, [rbp+var_68]"], [58, "mov rsi, rdx"], [59, "mov rdi, rax"], [60, "call sub_4409E9"], [61, "mov [rbp+var_4], eax"], [62, "mov eax, [rbp+var_4]"], [63, "test eax, eax"], [64, "jnz short loc_43EC48"], [65, "lea rdx, [rbp+var_60]"], [66, "mov rax, [rbp+var_68]"], [67, "mov rsi, rdx"], [68, "mov rdi, rax"], [69, "call sub_4428FB"], [70, "mov [rbp+var_4], eax"], [71, "mov eax, [rbp+var_4]"], [72, "test eax, eax"], [73, "jnz short loc_43EC65"], [74, "lea rdx, [rbp+var_60]"], [75, "mov rax, [rbp+var_68]"], [76, "mov rsi, rdx"], [77, "mov rdi, rax"], [78, "call sub_44316C"], [79, "mov [rbp+var_4], eax"], [80, "mov eax, [rbp+var_4]"], [81, "test eax, eax"], [82, "jnz short loc_43EC82"], [83, "lea rdx, [rbp+var_60]"], [84, "mov rax, [rbp+var_68]"], [85, "mov rsi, rdx"], [86, "mov rdi, rax"], [87, "call sub_4438DF"], [88, "mov [rbp+var_4], eax"], [89, "mov rax, [rbp+ptr]"], [90, "mov rdi, rax"], [91, "call _free"], [92, "mov rax, [rbp+var_38]"], [93, "mov rdi, rax"], [94, "call sub_42C2FE"], [95, "mov rax, [rbp+var_30]"], [96, "mov rdi, rax"], [97, "call sub_42FE45"], [98, "mov rax, [rbp+var_28]"], [99, "mov rdi, rax"], [100, "call _free"], [101, "mov rax, [rbp+var_18]"], [102, "mov rdi, rax"], [103, "call _free"], [104, "mov rax, [rbp+var_50]"], [105, "test rax, rax"], [106, "jz short loc_43ECD6"], [107, "mov rax, [rbp+var_50]"], [108, "mov rdi, rax"], [109, "call _elf_end"], [110, "mov eax, [rbp+fd]"], [111, "test eax, eax"], [112, "js short loc_43ECE7"], [113, "mov eax, [rbp+fd]"], [114, "mov edi, eax"], [115, "call _close"], [116, "mov eax, [rbp+var_4]"], [117, "mov edi, eax"], [118, "call sub_43E020"], [119, "leave"], [120, "retn"]], "data_dep": [[9, 6], [12, 5], [13, 12], [14, 5], [15, 14], [16, 5], [19, 16], [21, 20], [22, 21], [23, 22], [27, 3], [28, 27], [29, 28], [30, 29], [34, 11], [35, 34], [36, 35], [37, 8], [37, 17], [38, 5], [39, 4], [40, 3], [41, 40], [43, 42], [43, 35], [44, 43], [45, 44], [46, 45], [47, 6], [47, 38], [47, 15], [48, 3], [49, 47], [50, 48], [52, 51], [52, 45], [53, 52], [54, 53], [55, 54], [56, 6], [56, 38], [56, 47], [56, 15], [57, 3], [58, 56], [59, 57], [61, 54], [61, 60], [62, 61], [63, 62], [64, 63], [65, 6], [65, 15], [65, 38], [65, 47], [65, 56], [66, 3], [67, 65], [68, 66], [70, 63], [70, 69], [71, 70], [72, 71], [73, 72], [74, 6], [74, 15], [74, 38], [74, 47], [74, 56], [74, 65], [75, 3], [76, 74], [77, 75], [79, 78], [79, 72], [80, 79], [81, 80], [82, 81], [83, 6], [83, 38], [83, 47], [83, 56], [83, 65], [83, 15], [83, 74], [84, 3], [85, 83], [86, 84], [88, 81], [88, 87], [90, 89], [93, 92], [96, 95], [99, 98], [102, 101], [105, 104], [106, 105], [108, 107], [111, 110], [112, 111], [114, 113], [116, 88], [117, 116], [120, 32], [120, 25], [120, 118]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/dbf98db2a0f1b887d4bf144dd282b41d458f005787ca0a1575346fa1b41f63d5_dbf98db2a0f1b887d4bf144dd282b41d458f005787ca0a1575346fa1b41f63d5.jsonl.gz", "strip_func_name": "sub_43EB4D", "query": "\n\n\n__int64 __fastcall sub_43EB4D(__int64 a1, __int64 a2, unsigned __int64 *a3, __int64 a4, __int64 a5, __int64 a6)\n{\nint v7; // eax\nint v9[23]; // [rsp+20h] [rbp-60h] BYREF\nint v10; // [rsp+7Ch] [rbp-4h]\n\nmemset(v9, 0, 0x58uLL);\nv10 = 0;\nif ( a3 && (unsigned __int8)sub_43DF87((__int64)a3, 8LL, *a3, (__int64)\"bpf_linker_file_opts\", a5, a6) != 1\n|| !*(_QWORD *)(a1 + 16) )\n{\nreturn sub_43E020(-22);\n}\nv7 = v10;\nif ( !v10 )\nv7 = sub_43EF2C(a1, a2, a3, v9);\nv10 = v7;\nif ( !v7 )\nv7 = sub_4407F0(a1, v9);\nv10 = v7;\nif ( !v7 )\nv7 = sub_4409E9(a1, v9);\nv10 = v7;\nif ( !v7 )\nv7 = sub_4428FB(a1, v9);\nv10 = v7;\nif ( !v7 )\nv7 = sub_44316C(a1, v9);\nv10 = v7;\nif ( !v7 )\nv7 = sub_4438DF(a1, v9);\nv10 = v7;\nfree(*(void **)&v9[20]);\nsub_42C2FE(*(unsigned __int64 *)&v9[10]);\nsub_42FE45(*(void ***)&v9[12]);\nfree(*(void **)&v9[14]);\nfree(*(void **)&v9[18]);\nif ( *(_QWORD *)&v9[4] )\nelf_end();\nif ( v9[2] >= 0 )\nclose(v9[2]);\nreturn sub_43E020(v10);\n}\n\n\n\nQ:[a3,a1,a2,v9,v10,sub_43EB4D,sub_43DF87,sub_43E020,sub_43EF2C,sub_4407F0,sub_4409E9,sub_4428FB,sub_44316C,sub_4438DF,sub_42C2FE,sub_42FE45,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'opts', 'a1': 'linker', 'a2': 'filename', 'v9': 'obj', 'v10': 'err', 'sub_43EB4D': 'bpf_linker__add_file', 'sub_43DF87': 'libbpf_validate_opts_5', 'sub_43E020': 'libbpf_err_7', 'sub_43EF2C': 'linker_load_obj_file', 'sub_4407F0': 'linker_append_sec_data', 'sub_4409E9': 'linker_append_elf_syms', 'sub_4428FB': 'linker_append_elf_relos', 'sub_44316C': 'linker_append_btf', 'sub_4438DF': 'linker_append_btf_ext', 'sub_42C2FE': 'btf__free', 'sub_42FE45': 'btf_ext__free'}"}
as_batch_command_init
8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2
aerospike
aerospike-tools-backup
NA
static inline void as_batch_command_init( as_command* cmd, as_batch_task* task, const as_policy_batch* policy, uint8_t* buf, size_t size, const as_command* parent ) { cmd->cluster = task->cluster; cmd->policy = &policy->base; cmd->node = task->node; cmd->ns = NULL; // Not referenced when node set. cmd->partition = NULL; // Not referenced when node set. cmd->parse_results_fn = as_batch_parse_records; cmd->udata = task; cmd->buf = buf; cmd->buf_size = size; cmd->partition_id = 0; // Not referenced when node set. cmd->replica = task->replica; // Note: Do not set flags to AS_COMMAND_FLAGS_LINEARIZE because AP and SC replicas // are tracked separately for batch (cmd->master and cmd->master_sc). // SC master/replica switch is done in as_batch_retry(). cmd->flags = AS_COMMAND_FLAGS_BATCH; if (! task->has_write) { cmd->flags |= AS_COMMAND_FLAGS_READ; } if (! parent) { // Normal batch. cmd->replica_index = task->replica_index; cmd->replica_index_sc = task->replica_index_sc; as_command_start_timer(cmd); } else { // Split retry mode. Do not reset timer. cmd->replica_index = parent->replica_index; cmd->replica_index_sc = parent->replica_index_sc; cmd->iteration = parent->iteration; cmd->socket_timeout = parent->socket_timeout; cmd->total_timeout = parent->total_timeout; cmd->max_retries = parent->max_retries; cmd->deadline_ms = parent->deadline_ms; cmd->sent = parent->sent; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_478AAE", "function_addr": 4688558, "binary_name": "8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov [rbp+var_20], rcx"], [7, "mov [rbp+var_28], r8"], [8, "mov [rbp+var_30], r9"], [9, "mov rax, [rbp+var_10]"], [10, "mov rdx, [rax+20h]"], [11, "mov rax, [rbp+var_8]"], [12, "mov [rax], rdx"], [13, "mov rdx, [rbp+var_18]"], [14, "mov rax, [rbp+var_8]"], [15, "mov [rax+8], rdx"], [16, "mov rax, [rbp+var_10]"], [17, "mov rdx, [rax]"], [18, "mov rax, [rbp+var_8]"], [19, "mov [rax+10h], rdx"], [20, "mov rax, [rbp+var_8]"], [21, "mov qword ptr [rax+18h], 0"], [22, "mov rax, [rbp+var_8]"], [23, "mov qword ptr [rax+20h], 0"], [24, "mov rax, [rbp+var_8]"], [25, "lea rdx, sub_475A23"], [26, "mov [rax+28h], rdx"], [27, "mov rax, [rbp+var_8]"], [28, "mov rdx, [rbp+var_10]"], [29, "mov [rax+30h], rdx"], [30, "mov rax, [rbp+var_8]"], [31, "mov rdx, [rbp+var_20]"], [32, "mov [rax+38h], rdx"], [33, "mov rax, [rbp+var_8]"], [34, "mov rdx, [rbp+var_28]"], [35, "mov [rax+40h], rdx"], [36, "mov rax, [rbp+var_8]"], [37, "mov dword ptr [rax+48h], 0"], [38, "mov rax, [rbp+var_10]"], [39, "mov edx, [rax+54h]"], [40, "mov rax, [rbp+var_8]"], [41, "mov [rax+4Ch], edx"], [42, "mov rax, [rbp+var_8]"], [43, "mov byte ptr [rax+6Fh], 0"], [44, "mov rax, [rbp+var_8]"], [45, "mov byte ptr [rax+6Ch], 2"], [46, "mov rax, [rbp+var_10]"], [47, "movzx eax, byte ptr [rax+5Dh]"], [48, "xor eax, 1"], [49, "test al, al"], [50, "jz short loc_478B8F"], [51, "mov rax, [rbp+var_8]"], [52, "movzx eax, byte ptr [rax+6Ch]"], [53, "or eax, 1"], [54, "mov edx, eax"], [55, "mov rax, [rbp+var_8]"], [56, "mov [rax+6Ch], dl"], [57, "cmp [rbp+var_30], 0"], [58, "jnz short loc_478BC2"], [59, "mov rax, [rbp+var_10]"], [60, "movzx edx, byte ptr [rax+5Eh]"], [61, "mov rax, [rbp+var_8]"], [62, "mov [rax+6Dh], dl"], [63, "mov rax, [rbp+var_10]"], [64, "movzx edx, byte ptr [rax+5Fh]"], [65, "mov rax, [rbp+var_8]"], [66, "mov [rax+6Eh], dl"], [67, "mov rax, [rbp+var_8]"], [68, "mov rdi, rax"], [69, "call sub_47522F"], [70, "jmp short loc_478C36"], [71, "mov rax, [rbp+var_30]"], [72, "movzx edx, byte ptr [rax+6Dh]"], [73, "mov rax, [rbp+var_8]"], [74, "mov [rax+6Dh], dl"], [75, "mov rax, [rbp+var_30]"], [76, "movzx edx, byte ptr [rax+6Eh]"], [77, "mov rax, [rbp+var_8]"], [78, "mov [rax+6Eh], dl"], [79, "mov rax, [rbp+var_30]"], [80, "mov edx, [rax+64h]"], [81, "mov rax, [rbp+var_8]"], [82, "mov [rax+64h], edx"], [83, "mov rax, [rbp+var_30]"], [84, "mov edx, [rax+58h]"], [85, "mov rax, [rbp+var_8]"], [86, "mov [rax+58h], edx"], [87, "mov rax, [rbp+var_30]"], [88, "mov edx, [rax+5Ch]"], [89, "mov rax, [rbp+var_8]"], [90, "mov [rax+5Ch], edx"], [91, "mov rax, [rbp+var_30]"], [92, "mov edx, [rax+60h]"], [93, "mov rax, [rbp+var_8]"], [94, "mov [rax+60h], edx"], [95, "mov rax, [rbp+var_30]"], [96, "mov rdx, [rax+50h]"], [97, "mov rax, [rbp+var_8]"], [98, "mov [rax+50h], rdx"], [99, "mov rax, [rbp+var_30]"], [100, "mov edx, [rax+68h]"], [101, "mov rax, [rbp+var_8]"], [102, "mov [rax+68h], edx"], [103, "nop"], [104, "leave"], [105, "retn"]], "data_dep": [[9, 4], [10, 9], [11, 3], [12, 10], [12, 11], [13, 5], [14, 3], [15, 14], [15, 13], [16, 4], [17, 12], [17, 16], [17, 15], [18, 3], [19, 18], [19, 17], [20, 3], [21, 20], [22, 3], [23, 22], [24, 3], [25, 17], [26, 25], [26, 24], [27, 3], [28, 4], [29, 27], [29, 28], [30, 3], [31, 6], [32, 30], [32, 31], [33, 3], [34, 7], [35, 33], [35, 34], [36, 3], [37, 36], [38, 4], [39, 37], [39, 38], [40, 3], [41, 40], [41, 39], [42, 3], [43, 42], [44, 3], [45, 44], [46, 4], [47, 45], [47, 46], [48, 47], [49, 48], [50, 49], [51, 3], [52, 15], [52, 51], [52, 26], [52, 35], [52, 19], [52, 37], [52, 12], [52, 21], [52, 23], [52, 32], [52, 41], [52, 43], [52, 45], [52, 29], [52, 56], [53, 52], [54, 53], [55, 3], [56, 55], [56, 54], [57, 8], [58, 57], [59, 4], [60, 19], [60, 37], [60, 12], [60, 21], [60, 23], [60, 32], [60, 41], [60, 62], [60, 66], [60, 59], [60, 43], [60, 15], [60, 45], [60, 29], [60, 56], [60, 26], [60, 35], [61, 3], [62, 60], [62, 61], [63, 4], [64, 62], [64, 63], [65, 3], [66, 64], [66, 65], [67, 3], [68, 67], [71, 8], [72, 82], [72, 29], [72, 86], [72, 43], [72, 15], [72, 45], [72, 102], [72, 56], [72, 74], [72, 26], [72, 90], [72, 35], [72, 19], [72, 37], [72, 12], [72, 21], [72, 94], [72, 78], [72, 23], [72, 32], [72, 41], [72, 71], [72, 98], [73, 3], [74, 73], [74, 72], [75, 8], [76, 74], [76, 75], [77, 3], [78, 77], [78, 76], [79, 8], [80, 78], [80, 79], [81, 3], [82, 81], [82, 80], [83, 8], [84, 83], [84, 82], [85, 3], [86, 85], [86, 84], [87, 8], [88, 86], [88, 87], [89, 3], [90, 88], [90, 89], [91, 8], [92, 90], [92, 91], [93, 3], [94, 93], [94, 92], [95, 8], [96, 95], [96, 94], [97, 3], [98, 96], [98, 97], [99, 8], [100, 98], [100, 99], [101, 3], [102, 100], [102, 101], [105, 101], [105, 69]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2_8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2.jsonl.gz", "strip_func_name": "sub_478AAE", "query": "\n\n\n__int64 __fastcall sub_478AAE(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 result; // rax\n\n*(_QWORD *)a1 = *(_QWORD *)(a2 + 32);\n*(_QWORD *)(a1 + 8) = a3;\n*(_QWORD *)(a1 + 16) = *(_QWORD *)a2;\n*(_QWORD *)(a1 + 24) = 0LL;\n*(_QWORD *)(a1 + 32) = 0LL;\n*(_QWORD *)(a1 + 40) = sub_475A23;\n*(_QWORD *)(a1 + 48) = a2;\n*(_QWORD *)(a1 + 56) = a4;\n*(_QWORD *)(a1 + 64) = a5;\n*(_DWORD *)(a1 + 72) = 0;\n*(_DWORD *)(a1 + 76) = *(_DWORD *)(a2 + 84);\n*(_BYTE *)(a1 + 111) = 0;\n*(_BYTE *)(a1 + 108) = 2;\nif ( *(_BYTE *)(a2 + 93) != 1 )\n*(_BYTE *)(a1 + 108) |= 1u;\nif ( a6 )\n{\n*(_BYTE *)(a1 + 109) = *(_BYTE *)(a6 + 109);\n*(_BYTE *)(a1 + 110) = *(_BYTE *)(a6 + 110);\n*(_DWORD *)(a1 + 100) = *(_DWORD *)(a6 + 100);\n*(_DWORD *)(a1 + 88) = *(_DWORD *)(a6 + 88);\n*(_DWORD *)(a1 + 92) = *(_DWORD *)(a6 + 92);\n*(_DWORD *)(a1 + 96) = *(_DWORD *)(a6 + 96);\n*(_QWORD *)(a1 + 80) = *(_QWORD *)(a6 + 80);\nresult = a1;\n*(_DWORD *)(a1 + 104) = *(_DWORD *)(a6 + 104);\n}\nelse\n{\n*(_BYTE *)(a1 + 109) = *(_BYTE *)(a2 + 94);\n*(_BYTE *)(a1 + 110) = *(_BYTE *)(a2 + 95);\nresult = sub_47522F(a1);\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,sub_478AAE,sub_475A23,sub_47522F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'policy', 'a4': 'buf', 'a1': 'cmd', 'a2': 'task', 'a5': 'size', 'a6': 'parent', 'sub_478AAE': 'as_batch_command_init', 'sub_475A23': 'as_batch_parse_records', 'sub_47522F': 'as_command_start_timer_1'}"}
eapol_sm_confirm_auth
eee7ae2b1fa6343f62d0787a4b4e729e68108fcf48944de5e880c8604be20f95
sonic-net
sonic-buildimage
NA
static int eapol_sm_confirm_auth(struct eapol_sm *sm) { if (!sm->ctx->confirm_auth_cb) return 0; return sm->ctx->confirm_auth_cb(sm->ctx->ctx); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_419B30", "function_addr": 4299568, "binary_name": "eee7ae2b1fa6343f62d0787a4b4e729e68108fcf48944de5e880c8604be20f95.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rax, [rax+0F8h]"], [6, "mov rax, [rax+0C8h]"], [7, "test rax, rax"], [8, "jnz short loc_419B5A"], [9, "mov eax, 0"], [10, "jmp short locret_419B7F"], [11, "mov rax, [rbp+var_8]"], [12, "mov rax, [rax+0F8h]"], [13, "mov rdx, [rax+0C8h]"], [14, "mov rax, [rbp+var_8]"], [15, "mov rax, [rax+0F8h]"], [16, "mov rax, [rax]"], [17, "mov rdi, rax"], [18, "call rdx"], [19, "leave"], [20, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [11, 3], [12, 11], [13, 12], [14, 3], [15, 14], [16, 15], [17, 16], [18, 13], [20, 9], [20, 18]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/eee7ae2b1fa6343f62d0787a4b4e729e68108fcf48944de5e880c8604be20f95_eee7ae2b1fa6343f62d0787a4b4e729e68108fcf48944de5e880c8604be20f95.jsonl.gz", "strip_func_name": "sub_419B30", "query": "\n\n\n__int64 __fastcall sub_419B30(__int64 a1)\n{\n__int64 result; // rax\n\nif ( *(_QWORD *)(*(_QWORD *)(a1 + 248) + 200LL) )\nresult = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)(a1 + 248) + 200LL))(**(_QWORD **)(a1 + 248));\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a1,sub_419B30,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'sm', 'sub_419B30': 'eapol_sm_confirm_auth'}"}
tmxr_rqln
c0bdda158aca46d0badc1243ee55b1fe1912f6e65bb27050c715097b539c99f7
open-simh
simh
NA
int32 tmxr_rqln (const TMLN *lp) { return tmxr_rqln_bare (lp, TRUE); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_462F69", "function_addr": 4599657, "binary_name": "c0bdda158aca46d0badc1243ee55b1fe1912f6e65bb27050c715097b539c99f7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov esi, 1"], [6, "mov rdi, rax"], [7, "call sub_462E6D"], [8, "leave"], [9, "retn"]], "data_dep": [[4, 3], [6, 4], [9, 7]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c0bdda158aca46d0badc1243ee55b1fe1912f6e65bb27050c715097b539c99f7_c0bdda158aca46d0badc1243ee55b1fe1912f6e65bb27050c715097b539c99f7.jsonl.gz", "strip_func_name": "sub_462F69", "query": "\n\n\n__int64 __fastcall sub_462F69(__int64 a1)\n{\nreturn sub_462E6D(a1, 1);\n}\n\n\n\nQ:[a1,sub_462F69,sub_462E6D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'lp', 'sub_462F69': 'tmxr_rqln', 'sub_462E6D': 'tmxr_rqln_bare'}"}
db_getinfo
e1f6cfbc7d1b7129358fbf54428e8292a0005b3e102cd926c0225d679f545275
samboy
MaraDNS
NA
static int db_getinfo (lua_State *L) { lua_Debug ar; int arg; lua_State *L1 = getthread(L, &arg); const char *options = luaL_optstring(L, arg+2, "flnSu"); if (lua_isnumber(L, arg+1)) { if (!lua_getstack(L1, (int)lua_tointeger(L, arg+1), &ar)) { lua_pushnil(L); /* level out of range */ return 1; } } else if (lua_isfunction(L, arg+1)) { lua_pushfstring(L, ">%s", options); options = lua_tostring(L, -1); lua_pushvalue(L, arg+1); lua_xmove(L, L1, 1); } else return luaL_argerror(L, arg+1, "function or level expected"); if (!lua_getinfo(L1, options, &ar)) return luaL_argerror(L, arg+2, "invalid option"); lua_createtable(L, 0, 2); if (strchr(options, 'S')) { settabss(L, "source", ar.source); settabss(L, "short_src", ar.short_src); settabsi(L, "linedefined", ar.linedefined); settabsi(L, "lastlinedefined", ar.lastlinedefined); settabss(L, "what", ar.what); } if (strchr(options, 'l')) settabsi(L, "currentline", ar.currentline); if (strchr(options, 'u')) settabsi(L, "nups", ar.nups); if (strchr(options, 'n')) { settabss(L, "name", ar.name); settabss(L, "namewhat", ar.namewhat); } if (strchr(options, 'L')) treatstackoption(L, L1, "activelines"); if (strchr(options, 'f')) treatstackoption(L, L1, "func"); return 1; /* return table */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_410BCD", "function_addr": 4262861, "binary_name": "e1f6cfbc7d1b7129358fbf54428e8292a0005b3e102cd926c0225d679f545275.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0B0h"], [3, "mov [rbp+var_A8], rdi"], [4, "lea rdx, [rbp+var_94]"], [5, "mov rax, [rbp+var_A8]"], [6, "mov rsi, rdx"], [7, "mov rdi, rax"], [8, "call sub_410B08"], [9, "mov [rbp+var_10], rax"], [10, "mov eax, [rbp+var_94]"], [11, "lea esi, [rax+2]"], [12, "mov rax, [rbp+var_A8]"], [13, "mov ecx, 0"], [14, "mov edx, offset aFlnsu"], [15, "mov rdi, rax"], [16, "call sub_40AB31"], [17, "mov [rbp+s], rax"], [18, "mov eax, [rbp+var_94]"], [19, "lea edx, [rax+1]"], [20, "mov rax, [rbp+var_A8]"], [21, "mov esi, edx"], [22, "mov rdi, rax"], [23, "call sub_4085ED"], [24, "test eax, eax"], [25, "jz short loc_410C92"], [26, "mov eax, [rbp+var_94]"], [27, "lea edx, [rax+1]"], [28, "mov rax, [rbp+var_A8]"], [29, "mov esi, edx"], [30, "mov rdi, rax"], [31, "call sub_4088AB"], [32, "mov ecx, eax"], [33, "lea rdx, [rbp+var_90]"], [34, "mov rax, [rbp+var_10]"], [35, "mov esi, ecx"], [36, "mov rdi, rax"], [37, "call sub_411D4E"], [38, "test eax, eax"], [39, "jnz loc_410D46"], [40, "mov rax, [rbp+var_A8]"], [41, "mov rdi, rax"], [42, "call sub_408C42"], [43, "mov eax, 1"], [44, "jmp locret_410F3E"], [45, "mov eax, [rbp+var_94]"], [46, "lea edx, [rax+1]"], [47, "mov rax, [rbp+var_A8]"], [48, "mov esi, edx"], [49, "mov rdi, rax"], [50, "call sub_40853B"], [51, "cmp eax, 6"], [52, "jnz short loc_410D22"], [53, "mov rdx, [rbp+s]"], [54, "mov rax, [rbp+var_A8]"], [55, "mov esi, offset aS_1"], [56, "mov rdi, rax"], [57, "mov eax, 0"], [58, "call sub_408E35"], [59, "mov rax, [rbp+var_A8]"], [60, "mov edx, 0"], [61, "mov esi, 0FFFFFFFFh"], [62, "mov rdi, rax"], [63, "call sub_408974"], [64, "mov [rbp+s], rax"], [65, "mov eax, [rbp+var_94]"], [66, "lea edx, [rax+1]"], [67, "mov rax, [rbp+var_A8]"], [68, "mov esi, edx"], [69, "mov rdi, rax"], [70, "call sub_4084D8"], [71, "mov rcx, [rbp+var_10]"], [72, "mov rax, [rbp+var_A8]"], [73, "mov edx, 1"], [74, "mov rsi, rcx"], [75, "mov rdi, rax"], [76, "call sub_407FAF"], [77, "jmp short loc_410D46"], [78, "mov eax, [rbp+var_94]"], [79, "lea ecx, [rax+1]"], [80, "mov rax, [rbp+var_A8]"], [81, "mov edx, offset aFunctionOrLeve"], [82, "mov esi, ecx"], [83, "mov rdi, rax"], [84, "call sub_40A4E1"], [85, "jmp locret_410F3E"], [86, "lea rdx, [rbp+var_90]"], [87, "mov rcx, [rbp+s]"], [88, "mov rax, [rbp+var_10]"], [89, "mov rsi, rcx"], [90, "mov rdi, rax"], [91, "call sub_412414"], [92, "test eax, eax"], [93, "jnz short loc_410D88"], [94, "mov eax, [rbp+var_94]"], [95, "lea ecx, [rax+2]"], [96, "mov rax, [rbp+var_A8]"], [97, "mov edx, offset aInvalidOption"], [98, "mov esi, ecx"], [99, "mov rdi, rax"], [100, "call sub_40A4E1"], [101, "jmp locret_410F3E"], [102, "mov rax, [rbp+var_A8]"], [103, "mov edx, 2"], [104, "mov esi, 0"], [105, "mov rdi, rax"], [106, "call sub_409306"], [107, "mov rax, [rbp+s]"], [108, "mov esi, 53h "], [109, "mov rdi, rax"], [110, "call _strchr"], [111, "test rax, rax"], [112, "jz short loc_410E34"], [113, "mov rdx, [rbp+var_70]"], [114, "mov rax, [rbp+var_A8]"], [115, "mov esi, offset aSource"], [116, "mov rdi, rax"], [117, "call sub_410A89"], [118, "lea rax, [rbp+var_90]"], [119, "lea rdx, [rax+38h]"], [120, "mov rax, [rbp+var_A8]"], [121, "mov esi, offset aShortSrc"], [122, "mov rdi, rax"], [123, "call sub_410A89"], [124, "mov edx, [rbp+var_60]"], [125, "mov rax, [rbp+var_A8]"], [126, "mov esi, offset aLinedefined"], [127, "mov rdi, rax"], [128, "call sub_410AC8"], [129, "mov edx, [rbp+var_5C]"], [130, "mov rax, [rbp+var_A8]"], [131, "mov esi, offset aLastlinedefine"], [132, "mov rdi, rax"], [133, "call sub_410AC8"], [134, "mov rdx, [rbp+var_78]"], [135, "mov rax, [rbp+var_A8]"], [136, "mov esi, offset aWhat"], [137, "mov rdi, rax"], [138, "call sub_410A89"], [139, "mov rax, [rbp+s]"], [140, "mov esi, 6Ch "], [141, "mov rdi, rax"], [142, "call _strchr"], [143, "test rax, rax"], [144, "jz short loc_410E61"], [145, "mov edx, [rbp+var_68]"], [146, "mov rax, [rbp+var_A8]"], [147, "mov esi, offset aCurrentline"], [148, "mov rdi, rax"], [149, "call sub_410AC8"], [150, "mov rax, [rbp+s]"], [151, "mov esi, 75h "], [152, "mov rdi, rax"], [153, "call _strchr"], [154, "test rax, rax"], [155, "jz short loc_410E8E"], [156, "mov edx, [rbp+var_64]"], [157, "mov rax, [rbp+var_A8]"], [158, "mov esi, offset aNups"], [159, "mov rdi, rax"], [160, "call sub_410AC8"], [161, "mov rax, [rbp+s]"], [162, "mov esi, 6Eh "], [163, "mov rdi, rax"], [164, "call _strchr"], [165, "test rax, rax"], [166, "jz short loc_410ED7"], [167, "mov rdx, [rbp+var_88]"], [168, "mov rax, [rbp+var_A8]"], [169, "mov esi, offset aName_0"], [170, "mov rdi, rax"], [171, "call sub_410A89"], [172, "mov rdx, [rbp+var_80]"], [173, "mov rax, [rbp+var_A8]"], [174, "mov esi, offset aNamewhat"], [175, "mov rdi, rax"], [176, "call sub_410A89"], [177, "mov rax, [rbp+s]"], [178, "mov esi, 4Ch "], [179, "mov rdi, rax"], [180, "call _strchr"], [181, "test rax, rax"], [182, "jz short loc_410F08"], [183, "mov rcx, [rbp+var_10]"], [184, "mov rax, [rbp+var_A8]"], [185, "mov edx, offset aActivelines"], [186, "mov rsi, rcx"], [187, "mov rdi, rax"], [188, "call sub_410B5B"], [189, "mov rax, [rbp+s]"], [190, "mov esi, 66h "], [191, "mov rdi, rax"], [192, "call _strchr"], [193, "test rax, rax"], [194, "jz short loc_410F39"], [195, "mov rcx, [rbp+var_10]"], [196, "mov rax, [rbp+var_A8]"], [197, "mov edx, offset aFunc"], [198, "mov rsi, rcx"], [199, "mov rdi, rax"], [200, "call sub_410B5B"], [201, "mov eax, 1"], [202, "leave"], [203, "retn"]], "data_dep": [[5, 3], [6, 4], [7, 5], [9, 8], [11, 6], [11, 10], [12, 3], [15, 12], [17, 16], [19, 18], [19, 14], [20, 3], [21, 19], [22, 20], [24, 23], [25, 24], [27, 26], [27, 19], [28, 3], [29, 27], [30, 28], [32, 31], [33, 27], [34, 9], [35, 32], [36, 34], [38, 37], [39, 38], [40, 3], [41, 40], [46, 45], [46, 19], [47, 3], [48, 46], [49, 47], [51, 50], [52, 51], [53, 17], [54, 3], [56, 54], [59, 3], [62, 59], [64, 63], [66, 60], [66, 65], [67, 3], [68, 66], [69, 67], [71, 9], [72, 3], [74, 71], [75, 72], [79, 78], [79, 13], [80, 3], [82, 79], [83, 80], [86, 33], [86, 73], [87, 64], [87, 17], [88, 9], [89, 87], [90, 88], [92, 91], [93, 92], [95, 94], [95, 87], [96, 3], [98, 95], [99, 96], [102, 3], [105, 102], [107, 17], [107, 64], [109, 107], [111, 110], [112, 111], [114, 3], [116, 114], [118, 117], [119, 118], [119, 113], [120, 3], [122, 120], [125, 3], [127, 125], [130, 3], [132, 130], [135, 3], [137, 135], [139, 64], [139, 17], [141, 139], [143, 142], [144, 143], [146, 3], [148, 146], [150, 17], [150, 64], [152, 150], [154, 153], [155, 154], [157, 3], [159, 157], [161, 17], [161, 64], [163, 161], [165, 164], [166, 165], [168, 3], [170, 168], [173, 3], [175, 173], [177, 64], [177, 17], [179, 177], [181, 180], [182, 181], [183, 9], [184, 3], [186, 183], [187, 184], [189, 17], [189, 64], [191, 189], [193, 192], [194, 193], [195, 9], [196, 3], [198, 195], [199, 196], [203, 43], [203, 201]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/e1f6cfbc7d1b7129358fbf54428e8292a0005b3e102cd926c0225d679f545275_e1f6cfbc7d1b7129358fbf54428e8292a0005b3e102cd926c0225d679f545275.jsonl.gz", "strip_func_name": "sub_410BCD", "query": "\n\n\n__int64 __fastcall sub_410BCD(__int64 a1)\n{\nunsigned int v1; // eax\n__int64 v3; // rcx\n__int64 v4; // r8\n__int64 v5; // r9\nint v6; // [rsp+1Ch] [rbp-94h] BYREF\nchar v7[8]; // [rsp+20h] [rbp-90h] BYREF\nconst char *v8; // [rsp+28h] [rbp-88h]\nconst char *v9; // [rsp+30h] [rbp-80h]\nconst char *v10; // [rsp+38h] [rbp-78h]\nconst char *v11; // [rsp+40h] [rbp-70h]\nint v12; // [rsp+48h] [rbp-68h]\nint v13; // [rsp+4Ch] [rbp-64h]\nint v14; // [rsp+50h] [rbp-60h]\nint v15; // [rsp+54h] [rbp-5Ch]\nchar v16[72]; // [rsp+58h] [rbp-58h] BYREF\n__int64 v17; // [rsp+A0h] [rbp-10h]\nchar *s; // [rsp+A8h] [rbp-8h]\n\nv17 = sub_410B08(a1, &v6);\ns = (char *)sub_40AB31(a1, v6 + 2, \"flnSu\", 0LL);\nif ( sub_4085ED(a1, v6 + 1) )\n{\nv1 = sub_4088AB(a1, v6 + 1);\nif ( !(unsigned int)sub_411D4E(v17, v1, v7) )\n{\nsub_408C42(a1);\nreturn 1LL;\n}\n}\nelse\n{\nif ( (unsigned int)sub_40853B(a1, v6 + 1) != 6 )\nsub_40A4E1(a1, v6 + 1, (int)\"function or level expected\");\nsub_408E35(a1, (__int64)\">%s\", (__int64)s, v3, v4, v5);\ns = (char *)sub_408974(a1, -1, 0LL);\nsub_4084D8(a1, v6 + 1);\nsub_407FAF(a1, v17, 1);\n}\nif ( !(unsigned int)sub_412414(v17, s, v7) )\nsub_40A4E1(a1, v6 + 2, (int)\"invalid option\");\nsub_409306(a1, 0, 2u);\nif ( strchr(s, 83) )\n{\nsub_410A89(a1, \"source\", v11);\nsub_410A89(a1, \"short_src\", v16);\nsub_410AC8(a1, \"linedefined\", v14);\nsub_410AC8(a1, \"lastlinedefined\", v15);\nsub_410A89(a1, \"what\", v10);\n}\nif ( strchr(s, 108) )\nsub_410AC8(a1, \"currentline\", v12);\nif ( strchr(s, 117) )\nsub_410AC8(a1, \"nups\", v13);\nif ( strchr(s, 110) )\n{\nsub_410A89(a1, \"name\", v8);\nsub_410A89(a1, \"namewhat\", v9);\n}\nif ( strchr(s, 76) )\nsub_410B5B(a1, v17, \"activelines\");\nif ( strchr(s, 102) )\nsub_410B5B(a1, v17, \"func\");\nreturn 1LL;\n}\n\n\n\nQ:[a1,v6,v7,v17,s,sub_410BCD,sub_410B08,sub_40AB31,sub_4085ED,sub_4088AB,sub_411D4E,sub_408C42,sub_40853B,sub_40A4E1,sub_408E35,sub_408974,sub_4084D8,sub_407FAF,sub_412414,sub_409306,sub_410A89,sub_410AC8,sub_410B5B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'L', 'v6': 'arg', 'v7': 'ar', 'v17': 'L1', 's': 'options', 'sub_410BCD': 'db_getinfo', 'sub_410B08': 'getthread', 'sub_40AB31': 'luaL_optlstring', 'sub_4085ED': 'lua_isnumber', 'sub_4088AB': 'lua_tointeger', 'sub_411D4E': 'lua_getstack', 'sub_408C42': 'lua_pushnil', 'sub_40853B': 'lua_type', 'sub_40A4E1': 'luaL_argerror', 'sub_408E35': 'lua_pushfstring', 'sub_408974': 'lua_tolstring', 'sub_4084D8': 'lua_pushvalue', 'sub_407FAF': 'lua_xmove', 'sub_412414': 'lua_getinfo', 'sub_409306': 'lua_createtable', 'sub_410A89': 'settabss', 'sub_410AC8': 'settabsi', 'sub_410B5B': 'treatstackoption'}"}
wpa_tdls_peer_free
208d6f5c4c47e61fc5612dba9824bbb292bc6b59ec61b6b27384dbfe4df358f2
vanhoefm
fragattacks
NA
static void wpa_tdls_peer_free(struct wpa_sm *sm, struct wpa_tdls_peer *peer) { wpa_tdls_peer_clear(sm, peer); wpa_tdls_peer_remove_from_list(sm, peer); os_free(peer); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_475EA7", "function_addr": 4677287, "binary_name": "208d6f5c4c47e61fc5612dba9824bbb292bc6b59ec61b6b27384dbfe4df358f2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+ptr], rsi"], [5, "mov rdx, [rbp+ptr]"], [6, "mov rax, [rbp+var_8]"], [7, "mov rsi, rdx"], [8, "mov rdi, rax"], [9, "call sub_475C33"], [10, "mov rdx, [rbp+ptr]"], [11, "mov rax, [rbp+var_8]"], [12, "mov rsi, rdx"], [13, "mov rdi, rax"], [14, "call sub_475B48"], [15, "mov rax, [rbp+ptr]"], [16, "mov rdi, rax"], [17, "call _free"], [18, "nop"], [19, "leave"], [20, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 5], [8, 6], [10, 4], [11, 3], [12, 10], [13, 11], [15, 4], [16, 15], [20, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/208d6f5c4c47e61fc5612dba9824bbb292bc6b59ec61b6b27384dbfe4df358f2_208d6f5c4c47e61fc5612dba9824bbb292bc6b59ec61b6b27384dbfe4df358f2.jsonl.gz", "strip_func_name": "sub_475EA7", "query": "\n\n\nvoid __fastcall sub_475EA7(__int64 a1, void *a2)\n{\nsub_475C33(a1, (__int64)a2);\nsub_475B48(a1, (__int64)a2);\nfree(a2);\n}\n\n\n\nQ:[a1,a2,sub_475EA7,sub_475C33,sub_475B48,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'sm', 'a2': 'peer', 'sub_475EA7': 'wpa_tdls_peer_free', 'sub_475C33': 'wpa_tdls_peer_clear', 'sub_475B48': 'wpa_tdls_peer_remove_from_list'}"}
next_p2
cf85394385eaa17580cc086203ad08a5a2b476cb8b21a5ed19dbebd44b0ee1ed
google
AFL
NA
static u32 next_p2(u32 val) { u32 ret = 1; while (val > ret) ret <<= 1; return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4037AB", "function_addr": 4208555, "binary_name": "cf85394385eaa17580cc086203ad08a5a2b476cb8b21a5ed19dbebd44b0ee1ed.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_14], edi"], [3, "mov [rbp+var_4], 1"], [4, "jmp short loc_4037BE"], [5, "shl [rbp+var_4], 1"], [6, "mov eax, [rbp+var_14]"], [7, "cmp eax, [rbp+var_4]"], [8, "ja short loc_4037BB"], [9, "mov eax, [rbp+var_4]"], [10, "pop rbp"], [11, "retn"]], "data_dep": [[5, 5], [5, 3], [6, 2], [7, 3], [7, 6], [7, 5], [8, 7], [9, 3], [9, 5], [10, 0], [11, 9]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/cf85394385eaa17580cc086203ad08a5a2b476cb8b21a5ed19dbebd44b0ee1ed_cf85394385eaa17580cc086203ad08a5a2b476cb8b21a5ed19dbebd44b0ee1ed.jsonl.gz", "strip_func_name": "sub_4037AB", "query": "\n\n\n__int64 __fastcall sub_4037AB(unsigned int a1)\n{\nunsigned int i; // [rsp+10h] [rbp-4h]\n\nfor ( i = 1; a1 > i; i *= 2 )\n;\nreturn i;\n}\n\n\n\nQ:[a1,sub_4037AB,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'val', 'sub_4037AB': 'next_p2'}"}
i64mulwithtest
8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb
stardot
MatrixBrandy
NA
static int64 i64mulwithtest(int64 lh, int64 rh) { if (fabsl(TOFLOAT(lh) * TOFLOAT(rh)) > TOFLOAT(MAXINT64VAL)) error(ERR_RANGE); return lh*rh; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403B39", "function_addr": 4209465, "binary_name": "8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "pxor xmm1, xmm1"], [6, "cvtsi2sd xmm1, [rbp+var_8]"], [7, "pxor xmm0, xmm0"], [8, "cvtsi2sd xmm0, [rbp+var_10]"], [9, "mulsd xmm0, xmm1"], [10, "movq xmm1, cs:qword_4591E0"], [11, "andpd xmm0, xmm1"], [12, "comisd xmm0, cs:qword_4591F0"], [13, "jbe short loc_403B86"], [14, "mov edi, 36h "], [15, "mov eax, 0"], [16, "call error"], [17, "mov rax, [rbp+var_8]"], [18, "imul rax, [rbp+var_10]"], [19, "leave"], [20, "retn"]], "data_dep": [[6, 5], [6, 3], [8, 4], [8, 7], [9, 6], [9, 8], [11, 10], [11, 9], [12, 11], [13, 2], [17, 3], [18, 4], [18, 17], [20, 18]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb_8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb.jsonl.gz", "strip_func_name": "sub_403B39", "query": "\n\n\n__int64 __fastcall sub_403B39(__int64 a1, __int64 a2, int a3, int a4, int a5, int a6)\n{\nif ( fabs((double)(int)a2 * (double)(int)a1) > 9.223372036854776e18 )\nerror(54, a2, a3, a4, a5, a6);\nreturn a2 * a1;\n}\n\n\n\nQ:[a1,a2,sub_403B39,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'lh', 'a2': 'rh', 'sub_403B39': 'i64mulwithtest'}"}
list_free
fc9efd69c78bfd2879262c7c7b7f2edcc043a9e3211c855fda31906cc6864565
ps2homebrew
hdl-dump
NA
static void list_free(iml_files_t *list) { u_int32_t i; for (i = 0; i < list->used; ++i) osal_free(list->files[i].path); osal_free(list->files); osal_free(list); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41303C", "function_addr": 4272188, "binary_name": "fc9efd69c78bfd2879262c7c7b7f2edcc043a9e3211c855fda31906cc6864565.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_4], 0"], [5, "jmp short loc_41307C"], [6, "mov rax, [rbp+var_18]"], [7, "mov rcx, [rax+8]"], [8, "mov edx, [rbp+var_4]"], [9, "mov rax, rdx"], [10, "add rax, rax"], [11, "add rax, rdx"], [12, "shl rax, 3"], [13, "add rax, rcx"], [14, "mov rax, [rax+10h]"], [15, "mov rdi, rax"], [16, "call sub_417B9B"], [17, "add [rbp+var_4], 1"], [18, "mov rax, [rbp+var_18]"], [19, "mov eax, [rax]"], [20, "cmp [rbp+var_4], eax"], [21, "jb short loc_413051"], [22, "mov rax, [rbp+var_18]"], [23, "mov rax, [rax+8]"], [24, "mov rdi, rax"], [25, "call sub_417B9B"], [26, "mov rax, [rbp+var_18]"], [27, "mov rdi, rax"], [28, "call sub_417B9B"], [29, "nop"], [30, "leave"], [31, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 17], [8, 4], [9, 8], [10, 9], [11, 8], [11, 10], [12, 11], [13, 7], [13, 12], [14, 13], [15, 14], [17, 17], [17, 4], [18, 3], [19, 18], [20, 17], [20, 4], [20, 19], [21, 20], [22, 3], [23, 22], [24, 23], [26, 3], [27, 26], [31, 28]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/fc9efd69c78bfd2879262c7c7b7f2edcc043a9e3211c855fda31906cc6864565_fc9efd69c78bfd2879262c7c7b7f2edcc043a9e3211c855fda31906cc6864565.jsonl.gz", "strip_func_name": "sub_41303C", "query": "\n\n\n__int64 __fastcall sub_41303C(__int64 a1)\n{\nunsigned int i; // [rsp+1Ch] [rbp-4h]\n\nfor ( i = 0; i < *(_DWORD *)a1; ++i )\nsub_417B9B(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 24LL * i + 16));\nsub_417B9B(*(_QWORD *)(a1 + 8));\nreturn sub_417B9B(a1);\n}\n\n\n\nQ:[a1,sub_41303C,sub_417B9B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'list', 'sub_41303C': 'list_free', 'sub_417B9B': 'osal_free'}"}
has_flag
ee35d34b7388213a8d96bf737000b1fcbbdae880e7bf5c24e0bb9b783aec4310
qemu
qemu
NA
bool has_flag(struct ffs_entry *ent, uint16_t flag) { return ((ent->user.miscflags & flag) != 0); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406286", "function_addr": 4219526, "binary_name": "ee35d34b7388213a8d96bf737000b1fcbbdae880e7bf5c24e0bb9b783aec4310.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov eax, esi"], [4, "mov [rbp+var_C], ax"], [5, "mov rax, [rbp+var_8]"], [6, "movzx eax, byte ptr [rax+2Dh]"], [7, "movzx edx, al"], [8, "movzx eax, [rbp+var_C]"], [9, "and eax, edx"], [10, "test eax, eax"], [11, "setnz al"], [12, "pop rbp"], [13, "retn"]], "data_dep": [[4, 3], [5, 2], [6, 5], [7, 6], [8, 4], [9, 8], [9, 7], [10, 9], [11, 10], [12, 0], [13, 11]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ee35d34b7388213a8d96bf737000b1fcbbdae880e7bf5c24e0bb9b783aec4310_ee35d34b7388213a8d96bf737000b1fcbbdae880e7bf5c24e0bb9b783aec4310.jsonl.gz", "strip_func_name": "sub_406286", "query": "\n\n\nbool __fastcall sub_406286(__int64 a1, unsigned __int16 a2)\n{\nreturn (*(unsigned __int8 *)(a1 + 45) & a2) != 0;\n}\n\n\n\nQ:[a1,a2,sub_406286,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ent', 'a2': 'flag', 'sub_406286': 'has_flag'}"}
cmpnum
e41b785b10a6c3f156aacd9460bc7c84204caae818717b5becacf646d8d3c153
lattera
bhyve
NA
int cmpnum(num1, num2) char const *num1, *num2; /* compares the two dotted numbers num1 and num2 lexicographically * by field. Individual fields are compared numerically. * returns <0, 0, >0 if num1<num2, num1==num2, and num1>num2, resp. * omitted fields are assumed to be higher than the existing ones. */ { register char const *s1, *s2; register size_t d1, d2; register int r; s1 = num1 ? num1 : ""; s2 = num2 ? num2 : ""; for (;;) { /* Give precedence to shorter one. */ if (!*s1) return (unsigned char)*s2; if (!*s2) return -1; /* Strip leading zeros, then find number of digits. */ while (*s1=='0') ++s1; while (*s2=='0') ++s2; for (d1=0; isdigit(*(s1+d1)); d1++) continue; for (d2=0; isdigit(*(s2+d2)); d2++) continue; /* Do not convert to integer; it might overflow! */ if (d1 != d2) return d1<d2 ? -1 : 1; if ((r = memcmp(s1, s2, d1))) return r; s1 += d1; s2 += d1; /* skip '.' */ if (*s1) s1++; if (*s2) s2++; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40837F", "function_addr": 4227967, "binary_name": "e41b785b10a6c3f156aacd9460bc7c84204caae818717b5becacf646d8d3c153.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r14"], [3, "push r13"], [4, "push r12"], [5, "push rbx"], [6, "sub rsp, 10h"], [7, "mov [rbp+s1], rdi"], [8, "mov [rbp+s2], rsi"], [9, "cmp [rbp+s1], 0"], [10, "jz short loc_4083A3"], [11, "mov rax, [rbp+s1]"], [12, "jmp short loc_4083A8"], [13, "mov eax, offset unk_40D56A"], [14, "mov r12, rax"], [15, "cmp [rbp+s2], 0"], [16, "jz short loc_4083B8"], [17, "mov rax, [rbp+s2]"], [18, "jmp short loc_4083BD"], [19, "mov eax, offset unk_40D56A"], [20, "mov rbx, rax"], [21, "movzx eax, byte ptr [r12]"], [22, "test al, al"], [23, "jnz short loc_4083D4"], [24, "movzx eax, byte ptr [rbx]"], [25, "movzx eax, al"], [26, "jmp loc_408495"], [27, "movzx eax, byte ptr [rbx]"], [28, "test al, al"], [29, "jnz short loc_4083E9"], [30, "mov eax, 0FFFFFFFFh"], [31, "jmp loc_408495"], [32, "add r12, 1"], [33, "movzx eax, byte ptr [r12]"], [34, "cmp al, 30h "], [35, "jz short loc_4083E5"], [36, "jmp short loc_4083F8"], [37, "add rbx, 1"], [38, "movzx eax, byte ptr [rbx]"], [39, "cmp al, 30h "], [40, "jz short loc_4083F4"], [41, "mov r13d, 0"], [42, "jmp short loc_40840B"], [43, "add r13, 1"], [44, "lea rax, [r12+r13]"], [45, "movzx eax, byte ptr [rax]"], [46, "movsx eax, al"], [47, "sub eax, 30h "], [48, "cmp eax, 9"], [49, "jbe short loc_408407"], [50, "mov r14d, 0"], [51, "jmp short loc_408429"], [52, "add r14, 1"], [53, "lea rax, [rbx+r14]"], [54, "movzx eax, byte ptr [rax]"], [55, "movsx eax, al"], [56, "sub eax, 30h "], [57, "cmp eax, 9"], [58, "jbe short loc_408425"], [59, "cmp r13, r14"], [60, "jz short loc_408453"], [61, "cmp r13, r14"], [62, "jnb short loc_40844C"], [63, "mov eax, 0FFFFFFFFh"], [64, "jmp short loc_408495"], [65, "mov eax, 1"], [66, "jmp short loc_408495"], [67, "mov rdx, r13"], [68, "mov rsi, rbx"], [69, "mov rdi, r12"], [70, "call _memcmp"], [71, "mov r14d, eax"], [72, "test r14d, r14d"], [73, "jz short loc_40846E"], [74, "mov eax, r14d"], [75, "jmp short loc_408495"], [76, "add r12, r13"], [77, "add rbx, r13"], [78, "movzx eax, byte ptr [r12]"], [79, "test al, al"], [80, "jz short loc_408481"], [81, "add r12, 1"], [82, "movzx eax, byte ptr [rbx]"], [83, "test al, al"], [84, "jz loc_4083C0"], [85, "add rbx, 1"], [86, "jmp loc_4083C0"], [87, "add rsp, 10h"], [88, "pop rbx"], [89, "pop r12"], [90, "pop r13"], [91, "pop r14"], [92, "pop rbp"], [93, "retn"]], "data_dep": [[9, 7], [10, 9], [11, 7], [14, 13], [14, 11], [15, 8], [16, 15], [17, 8], [20, 17], [20, 19], [21, 81], [21, 76], [21, 14], [22, 21], [23, 22], [24, 85], [24, 20], [24, 77], [25, 24], [27, 77], [27, 85], [27, 20], [28, 27], [29, 28], [32, 76], [32, 14], [32, 32], [32, 81], [33, 81], [33, 76], [33, 14], [33, 32], [34, 33], [35, 34], [37, 85], [37, 37], [37, 20], [37, 77], [38, 20], [38, 77], [38, 37], [38, 85], [39, 38], [40, 39], [43, 41], [43, 43], [44, 38], [44, 47], [44, 81], [44, 76], [44, 14], [44, 32], [45, 44], [46, 45], [47, 46], [48, 47], [49, 48], [52, 50], [52, 52], [53, 20], [53, 77], [53, 47], [53, 56], [53, 37], [53, 85], [54, 53], [55, 54], [56, 55], [57, 56], [58, 57], [59, 41], [59, 50], [59, 43], [59, 52], [60, 59], [61, 52], [61, 41], [61, 50], [61, 43], [62, 61], [67, 43], [67, 41], [68, 20], [68, 77], [68, 37], [68, 85], [69, 81], [69, 76], [69, 14], [69, 32], [71, 70], [72, 71], [73, 72], [74, 72], [76, 43], [76, 81], [76, 76], [76, 14], [76, 32], [76, 41], [77, 37], [77, 85], [77, 41], [77, 20], [77, 77], [77, 43], [78, 76], [79, 78], [80, 79], [81, 76], [82, 77], [83, 82], [84, 83], [85, 77], [87, 6], [88, 5], [89, 4], [90, 3], [91, 2], [92, 0], [93, 63], [93, 65], [93, 74], [93, 30], [93, 25]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/e41b785b10a6c3f156aacd9460bc7c84204caae818717b5becacf646d8d3c153_e41b785b10a6c3f156aacd9460bc7c84204caae818717b5becacf646d8d3c153.jsonl.gz", "strip_func_name": "sub_40837F", "query": "\n\n\n__int64 __fastcall sub_40837F(_BYTE *a1, unsigned __int8 *a2)\n{\n_BYTE *v2; // rax\n_BYTE *v3; // r12\nunsigned __int8 *v4; // rax\nunsigned __int8 *v5; // rbx\n__int64 result; // rax\nsize_t i; // r13\nsize_t j; // r14\nunsigned int v9; // er14\n\nif ( a1 )\nv2 = a1;\nelse\nv2 = &unk_40D56A;\nv3 = v2;\nif ( a2 )\nv4 = a2;\nelse\nv4 = (unsigned __int8 *)&unk_40D56A;\nv5 = v4;\nwhile ( 1 )\n{\nif ( !*v3 )\nreturn *v5;\nif ( !*v5 )\nreturn 0xFFFFFFFFLL;\nwhile ( *v3 == 48 )\n++v3;\nwhile ( *v5 == 48 )\n++v5;\nfor ( i = 0LL; (unsigned int)((char)v3[i] - 48) <= 9; ++i )\n;\nfor ( j = 0LL; (unsigned int)((char)v5[j] - 48) <= 9; ++j )\n;\nif ( i != j )\nbreak;\nv9 = memcmp(v3, v5, i);\nif ( v9 )\nreturn v9;\nv3 += i;\nv5 += i;\nif ( *v3 )\n++v3;\nif ( *v5 )\n++v5;\n}\nif ( i >= j )\nresult = 1LL;\nelse\nresult = 0xFFFFFFFFLL;\nreturn result;\n}\n\n\n\nQ:[a1,a2,v2,sub_40837F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'num1', 'a2': 'num2', 'v2': 'result', 'sub_40837F': 'cmpnum'}"}
vli_clear
544d59e408ebe62a8f071a32232441092f5120e02639e2d183f2e48125b6614f
xboot
xfel
NA
static void vli_clear(uint64_t * vli) { int i; for(i = 0; i < ECDSA256_NUM_DIGITS; i++) vli[i] = 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403BAB", "function_addr": 4209579, "binary_name": "544d59e408ebe62a8f071a32232441092f5120e02639e2d183f2e48125b6614f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_4], 0"], [4, "jmp short loc_403BDB"], [5, "mov eax, [rbp+var_4]"], [6, "cdqe"], [7, "lea rdx, ds:0[rax*8]"], [8, "mov rax, [rbp+var_18]"], [9, "add rax, rdx"], [10, "mov qword ptr [rax], 0"], [11, "add [rbp+var_4], 1"], [12, "cmp [rbp+var_4], 3"], [13, "jle short loc_403BBC"], [14, "nop"], [15, "nop"], [16, "pop rbp"], [17, "retn"]], "data_dep": [[5, 11], [5, 3], [7, 7], [8, 2], [9, 8], [9, 7], [10, 9], [11, 3], [11, 11], [12, 3], [12, 11], [13, 12], [16, 0], [17, 9]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/544d59e408ebe62a8f071a32232441092f5120e02639e2d183f2e48125b6614f_544d59e408ebe62a8f071a32232441092f5120e02639e2d183f2e48125b6614f.jsonl.gz", "strip_func_name": "sub_403BAB", "query": "\n\n\n_QWORD *__fastcall sub_403BAB(__int64 a1)\n{\n_QWORD *result; // rax\nint i; // [rsp+14h] [rbp-4h]\n\nfor ( i = 0; i <= 3; ++i )\n{\nresult = (_QWORD *)(8LL * i + a1);\n*result = 0LL;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_403BAB,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'vli', 'sub_403BAB': 'vli_clear'}"}
usage
4af1afc4d1373ff505da91b67cdc78569414e6d4d4c525d369f44ba11747cda8
swetland
dcpu16
NA
static void usage(int argc, char **argv) { fprintf(stderr, "usage: %s [-o output] [-O output_format] <input file(s)>\n", argv[0]); fprintf(stderr, "\toutput_format can be one of: pretty, hex, binary\n"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4022D7", "function_addr": 4203223, "binary_name": "4af1afc4d1373ff505da91b67cdc78569414e6d4d4c525d369f44ba11747cda8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rax, [rbp+var_10]"], [6, "mov rdx, [rax]"], [7, "mov rax, cs:stderr"], [8, "mov esi, offset aUsageSOOutputO"], [9, "mov rdi, rax"], [10, "mov eax, 0"], [11, "call _fprintf"], [12, "mov rax, cs:stderr"], [13, "mov rcx, rax"], [14, "mov edx, 32h "], [15, "mov esi, 1"], [16, "mov edi, offset aOutputFormatCa"], [17, "call _fwrite"], [18, "nop"], [19, "leave"], [20, "retn"]], "data_dep": [[5, 4], [6, 5], [9, 7], [13, 12], [20, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/4af1afc4d1373ff505da91b67cdc78569414e6d4d4c525d369f44ba11747cda8_4af1afc4d1373ff505da91b67cdc78569414e6d4d4c525d369f44ba11747cda8.jsonl.gz", "strip_func_name": "sub_4022D7", "query": "\n\n\nsize_t __fastcall sub_4022D7(__int64 a1, const char **a2)\n{\nfprintf(stderr, \"usage: %s [-o output] [-O output_format] <input file(s)>\\n\", *a2);\nreturn fwrite(\"\\toutput_format can be one of: pretty, hex, binary\\n\", 1uLL, 0x32uLL, stderr);\n}\n\n\n\nQ:[a2,a1,sub_4022D7,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a1': 'argc', 'sub_4022D7': 'usage'}"}
x509_str_compare
a00a174460e27c0a15353e4aa238c55e049e0606a381405d5b36ad737c184769
vanhoefm
hostap-wpa3
NA
static int x509_str_compare(const char *a, const char *b) { char *aa, *bb; int ret; if (!a && b) return -1; if (a && !b) return 1; if (!a && !b) return 0; aa = os_strdup(a); bb = os_strdup(b); if (aa == NULL || bb == NULL) { os_free(aa); os_free(bb); return os_strcasecmp(a, b); } x509_str_strip_whitespace(aa); x509_str_strip_whitespace(bb); ret = os_strcasecmp(aa, bb); os_free(aa); os_free(bb); return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4A6412", "function_addr": 4875282, "binary_name": "a00a174460e27c0a15353e4aa238c55e049e0606a381405d5b36ad737c184769.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+s], rdi"], [4, "mov [rbp+s2], rsi"], [5, "cmp [rbp+s], 0"], [6, "jnz short loc_4A643A"], [7, "cmp [rbp+s2], 0"], [8, "jz short loc_4A643A"], [9, "mov eax, 0FFFFFFFFh"], [10, "jmp locret_4A650E"], [11, "cmp [rbp+s], 0"], [12, "jz short loc_4A6452"], [13, "cmp [rbp+s2], 0"], [14, "jnz short loc_4A6452"], [15, "mov eax, 1"], [16, "jmp locret_4A650E"], [17, "cmp [rbp+s], 0"], [18, "jnz short loc_4A646A"], [19, "cmp [rbp+s2], 0"], [20, "jnz short loc_4A646A"], [21, "mov eax, 0"], [22, "jmp locret_4A650E"], [23, "mov rax, [rbp+s]"], [24, "mov rdi, rax"], [25, "call _strdup"], [26, "mov [rbp+ptr], rax"], [27, "mov rax, [rbp+s2]"], [28, "mov rdi, rax"], [29, "call _strdup"], [30, "mov [rbp+var_10], rax"], [31, "cmp [rbp+ptr], 0"], [32, "jz short loc_4A6498"], [33, "cmp [rbp+var_10], 0"], [34, "jnz short loc_4A64C5"], [35, "mov rax, [rbp+ptr]"], [36, "mov rdi, rax"], [37, "call _free"], [38, "mov rax, [rbp+var_10]"], [39, "mov rdi, rax"], [40, "call _free"], [41, "mov rdx, [rbp+s2]"], [42, "mov rax, [rbp+s]"], [43, "mov rsi, rdx"], [44, "mov rdi, rax"], [45, "call _strcasecmp"], [46, "jmp short locret_4A650E"], [47, "mov rax, [rbp+ptr]"], [48, "mov rdi, rax"], [49, "call sub_4A6357"], [50, "mov rax, [rbp+var_10]"], [51, "mov rdi, rax"], [52, "call sub_4A6357"], [53, "mov rdx, [rbp+var_10]"], [54, "mov rax, [rbp+ptr]"], [55, "mov rsi, rdx"], [56, "mov rdi, rax"], [57, "call _strcasecmp"], [58, "mov [rbp+var_14], eax"], [59, "mov rax, [rbp+ptr]"], [60, "mov rdi, rax"], [61, "call _free"], [62, "mov rax, [rbp+var_10]"], [63, "mov rdi, rax"], [64, "call _free"], [65, "mov eax, [rbp+var_14]"], [66, "leave"], [67, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 4], [8, 7], [11, 3], [12, 11], [13, 4], [14, 13], [17, 3], [18, 17], [19, 4], [20, 19], [23, 3], [24, 23], [26, 25], [27, 4], [28, 27], [30, 29], [31, 26], [32, 31], [33, 30], [34, 33], [35, 26], [36, 35], [38, 30], [39, 38], [41, 4], [42, 3], [43, 41], [44, 42], [47, 26], [48, 47], [50, 30], [51, 50], [53, 30], [54, 26], [55, 53], [56, 54], [58, 57], [59, 26], [60, 59], [62, 30], [63, 62], [65, 58], [67, 65], [67, 9], [67, 15], [67, 21], [67, 45]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a00a174460e27c0a15353e4aa238c55e049e0606a381405d5b36ad737c184769_a00a174460e27c0a15353e4aa238c55e049e0606a381405d5b36ad737c184769.jsonl.gz", "strip_func_name": "sub_4A6412", "query": "\n\n\nint __fastcall sub_4A6412(const char *a1, const char *a2)\n{\nint result; // eax\nint v3; // [rsp+1Ch] [rbp-14h]\nchar *v4; // [rsp+20h] [rbp-10h]\nchar *ptr; // [rsp+28h] [rbp-8h]\n\nif ( !a1 && a2 )\nreturn -1;\nif ( a1 && !a2 )\nreturn 1;\nif ( !a1 && !a2 )\nreturn 0;\nptr = strdup(a1);\nv4 = strdup(a2);\nif ( ptr && v4 )\n{\nsub_4A6357(ptr);\nsub_4A6357(v4);\nv3 = strcasecmp(ptr, v4);\nfree(ptr);\nfree(v4);\nresult = v3;\n}\nelse\n{\nfree(ptr);\nfree(v4);\nresult = strcasecmp(a1, a2);\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v4,ptr,sub_4A6412,sub_4A6357,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'a', 'a2': 'b', 'v4': 'bb', 'ptr': 'aa', 'sub_4A6412': 'x509_str_compare', 'sub_4A6357': 'x509_str_strip_whitespace'}"}
pfh_handler
3f1dbef0dcf52c12d23f5f5f78b2c3a922afbe6ead5cd010f21e0c1d6bff98ee
zhangboyang
NEMU-public
NA
static int pfh_handler(void *fault_address, void *user_arg) { unsigned vaddr = fault_address - vbase; unsigned paddr = page_translate_nocache(vaddr); //printf("page fault at %p, vaddr = %08X, paddr = %08X\n", fault_address, vaddr, paddr); vmm_createmapping(GET_PAGE_NUMBER_INPLACE(vaddr), GET_PAGE_NUMBER_INPLACE(paddr), PAGE_SIZE); return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_70012CC0", "function_addr": 1879125184, "binary_name": "3f1dbef0dcf52c12d23f5f5f78b2c3a922afbe6ead5cd010f21e0c1d6bff98ee.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rdx, cs:qword_70031140"], [6, "mov rax, [rbp+var_18]"], [7, "sub rax, rdx"], [8, "mov [rbp+var_4], eax"], [9, "mov eax, [rbp+var_4]"], [10, "mov edi, eax"], [11, "call sub_700130B9"], [12, "mov [rbp+var_8], eax"], [13, "mov eax, [rbp+var_8]"], [14, "and eax, 0FFFFF000h"], [15, "mov ecx, eax"], [16, "mov eax, [rbp+var_4]"], [17, "and eax, 0FFFFF000h"], [18, "mov edx, 1000h"], [19, "mov esi, ecx"], [20, "mov edi, eax"], [21, "call sub_70012AD2"], [22, "mov eax, 1"], [23, "leave"], [24, "retn"]], "data_dep": [[6, 3], [7, 6], [7, 5], [8, 7], [9, 8], [10, 9], [12, 11], [13, 12], [14, 13], [15, 14], [16, 8], [17, 16], [19, 15], [20, 17], [24, 22]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/3f1dbef0dcf52c12d23f5f5f78b2c3a922afbe6ead5cd010f21e0c1d6bff98ee_3f1dbef0dcf52c12d23f5f5f78b2c3a922afbe6ead5cd010f21e0c1d6bff98ee.jsonl.gz", "strip_func_name": "sub_70012CC0", "query": "\n\n\n__int64 __fastcall sub_70012CC0(int a1)\n{\nint v2; // [rsp+18h] [rbp-8h]\nint v3; // [rsp+1Ch] [rbp-4h]\n\nv3 = a1 - qword_70031140;\nv2 = sub_700130B9((unsigned int)(a1 - qword_70031140));\nsub_70012AD2(v3 & 0xFFFFF000, v2 & 0xFFFFF000, 0x1000u);\nreturn 1LL;\n}\n\n\n\nQ:[a1,v2,v3,sub_70012CC0,sub_700130B9,sub_70012AD2,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fault_address', 'v2': 'paddr', 'v3': 'vaddr', 'sub_70012CC0': 'pfh_handler', 'sub_700130B9': 'page_translate_nocache', 'sub_70012AD2': 'vmm_createmapping'}"}
main
cb955f7438e1822f6a7efeffccf83bad5d59646e342c4b53f193b3e9646a7b61
BPI-SINOVOIP
BPI-W2-bsp
NA
int main(int argc, char *argv[]) { int n_error = 0; /* gcc-4.3.0 false positive complaint */ int i; if (argc < 2) { fprintf(stderr, "usage: sortextable vmlinux...\n"); return 0; } /* Process each file in turn, allowing deep failure. */ for (i = 1; i < argc; i++) { char *file = argv[i]; int const sjval = setjmp(jmpenv); switch (sjval) { default: fprintf(stderr, "internal error: %s\n", file); exit(1); break; case SJ_SETJMP: /* normal sequence */ /* Avoid problems if early cleanup() */ fd_map = -1; ehdr_curr = NULL; mmap_failed = 1; do_file(file); break; case SJ_FAIL: /* error in do_file or below */ ++n_error; break; case SJ_SUCCEED: /* premature success */ /* do nothing */ break; } /* end switch */ } return !!n_error; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4206649, "binary_name": "cb955f7438e1822f6a7efeffccf83bad5d59646e342c4b53f193b3e9646a7b61.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 38h"], [1, "mov [rsp+38h+var_2C], edi"], [2, "mov [rsp+38h+var_38], rsi"], [3, "mov [rsp+38h+var_C], 0"], [4, "cmp [rsp+38h+var_2C], 1"], [5, "jg short loc_40307C"], [6, "mov rax, cs:stderr"], [7, "mov rcx, rax"], [8, "mov edx, 1Eh"], [9, "mov esi, 1"], [10, "mov edi, offset aUsageSortextab"], [11, "call _fwrite"], [12, "mov eax, 0"], [13, "jmp loc_40314C"], [14, "mov [rsp+38h+var_10], 1"], [15, "jmp loc_403133"], [16, "mov eax, [rsp+38h+var_10]"], [17, "cdqe"], [18, "lea rdx, ds:0[rax*8]"], [19, "mov rax, [rsp+38h+var_38]"], [20, "add rax, rdx"], [21, "mov rax, [rax]"], [22, "mov [rsp+38h+var_18], rax"], [23, "mov edi, offset env"], [24, "call __setjmp"], [25, "mov [rsp+38h+var_1C], eax"], [26, "cmp [rsp+38h+var_1C], 2"], [27, "jz short loc_40312D"], [28, "cmp [rsp+38h+var_1C], 2"], [29, "jg short loc_4030D0"], [30, "cmp [rsp+38h+var_1C], 0"], [31, "jz short loc_4030F8"], [32, "cmp [rsp+38h+var_1C], 1"], [33, "jz short loc_403126"], [34, "mov rax, cs:stderr"], [35, "mov rdx, [rsp+38h+var_18]"], [36, "mov esi, offset aInternalErrorS"], [37, "mov rdi, rax"], [38, "mov eax, 0"], [39, "call _fprintf"], [40, "mov edi, 1"], [41, "call _exit"], [42, "mov cs:fildes, 0FFFFFFFFh"], [43, "mov cs:addr, 0"], [44, "mov cs:dword_4060C4, 1"], [45, "mov rax, [rsp+38h+var_18]"], [46, "mov rdi, rax"], [47, "call sub_402CAC"], [48, "jmp short loc_40312E"], [49, "add [rsp+38h+var_C], 1"], [50, "jmp short loc_40312E"], [51, "nop"], [52, "add [rsp+38h+var_10], 1"], [53, "mov eax, [rsp+38h+var_10]"], [54, "cmp eax, [rsp+38h+var_2C]"], [55, "jl loc_403089"], [56, "cmp [rsp+38h+var_C], 0"], [57, "setnz al"], [58, "movzx eax, al"], [59, "add rsp, 38h"], [60, "retn"]], "data_dep": [[4, 1], [5, 4], [7, 6], [16, 52], [16, 14], [18, 18], [19, 2], [20, 19], [20, 18], [21, 20], [22, 21], [25, 24], [26, 25], [27, 26], [28, 25], [29, 28], [30, 25], [31, 30], [32, 25], [33, 32], [35, 22], [37, 34], [45, 22], [46, 45], [49, 49], [49, 3], [52, 52], [52, 14], [53, 14], [53, 52], [54, 53], [54, 1], [55, 54], [56, 49], [56, 3], [57, 56], [57, 53], [58, 57], [59, 0], [60, 58], [60, 12]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/cb955f7438e1822f6a7efeffccf83bad5d59646e342c4b53f193b3e9646a7b61_cb955f7438e1822f6a7efeffccf83bad5d59646e342c4b53f193b3e9646a7b61.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n_BOOL8 __fastcall main(int a1, char **a2, char **a3)\n{\n_BOOL8 result; // rax\nint v4; // [rsp+1Ch] [rbp-1Ch]\nconst char *v5; // [rsp+20h] [rbp-18h]\nint i; // [rsp+28h] [rbp-10h]\nint v7; // [rsp+2Ch] [rbp-Ch]\n\nv7 = 0;\nif ( a1 > 1 )\n{\nfor ( i = 1; i < a1; ++i )\n{\nv5 = a2[i];\nv4 = _setjmp(env);\nif ( v4 != 2 )\n{\nif ( v4 > 2 )\ngoto LABEL_8;\nif ( v4 )\n{\nif ( v4 != 1 )\n{\nLABEL_8:\nfprintf(stderr, \"internal error: %s\\n\", v5);\nexit(1);\n}\n++v7;\n}\nelse\n{\nfildes = -1;\naddr = 0LL;\ndword_4060C4 = 1;\nsub_402CAC(v5);\n}\n}\n}\nresult = v7 != 0;\n}\nelse\n{\nfwrite(\"usage: sortextable vmlinux...\\n\", 1uLL, 0x1EuLL, stderr);\nresult = 0LL;\n}\nreturn result;\n}\n\n\n\nQ:[a2,a3,a1,v4,v5,v7,sub_402CAC,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v4': 'sjval', 'v5': 'file', 'v7': 'n_error', 'sub_402CAC': 'do_file'}"}
sectWrite
1812cddc11d5d37e1bfd4b1269e60e52c00acecac170e6456fc2ba2cddc55918
open-simh
simh
NA
t_stat sectWrite(DISK_INFO *myDisk, uint32 Cyl, uint32 Head, uint32 Sector, uint8 *buf, uint32 buflen, uint32 *flags, uint32 *writelen) { uint32 sectorFileOffset; uint8 sectRecordType; uint8 start_sect; *writelen = 0; sim_debug(myDisk->debugmask, myDisk->device, "Writing C:%d/H:%d/S:%d, len=%d\n", Cyl, Head, Sector, buflen); /* Check parameters */ if(myDisk == NULL) { *flags = IMD_DISK_IO_ERROR_GENERAL; return(SCPE_IOERR); } if(sectSeek(myDisk, Cyl, Head) != 0) { *flags = IMD_DISK_IO_ERROR_GENERAL; return(SCPE_IOERR); } if(Sector > myDisk->track[Cyl][Head].nsects) { sim_debug(myDisk->debugmask, myDisk->device, "%s: invalid sector\n", __FUNCTION__); *flags = IMD_DISK_IO_ERROR_GENERAL; return(SCPE_IOERR); } if(myDisk->flags & FD_FLAG_WRITELOCK) { sim_printf("Disk write-protected because the image contains compressed sectors. Use IMDU to uncompress.\n"); *flags = IMD_DISK_IO_ERROR_WPROT; return(SCPE_IOERR); } if(buflen < myDisk->track[Cyl][Head].sectsize) { sim_printf("%s: user buffer too short [buflen %i < sectsize %i]\n", __FUNCTION__, buflen, myDisk->track[Cyl][Head].sectsize); *flags = IMD_DISK_IO_ERROR_GENERAL; return(SCPE_IOERR); } start_sect = myDisk->track[Cyl][Head].start_sector; sectorFileOffset = myDisk->track[Cyl][Head].sectorOffsetMap[Sector-start_sect]; (void)sim_fseek(myDisk->file, sectorFileOffset-1, SEEK_SET); if (*flags & IMD_DISK_IO_ERROR_GENERAL) { sectRecordType = SECT_RECORD_UNAVAILABLE; } else if (*flags & IMD_DISK_IO_ERROR_CRC) { if (*flags & IMD_DISK_IO_DELETED_ADDR_MARK) sectRecordType = SECT_RECORD_NORM_DAM_ERR; else sectRecordType = SECT_RECORD_NORM_ERR; } else { if (*flags & IMD_DISK_IO_DELETED_ADDR_MARK) sectRecordType = SECT_RECORD_NORM_DAM; else sectRecordType = SECT_RECORD_NORM; } fputc(sectRecordType, myDisk->file); sim_fwrite(buf, 1, myDisk->track[Cyl][Head].sectsize, myDisk->file); *writelen = myDisk->track[Cyl][Head].sectsize; return(SCPE_OK); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_497E8F", "function_addr": 4816527, "binary_name": "1812cddc11d5d37e1bfd4b1269e60e52c00acecac170e6456fc2ba2cddc55918.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_20], edx"], [6, "mov [rbp+var_24], ecx"], [7, "mov [rbp+var_30], r8"], [8, "mov [rbp+var_28], r9d"], [9, "mov rax, [rbp+arg_8]"], [10, "mov dword ptr [rax], 0"], [11, "mov rax, cs:qword_503D60"], [12, "test rax, rax"], [13, "jz short loc_497F25"], [14, "mov rax, [rbp+var_18]"], [15, "mov rax, [rax+10h]"], [16, "test rax, rax"], [17, "jz short loc_497F25"], [18, "mov rax, [rbp+var_18]"], [19, "mov rax, [rax+10h]"], [20, "mov edx, [rax+74h]"], [21, "mov rax, [rbp+var_18]"], [22, "mov eax, [rax+18h]"], [23, "and eax, edx"], [24, "test eax, eax"], [25, "jz short loc_497F25"], [26, "mov rax, [rbp+var_18]"], [27, "mov rsi, [rax+10h]"], [28, "mov rax, [rbp+var_18]"], [29, "mov eax, [rax+18h]"], [30, "mov r8d, [rbp+var_24]"], [31, "mov edi, [rbp+var_20]"], [32, "mov edx, [rbp+var_1C]"], [33, "sub rsp, 8"], [34, "mov ecx, [rbp+var_28]"], [35, "push rcx"], [36, "mov r9d, r8d"], [37, "mov r8d, edi"], [38, "mov ecx, edx"], [39, "mov edx, offset aWritingCDHDSDL"], [40, "mov edi, eax"], [41, "mov eax, 0"], [42, "call sub_43E93F"], [43, "add rsp, 10h"], [44, "cmp [rbp+var_18], 0"], [45, "jnz short loc_497F40"], [46, "mov rax, [rbp+arg_0]"], [47, "mov dword ptr [rax], 1"], [48, "mov eax, 42h "], [49, "jmp locret_4982FF"], [50, "mov edx, [rbp+var_20]"], [51, "mov ecx, [rbp+var_1C]"], [52, "mov rax, [rbp+var_18]"], [53, "mov esi, ecx"], [54, "mov rdi, rax"], [55, "call sub_4977AE"], [56, "test eax, eax"], [57, "jz short loc_497F6C"], [58, "mov rax, [rbp+arg_0]"], [59, "mov dword ptr [rax], 1"], [60, "mov eax, 42h "], [61, "jmp locret_4982FF"], [62, "mov rsi, [rbp+var_18]"], [63, "mov eax, [rbp+var_20]"], [64, "mov ecx, [rbp+var_1C]"], [65, "mov rdx, rax"], [66, "shl rdx, 2"], [67, "add rdx, rax"], [68, "shl rdx, 2"], [69, "add rdx, rax"], [70, "lea rax, ds:0[rdx*8]"], [71, "mov rdx, rax"], [72, "mov rax, rcx"], [73, "shl rax, 2"], [74, "add rax, rcx"], [75, "shl rax, 2"], [76, "add rax, rcx"], [77, "shl rax, 4"], [78, "add rax, rdx"], [79, "add rax, rsi"], [80, "add rax, 21h "], [81, "movzx eax, byte ptr [rax]"], [82, "movzx eax, al"], [83, "cmp [rbp+var_24], eax"], [84, "jbe short loc_498026"], [85, "mov rax, cs:qword_503D60"], [86, "test rax, rax"], [87, "jz short loc_498012"], [88, "mov rax, [rbp+var_18]"], [89, "mov rax, [rax+10h]"], [90, "test rax, rax"], [91, "jz short loc_498012"], [92, "mov rax, [rbp+var_18]"], [93, "mov rax, [rax+10h]"], [94, "mov edx, [rax+74h]"], [95, "mov rax, [rbp+var_18]"], [96, "mov eax, [rax+18h]"], [97, "and eax, edx"], [98, "test eax, eax"], [99, "jz short loc_498012"], [100, "mov rax, [rbp+var_18]"], [101, "mov rsi, [rax+10h]"], [102, "mov rax, [rbp+var_18]"], [103, "mov eax, [rax+18h]"], [104, "mov ecx, offset aSectwrite"], [105, "mov edx, offset aSInvalidSector"], [106, "mov edi, eax"], [107, "mov eax, 0"], [108, "call sub_43E93F"], [109, "mov rax, [rbp+arg_0]"], [110, "mov dword ptr [rax], 1"], [111, "mov eax, 42h "], [112, "jmp locret_4982FF"], [113, "mov rax, [rbp+var_18]"], [114, "movzx eax, byte ptr [rax+0Dh]"], [115, "movzx eax, al"], [116, "and eax, 1"], [117, "test eax, eax"], [118, "jz short loc_49805B"], [119, "mov edi, offset aDiskWriteProte"], [120, "mov eax, 0"], [121, "call sub_43DB49"], [122, "mov rax, [rbp+arg_0]"], [123, "mov dword ptr [rax], 10h"], [124, "mov eax, 42h "], [125, "jmp locret_4982FF"], [126, "mov rsi, [rbp+var_18]"], [127, "mov eax, [rbp+var_20]"], [128, "mov ecx, [rbp+var_1C]"], [129, "mov rdx, rax"], [130, "shl rdx, 2"], [131, "add rdx, rax"], [132, "shl rdx, 2"], [133, "add rdx, rax"], [134, "lea rax, ds:0[rdx*8]"], [135, "mov rdx, rax"], [136, "mov rax, rcx"], [137, "shl rax, 2"], [138, "add rax, rcx"], [139, "shl rax, 2"], [140, "add rax, rcx"], [141, "shl rax, 4"], [142, "add rax, rdx"], [143, "add rax, rsi"], [144, "add rax, 24h "], [145, "mov eax, [rax]"], [146, "cmp [rbp+var_28], eax"], [147, "jnb short loc_49811D"], [148, "mov rsi, [rbp+var_18]"], [149, "mov eax, [rbp+var_20]"], [150, "mov ecx, [rbp+var_1C]"], [151, "mov rdx, rax"], [152, "shl rdx, 2"], [153, "add rdx, rax"], [154, "shl rdx, 2"], [155, "add rdx, rax"], [156, "lea rax, ds:0[rdx*8]"], [157, "mov rdx, rax"], [158, "mov rax, rcx"], [159, "shl rax, 2"], [160, "add rax, rcx"], [161, "shl rax, 2"], [162, "add rax, rcx"], [163, "shl rax, 4"], [164, "add rax, rdx"], [165, "add rax, rsi"], [166, "add rax, 24h "], [167, "mov edx, [rax]"], [168, "mov eax, [rbp+var_28]"], [169, "mov ecx, edx"], [170, "mov edx, eax"], [171, "mov esi, offset aSectwrite"], [172, "mov edi, offset aSUserBufferToo"], [173, "mov eax, 0"], [174, "call sub_43DB49"], [175, "mov rax, [rbp+arg_0]"], [176, "mov dword ptr [rax], 1"], [177, "mov eax, 42h "], [178, "jmp locret_4982FF"], [179, "mov rsi, [rbp+var_18]"], [180, "mov eax, [rbp+var_20]"], [181, "mov ecx, [rbp+var_1C]"], [182, "mov rdx, rax"], [183, "shl rdx, 2"], [184, "add rdx, rax"], [185, "shl rdx, 2"], [186, "add rdx, rax"], [187, "lea rax, ds:0[rdx*8]"], [188, "mov rdx, rax"], [189, "mov rax, rcx"], [190, "shl rax, 2"], [191, "add rax, rcx"], [192, "shl rax, 2"], [193, "add rax, rcx"], [194, "shl rax, 4"], [195, "add rax, rdx"], [196, "add rax, rsi"], [197, "add rax, 90h"], [198, "movzx eax, byte ptr [rax]"], [199, "mov [rbp+var_2], al"], [200, "movzx edx, [rbp+var_2]"], [201, "mov eax, [rbp+var_24]"], [202, "sub eax, edx"], [203, "mov rsi, [rbp+var_18]"], [204, "mov edi, eax"], [205, "mov eax, [rbp+var_1C]"], [206, "mov ecx, [rbp+var_20]"], [207, "mov rdx, rax"], [208, "shl rdx, 2"], [209, "add rdx, rax"], [210, "shl rdx, 2"], [211, "add rdx, rax"], [212, "lea rax, ds:0[rdx*4]"], [213, "mov rdx, rax"], [214, "mov rax, rcx"], [215, "shl rax, 2"], [216, "add rax, rcx"], [217, "shl rax, 2"], [218, "add rax, rcx"], [219, "add rax, rax"], [220, "add rax, rdx"], [221, "add rax, rdi"], [222, "add rax, 8"], [223, "mov eax, [rsi+rax*4+8]"], [224, "mov [rbp+var_8], eax"], [225, "mov eax, [rbp+var_8]"], [226, "lea ecx, [rax-1]"], [227, "mov rax, [rbp+var_18]"], [228, "mov rax, [rax]"], [229, "mov edx, 0"], [230, "mov esi, ecx"], [231, "mov rdi, rax"], [232, "call sub_44EDE0"], [233, "mov rax, [rbp+arg_0]"], [234, "mov eax, [rax]"], [235, "and eax, 1"], [236, "test eax, eax"], [237, "jz short loc_4981EF"], [238, "mov [rbp+var_1], 0"], [239, "jmp short loc_49822C"], [240, "mov rax, [rbp+arg_0]"], [241, "mov eax, [rax]"], [242, "and eax, 2"], [243, "test eax, eax"], [244, "jz short loc_498215"], [245, "mov rax, [rbp+arg_0]"], [246, "mov eax, [rax]"], [247, "and eax, 4"], [248, "test eax, eax"], [249, "jz short loc_49820F"], [250, "mov [rbp+var_1], 7"], [251, "jmp short loc_49822C"], [252, "mov [rbp+var_1], 5"], [253, "jmp short loc_49822C"], [254, "mov rax, [rbp+arg_0]"], [255, "mov eax, [rax]"], [256, "and eax, 4"], [257, "test eax, eax"], [258, "jz short loc_498228"], [259, "mov [rbp+var_1], 3"], [260, "jmp short loc_49822C"], [261, "mov [rbp+var_1], 1"], [262, "movzx edx, [rbp+var_1]"], [263, "mov rax, [rbp+var_18]"], [264, "mov rax, [rax]"], [265, "mov esi, offset aC_15"], [266, "mov rdi, rax"], [267, "mov eax, 0"], [268, "call sub_43F06E"], [269, "mov rax, [rbp+var_18]"], [270, "mov rsi, [rax]"], [271, "mov rdi, [rbp+var_18]"], [272, "mov eax, [rbp+var_20]"], [273, "mov ecx, [rbp+var_1C]"], [274, "mov rdx, rax"], [275, "shl rdx, 2"], [276, "add rdx, rax"], [277, "shl rdx, 2"], [278, "add rdx, rax"], [279, "lea rax, ds:0[rdx*8]"], [280, "mov rdx, rax"], [281, "mov rax, rcx"], [282, "shl rax, 2"], [283, "add rax, rcx"], [284, "shl rax, 2"], [285, "add rax, rcx"], [286, "shl rax, 4"], [287, "add rax, rdx"], [288, "add rax, rdi"], [289, "add rax, 24h "], [290, "mov eax, [rax]"], [291, "mov edx, eax"], [292, "mov rax, [rbp+var_30]"], [293, "mov rcx, rsi"], [294, "mov esi, 1"], [295, "mov rdi, rax"], [296, "call sub_44E4A7"], [297, "mov rsi, [rbp+var_18]"], [298, "mov eax, [rbp+var_20]"], [299, "mov ecx, [rbp+var_1C]"], [300, "mov rdx, rax"], [301, "shl rdx, 2"], [302, "add rdx, rax"], [303, "shl rdx, 2"], [304, "add rdx, rax"], [305, "lea rax, ds:0[rdx*8]"], [306, "mov rdx, rax"], [307, "mov rax, rcx"], [308, "shl rax, 2"], [309, "add rax, rcx"], [310, "shl rax, 2"], [311, "add rax, rcx"], [312, "shl rax, 4"], [313, "add rax, rdx"], [314, "add rax, rsi"], [315, "add rax, 24h "], [316, "mov edx, [rax]"], [317, "mov rax, [rbp+arg_8]"], [318, "mov [rax], edx"], [319, "mov eax, 0"], [320, "leave"], [321, "retn"]], "data_dep": [[10, 9], [12, 11], [13, 12], [14, 3], [15, 10], [15, 14], [16, 15], [17, 16], [18, 3], [19, 18], [19, 10], [20, 10], [20, 19], [21, 3], [22, 10], [22, 21], [23, 20], [23, 22], [24, 23], [25, 24], [26, 3], [27, 26], [27, 10], [28, 3], [29, 10], [29, 28], [30, 6], [31, 5], [32, 4], [33, 2], [34, 8], [35, 34], [36, 30], [37, 31], [38, 32], [40, 29], [43, 33], [44, 3], [45, 44], [47, 46], [50, 5], [51, 4], [52, 3], [53, 51], [54, 52], [56, 55], [57, 56], [59, 58], [62, 3], [63, 5], [64, 4], [65, 63], [66, 65], [67, 63], [67, 66], [68, 67], [69, 68], [69, 63], [70, 63], [71, 70], [72, 64], [73, 72], [74, 64], [74, 73], [75, 74], [76, 64], [76, 75], [77, 76], [78, 77], [78, 71], [79, 78], [79, 62], [80, 79], [81, 10], [81, 80], [82, 81], [83, 6], [83, 82], [84, 83], [86, 85], [87, 86], [88, 3], [89, 10], [89, 88], [90, 89], [91, 90], [92, 3], [93, 92], [93, 10], [94, 10], [94, 93], [95, 3], [96, 95], [96, 10], [97, 94], [97, 96], [98, 97], [99, 98], [100, 3], [101, 10], [101, 100], [102, 3], [103, 102], [103, 10], [106, 103], [110, 109], [113, 3], [114, 10], [114, 113], [115, 114], [116, 115], [117, 116], [118, 117], [123, 122], [126, 3], [127, 5], [128, 4], [129, 127], [130, 129], [131, 130], [131, 127], [132, 131], [133, 132], [133, 127], [134, 127], [135, 134], [136, 128], [137, 136], [138, 128], [138, 137], [139, 138], [140, 128], [140, 139], [141, 140], [142, 135], [142, 141], [143, 126], [143, 142], [144, 143], [145, 144], [145, 10], [146, 145], [146, 8], [147, 146], [148, 3], [149, 5], [150, 4], [151, 149], [152, 151], [153, 149], [153, 152], [154, 153], [155, 149], [155, 154], [156, 149], [157, 156], [158, 150], [159, 158], [160, 150], [160, 159], [161, 160], [162, 161], [162, 150], [163, 162], [164, 163], [164, 157], [165, 164], [165, 148], [166, 165], [167, 10], [167, 176], [167, 166], [168, 8], [169, 167], [170, 168], [176, 175], [179, 3], [180, 5], [181, 4], [182, 180], [183, 182], [184, 180], [184, 183], [185, 184], [186, 185], [186, 180], [187, 180], [188, 187], [189, 181], [190, 189], [191, 181], [191, 190], [192, 191], [193, 192], [193, 181], [194, 193], [195, 188], [195, 194], [196, 179], [196, 195], [197, 196], [198, 197], [198, 10], [199, 198], [200, 199], [201, 6], [202, 200], [202, 201], [203, 3], [204, 202], [205, 4], [206, 5], [207, 205], [208, 207], [209, 208], [209, 205], [210, 209], [211, 210], [211, 205], [212, 205], [213, 212], [214, 206], [215, 214], [216, 215], [216, 206], [217, 216], [218, 217], [218, 206], [219, 218], [220, 219], [220, 213], [221, 204], [221, 220], [222, 221], [223, 222], [223, 10], [224, 223], [225, 224], [226, 225], [226, 206], [226, 10], [227, 3], [228, 10], [228, 227], [230, 226], [231, 228], [234, 10], [234, 233], [235, 234], [236, 235], [237, 236], [241, 10], [241, 240], [242, 241], [243, 242], [244, 243], [246, 10], [246, 245], [247, 246], [248, 247], [249, 248], [255, 10], [255, 254], [256, 255], [257, 256], [258, 257], [262, 252], [262, 261], [262, 238], [262, 250], [262, 259], [263, 3], [264, 263], [264, 318], [264, 10], [266, 264], [269, 3], [270, 269], [270, 318], [270, 10], [271, 3], [272, 5], [273, 4], [274, 272], [275, 274], [276, 275], [276, 272], [277, 276], [278, 277], [278, 272], [279, 272], [280, 279], [281, 273], [282, 281], [283, 273], [283, 282], [284, 283], [285, 284], [285, 273], [286, 285], [287, 280], [287, 286], [288, 271], [288, 287], [289, 288], [290, 318], [290, 289], [290, 10], [291, 290], [292, 7], [293, 270], [295, 292], [297, 3], [298, 5], [299, 4], [300, 298], [301, 300], [302, 301], [302, 298], [303, 302], [304, 303], [304, 298], [305, 298], [306, 305], [307, 299], [308, 307], [309, 299], [309, 308], [310, 309], [311, 310], [311, 299], [312, 311], [313, 306], [313, 312], [314, 297], [314, 313], [315, 314], [316, 315], [316, 318], [316, 10], [317, 224], [318, 317], [318, 316], [321, 60], [321, 319], [321, 124], [321, 48], [321, 177], [321, 111]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1812cddc11d5d37e1bfd4b1269e60e52c00acecac170e6456fc2ba2cddc55918_1812cddc11d5d37e1bfd4b1269e60e52c00acecac170e6456fc2ba2cddc55918.jsonl.gz", "strip_func_name": "sub_497E8F", "query": "\n\n\n__int64 __fastcall sub_497E8F(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4, __int64 a5, __int64 a6, _DWORD *a7, _DWORD *a8)\n{\n__int64 result; // rax\n__int64 v9; // r8\n__int64 v10; // r9\n__int64 v11; // rdx\n__int64 v12; // rcx\n__int64 v13; // r8\n__int64 v14; // r9\nvoid *v16; // [rsp+0h] [rbp-30h]\nunsigned int v17; // [rsp+8h] [rbp-28h]\nunsigned __int8 v20; // [rsp+2Fh] [rbp-1h]\n\nv17 = a6;\n*a8 = 0;\nif ( qword_503D60 && *(_QWORD *)(a1 + 16) && (*(_DWORD *)(*(_QWORD *)(a1 + 16) + 116LL) & *(_DWORD *)(a1 + 24)) != 0 )\nsub_43E93F(\n*(_DWORD *)(a1 + 24),\n*(_QWORD *)(a1 + 16),\n\"Writing C:%d/H:%d/S:%d, len=%d\\n\",\na2,\na3,\na4,\n(unsigned int)a6);\nif ( a1 )\n{\nif ( (unsigned int)sub_4977AE(a1, a2, a3, a2, a5, a6) )\n{\n*a7 = 1;\nresult = 66LL;\n}\nelse\n{\nv11 = 168LL * a3;\nif ( a4 <= *(unsigned __int8 *)(a1 + v11 + 336LL * a2 + 33) )\n{\nif ( (*(_BYTE *)(a1 + 13) & 1) != 0 )\n{\nsub_43DB49(\n\"Disk write-protected because the image contains compressed sectors. Use IMDU to uncompress.\\n\",\na1,\nv11,\na2,\nv9,\nv10,\na5);\n*a7 = 16;\nresult = 66LL;\n}\nelse if ( v17 >= *(_DWORD *)(a1 + 168LL * a3 + 336LL * a2 + 36) )\n{\nsub_44EDE0(\n*(FILE **)a1,\n*(_DWORD *)(a1\n+ 4 * (a4 - *(unsigned __int8 *)(a1 + 168LL * a3 + 336LL * a2 + 144) + 84LL * a2 + 42LL * a3 + 8)\n+ 8)\n- 1,\n0);\nif ( (*a7 & 1) != 0 )\n{\nv20 = 0;\n}\nelse if ( (*a7 & 2) != 0 )\n{\nif ( (*a7 & 4) != 0 )\nv20 = 7;\nelse\nv20 = 5;\n}\nelse if ( (*a7 & 4) != 0 )\n{\nv20 = 3;\n}\nelse\n{\nv20 = 1;\n}\nsub_43F06E(*(FILE **)a1, \"%c\", v20, v12, v13, v14, a5);\nsub_44E4A7(v16, 1uLL, *(unsigned int *)(a1 + 168LL * a3 + 336LL * a2 + 36), *(FILE **)a1);\n*a8 = *(_DWORD *)(a1 + 168LL * a3 + 336LL * a2 + 36);\nresult = 0LL;\n}\nelse\n{\nsub_43DB49(\n\"%s: user buffer too short [buflen %i < sectsize %i]\\n\",\n(__int64)\"sectWrite\",\nv17,\n*(unsigned int *)(a1 + 168LL * a3 + 336LL * a2 + 36),\nv9,\nv10,\na5);\n*a7 = 1;\nresult = 66LL;\n}\n}\nelse\n{\nif ( qword_503D60\n&& *(_QWORD *)(a1 + 16)\n&& (*(_DWORD *)(*(_QWORD *)(a1 + 16) + 116LL) & *(_DWORD *)(a1 + 24)) != 0 )\n{\nsub_43E93F(\n*(_DWORD *)(a1 + 24),\n*(_QWORD *)(a1 + 16),\n\"%s: invalid sector\\n\",\n(__int64)\"sectWrite\",\nv9,\nv10,\na5);\n}\n*a7 = 1;\nresult = 66LL;\n}\n}\n}\nelse\n{\n*a7 = 1;\nresult = 66LL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,a7,a8,v9,v14,v11,v12,v20,sub_497E8F,sub_43E93F,sub_4977AE,sub_43DB49,sub_44EDE0,sub_43F06E,sub_44E4A7,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'Head', 'a4': 'Sector', 'a1': 'myDisk', 'a2': 'Cyl', 'a5': 'buf', 'a6': 'buflen', 'a7': 'flags', 'a8': 'writelen', 'v9': 'buf', 'v14': 'buflen', 'v11': 'Head', 'v12': 'Sector', 'v20': 'sectRecordType', 'sub_497E8F': 'sectWrite', 'sub_43E93F': '_sim_debug_device', 'sub_4977AE': 'sectSeek', 'sub_43DB49': 'sim_printf', 'sub_44EDE0': 'sim_fseek', 'sub_43F06E': 'Fprintf', 'sub_44E4A7': 'sim_fwrite'}"}
chartorune
ef95e6adb037ed43878e32f954e5d65764d8b5a494e8ee54ce7c17db9e878531
mariusae
pingrf
NA
int chartorune(Rune *rune, const char *str) { int c, c1, c2, c3; long l; /* * one character sequence * 00000-0007F => T1 */ c = *(uchar*)str; if(c < Tx) { *rune = c; return 1; } /* * two character sequence * 0080-07FF => T2 Tx */ c1 = *(uchar*)(str+1) ^ Tx; if(c1 & Testx) goto bad; if(c < T3) { if(c < T2) goto bad; l = ((c << Bitx) | c1) & Rune2; if(l <= Rune1) goto bad; *rune = l; return 2; } /* * three character sequence * 0800-FFFF => T3 Tx Tx */ c2 = *(uchar*)(str+2) ^ Tx; if(c2 & Testx) goto bad; if(c < T4) { l = ((((c << Bitx) | c1) << Bitx) | c2) & Rune3; if(l <= Rune2) goto bad; *rune = l; return 3; } /* * four character sequence (21-bit value) * 10000-1FFFFF => T4 Tx Tx Tx */ c3 = *(uchar*)(str+3) ^ Tx; if (c3 & Testx) goto bad; if (c < T5) { l = ((((((c << Bitx) | c1) << Bitx) | c2) << Bitx) | c3) & Rune4; if (l <= Rune3) goto bad; *rune = l; return 4; } /* * Support for 5-byte or longer UTF-8 would go here, but * since we don't have that, we'll just fall through to bad. */ /* * bad decoding */ bad: *rune = Bad; return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402955", "function_addr": 4204885, "binary_name": "ef95e6adb037ed43878e32f954e5d65764d8b5a494e8ee54ce7c17db9e878531.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_28], rdi"], [3, "mov [rbp+var_30], rsi"], [4, "mov rax, [rbp+var_30]"], [5, "movzx eax, byte ptr [rax]"], [6, "movzx eax, al"], [7, "mov [rbp+var_4], eax"], [8, "cmp [rbp+var_4], 7Fh"], [9, "jg short loc_402987"], [10, "mov edx, [rbp+var_4]"], [11, "mov rax, [rbp+var_28]"], [12, "mov [rax], edx"], [13, "mov eax, 1"], [14, "jmp loc_402AEC"], [15, "mov rax, [rbp+var_30]"], [16, "add rax, 1"], [17, "movzx eax, byte ptr [rax]"], [18, "xor eax, 0FFFFFF80h"], [19, "movzx eax, al"], [20, "mov [rbp+var_8], eax"], [21, "mov eax, [rbp+var_8]"], [22, "and eax, 0C0h"], [23, "test eax, eax"], [24, "jnz loc_402AC7"], [25, "cmp [rbp+var_4], 0DFh"], [26, "jg short loc_4029F6"], [27, "cmp [rbp+var_4], 0BFh"], [28, "jle loc_402ACA"], [29, "mov eax, [rbp+var_4]"], [30, "shl eax, 6"], [31, "or eax, [rbp+var_8]"], [32, "cdqe"], [33, "and eax, 7FFh"], [34, "mov [rbp+var_18], rax"], [35, "cmp [rbp+var_18], 7Fh"], [36, "jle loc_402ACD"], [37, "mov rax, [rbp+var_18]"], [38, "mov edx, eax"], [39, "mov rax, [rbp+var_28]"], [40, "mov [rax], edx"], [41, "mov eax, 2"], [42, "jmp loc_402AEC"], [43, "mov rax, [rbp+var_30]"], [44, "add rax, 2"], [45, "movzx eax, byte ptr [rax]"], [46, "xor eax, 0FFFFFF80h"], [47, "movzx eax, al"], [48, "mov [rbp+var_C], eax"], [49, "mov eax, [rbp+var_C]"], [50, "and eax, 0C0h"], [51, "test eax, eax"], [52, "jnz loc_402AD0"], [53, "cmp [rbp+var_4], 0EFh"], [54, "jg short loc_402A61"], [55, "mov eax, [rbp+var_4]"], [56, "shl eax, 6"], [57, "or eax, [rbp+var_8]"], [58, "shl eax, 6"], [59, "or eax, [rbp+var_C]"], [60, "cdqe"], [61, "and eax, 0FFFFh"], [62, "mov [rbp+var_18], rax"], [63, "cmp [rbp+var_18], 7FFh"], [64, "jle loc_402AD3"], [65, "mov rax, [rbp+var_18]"], [66, "mov edx, eax"], [67, "mov rax, [rbp+var_28]"], [68, "mov [rax], edx"], [69, "mov eax, 3"], [70, "jmp loc_402AEC"], [71, "mov rax, [rbp+var_30]"], [72, "add rax, 3"], [73, "movzx eax, byte ptr [rax]"], [74, "xor eax, 0FFFFFF80h"], [75, "movzx eax, al"], [76, "mov [rbp+var_10], eax"], [77, "mov eax, [rbp+var_10]"], [78, "and eax, 0C0h"], [79, "test eax, eax"], [80, "jnz short loc_402AD6"], [81, "cmp [rbp+var_4], 0F7h"], [82, "jg short loc_402AD9"], [83, "mov eax, [rbp+var_4]"], [84, "shl eax, 6"], [85, "or eax, [rbp+var_8]"], [86, "shl eax, 6"], [87, "or eax, [rbp+var_C]"], [88, "shl eax, 6"], [89, "or eax, [rbp+var_10]"], [90, "cdqe"], [91, "and eax, 1FFFFFh"], [92, "mov [rbp+var_18], rax"], [93, "cmp [rbp+var_18], 0FFFFh"], [94, "jle short loc_402ADC"], [95, "mov rax, [rbp+var_18]"], [96, "mov edx, eax"], [97, "mov rax, [rbp+var_28]"], [98, "mov [rax], edx"], [99, "mov eax, 4"], [100, "jmp short loc_402AEC"], [101, "nop"], [102, "jmp short loc_402ADD"], [103, "nop"], [104, "jmp short loc_402ADD"], [105, "nop"], [106, "jmp short loc_402ADD"], [107, "nop"], [108, "jmp short loc_402ADD"], [109, "nop"], [110, "jmp short loc_402ADD"], [111, "nop"], [112, "jmp short loc_402ADD"], [113, "nop"], [114, "jmp short loc_402ADD"], [115, "nop"], [116, "mov rax, [rbp+var_28]"], [117, "mov dword ptr [rax], 0FFFDh"], [118, "mov eax, 1"], [119, "pop rbp"], [120, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 7], [11, 2], [12, 10], [12, 11], [15, 3], [16, 15], [17, 16], [18, 17], [19, 18], [20, 19], [21, 20], [22, 21], [23, 22], [24, 23], [25, 7], [26, 25], [27, 7], [28, 27], [29, 7], [30, 29], [31, 30], [31, 20], [33, 31], [34, 33], [35, 34], [36, 35], [37, 34], [38, 37], [39, 2], [40, 38], [40, 39], [43, 3], [44, 43], [45, 44], [46, 45], [47, 46], [48, 47], [49, 48], [50, 49], [51, 50], [52, 51], [53, 7], [54, 53], [55, 7], [56, 55], [57, 20], [57, 56], [58, 57], [59, 48], [59, 58], [61, 59], [62, 61], [63, 62], [64, 63], [65, 62], [66, 65], [67, 2], [68, 66], [68, 67], [71, 3], [72, 71], [73, 72], [74, 73], [75, 74], [76, 75], [77, 76], [78, 77], [79, 78], [80, 79], [81, 7], [82, 81], [83, 7], [84, 83], [85, 20], [85, 84], [86, 85], [87, 48], [87, 86], [88, 87], [89, 88], [89, 76], [91, 89], [92, 91], [93, 92], [94, 93], [95, 92], [96, 95], [97, 2], [98, 96], [98, 97], [116, 2], [117, 116], [119, 0], [120, 99], [120, 69], [120, 41], [120, 13], [120, 118]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ef95e6adb037ed43878e32f954e5d65764d8b5a494e8ee54ce7c17db9e878531_ef95e6adb037ed43878e32f954e5d65764d8b5a494e8ee54ce7c17db9e878531.jsonl.gz", "strip_func_name": "sub_402955", "query": "\n\n\n__int64 __fastcall sub_402955(_DWORD *a1, unsigned __int8 *a2)\n{\nint v3; // [rsp+20h] [rbp-10h]\nint v4; // [rsp+24h] [rbp-Ch]\nint v5; // [rsp+28h] [rbp-8h]\nunsigned int v6; // [rsp+2Ch] [rbp-4h]\n\nv6 = *a2;\nif ( v6 <= 0x7F )\n{\n*a1 = v6;\nreturn 1LL;\n}\nv5 = a2[1] ^ 0x80;\nif ( (v5 & 0xC0) == 0 )\n{\nif ( *a2 > 0xDFu )\n{\nv4 = a2[2] ^ 0x80;\nif ( (v4 & 0xC0) == 0 )\n{\nif ( *a2 > 0xEFu )\n{\nv3 = a2[3] ^ 0x80;\nif ( (v3 & 0xC0) == 0 && *a2 <= 0xF7u && ((v3 | ((v4 | ((v5 | (v6 << 6)) << 6)) << 6)) & 0x1FFFFF) > 0xFFFFuLL )\n{\n*a1 = (v3 | ((v4 | ((v5 | (v6 << 6)) << 6)) << 6)) & 0x1FFFFF;\nreturn 4LL;\n}\n}\nelse if ( (unsigned __int16)(v4 | (((unsigned __int16)v5 | (unsigned __int16)((_WORD)v6 << 6)) << 6)) > 0x7FFuLL )\n{\n*a1 = (unsigned __int16)(v4 | (((unsigned __int16)v5 | (unsigned __int16)((_WORD)v6 << 6)) << 6));\nreturn 3LL;\n}\n}\n}\nelse if ( *a2 > 0xBFu && (((unsigned __int16)v5 | (unsigned __int16)((_WORD)v6 << 6)) & 0x7FFu) > 0x7FuLL )\n{\n*a1 = ((unsigned __int16)v5 | (unsigned __int16)((_WORD)v6 << 6)) & 0x7FF;\nreturn 2LL;\n}\n}\n*a1 = 65533;\nreturn 1LL;\n}\n\n\n\nQ:[a1,a2,v3,v4,v5,v6,sub_402955,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'rune', 'a2': 'str', 'v3': 'c3', 'v4': 'c2', 'v5': 'c1', 'v6': 'c', 'sub_402955': 'chartorune'}"}
O65SetOption
a6aee47a146ecb6264c05e00af83683924cb04b59bab699d104180ceca7d7279
mupfdev
SNESoIP
NA
void O65SetOption (O65Desc* D, unsigned Type, const void* Data, unsigned DataLen) /* Set an o65 header option */ { /* Create a new option structure */ O65Option* O = NewO65Option (Type, Data, DataLen); /* Insert it into the linked list */ O->Next = D->Options; D->Options = O; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4079D6", "function_addr": 4225494, "binary_name": "a6aee47a146ecb6264c05e00af83683924cb04b59bab699d104180ceca7d7279.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_20], ecx"], [7, "mov edx, [rbp+var_20]"], [8, "mov rcx, [rbp+var_28]"], [9, "mov eax, [rbp+var_1C]"], [10, "mov rsi, rcx"], [11, "mov edi, eax"], [12, "call sub_406975"], [13, "mov [rbp+var_8], rax"], [14, "mov rax, [rbp+var_18]"], [15, "mov rdx, [rax+50h]"], [16, "mov rax, [rbp+var_8]"], [17, "mov [rax], rdx"], [18, "mov rax, [rbp+var_18]"], [19, "mov rdx, [rbp+var_8]"], [20, "mov [rax+50h], rdx"], [21, "nop"], [22, "leave"], [23, "retn"]], "data_dep": [[7, 6], [8, 5], [9, 4], [10, 8], [11, 9], [13, 12], [14, 3], [15, 14], [16, 13], [17, 16], [17, 15], [18, 3], [19, 13], [20, 19], [20, 18], [23, 18]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a6aee47a146ecb6264c05e00af83683924cb04b59bab699d104180ceca7d7279_a6aee47a146ecb6264c05e00af83683924cb04b59bab699d104180ceca7d7279.jsonl.gz", "strip_func_name": "sub_4079D6", "query": "\n\n\n__int64 __fastcall sub_4079D6(__int64 a1, char a2, const void *a3, unsigned int a4)\n{\n__int64 result; // rax\n_QWORD *v5; // [rsp+28h] [rbp-8h]\n\nv5 = (_QWORD *)sub_406975(a2, a3, a4);\n*v5 = *(_QWORD *)(a1 + 80);\nresult = a1;\n*(_QWORD *)(a1 + 80) = v5;\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v5,sub_4079D6,sub_406975,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'Data', 'a4': 'DataLen', 'a1': 'D', 'a2': 'Type', 'v5': 'O', 'sub_4079D6': 'O65SetOption', 'sub_406975': 'NewO65Option'}"}
usage
5716db58deb8a3a09c9b3a17eae1299b78090006751b7c8ab3bb451ca3e84a5f
iustin
mt-st
NA
static char usage(int retval) { fprintf(stderr, "Usage: stinit [-h] [-v] [--version] [-f dbname] [-p] [-r] " "[drivename_or_number ...]\n"); exit(retval); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404041", "function_addr": 4210753, "binary_name": "5716db58deb8a3a09c9b3a17eae1299b78090006751b7c8ab3bb451ca3e84a5f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+status], edi"], [4, "mov rax, cs:stderr"], [5, "mov rcx, rax"], [6, "mov edx, 54h "], [7, "mov esi, 1"], [8, "mov edi, offset aUsageStinitHVV"], [9, "call _fwrite"], [10, "mov eax, [rbp+status]"], [11, "mov edi, eax"], [12, "call _exit"]], "data_dep": [[5, 4], [10, 3], [11, 10]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/5716db58deb8a3a09c9b3a17eae1299b78090006751b7c8ab3bb451ca3e84a5f_5716db58deb8a3a09c9b3a17eae1299b78090006751b7c8ab3bb451ca3e84a5f.jsonl.gz", "strip_func_name": "sub_404041", "query": "\n\n\nvoid __fastcall __noreturn sub_404041(int a1)\n{\nfwrite(\"Usage: stinit [-h] [-v] [--version] [-f dbname] [-p] [-r] [drivename_or_number ...]\\n\", 1uLL, 0x54uLL, stderr);\nexit(a1);\n}\n\n\n\nQ:[a1,sub_404041,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'retval', 'sub_404041': 'usage'}"}
testGreaterThanHEX8
1d8f333cb2e743261244339627bd849e6bf0936130aacc0a97f0f21ae4bf040b
aws
amazon-freertos
NA
void testGreaterThanHEX8(void) { UNITY_UINT8 v0, v1; UNITY_UINT8 *p0, *p1; v0 = 0x00; v1 = 0xFF; p0 = &v0; p1 = &v1; TEST_ASSERT_GREATER_THAN_HEX8(v0, v1); TEST_ASSERT_GREATER_THAN_HEX8(*p0, v1); TEST_ASSERT_GREATER_THAN_HEX8(v0, *p1); TEST_ASSERT_GREATER_THAN_HEX8(*p0, *p1); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_420472", "function_addr": 4326514, "binary_name": "1d8f333cb2e743261244339627bd849e6bf0936130aacc0a97f0f21ae4bf040b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov rax, cs:qword_47B3A0"], [4, "add rax, 1"], [5, "mov cs:qword_47B3A0, rax"], [6, "mov [rbp+var_11], 0"], [7, "mov [rbp+var_12], 0FFh"], [8, "lea rax, [rbp+var_11]"], [9, "mov [rbp+var_8], rax"], [10, "lea rax, [rbp+var_12]"], [11, "mov [rbp+var_10], rax"], [12, "movzx eax, [rbp+var_12]"], [13, "movzx esi, al"], [14, "movzx eax, [rbp+var_11]"], [15, "movzx eax, al"], [16, "mov r9d, 41h "], [17, "mov r8d, 0CA6h"], [18, "mov ecx, 0"], [19, "mov edx, 2"], [20, "mov rdi, rax"], [21, "call sub_403011"], [22, "mov rax, cs:qword_47B3A8"], [23, "add rax, 1"], [24, "mov cs:qword_47B3A8, rax"], [25, "movzx eax, [rbp+var_12]"], [26, "movzx esi, al"], [27, "mov rax, [rbp+var_8]"], [28, "movzx eax, byte ptr [rax]"], [29, "movzx eax, al"], [30, "mov r9d, 41h "], [31, "mov r8d, 0CA7h"], [32, "mov ecx, 0"], [33, "mov edx, 2"], [34, "mov rdi, rax"], [35, "call sub_403011"], [36, "mov rax, cs:qword_47B3B0"], [37, "add rax, 1"], [38, "mov cs:qword_47B3B0, rax"], [39, "mov rax, [rbp+var_10]"], [40, "movzx eax, byte ptr [rax]"], [41, "movzx esi, al"], [42, "movzx eax, [rbp+var_11]"], [43, "movzx eax, al"], [44, "mov r9d, 41h "], [45, "mov r8d, 0CA8h"], [46, "mov ecx, 0"], [47, "mov edx, 2"], [48, "mov rdi, rax"], [49, "call sub_403011"], [50, "mov rax, cs:qword_47B3B8"], [51, "add rax, 1"], [52, "mov cs:qword_47B3B8, rax"], [53, "mov rax, [rbp+var_10]"], [54, "movzx eax, byte ptr [rax]"], [55, "movzx esi, al"], [56, "mov rax, [rbp+var_8]"], [57, "movzx eax, byte ptr [rax]"], [58, "movzx eax, al"], [59, "mov r9d, 41h "], [60, "mov r8d, 0CA9h"], [61, "mov ecx, 0"], [62, "mov edx, 2"], [63, "mov rdi, rax"], [64, "call sub_403011"], [65, "mov rax, cs:qword_47B3C0"], [66, "add rax, 1"], [67, "mov cs:qword_47B3C0, rax"], [68, "nop"], [69, "leave"], [70, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 6], [8, 4], [9, 8], [10, 8], [10, 7], [11, 10], [12, 7], [13, 12], [14, 6], [15, 14], [20, 15], [23, 22], [24, 23], [25, 7], [26, 25], [27, 9], [28, 27], [29, 28], [34, 29], [37, 36], [38, 37], [39, 11], [40, 39], [41, 40], [42, 6], [43, 42], [48, 43], [51, 50], [52, 51], [53, 11], [54, 53], [55, 54], [56, 9], [57, 56], [58, 57], [63, 58], [66, 65], [67, 66], [70, 66]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1d8f333cb2e743261244339627bd849e6bf0936130aacc0a97f0f21ae4bf040b_1d8f333cb2e743261244339627bd849e6bf0936130aacc0a97f0f21ae4bf040b.jsonl.gz", "strip_func_name": "sub_420472", "query": "\n\n\n__int64 sub_420472()\n{\nunsigned __int8 v1; // [rsp+Eh] [rbp-12h] BYREF\nunsigned __int8 v2; // [rsp+Fh] [rbp-11h] BYREF\nunsigned __int8 *v3; // [rsp+10h] [rbp-10h]\nunsigned __int8 *v4; // [rsp+18h] [rbp-8h]\n\n++qword_47B3A0;\nv2 = 0;\nv1 = -1;\nv4 = &v2;\nv3 = &v1;\nsub_403011(0LL, 255LL, 2, 0LL, 3238LL, 65);\n++qword_47B3A8;\nsub_403011(*v4, v1, 2, 0LL, 3239LL, 65);\n++qword_47B3B0;\nsub_403011(v2, *v3, 2, 0LL, 3240LL, 65);\n++qword_47B3B8;\nsub_403011(*v4, *v3, 2, 0LL, 3241LL, 65);\nreturn ++qword_47B3C0;\n}\n\n\n\nQ:[v3,v4,sub_420472,sub_403011,]\nAssistant: ", "hints": "[]", "response": "{'v3': 'p1', 'v4': 'p0', 'sub_420472': 'testGreaterThanHEX8', 'sub_403011': 'UnityAssertGreaterOrLessOrEqualNumber'}"}
ED_ClearEdict
cb8af7a7e3261899ff1bd20757abe385c637729e6fbb348546cb9471c7076016
sezero
uhexen2
NA
void ED_ClearEdict (edict_t *e) { memset (&e->v, 0, progs->entityfields * 4); #ifndef H2W memset (&e->baseline, 0, sizeof(e->baseline)); #endif e->free = false; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41C083", "function_addr": 4309123, "binary_name": "cb8af7a7e3261899ff1bd20757abe385c637729e6fbb348546cb9471c7076016.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 18h"], [1, "mov [rsp+18h+var_10], rdi"], [2, "mov rax, cs:qword_5C4F60"], [3, "mov eax, [rax+38h]"], [4, "shl eax, 2"], [5, "cdqe"], [6, "mov rdx, [rsp+18h+var_10]"], [7, "lea rcx, [rdx+0A8h]"], [8, "mov rdx, rax"], [9, "mov esi, 0"], [10, "mov rdi, rcx"], [11, "call _memset"], [12, "mov rax, [rsp+18h+var_10]"], [13, "mov dword ptr [rax], 0"], [14, "nop"], [15, "add rsp, 18h"], [16, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 1], [7, 6], [8, 4], [10, 7], [12, 1], [13, 12], [15, 0], [16, 12]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/cb8af7a7e3261899ff1bd20757abe385c637729e6fbb348546cb9471c7076016_cb8af7a7e3261899ff1bd20757abe385c637729e6fbb348546cb9471c7076016.jsonl.gz", "strip_func_name": "sub_41C083", "query": "\n\n\n_DWORD *__fastcall sub_41C083(_DWORD *a1)\n{\n_DWORD *result; // rax\n\nmemset(a1 + 42, 0, 4 * *(_DWORD *)(qword_5C4F60 + 56));\nresult = a1;\n*a1 = 0;\nreturn result;\n}\n\n\n\nQ:[a1,sub_41C083,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'e', 'sub_41C083': 'ED_ClearEdict'}"}
wlantest_process_prism
7876e4085e3f05c2871fec0d64f4ee6217ffb0986990fc0134d102ed22a0eaa1
sonic-net
sonic-buildimage
NA
void wlantest_process_prism(struct wlantest *wt, const u8 *data, size_t len) { int fcs = 0; const u8 *frame, *fcspos; size_t frame_len; u32 hdrlen; wpa_hexdump(MSG_EXCESSIVE, "Process data", data, len); if (len < 8) return; hdrlen = WPA_GET_LE32(data + 4); if (len < hdrlen) { wpa_printf(MSG_INFO, "Too short frame to include prism " "header"); return; } frame = data + hdrlen; frame_len = len - hdrlen; fcs = 1; if (fcs && frame_len >= 4) { frame_len -= 4; fcspos = frame + frame_len; if (check_fcs(frame, frame_len, fcspos) < 0) { add_note(wt, MSG_EXCESSIVE, "Drop RX frame with " "invalid FCS"); wt->fcs_error++; return; } } rx_frame(wt, frame, frame_len); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_416721", "function_addr": 4286241, "binary_name": "7876e4085e3f05c2871fec0d64f4ee6217ffb0986990fc0134d102ed22a0eaa1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_C], 0"], [7, "mov rdx, [rbp+var_38]"], [8, "mov rax, [rbp+var_30]"], [9, "mov rcx, rdx"], [10, "mov rdx, rax"], [11, "mov esi, offset aProcessData"], [12, "mov edi, 0"], [13, "call sub_43BBF5"], [14, "cmp [rbp+var_38], 7"], [15, "jbe loc_416845"], [16, "mov rax, [rbp+var_30]"], [17, "add rax, 4"], [18, "mov rdi, rax"], [19, "call sub_415853"], [20, "mov [rbp+var_10], eax"], [21, "mov eax, [rbp+var_10]"], [22, "cmp [rbp+var_38], rax"], [23, "jnb short loc_416799"], [24, "mov esi, offset aTooShortFrameT"], [25, "mov edi, 3"], [26, "mov eax, 0"], [27, "call sub_43B8F7"], [28, "jmp locret_416846"], [29, "mov edx, [rbp+var_10]"], [30, "mov rax, [rbp+var_30]"], [31, "add rax, rdx"], [32, "mov [rbp+var_18], rax"], [33, "mov edx, [rbp+var_10]"], [34, "mov rax, [rbp+var_38]"], [35, "sub rax, rdx"], [36, "mov [rbp+var_8], rax"], [37, "mov [rbp+var_C], 1"], [38, "cmp [rbp+var_C], 0"], [39, "jz short loc_41682C"], [40, "cmp [rbp+var_8], 3"], [41, "jbe short loc_41682C"], [42, "sub [rbp+var_8], 4"], [43, "mov rdx, [rbp+var_18]"], [44, "mov rax, [rbp+var_8]"], [45, "add rax, rdx"], [46, "mov [rbp+var_20], rax"], [47, "mov rdx, [rbp+var_20]"], [48, "mov rcx, [rbp+var_8]"], [49, "mov rax, [rbp+var_18]"], [50, "mov rsi, rcx"], [51, "mov rdi, rax"], [52, "call sub_4163BD"], [53, "test eax, eax"], [54, "jns short loc_41682C"], [55, "mov rax, [rbp+var_28]"], [56, "mov edx, offset aDropRxFrameWit_1"], [57, "mov esi, 0"], [58, "mov rdi, rax"], [59, "mov eax, 0"], [60, "call sub_413719"], [61, "mov rax, [rbp+var_28]"], [62, "mov eax, [rax+0B4h]"], [63, "lea edx, [rax+1]"], [64, "mov rax, [rbp+var_28]"], [65, "mov [rax+0B4h], edx"], [66, "jmp short locret_416846"], [67, "mov rdx, [rbp+var_8]"], [68, "mov rcx, [rbp+var_18]"], [69, "mov rax, [rbp+var_28]"], [70, "mov rsi, rcx"], [71, "mov rdi, rax"], [72, "call sub_4160FF"], [73, "jmp short locret_416846"], [74, "nop"], [75, "leave"], [76, "retn"]], "data_dep": [[7, 5], [8, 4], [9, 7], [10, 8], [14, 5], [15, 14], [16, 4], [17, 16], [18, 17], [20, 19], [21, 20], [22, 5], [22, 21], [23, 22], [29, 20], [30, 4], [31, 29], [31, 30], [32, 31], [33, 20], [34, 5], [35, 33], [35, 34], [36, 35], [38, 37], [39, 38], [40, 36], [41, 40], [42, 36], [43, 32], [44, 42], [45, 43], [45, 44], [46, 45], [47, 46], [48, 42], [49, 32], [50, 48], [51, 49], [53, 52], [54, 53], [55, 3], [58, 55], [61, 3], [62, 61], [63, 62], [63, 56], [64, 3], [65, 64], [65, 63], [67, 36], [67, 42], [68, 32], [69, 3], [70, 68], [71, 69], [76, 64], [76, 27], [76, 72], [76, 13]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/7876e4085e3f05c2871fec0d64f4ee6217ffb0986990fc0134d102ed22a0eaa1_7876e4085e3f05c2871fec0d64f4ee6217ffb0986990fc0134d102ed22a0eaa1.jsonl.gz", "strip_func_name": "sub_416721", "query": "\n\n\n__int64 __fastcall sub_416721(__int64 a1, __int64 a2, unsigned __int64 a3)\n{\n__int64 result; // rax\nint v4; // edx\nint v5; // ecx\nint v6; // er8\nint v7; // er9\n__int64 v8; // rcx\n__int64 v9; // r8\n__int64 v10; // r9\nunsigned __int16 *v12; // [rsp+28h] [rbp-18h]\nunsigned int v13; // [rsp+30h] [rbp-10h]\nunsigned __int64 v14; // [rsp+38h] [rbp-8h]\n\nresult = sub_43BBF5(0LL, \"Process data\", a2, a3);\nif ( a3 > 7 )\n{\nv13 = sub_415853((unsigned __int8 *)(a2 + 4));\nif ( a3 >= v13 )\n{\nv12 = (unsigned __int16 *)(v13 + a2);\nv14 = a3 - v13;\nif ( v14 <= 3 || (v14 -= 4LL, (int)sub_4163BD((__int64)v12, v14, (unsigned __int8 *)v12 + v14) >= 0) )\n{\nresult = sub_4160FF(a1, v12, v14);\n}\nelse\n{\nsub_413719(a1, 0, \"Drop RX frame with invalid FCS\", v8, v9, v10);\nresult = a1;\n++*(_DWORD *)(a1 + 180);\n}\n}\nelse\n{\nresult = sub_43B8F7(3, (unsigned int)\"Too short frame to include prism header\", v4, v5, v6, v7);\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v4,v12,v13,v14,sub_416721,sub_43BBF5,sub_415853,sub_4163BD,sub_4160FF,sub_413719,sub_43B8F7,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'len', 'a1': 'wt', 'a2': 'data', 'v4': 'len', 'v12': 'frame', 'v13': 'hdrlen', 'v14': 'frame_len', 'sub_416721': 'wlantest_process_prism', 'sub_43BBF5': 'wpa_hexdump', 'sub_415853': 'WPA_GET_LE32_0', 'sub_4163BD': 'check_fcs', 'sub_4160FF': 'rx_frame', 'sub_413719': 'add_note', 'sub_43B8F7': 'wpa_printf'}"}
jas_image_setbbox
f4745e82b1d0cff651d46375754e6291357312b85b3ec537e20de9075c6972a9
hagish
love-native-android
NA
static void jas_image_setbbox(jas_image_t *image) { jas_image_cmpt_t *cmpt; int cmptno; int_fast32_t x; int_fast32_t y; if (image->numcmpts_ > 0) { /* Determine the bounding box for all of the components on the reference grid (i.e., the image area) */ cmpt = image->cmpts_[0]; image->tlx_ = cmpt->tlx_; image->tly_ = cmpt->tly_; image->brx_ = cmpt->tlx_ + cmpt->hstep_ * (cmpt->width_ - 1) + 1; image->bry_ = cmpt->tly_ + cmpt->vstep_ * (cmpt->height_ - 1) + 1; for (cmptno = 1; cmptno < image->numcmpts_; ++cmptno) { cmpt = image->cmpts_[cmptno]; if (image->tlx_ > cmpt->tlx_) { image->tlx_ = cmpt->tlx_; } if (image->tly_ > cmpt->tly_) { image->tly_ = cmpt->tly_; } x = cmpt->tlx_ + cmpt->hstep_ * (cmpt->width_ - 1) + 1; if (image->brx_ < x) { image->brx_ = x; } y = cmpt->tly_ + cmpt->vstep_ * (cmpt->height_ - 1) + 1; if (image->bry_ < y) { image->bry_ = y; } } } else { image->tlx_ = 0; image->tly_ = 0; image->brx_ = 0; image->bry_ = 0; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405215", "function_addr": 4215317, "binary_name": "f4745e82b1d0cff651d46375754e6291357312b85b3ec537e20de9075c6972a9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_28], rdi"], [3, "mov rax, [rbp+var_28]"], [4, "mov eax, [rax+20h]"], [5, "test eax, eax"], [6, "jle loc_4053C2"], [7, "mov rax, [rbp+var_28]"], [8, "mov rax, [rax+28h]"], [9, "mov rax, [rax]"], [10, "mov [rbp+var_10], rax"], [11, "mov rax, [rbp+var_10]"], [12, "mov rdx, [rax]"], [13, "mov rax, [rbp+var_28]"], [14, "mov [rax], rdx"], [15, "mov rax, [rbp+var_10]"], [16, "mov rdx, [rax+8]"], [17, "mov rax, [rbp+var_28]"], [18, "mov [rax+8], rdx"], [19, "mov rax, [rbp+var_10]"], [20, "mov rcx, [rax]"], [21, "mov rax, [rbp+var_10]"], [22, "mov rdx, [rax+10h]"], [23, "mov rax, [rbp+var_10]"], [24, "mov rax, [rax+20h]"], [25, "sub rax, 1"], [26, "imul rax, rdx"], [27, "add rax, rcx"], [28, "lea rdx, [rax+1]"], [29, "mov rax, [rbp+var_28]"], [30, "mov [rax+10h], rdx"], [31, "mov rax, [rbp+var_10]"], [32, "mov rcx, [rax+8]"], [33, "mov rax, [rbp+var_10]"], [34, "mov rdx, [rax+18h]"], [35, "mov rax, [rbp+var_10]"], [36, "mov rax, [rax+28h]"], [37, "sub rax, 1"], [38, "imul rax, rdx"], [39, "add rax, rcx"], [40, "lea rdx, [rax+1]"], [41, "mov rax, [rbp+var_28]"], [42, "mov [rax+18h], rdx"], [43, "mov [rbp+var_4], 1"], [44, "jmp loc_4053B0"], [45, "mov rax, [rbp+var_28]"], [46, "mov rdx, [rax+28h]"], [47, "mov eax, [rbp+var_4]"], [48, "cdqe"], [49, "shl rax, 3"], [50, "add rax, rdx"], [51, "mov rax, [rax]"], [52, "mov [rbp+var_10], rax"], [53, "mov rax, [rbp+var_28]"], [54, "mov rdx, [rax]"], [55, "mov rax, [rbp+var_10]"], [56, "mov rax, [rax]"], [57, "cmp rdx, rax"], [58, "jle short loc_4052FE"], [59, "mov rax, [rbp+var_10]"], [60, "mov rdx, [rax]"], [61, "mov rax, [rbp+var_28]"], [62, "mov [rax], rdx"], [63, "mov rax, [rbp+var_28]"], [64, "mov rdx, [rax+8]"], [65, "mov rax, [rbp+var_10]"], [66, "mov rax, [rax+8]"], [67, "cmp rdx, rax"], [68, "jle short loc_405323"], [69, "mov rax, [rbp+var_10]"], [70, "mov rdx, [rax+8]"], [71, "mov rax, [rbp+var_28]"], [72, "mov [rax+8], rdx"], [73, "mov rax, [rbp+var_10]"], [74, "mov rcx, [rax]"], [75, "mov rax, [rbp+var_10]"], [76, "mov rdx, [rax+10h]"], [77, "mov rax, [rbp+var_10]"], [78, "mov rax, [rax+20h]"], [79, "sub rax, 1"], [80, "imul rax, rdx"], [81, "add rax, rcx"], [82, "add rax, 1"], [83, "mov [rbp+var_18], rax"], [84, "mov rax, [rbp+var_28]"], [85, "mov rax, [rax+10h]"], [86, "cmp [rbp+var_18], rax"], [87, "jle short loc_405367"], [88, "mov rax, [rbp+var_28]"], [89, "mov rdx, [rbp+var_18]"], [90, "mov [rax+10h], rdx"], [91, "mov rax, [rbp+var_10]"], [92, "mov rcx, [rax+8]"], [93, "mov rax, [rbp+var_10]"], [94, "mov rdx, [rax+18h]"], [95, "mov rax, [rbp+var_10]"], [96, "mov rax, [rax+28h]"], [97, "sub rax, 1"], [98, "imul rax, rdx"], [99, "add rax, rcx"], [100, "add rax, 1"], [101, "mov [rbp+var_20], rax"], [102, "mov rax, [rbp+var_28]"], [103, "mov rax, [rax+18h]"], [104, "cmp [rbp+var_20], rax"], [105, "jle short loc_4053AC"], [106, "mov rax, [rbp+var_28]"], [107, "mov rdx, [rbp+var_20]"], [108, "mov [rax+18h], rdx"], [109, "add [rbp+var_4], 1"], [110, "mov rax, [rbp+var_28]"], [111, "mov eax, [rax+20h]"], [112, "cmp [rbp+var_4], eax"], [113, "jl loc_4052C2"], [114, "jmp short loc_4053F1"], [115, "mov rax, [rbp+var_28]"], [116, "mov qword ptr [rax], 0"], [117, "mov rax, [rbp+var_28]"], [118, "mov qword ptr [rax+8], 0"], [119, "mov rax, [rbp+var_28]"], [120, "mov qword ptr [rax+10h], 0"], [121, "mov rax, [rbp+var_28]"], [122, "mov qword ptr [rax+18h], 0"], [123, "nop"], [124, "pop rbp"], [125, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [7, 2], [8, 7], [9, 8], [10, 9], [11, 10], [12, 11], [13, 2], [14, 13], [14, 12], [15, 10], [16, 15], [16, 14], [17, 2], [18, 17], [18, 16], [19, 10], [20, 19], [20, 14], [20, 18], [21, 10], [22, 21], [22, 18], [23, 10], [24, 23], [24, 18], [25, 24], [26, 25], [26, 22], [27, 26], [27, 20], [28, 18], [28, 27], [28, 22], [29, 2], [30, 29], [30, 28], [31, 10], [32, 30], [32, 18], [32, 31], [33, 10], [34, 30], [34, 33], [35, 10], [36, 35], [36, 30], [37, 36], [38, 34], [38, 37], [39, 32], [39, 38], [40, 34], [40, 30], [40, 39], [41, 2], [42, 41], [42, 40], [45, 2], [46, 45], [46, 42], [46, 72], [46, 90], [46, 108], [46, 30], [46, 14], [46, 62], [46, 18], [47, 43], [47, 109], [49, 47], [50, 49], [50, 46], [51, 62], [51, 18], [51, 50], [51, 72], [51, 42], [51, 90], [51, 108], [51, 30], [51, 14], [52, 51], [53, 2], [54, 42], [54, 72], [54, 90], [54, 108], [54, 30], [54, 14], [54, 53], [54, 62], [54, 18], [55, 52], [56, 30], [56, 14], [56, 62], [56, 55], [56, 18], [56, 42], [56, 72], [56, 90], [56, 108], [57, 54], [57, 56], [58, 57], [59, 52], [60, 108], [60, 30], [60, 14], [60, 62], [60, 18], [60, 59], [60, 72], [60, 42], [60, 90], [61, 2], [62, 60], [62, 61], [63, 2], [64, 14], [64, 62], [64, 18], [64, 63], [64, 72], [64, 42], [64, 90], [64, 108], [64, 30], [65, 52], [66, 14], [66, 62], [66, 18], [66, 42], [66, 72], [66, 90], [66, 108], [66, 65], [66, 30], [67, 64], [67, 66], [68, 67], [69, 52], [70, 18], [70, 42], [70, 72], [70, 90], [70, 108], [70, 30], [70, 69], [70, 14], [70, 62], [71, 2], [72, 70], [72, 71], [73, 52], [74, 73], [74, 18], [74, 72], [74, 42], [74, 90], [74, 108], [74, 30], [74, 14], [74, 62], [75, 52], [76, 72], [76, 42], [76, 90], [76, 108], [76, 30], [76, 14], [76, 62], [76, 18], [76, 75], [77, 52], [78, 77], [78, 72], [78, 42], [78, 90], [78, 108], [78, 30], [78, 14], [78, 62], [78, 18], [79, 78], [80, 76], [80, 79], [81, 80], [81, 74], [82, 81], [83, 82], [84, 2], [85, 18], [85, 84], [85, 72], [85, 42], [85, 90], [85, 108], [85, 30], [85, 14], [85, 62], [86, 83], [86, 85], [87, 86], [88, 2], [89, 83], [90, 88], [90, 89], [91, 52], [92, 42], [92, 72], [92, 90], [92, 108], [92, 30], [92, 14], [92, 62], [92, 18], [92, 91], [93, 52], [94, 30], [94, 14], [94, 62], [94, 18], [94, 72], [94, 93], [94, 42], [94, 90], [94, 108], [95, 52], [96, 95], [96, 42], [96, 90], [96, 108], [96, 30], [96, 14], [96, 62], [96, 18], [96, 72], [97, 96], [98, 94], [98, 97], [99, 92], [99, 98], [100, 99], [101, 100], [102, 2], [103, 72], [103, 102], [103, 90], [103, 42], [103, 108], [103, 62], [103, 30], [103, 14], [103, 18], [104, 101], [104, 103], [105, 104], [106, 2], [107, 101], [108, 107], [108, 106], [109, 43], [109, 109], [110, 2], [111, 110], [111, 30], [111, 14], [111, 62], [111, 18], [111, 72], [111, 108], [111, 42], [111, 90], [112, 43], [112, 109], [112, 111], [113, 112], [115, 2], [116, 115], [117, 2], [118, 117], [119, 2], [120, 119], [121, 2], [122, 121], [124, 0], [125, 121], [125, 111]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f4745e82b1d0cff651d46375754e6291357312b85b3ec537e20de9075c6972a9_f4745e82b1d0cff651d46375754e6291357312b85b3ec537e20de9075c6972a9.jsonl.gz", "strip_func_name": "sub_405215", "query": "\n\n\n__int64 __fastcall sub_405215(__int64 a1)\n{\n__int64 result; // rax\n__int64 v2; // [rsp+8h] [rbp-20h]\n__int64 v3; // [rsp+10h] [rbp-18h]\n_QWORD *v4; // [rsp+18h] [rbp-10h]\n_QWORD *v5; // [rsp+18h] [rbp-10h]\nint i; // [rsp+24h] [rbp-4h]\n\nif ( *(int *)(a1 + 32) <= 0 )\n{\n*(_QWORD *)a1 = 0LL;\n*(_QWORD *)(a1 + 8) = 0LL;\n*(_QWORD *)(a1 + 16) = 0LL;\nresult = a1;\n*(_QWORD *)(a1 + 24) = 0LL;\n}\nelse\n{\nv4 = **(_QWORD ***)(a1 + 40);\n*(_QWORD *)a1 = *v4;\n*(_QWORD *)(a1 + 8) = v4[1];\n*(_QWORD *)(a1 + 16) = *v4 + v4[2] * (v4[4] - 1LL) + 1;\n*(_QWORD *)(a1 + 24) = v4[1] + v4[3] * (v4[5] - 1LL) + 1;\nfor ( i = 1; ; ++i )\n{\nresult = *(unsigned int *)(a1 + 32);\nif ( i >= (int)result )\nbreak;\nv5 = *(_QWORD **)(*(_QWORD *)(a1 + 40) + 8LL * i);\nif ( *(_QWORD *)a1 > *v5 )\n*(_QWORD *)a1 = *v5;\nif ( *(_QWORD *)(a1 + 8) > v5[1] )\n*(_QWORD *)(a1 + 8) = v5[1];\nv3 = *v5 + v5[2] * (v5[4] - 1LL) + 1;\nif ( v3 > *(_QWORD *)(a1 + 16) )\n*(_QWORD *)(a1 + 16) = v3;\nv2 = v5[1] + v5[3] * (v5[5] - 1LL) + 1;\nif ( v2 > *(_QWORD *)(a1 + 24) )\n*(_QWORD *)(a1 + 24) = v2;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,v4,i,sub_405215,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'image', 'v2': 'y', 'v3': 'x', 'v4': 'cmpta', 'i': 'cmptno', 'sub_405215': 'jas_image_setbbox'}"}
push
01c4719b08c6705264cd06a0ac6b80283c07d63987fc660b94b7d945bb8bff16
EtchedPixels
Centurion
NA
void push(uint16_t val) { uint16_t addr = regpair_read(S); addr -= 2; mmu_mem_write16(addr, val); regpair_write(S, addr); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4041FF", "function_addr": 4211199, "binary_name": "01c4719b08c6705264cd06a0ac6b80283c07d63987fc660b94b7d945bb8bff16.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov eax, edi"], [4, "mov [rbp+var_14], ax"], [5, "mov edi, 0Ah"], [6, "call sub_4040EE"], [7, "mov [rbp+var_2], ax"], [8, "sub [rbp+var_2], 2"], [9, "movzx edx, [rbp+var_14]"], [10, "movzx eax, [rbp+var_2]"], [11, "mov esi, edx"], [12, "mov edi, eax"], [13, "call sub_403F5C"], [14, "movzx eax, [rbp+var_2]"], [15, "mov esi, eax"], [16, "mov edi, 0Ah"], [17, "call sub_404174"], [18, "nop"], [19, "leave"], [20, "retn"]], "data_dep": [[4, 3], [7, 6], [8, 7], [9, 4], [10, 8], [11, 9], [12, 10], [14, 8], [15, 14], [20, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/01c4719b08c6705264cd06a0ac6b80283c07d63987fc660b94b7d945bb8bff16_01c4719b08c6705264cd06a0ac6b80283c07d63987fc660b94b7d945bb8bff16.jsonl.gz", "strip_func_name": "sub_4041FF", "query": "\n\n\nint __fastcall sub_4041FF(__int16 a1)\n{\n__int16 v2; // [rsp+1Eh] [rbp-2h]\n\nv2 = sub_4040EE(0xAu) - 2;\nsub_403F5C(v2, a1);\nreturn sub_404174(0xAu, v2);\n}\n\n\n\nQ:[a1,v2,sub_4041FF,sub_4040EE,sub_403F5C,sub_404174,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'val', 'v2': 'addr', 'sub_4041FF': 'push', 'sub_4040EE': 'regpair_read', 'sub_403F5C': 'mmu_mem_write16', 'sub_404174': 'regpair_write'}"}
log_xor
457d7c0994d10c0981b884143771fba31b3187896057c88f4a4508e4bb83606f
VBrazhnik
Corewar
NA
inline static void log_xor(uint32_t cursor_id, int32_t value_1, int32_t value_2, int32_t r_id) { ft_printf("P %4d | xor %d %d r%d\n", cursor_id, value_1, value_2, r_id); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404729", "function_addr": 4212521, "binary_name": "457d7c0994d10c0981b884143771fba31b3187896057c88f4a4508e4bb83606f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov [rbp+var_8], esi"], [5, "mov [rbp+var_C], edx"], [6, "mov [rbp+var_10], ecx"], [7, "mov esi, [rbp+var_10]"], [8, "mov ecx, [rbp+var_C]"], [9, "mov edx, [rbp+var_8]"], [10, "mov eax, [rbp+var_4]"], [11, "mov r8d, esi"], [12, "mov esi, eax"], [13, "mov edi, offset aP4dXorDDRD"], [14, "mov eax, 0"], [15, "call sub_406FE2"], [16, "nop"], [17, "leave"], [18, "retn"]], "data_dep": [[7, 6], [8, 5], [9, 4], [10, 3], [11, 7], [12, 10], [18, 15]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/457d7c0994d10c0981b884143771fba31b3187896057c88f4a4508e4bb83606f_457d7c0994d10c0981b884143771fba31b3187896057c88f4a4508e4bb83606f.jsonl.gz", "strip_func_name": "sub_404729", "query": "\n\n\n__int64 __fastcall sub_404729(int a1, int a2, int a3, int a4, __int64 a5, int a6)\n{\nreturn sub_406FE2((unsigned int)\"P %4d | xor %d %d r%d\\n\", a1, a2, a3, a4, a6);\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_404729,sub_406FE2,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'value_2', 'a4': 'r_id', 'a1': 'cursor_id', 'a2': 'value_1', 'sub_404729': 'log_xor', 'sub_406FE2': 'ft_printf'}"}
cstr_free
b0a9cd2f3e4fb25c6201aa09bcf5782ae37b5367e290f1eed7e0432fa3739c0f
C-Chads
tinycc
NA
ST_FUNC void cstr_free(CString *cstr) { tcc_free(cstr->data); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403226", "function_addr": 4207142, "binary_name": "b0a9cd2f3e4fb25c6201aa09bcf5782ae37b5367e290f1eed7e0432fa3739c0f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rax, [rax+8]"], [6, "mov rdi, rax"], [7, "call sub_43B2B1"], [8, "nop"], [9, "leave"], [10, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [10, 7]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b0a9cd2f3e4fb25c6201aa09bcf5782ae37b5367e290f1eed7e0432fa3739c0f_b0a9cd2f3e4fb25c6201aa09bcf5782ae37b5367e290f1eed7e0432fa3739c0f.jsonl.gz", "strip_func_name": "sub_403226", "query": "\n\n\n__int64 __fastcall sub_403226(__int64 a1)\n{\nreturn sub_43B2B1(*(_QWORD *)(a1 + 8));\n}\n\n\n\nQ:[a1,sub_403226,sub_43B2B1,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'cstr', 'sub_403226': 'cstr_free', 'sub_43B2B1': 'tcc_free_debug'}"}
xlosClose
616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602
dbetz
xlisp
NA
xlEXPORT int xlosClose(FILE *fp) { return fclose(fp); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414817", "function_addr": 4278295, "binary_name": "616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+stream], rdi"], [4, "mov rax, [rbp+stream]"], [5, "mov rdi, rax"], [6, "call _fclose"], [7, "leave"], [8, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 6]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602_616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602.jsonl.gz", "strip_func_name": "sub_414817", "query": "\n\n\nint __fastcall sub_414817(FILE *a1)\n{\nreturn fclose(a1);\n}\n\n\n\nQ:[a1,sub_414817,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fp', 'sub_414817': 'xlosClose'}"}
set_ext_copy
11d51f39d967e6c925cbbbf561559e32fec33ac3b7a84b8e1e75a62d16d81f0a
sniperHW
chuck
NA
int set_ext_copy(int *copy_type, const char *arg) { if (strcasecmp(arg, "none") == 0) *copy_type = EXT_COPY_NONE; else if (strcasecmp(arg, "copy") == 0) *copy_type = EXT_COPY_ADD; else if (strcasecmp(arg, "copyall") == 0) *copy_type = EXT_COPY_ALL; else return 0; return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41F3C3", "function_addr": 4322243, "binary_name": "11d51f39d967e6c925cbbbf561559e32fec33ac3b7a84b8e1e75a62d16d81f0a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+s1], rsi"], [5, "mov rax, [rbp+s1]"], [6, "mov esi, offset aNone"], [7, "mov rdi, rax"], [8, "call _strcasecmp"], [9, "test eax, eax"], [10, "jnz short loc_41F3F4"], [11, "mov rax, [rbp+var_8]"], [12, "mov dword ptr [rax], 0"], [13, "jmp short loc_41F43D"], [14, "mov rax, [rbp+s1]"], [15, "mov esi, offset aCopy"], [16, "mov rdi, rax"], [17, "call _strcasecmp"], [18, "test eax, eax"], [19, "jnz short loc_41F415"], [20, "mov rax, [rbp+var_8]"], [21, "mov dword ptr [rax], 1"], [22, "jmp short loc_41F43D"], [23, "mov rax, [rbp+s1]"], [24, "mov esi, offset aCopyall"], [25, "mov rdi, rax"], [26, "call _strcasecmp"], [27, "test eax, eax"], [28, "jnz short loc_41F436"], [29, "mov rax, [rbp+var_8]"], [30, "mov dword ptr [rax], 2"], [31, "jmp short loc_41F43D"], [32, "mov eax, 0"], [33, "jmp short locret_41F442"], [34, "mov eax, 1"], [35, "leave"], [36, "retn"]], "data_dep": [[5, 4], [7, 5], [9, 8], [10, 9], [11, 3], [12, 11], [14, 4], [16, 14], [18, 17], [19, 18], [20, 3], [21, 20], [23, 4], [25, 23], [27, 26], [28, 27], [29, 3], [30, 29], [36, 34], [36, 32]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/11d51f39d967e6c925cbbbf561559e32fec33ac3b7a84b8e1e75a62d16d81f0a_11d51f39d967e6c925cbbbf561559e32fec33ac3b7a84b8e1e75a62d16d81f0a.jsonl.gz", "strip_func_name": "sub_41F3C3", "query": "\n\n\n__int64 __fastcall sub_41F3C3(_DWORD *a1, const char *a2)\n{\nif ( !strcasecmp(a2, \"none\") )\n{\n*a1 = 0;\n}\nelse if ( !strcasecmp(a2, \"copy\") )\n{\n*a1 = 1;\n}\nelse\n{\nif ( strcasecmp(a2, \"copyall\") )\nreturn 0LL;\n*a1 = 2;\n}\nreturn 1LL;\n}\n\n\n\nQ:[a1,a2,sub_41F3C3,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'copy_type', 'a2': 'arg', 'sub_41F3C3': 'set_ext_copy'}"}
XXH_readBE64
865724ebdf8f31c695b0022cc64ebcc76b491dfcaf7d0e9f4ffca1890f30b8c6
facebook
zstd
NA
static U64 XXH_readBE64(const void* ptr) { return XXH_CPU_LITTLE_ENDIAN ? XXH_swap64(XXH_read64(ptr)) : XXH_read64(ptr); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403080", "function_addr": 4206720, "binary_name": "865724ebdf8f31c695b0022cc64ebcc76b491dfcaf7d0e9f4ffca1890f30b8c6.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 8"], [3, "mov [rbp+var_8], rdi"], [4, "mov eax, offset unk_4F1250"], [5, "movzx eax, byte ptr [rax]"], [6, "test al, al"], [7, "jz short loc_4030A9"], [8, "mov rax, [rbp+var_8]"], [9, "mov rdi, rax"], [10, "call sub_403031"], [11, "bswap rax"], [12, "jmp short locret_4030B5"], [13, "mov rax, [rbp+var_8]"], [14, "mov rdi, rax"], [15, "call sub_403031"], [16, "leave"], [17, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 3], [9, 8], [11, 10], [13, 3], [14, 13], [17, 15], [17, 11]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/865724ebdf8f31c695b0022cc64ebcc76b491dfcaf7d0e9f4ffca1890f30b8c6_865724ebdf8f31c695b0022cc64ebcc76b491dfcaf7d0e9f4ffca1890f30b8c6.jsonl.gz", "strip_func_name": "sub_403080", "query": "\n\n\n__int64 __fastcall sub_403080(__int64 a1)\n{\n__int64 result; // rax\n\nif ( unk_4F1250 )\nresult = _byteswap_uint64(sub_403031(a1));\nelse\nresult = sub_403031(a1);\nreturn result;\n}\n\n\n\nQ:[a1,sub_403080,sub_403031,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ptr', 'sub_403080': 'XXH_readBE64', 'sub_403031': 'XXH_read64'}"}
_drawing_write_a_av_lst
2e7195e6bc11902cb1147d429b22ff6f7655de6050b37429b5d7074aaa0727e8
jmcnamara
libxlsxwriter
NA
STATIC void _drawing_write_a_av_lst(lxw_drawing *self) { lxw_xml_empty_tag(self->file, "a:avLst", NULL); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43D40B", "function_addr": 4445195, "binary_name": "2e7195e6bc11902cb1147d429b22ff6f7655de6050b37429b5d7074aaa0727e8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rax, [rax]"], [6, "mov edx, 0"], [7, "mov esi, offset aAAvlst"], [8, "mov rdi, rax"], [9, "call sub_4227C2"], [10, "nop"], [11, "leave"], [12, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 5], [12, 9]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/2e7195e6bc11902cb1147d429b22ff6f7655de6050b37429b5d7074aaa0727e8_2e7195e6bc11902cb1147d429b22ff6f7655de6050b37429b5d7074aaa0727e8.jsonl.gz", "strip_func_name": "sub_43D40B", "query": "\n\n\nsize_t __fastcall sub_43D40B(FILE **a1)\n{\nreturn sub_4227C2(*a1, \"a:avLst\", 0LL);\n}\n\n\n\nQ:[a1,sub_43D40B,sub_4227C2,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'self', 'sub_43D40B': '_drawing_write_a_av_lst', 'sub_4227C2': 'lxw_xml_empty_tag'}"}
subb_a_imm
18ff9bd9c1637b628af63c86f48edfbee6b6b7371ac92f808a17f2cbb8eb4fe5
jarikomppa
emu8051
NA
static uint8_t subb_a_imm(struct em8051 *aCPU) { bool carry = CARRY; sub_solve_flags(aCPU, ACC, OPERAND1, carry); ACC -= OPERAND1 + carry; PC += 2; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406A99", "function_addr": 4221593, "binary_name": "18ff9bd9c1637b628af63c86f48edfbee6b6b7371ac92f808a17f2cbb8eb4fe5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 18h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "movzx eax, byte ptr [rax+0F8h]"], [6, "shr al, 7"], [7, "test al, al"], [8, "setnz al"], [9, "mov [rbp+var_1], al"], [10, "movzx ecx, [rbp+var_1]"], [11, "mov rax, [rbp+var_18]"], [12, "mov rdx, [rax]"], [13, "mov rax, [rbp+var_18]"], [14, "movzx eax, word ptr [rax+128h]"], [15, "movzx eax, ax"], [16, "lea esi, [rax+1]"], [17, "mov rax, [rbp+var_18]"], [18, "movzx eax, word ptr [rax+8]"], [19, "movzx eax, ax"], [20, "and eax, esi"], [21, "cdqe"], [22, "add rax, rdx"], [23, "movzx eax, byte ptr [rax]"], [24, "movzx edx, al"], [25, "mov rax, [rbp+var_18]"], [26, "movzx eax, byte ptr [rax+108h]"], [27, "movzx esi, al"], [28, "mov rax, [rbp+var_18]"], [29, "mov rdi, rax"], [30, "call sub_403E16"], [31, "mov rax, [rbp+var_18]"], [32, "movzx edx, byte ptr [rax+108h]"], [33, "mov rax, [rbp+var_18]"], [34, "mov rcx, [rax]"], [35, "mov rax, [rbp+var_18]"], [36, "movzx eax, word ptr [rax+128h]"], [37, "movzx eax, ax"], [38, "lea esi, [rax+1]"], [39, "mov rax, [rbp+var_18]"], [40, "movzx eax, word ptr [rax+8]"], [41, "movzx eax, ax"], [42, "and eax, esi"], [43, "cdqe"], [44, "add rax, rcx"], [45, "movzx ecx, byte ptr [rax]"], [46, "movzx eax, [rbp+var_1]"], [47, "add eax, ecx"], [48, "sub edx, eax"], [49, "mov rax, [rbp+var_18]"], [50, "mov [rax+108h], dl"], [51, "mov rax, [rbp+var_18]"], [52, "movzx eax, word ptr [rax+128h]"], [53, "lea edx, [rax+2]"], [54, "mov rax, [rbp+var_18]"], [55, "mov [rax+128h], dx"], [56, "mov eax, 0"], [57, "leave"], [58, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 3], [12, 11], [13, 3], [14, 13], [15, 14], [16, 15], [17, 3], [18, 17], [19, 18], [20, 16], [20, 19], [22, 20], [22, 12], [23, 22], [24, 23], [25, 3], [26, 25], [27, 26], [28, 3], [29, 28], [31, 3], [32, 31], [33, 3], [34, 33], [35, 3], [36, 35], [37, 36], [38, 37], [38, 27], [39, 3], [40, 39], [41, 40], [42, 38], [42, 41], [44, 42], [44, 34], [45, 44], [46, 9], [47, 46], [47, 45], [48, 32], [48, 47], [49, 3], [50, 49], [50, 48], [51, 3], [52, 51], [52, 50], [53, 50], [53, 52], [53, 48], [54, 3], [55, 53], [55, 54], [58, 56]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/18ff9bd9c1637b628af63c86f48edfbee6b6b7371ac92f808a17f2cbb8eb4fe5_18ff9bd9c1637b628af63c86f48edfbee6b6b7371ac92f808a17f2cbb8eb4fe5.jsonl.gz", "strip_func_name": "sub_406A99", "query": "\n\n\n__int64 __fastcall sub_406A99(__int64 a1)\n{\nbool v2; // [rsp+17h] [rbp-1h]\n\nv2 = *(_BYTE *)(a1 + 248) >> 7 != 0;\nsub_403E16(\na1,\n*(_BYTE *)(a1 + 264),\n*(_BYTE *)(*(_QWORD *)a1 + ((*(unsigned __int16 *)(a1 + 296) + 1) & (unsigned int)*(unsigned __int16 *)(a1 + 8))),\nv2);\n*(_BYTE *)(a1 + 264) -= *(_BYTE *)(*(_QWORD *)a1\n+ ((*(unsigned __int16 *)(a1 + 296) + 1) & (unsigned int)*(unsigned __int16 *)(a1 + 8)))\n+ v2;\n*(_WORD *)(a1 + 296) += 2;\nreturn 0LL;\n}\n\n\n\nQ:[a1,v2,sub_406A99,sub_403E16,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'aCPU', 'v2': 'carry', 'sub_406A99': 'subb_a_imm', 'sub_403E16': '_sub_solve_flags'}"}
errorMessage
6309c2d6f353fae93bbff1a903a1eee28249c58def610adc165c3fba87a119df
open-simh
simtools
NA
void errorMessage( EMSG_T *mesg, WORD32 col ) { char linecol[12]; if( pass == 2 ) { errors++; sprintf( linecol, "(%d:%d)", lineno, col + 1 ); fprintf( errorfile, "%s%-9s : error: %s at Loc = %5.5o\n", filename, linecol, mesg->file, clc ); saveError( mesg->list, col ); } error_in_line = TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40584E", "function_addr": 4216910, "binary_name": "6309c2d6f353fae93bbff1a903a1eee28249c58def610adc165c3fba87a119df.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov eax, cs:dword_416768"], [6, "cmp eax, 2"], [7, "jnz short loc_4058E6"], [8, "mov eax, cs:dword_416720"], [9, "add eax, 1"], [10, "mov cs:dword_416720, eax"], [11, "mov eax, [rbp+var_1C]"], [12, "lea ecx, [rax+1]"], [13, "mov edx, cs:dword_416560"], [14, "lea rax, [rbp+s]"], [15, "mov esi, offset aDD"], [16, "mov rdi, rax"], [17, "mov eax, 0"], [18, "call _sprintf"], [19, "mov esi, cs:dword_416718"], [20, "mov rax, [rbp+var_18]"], [21, "mov rcx, [rax+8]"], [22, "mov rax, cs:qword_411E28"], [23, "lea rdx, [rbp+s]"], [24, "mov r9d, esi"], [25, "mov r8, rcx"], [26, "mov rcx, rdx"], [27, "mov edx, offset byte_411EE0"], [28, "mov esi, offset aS9sErrorSAtLoc"], [29, "mov rdi, rax"], [30, "mov eax, 0"], [31, "call _fprintf"], [32, "mov rax, [rbp+var_18]"], [33, "mov rax, [rax]"], [34, "mov edx, [rbp+var_1C]"], [35, "mov esi, edx"], [36, "mov rdi, rax"], [37, "call sub_4058F0"], [38, "mov cs:byte_416724, 1"], [39, "nop"], [40, "leave"], [41, "retn"]], "data_dep": [[6, 5], [7, 6], [9, 8], [10, 9], [11, 4], [12, 11], [14, 11], [16, 14], [20, 3], [21, 20], [23, 13], [24, 19], [25, 21], [26, 23], [29, 22], [32, 3], [33, 32], [34, 4], [35, 34], [36, 33], [41, 5], [41, 37]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/6309c2d6f353fae93bbff1a903a1eee28249c58def610adc165c3fba87a119df_6309c2d6f353fae93bbff1a903a1eee28249c58def610adc165c3fba87a119df.jsonl.gz", "strip_func_name": "sub_40584E", "query": "\n\n\n__int64 __fastcall sub_40584E(__int64 a1, unsigned int a2)\n{\n__int64 result; // rax\nchar s[12]; // [rsp+14h] [rbp-Ch] BYREF\n\nresult = (unsigned int)dword_416768;\nif ( dword_416768 == 2 )\n{\n++dword_416720;\nsprintf(s, \"(%d:%d)\", (unsigned int)dword_416560, a2 + 1);\nfprintf(\nqword_411E28,\n\"%s%-9s : error: %s at Loc = %5.5o\\n\",\nbyte_411EE0,\ns,\n*(const char **)(a1 + 8),\n(unsigned int)dword_416718);\nresult = sub_4058F0(*(_QWORD *)a1, a2);\n}\nbyte_416724 = 1;\nreturn result;\n}\n\n\n\nQ:[a1,a2,s,sub_40584E,sub_4058F0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'mesg', 'a2': 'col', 's': 'linecol', 'sub_40584E': 'errorMessage', 'sub_4058F0': 'saveError'}"}
FindPendingData
d08e849fccddd177d1c140c7984670e0e0a17aec74dfd9249b5e78acd3cac90d
interkosmos
micropolis
NA
static int FindPendingData (fileDescCnt, fileDescList, fileDescSetPtr) int fileDescCnt; FILE **fileDescList; fd_set *fileDescSetPtr; { int idx, found = FALSE; FD_ZERO (fileDescSetPtr); #ifndef IS_LINUX for (idx = 0; idx < fileDescCnt; idx++) { if (READ_DATA_PENDING (fileDescList [idx])) { FD_SET (fileno (fileDescList [idx]), fileDescSetPtr); found = TRUE; } } #endif return found; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4ADDEA", "function_addr": 4906474, "binary_name": "d08e849fccddd177d1c140c7984670e0e0a17aec74dfd9249b5e78acd3cac90d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_14], edi"], [3, "mov [rbp+var_20], rsi"], [4, "mov [rbp+var_28], rdx"], [5, "mov [rbp+var_4], 0"], [6, "mov rdx, [rbp+var_28]"], [7, "mov eax, 0"], [8, "mov ecx, 10h"], [9, "mov rdi, rdx"], [10, "cld"], [11, "rep stosq"], [12, "mov eax, edi"], [13, "mov edx, ecx"], [14, "mov [rbp+var_8], edx"], [15, "mov [rbp+var_C], eax"], [16, "mov eax, [rbp+var_4]"], [17, "pop rbp"], [18, "retn"]], "data_dep": [[6, 4], [9, 6], [12, 9], [13, 8], [14, 13], [15, 12], [16, 5], [17, 0], [18, 16]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d08e849fccddd177d1c140c7984670e0e0a17aec74dfd9249b5e78acd3cac90d_d08e849fccddd177d1c140c7984670e0e0a17aec74dfd9249b5e78acd3cac90d.jsonl.gz", "strip_func_name": "sub_4ADDEA", "query": "\n\n\n__int64 __fastcall sub_4ADDEA(__int64 a1, __int64 a2, void *a3)\n{\nmemset(a3, 0, 0x80uLL);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,sub_4ADDEA,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'fileDescSetPtr', 'a1': 'fileDescCnt', 'a2': 'fileDescList', 'sub_4ADDEA': 'FindPendingData'}"}
mbedtls_mpi_swap
065ca9415a4dc9aec682871a535af2dee0f80c3adecda73ebf561b8301874f09
FreeRTOS
iot-reference-stm32u5
NA
void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ) { mbedtls_mpi T; MPI_VALIDATE( X != NULL ); MPI_VALIDATE( Y != NULL ); memcpy( &T, X, sizeof( mbedtls_mpi ) ); memcpy( X, Y, sizeof( mbedtls_mpi ) ); memcpy( Y, &T, sizeof( mbedtls_mpi ) ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41EAAB", "function_addr": 4319915, "binary_name": "065ca9415a4dc9aec682871a535af2dee0f80c3adecda73ebf561b8301874f09.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+src], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rcx, [rbp+src]"], [6, "lea rax, [rbp+dest]"], [7, "mov edx, 18h"], [8, "mov rsi, rcx"], [9, "mov rdi, rax"], [10, "call _memcpy"], [11, "mov rcx, [rbp+var_30]"], [12, "mov rax, [rbp+src]"], [13, "mov edx, 18h"], [14, "mov rsi, rcx"], [15, "mov rdi, rax"], [16, "call _memcpy"], [17, "lea rcx, [rbp+dest]"], [18, "mov rax, [rbp+var_30]"], [19, "mov edx, 18h"], [20, "mov rsi, rcx"], [21, "mov rdi, rax"], [22, "call _memcpy"], [23, "nop"], [24, "leave"], [25, "retn"]], "data_dep": [[5, 3], [8, 5], [9, 6], [11, 4], [12, 3], [14, 11], [15, 12], [17, 11], [18, 4], [20, 17], [21, 18], [25, 22]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/065ca9415a4dc9aec682871a535af2dee0f80c3adecda73ebf561b8301874f09_065ca9415a4dc9aec682871a535af2dee0f80c3adecda73ebf561b8301874f09.jsonl.gz", "strip_func_name": "sub_41EAAB", "query": "\n\n\nvoid *__fastcall sub_41EAAB(void *a1, void *a2)\n{\nchar dest[32]; // [rsp+10h] [rbp-20h] BYREF\n\nmemcpy(dest, a1, 0x18uLL);\nmemcpy(a1, a2, 0x18uLL);\nreturn memcpy(a2, dest, 0x18uLL);\n}\n\n\n\nQ:[a1,a2,dest,sub_41EAAB,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'X', 'a2': 'Y', 'dest': 'T', 'sub_41EAAB': 'mbedtls_mpi_swap'}"}
could_be_interest
b966b6a0f98e2bb041caa7d7d60fcbc0a72a6bdc6378cc14f28644e8e2e82b2a
shellphish
driller-afl
NA
static u8 could_be_interest(u32 old_val, u32 new_val, u8 blen, u8 check_le) { u32 i, j; if (old_val == new_val) return 1; /* See if one-byte insertions from interesting_8 over old_val could produce new_val. */ for (i = 0; i < blen; i++) { for (j = 0; j < sizeof(interesting_8); j++) { u32 tval = (old_val & ~(0xff << (i * 8))) | (((u8)interesting_8[j]) << (i * 8)); if (new_val == tval) return 1; } } /* Bail out unless we're also asked to examine two-byte LE insertions as a preparation for BE attempts. */ if (blen == 2 && !check_le) return 0; /* See if two-byte insertions over old_val could give us new_val. */ for (i = 0; i < blen - 1; i++) { for (j = 0; j < sizeof(interesting_16) / 2; j++) { u32 tval = (old_val & ~(0xffff << (i * 8))) | (((u16)interesting_16[j]) << (i * 8)); if (new_val == tval) return 1; /* Continue here only if blen > 2. */ if (blen > 2) { tval = (old_val & ~(0xffff << (i * 8))) | (SWAP16(interesting_16[j]) << (i * 8)); if (new_val == tval) return 1; } } } if (blen == 4 && check_le) { /* See if four-byte insertions could produce the same result (LE only). */ for (j = 0; j < sizeof(interesting_32) / 4; j++) if (new_val == (u32)interesting_32[j]) return 1; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40FC61", "function_addr": 4258913, "binary_name": "b966b6a0f98e2bb041caa7d7d60fcbc0a72a6bdc6378cc14f28644e8e2e82b2a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_24], edi"], [3, "mov [rbp+var_28], esi"], [4, "mov eax, ecx"], [5, "mov [rbp+var_2C], dl"], [6, "mov [rbp+var_30], al"], [7, "mov eax, [rbp+var_24]"], [8, "cmp eax, [rbp+var_28]"], [9, "jnz short loc_40FC85"], [10, "mov eax, 1"], [11, "jmp loc_40FE2C"], [12, "mov [rbp+var_4], 0"], [13, "jmp short loc_40FCED"], [14, "mov [rbp+var_8], 0"], [15, "jmp short loc_40FCE3"], [16, "mov eax, [rbp+var_4]"], [17, "shl eax, 3"], [18, "mov edx, 0FFh"], [19, "mov ecx, eax"], [20, "shl edx, cl"], [21, "mov eax, edx"], [22, "not eax"], [23, "and eax, [rbp+var_24]"], [24, "mov esi, eax"], [25, "mov eax, [rbp+var_8]"], [26, "movzx eax, byte_425380[rax]"], [27, "movzx edx, al"], [28, "mov eax, [rbp+var_4]"], [29, "shl eax, 3"], [30, "mov ecx, eax"], [31, "shl edx, cl"], [32, "mov eax, edx"], [33, "or eax, esi"], [34, "mov [rbp+var_14], eax"], [35, "mov eax, [rbp+var_28]"], [36, "cmp eax, [rbp+var_14]"], [37, "jnz short loc_40FCDF"], [38, "mov eax, 1"], [39, "jmp loc_40FE2C"], [40, "add [rbp+var_8], 1"], [41, "cmp [rbp+var_8], 8"], [42, "jbe short loc_40FC97"], [43, "add [rbp+var_4], 1"], [44, "movzx eax, [rbp+var_2C]"], [45, "cmp [rbp+var_4], eax"], [46, "jb short loc_40FC8E"], [47, "cmp [rbp+var_2C], 2"], [48, "jnz short loc_40FD0C"], [49, "cmp [rbp+var_30], 0"], [50, "jnz short loc_40FD0C"], [51, "mov eax, 0"], [52, "jmp loc_40FE2C"], [53, "mov [rbp+var_4], 0"], [54, "jmp loc_40FDE2"], [55, "mov [rbp+var_8], 0"], [56, "jmp loc_40FDD4"], [57, "mov eax, [rbp+var_4]"], [58, "shl eax, 3"], [59, "mov edx, 0FFFFh"], [60, "mov ecx, eax"], [61, "shl edx, cl"], [62, "mov eax, edx"], [63, "not eax"], [64, "and eax, [rbp+var_24]"], [65, "mov esi, eax"], [66, "mov eax, [rbp+var_8]"], [67, "movzx eax, word_4253A0[rax+rax]"], [68, "movzx edx, ax"], [69, "mov eax, [rbp+var_4]"], [70, "shl eax, 3"], [71, "mov ecx, eax"], [72, "shl edx, cl"], [73, "mov eax, edx"], [74, "or eax, esi"], [75, "mov [rbp+var_C], eax"], [76, "mov eax, [rbp+var_28]"], [77, "cmp eax, [rbp+var_C]"], [78, "jnz short loc_40FD6D"], [79, "mov eax, 1"], [80, "jmp loc_40FE2C"], [81, "cmp [rbp+var_2C], 2"], [82, "jbe short loc_40FDD0"], [83, "mov eax, [rbp+var_4]"], [84, "shl eax, 3"], [85, "mov edx, 0FFFFh"], [86, "mov ecx, eax"], [87, "shl edx, cl"], [88, "mov eax, edx"], [89, "not eax"], [90, "and eax, [rbp+var_24]"], [91, "mov esi, eax"], [92, "mov eax, [rbp+var_8]"], [93, "movzx eax, word_4253A0[rax+rax]"], [94, "mov [rbp+var_E], ax"], [95, "movzx eax, [rbp+var_E]"], [96, "shl eax, 8"], [97, "mov edx, eax"], [98, "movzx eax, [rbp+var_E]"], [99, "shr ax, 8"], [100, "or eax, edx"], [101, "movzx edx, ax"], [102, "mov eax, [rbp+var_4]"], [103, "shl eax, 3"], [104, "mov ecx, eax"], [105, "shl edx, cl"], [106, "mov eax, edx"], [107, "or eax, esi"], [108, "mov [rbp+var_C], eax"], [109, "mov eax, [rbp+var_28]"], [110, "cmp eax, [rbp+var_C]"], [111, "jnz short loc_40FDD0"], [112, "mov eax, 1"], [113, "jmp short loc_40FE2C"], [114, "add [rbp+var_8], 1"], [115, "cmp [rbp+var_8], 12h"], [116, "jbe loc_40FD24"], [117, "add [rbp+var_4], 1"], [118, "movzx eax, [rbp+var_2C]"], [119, "sub eax, 1"], [120, "cmp [rbp+var_4], eax"], [121, "jb loc_40FD18"], [122, "cmp [rbp+var_2C], 4"], [123, "jnz short loc_40FE27"], [124, "cmp [rbp+var_30], 0"], [125, "jz short loc_40FE27"], [126, "mov [rbp+var_8], 0"], [127, "jmp short loc_40FE21"], [128, "mov eax, [rbp+var_8]"], [129, "mov eax, dword_4253E0[rax*4]"], [130, "cmp [rbp+var_28], eax"], [131, "jnz short loc_40FE1D"], [132, "mov eax, 1"], [133, "jmp short loc_40FE2C"], [134, "add [rbp+var_8], 1"], [135, "cmp [rbp+var_8], 1Ah"], [136, "jbe short loc_40FE07"], [137, "mov eax, 0"], [138, "pop rbp"], [139, "retn"]], "data_dep": [[6, 4], [7, 2], [8, 3], [8, 7], [9, 8], [16, 12], [16, 43], [17, 16], [19, 17], [20, 19], [20, 18], [21, 20], [22, 21], [23, 22], [23, 2], [24, 23], [25, 40], [25, 14], [27, 26], [28, 12], [28, 43], [29, 28], [30, 29], [31, 30], [31, 27], [32, 31], [33, 24], [33, 32], [34, 33], [35, 3], [36, 34], [36, 35], [37, 36], [40, 40], [40, 14], [41, 40], [41, 14], [42, 41], [43, 12], [43, 43], [44, 5], [45, 12], [45, 43], [45, 44], [46, 45], [47, 5], [48, 47], [49, 6], [50, 49], [57, 117], [57, 53], [58, 57], [60, 58], [61, 60], [61, 59], [62, 61], [63, 62], [64, 2], [64, 63], [65, 64], [66, 55], [66, 114], [68, 67], [69, 53], [69, 117], [70, 69], [71, 70], [72, 68], [72, 71], [73, 72], [74, 73], [74, 65], [75, 74], [76, 3], [77, 76], [77, 75], [78, 77], [81, 5], [82, 81], [83, 53], [83, 117], [84, 83], [86, 84], [87, 86], [87, 85], [88, 87], [89, 88], [90, 89], [90, 2], [91, 90], [92, 55], [92, 114], [94, 93], [95, 94], [96, 95], [97, 96], [98, 94], [99, 98], [100, 97], [100, 99], [101, 100], [102, 53], [102, 117], [103, 102], [104, 103], [105, 104], [105, 101], [106, 105], [107, 106], [107, 91], [108, 107], [109, 3], [110, 109], [110, 108], [111, 110], [114, 55], [114, 114], [115, 55], [115, 114], [116, 115], [117, 53], [117, 117], [118, 5], [119, 118], [120, 53], [120, 117], [120, 119], [121, 120], [122, 5], [123, 122], [124, 6], [125, 124], [128, 126], [128, 134], [130, 3], [130, 129], [131, 130], [134, 126], [134, 134], [135, 126], [135, 134], [136, 135], [138, 0], [139, 112], [139, 137], [139, 132], [139, 79], [139, 38], [139, 10], [139, 51]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b966b6a0f98e2bb041caa7d7d60fcbc0a72a6bdc6378cc14f28644e8e2e82b2a_b966b6a0f98e2bb041caa7d7d60fcbc0a72a6bdc6378cc14f28644e8e2e82b2a.jsonl.gz", "strip_func_name": "sub_40FC61", "query": "\n\n\n__int64 __fastcall sub_40FC61(int a1, int a2, unsigned __int8 a3, char a4)\n{\nunsigned int j; // [rsp+28h] [rbp-8h]\nunsigned int l; // [rsp+28h] [rbp-8h]\nunsigned int m; // [rsp+28h] [rbp-8h]\nunsigned int i; // [rsp+2Ch] [rbp-4h]\nunsigned int k; // [rsp+2Ch] [rbp-4h]\n\nif ( a1 == a2 )\nreturn 1LL;\nfor ( i = 0; i < a3; ++i )\n{\nfor ( j = 0; j <= 8; ++j )\n{\nif ( a2 == (a1 & ~(255 << (8 * i)) | ((unsigned __int8)byte_425380[j] << (8 * i))) )\nreturn 1LL;\n}\n}\nif ( a3 == 2 && !a4 )\nreturn 0LL;\nfor ( k = 0; k < (unsigned int)a3 - 1; ++k )\n{\nfor ( l = 0; l <= 0x12; ++l )\n{\nif ( a2 == (a1 & ~(0xFFFF << (8 * k)) | ((unsigned __int16)word_4253A0[l] << (8 * k))) )\nreturn 1LL;\nif ( a3 > 2u\n&& a2 == (a1 & ~(0xFFFF << (8 * k)) | ((unsigned __int16)((word_4253A0[l] << 8) | HIBYTE(word_4253A0[l])) << (8 * k))) )\n{\nreturn 1LL;\n}\n}\n}\nif ( a3 == 4 && a4 )\n{\nfor ( m = 0; m <= 0x1A; ++m )\n{\nif ( a2 == dword_4253E0[m] )\nreturn 1LL;\n}\n}\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,j,i,sub_40FC61,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'blen', 'a4': 'check_le', 'a1': 'old_val', 'a2': 'new_val', 'j': 'ja', 'i': 'ia', 'sub_40FC61': 'could_be_interest'}"}
getcstdin
283ed54b1f66acccce94b9477f53c760e922840320b559e1a065b55929915f6d
lattera
bhyve
NA
int getcstdin() { register FILE *in; register int c; in = stdin; if (feof(in) && ttystdin()) clearerr(in); c = getc(in); if (c == EOF) { testIerror(in); if (feof(in) && ttystdin()) afputc('\n',stderr); } return c; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406E92", "function_addr": 4222610, "binary_name": "283ed54b1f66acccce94b9477f53c760e922840320b559e1a065b55929915f6d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "mov rbx, cs:stdin"], [5, "mov rdi, rbx"], [6, "call _feof"], [7, "test eax, eax"], [8, "jz short loc_406EBD"], [9, "call sub_406E58"], [10, "test eax, eax"], [11, "jz short loc_406EBD"], [12, "mov rdi, rbx"], [13, "call _clearerr"], [14, "mov rdi, rbx"], [15, "call _getc"], [16, "mov r12d, eax"], [17, "cmp r12d, 0FFFFFFFFh"], [18, "jnz short loc_406EFF"], [19, "mov rdi, rbx"], [20, "call sub_4098B8"], [21, "mov rdi, rbx"], [22, "call _feof"], [23, "test eax, eax"], [24, "jz short loc_406EFF"], [25, "call sub_406E58"], [26, "test eax, eax"], [27, "jz short loc_406EFF"], [28, "mov rax, cs:stderr"], [29, "mov rsi, rax"], [30, "mov edi, 0Ah"], [31, "call sub_40A463"], [32, "mov eax, r12d"], [33, "pop rbx"], [34, "pop r12"], [35, "pop rbp"], [36, "retn"]], "data_dep": [[5, 4], [7, 6], [8, 7], [10, 9], [11, 10], [12, 4], [14, 4], [16, 15], [17, 16], [18, 17], [19, 4], [21, 4], [23, 22], [24, 23], [26, 25], [27, 26], [29, 28], [32, 16], [33, 3], [34, 2], [35, 0], [36, 32]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/283ed54b1f66acccce94b9477f53c760e922840320b559e1a065b55929915f6d_283ed54b1f66acccce94b9477f53c760e922840320b559e1a065b55929915f6d.jsonl.gz", "strip_func_name": "sub_406E92", "query": "\n\n\n__int64 sub_406E92()\n{\nFILE *v0; // rbx\nunsigned int v1; // er12\n\nv0 = stdin;\nif ( feof(stdin) && (unsigned int)sub_406E58() )\nclearerr(v0);\nv1 = getc(v0);\nif ( v1 == -1 )\n{\nsub_4098B8(v0);\nif ( feof(v0) )\n{\nif ( (unsigned int)sub_406E58() )\nsub_40A463(10LL, stderr);\n}\n}\nreturn v1;\n}\n\n\n\nQ:[sub_406E92,sub_406E58,sub_4098B8,sub_40A463,]\nAssistant: ", "hints": "[]", "response": "{'sub_406E92': 'getcstdin', 'sub_406E58': 'ttystdin', 'sub_4098B8': 'testIerror', 'sub_40A463': 'afputc'}"}
diff_populate_gitlink
8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590
msysgit
msysgit
NA
static int diff_populate_gitlink(struct diff_filespec *s, int size_only) { int len; char *data = xmalloc(100), *dirty = ""; /* Are we looking at the work tree? */ if (s->dirty_submodule) dirty = "-dirty"; len = snprintf(data, 100, "Subproject commit %s%s\n", sha1_to_hex(s->sha1), dirty); s->data = data; s->size = len; s->should_free = 1; if (size_only) { s->data = NULL; free(data); } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_471370", "function_addr": 4658032, "binary_name": "8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_2C], esi"], [5, "mov edi, 64h "], [6, "call sub_44BAB3"], [7, "mov [rbp+s], rax"], [8, "mov [rbp+var_8], offset unk_4D3223"], [9, "mov rax, [rbp+var_28]"], [10, "movzx eax, byte ptr [rax+42h]"], [11, "and eax, 18h"], [12, "test al, al"], [13, "jz short loc_4713AC"], [14, "mov [rbp+var_8], offset aDirty"], [15, "mov rax, [rbp+var_28]"], [16, "mov rdi, rax"], [17, "call sub_4122CD"], [18, "mov rdx, rax"], [19, "mov rcx, [rbp+var_8]"], [20, "mov rax, [rbp+s]"], [21, "mov r8, rcx"], [22, "mov rcx, rdx"], [23, "mov edx, offset aSubprojectComm"], [24, "mov esi, 64h "], [25, "mov rdi, rax"], [26, "mov eax, 0"], [27, "call _snprintf"], [28, "mov [rbp+var_14], eax"], [29, "mov rax, [rbp+var_28]"], [30, "mov rdx, [rbp+s]"], [31, "mov [rax+20h], rdx"], [32, "mov eax, [rbp+var_14]"], [33, "movsxd rdx, eax"], [34, "mov rax, [rbp+var_28]"], [35, "mov [rax+30h], rdx"], [36, "mov rax, [rbp+var_28]"], [37, "movzx edx, byte ptr [rax+42h]"], [38, "or edx, 2"], [39, "mov [rax+42h], dl"], [40, "cmp [rbp+var_2C], 0"], [41, "jz short loc_471429"], [42, "mov rax, [rbp+var_28]"], [43, "mov qword ptr [rax+20h], 0"], [44, "mov rax, [rbp+s]"], [45, "mov rdi, rax"], [46, "call _free"], [47, "mov eax, 0"], [48, "leave"], [49, "retn"]], "data_dep": [[7, 6], [9, 3], [10, 9], [11, 10], [12, 11], [13, 12], [15, 3], [16, 15], [18, 17], [19, 8], [19, 14], [20, 7], [21, 19], [22, 18], [25, 20], [28, 27], [29, 3], [30, 7], [31, 29], [31, 30], [32, 28], [33, 32], [34, 3], [35, 33], [35, 34], [36, 3], [37, 36], [37, 35], [38, 37], [39, 36], [39, 38], [40, 4], [41, 40], [42, 3], [43, 42], [44, 7], [45, 44], [49, 47]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590_8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.jsonl.gz", "strip_func_name": "sub_471370", "query": "\n\n\n__int64 __fastcall sub_471370(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nconst char *v6; // rax\nint v8; // [rsp+1Ch] [rbp-14h]\nchar *s; // [rsp+20h] [rbp-10h]\nconst char *v10; // [rsp+28h] [rbp-8h]\n\ns = (char *)sub_44BAB3(0x64uLL, a2, a3, a4, a5, a6);\nv10 = (const char *)&unk_4D3223;\nif ( (*(_BYTE *)(a1 + 66) & 0x18) != 0 )\nv10 = \"-dirty\";\nv6 = (const char *)sub_4122CD((unsigned __int8 *)a1);\nv8 = snprintf(s, 0x64uLL, \"Subproject commit %s%s\\n\", v6, v10);\n*(_QWORD *)(a1 + 32) = s;\n*(_QWORD *)(a1 + 48) = v8;\n*(_BYTE *)(a1 + 66) |= 2u;\nif ( (_DWORD)a2 )\n{\n*(_QWORD *)(a1 + 32) = 0LL;\nfree(s);\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,v8,s,v10,sub_471370,sub_44BAB3,sub_4122CD,]\nAssistant: ", "hints": "[]", "response": "{'a1': 's', 'a2': 'size_only', 'v8': 'len', 's': 'data', 'v10': 'dirty', 'sub_471370': 'diff_populate_gitlink', 'sub_44BAB3': 'xmalloc', 'sub_4122CD': 'sha1_to_hex'}"}