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
wav_writer_close
266b6bceb9d3f5222a007f960f0190a531bfea0cb420d862c9ab53bf7bbb75b7
Kevincoooool
esp32s3_openmv_lvgl
NA
int wav_writer_close(void){ if (!wav_writer_state.wav_file) return 0; rewind(wav_writer_state.wav_file); write_wav_header(wav_writer_state.wav_file, wav_writer_state.total_num_samples, wav_writer_state.num_channels, wav_writer_state.sampling_frequency); fclose(wav_writer_state.wav_file); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406B34", "function_addr": 4221748, "binary_name": "266b6bceb9d3f5222a007f960f0190a531bfea0cb420d862c9ab53bf7bbb75b7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov rax, cs:stream"], [3, "test rax, rax"], [4, "jnz short loc_406B4B"], [5, "mov eax, 0"], [6, "jmp short loc_406B8F"], [7, "mov rax, cs:stream"], [8, "mov rdi, rax"], [9, "call _rewind"], [10, "mov ecx, cs:dword_45CD00"], [11, "mov edx, cs:dword_45CCFC"], [12, "mov esi, cs:dword_45CCF8"], [13, "mov rax, cs:stream"], [14, "mov rdi, rax"], [15, "call sub_406939"], [16, "mov rax, cs:stream"], [17, "mov rdi, rax"], [18, "call _fclose"], [19, "mov eax, 0"], [20, "pop rbp"], [21, "retn"]], "data_dep": [[3, 2], [4, 3], [8, 7], [14, 13], [17, 16], [20, 0], [21, 19], [21, 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/266b6bceb9d3f5222a007f960f0190a531bfea0cb420d862c9ab53bf7bbb75b7_266b6bceb9d3f5222a007f960f0190a531bfea0cb420d862c9ab53bf7bbb75b7.jsonl.gz", "strip_func_name": "sub_406B34", "query": "\n\n\n__int64 sub_406B34()\n{\nif ( stream )\n{\nrewind(stream);\nsub_406939(stream, dword_45CCF8, dword_45CCFC, dword_45CD00);\nfclose(stream);\n}\nreturn 0LL;\n}\n\n\n\nQ:[sub_406B34,sub_406939,]\nAssistant: ", "hints": "[]", "response": "{'sub_406B34': 'wav_writer_close', 'sub_406939': 'write_wav_header'}"}
init_mproxy6
5f9b053b7e422d0e94b449091d390bbd7d28b6fd7b7d051677900f4acecf6798
haibbo
improxy
NA
STATUS init_mproxy6(mcast_proxy *p_mp) { struct icmp6_filter filt; int on; static struct { struct ip6_hbh hdr; struct ip6_opt_router rt; unsigned char padding[2]; } hopts = { .hdr = {0, 0}, .rt = {IP6OPT_ROUTER_ALERT, 2, {0, IP6_ALERT_MLD}}, .padding = {0x1, 0} /* PadN option, RFC 2460, 4.2 */ }; #ifdef ENABLE_IMP_MLD if (p_mp->mld_version != IM_DISABLE) { struct in6_addr all_ipv6_router; imp_interface* p_if = NULL; p_mp->mld_socket = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); if(p_mp->mld_socket == -1) { IMP_LOG_ERROR("can't create mld socket\n"); return STATUS_NOK; } /* filter all non-MLD ICMP messages */ ICMP6_FILTER_SETBLOCKALL(&filt); ICMP6_FILTER_SETPASS(MLD_LISTENER_REPORT, &filt); ICMP6_FILTER_SETPASS(MLD_LISTENER_REDUCTION, &filt); ICMP6_FILTER_SETPASS(MLD_V2_LISTENER_REPORT, &filt); if (setsockopt(p_mp->mld_socket, IPPROTO_ICMPV6, ICMP6_FILTER, &filt, sizeof(filt)) < 0) IMP_LOG_ERROR("ICMP6_FILTER: %s\n", strerror(errno)); /* specify to tell receiving interface */ on = 1; if (setsockopt(p_mp->mld_socket, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)) < 0) IMP_LOG_ERROR("IPV6_RECVPKTINFO: %s\n", strerror(errno)); on = 1; if (setsockopt(p_mp->mld_socket, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &on, sizeof(on)) < 0) IMP_LOG_ERROR("IPV6_MULTICAST_HOPS: %s\n", strerror(errno)); on = 0; if (setsockopt(p_mp->mld_socket, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &on, sizeof(on)) < 0) IMP_LOG_ERROR("IPV6_MULTICAST_LOOP: %s\n", strerror(errno)); on = 1; if (setsockopt(p_mp->mld_socket, IPPROTO_IPV6, IPV6_RECVHOPOPTS, &on, sizeof(on)) < 0) IMP_LOG_ERROR("IPV6_RECVHOPOPTS: %s\n", strerror(errno)); /* RTR-ALERT option */ if (setsockopt(p_mp->mld_socket, IPPROTO_IPV6, IPV6_HOPOPTS, &hopts, sizeof(hopts))) { IMP_LOG_ERROR("IPV6_HOPOPTS: %s\n", strerror(errno)); } if (k_start6_mproxy(p_mp->mld_socket) < 0 ) return STATUS_NOK; IMP_LOG_DEBUG("p_mp->mld_socket = %d\n", p_mp->mld_socket); p_mp->mld_udp_socket = socket(AF_INET6, SOCK_DGRAM, 0); if(p_mp->mld_udp_socket == -1) { IMP_LOG_ERROR("can't create mld udp socket\n"); return STATUS_NOK; } for(p_if = imp_interface_first(); p_if; p_if = LIST_NEXT(p_if, link)){ if(p_if->if_addr.ss.ss_family != AF_INET6 || p_if->type != INTERFACE_DOWNSTREAM) continue; if(inet_pton(AF_INET6, "FF02::2", &all_ipv6_router) == 1) { pi_addr pir; imp_build_piaddr(AF_INET6, &all_ipv6_router, &pir); if(k_mcast_join(&pir, p_if->if_name) < 0) IMP_LOG_DEBUG("k_mcast_join: %s\n", strerror(errno)); } if(inet_pton(AF_INET6, "FF02::16", &all_ipv6_router) == 1) { pi_addr pir; imp_build_piaddr(AF_INET6, &all_ipv6_router, &pir); if(k_mcast_join(&pir, p_if->if_name) < 0) IMP_LOG_DEBUG("k_mcast_join: %s\n", strerror(errno)); } } } #endif return STATUS_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4045E6", "function_addr": 4212198, "binary_name": "5f9b053b7e422d0e94b449091d390bbd7d28b6fd7b7d051677900f4acecf6798.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0E0h"], [3, "mov [rbp+var_D8], rdi"], [4, "mov rax, [rbp+var_D8]"], [5, "mov eax, [rax+4]"], [6, "test eax, eax"], [7, "jz loc_404B00"], [8, "mov [rbp+var_8], 0"], [9, "mov edx, 3Ah "], [10, "mov esi, 3"], [11, "mov edi, 0Ah"], [12, "call _socket"], [13, "mov rdx, [rbp+var_D8]"], [14, "mov [rdx+0Ch], eax"], [15, "mov rax, [rbp+var_D8]"], [16, "mov eax, [rax+0Ch]"], [17, "cmp eax, 0FFFFFFFFh"], [18, "jnz short loc_40466D"], [19, "mov r8d, offset aCanTCreateMldS"], [20, "mov ecx, 1A9h"], [21, "mov edx, offset aInitMproxy6"], [22, "mov esi, offset aError_0"], [23, "mov edi, 1"], [24, "mov eax, 0"], [25, "call sub_40B6CE"], [26, "mov eax, 0FFFFFFFFh"], [27, "jmp locret_404B05"], [28, "lea rax, [rbp+s]"], [29, "mov edx, 20h "], [30, "mov esi, 0FFh"], [31, "mov rdi, rax"], [32, "call _memset"], [33, "mov eax, [rbp+var_20]"], [34, "and eax, 0FFFFFFF7h"], [35, "mov [rbp+var_20], eax"], [36, "mov eax, [rbp+var_20]"], [37, "and eax, 0FFFFFFEFh"], [38, "mov [rbp+var_20], eax"], [39, "mov eax, [rbp+var_20]"], [40, "and ah, 7Fh"], [41, "mov [rbp+var_20], eax"], [42, "mov rax, [rbp+var_D8]"], [43, "mov eax, [rax+0Ch]"], [44, "lea rdx, [rbp+s]"], [45, "mov r8d, 20h "], [46, "mov rcx, rdx"], [47, "mov edx, 1"], [48, "mov esi, 3Ah "], [49, "mov edi, eax"], [50, "call _setsockopt"], [51, "test eax, eax"], [52, "jns short loc_4046FF"], [53, "call ___errno_location"], [54, "mov eax, [rax]"], [55, "mov edi, eax"], [56, "call _strerror"], [57, "mov r9, rax"], [58, "mov r8d, offset aIcmp6FilterS"], [59, "mov ecx, 1B5h"], [60, "mov edx, offset aInitMproxy6"], [61, "mov esi, offset aError_0"], [62, "mov edi, 1"], [63, "mov eax, 0"], [64, "call sub_40B6CE"], [65, "mov [rbp+optval], 1"], [66, "mov rax, [rbp+var_D8]"], [67, "mov eax, [rax+0Ch]"], [68, "lea rdx, [rbp+optval]"], [69, "mov r8d, 4"], [70, "mov rcx, rdx"], [71, "mov edx, 31h "], [72, "mov esi, 29h "], [73, "mov edi, eax"], [74, "call _setsockopt"], [75, "test eax, eax"], [76, "jns short loc_404767"], [77, "call ___errno_location"], [78, "mov eax, [rax]"], [79, "mov edi, eax"], [80, "call _strerror"], [81, "mov r9, rax"], [82, "mov r8d, offset aIpv6Recvpktinf"], [83, "mov ecx, 1BBh"], [84, "mov edx, offset aInitMproxy6"], [85, "mov esi, offset aError_0"], [86, "mov edi, 1"], [87, "mov eax, 0"], [88, "call sub_40B6CE"], [89, "mov [rbp+optval], 1"], [90, "mov rax, [rbp+var_D8]"], [91, "mov eax, [rax+0Ch]"], [92, "lea rdx, [rbp+optval]"], [93, "mov r8d, 4"], [94, "mov rcx, rdx"], [95, "mov edx, 12h"], [96, "mov esi, 29h "], [97, "mov edi, eax"], [98, "call _setsockopt"], [99, "test eax, eax"], [100, "jns short loc_4047CF"], [101, "call ___errno_location"], [102, "mov eax, [rax]"], [103, "mov edi, eax"], [104, "call _strerror"], [105, "mov r9, rax"], [106, "mov r8d, offset aIpv6MulticastH"], [107, "mov ecx, 1C0h"], [108, "mov edx, offset aInitMproxy6"], [109, "mov esi, offset aError_0"], [110, "mov edi, 1"], [111, "mov eax, 0"], [112, "call sub_40B6CE"], [113, "mov [rbp+optval], 0"], [114, "mov rax, [rbp+var_D8]"], [115, "mov eax, [rax+0Ch]"], [116, "lea rdx, [rbp+optval]"], [117, "mov r8d, 4"], [118, "mov rcx, rdx"], [119, "mov edx, 13h"], [120, "mov esi, 29h "], [121, "mov edi, eax"], [122, "call _setsockopt"], [123, "test eax, eax"], [124, "jns short loc_404837"], [125, "call ___errno_location"], [126, "mov eax, [rax]"], [127, "mov edi, eax"], [128, "call _strerror"], [129, "mov r9, rax"], [130, "mov r8d, offset aIpv6MulticastL"], [131, "mov ecx, 1C5h"], [132, "mov edx, offset aInitMproxy6"], [133, "mov esi, offset aError_0"], [134, "mov edi, 1"], [135, "mov eax, 0"], [136, "call sub_40B6CE"], [137, "mov [rbp+optval], 1"], [138, "mov rax, [rbp+var_D8]"], [139, "mov eax, [rax+0Ch]"], [140, "lea rdx, [rbp+optval]"], [141, "mov r8d, 4"], [142, "mov rcx, rdx"], [143, "mov edx, 35h "], [144, "mov esi, 29h "], [145, "mov edi, eax"], [146, "call _setsockopt"], [147, "test eax, eax"], [148, "jns short loc_40489F"], [149, "call ___errno_location"], [150, "mov eax, [rax]"], [151, "mov edi, eax"], [152, "call _strerror"], [153, "mov r9, rax"], [154, "mov r8d, offset aIpv6Recvhopopt"], [155, "mov ecx, 1CAh"], [156, "mov edx, offset aInitMproxy6"], [157, "mov esi, offset aError_0"], [158, "mov edi, 1"], [159, "mov eax, 0"], [160, "call sub_40B6CE"], [161, "mov rax, [rbp+var_D8]"], [162, "mov eax, [rax+0Ch]"], [163, "mov r8d, 8"], [164, "mov ecx, offset unk_4121E0"], [165, "mov edx, 36h "], [166, "mov esi, 29h "], [167, "mov edi, eax"], [168, "call _setsockopt"], [169, "test eax, eax"], [170, "jz short loc_4048FE"], [171, "call ___errno_location"], [172, "mov eax, [rax]"], [173, "mov edi, eax"], [174, "call _strerror"], [175, "mov r9, rax"], [176, "mov r8d, offset aIpv6HopoptsS"], [177, "mov ecx, 1CEh"], [178, "mov edx, offset aInitMproxy6"], [179, "mov esi, offset aError_0"], [180, "mov edi, 1"], [181, "mov eax, 0"], [182, "call sub_40B6CE"], [183, "mov rax, [rbp+var_D8]"], [184, "mov eax, [rax+0Ch]"], [185, "mov edi, eax"], [186, "call sub_40575A"], [187, "test eax, eax"], [188, "jns short loc_40491D"], [189, "mov eax, 0FFFFFFFFh"], [190, "jmp locret_404B05"], [191, "mov rax, [rbp+var_D8]"], [192, "mov eax, [rax+0Ch]"], [193, "mov r9d, eax"], [194, "mov r8d, offset aPMpMldSocketD"], [195, "mov ecx, 1D4h"], [196, "mov edx, offset aInitMproxy6"], [197, "mov esi, offset aDebug_0"], [198, "mov edi, 4"], [199, "mov eax, 0"], [200, "call sub_40B6CE"], [201, "mov edx, 0"], [202, "mov esi, 2"], [203, "mov edi, 0Ah"], [204, "call _socket"], [205, "mov rdx, [rbp+var_D8]"], [206, "mov [rdx+14h], eax"], [207, "mov rax, [rbp+var_D8]"], [208, "mov eax, [rax+14h]"], [209, "cmp eax, 0FFFFFFFFh"], [210, "jnz short loc_4049A9"], [211, "mov r8d, offset aCanTCreateMldU"], [212, "mov ecx, 1D8h"], [213, "mov edx, offset aInitMproxy6"], [214, "mov esi, offset aError_0"], [215, "mov edi, 1"], [216, "mov eax, 0"], [217, "call sub_40B6CE"], [218, "mov eax, 0FFFFFFFFh"], [219, "jmp locret_404B05"], [220, "call sub_407EEB"], [221, "mov [rbp+var_8], rax"], [222, "jmp loc_404AF5"], [223, "mov rax, [rbp+var_8]"], [224, "movzx eax, word ptr [rax+50h]"], [225, "cmp ax, 0Ah"], [226, "jnz loc_404AE9"], [227, "mov rax, [rbp+var_8]"], [228, "mov eax, [rax+0D0h]"], [229, "test eax, eax"], [230, "jnz loc_404AE9"], [231, "lea rax, [rbp+buf]"], [232, "mov rdx, rax"], [233, "mov esi, offset cp"], [234, "mov edi, 0Ah"], [235, "call _inet_pton"], [236, "cmp eax, 1"], [237, "jnz short loc_404A61"], [238, "lea rdx, [rbp+var_D0]"], [239, "lea rax, [rbp+buf]"], [240, "mov rsi, rax"], [241, "mov edi, 0Ah"], [242, "call sub_40BA44"], [243, "mov rax, [rbp+var_8]"], [244, "lea rdx, [rax+10h]"], [245, "lea rax, [rbp+var_D0]"], [246, "mov rsi, rdx"], [247, "mov rdi, rax"], [248, "call sub_405951"], [249, "test eax, eax"], [250, "jns short loc_404A61"], [251, "call ___errno_location"], [252, "mov eax, [rax]"], [253, "mov edi, eax"], [254, "call _strerror"], [255, "mov r9, rax"], [256, "mov r8d, offset aKMcastJoinS"], [257, "mov ecx, 1E8h"], [258, "mov edx, offset aInitMproxy6"], [259, "mov esi, offset aDebug_0"], [260, "mov edi, 4"], [261, "mov eax, 0"], [262, "call sub_40B6CE"], [263, "lea rax, [rbp+buf]"], [264, "mov rdx, rax"], [265, "mov esi, offset aFf0216"], [266, "mov edi, 0Ah"], [267, "call _inet_pton"], [268, "cmp eax, 1"], [269, "jnz short loc_404AEA"], [270, "lea rdx, [rbp+var_D0]"], [271, "lea rax, [rbp+buf]"], [272, "mov rsi, rax"], [273, "mov edi, 0Ah"], [274, "call sub_40BA44"], [275, "mov rax, [rbp+var_8]"], [276, "lea rdx, [rax+10h]"], [277, "lea rax, [rbp+var_D0]"], [278, "mov rsi, rdx"], [279, "mov rdi, rax"], [280, "call sub_405951"], [281, "test eax, eax"], [282, "jns short loc_404AEA"], [283, "call ___errno_location"], [284, "mov eax, [rax]"], [285, "mov edi, eax"], [286, "call _strerror"], [287, "mov r9, rax"], [288, "mov r8d, offset aKMcastJoinS"], [289, "mov ecx, 1F1h"], [290, "mov edx, offset aInitMproxy6"], [291, "mov esi, offset aDebug_0"], [292, "mov edi, 4"], [293, "mov eax, 0"], [294, "call sub_40B6CE"], [295, "jmp short loc_404AEA"], [296, "nop"], [297, "mov rax, [rbp+var_8]"], [298, "mov rax, [rax]"], [299, "mov [rbp+var_8], rax"], [300, "cmp [rbp+var_8], 0"], [301, "jnz loc_4049B7"], [302, "mov eax, 0"], [303, "leave"], [304, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [13, 3], [14, 13], [14, 12], [15, 3], [16, 15], [16, 14], [17, 16], [18, 17], [28, 16], [31, 28], [34, 33], [35, 34], [36, 35], [37, 36], [38, 37], [39, 38], [40, 39], [41, 40], [42, 3], [43, 14], [43, 42], [44, 29], [46, 44], [49, 43], [51, 50], [52, 51], [54, 14], [54, 53], [55, 54], [57, 56], [66, 3], [67, 14], [67, 66], [68, 47], [68, 65], [68, 60], [70, 68], [73, 67], [75, 74], [76, 75], [78, 77], [78, 14], [79, 78], [81, 80], [90, 3], [91, 90], [91, 14], [92, 71], [92, 89], [92, 84], [94, 92], [97, 91], [99, 98], [100, 99], [102, 101], [102, 14], [103, 102], [105, 104], [114, 3], [115, 114], [115, 14], [116, 95], [116, 113], [116, 108], [118, 116], [121, 115], [123, 122], [124, 123], [126, 14], [126, 125], [127, 126], [129, 128], [138, 3], [139, 14], [139, 138], [140, 137], [140, 132], [140, 119], [142, 140], [145, 139], [147, 146], [148, 147], [150, 149], [150, 14], [151, 150], [153, 152], [161, 3], [162, 161], [162, 14], [167, 162], [169, 168], [170, 169], [172, 14], [172, 171], [173, 172], [175, 174], [183, 3], [184, 183], [184, 14], [185, 184], [187, 186], [188, 187], [191, 3], [192, 14], [192, 206], [192, 191], [193, 192], [205, 3], [206, 205], [206, 204], [207, 3], [208, 207], [208, 206], [209, 208], [210, 209], [221, 220], [223, 299], [223, 221], [224, 206], [224, 14], [224, 223], [225, 224], [226, 225], [227, 221], [227, 299], [228, 14], [228, 206], [228, 227], [229, 228], [230, 229], [231, 229], [232, 231], [236, 235], [237, 236], [238, 232], [239, 235], [240, 239], [243, 299], [243, 221], [244, 243], [244, 14], [244, 206], [244, 238], [245, 243], [246, 244], [247, 245], [249, 248], [250, 249], [252, 14], [252, 206], [252, 251], [253, 252], [255, 254], [263, 235], [263, 262], [263, 249], [264, 263], [268, 267], [269, 268], [270, 264], [271, 267], [272, 271], [275, 299], [275, 221], [276, 275], [276, 14], [276, 206], [276, 270], [277, 275], [278, 276], [279, 277], [281, 280], [282, 281], [284, 283], [284, 14], [284, 206], [285, 284], [287, 286], [297, 299], [297, 221], [298, 297], [298, 14], [298, 206], [299, 298], [300, 299], [300, 221], [301, 300], [304, 189], [304, 26], [304, 218], [304, 302]]}
{"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/5f9b053b7e422d0e94b449091d390bbd7d28b6fd7b7d051677900f4acecf6798_5f9b053b7e422d0e94b449091d390bbd7d28b6fd7b7d051677900f4acecf6798.jsonl.gz", "strip_func_name": "sub_4045E6", "query": "\n\n\n__int64 __fastcall sub_4045E6(_DWORD *a1)\n{\nint v1; // er9\nint v3; // eax\nint *v4; // rax\nunsigned int v5; // eax\nint *v6; // rax\nunsigned int v7; // eax\nint *v8; // rax\nunsigned int v9; // eax\nint *v10; // rax\nunsigned int v11; // eax\nint *v12; // rax\nunsigned int v13; // eax\nint *v14; // rax\nunsigned int v15; // eax\nint v16; // er9\nint *v17; // rax\nunsigned int v18; // eax\nint *v19; // rax\nunsigned int v20; // eax\nchar v21[128]; // [rsp+10h] [rbp-D0h] BYREF\nchar buf[28]; // [rsp+90h] [rbp-50h] BYREF\nint optval; // [rsp+ACh] [rbp-34h] BYREF\nchar s[16]; // [rsp+B0h] [rbp-30h] BYREF\nint v25; // [rsp+C0h] [rbp-20h]\n__int64 i; // [rsp+D8h] [rbp-8h]\n\nif ( a1[1] )\n{\ni = 0LL;\na1[3] = socket(10, 3, 58);\nif ( a1[3] == -1 )\n{\nsub_40B6CE(\n1,\n(unsigned int)\"ERROR\",\n(unsigned int)\"init_mproxy6\",\n425,\n(unsigned int)\"can't create mld socket\\n\",\nv1);\nreturn 0xFFFFFFFFLL;\n}\nmemset(s, 255, 0x20uLL);\nv25 &= 0xFFFFFFF7;\nv25 &= 0xFFFFFFEF;\nv3 = v25;\nBYTE1(v3) = BYTE1(v25) & 0x7F;\nv25 = v3;\nif ( setsockopt(a1[3], 58, 1, s, 0x20u) < 0 )\n{\nv4 = __errno_location();\nv5 = (unsigned int)strerror(*v4);\nsub_40B6CE(1, (unsigned int)\"ERROR\", (unsigned int)\"init_mproxy6\", 437, (unsigned int)\"ICMP6_FILTER: %s\\n\", v5);\n}\noptval = 1;\nif ( setsockopt(a1[3], 41, 49, &optval, 4u) < 0 )\n{\nv6 = __errno_location();\nv7 = (unsigned int)strerror(*v6);\nsub_40B6CE(\n1,\n(unsigned int)\"ERROR\",\n(unsigned int)\"init_mproxy6\",\n443,\n(unsigned int)\"IPV6_RECVPKTINFO: %s\\n\",\nv7);\n}\noptval = 1;\nif ( setsockopt(a1[3], 41, 18, &optval, 4u) < 0 )\n{\nv8 = __errno_location();\nv9 = (unsigned int)strerror(*v8);\nsub_40B6CE(\n1,\n(unsigned int)\"ERROR\",\n(unsigned int)\"init_mproxy6\",\n448,\n(unsigned int)\"IPV6_MULTICAST_HOPS: %s\\n\",\nv9);\n}\noptval = 0;\nif ( setsockopt(a1[3], 41, 19, &optval, 4u) < 0 )\n{\nv10 = __errno_location();\nv11 = (unsigned int)strerror(*v10);\nsub_40B6CE(\n1,\n(unsigned int)\"ERROR\",\n(unsigned int)\"init_mproxy6\",\n453,\n(unsigned int)\"IPV6_MULTICAST_LOOP: %s\\n\",\nv11);\n}\noptval = 1;\nif ( setsockopt(a1[3], 41, 53, &optval, 4u) < 0 )\n{\nv12 = __errno_location();\nv13 = (unsigned int)strerror(*v12);\nsub_40B6CE(\n1,\n(unsigned int)\"ERROR\",\n(unsigned int)\"init_mproxy6\",\n458,\n(unsigned int)\"IPV6_RECVHOPOPTS: %s\\n\",\nv13);\n}\nif ( setsockopt(a1[3], 41, 54, &unk_4121E0, 8u) )\n{\nv14 = __errno_location();\nv15 = (unsigned int)strerror(*v14);\nsub_40B6CE(1, (unsigned int)\"ERROR\", (unsigned int)\"init_mproxy6\", 462, (unsigned int)\"IPV6_HOPOPTS: %s\\n\", v15);\n}\nif ( (int)sub_40575A((unsigned int)a1[3]) < 0 )\nreturn 0xFFFFFFFFLL;\nsub_40B6CE(\n4,\n(unsigned int)\"DEBUG\",\n(unsigned int)\"init_mproxy6\",\n468,\n(unsigned int)\"p_mp->mld_socket = %d\\n\",\na1[3]);\na1[5] = socket(10, 2, 0);\nif ( a1[5] == -1 )\n{\nsub_40B6CE(\n1,\n(unsigned int)\"ERROR\",\n(unsigned int)\"init_mproxy6\",\n472,\n(unsigned int)\"can't create mld udp socket\\n\",\nv16);\nreturn 0xFFFFFFFFLL;\n}\nfor ( i = sub_407EEB(); i; i = *(_QWORD *)i )\n{\nif ( *(_WORD *)(i + 80) == 10 && !*(_DWORD *)(i + 208) )\n{\nif ( inet_pton(10, \"FF02::2\", buf) == 1 )\n{\nsub_40BA44(10LL, buf, v21);\nif ( (int)sub_405951(v21, i + 16) < 0 )\n{\nv17 = __errno_location();\nv18 = (unsigned int)strerror(*v17);\nsub_40B6CE(\n4,\n(unsigned int)\"DEBUG\",\n(unsigned int)\"init_mproxy6\",\n488,\n(unsigned int)\"k_mcast_join: %s\\n\",\nv18);\n}\n}\nif ( inet_pton(10, \"FF02::16\", buf) == 1 )\n{\nsub_40BA44(10LL, buf, v21);\nif ( (int)sub_405951(v21, i + 16) < 0 )\n{\nv19 = __errno_location();\nv20 = (unsigned int)strerror(*v19);\nsub_40B6CE(\n4,\n(unsigned int)\"DEBUG\",\n(unsigned int)\"init_mproxy6\",\n497,\n(unsigned int)\"k_mcast_join: %s\\n\",\nv20);\n}\n}\n}\n}\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,v21,buf,optval,s,i,sub_4045E6,sub_40B6CE,sub_40575A,sub_407EEB,sub_40BA44,sub_405951,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'p_mp', 'v21': 'pir', 'buf': 'all_ipv6_router', 'optval': 'on', 's': 'filt', 'i': 'p_if', 'sub_4045E6': 'init_mproxy6', 'sub_40B6CE': 'logger_build', 'sub_40575A': 'k_start6_mproxy', 'sub_407EEB': 'imp_interface_first', 'sub_40BA44': 'imp_build_piaddr', 'sub_405951': 'k_mcast_join'}"}
_JSONSerialize_BeginValue
ce54a8f896971b1b4df29f19a929a13dd7ea40b581387fc57a34c1930b028f11
goodform
rejson
NA
inline static void _JSONSerialize_BeginValue(Node *n, void *ctx) { _JSONBuilderContext *b = (_JSONBuilderContext *)ctx; if (!n) { // NULL nodes are literal nulls b->buf = sdscatlen(b->buf, "null", 4); } else { switch (n->type) { case N_BOOLEAN: if (n->value.boolval) { b->buf = sdscatlen(b->buf, "true", 4); } else { b->buf = sdscatlen(b->buf, "false", 5); } break; case N_INTEGER: b->buf = sdscatfmt(b->buf, "%I", n->value.intval); break; case N_NUMBER: b->buf = sdscatprintf(b->buf, "%.17g", n->value.numval); break; case N_STRING: _JSONSerialize_StringValue(n, b); break; case N_KEYVAL: b->buf = JSONSerialize_String(b->buf, n->value.kvval.key, strlen(n->value.kvval.key), b->noescape); b->buf = sdscatfmt(b->buf, ":%s", b->spacestr); break; case N_DICT: b->buf = sdscatlen(b->buf, "{", 1); b->depth++; if (n->value.dictval.len) { b->buf = sdscatsds(b->buf, b->newlinestr); _JSONSerialize_Indent(b); } break; case N_ARRAY: b->buf = sdscatlen(b->buf, "[", 1); b->depth++; if (n->value.arrval.len) { b->buf = sdscatsds(b->buf, b->newlinestr); _JSONSerialize_Indent(b); } break; case N_NULL: // keeps the compiler from complaining break; } // switch(n->type) } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408DCA", "function_addr": 4230602, "binary_name": "ce54a8f896971b1b4df29f19a929a13dd7ea40b581387fc57a34c1930b028f11.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 28h"], [4, "mov [rbp+var_28], rdi"], [5, "mov [rbp+var_30], rsi"], [6, "mov rax, [rbp+var_30]"], [7, "mov [rbp+var_20], rax"], [8, "cmp [rbp+var_28], 0"], [9, "jnz short loc_408E11"], [10, "mov rax, [rbp+var_20]"], [11, "mov rax, [rax]"], [12, "mov edx, 4"], [13, "lea rsi, aNull"], [14, "mov rdi, rax"], [15, "call sub_412F94"], [16, "mov rdx, [rbp+var_20]"], [17, "mov [rdx], rax"], [18, "jmp def_408E64"], [19, "mov rax, [rbp+var_28]"], [20, "mov eax, [rax+10h]"], [21, "cmp eax, 80h"], [22, "jz loc_408F45"], [23, "cmp eax, 80h"], [24, "ja def_408E64"], [25, "cmp eax, 20h "], [26, "ja short loc_408E66"], [27, "test eax, eax"], [28, "jz def_408E64"], [29, "cmp eax, 20h"], [30, "ja def_408E64"], [31, "mov eax, eax"], [32, "lea rdx, ds:0[rax*4]"], [33, "lea rax, jpt_408E64"], [34, "mov eax, ds:(jpt_408E64 - 41968Ch)[rdx+rax]"], [35, "cdqe"], [36, "lea rdx, jpt_408E64"], [37, "add rax, rdx"], [38, "jmp rax"], [39, "cmp eax, 40h "], [40, "jz loc_40905D"], [41, "jmp def_408E64"], [42, "mov rax, [rbp+var_28]"], [43, "mov eax, [rax]"], [44, "test eax, eax"], [45, "jz short loc_408EA5"], [46, "mov rax, [rbp+var_20]"], [47, "mov rax, [rax]"], [48, "mov edx, 4"], [49, "lea rsi, aTrue"], [50, "mov rdi, rax"], [51, "call sub_412F94"], [52, "mov rdx, [rbp+var_20]"], [53, "mov [rdx], rax"], [54, "jmp def_408E64"], [55, "mov rax, [rbp+var_20]"], [56, "mov rax, [rax]"], [57, "mov edx, 5"], [58, "lea rsi, aFalse"], [59, "mov rdi, rax"], [60, "call sub_412F94"], [61, "mov rdx, [rbp+var_20]"], [62, "mov [rdx], rax"], [63, "jmp def_408E64"], [64, "mov rax, [rbp+var_28]"], [65, "mov rdx, [rax]"], [66, "mov rax, [rbp+var_20]"], [67, "mov rax, [rax]"], [68, "lea rsi, aI"], [69, "mov rdi, rax"], [70, "mov eax, 0"], [71, "call sub_41356D"], [72, "mov rdx, [rbp+var_20]"], [73, "mov [rdx], rax"], [74, "jmp def_408E64"], [75, "mov rax, [rbp+var_28]"], [76, "mov rdx, [rax]"], [77, "mov rax, [rbp+var_20]"], [78, "mov rax, [rax]"], [79, "movq xmm0, rdx"], [80, "lea rsi, a17g"], [81, "mov rdi, rax"], [82, "mov eax, 1"], [83, "call sub_4134B7"], [84, "mov rdx, [rbp+var_20]"], [85, "mov [rdx], rax"], [86, "jmp def_408E64"], [87, "mov rdx, [rbp+var_20]"], [88, "mov rax, [rbp+var_28]"], [89, "mov rsi, rdx"], [90, "mov rdi, rax"], [91, "call sub_408D7D"], [92, "jmp def_408E64"], [93, "mov rax, [rbp+var_20]"], [94, "mov ebx, [rax+10h]"], [95, "mov rax, [rbp+var_28]"], [96, "mov rax, [rax]"], [97, "mov rdi, rax"], [98, "call _strlen"], [99, "mov rdx, rax"], [100, "mov rax, [rbp+var_28]"], [101, "mov rsi, [rax]"], [102, "mov rax, [rbp+var_20]"], [103, "mov rax, [rax]"], [104, "mov ecx, ebx"], [105, "mov rdi, rax"], [106, "call sub_408B93"], [107, "mov rdx, [rbp+var_20]"], [108, "mov [rdx], rax"], [109, "mov rax, [rbp+var_20]"], [110, "mov rdx, [rax+28h]"], [111, "mov rax, [rbp+var_20]"], [112, "mov rax, [rax]"], [113, "lea rsi, aS"], [114, "mov rdi, rax"], [115, "mov eax, 0"], [116, "call sub_41356D"], [117, "mov rdx, [rbp+var_20]"], [118, "mov [rdx], rax"], [119, "jmp def_408E64"], [120, "mov rax, [rbp+var_20]"], [121, "mov rax, [rax]"], [122, "mov edx, 1"], [123, "lea rsi, asc_419686"], [124, "mov rdi, rax"], [125, "call sub_412F94"], [126, "mov rdx, [rbp+var_20]"], [127, "mov [rdx], rax"], [128, "mov rax, [rbp+var_20]"], [129, "mov eax, [rax+8]"], [130, "lea edx, [rax+1]"], [131, "mov rax, [rbp+var_20]"], [132, "mov [rax+8], edx"], [133, "mov rax, [rbp+var_28]"], [134, "mov eax, [rax+8]"], [135, "test eax, eax"], [136, "jz loc_409106"], [137, "mov rax, [rbp+var_20]"], [138, "mov rdx, [rax+20h]"], [139, "mov rax, [rbp+var_20]"], [140, "mov rax, [rax]"], [141, "mov rsi, rdx"], [142, "mov rdi, rax"], [143, "call sub_413065"], [144, "mov rdx, [rbp+var_20]"], [145, "mov [rdx], rax"], [146, "mov rax, [rbp+var_20]"], [147, "mov eax, [rax+0Ch]"], [148, "test eax, eax"], [149, "jz loc_409106"], [150, "mov [rbp+var_14], 0"], [151, "jmp short loc_40904C"], [152, "mov rax, [rbp+var_20]"], [153, "mov rdx, [rax+18h]"], [154, "mov rax, [rbp+var_20]"], [155, "mov rax, [rax]"], [156, "mov rsi, rdx"], [157, "mov rdi, rax"], [158, "call sub_413065"], [159, "mov rdx, [rbp+var_20]"], [160, "mov [rdx], rax"], [161, "add [rbp+var_14], 1"], [162, "mov rax, [rbp+var_20]"], [163, "mov eax, [rax+8]"], [164, "cmp [rbp+var_14], eax"], [165, "jl short loc_409027"], [166, "jmp loc_409106"], [167, "mov rax, [rbp+var_20]"], [168, "mov rax, [rax]"], [169, "mov edx, 1"], [170, "lea rsi, asc_419688"], [171, "mov rdi, rax"], [172, "call sub_412F94"], [173, "mov rdx, [rbp+var_20]"], [174, "mov [rdx], rax"], [175, "mov rax, [rbp+var_20]"], [176, "mov eax, [rax+8]"], [177, "lea edx, [rax+1]"], [178, "mov rax, [rbp+var_20]"], [179, "mov [rax+8], edx"], [180, "mov rax, [rbp+var_28]"], [181, "mov eax, [rax+8]"], [182, "test eax, eax"], [183, "jz short loc_409109"], [184, "mov rax, [rbp+var_20]"], [185, "mov rdx, [rax+20h]"], [186, "mov rax, [rbp+var_20]"], [187, "mov rax, [rax]"], [188, "mov rsi, rdx"], [189, "mov rdi, rax"], [190, "call sub_413065"], [191, "mov rdx, [rbp+var_20]"], [192, "mov [rdx], rax"], [193, "mov rax, [rbp+var_20]"], [194, "mov eax, [rax+0Ch]"], [195, "test eax, eax"], [196, "jz short loc_409109"], [197, "mov [rbp+var_18], 0"], [198, "jmp short loc_4090F5"], [199, "mov rax, [rbp+var_20]"], [200, "mov rdx, [rax+18h]"], [201, "mov rax, [rbp+var_20]"], [202, "mov rax, [rax]"], [203, "mov rsi, rdx"], [204, "mov rdi, rax"], [205, "call sub_413065"], [206, "mov rdx, [rbp+var_20]"], [207, "mov [rdx], rax"], [208, "add [rbp+var_18], 1"], [209, "mov rax, [rbp+var_20]"], [210, "mov eax, [rax+8]"], [211, "cmp [rbp+var_18], eax"], [212, "jl short loc_4090D0"], [213, "jmp short loc_409109"], [214, "nop"], [215, "jmp short def_408E64"], [216, "nop"], [217, "jmp short def_408E64"], [218, "nop"], [219, "nop"], [220, "mov rbx, [rbp+var_8]"], [221, "leave"], [222, "retn"]], "data_dep": [[6, 5], [7, 6], [8, 4], [9, 8], [10, 7], [11, 10], [14, 11], [16, 7], [17, 16], [17, 15], [19, 4], [20, 19], [21, 20], [22, 21], [23, 20], [24, 23], [25, 20], [26, 25], [27, 20], [28, 27], [29, 27], [30, 29], [31, 27], [33, 31], [36, 32], [37, 34], [37, 36], [38, 37], [39, 20], [40, 39], [42, 4], [43, 42], [44, 43], [45, 44], [46, 7], [47, 46], [50, 47], [52, 7], [53, 52], [53, 51], [55, 7], [56, 55], [59, 56], [61, 7], [62, 60], [62, 61], [64, 4], [65, 64], [66, 7], [67, 66], [69, 67], [72, 7], [73, 71], [73, 72], [75, 4], [76, 75], [77, 7], [78, 77], [79, 76], [81, 78], [84, 7], [85, 84], [85, 83], [87, 7], [88, 4], [89, 87], [90, 88], [93, 7], [94, 93], [95, 4], [96, 95], [97, 96], [99, 98], [100, 4], [101, 100], [102, 7], [103, 102], [104, 94], [105, 103], [107, 7], [108, 107], [108, 106], [109, 7], [110, 109], [110, 108], [111, 7], [112, 111], [112, 108], [113, 101], [114, 112], [117, 7], [118, 117], [118, 116], [120, 7], [121, 120], [124, 121], [126, 7], [127, 125], [127, 126], [128, 7], [129, 128], [129, 127], [130, 126], [130, 127], [130, 129], [131, 7], [132, 130], [132, 131], [133, 4], [134, 133], [134, 132], [135, 134], [136, 135], [137, 7], [138, 137], [138, 132], [138, 127], [138, 145], [139, 7], [140, 139], [140, 132], [140, 127], [140, 145], [141, 138], [142, 140], [144, 7], [145, 144], [145, 143], [146, 7], [147, 146], [147, 145], [148, 147], [149, 148], [152, 7], [153, 132], [153, 152], [153, 127], [153, 145], [153, 160], [154, 7], [155, 160], [155, 132], [155, 127], [155, 145], [155, 154], [156, 153], [157, 155], [159, 7], [160, 158], [160, 159], [161, 150], [161, 161], [162, 7], [163, 132], [163, 127], [163, 145], [163, 160], [163, 162], [164, 150], [164, 161], [164, 163], [165, 164], [167, 7], [168, 167], [171, 168], [173, 7], [174, 173], [174, 172], [175, 7], [176, 175], [176, 174], [177, 174], [177, 176], [177, 173], [178, 7], [179, 178], [179, 177], [180, 4], [181, 180], [181, 179], [182, 181], [183, 182], [184, 7], [185, 184], [185, 179], [185, 174], [185, 192], [186, 7], [187, 186], [187, 179], [187, 174], [187, 192], [188, 185], [189, 187], [191, 7], [192, 190], [192, 191], [193, 7], [194, 192], [194, 193], [195, 194], [196, 195], [199, 7], [200, 179], [200, 199], [200, 174], [200, 192], [200, 207], [201, 7], [202, 207], [202, 179], [202, 174], [202, 192], [202, 201], [203, 200], [204, 202], [206, 7], [207, 206], [207, 205], [208, 208], [208, 197], [209, 7], [210, 207], [210, 209], [210, 179], [210, 174], [210, 192], [211, 197], [211, 208], [211, 210], [212, 211], [222, 51], [222, 60], [222, 71], [222, 135], [222, 37], [222, 27], [222, 116], [222, 210], [222, 91], [222, 182], [222, 20], [222, 148], [222, 15], [222, 163], [222, 83], [222, 195]]}
{"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/ce54a8f896971b1b4df29f19a929a13dd7ea40b581387fc57a34c1930b028f11_ce54a8f896971b1b4df29f19a929a13dd7ea40b581387fc57a34c1930b028f11.jsonl.gz", "strip_func_name": "sub_408DCA", "query": "\n\n\n__int64 __fastcall sub_408DCA(const char **a1, __int64 *a2, __int64 a3, int a4, int a5, int a6)\n{\n__int64 result; // rax\nint v7; // ebx\n__int64 v8; // rax\nint v9; // ecx\nint v10; // er8\nint v11; // er9\nint i; // [rsp+18h] [rbp-18h]\nint j; // [rsp+1Ch] [rbp-14h]\n\nif ( a1 )\n{\nresult = *((unsigned int *)a1 + 4);\nif ( (_DWORD)result == 128 )\n{\nv7 = *((_DWORD *)a2 + 4);\nv8 = strlen(*a1);\n*a2 = sub_408B93(*a2, *a1, v8, v7);\nresult = sub_41356D(*a2, (unsigned int)\":%s\", a2[5], v9, v10, v11, (char)a2);\n*a2 = result;\n}\nelse if ( (unsigned int)result <= 0x80 )\n{\nif ( (unsigned int)result > 0x20 )\n{\nif ( (_DWORD)result == 64 )\n{\n*a2 = sub_412F94(*a2, \"[\", 1LL);\n++*((_DWORD *)a2 + 2);\nresult = *((unsigned int *)a1 + 2);\nif ( (_DWORD)result )\n{\n*a2 = sub_413065(*a2, a2[4]);\nresult = *((unsigned int *)a2 + 3);\nif ( (_DWORD)result )\n{\nfor ( i = 0; ; ++i )\n{\nresult = *((unsigned int *)a2 + 2);\nif ( i >= (int)result )\nbreak;\n*a2 = sub_413065(*a2, a2[3]);\n}\n}\n}\n}\n}\nelse if ( (_DWORD)result )\n{\nresult = (unsigned int)result;\nswitch ( (int)result )\n{\ncase 2:\nresult = sub_408D7D((__int64)a1, (__int64)a2);\nbreak;\ncase 4:\nresult = sub_4134B7(*a2, (unsigned int)\"%.17g\", (unsigned int)*a1, a4, a5, a6);\n*a2 = result;\nbreak;\ncase 8:\nresult = sub_41356D(*a2, (unsigned int)\"%I\", (unsigned int)*a1, a4, a5, a6, (char)a2);\n*a2 = result;\nbreak;\ncase 16:\nif ( *(_DWORD *)a1 )\nresult = sub_412F94(*a2, \"true\", 4LL);\nelse\nresult = sub_412F94(*a2, \"false\", 5LL);\n*a2 = result;\nbreak;\ncase 32:\n*a2 = sub_412F94(*a2, \"{\", 1LL);\n++*((_DWORD *)a2 + 2);\nresult = *((unsigned int *)a1 + 2);\nif ( (_DWORD)result )\n{\n*a2 = sub_413065(*a2, a2[4]);\nresult = *((unsigned int *)a2 + 3);\nif ( (_DWORD)result )\n{\nfor ( j = 0; ; ++j )\n{\nresult = *((unsigned int *)a2 + 2);\nif ( j >= (int)result )\nbreak;\n*a2 = sub_413065(*a2, a2[3]);\n}\n}\n}\nbreak;\ndefault:\nreturn result;\n}\n}\n}\n}\nelse\n{\nresult = sub_412F94(*a2, \"null\", 4LL);\n*a2 = result;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,i,sub_408DCA,sub_408B93,sub_41356D,sub_412F94,sub_413065,sub_408D7D,sub_4134B7,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'n', 'a2': 'ctx', 'i': 'i_0', 'sub_408DCA': '_JSONSerialize_BeginValue', 'sub_408B93': 'JSONSerialize_String', 'sub_41356D': 'sdscatfmt', 'sub_412F94': 'sdscatlen', 'sub_413065': 'sdscatsds', 'sub_408D7D': '_JSONSerialize_StringValue', 'sub_4134B7': 'sdscatprintf'}"}
approximate_search_print
2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3
smarco
gem3-mapper
NA
void approximate_search_print(FILE* const stream,approximate_search_t* const search) { tab_fprintf(stream,"[GEM]>ApproximateSearch\n"); tab_global_inc(); tab_fprintf(stream,"=> Search.Stage %s\n",asearch_stage_label[search->search_stage]); tab_fprintf(stream," => Search.State %s\n",asearch_processing_state_label[search->processing_state]); tab_fprintf(stream,"=> Max.complete.error %lu\n",search->max_search_error); tab_fprintf(stream,"=> Region.Profile\n"); tab_global_inc(); region_profile_print(stream,&search->region_profile,false); tab_global_dec(); tab_global_dec(); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40DB43", "function_addr": 4250435, "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 [rbp+var_10], rsi"], [5, "mov rax, [rbp+var_8]"], [6, "mov esi, offset aGemApproximate"], [7, "mov rdi, rax"], [8, "mov eax, 0"], [9, "call sub_468522"], [10, "call sub_46875C"], [11, "mov rax, [rbp+var_10]"], [12, "mov eax, [rax+164h]"], [13, "mov eax, eax"], [14, "mov rdx, off_4A5580[rax*8]"], [15, "mov rax, [rbp+var_8]"], [16, "mov esi, offset aSearchStageS"], [17, "mov rdi, rax"], [18, "mov eax, 0"], [19, "call sub_468522"], [20, "mov rax, [rbp+var_10]"], [21, "mov eax, [rax+168h]"], [22, "mov eax, eax"], [23, "mov rdx, off_4A5540[rax*8]"], [24, "mov rax, [rbp+var_8]"], [25, "mov esi, offset aSearchStateS"], [26, "mov rdi, rax"], [27, "mov eax, 0"], [28, "call sub_468522"], [29, "mov rax, [rbp+var_10]"], [30, "mov rdx, [rax+170h]"], [31, "mov rax, [rbp+var_8]"], [32, "mov esi, offset aMaxCompleteErr"], [33, "mov rdi, rax"], [34, "mov eax, 0"], [35, "call sub_468522"], [36, "mov rax, [rbp+var_8]"], [37, "mov esi, offset aRegionProfile"], [38, "mov rdi, rax"], [39, "mov eax, 0"], [40, "call sub_468522"], [41, "call sub_46875C"], [42, "mov rax, [rbp+var_10]"], [43, "lea rcx, [rax+178h]"], [44, "mov rax, [rbp+var_8]"], [45, "mov edx, 0"], [46, "mov rsi, rcx"], [47, "mov rdi, rax"], [48, "call sub_4649EA"], [49, "call sub_468799"], [50, "call sub_468799"], [51, "nop"], [52, "leave"], [53, "retn"]], "data_dep": [[5, 3], [7, 5], [11, 4], [12, 11], [13, 12], [15, 3], [17, 15], [20, 4], [21, 20], [22, 21], [24, 3], [26, 24], [29, 4], [30, 29], [31, 3], [33, 31], [36, 3], [38, 36], [42, 4], [43, 42], [44, 3], [46, 43], [47, 44], [53, 50]]}
{"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_40DB43", "query": "\n\n\n__int64 __fastcall sub_40DB43(__int64 a1, char a2, int a3, int a4, int a5, int a6)\n{\nint v6; // ecx\nint v7; // er8\nint v8; // er9\nint v9; // ecx\nint v10; // er8\nint v11; // er9\nint v12; // ecx\nint v13; // er8\nint v14; // er9\nint v15; // edx\nint v16; // ecx\nint v17; // er8\nint v18; // er9\n__int64 v20; // [rsp+0h] [rbp-10h]\n__int64 v21; // [rsp+0h] [rbp-10h]\n__int64 v22; // [rsp+0h] [rbp-10h]\nchar v23; // [rsp+0h] [rbp-10h]\n__int64 v24; // [rsp+0h] [rbp-10h]\n\nsub_468522(a1, (unsigned int)\"[GEM]>ApproximateSearch\\n\", a3, a4, a5, a6, a2);\nsub_46875C();\nsub_468522(\na1,\n(unsigned int)\"=> Search.Stage %s\\n\",\n(unsigned int)off_4A5580[*(unsigned int *)(v20 + 356)],\nv6,\nv7,\nv8,\nv20);\nsub_468522(\na1,\n(unsigned int)\" => Search.State %s\\n\",\n(unsigned int)off_4A5540[*(unsigned int *)(v21 + 360)],\nv9,\nv10,\nv11,\nv21);\nsub_468522(a1, (unsigned int)\"=> Max.complete.error %lu\\n\", *(_QWORD *)(v22 + 368), v12, v13, v14, v22);\nsub_468522(a1, (unsigned int)\"=> Region.Profile\\n\", v15, v16, v17, v18, v23);\nsub_46875C();\nsub_4649EA(a1, v24 + 376, 0LL);\nsub_468799();\nreturn sub_468799();\n}\n\n\n\nQ:[a1,a2,sub_40DB43,sub_468522,sub_46875C,sub_4649EA,sub_468799,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'stream', 'a2': 'search', 'sub_40DB43': 'approximate_search_print', 'sub_468522': 'tab_fprintf', 'sub_46875C': 'tab_global_inc', 'sub_4649EA': 'region_profile_print', 'sub_468799': 'tab_global_dec'}"}
hevc_hrd_parameters
5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f
Xilinx
vcu-ctrl-sw
NA
void hevc_hrd_parameters(AL_THrdParam* pHrdParam, bool bInfoFlag, int iMaxSubLayers, AL_TRbspParser* pRP) { if(bInfoFlag) { pHrdParam->nal_hrd_parameters_present_flag = u(pRP, 1); pHrdParam->vcl_hrd_parameters_present_flag = u(pRP, 1); if(pHrdParam->nal_hrd_parameters_present_flag || pHrdParam->vcl_hrd_parameters_present_flag) { pHrdParam->sub_pic_hrd_params_present_flag = u(pRP, 1); if(pHrdParam->sub_pic_hrd_params_present_flag) { pHrdParam->tick_divisor_minus2 = u(pRP, 8); pHrdParam->du_cpb_removal_delay_increment_length_minus1 = u(pRP, 5); pHrdParam->sub_pic_cpb_params_in_pic_timing_sei_flag = u(pRP, 1); pHrdParam->dpb_output_delay_du_length_minus1 = u(pRP, 5); } pHrdParam->bit_rate_scale = u(pRP, 4); pHrdParam->cpb_size_du_scale = u(pRP, 4); if(pHrdParam->sub_pic_hrd_params_present_flag) pHrdParam->cpb_size_scale = u(pRP, 4); pHrdParam->initial_cpb_removal_delay_length_minus1 = u(pRP, 5); pHrdParam->au_cpb_removal_delay_length_minus1 = u(pRP, 5); pHrdParam->dpb_output_delay_length_minus1 = u(pRP, 5); } } else { pHrdParam->nal_hrd_parameters_present_flag = 0; pHrdParam->vcl_hrd_parameters_present_flag = 0; } for(int i = 0; i <= iMaxSubLayers; ++i) { /* initialization */ pHrdParam->low_delay_hrd_flag[i] = 0; pHrdParam->cpb_cnt_minus1[i] = 0; pHrdParam->fixed_pic_rate_general_flag[i] = u(pRP, 1); if(!pHrdParam->fixed_pic_rate_general_flag[i]) pHrdParam->fixed_pic_rate_within_cvs_flag[i] = u(pRP, 1); else pHrdParam->fixed_pic_rate_within_cvs_flag[i] = 1; if(pHrdParam->fixed_pic_rate_within_cvs_flag[i]) pHrdParam->elemental_duration_in_tc_minus1[i] = ue(pRP); else pHrdParam->low_delay_hrd_flag[i] = u(pRP, 1); if(!pHrdParam->low_delay_hrd_flag[i]) pHrdParam->cpb_cnt_minus1[i] = ue(pRP); if(pHrdParam->nal_hrd_parameters_present_flag) sub_hrd_parameters(&pHrdParam->nal_sub_hrd_param, pHrdParam->cpb_cnt_minus1[i], pHrdParam->sub_pic_hrd_params_present_flag, pRP); if(pHrdParam->vcl_hrd_parameters_present_flag) sub_hrd_parameters(&pHrdParam->vcl_sub_hrd_param, pHrdParam->cpb_cnt_minus1[i], pHrdParam->sub_pic_hrd_params_present_flag, pRP); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44DDB8", "function_addr": 4513208, "binary_name": "5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov eax, esi"], [5, "mov [rbp+var_20], edx"], [6, "mov [rbp+var_28], rcx"], [7, "mov [rbp+var_1C], al"], [8, "cmp [rbp+var_1C], 0"], [9, "jz loc_44DF60"], [10, "mov rax, [rbp+var_28]"], [11, "mov esi, 1"], [12, "mov rdi, rax"], [13, "call sub_439C89"], [14, "mov edx, eax"], [15, "mov rax, [rbp+var_18]"], [16, "mov [rax], dl"], [17, "mov rax, [rbp+var_28]"], [18, "mov esi, 1"], [19, "mov rdi, rax"], [20, "call sub_439C89"], [21, "mov edx, eax"], [22, "mov rax, [rbp+var_18]"], [23, "mov [rax+1], dl"], [24, "mov rax, [rbp+var_18]"], [25, "movzx eax, byte ptr [rax]"], [26, "test al, al"], [27, "jnz short loc_44DE28"], [28, "mov rax, [rbp+var_18]"], [29, "movzx eax, byte ptr [rax+1]"], [30, "test al, al"], [31, "jz loc_44DF6F"], [32, "mov rax, [rbp+var_28]"], [33, "mov esi, 1"], [34, "mov rdi, rax"], [35, "call sub_439C89"], [36, "mov edx, eax"], [37, "mov rax, [rbp+var_18]"], [38, "mov [rax+2], dl"], [39, "mov rax, [rbp+var_18]"], [40, "movzx eax, byte ptr [rax+2]"], [41, "test al, al"], [42, "jz short loc_44DEB6"], [43, "mov rax, [rbp+var_28]"], [44, "mov esi, 8"], [45, "mov rdi, rax"], [46, "call sub_439C89"], [47, "mov edx, eax"], [48, "mov rax, [rbp+var_18]"], [49, "mov [rax+3], dl"], [50, "mov rax, [rbp+var_28]"], [51, "mov esi, 5"], [52, "mov rdi, rax"], [53, "call sub_439C89"], [54, "mov edx, eax"], [55, "mov rax, [rbp+var_18]"], [56, "mov [rax+4], dl"], [57, "mov rax, [rbp+var_28]"], [58, "mov esi, 1"], [59, "mov rdi, rax"], [60, "call sub_439C89"], [61, "mov edx, eax"], [62, "mov rax, [rbp+var_18]"], [63, "mov [rax+5], dl"], [64, "mov rax, [rbp+var_28]"], [65, "mov esi, 5"], [66, "mov rdi, rax"], [67, "call sub_439C89"], [68, "mov edx, eax"], [69, "mov rax, [rbp+var_18]"], [70, "mov [rax+6], dl"], [71, "mov rax, [rbp+var_28]"], [72, "mov esi, 4"], [73, "mov rdi, rax"], [74, "call sub_439C89"], [75, "mov edx, eax"], [76, "mov rax, [rbp+var_18]"], [77, "mov [rax+7], dl"], [78, "mov rax, [rbp+var_28]"], [79, "mov esi, 4"], [80, "mov rdi, rax"], [81, "call sub_439C89"], [82, "mov edx, eax"], [83, "mov rax, [rbp+var_18]"], [84, "mov [rax+9], dl"], [85, "mov rax, [rbp+var_18]"], [86, "movzx eax, byte ptr [rax+2]"], [87, "test al, al"], [88, "jz short loc_44DF10"], [89, "mov rax, [rbp+var_28]"], [90, "mov esi, 4"], [91, "mov rdi, rax"], [92, "call sub_439C89"], [93, "mov edx, eax"], [94, "mov rax, [rbp+var_18]"], [95, "mov [rax+8], dl"], [96, "mov rax, [rbp+var_28]"], [97, "mov esi, 5"], [98, "mov rdi, rax"], [99, "call sub_439C89"], [100, "mov edx, eax"], [101, "mov rax, [rbp+var_18]"], [102, "mov [rax+0Ah], dl"], [103, "mov rax, [rbp+var_28]"], [104, "mov esi, 5"], [105, "mov rdi, rax"], [106, "call sub_439C89"], [107, "mov edx, eax"], [108, "mov rax, [rbp+var_18]"], [109, "mov [rax+0Bh], dl"], [110, "mov rax, [rbp+var_28]"], [111, "mov esi, 5"], [112, "mov rdi, rax"], [113, "call sub_439C89"], [114, "mov edx, eax"], [115, "mov rax, [rbp+var_18]"], [116, "mov [rax+0Ch], dl"], [117, "jmp short loc_44DF6F"], [118, "mov rax, [rbp+var_18]"], [119, "mov byte ptr [rax], 0"], [120, "mov rax, [rbp+var_18]"], [121, "mov byte ptr [rax+1], 0"], [122, "mov [rbp+var_4], 0"], [123, "jmp loc_44E10A"], [124, "mov rdx, [rbp+var_18]"], [125, "mov eax, [rbp+var_4]"], [126, "cdqe"], [127, "mov byte ptr [rdx+rax+40h], 0"], [128, "mov rax, [rbp+var_18]"], [129, "mov edx, [rbp+var_4]"], [130, "movsxd rdx, edx"], [131, "add rdx, 10h"], [132, "mov dword ptr [rax+rdx*4+8], 0"], [133, "mov rax, [rbp+var_28]"], [134, "mov esi, 1"], [135, "mov rdi, rax"], [136, "call sub_439C89"], [137, "mov ecx, eax"], [138, "mov rdx, [rbp+var_18]"], [139, "mov eax, [rbp+var_4]"], [140, "cdqe"], [141, "mov [rdx+rax+0Eh], cl"], [142, "mov rdx, [rbp+var_18]"], [143, "mov eax, [rbp+var_4]"], [144, "cdqe"], [145, "movzx eax, byte ptr [rdx+rax+0Eh]"], [146, "test al, al"], [147, "jnz short loc_44DFF3"], [148, "mov rax, [rbp+var_28]"], [149, "mov esi, 1"], [150, "mov rdi, rax"], [151, "call sub_439C89"], [152, "mov ecx, eax"], [153, "mov rdx, [rbp+var_18]"], [154, "mov eax, [rbp+var_4]"], [155, "cdqe"], [156, "mov [rdx+rax+16h], cl"], [157, "jmp short loc_44E001"], [158, "mov rdx, [rbp+var_18]"], [159, "mov eax, [rbp+var_4]"], [160, "cdqe"], [161, "mov byte ptr [rdx+rax+16h], 1"], [162, "mov rdx, [rbp+var_18]"], [163, "mov eax, [rbp+var_4]"], [164, "cdqe"], [165, "movzx eax, byte ptr [rdx+rax+16h]"], [166, "test al, al"], [167, "jz short loc_44E032"], [168, "mov rax, [rbp+var_28]"], [169, "mov rdi, rax"], [170, "call sub_439DEB"], [171, "mov rdx, [rbp+var_18]"], [172, "mov ecx, [rbp+var_4]"], [173, "movsxd rcx, ecx"], [174, "add rcx, 8"], [175, "mov [rdx+rcx*4], eax"], [176, "jmp short loc_44E052"], [177, "mov rax, [rbp+var_28]"], [178, "mov esi, 1"], [179, "mov rdi, rax"], [180, "call sub_439C89"], [181, "mov ecx, eax"], [182, "mov rdx, [rbp+var_18]"], [183, "mov eax, [rbp+var_4]"], [184, "cdqe"], [185, "mov [rdx+rax+40h], cl"], [186, "mov rdx, [rbp+var_18]"], [187, "mov eax, [rbp+var_4]"], [188, "cdqe"], [189, "movzx eax, byte ptr [rdx+rax+40h]"], [190, "test al, al"], [191, "jnz short loc_44E082"], [192, "mov rax, [rbp+var_28]"], [193, "mov rdi, rax"], [194, "call sub_439DEB"], [195, "mov rdx, [rbp+var_18]"], [196, "mov ecx, [rbp+var_4]"], [197, "movsxd rcx, ecx"], [198, "add rcx, 10h"], [199, "mov [rdx+rcx*4+8], eax"], [200, "mov rax, [rbp+var_18]"], [201, "movzx eax, byte ptr [rax]"], [202, "test al, al"], [203, "jz short loc_44E0C2"], [204, "mov rax, [rbp+var_18]"], [205, "movzx eax, byte ptr [rax+2]"], [206, "movzx eax, al"], [207, "mov rdx, [rbp+var_18]"], [208, "mov ecx, [rbp+var_4]"], [209, "movsxd rcx, ecx"], [210, "add rcx, 10h"], [211, "mov edx, [rdx+rcx*4+8]"], [212, "mov esi, edx"], [213, "mov rdx, [rbp+var_18]"], [214, "lea rdi, [rdx+68h]"], [215, "mov rdx, [rbp+var_28]"], [216, "mov rcx, rdx"], [217, "mov edx, eax"], [218, "call sub_44DCE7"], [219, "mov rax, [rbp+var_18]"], [220, "movzx eax, byte ptr [rax+1]"], [221, "test al, al"], [222, "jz short loc_44E106"], [223, "mov rax, [rbp+var_18]"], [224, "movzx eax, byte ptr [rax+2]"], [225, "movzx eax, al"], [226, "mov rdx, [rbp+var_18]"], [227, "mov ecx, [rbp+var_4]"], [228, "movsxd rcx, ecx"], [229, "add rcx, 10h"], [230, "mov edx, [rdx+rcx*4+8]"], [231, "mov esi, edx"], [232, "mov rdx, [rbp+var_18]"], [233, "lea rdi, [rdx+288h]"], [234, "mov rdx, [rbp+var_28]"], [235, "mov rcx, rdx"], [236, "mov edx, eax"], [237, "call sub_44DCE7"], [238, "add [rbp+var_4], 1"], [239, "mov eax, [rbp+var_4]"], [240, "cmp eax, [rbp+var_20]"], [241, "jle loc_44DF7B"], [242, "nop"], [243, "nop"], [244, "leave"], [245, "retn"]], "data_dep": [[7, 4], [8, 7], [9, 8], [10, 6], [12, 10], [14, 13], [15, 3], [16, 15], [16, 14], [17, 6], [19, 17], [21, 20], [22, 3], [23, 22], [23, 21], [24, 3], [25, 24], [25, 23], [25, 16], [26, 25], [27, 26], [28, 3], [29, 16], [29, 28], [29, 23], [30, 29], [31, 30], [32, 6], [34, 32], [36, 35], [37, 3], [38, 36], [38, 37], [39, 3], [40, 39], [40, 38], [41, 40], [42, 41], [43, 6], [45, 43], [47, 46], [48, 3], [49, 48], [49, 47], [50, 6], [52, 50], [54, 53], [55, 3], [56, 55], [56, 54], [57, 6], [59, 57], [61, 60], [62, 3], [63, 61], [63, 62], [64, 6], [66, 64], [68, 67], [69, 3], [70, 68], [70, 69], [71, 6], [73, 71], [75, 74], [76, 3], [77, 76], [77, 75], [78, 6], [80, 78], [82, 81], [83, 3], [84, 83], [84, 82], [85, 3], [86, 85], [86, 84], [86, 38], [87, 86], [88, 87], [89, 6], [91, 89], [93, 92], [94, 3], [95, 93], [95, 94], [96, 6], [98, 96], [100, 99], [101, 3], [102, 101], [102, 100], [103, 6], [105, 103], [107, 106], [108, 3], [109, 107], [109, 108], [110, 6], [112, 110], [114, 113], [115, 3], [116, 114], [116, 115], [118, 3], [119, 118], [120, 3], [121, 120], [124, 3], [125, 122], [125, 238], [127, 125], [128, 3], [129, 122], [129, 238], [130, 129], [131, 130], [132, 128], [133, 6], [135, 133], [137, 136], [138, 3], [139, 122], [139, 238], [141, 137], [141, 139], [142, 3], [143, 122], [143, 238], [145, 143], [145, 141], [146, 145], [147, 146], [148, 6], [150, 148], [152, 151], [153, 3], [154, 122], [154, 238], [156, 154], [156, 152], [158, 3], [159, 122], [159, 238], [161, 159], [162, 3], [163, 122], [163, 238], [165, 63], [165, 175], [165, 49], [165, 161], [165, 156], [165, 16], [165, 132], [165, 141], [165, 109], [165, 127], [165, 121], [165, 84], [165, 70], [165, 38], [165, 56], [165, 163], [165, 185], [165, 23], [165, 116], [165, 102], [165, 119], [165, 199], [165, 77], [165, 95], [166, 165], [167, 166], [168, 6], [169, 168], [171, 3], [172, 122], [172, 238], [173, 172], [174, 173], [175, 170], [175, 174], [177, 6], [179, 177], [181, 180], [182, 3], [183, 238], [183, 122], [185, 183], [185, 181], [186, 3], [187, 122], [187, 238], [189, 38], [189, 132], [189, 141], [189, 127], [189, 121], [189, 116], [189, 84], [189, 102], [189, 70], [189, 56], [189, 199], [189, 185], [189, 23], [189, 161], [189, 119], [189, 109], [189, 77], [189, 95], [189, 63], [189, 175], [189, 49], [189, 156], [189, 187], [189, 16], [190, 189], [191, 190], [192, 6], [193, 192], [195, 3], [196, 122], [196, 238], [197, 196], [198, 197], [199, 194], [199, 198], [200, 3], [201, 116], [201, 119], [201, 199], [201, 77], [201, 95], [201, 63], [201, 175], [201, 49], [201, 161], [201, 156], [201, 16], [201, 132], [201, 141], [201, 109], [201, 127], [201, 121], [201, 84], [201, 102], [201, 70], [201, 200], [201, 38], [201, 56], [201, 185], [201, 23], [202, 201], [203, 202], [204, 3], [205, 109], [205, 127], [205, 95], [205, 84], [205, 70], [205, 38], [205, 56], [205, 204], [205, 23], [205, 121], [205, 116], [205, 102], [205, 119], [205, 199], [205, 185], [205, 77], [205, 63], [205, 175], [205, 49], [205, 161], [205, 156], [205, 16], [205, 132], [205, 141], [206, 205], [207, 3], [208, 122], [208, 238], [209, 208], [210, 209], [211, 16], [211, 38], [211, 132], [211, 141], [211, 127], [211, 121], [211, 116], [211, 210], [211, 84], [211, 102], [211, 70], [211, 56], [211, 199], [211, 185], [211, 23], [211, 175], [211, 161], [211, 156], [211, 119], [211, 109], [211, 77], [211, 95], [211, 63], [211, 49], [212, 211], [213, 3], [214, 77], [214, 95], [214, 63], [214, 193], [214, 179], [214, 169], [214, 38], [214, 141], [214, 127], [214, 23], [214, 121], [214, 116], [214, 84], [214, 102], [214, 70], [214, 56], [214, 213], [214, 199], [214, 185], [214, 175], [214, 49], [214, 161], [214, 156], [214, 16], [214, 119], [214, 132], [214, 109], [215, 6], [216, 215], [217, 206], [219, 3], [220, 161], [220, 119], [220, 109], [220, 77], [220, 95], [220, 63], [220, 49], [220, 156], [220, 16], [220, 38], [220, 132], [220, 141], [220, 127], [220, 121], [220, 116], [220, 219], [220, 84], [220, 102], [220, 70], [220, 56], [220, 199], [220, 185], [220, 23], [220, 175], [221, 220], [222, 221], [223, 3], [224, 121], [224, 116], [224, 84], [224, 102], [224, 223], [224, 70], [224, 56], [224, 199], [224, 185], [224, 23], [224, 161], [224, 119], [224, 109], [224, 77], [224, 95], [224, 63], [224, 175], [224, 49], [224, 156], [224, 16], [224, 38], [224, 132], [224, 141], [224, 127], [225, 224], [226, 3], [227, 122], [227, 238], [228, 227], [229, 228], [230, 49], [230, 156], [230, 16], [230, 38], [230, 132], [230, 141], [230, 127], [230, 229], [230, 121], [230, 116], [230, 84], [230, 102], [230, 70], [230, 56], [230, 199], [230, 185], [230, 23], [230, 161], [230, 119], [230, 109], [230, 77], [230, 95], [230, 63], [230, 175], [231, 230], [232, 3], [233, 109], [233, 77], [233, 95], [233, 63], [233, 193], [233, 49], [233, 179], [233, 169], [233, 38], [233, 132], [233, 141], [233, 127], [233, 121], [233, 116], [233, 84], [233, 102], [233, 214], [233, 232], [233, 70], [233, 56], [233, 199], [233, 185], [233, 23], [233, 175], [233, 161], [233, 156], [233, 16], [233, 119], [234, 6], [235, 234], [236, 225], [238, 122], [238, 238], [239, 122], [239, 238], [240, 239], [240, 5], [241, 240], [245, 239]]}
{"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/5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f_5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f.jsonl.gz", "strip_func_name": "sub_44DDB8", "query": "\n\n\n__int64 __fastcall sub_44DDB8(_BYTE *a1, char a2, int a3, __int64 a4)\n{\n__int64 result; // rax\nunsigned int i; // [rsp+2Ch] [rbp-4h]\n\nif ( a2 )\n{\n*a1 = sub_439C89(a4, 1u);\na1[1] = sub_439C89(a4, 1u);\nif ( *a1 || a1[1] )\n{\na1[2] = sub_439C89(a4, 1u);\nif ( a1[2] )\n{\na1[3] = sub_439C89(a4, 8u);\na1[4] = sub_439C89(a4, 5u);\na1[5] = sub_439C89(a4, 1u);\na1[6] = sub_439C89(a4, 5u);\n}\na1[7] = sub_439C89(a4, 4u);\na1[9] = sub_439C89(a4, 4u);\nif ( a1[2] )\na1[8] = sub_439C89(a4, 4u);\na1[10] = sub_439C89(a4, 5u);\na1[11] = sub_439C89(a4, 5u);\na1[12] = sub_439C89(a4, 5u);\n}\n}\nelse\n{\n*a1 = 0;\na1[1] = 0;\n}\nfor ( i = 0; ; ++i )\n{\nresult = i;\nif ( (int)i > a3 )\nbreak;\na1[i + 64] = 0;\n*(_DWORD *)&a1[4 * i + 72] = 0;\na1[i + 14] = sub_439C89(a4, 1u);\nif ( a1[i + 14] )\na1[i + 22] = 1;\nelse\na1[i + 22] = sub_439C89(a4, 1u);\nif ( a1[i + 22] )\n*(_DWORD *)&a1[4 * i + 32] = sub_439DEB(a4);\nelse\na1[i + 64] = sub_439C89(a4, 1u);\nif ( !a1[i + 64] )\n*(_DWORD *)&a1[4 * i + 72] = sub_439DEB(a4);\nif ( *a1 )\nsub_44DCE7((__int64)(a1 + 104), *(_DWORD *)&a1[4 * i + 72], a1[2], a4);\nif ( a1[1] )\nsub_44DCE7((__int64)(a1 + 648), *(_DWORD *)&a1[4 * i + 72], a1[2], a4);\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_44DDB8,sub_439C89,sub_439DEB,sub_44DCE7,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'iMaxSubLayers', 'a4': 'pRP', 'a1': 'pHrdParam', 'a2': 'bInfoFlag', 'sub_44DDB8': 'hevc_hrd_parameters', 'sub_439C89': 'u', 'sub_439DEB': 'ue', 'sub_44DCE7': '_sub_hrd_parameters'}"}
sm3_finup
73cf75a79f321b02c9cee06f430447f16153900e79ff3c136cea28b307a38510
zhangke5959
gmalg
NA
int sm3_finup(struct sm3_ctx *ctx, const u8 *data, u32 len, u8 *out) { #if DEBUG printf(" function: %s , line= %d \n", __FUNCTION__, __LINE__); #endif sm3_init(ctx); sm3_update(ctx, data, len); return sm3_final(ctx, out); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40740B", "function_addr": 4224011, "binary_name": "73cf75a79f321b02c9cee06f430447f16153900e79ff3c136cea28b307a38510.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_14], edx"], [6, "mov [rbp+var_20], rcx"], [7, "mov rax, [rbp+var_8]"], [8, "mov rdi, rax"], [9, "call sub_406509"], [10, "mov edx, [rbp+var_14]"], [11, "mov rcx, [rbp+var_10]"], [12, "mov rax, [rbp+var_8]"], [13, "mov rsi, rcx"], [14, "mov rdi, rax"], [15, "call sub_406F81"], [16, "mov rdx, [rbp+var_20]"], [17, "mov rax, [rbp+var_8]"], [18, "mov rsi, rdx"], [19, "mov rdi, rax"], [20, "call sub_4070A3"], [21, "leave"], [22, "retn"]], "data_dep": [[7, 3], [8, 7], [10, 5], [11, 4], [12, 3], [13, 11], [14, 12], [16, 6], [17, 3], [18, 16], [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/73cf75a79f321b02c9cee06f430447f16153900e79ff3c136cea28b307a38510_73cf75a79f321b02c9cee06f430447f16153900e79ff3c136cea28b307a38510.jsonl.gz", "strip_func_name": "sub_40740B", "query": "\n\n\n__int64 __fastcall sub_40740B(unsigned int *a1, unsigned int *a2, unsigned int a3, _BYTE *a4)\n{\nsub_406509(a1);\nsub_406F81(a1, a2, a3);\nreturn sub_4070A3(a1, a4);\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_40740B,sub_406509,sub_406F81,sub_4070A3,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'len', 'a4': 'out', 'a1': 'ctx', 'a2': 'data', 'sub_40740B': 'sm3_finup', 'sub_406509': 'sm3_init', 'sub_406F81': 'sm3_update', 'sub_4070A3': 'sm3_final'}"}
LogFileAppendTempLog
71be51c2f85ea3ab34e654fb6cf4736d90e26a6c9bf9212e26d17216cc13a637
ColumPaget
Movgrab
NA
int LogFileAppendTempLog(const char *LogPath, const char *TmpLogPath) { TLogFile *LogFile; char *Tempstr=NULL; STREAM *S; int result=FALSE; LogFile=LogFileGetEntry(LogPath); if (! LogFile) LogFile=LogFileCreate(LogPath, 0); LogFileClose(TmpLogPath); MakeDirPath(TmpLogPath, 0770); S=STREAMFileOpen(TmpLogPath,SF_RDONLY); if (LogFile && S) { STREAMLock(LogFile->S,LOCK_EX); Tempstr=STREAMReadLine(Tempstr,S); while(Tempstr) { STREAMWriteLine(Tempstr,LogFile->S); Tempstr=STREAMReadLine(Tempstr,S); } if (LogFile->Flags & LOGFILE_FLUSH) STREAMFlush(LogFile->S); STREAMLock(LogFile->S,LOCK_UN); unlink(TmpLogPath); result=TRUE; } if (S) STREAMClose(S); DestroyString(Tempstr); return(result); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_430FEC", "function_addr": 4394988, "binary_name": "71be51c2f85ea3ab34e654fb6cf4736d90e26a6c9bf9212e26d17216cc13a637.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+name], rsi"], [5, "mov [rbp+var_10], 0"], [6, "mov [rbp+var_14], 0"], [7, "mov rax, [rbp+var_28]"], [8, "mov rdi, rax"], [9, "call sub_4300AD"], [10, "mov [rbp+var_8], rax"], [11, "cmp [rbp+var_8], 0"], [12, "jnz short loc_431037"], [13, "mov rax, [rbp+var_28]"], [14, "mov esi, 0"], [15, "mov rdi, rax"], [16, "call sub_42FE57"], [17, "mov [rbp+var_8], rax"], [18, "mov rax, [rbp+name]"], [19, "mov rdi, rax"], [20, "call sub_430157"], [21, "mov rax, [rbp+name]"], [22, "mov esi, 1F8h"], [23, "mov rdi, rax"], [24, "call sub_416D85"], [25, "mov rax, [rbp+name]"], [26, "mov esi, 10h"], [27, "mov rdi, rax"], [28, "call sub_41324A"], [29, "mov [rbp+var_20], rax"], [30, "cmp [rbp+var_8], 0"], [31, "jz loc_431128"], [32, "cmp [rbp+var_20], 0"], [33, "jz loc_431128"], [34, "mov rax, [rbp+var_8]"], [35, "mov rax, [rax+58h]"], [36, "mov esi, 2"], [37, "mov rdi, rax"], [38, "call sub_413030"], [39, "mov rdx, [rbp+var_20]"], [40, "mov rax, [rbp+var_10]"], [41, "mov rsi, rdx"], [42, "mov rdi, rax"], [43, "call sub_41559C"], [44, "mov [rbp+var_10], rax"], [45, "jmp short loc_4310DB"], [46, "mov rax, [rbp+var_8]"], [47, "mov rdx, [rax+58h]"], [48, "mov rax, [rbp+var_10]"], [49, "mov rsi, rdx"], [50, "mov rdi, rax"], [51, "call sub_414E53"], [52, "mov rdx, [rbp+var_20]"], [53, "mov rax, [rbp+var_10]"], [54, "mov rsi, rdx"], [55, "mov rdi, rax"], [56, "call sub_41559C"], [57, "mov [rbp+var_10], rax"], [58, "cmp [rbp+var_10], 0"], [59, "jnz short loc_4310AD"], [60, "mov rax, [rbp+var_8]"], [61, "mov eax, [rax+8]"], [62, "and eax, 1"], [63, "test eax, eax"], [64, "jz short loc_431100"], [65, "mov rax, [rbp+var_8]"], [66, "mov rax, [rax+58h]"], [67, "mov rdi, rax"], [68, "call sub_412C95"], [69, "mov rax, [rbp+var_8]"], [70, "mov rax, [rax+58h]"], [71, "mov esi, 8"], [72, "mov rdi, rax"], [73, "call sub_413030"], [74, "mov rax, [rbp+name]"], [75, "mov rdi, rax"], [76, "call _unlink"], [77, "mov [rbp+var_14], 1"], [78, "cmp [rbp+var_20], 0"], [79, "jz short loc_43113B"], [80, "mov rax, [rbp+var_20]"], [81, "mov rdi, rax"], [82, "call sub_413F19"], [83, "mov rax, [rbp+var_10]"], [84, "mov rdi, rax"], [85, "call sub_40EE25"], [86, "mov eax, [rbp+var_14]"], [87, "leave"], [88, "retn"]], "data_dep": [[7, 3], [8, 7], [10, 9], [11, 10], [12, 11], [13, 3], [15, 13], [17, 16], [18, 4], [19, 18], [21, 4], [23, 21], [25, 4], [27, 25], [29, 28], [30, 17], [30, 10], [31, 30], [32, 29], [33, 32], [34, 10], [34, 17], [35, 34], [37, 35], [39, 29], [40, 5], [41, 39], [42, 40], [44, 43], [46, 17], [46, 10], [47, 46], [48, 57], [48, 44], [49, 47], [50, 48], [52, 29], [53, 44], [53, 57], [54, 52], [55, 53], [57, 56], [58, 57], [58, 44], [59, 58], [60, 10], [60, 17], [61, 60], [62, 61], [63, 62], [64, 63], [65, 17], [65, 10], [66, 65], [67, 66], [69, 10], [69, 17], [70, 69], [72, 70], [74, 4], [75, 74], [78, 29], [79, 78], [80, 29], [81, 80], [83, 57], [83, 5], [83, 44], [84, 83], [86, 77], [86, 6], [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/71be51c2f85ea3ab34e654fb6cf4736d90e26a6c9bf9212e26d17216cc13a637_71be51c2f85ea3ab34e654fb6cf4736d90e26a6c9bf9212e26d17216cc13a637.jsonl.gz", "strip_func_name": "sub_430FEC", "query": "\n\n\n__int64 __fastcall sub_430FEC(char *a1, char *a2)\n{\n_DWORD *v3; // [rsp+10h] [rbp-20h]\nunsigned int v4; // [rsp+1Ch] [rbp-14h]\nchar *i; // [rsp+20h] [rbp-10h]\n__int64 v6; // [rsp+28h] [rbp-8h]\n\nv4 = 0;\nv6 = sub_4300AD(a1);\nif ( !v6 )\nv6 = (__int64)sub_42FE57(a1, 0);\nsub_430157(a2);\nsub_416D85(a2, 0x1F8u);\nv3 = sub_41324A(a2, 16);\nif ( v6 && v3 )\n{\nsub_413030(*(_QWORD *)(v6 + 88), 2);\nfor ( i = sub_41559C(0LL, (__int64)v3); i; i = sub_41559C(i, (__int64)v3) )\nsub_414E53(i, *(_QWORD *)(v6 + 88));\nif ( (*(_DWORD *)(v6 + 8) & 1) != 0 )\nsub_412C95(*(_QWORD *)(v6 + 88));\nsub_413030(*(_QWORD *)(v6 + 88), 8);\nunlink(a2);\nv4 = 1;\n}\nif ( v3 )\nsub_413F19((__int64)v3);\nsub_40EE25(0LL);\nreturn v4;\n}\n\n\n\nQ:[a1,a2,v3,v4,i,v6,sub_430FEC,sub_4300AD,sub_42FE57,sub_430157,sub_416D85,sub_41324A,sub_413030,sub_41559C,sub_414E53,sub_412C95,sub_413F19,sub_40EE25,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'LogPath', 'a2': 'TmpLogPath', 'v3': 'S', 'v4': 'result', 'i': 'Tempstr', 'v6': 'LogFile', 'sub_430FEC': 'LogFileAppendTempLog', 'sub_4300AD': 'LogFileGetEntry', 'sub_42FE57': 'LogFileCreate', 'sub_430157': 'LogFileClose', 'sub_416D85': 'MakeDirPath', 'sub_41324A': 'STREAMFileOpen', 'sub_413030': 'STREAMLock', 'sub_41559C': 'STREAMReadLine', 'sub_414E53': 'STREAMWriteLine', 'sub_412C95': 'STREAMFlush', 'sub_413F19': 'STREAMClose', 'sub_40EE25': 'Destroy'}"}
asn1_bit_string_to_long
867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f
vanhoefm
hostap-wpa3
NA
unsigned long asn1_bit_string_to_long(const u8 *buf, size_t len) { unsigned long val = 0; const u8 *pos = buf; /* BER requires that unused bits are zero, so we can ignore the number * of unused bits */ pos++; if (len >= 2) val |= rotate_bits(*pos++); if (len >= 3) val |= ((unsigned long) rotate_bits(*pos++)) << 8; if (len >= 4) val |= ((unsigned long) rotate_bits(*pos++)) << 16; if (len >= 5) val |= ((unsigned long) rotate_bits(*pos++)) << 24; if (len >= 6) wpa_printf(MSG_DEBUG, "X509: %s - some bits ignored " "(BIT STRING length %lu)", __func__, (unsigned long) len); return val; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40ECFA", "function_addr": 4254970, "binary_name": "867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f.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 [rbp+var_8], 0"], [6, "mov rax, [rbp+var_18]"], [7, "mov [rbp+var_10], rax"], [8, "add [rbp+var_10], 1"], [9, "cmp [rbp+var_20], 1"], [10, "jbe short loc_40ED46"], [11, "mov rax, [rbp+var_10]"], [12, "lea rdx, [rax+1]"], [13, "mov [rbp+var_10], rdx"], [14, "movzx eax, byte ptr [rax]"], [15, "movzx eax, al"], [16, "mov edi, eax"], [17, "call sub_40ECBF"], [18, "movzx eax, al"], [19, "or [rbp+var_8], rax"], [20, "cmp [rbp+var_20], 2"], [21, "jbe short loc_40ED71"], [22, "mov rax, [rbp+var_10]"], [23, "lea rdx, [rax+1]"], [24, "mov [rbp+var_10], rdx"], [25, "movzx eax, byte ptr [rax]"], [26, "movzx eax, al"], [27, "mov edi, eax"], [28, "call sub_40ECBF"], [29, "movzx eax, al"], [30, "shl rax, 8"], [31, "or [rbp+var_8], rax"], [32, "cmp [rbp+var_20], 3"], [33, "jbe short loc_40ED9C"], [34, "mov rax, [rbp+var_10]"], [35, "lea rdx, [rax+1]"], [36, "mov [rbp+var_10], rdx"], [37, "movzx eax, byte ptr [rax]"], [38, "movzx eax, al"], [39, "mov edi, eax"], [40, "call sub_40ECBF"], [41, "movzx eax, al"], [42, "shl rax, 10h"], [43, "or [rbp+var_8], rax"], [44, "cmp [rbp+var_20], 4"], [45, "jbe short loc_40EDC7"], [46, "mov rax, [rbp+var_10]"], [47, "lea rdx, [rax+1]"], [48, "mov [rbp+var_10], rdx"], [49, "movzx eax, byte ptr [rax]"], [50, "movzx eax, al"], [51, "mov edi, eax"], [52, "call sub_40ECBF"], [53, "movzx eax, al"], [54, "shl rax, 18h"], [55, "or [rbp+var_8], rax"], [56, "cmp [rbp+var_20], 5"], [57, "jbe short loc_40EDEE"], [58, "mov rax, [rbp+var_20]"], [59, "mov rcx, rax"], [60, "mov edx, offset aAsn1BitStringT"], [61, "mov esi, offset aX509SSomeBitsI"], [62, "mov edi, 2"], [63, "mov eax, 0"], [64, "call sub_43C35A"], [65, "mov rax, [rbp+var_8]"], [66, "leave"], [67, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 4], [10, 9], [11, 8], [12, 11], [13, 12], [14, 11], [15, 14], [16, 15], [18, 17], [19, 18], [19, 5], [20, 4], [21, 20], [22, 13], [22, 8], [23, 22], [23, 12], [24, 23], [25, 22], [26, 25], [27, 26], [29, 28], [30, 29], [31, 19], [31, 30], [31, 5], [32, 4], [33, 32], [34, 13], [34, 24], [34, 8], [35, 12], [35, 23], [35, 34], [36, 35], [37, 34], [38, 37], [39, 38], [41, 40], [42, 41], [43, 5], [43, 31], [43, 42], [43, 19], [44, 4], [45, 44], [46, 13], [46, 36], [46, 24], [46, 8], [47, 35], [47, 46], [47, 12], [47, 23], [48, 47], [49, 46], [50, 49], [51, 50], [53, 52], [54, 53], [55, 43], [55, 54], [55, 31], [55, 19], [55, 5], [56, 4], [57, 56], [58, 4], [59, 58], [65, 43], [65, 31], [65, 19], [65, 5], [65, 55], [67, 65]]}
{"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/867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f_867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f.jsonl.gz", "strip_func_name": "sub_40ECFA", "query": "\n\n\n__int64 __fastcall sub_40ECFA(__int64 a1, unsigned __int64 a2, __int64 a3, __int64 a4, int a5, int a6)\n{\nunsigned __int8 *v6; // rax\nunsigned __int8 *v7; // rax\nunsigned __int8 *v9; // [rsp+10h] [rbp-10h]\n__int64 v10; // [rsp+18h] [rbp-8h]\n\nv10 = 0LL;\nv9 = (unsigned __int8 *)(a1 + 1);\nif ( a2 > 1 )\n{\nv9 = (unsigned __int8 *)(a1 + 2);\nv10 = (unsigned __int8)sub_40ECBF(*(_BYTE *)(a1 + 1));\n}\nif ( a2 > 2 )\n{\nv6 = v9++;\nv10 |= (unsigned __int64)(unsigned __int8)sub_40ECBF(*v6) << 8;\n}\nif ( a2 > 3 )\n{\nv7 = v9++;\nv10 |= (unsigned __int64)(unsigned __int8)sub_40ECBF(*v7) << 16;\n}\nif ( a2 > 4 )\nv10 |= (unsigned __int64)(unsigned __int8)sub_40ECBF(*v9) << 24;\nif ( a2 > 5 )\nsub_43C35A(\n2,\n(unsigned int)\"X509: %s - some bits ignored (BIT STRING length %lu)\",\n(unsigned int)\"asn1_bit_string_to_long\",\na2,\na5,\na6);\nreturn v10;\n}\n\n\n\nQ:[a1,a2,v9,v10,sub_40ECFA,sub_40ECBF,sub_43C35A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'buf', 'a2': 'len', 'v9': 'pos', 'v10': 'val', 'sub_40ECFA': 'asn1_bit_string_to_long', 'sub_40ECBF': 'rotate_bits', 'sub_43C35A': 'wpa_printf'}"}
testNotEqualFloatEachEqualLengthZero
46f2098509954f9b46a13d7d65487eeec0d3b9bfe0bee64bfb7700b5b7a10d06
aws-samples
connected-drink-dispenser-workshop
NA
void testNotEqualFloatEachEqualLengthZero(void) { #ifdef UNITY_EXCLUDE_FLOAT TEST_IGNORE(); #else float p0[1] = {0.0f}; EXPECT_ABORT_BEGIN TEST_ASSERT_EACH_EQUAL_FLOAT(0.0f, p0, 0); VERIFY_FAILS_END #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43FDE2", "function_addr": 4455906, "binary_name": "46f2098509954f9b46a13d7d65487eeec0d3b9bfe0bee64bfb7700b5b7a10d06.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov rax, cs:qword_46F180"], [4, "add rax, 1"], [5, "mov cs:qword_46F180, rax"], [6, "pxor xmm0, xmm0"], [7, "movss [rbp+var_4], xmm0"], [8, "call sub_437A0C"], [9, "mov rax, cs:qword_46F188"], [10, "add rax, 1"], [11, "mov cs:qword_46F188, rax"], [12, "mov edi, offset env"], [13, "call __setjmp"], [14, "mov rdx, cs:qword_46F190"], [15, "add rdx, 1"], [16, "mov cs:qword_46F190, rdx"], [17, "test eax, eax"], [18, "jnz short loc_43FEA0"], [19, "mov rax, cs:qword_46F198"], [20, "add rax, 1"], [21, "mov cs:qword_46F198, rax"], [22, "pxor xmm0, xmm0"], [23, "call sub_4063A6"], [24, "mov rdi, rax"], [25, "mov rax, cs:qword_46F1A0"], [26, "add rax, 1"], [27, "mov cs:qword_46F1A0, rax"], [28, "lea rax, [rbp+var_4]"], [29, "mov r9d, 0"], [30, "mov r8d, 1AB8h"], [31, "mov ecx, 0"], [32, "mov edx, 0"], [33, "mov rsi, rax"], [34, "call sub_403923"], [35, "mov rax, cs:qword_46F1A8"], [36, "add rax, 1"], [37, "mov cs:qword_46F1A8, rax"], [38, "call sub_437A39"], [39, "mov rax, cs:qword_46F1B0"], [40, "add rax, 1"], [41, "mov cs:qword_46F1B0, rax"], [42, "mov rax, cs:qword_46C120"], [43, "cmp rax, 1"], [44, "setnz al"], [45, "movzx eax, al"], [46, "mov cs:qword_46C120, rax"], [47, "mov rax, cs:qword_46C120"], [48, "cmp rax, 1"], [49, "jnz loc_43FF92"], [50, "mov rax, cs:qword_46F1B8"], [51, "add rax, 1"], [52, "mov cs:qword_46F1B8, rax"], [53, "mov cs:dword_46D624, 1"], [54, "mov rax, cs:qword_46C100"], [55, "mov rdi, rax"], [56, "call sub_4018BD"], [57, "mov rax, cs:qword_46F1C0"], [58, "add rax, 1"], [59, "mov cs:qword_46F1C0, rax"], [60, "mov edi, 3Ah "], [61, "call sub_437A88"], [62, "mov rax, cs:qword_46F1C8"], [63, "add rax, 1"], [64, "mov cs:qword_46F1C8, rax"], [65, "mov rax, cs:qword_46C0E8"], [66, "mov rdi, rax"], [67, "call sub_4014A8"], [68, "mov rax, cs:qword_46F1D0"], [69, "add rax, 1"], [70, "mov cs:qword_46F1D0, rax"], [71, "mov edi, offset aFailTestShould"], [72, "call sub_4014A8"], [73, "mov rax, cs:qword_46F1D8"], [74, "add rax, 1"], [75, "mov cs:qword_46F1D8, rax"], [76, "mov edi, 0Ah"], [77, "call sub_437A88"], [78, "mov rax, cs:qword_46F1E0"], [79, "add rax, 1"], [80, "mov cs:qword_46F1E0, rax"], [81, "nop"], [82, "leave"], [83, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [10, 9], [11, 10], [15, 14], [16, 15], [17, 13], [18, 17], [20, 19], [21, 20], [24, 23], [26, 25], [27, 26], [28, 26], [28, 7], [33, 28], [36, 35], [37, 36], [40, 39], [41, 40], [43, 42], [44, 42], [44, 43], [45, 44], [46, 45], [47, 46], [48, 47], [49, 48], [51, 50], [52, 51], [55, 54], [58, 57], [59, 58], [63, 62], [64, 63], [66, 65], [69, 68], [70, 69], [74, 73], [75, 74], [79, 78], [80, 79], [83, 79], [83, 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/46f2098509954f9b46a13d7d65487eeec0d3b9bfe0bee64bfb7700b5b7a10d06_46f2098509954f9b46a13d7d65487eeec0d3b9bfe0bee64bfb7700b5b7a10d06.jsonl.gz", "strip_func_name": "sub_43FDE2", "query": "\n\n\n__int64 sub_43FDE2()\n{\nint v0; // eax\n__int64 *v1; // rax\n__int64 result; // rax\nint v3; // [rsp+Ch] [rbp-4h] BYREF\n\n++qword_46F180;\nv3 = 0;\nsub_437A0C();\n++qword_46F188;\nv0 = _setjmp(env);\n++qword_46F190;\nif ( !v0 )\n{\n++qword_46F198;\nv1 = sub_4063A6(0.0);\n++qword_46F1A0;\nsub_403923((__int64)v1, (__int64)&v3, 0, 0LL, 6840LL, 0);\n++qword_46F1A8;\n}\nsub_437A39();\n++qword_46F1B0;\nqword_46C120 = qword_46C120 != 1;\nresult = qword_46C120;\nif ( qword_46C120 == 1 )\n{\n++qword_46F1B8;\ndword_46D624 = 1;\nsub_4018BD(qword_46C100);\n++qword_46F1C0;\nsub_437A88(58);\n++qword_46F1C8;\nsub_4014A8((char *)qword_46C0E8);\n++qword_46F1D0;\nsub_4014A8(\":FAIL: [[[[ Test Should Have Failed But Did Not ]]]]\");\n++qword_46F1D8;\nsub_437A88(10);\nresult = ++qword_46F1E0;\n}\nreturn result;\n}\n\n\n\nQ:[v3,sub_43FDE2,sub_437A0C,sub_4063A6,sub_403923,sub_437A39,sub_4018BD,sub_437A88,sub_4014A8,]\nAssistant: ", "hints": "[]", "response": "{'v3': 'p0', 'sub_43FDE2': 'testNotEqualFloatEachEqualLengthZero', 'sub_437A0C': 'startPutcharSpy', 'sub_4063A6': 'UnityFloatToPtr', 'sub_403923': 'UnityAssertEqualFloatArray', 'sub_437A39': 'endPutcharSpy', 'sub_4018BD': 'UnityPrintNumberUnsigned', 'sub_437A88': 'putcharSpy', 'sub_4014A8': 'UnityPrint'}"}
bpf_object__section_size
f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a
Netronome
libkefir
NA
int bpf_object__section_size(const struct bpf_object *obj, const char *name, __u32 *size) { int ret = -ENOENT; size_t d_size; *size = 0; if (!name) { return -EINVAL; } else if (!strcmp(name, DATA_SEC)) { if (obj->efile.data) *size = obj->efile.data->d_size; } else if (!strcmp(name, BSS_SEC)) { if (obj->efile.bss) *size = obj->efile.bss->d_size; } else if (!strcmp(name, RODATA_SEC)) { if (obj->efile.rodata) *size = obj->efile.rodata->d_size; } else if (!strcmp(name, STRUCT_OPS_SEC)) { if (obj->efile.st_ops_data) *size = obj->efile.st_ops_data->d_size; } else { ret = bpf_object_search_section_size(obj, name, &d_size); if (!ret) *size = d_size; } return *size ? 0 : ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_416C99", "function_addr": 4287641, "binary_name": "f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a.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+s1], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_4], 0FFFFFFFEh"], [7, "mov rax, [rbp+var_28]"], [8, "mov dword ptr [rax], 0"], [9, "cmp [rbp+s1], 0"], [10, "jnz short loc_416CCF"], [11, "mov eax, 0FFFFFFEAh"], [12, "jmp locret_416E19"], [13, "mov rax, [rbp+s1]"], [14, "mov esi, offset aData"], [15, "mov rdi, rax"], [16, "call _strcmp"], [17, "test eax, eax"], [18, "jnz short loc_416D14"], [19, "mov rax, [rbp+var_18]"], [20, "mov rax, [rax+108h]"], [21, "test rax, rax"], [22, "jz loc_416E05"], [23, "mov rax, [rbp+var_18]"], [24, "mov rax, [rax+108h]"], [25, "mov rax, [rax+10h]"], [26, "mov edx, eax"], [27, "mov rax, [rbp+var_28]"], [28, "mov [rax], edx"], [29, "jmp loc_416E05"], [30, "mov rax, [rbp+s1]"], [31, "mov esi, offset aBss"], [32, "mov rdi, rax"], [33, "call _strcmp"], [34, "test eax, eax"], [35, "jnz short loc_416D59"], [36, "mov rax, [rbp+var_18]"], [37, "mov rax, [rax+118h]"], [38, "test rax, rax"], [39, "jz loc_416E05"], [40, "mov rax, [rbp+var_18]"], [41, "mov rax, [rax+118h]"], [42, "mov rax, [rax+10h]"], [43, "mov edx, eax"], [44, "mov rax, [rbp+var_28]"], [45, "mov [rax], edx"], [46, "jmp loc_416E05"], [47, "mov rax, [rbp+s1]"], [48, "mov esi, offset aRodata"], [49, "mov rdi, rax"], [50, "call _strcmp"], [51, "test eax, eax"], [52, "jnz short loc_416D9B"], [53, "mov rax, [rbp+var_18]"], [54, "mov rax, [rax+110h]"], [55, "test rax, rax"], [56, "jz loc_416E05"], [57, "mov rax, [rbp+var_18]"], [58, "mov rax, [rax+110h]"], [59, "mov rax, [rax+10h]"], [60, "mov edx, eax"], [61, "mov rax, [rbp+var_28]"], [62, "mov [rax], edx"], [63, "jmp short loc_416E05"], [64, "mov rax, [rbp+s1]"], [65, "mov esi, offset aStructOps"], [66, "mov rdi, rax"], [67, "call _strcmp"], [68, "test eax, eax"], [69, "jnz short loc_416DD9"], [70, "mov rax, [rbp+var_18]"], [71, "mov rax, [rax+120h]"], [72, "test rax, rax"], [73, "jz short loc_416E05"], [74, "mov rax, [rbp+var_18]"], [75, "mov rax, [rax+120h]"], [76, "mov rax, [rax+10h]"], [77, "mov edx, eax"], [78, "mov rax, [rbp+var_28]"], [79, "mov [rax], edx"], [80, "jmp short loc_416E05"], [81, "lea rdx, [rbp+var_10]"], [82, "mov rcx, [rbp+s1]"], [83, "mov rax, [rbp+var_18]"], [84, "mov rsi, rcx"], [85, "mov rdi, rax"], [86, "call sub_416AF6"], [87, "mov [rbp+var_4], eax"], [88, "cmp [rbp+var_4], 0"], [89, "jnz short loc_416E05"], [90, "mov rax, [rbp+var_10]"], [91, "mov edx, eax"], [92, "mov rax, [rbp+var_28]"], [93, "mov [rax], edx"], [94, "mov rax, [rbp+var_28]"], [95, "mov eax, [rax]"], [96, "test eax, eax"], [97, "jnz short loc_416E14"], [98, "mov eax, [rbp+var_4]"], [99, "jmp short locret_416E19"], [100, "mov eax, 0"], [101, "leave"], [102, "retn"]], "data_dep": [[7, 5], [8, 7], [9, 4], [10, 9], [13, 4], [15, 13], [17, 16], [18, 17], [19, 3], [20, 8], [20, 19], [21, 20], [22, 21], [23, 3], [24, 8], [24, 28], [24, 23], [25, 24], [25, 8], [25, 28], [26, 25], [27, 5], [28, 27], [28, 26], [30, 4], [32, 30], [34, 33], [35, 34], [36, 3], [37, 8], [37, 36], [38, 37], [39, 38], [40, 3], [41, 40], [41, 8], [41, 45], [42, 41], [42, 45], [42, 8], [43, 42], [44, 5], [45, 43], [45, 44], [47, 4], [49, 47], [51, 50], [52, 51], [53, 3], [54, 8], [54, 53], [55, 54], [56, 55], [57, 3], [58, 62], [58, 57], [58, 8], [59, 8], [59, 58], [59, 62], [60, 59], [61, 5], [62, 60], [62, 61], [64, 4], [66, 64], [68, 67], [69, 68], [70, 3], [71, 8], [71, 70], [72, 71], [73, 72], [74, 3], [75, 8], [75, 74], [75, 79], [76, 79], [76, 8], [76, 75], [77, 76], [78, 5], [79, 78], [79, 77], [82, 4], [83, 3], [84, 82], [85, 83], [87, 86], [88, 87], [89, 88], [91, 90], [92, 5], [93, 92], [93, 91], [94, 5], [95, 79], [95, 45], [95, 8], [95, 93], [95, 28], [95, 94], [95, 62], [96, 95], [97, 96], [98, 87], [98, 6], [102, 98], [102, 100], [102, 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/f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a_f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a.jsonl.gz", "strip_func_name": "sub_416C99", "query": "\n\n\n__int64 __fastcall sub_416C99(_QWORD *a1, const char *a2, _DWORD *a3)\n{\n__int64 result; // rax\n__int64 v5; // [rsp+20h] [rbp-10h] BYREF\nunsigned int v6; // [rsp+2Ch] [rbp-4h]\n\nv6 = -2;\n*a3 = 0;\nif ( !a2 )\nreturn 4294967274LL;\nif ( !strcmp(a2, \".data\") )\n{\nif ( a1[33] )\n*a3 = *(_QWORD *)(a1[33] + 16LL);\n}\nelse if ( !strcmp(a2, \".bss\") )\n{\nif ( a1[35] )\n*a3 = *(_QWORD *)(a1[35] + 16LL);\n}\nelse if ( !strcmp(a2, \".rodata\") )\n{\nif ( a1[34] )\n*a3 = *(_QWORD *)(a1[34] + 16LL);\n}\nelse if ( !strcmp(a2, \".struct_ops\") )\n{\nif ( a1[36] )\n*a3 = *(_QWORD *)(a1[36] + 16LL);\n}\nelse\n{\nv6 = sub_416AF6((__int64)a1, a2, &v5);\nif ( !v6 )\n*a3 = v5;\n}\nif ( *a3 )\nresult = 0LL;\nelse\nresult = v6;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v5,sub_416C99,sub_416AF6,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'size', 'a1': 'obj', 'a2': 'name', 'v5': 'd_size', 'sub_416C99': 'bpf_object__section_size', 'sub_416AF6': 'bpf_object_search_section_size'}"}
min_of
743d86a446dfc42a179228cfc28a9e5a19acc5d98bf2df975f088b976c6b4a51
siara-cc
Unishox2
NA
long min_of(long c, long i) { return c > i ? i : c; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4025F6", "function_addr": 4204022, "binary_name": "743d86a446dfc42a179228cfc28a9e5a19acc5d98bf2df975f088b976c6b4a51.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, "cmp [rbp+var_8], rax"], [6, "cmovle rax, [rbp+var_8]"], [7, "pop rbp"], [8, "retn"]], "data_dep": [[4, 3], [5, 4], [5, 2], [6, 2], [7, 0], [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/743d86a446dfc42a179228cfc28a9e5a19acc5d98bf2df975f088b976c6b4a51_743d86a446dfc42a179228cfc28a9e5a19acc5d98bf2df975f088b976c6b4a51.jsonl.gz", "strip_func_name": "sub_4025F6", "query": "\n\n\n__int64 __fastcall sub_4025F6(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\n\nresult = a2;\nif ( a1 <= a2 )\nresult = a1;\nreturn result;\n}\n\n\n\nQ:[a1,sub_4025F6,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'sub_4025F6': 'min_of'}"}
textbox_cursor_ins
16265d36e785b01ab7c4f58b3656e0c6d08390a77bbd0bef82e61eaee743327b
seanpringle
goomwwm
NA
void textbox_cursor_ins(textbox *tb, char c) { char tmp[2] = { c, 0 }; textbox_insert(tb, tb->cursor, tmp); textbox_cursor_inc(tb); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405848", "function_addr": 4216904, "binary_name": "16265d36e785b01ab7c4f58b3656e0c6d08390a77bbd0bef82e61eaee743327b.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], al"], [6, "movzx eax, [rbp+var_1C]"], [7, "mov [rbp+var_2], al"], [8, "mov [rbp+var_1], 0"], [9, "mov rax, [rbp+var_18]"], [10, "movzx eax, word ptr [rax+20h]"], [11, "movsx ecx, ax"], [12, "lea rdx, [rbp+var_2]"], [13, "mov rax, [rbp+var_18]"], [14, "mov esi, ecx"], [15, "mov rdi, rax"], [16, "call sub_4056EB"], [17, "mov rax, [rbp+var_18]"], [18, "mov rdi, rax"], [19, "call sub_40565B"], [20, "nop"], [21, "leave"], [22, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [9, 3], [10, 9], [11, 10], [12, 7], [13, 3], [14, 11], [15, 13], [17, 3], [18, 17], [22, 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/16265d36e785b01ab7c4f58b3656e0c6d08390a77bbd0bef82e61eaee743327b_16265d36e785b01ab7c4f58b3656e0c6d08390a77bbd0bef82e61eaee743327b.jsonl.gz", "strip_func_name": "sub_405848", "query": "\n\n\n__int64 __fastcall sub_405848(__int64 a1, char a2)\n{\nchar v3[2]; // [rsp+1Eh] [rbp-2h] BYREF\n\nv3[0] = a2;\nv3[1] = 0;\nsub_4056EB(a1, *(__int16 *)(a1 + 32), v3);\nreturn sub_40565B(a1);\n}\n\n\n\nQ:[a1,a2,v3,sub_405848,sub_4056EB,sub_40565B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'tb', 'a2': 'c', 'v3': 'tmp', 'sub_405848': 'textbox_cursor_ins', 'sub_4056EB': 'textbox_insert', 'sub_40565B': 'textbox_cursor_inc'}"}
sim_poll_kbd
52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc
open-simh
simh
NA
t_stat sim_poll_kbd (void) { t_stat c; sim_last_poll_kbd_time = sim_os_msec (); /* record when this poll happened */ if (sim_send_poll_data (&sim_con_send, &c)) /* injected input characters available? */ return c; if (!sim_rem_master_mode) { if ((sim_con_ldsc.rxbps) && /* rate limiting && */ (sim_gtime () < sim_con_ldsc.rxnexttime)) /* too soon? */ return SCPE_OK; /* not yet */ if (sim_ttisatty ()) c = sim_os_poll_kbd (); /* get character */ else c = SCPE_OK; if (c == SCPE_STOP) { /* ^E */ stop_cpu = TRUE; /* Force a stop (which is picked up by sim_process_event */ return SCPE_OK; } if ((sim_con_tmxr.master == 0) && /* not Telnet? */ (sim_con_ldsc.serport == 0)) { /* and not serial? */ if (c && sim_con_ldsc.rxbps) /* got something && rate limiting? */ sim_con_ldsc.rxnexttime = /* compute next input time */ floor (sim_gtime () + ((sim_con_ldsc.rxdeltausecs * sim_timer_inst_per_sec ()) / USECS_PER_SECOND)); if (c) sim_debug (DBG_RCV, &sim_con_telnet, "sim_poll_kbd() returning: '%c' (0x%02X)\n", sim_isprint (c & 0xFF) ? c & 0xFF : '.', c); return c; /* in-window */ } if (!sim_con_ldsc.conn) { /* no telnet or serial connection? */ if (!sim_con_ldsc.txbfd) /* unbuffered? */ return SCPE_LOST; /* connection lost */ if (tmxr_poll_conn (&sim_con_tmxr) >= 0) /* poll connect */ sim_con_ldsc.rcve = 1; /* rcv enabled */ else /* fall through to poll reception */ return SCPE_OK; /* unconnected and buffered - nothing to receive */ } } tmxr_poll_rx (&sim_con_tmxr); /* poll for input */ if ((c = (t_stat)tmxr_getc_ln (&sim_con_ldsc))) { /* any char? */ sim_debug (DBG_RCV, &sim_con_telnet, "sim_poll_kbd() tmxr_getc_ln() returning: '%c' (0x%02X)\n", sim_isprint (c & 0xFF) ? c & 0xFF : '.', c); return (c & (SCPE_BREAK | 0377)) | SCPE_KFLAG; } return SCPE_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4487DC", "function_addr": 4491228, "binary_name": "52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 28h"], [4, "call sub_44C5AB"], [5, "mov cs:dword_15125A8, eax"], [6, "lea rax, [rbp+var_14]"], [7, "mov rsi, rax"], [8, "mov edi, offset unk_4E4240"], [9, "call sub_438010"], [10, "test eax, eax"], [11, "jz short loc_44880D"], [12, "mov eax, [rbp+var_14]"], [13, "jmp loc_448A5D"], [14, "mov eax, cs:dword_1513924"], [15, "test eax, eax"], [16, "jnz loc_4489D1"], [17, "mov eax, cs:dword_1512698"], [18, "test eax, eax"], [19, "jz short loc_448842"], [20, "call sub_433941"], [21, "movsd xmm1, cs:qword_15126B0"], [22, "comisd xmm1, xmm0"], [23, "jbe short loc_448842"], [24, "mov eax, 0"], [25, "jmp loc_448A5D"], [26, "call sub_4492E7"], [27, "test eax, eax"], [28, "jz short loc_448855"], [29, "call sub_44976B"], [30, "mov [rbp+var_14], eax"], [31, "jmp short loc_44885C"], [32, "mov [rbp+var_14], 0"], [33, "mov eax, [rbp+var_14]"], [34, "cmp eax, 4Dh "], [35, "jnz short loc_448878"], [36, "mov cs:dword_14EFB00, 1"], [37, "mov eax, 0"], [38, "jmp loc_448A5D"], [39, "mov eax, cs:dword_4E31B0"], [40, "test eax, eax"], [41, "jnz loc_44898F"], [42, "mov rax, cs:qword_15126F8"], [43, "test rax, rax"], [44, "jnz loc_44898F"], [45, "mov eax, [rbp+var_14]"], [46, "test eax, eax"], [47, "jz loc_448926"], [48, "mov eax, cs:dword_1512698"], [49, "test eax, eax"], [50, "jz short loc_448926"], [51, "call sub_433941"], [52, "movsd [rbp+var_30], xmm0"], [53, "mov eax, cs:dword_15126A8"], [54, "mov eax, eax"], [55, "test rax, rax"], [56, "js short loc_4488D2"], [57, "pxor xmm2, xmm2"], [58, "cvtsi2sd xmm2, rax"], [59, "movsd [rbp+var_28], xmm2"], [60, "jmp short loc_4488F0"], [61, "mov rdx, rax"], [62, "shr rdx, 1"], [63, "and eax, 1"], [64, "or rdx, rax"], [65, "pxor xmm0, xmm0"], [66, "cvtsi2sd xmm0, rdx"], [67, "addsd xmm0, xmm0"], [68, "movsd [rbp+var_28], xmm0"], [69, "call sub_45373D"], [70, "mulsd xmm0, [rbp+var_28]"], [71, "movsd xmm1, cs:qword_4B0D40"], [72, "divsd xmm0, xmm1"], [73, "addsd xmm0, [rbp+var_30]"], [74, "movq rax, xmm0"], [75, "movq xmm0, rax"], [76, "call _floor"], [77, "movq rax, xmm0"], [78, "mov cs:qword_15126B0, rax"], [79, "mov eax, [rbp+var_14]"], [80, "test eax, eax"], [81, "jz short loc_448987"], [82, "mov rax, cs:qword_14EFB20"], [83, "test rax, rax"], [84, "jz short loc_448987"], [85, "mov eax, cs:dword_4E3154"], [86, "and eax, 200000h"], [87, "test eax, eax"], [88, "jz short loc_448987"], [89, "mov ebx, [rbp+var_14]"], [90, "mov eax, [rbp+var_14]"], [91, "movzx eax, al"], [92, "mov edi, eax"], [93, "call sub_44BDA4"], [94, "test eax, eax"], [95, "jz short loc_448964"], [96, "mov eax, [rbp+var_14]"], [97, "movzx eax, al"], [98, "jmp short loc_448969"], [99, "mov eax, 2Eh "], [100, "mov r8d, ebx"], [101, "mov ecx, eax"], [102, "mov edx, offset aSimPollKbdRetu"], [103, "mov esi, offset off_4E30E0"], [104, "mov edi, 200000h"], [105, "mov eax, 0"], [106, "call sub_43A3B9"], [107, "mov eax, [rbp+var_14]"], [108, "jmp loc_448A5D"], [109, "mov eax, cs:dword_15125C0"], [110, "test eax, eax"], [111, "jnz short loc_4489D1"], [112, "mov eax, cs:dword_1512648"], [113, "test eax, eax"], [114, "jnz short loc_4489AD"], [115, "mov eax, 67h "], [116, "jmp loc_448A5D"], [117, "mov edi, offset unk_4E31A0"], [118, "call sub_45A82D"], [119, "test eax, eax"], [120, "js short loc_4489C7"], [121, "mov cs:dword_15125FC, 1"], [122, "jmp short loc_4489D1"], [123, "mov eax, 0"], [124, "jmp loc_448A5D"], [125, "mov edi, offset unk_4E31A0"], [126, "call sub_45F636"], [127, "mov edi, offset dword_15125C0"], [128, "call sub_45ED39"], [129, "mov [rbp+var_14], eax"], [130, "mov eax, [rbp+var_14]"], [131, "test eax, eax"], [132, "jz short loc_448A58"], [133, "mov rax, cs:qword_14EFB20"], [134, "test rax, rax"], [135, "jz short loc_448A49"], [136, "mov eax, cs:dword_4E3154"], [137, "and eax, 200000h"], [138, "test eax, eax"], [139, "jz short loc_448A49"], [140, "mov ebx, [rbp+var_14]"], [141, "mov eax, [rbp+var_14]"], [142, "movzx eax, al"], [143, "mov edi, eax"], [144, "call sub_44BDA4"], [145, "test eax, eax"], [146, "jz short loc_448A26"], [147, "mov eax, [rbp+var_14]"], [148, "movzx eax, al"], [149, "jmp short loc_448A2B"], [150, "mov eax, 2Eh "], [151, "mov r8d, ebx"], [152, "mov ecx, eax"], [153, "mov edx, offset aSimPollKbdTmxr"], [154, "mov esi, offset off_4E30E0"], [155, "mov edi, 200000h"], [156, "mov eax, 0"], [157, "call sub_43A3B9"], [158, "mov eax, [rbp+var_14]"], [159, "and eax, 200000FFh"], [160, "or eax, 10000000h"], [161, "jmp short loc_448A5D"], [162, "mov eax, 0"], [163, "mov rbx, [rbp+var_8]"], [164, "leave"], [165, "retn"]], "data_dep": [[5, 4], [6, 4], [7, 6], [10, 9], [11, 10], [15, 14], [16, 15], [18, 17], [19, 18], [22, 21], [23, 18], [27, 26], [28, 27], [30, 29], [33, 30], [33, 32], [34, 33], [35, 34], [40, 39], [41, 40], [43, 42], [44, 43], [45, 30], [45, 32], [46, 45], [47, 46], [49, 48], [50, 49], [54, 53], [55, 54], [56, 55], [58, 55], [58, 57], [59, 58], [61, 55], [62, 61], [63, 55], [64, 62], [64, 63], [66, 64], [66, 65], [67, 66], [68, 67], [70, 59], [70, 68], [70, 67], [72, 70], [72, 71], [73, 52], [73, 72], [74, 73], [75, 74], [77, 75], [78, 77], [79, 30], [79, 32], [80, 79], [81, 80], [83, 82], [84, 83], [86, 85], [87, 86], [88, 87], [89, 30], [89, 32], [90, 30], [90, 32], [91, 90], [92, 91], [94, 93], [95, 94], [96, 30], [96, 32], [97, 96], [100, 89], [101, 97], [101, 99], [107, 30], [107, 32], [110, 109], [111, 110], [113, 112], [114, 113], [119, 118], [120, 119], [129, 128], [130, 129], [131, 130], [132, 131], [134, 133], [135, 134], [137, 136], [138, 137], [139, 138], [140, 129], [141, 129], [142, 141], [143, 142], [145, 144], [146, 145], [147, 129], [148, 147], [151, 140], [152, 148], [152, 150], [158, 129], [159, 158], [160, 159], [165, 115], [165, 37], [165, 12], [165, 160], [165, 162], [165, 107], [165, 123], [165, 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/52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc_52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc.jsonl.gz", "strip_func_name": "sub_4487DC", "query": "\n\n\n__int64 sub_4487DC()\n{\ndouble v1; // xmm0_8\nunsigned int v2; // ebx\n__int64 v3; // r9\nunsigned int v4; // eax\nunsigned int v5; // ebx\n__int64 v6; // r9\nunsigned int v7; // eax\ndouble v8; // [rsp+0h] [rbp-30h]\ndouble v9; // [rsp+8h] [rbp-28h]\nunsigned int v10[3]; // [rsp+1Ch] [rbp-14h] BYREF\n\ndword_15125A8 = sub_44C5AB();\nif ( (unsigned int)sub_438010((__int64)&unk_4E4240, (int *)v10) )\nreturn v10[0];\nif ( !dword_1513924 )\n{\nif ( dword_1512698 && *(double *)&qword_15126B0 > sub_433941() )\nreturn 0LL;\nif ( (unsigned int)sub_4492E7() )\nv10[0] = sub_44976B();\nelse\nv10[0] = 0;\nif ( v10[0] == 77 )\n{\ndword_14EFB00 = 1;\nreturn 0LL;\n}\nif ( !dword_4E31B0 && !qword_15126F8 )\n{\nif ( v10[0] && dword_1512698 )\n{\nv8 = sub_433941();\nv9 = (double)dword_15126A8;\nv1 = sub_45373D();\nqword_15126B0 = floor(v1 * v9 / 1000000.0 + v8);\n}\nif ( v10[0] && qword_14EFB20 && (dword_4E3154 & 0x200000) != 0 )\n{\nv2 = v10[0];\nif ( (unsigned int)sub_44BDA4(LOBYTE(v10[0])) )\nv4 = LOBYTE(v10[0]);\nelse\nv4 = 46;\nsub_43A3B9(\n0x200000,\n(__int64)&off_4E30E0,\n\"sim_poll_kbd() returning: '%c' (0x%02X)\\n\",\nv4,\nv2,\nv3,\n*(_QWORD *)&v8);\n}\nreturn v10[0];\n}\nif ( !dword_15125C0 )\n{\nif ( !dword_1512648 )\nreturn 103LL;\nif ( (int)sub_45A82D(&unk_4E31A0) < 0 )\nreturn 0LL;\ndword_15125FC = 1;\n}\n}\nsub_45F636(&unk_4E31A0);\nv10[0] = sub_45ED39(&dword_15125C0);\nif ( !v10[0] )\nreturn 0LL;\nif ( qword_14EFB20 && (dword_4E3154 & 0x200000) != 0 )\n{\nv5 = v10[0];\nif ( (unsigned int)sub_44BDA4(LOBYTE(v10[0])) )\nv7 = LOBYTE(v10[0]);\nelse\nv7 = 46;\nsub_43A3B9(0x200000, (__int64)&off_4E30E0, \"sim_poll_kbd() tmxr_getc_ln() returning: '%c' (0x%02X)\\n\", v7, v5, v6);\n}\nreturn v10[0] & 0x200000FF | 0x10000000;\n}\n\n\n\nQ:[v10,sub_4487DC,sub_44C5AB,sub_438010,sub_433941,sub_4492E7,sub_44976B,sub_45373D,sub_44BDA4,sub_43A3B9,sub_45A82D,sub_45F636,sub_45ED39,]\nAssistant: ", "hints": "[]", "response": "{'v10': 'c', 'sub_4487DC': 'sim_poll_kbd', 'sub_44C5AB': 'sim_os_msec', 'sub_438010': 'sim_send_poll_data', 'sub_433941': 'sim_gtime', 'sub_4492E7': 'sim_ttisatty', 'sub_44976B': 'sim_os_poll_kbd', 'sub_45373D': 'sim_timer_inst_per_sec', 'sub_44BDA4': 'sim_isprint', 'sub_43A3B9': '_sim_debug_device', 'sub_45A82D': 'tmxr_poll_conn', 'sub_45F636': 'tmxr_poll_rx', 'sub_45ED39': 'tmxr_getc_ln'}"}
pixie_fopen_shareable
5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c
bi-zone
masscan-ng
NA
int pixie_fopen_shareable(FILE **in_fp, const char *filename, unsigned is_append) { FILE *fp; *in_fp = NULL; #if defined(WIN32) /* PORTABILITY: WINDOWS * This bit of code deals with the fact that on Windows, fopen() opens * a file so that it can't be moved. This code opens it a different * way so that we can move it. * * NOTE: this is probably overkill, it appears that there is a better * API _fsopen() that does what I want without all this nonsense. */ { HANDLE hFile; int fd; /* The normal POSIX C functions lock the file */ /* int fd = open(filename, O_RDWR | O_CREAT, _S_IREAD | _S_IWRITE); */ /* Fails */ /* int fd = _sopen(filename, O_RDWR | O_CREAT, _SH_DENYNO, _S_IREAD | * _S_IWRITE); */ /* Also fails */ /* We need to use WINAPI + _open_osfhandle to be able to use file descriptors (instead of WINAPI handles) */ hFile = CreateFileA(filename, GENERIC_WRITE | (is_append ? FILE_APPEND_DATA : 0), FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_TEMPORARY, NULL); if (hFile == INVALID_HANDLE_VALUE) { return -1; } fd = _open_osfhandle((intptr_t)hFile, _O_CREAT | _O_RDONLY | _O_TEMPORARY); if (fd == -1) { LOG(LEVEL_ERROR, "_open_osfhandle: %s\n", strerror(errno)); return -1; } fp = _fdopen(fd, "w"); } #else fp = fopen(filename, is_append ? "a" : "w"); if (fp == NULL) return errno; #endif *in_fp = fp; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_427494", "function_addr": 4355220, "binary_name": "5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c.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+filename], rsi"], [5, "mov [rbp+var_24], edx"], [6, "mov rax, [rbp+var_18]"], [7, "mov qword ptr [rax], 0"], [8, "cmp [rbp+var_24], 0"], [9, "jz short loc_4274BF"], [10, "mov edx, offset modes"], [11, "jmp short loc_4274C4"], [12, "mov edx, offset aW"], [13, "mov rax, [rbp+filename]"], [14, "mov rsi, rdx"], [15, "mov rdi, rax"], [16, "call _fopen"], [17, "mov [rbp+var_8], rax"], [18, "cmp [rbp+var_8], 0"], [19, "jnz short loc_4274E7"], [20, "call ___errno_location"], [21, "mov eax, [rax]"], [22, "jmp short locret_4274F7"], [23, "mov rax, [rbp+var_18]"], [24, "mov rdx, [rbp+var_8]"], [25, "mov [rax], rdx"], [26, "mov eax, 0"], [27, "leave"], [28, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 5], [9, 8], [13, 4], [14, 10], [14, 12], [15, 13], [17, 16], [18, 17], [19, 18], [21, 20], [21, 7], [23, 3], [24, 17], [25, 23], [25, 24], [28, 21], [28, 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/5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c_5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c.jsonl.gz", "strip_func_name": "sub_427494", "query": "\n\n\n__int64 __fastcall sub_427494(FILE **a1, const char *a2, int a3)\n{\nconst char *v3; // rdx\nFILE *v5; // [rsp+28h] [rbp-8h]\n\n*a1 = 0LL;\nif ( a3 )\nv3 = \"a\";\nelse\nv3 = \"w\";\nv5 = fopen(a2, v3);\nif ( !v5 )\nreturn (unsigned int)*__errno_location();\n*a1 = v5;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v5,sub_427494,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'is_append', 'a1': 'in_fp', 'a2': 'filename', 'v5': 'fp', 'sub_427494': 'pixie_fopen_shareable'}"}
draw_border_generic
53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783
sukesh-ak
ESP32-TUX
NA
void draw_border_generic(lv_draw_ctx_t * draw_ctx, const lv_area_t * outer_area, const lv_area_t * inner_area, lv_coord_t rout, lv_coord_t rin, lv_color_t color, lv_opa_t opa, lv_blend_mode_t blend_mode) { opa = opa >= LV_OPA_COVER ? LV_OPA_COVER : opa; bool mask_any = lv_draw_mask_is_any(outer_area); #if LV_DRAW_COMPLEX if(!mask_any && rout == 0 && rin == 0) { draw_border_simple(draw_ctx, outer_area, inner_area, color, opa); return; } /*Get clipped draw area which is the real draw area. *It is always the same or inside `coords`*/ lv_area_t draw_area; if(!_lv_area_intersect(&draw_area, outer_area, draw_ctx->clip_area)) return; int32_t draw_area_w = lv_area_get_width(&draw_area); lv_draw_sw_blend_dsc_t blend_dsc; lv_memset_00(&blend_dsc, sizeof(blend_dsc)); blend_dsc.mask_buf = lv_mem_buf_get(draw_area_w);; /*Create mask for the outer area*/ int16_t mask_rout_id = LV_MASK_ID_INV; lv_draw_mask_radius_param_t mask_rout_param; if(rout > 0) { lv_draw_mask_radius_init(&mask_rout_param, outer_area, rout, false); mask_rout_id = lv_draw_mask_add(&mask_rout_param, NULL); } /*Create mask for the inner mask*/ lv_draw_mask_radius_param_t mask_rin_param; lv_draw_mask_radius_init(&mask_rin_param, inner_area, rin, true); int16_t mask_rin_id = lv_draw_mask_add(&mask_rin_param, NULL); int32_t h; lv_area_t blend_area; blend_dsc.blend_area = &blend_area; blend_dsc.mask_area = &blend_area; blend_dsc.color = color; blend_dsc.opa = opa; blend_dsc.blend_mode = blend_mode; /*Calculate the x and y coordinates where the straight parts area*/ lv_area_t core_area; core_area.x1 = LV_MAX(outer_area->x1 + rout, inner_area->x1); core_area.x2 = LV_MIN(outer_area->x2 - rout, inner_area->x2); core_area.y1 = LV_MAX(outer_area->y1 + rout, inner_area->y1); core_area.y2 = LV_MIN(outer_area->y2 - rout, inner_area->y2); lv_coord_t core_w = lv_area_get_width(&core_area); bool top_side = outer_area->y1 <= inner_area->y1 ? true : false; bool bottom_side = outer_area->y2 >= inner_area->y2 ? true : false; /*If there is other masks, need to draw line by line*/ if(mask_any) { blend_area.x1 = draw_area.x1; blend_area.x2 = draw_area.x2; for(h = draw_area.y1; h <= draw_area.y2; h++) { if(!top_side && h < core_area.y1) continue; if(!bottom_side && h > core_area.y2) break; blend_area.y1 = h; blend_area.y2 = h; lv_memset_ff(blend_dsc.mask_buf, draw_area_w); blend_dsc.mask_res = lv_draw_mask_apply(blend_dsc.mask_buf, draw_area.x1, h, draw_area_w); lv_draw_sw_blend(draw_ctx, &blend_dsc); } lv_draw_mask_free_param(&mask_rin_param); lv_draw_mask_remove_id(mask_rin_id); if(mask_rout_id != LV_MASK_ID_INV) { lv_draw_mask_free_param(&mask_rout_param); lv_draw_mask_remove_id(mask_rout_id); } lv_mem_buf_release(blend_dsc.mask_buf); return; } /*No masks*/ bool left_side = outer_area->x1 <= inner_area->x1 ? true : false; bool right_side = outer_area->x2 >= inner_area->x2 ? true : false; bool split_hor = true; if(left_side && right_side && top_side && bottom_side && core_w < SPLIT_LIMIT) { split_hor = false; } blend_dsc.mask_res = LV_DRAW_MASK_RES_FULL_COVER; /*Draw the straight lines first if they are long enough*/ if(top_side && split_hor) { blend_area.x1 = core_area.x1; blend_area.x2 = core_area.x2; blend_area.y1 = outer_area->y1; blend_area.y2 = inner_area->y1 - 1; lv_draw_sw_blend(draw_ctx, &blend_dsc); } if(bottom_side && split_hor) { blend_area.x1 = core_area.x1; blend_area.x2 = core_area.x2; blend_area.y1 = inner_area->y2 + 1; blend_area.y2 = outer_area->y2; lv_draw_sw_blend(draw_ctx, &blend_dsc); } if(left_side) { blend_area.x1 = outer_area->x1; blend_area.x2 = inner_area->x1 - 1; blend_area.y1 = core_area.y1; blend_area.y2 = core_area.y2; lv_draw_sw_blend(draw_ctx, &blend_dsc); } if(right_side) { blend_area.x1 = inner_area->x2 + 1; blend_area.x2 = outer_area->x2; blend_area.y1 = core_area.y1; blend_area.y2 = core_area.y2; lv_draw_sw_blend(draw_ctx, &blend_dsc); } /*Draw the corners*/ lv_coord_t blend_w; /*Left and right corner together if they are close to each other*/ if(!split_hor) { /*Calculate the top corner and mirror it to the bottom*/ blend_area.x1 = draw_area.x1; blend_area.x2 = draw_area.x2; lv_coord_t max_h = LV_MAX(rout, inner_area->y1 - outer_area->y1); for(h = 0; h < max_h; h++) { lv_coord_t top_y = outer_area->y1 + h; lv_coord_t bottom_y = outer_area->y2 - h; if(top_y < draw_area.y1 && bottom_y > draw_area.y2) continue; /*This line is clipped now*/ lv_memset_ff(blend_dsc.mask_buf, draw_area_w); blend_dsc.mask_res = lv_draw_mask_apply(blend_dsc.mask_buf, blend_area.x1, top_y, draw_area_w); if(top_y >= draw_area.y1) { blend_area.y1 = top_y; blend_area.y2 = top_y; lv_draw_sw_blend(draw_ctx, &blend_dsc); } if(bottom_y <= draw_area.y2) { blend_area.y1 = bottom_y; blend_area.y2 = bottom_y; lv_draw_sw_blend(draw_ctx, &blend_dsc); } } } else { /*Left corners*/ blend_area.x1 = draw_area.x1; blend_area.x2 = LV_MIN(draw_area.x2, core_area.x1 - 1); blend_w = lv_area_get_width(&blend_area); if(blend_w > 0) { if(left_side || top_side) { for(h = draw_area.y1; h < core_area.y1; h++) { blend_area.y1 = h; blend_area.y2 = h; lv_memset_ff(blend_dsc.mask_buf, blend_w); blend_dsc.mask_res = lv_draw_mask_apply(blend_dsc.mask_buf, blend_area.x1, h, blend_w); lv_draw_sw_blend(draw_ctx, &blend_dsc); } } if(left_side || bottom_side) { for(h = core_area.y2 + 1; h <= draw_area.y2; h++) { blend_area.y1 = h; blend_area.y2 = h; lv_memset_ff(blend_dsc.mask_buf, blend_w); blend_dsc.mask_res = lv_draw_mask_apply(blend_dsc.mask_buf, blend_area.x1, h, blend_w); lv_draw_sw_blend(draw_ctx, &blend_dsc); } } } /*Right corners*/ blend_area.x1 = LV_MAX(draw_area.x1, core_area.x2 + 1); blend_area.x2 = draw_area.x2; blend_w = lv_area_get_width(&blend_area); if(blend_w > 0) { if(right_side || top_side) { for(h = draw_area.y1; h < core_area.y1; h++) { blend_area.y1 = h; blend_area.y2 = h; lv_memset_ff(blend_dsc.mask_buf, blend_w); blend_dsc.mask_res = lv_draw_mask_apply(blend_dsc.mask_buf, blend_area.x1, h, blend_w); lv_draw_sw_blend(draw_ctx, &blend_dsc); } } if(right_side || bottom_side) { for(h = core_area.y2 + 1; h <= draw_area.y2; h++) { blend_area.y1 = h; blend_area.y2 = h; lv_memset_ff(blend_dsc.mask_buf, blend_w); blend_dsc.mask_res = lv_draw_mask_apply(blend_dsc.mask_buf, blend_area.x1, h, blend_w); lv_draw_sw_blend(draw_ctx, &blend_dsc); } } } } lv_draw_mask_free_param(&mask_rin_param); lv_draw_mask_remove_id(mask_rin_id); lv_draw_mask_free_param(&mask_rout_param); lv_draw_mask_remove_id(mask_rout_id); lv_mem_buf_release(blend_dsc.mask_buf); #else /*LV_DRAW_COMPLEX*/ LV_UNUSED(blend_mode); LV_UNUSED(rout); LV_UNUSED(rin); if(!mask_any) { draw_border_simple(draw_ctx, outer_area, inner_area, color, opa); return; } #endif /*LV_DRAW_COMPLEX*/ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_440999", "function_addr": 4458905, "binary_name": "53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 100h"], [3, "mov [rbp+var_D8], rdi"], [4, "mov [rbp+var_E0], rsi"], [5, "mov [rbp+var_E8], rdx"], [6, "mov eax, ecx"], [7, "mov edx, r8d"], [8, "mov [rbp+var_EE], r9w"], [9, "mov esi, [rbp+arg_0]"], [10, "mov ecx, [rbp+arg_8]"], [11, "mov [rbp+var_EC], ax"], [12, "mov eax, edx"], [13, "mov [rbp+var_F0], ax"], [14, "mov eax, esi"], [15, "mov [rbp+var_F4], al"], [16, "mov eax, ecx"], [17, "mov [rbp+var_F8], al"], [18, "mov rax, [rbp+var_E0]"], [19, "mov rdi, rax"], [20, "call sub_42EE2A"], [21, "mov [rbp+var_A], al"], [22, "movzx eax, [rbp+var_A]"], [23, "xor eax, 1"], [24, "test al, al"], [25, "jz short loc_440A50"], [26, "cmp [rbp+var_EC], 0"], [27, "jnz short loc_440A50"], [28, "cmp [rbp+var_F0], 0"], [29, "jnz short loc_440A50"], [30, "movzx edi, [rbp+var_F4]"], [31, "movzx ecx, [rbp+var_EE]"], [32, "mov rdx, [rbp+var_E8]"], [33, "mov rsi, [rbp+var_E0]"], [34, "mov rax, [rbp+var_D8]"], [35, "mov r8d, edi"], [36, "mov rdi, rax"], [37, "call sub_4413D5"], [38, "jmp locret_4413D3"], [39, "mov rax, [rbp+var_D8]"], [40, "mov rdx, [rax+10h]"], [41, "mov rcx, [rbp+var_E0]"], [42, "lea rax, [rbp+var_28]"], [43, "mov rsi, rcx"], [44, "mov rdi, rax"], [45, "call sub_469D5E"], [46, "xor eax, 1"], [47, "test al, al"], [48, "jnz loc_4413D2"], [49, "lea rax, [rbp+var_28]"], [50, "mov rdi, rax"], [51, "call sub_43D497"], [52, "cwde"], [53, "mov [rbp+var_10], eax"], [54, "lea rax, [rbp+var_60]"], [55, "mov esi, 38h "], [56, "mov rdi, rax"], [57, "call sub_46EBF9"], [58, "mov eax, [rbp+var_10]"], [59, "mov edi, eax"], [60, "call sub_46E2BB"], [61, "mov [rbp+var_48], rax"], [62, "mov [rbp+var_2], 0FFFFh"], [63, "cmp [rbp+var_EC], 0"], [64, "jle short loc_440AF5"], [65, "movsx edx, [rbp+var_EC]"], [66, "mov rsi, [rbp+var_E0]"], [67, "lea rax, [rbp+var_90]"], [68, "mov ecx, 0"], [69, "mov rdi, rax"], [70, "call sub_42F4AD"], [71, "lea rax, [rbp+var_90]"], [72, "mov esi, 0"], [73, "mov rdi, rax"], [74, "call sub_42E9E2"], [75, "mov [rbp+var_2], ax"], [76, "movsx edx, [rbp+var_F0]"], [77, "mov rsi, [rbp+var_E8]"], [78, "lea rax, [rbp+var_C0]"], [79, "mov ecx, 1"], [80, "mov rdi, rax"], [81, "call sub_42F4AD"], [82, "lea rax, [rbp+var_C0]"], [83, "mov esi, 0"], [84, "mov rdi, rax"], [85, "call sub_42E9E2"], [86, "mov [rbp+var_12], ax"], [87, "lea rax, [rbp+var_C8]"], [88, "mov [rbp+var_60], rax"], [89, "lea rax, [rbp+var_C8]"], [90, "mov [rbp+var_38], rax"], [91, "movzx eax, [rbp+var_EE]"], [92, "mov [rbp+var_50], ax"], [93, "movzx eax, [rbp+var_F4]"], [94, "mov [rbp+var_30], al"], [95, "movzx eax, [rbp+var_F8]"], [96, "mov [rbp+var_2F], al"], [97, "mov rax, [rbp+var_E8]"], [98, "movzx eax, word ptr [rax]"], [99, "cwde"], [100, "mov rdx, [rbp+var_E0]"], [101, "movzx edx, word ptr [rdx]"], [102, "movsx ecx, dx"], [103, "movsx edx, [rbp+var_EC]"], [104, "add edx, ecx"], [105, "cmp eax, edx"], [106, "cmovl eax, edx"], [107, "mov [rbp+var_D0], ax"], [108, "mov rax, [rbp+var_E8]"], [109, "movzx eax, word ptr [rax+4]"], [110, "cwde"], [111, "mov rdx, [rbp+var_E0]"], [112, "movzx edx, word ptr [rdx+4]"], [113, "movsx edx, dx"], [114, "movsx ecx, [rbp+var_EC]"], [115, "sub edx, ecx"], [116, "cmp eax, edx"], [117, "cmovg eax, edx"], [118, "mov [rbp+var_CC], ax"], [119, "mov rax, [rbp+var_E8]"], [120, "movzx eax, word ptr [rax+2]"], [121, "cwde"], [122, "mov rdx, [rbp+var_E0]"], [123, "movzx edx, word ptr [rdx+2]"], [124, "movsx ecx, dx"], [125, "movsx edx, [rbp+var_EC]"], [126, "add edx, ecx"], [127, "cmp eax, edx"], [128, "cmovl eax, edx"], [129, "mov [rbp+var_CE], ax"], [130, "mov rax, [rbp+var_E8]"], [131, "movzx eax, word ptr [rax+6]"], [132, "cwde"], [133, "mov rdx, [rbp+var_E0]"], [134, "movzx edx, word ptr [rdx+6]"], [135, "movsx edx, dx"], [136, "movsx ecx, [rbp+var_EC]"], [137, "sub edx, ecx"], [138, "cmp eax, edx"], [139, "cmovg eax, edx"], [140, "mov [rbp+var_CA], ax"], [141, "lea rax, [rbp+var_D0]"], [142, "mov rdi, rax"], [143, "call sub_43D497"], [144, "mov [rbp+var_14], ax"], [145, "mov rax, [rbp+var_E0]"], [146, "movzx edx, word ptr [rax+2]"], [147, "mov rax, [rbp+var_E8]"], [148, "movzx eax, word ptr [rax+2]"], [149, "cmp dx, ax"], [150, "setle al"], [151, "mov [rbp+var_15], al"], [152, "mov rax, [rbp+var_E0]"], [153, "movzx edx, word ptr [rax+6]"], [154, "mov rax, [rbp+var_E8]"], [155, "movzx eax, word ptr [rax+6]"], [156, "cmp dx, ax"], [157, "setnl al"], [158, "mov [rbp+var_16], al"], [159, "cmp [rbp+var_A], 0"], [160, "jz loc_440D91"], [161, "movzx eax, [rbp+var_28]"], [162, "mov [rbp+var_C8], ax"], [163, "movzx eax, [rbp+var_24]"], [164, "mov [rbp+var_C4], ax"], [165, "movzx eax, [rbp+var_26]"], [166, "cwde"], [167, "mov [rbp+var_8], eax"], [168, "jmp loc_440D34"], [169, "movzx eax, [rbp+var_15]"], [170, "xor eax, 1"], [171, "test al, al"], [172, "jz short loc_440CB4"], [173, "movzx eax, [rbp+var_CE]"], [174, "cwde"], [175, "cmp [rbp+var_8], eax"], [176, "jl short loc_440D2F"], [177, "movzx eax, [rbp+var_16]"], [178, "xor eax, 1"], [179, "test al, al"], [180, "jz short loc_440CCC"], [181, "movzx eax, [rbp+var_CA]"], [182, "cwde"], [183, "cmp [rbp+var_8], eax"], [184, "jg short loc_440D44"], [185, "mov eax, [rbp+var_8]"], [186, "mov [rbp+var_C6], ax"], [187, "mov eax, [rbp+var_8]"], [188, "mov [rbp+var_C2], ax"], [189, "mov eax, [rbp+var_10]"], [190, "movsxd rdx, eax"], [191, "mov rax, [rbp+var_48]"], [192, "mov rsi, rdx"], [193, "mov rdi, rax"], [194, "call sub_46ED27"], [195, "mov eax, [rbp+var_10]"], [196, "movsx ecx, ax"], [197, "mov eax, [rbp+var_8]"], [198, "movsx edx, ax"], [199, "movzx eax, [rbp+var_28]"], [200, "movsx esi, ax"], [201, "mov rax, [rbp+var_48]"], [202, "mov rdi, rax"], [203, "call sub_42EA62"], [204, "mov [rbp+var_40], al"], [205, "lea rdx, [rbp+var_60]"], [206, "mov rax, [rbp+var_D8]"], [207, "mov rsi, rdx"], [208, "mov rdi, rax"], [209, "call sub_437A5B"], [210, "jmp short loc_440D30"], [211, "nop"], [212, "add [rbp+var_8], 1"], [213, "movzx eax, [rbp+var_22]"], [214, "cwde"], [215, "cmp [rbp+var_8], eax"], [216, "jle loc_440C9C"], [217, "jmp short loc_440D45"], [218, "nop"], [219, "lea rax, [rbp+var_C0]"], [220, "mov rdi, rax"], [221, "call sub_42ECB0"], [222, "movsx eax, [rbp+var_12]"], [223, "mov edi, eax"], [224, "call sub_42EBE1"], [225, "cmp [rbp+var_2], 0FFFFh"], [226, "jz short loc_440D80"], [227, "lea rax, [rbp+var_90]"], [228, "mov rdi, rax"], [229, "call sub_42ECB0"], [230, "movsx eax, [rbp+var_2]"], [231, "mov edi, eax"], [232, "call sub_42EBE1"], [233, "mov rax, [rbp+var_48]"], [234, "mov rdi, rax"], [235, "call sub_46E4D4"], [236, "jmp locret_4413D3"], [237, "mov rax, [rbp+var_E0]"], [238, "movzx edx, word ptr [rax]"], [239, "mov rax, [rbp+var_E8]"], [240, "movzx eax, word ptr [rax]"], [241, "cmp dx, ax"], [242, "setle al"], [243, "mov [rbp+var_17], al"], [244, "mov rax, [rbp+var_E0]"], [245, "movzx edx, word ptr [rax+4]"], [246, "mov rax, [rbp+var_E8]"], [247, "movzx eax, word ptr [rax+4]"], [248, "cmp dx, ax"], [249, "setnl al"], [250, "mov [rbp+var_18], al"], [251, "mov [rbp+var_9], 1"], [252, "cmp [rbp+var_17], 0"], [253, "jz short loc_440DF4"], [254, "cmp [rbp+var_18], 0"], [255, "jz short loc_440DF4"], [256, "cmp [rbp+var_15], 0"], [257, "jz short loc_440DF4"], [258, "cmp [rbp+var_16], 0"], [259, "jz short loc_440DF4"], [260, "cmp [rbp+var_14], 31h "], [261, "jg short loc_440DF4"], [262, "mov [rbp+var_9], 0"], [263, "mov [rbp+var_40], 1"], [264, "cmp [rbp+var_15], 0"], [265, "jz short loc_440E5D"], [266, "cmp [rbp+var_9], 0"], [267, "jz short loc_440E5D"], [268, "movzx eax, [rbp+var_D0]"], [269, "mov [rbp+var_C8], ax"], [270, "movzx eax, [rbp+var_CC]"], [271, "mov [rbp+var_C4], ax"], [272, "mov rax, [rbp+var_E0]"], [273, "movzx eax, word ptr [rax+2]"], [274, "mov [rbp+var_C6], ax"], [275, "mov rax, [rbp+var_E8]"], [276, "movzx eax, word ptr [rax+2]"], [277, "sub eax, 1"], [278, "mov [rbp+var_C2], ax"], [279, "lea rdx, [rbp+var_60]"], [280, "mov rax, [rbp+var_D8]"], [281, "mov rsi, rdx"], [282, "mov rdi, rax"], [283, "call sub_437A5B"], [284, "cmp [rbp+var_16], 0"], [285, "jz short loc_440EC2"], [286, "cmp [rbp+var_9], 0"], [287, "jz short loc_440EC2"], [288, "movzx eax, [rbp+var_D0]"], [289, "mov [rbp+var_C8], ax"], [290, "movzx eax, [rbp+var_CC]"], [291, "mov [rbp+var_C4], ax"], [292, "mov rax, [rbp+var_E8]"], [293, "movzx eax, word ptr [rax+6]"], [294, "add eax, 1"], [295, "mov [rbp+var_C6], ax"], [296, "mov rax, [rbp+var_E0]"], [297, "movzx eax, word ptr [rax+6]"], [298, "mov [rbp+var_C2], ax"], [299, "lea rdx, [rbp+var_60]"], [300, "mov rax, [rbp+var_D8]"], [301, "mov rsi, rdx"], [302, "mov rdi, rax"], [303, "call sub_437A5B"], [304, "cmp [rbp+var_17], 0"], [305, "jz short loc_440F1F"], [306, "mov rax, [rbp+var_E0]"], [307, "movzx eax, word ptr [rax]"], [308, "mov [rbp+var_C8], ax"], [309, "mov rax, [rbp+var_E8]"], [310, "movzx eax, word ptr [rax]"], [311, "sub eax, 1"], [312, "mov [rbp+var_C4], ax"], [313, "movzx eax, [rbp+var_CE]"], [314, "mov [rbp+var_C6], ax"], [315, "movzx eax, [rbp+var_CA]"], [316, "mov [rbp+var_C2], ax"], [317, "lea rdx, [rbp+var_60]"], [318, "mov rax, [rbp+var_D8]"], [319, "mov rsi, rdx"], [320, "mov rdi, rax"], [321, "call sub_437A5B"], [322, "cmp [rbp+var_18], 0"], [323, "jz short loc_440F7E"], [324, "mov rax, [rbp+var_E8]"], [325, "movzx eax, word ptr [rax+4]"], [326, "add eax, 1"], [327, "mov [rbp+var_C8], ax"], [328, "mov rax, [rbp+var_E0]"], [329, "movzx eax, word ptr [rax+4]"], [330, "mov [rbp+var_C4], ax"], [331, "movzx eax, [rbp+var_CE]"], [332, "mov [rbp+var_C6], ax"], [333, "movzx eax, [rbp+var_CA]"], [334, "mov [rbp+var_C2], ax"], [335, "lea rdx, [rbp+var_60]"], [336, "mov rax, [rbp+var_D8]"], [337, "mov rsi, rdx"], [338, "mov rdi, rax"], [339, "call sub_437A5B"], [340, "movzx eax, [rbp+var_9]"], [341, "xor eax, 1"], [342, "test al, al"], [343, "jz loc_4410E0"], [344, "movzx eax, [rbp+var_28]"], [345, "mov [rbp+var_C8], ax"], [346, "movzx eax, [rbp+var_24]"], [347, "mov [rbp+var_C4], ax"], [348, "mov rax, [rbp+var_E8]"], [349, "movzx eax, word ptr [rax+2]"], [350, "movsx edx, ax"], [351, "mov rax, [rbp+var_E0]"], [352, "movzx eax, word ptr [rax+2]"], [353, "cwde"], [354, "sub edx, eax"], [355, "movsx eax, [rbp+var_EC]"], [356, "cmp edx, eax"], [357, "cmovge eax, edx"], [358, "mov [rbp+var_1C], ax"], [359, "mov [rbp+var_8], 0"], [360, "jmp loc_4410CE"], [361, "mov rax, [rbp+var_E0]"], [362, "movzx eax, word ptr [rax+2]"], [363, "mov edx, eax"], [364, "mov eax, [rbp+var_8]"], [365, "add eax, edx"], [366, "mov [rbp+var_1E], ax"], [367, "mov rax, [rbp+var_E0]"], [368, "movzx eax, word ptr [rax+6]"], [369, "mov edx, eax"], [370, "mov eax, [rbp+var_8]"], [371, "mov ecx, eax"], [372, "mov eax, edx"], [373, "sub eax, ecx"], [374, "mov [rbp+var_20], ax"], [375, "movzx eax, [rbp+var_26]"], [376, "cmp [rbp+var_1E], ax"], [377, "jge short loc_441023"], [378, "movzx eax, [rbp+var_22]"], [379, "cmp [rbp+var_20], ax"], [380, "jg loc_4410C9"], [381, "mov eax, [rbp+var_10]"], [382, "movsxd rdx, eax"], [383, "mov rax, [rbp+var_48]"], [384, "mov rsi, rdx"], [385, "mov rdi, rax"], [386, "call sub_46ED27"], [387, "mov eax, [rbp+var_10]"], [388, "movsx ecx, ax"], [389, "movsx edx, [rbp+var_1E]"], [390, "movzx eax, [rbp+var_C8]"], [391, "movsx esi, ax"], [392, "mov rax, [rbp+var_48]"], [393, "mov rdi, rax"], [394, "call sub_42EA62"], [395, "mov [rbp+var_40], al"], [396, "movzx eax, [rbp+var_26]"], [397, "cmp [rbp+var_1E], ax"], [398, "jl short loc_441091"], [399, "movzx eax, [rbp+var_1E]"], [400, "mov [rbp+var_C6], ax"], [401, "movzx eax, [rbp+var_1E]"], [402, "mov [rbp+var_C2], ax"], [403, "lea rdx, [rbp+var_60]"], [404, "mov rax, [rbp+var_D8]"], [405, "mov rsi, rdx"], [406, "mov rdi, rax"], [407, "call sub_437A5B"], [408, "movzx eax, [rbp+var_22]"], [409, "cmp [rbp+var_20], ax"], [410, "jg short loc_4410CA"], [411, "movzx eax, [rbp+var_20]"], [412, "mov [rbp+var_C6], ax"], [413, "movzx eax, [rbp+var_20]"], [414, "mov [rbp+var_C2], ax"], [415, "lea rdx, [rbp+var_60]"], [416, "mov rax, [rbp+var_D8]"], [417, "mov rsi, rdx"], [418, "mov rdi, rax"], [419, "call sub_437A5B"], [420, "jmp short loc_4410CA"], [421, "nop"], [422, "add [rbp+var_8], 1"], [423, "movsx eax, [rbp+var_1C]"], [424, "cmp [rbp+var_8], eax"], [425, "jl loc_440FDB"], [426, "jmp loc_441390"], [427, "movzx eax, [rbp+var_28]"], [428, "mov [rbp+var_C8], ax"], [429, "movzx eax, [rbp+var_D0]"], [430, "cwde"], [431, "lea edx, [rax-1]"], [432, "movzx eax, [rbp+var_24]"], [433, "cwde"], [434, "cmp edx, eax"], [435, "cmovle eax, edx"], [436, "mov [rbp+var_C4], ax"], [437, "lea rax, [rbp+var_C8]"], [438, "mov rdi, rax"], [439, "call sub_43D497"], [440, "mov [rbp+var_1A], ax"], [441, "cmp [rbp+var_1A], 0"], [442, "jle loc_441238"], [443, "cmp [rbp+var_17], 0"], [444, "jnz short loc_441131"], [445, "cmp [rbp+var_15], 0"], [446, "jz short loc_4411AD"], [447, "movzx eax, [rbp+var_26]"], [448, "cwde"], [449, "mov [rbp+var_8], eax"], [450, "jmp short loc_4411A0"], [451, "mov eax, [rbp+var_8]"], [452, "mov [rbp+var_C6], ax"], [453, "mov eax, [rbp+var_8]"], [454, "mov [rbp+var_C2], ax"], [455, "movsx rdx, [rbp+var_1A]"], [456, "mov rax, [rbp+var_48]"], [457, "mov rsi, rdx"], [458, "mov rdi, rax"], [459, "call sub_46ED27"], [460, "movsx ecx, [rbp+var_1A]"], [461, "mov eax, [rbp+var_8]"], [462, "movsx edx, ax"], [463, "movzx eax, [rbp+var_C8]"], [464, "movsx esi, ax"], [465, "mov rax, [rbp+var_48]"], [466, "mov rdi, rax"], [467, "call sub_42EA62"], [468, "mov [rbp+var_40], al"], [469, "lea rdx, [rbp+var_60]"], [470, "mov rax, [rbp+var_D8]"], [471, "mov rsi, rdx"], [472, "mov rdi, rax"], [473, "call sub_437A5B"], [474, "add [rbp+var_8], 1"], [475, "movzx eax, [rbp+var_CE]"], [476, "cwde"], [477, "cmp [rbp+var_8], eax"], [478, "jl short loc_44113B"], [479, "cmp [rbp+var_17], 0"], [480, "jnz short loc_4411B9"], [481, "cmp [rbp+var_16], 0"], [482, "jz short loc_441238"], [483, "movzx eax, [rbp+var_CA]"], [484, "cwde"], [485, "add eax, 1"], [486, "mov [rbp+var_8], eax"], [487, "jmp short loc_44122E"], [488, "mov eax, [rbp+var_8]"], [489, "mov [rbp+var_C6], ax"], [490, "mov eax, [rbp+var_8]"], [491, "mov [rbp+var_C2], ax"], [492, "movsx rdx, [rbp+var_1A]"], [493, "mov rax, [rbp+var_48]"], [494, "mov rsi, rdx"], [495, "mov rdi, rax"], [496, "call sub_46ED27"], [497, "movsx ecx, [rbp+var_1A]"], [498, "mov eax, [rbp+var_8]"], [499, "movsx edx, ax"], [500, "movzx eax, [rbp+var_C8]"], [501, "movsx esi, ax"], [502, "mov rax, [rbp+var_48]"], [503, "mov rdi, rax"], [504, "call sub_42EA62"], [505, "mov [rbp+var_40], al"], [506, "lea rdx, [rbp+var_60]"], [507, "mov rax, [rbp+var_D8]"], [508, "mov rsi, rdx"], [509, "mov rdi, rax"], [510, "call sub_437A5B"], [511, "add [rbp+var_8], 1"], [512, "movzx eax, [rbp+var_22]"], [513, "cwde"], [514, "cmp [rbp+var_8], eax"], [515, "jle short loc_4411C9"], [516, "movzx eax, [rbp+var_CC]"], [517, "cwde"], [518, "lea edx, [rax+1]"], [519, "movzx eax, [rbp+var_28]"], [520, "cwde"], [521, "cmp edx, eax"], [522, "cmovge eax, edx"], [523, "mov [rbp+var_C8], ax"], [524, "movzx eax, [rbp+var_24]"], [525, "mov [rbp+var_C4], ax"], [526, "lea rax, [rbp+var_C8]"], [527, "mov rdi, rax"], [528, "call sub_43D497"], [529, "mov [rbp+var_1A], ax"], [530, "cmp [rbp+var_1A], 0"], [531, "jle loc_441390"], [532, "cmp [rbp+var_18], 0"], [533, "jnz short loc_441289"], [534, "cmp [rbp+var_15], 0"], [535, "jz short loc_441305"], [536, "movzx eax, [rbp+var_26]"], [537, "cwde"], [538, "mov [rbp+var_8], eax"], [539, "jmp short loc_4412F8"], [540, "mov eax, [rbp+var_8]"], [541, "mov [rbp+var_C6], ax"], [542, "mov eax, [rbp+var_8]"], [543, "mov [rbp+var_C2], ax"], [544, "movsx rdx, [rbp+var_1A]"], [545, "mov rax, [rbp+var_48]"], [546, "mov rsi, rdx"], [547, "mov rdi, rax"], [548, "call sub_46ED27"], [549, "movsx ecx, [rbp+var_1A]"], [550, "mov eax, [rbp+var_8]"], [551, "movsx edx, ax"], [552, "movzx eax, [rbp+var_C8]"], [553, "movsx esi, ax"], [554, "mov rax, [rbp+var_48]"], [555, "mov rdi, rax"], [556, "call sub_42EA62"], [557, "mov [rbp+var_40], al"], [558, "lea rdx, [rbp+var_60]"], [559, "mov rax, [rbp+var_D8]"], [560, "mov rsi, rdx"], [561, "mov rdi, rax"], [562, "call sub_437A5B"], [563, "add [rbp+var_8], 1"], [564, "movzx eax, [rbp+var_CE]"], [565, "cwde"], [566, "cmp [rbp+var_8], eax"], [567, "jl short loc_441293"], [568, "cmp [rbp+var_18], 0"], [569, "jnz short loc_441311"], [570, "cmp [rbp+var_16], 0"], [571, "jz short loc_441390"], [572, "movzx eax, [rbp+var_CA]"], [573, "cwde"], [574, "add eax, 1"], [575, "mov [rbp+var_8], eax"], [576, "jmp short loc_441386"], [577, "mov eax, [rbp+var_8]"], [578, "mov [rbp+var_C6], ax"], [579, "mov eax, [rbp+var_8]"], [580, "mov [rbp+var_C2], ax"], [581, "movsx rdx, [rbp+var_1A]"], [582, "mov rax, [rbp+var_48]"], [583, "mov rsi, rdx"], [584, "mov rdi, rax"], [585, "call sub_46ED27"], [586, "movsx ecx, [rbp+var_1A]"], [587, "mov eax, [rbp+var_8]"], [588, "movsx edx, ax"], [589, "movzx eax, [rbp+var_C8]"], [590, "movsx esi, ax"], [591, "mov rax, [rbp+var_48]"], [592, "mov rdi, rax"], [593, "call sub_42EA62"], [594, "mov [rbp+var_40], al"], [595, "lea rdx, [rbp+var_60]"], [596, "mov rax, [rbp+var_D8]"], [597, "mov rsi, rdx"], [598, "mov rdi, rax"], [599, "call sub_437A5B"], [600, "add [rbp+var_8], 1"], [601, "movzx eax, [rbp+var_22]"], [602, "cwde"], [603, "cmp [rbp+var_8], eax"], [604, "jle short loc_441321"], [605, "lea rax, [rbp+var_C0]"], [606, "mov rdi, rax"], [607, "call sub_42ECB0"], [608, "movsx eax, [rbp+var_12]"], [609, "mov edi, eax"], [610, "call sub_42EBE1"], [611, "lea rax, [rbp+var_90]"], [612, "mov rdi, rax"], [613, "call sub_42ECB0"], [614, "movsx eax, [rbp+var_2]"], [615, "mov edi, eax"], [616, "call sub_42EBE1"], [617, "mov rax, [rbp+var_48]"], [618, "mov rdi, rax"], [619, "call sub_46E4D4"], [620, "jmp short locret_4413D3"], [621, "nop"], [622, "leave"], [623, "retn"]], "data_dep": [[11, 6], [12, 7], [13, 12], [14, 9], [15, 14], [16, 10], [17, 16], [18, 4], [19, 18], [21, 20], [22, 21], [23, 22], [24, 23], [25, 24], [26, 11], [27, 26], [28, 13], [29, 28], [30, 15], [31, 8], [32, 5], [33, 4], [34, 3], [35, 30], [36, 34], [39, 3], [40, 39], [41, 4], [42, 39], [43, 41], [44, 42], [46, 45], [47, 46], [48, 47], [49, 47], [50, 49], [53, 51], [54, 51], [56, 54], [58, 53], [59, 58], [61, 60], [63, 11], [64, 63], [65, 11], [66, 4], [67, 60], [69, 67], [71, 70], [73, 71], [75, 74], [76, 13], [77, 5], [78, 74], [78, 60], [80, 78], [82, 81], [84, 82], [86, 85], [87, 85], [88, 87], [89, 87], [90, 89], [91, 8], [92, 91], [93, 15], [94, 93], [95, 17], [96, 95], [97, 5], [98, 97], [100, 4], [101, 100], [102, 101], [103, 11], [104, 102], [104, 103], [105, 104], [105, 98], [106, 105], [106, 104], [107, 106], [108, 5], [109, 108], [111, 4], [112, 111], [113, 112], [114, 11], [115, 114], [115, 113], [116, 109], [116, 115], [117, 116], [117, 115], [118, 117], [119, 5], [120, 119], [122, 4], [123, 122], [124, 123], [125, 11], [126, 125], [126, 124], [127, 126], [127, 120], [128, 127], [128, 126], [129, 128], [130, 5], [131, 130], [133, 4], [134, 133], [135, 134], [136, 11], [137, 135], [137, 136], [138, 137], [138, 131], [139, 138], [139, 137], [140, 139], [141, 107], [141, 139], [142, 141], [144, 143], [145, 4], [146, 145], [147, 5], [148, 147], [149, 146], [149, 148], [150, 148], [151, 150], [152, 4], [153, 152], [154, 5], [155, 154], [156, 153], [156, 155], [157, 156], [157, 155], [158, 157], [159, 21], [160, 159], [162, 161], [164, 163], [167, 165], [169, 151], [170, 169], [171, 170], [172, 171], [173, 129], [175, 173], [175, 167], [175, 212], [176, 175], [177, 158], [178, 177], [179, 178], [180, 179], [181, 140], [183, 181], [183, 167], [183, 212], [184, 183], [185, 212], [185, 167], [186, 185], [187, 212], [187, 167], [188, 187], [189, 53], [190, 189], [191, 61], [192, 190], [193, 191], [195, 53], [196, 195], [197, 167], [197, 212], [198, 197], [200, 199], [201, 61], [202, 201], [204, 203], [205, 88], [205, 198], [206, 3], [207, 205], [208, 206], [212, 212], [212, 167], [215, 167], [215, 212], [215, 213], [216, 215], [219, 213], [219, 181], [220, 219], [222, 86], [223, 222], [225, 62], [225, 75], [226, 225], [227, 224], [228, 227], [230, 62], [230, 75], [231, 230], [233, 61], [234, 233], [237, 4], [238, 237], [239, 5], [240, 239], [241, 238], [241, 240], [242, 240], [243, 242], [244, 4], [245, 244], [246, 5], [247, 246], [248, 245], [248, 247], [249, 247], [249, 248], [250, 249], [252, 243], [253, 252], [254, 250], [255, 254], [256, 151], [257, 256], [258, 158], [259, 258], [260, 144], [261, 260], [264, 151], [265, 264], [266, 262], [266, 251], [267, 266], [268, 107], [269, 268], [270, 118], [271, 270], [272, 4], [273, 272], [274, 273], [275, 5], [276, 275], [277, 276], [278, 277], [279, 88], [279, 245], [280, 3], [281, 279], [282, 280], [284, 158], [285, 284], [286, 262], [286, 251], [287, 286], [288, 107], [289, 288], [290, 118], [291, 290], [292, 5], [293, 292], [294, 293], [295, 294], [296, 4], [297, 296], [298, 297], [299, 245], [299, 279], [299, 88], [300, 3], [301, 299], [302, 300], [304, 243], [305, 304], [306, 4], [307, 306], [308, 307], [309, 5], [310, 309], [311, 310], [312, 311], [313, 129], [314, 313], [315, 140], [316, 315], [317, 299], [317, 279], [317, 88], [317, 245], [318, 3], [319, 317], [320, 318], [322, 250], [323, 322], [324, 5], [325, 324], [326, 325], [327, 326], [328, 4], [329, 328], [330, 329], [331, 129], [332, 331], [333, 140], [334, 333], [335, 88], [335, 245], [335, 299], [335, 317], [335, 279], [336, 3], [337, 335], [338, 336], [340, 262], [340, 251], [341, 340], [342, 341], [343, 342], [345, 344], [347, 346], [348, 5], [349, 348], [350, 349], [351, 4], [352, 351], [354, 352], [354, 350], [355, 11], [356, 355], [356, 354], [357, 356], [357, 354], [358, 357], [361, 4], [362, 361], [363, 362], [364, 359], [364, 422], [365, 364], [365, 363], [366, 365], [367, 4], [368, 367], [369, 368], [370, 422], [370, 359], [371, 370], [372, 369], [373, 371], [373, 372], [374, 373], [376, 366], [376, 375], [377, 376], [379, 374], [379, 378], [380, 379], [381, 53], [382, 381], [383, 61], [384, 382], [385, 383], [387, 53], [388, 387], [389, 366], [390, 345], [391, 390], [392, 61], [393, 392], [395, 394], [397, 396], [397, 366], [398, 397], [399, 366], [400, 399], [401, 366], [402, 401], [403, 389], [403, 88], [404, 3], [405, 403], [406, 404], [409, 408], [409, 374], [410, 409], [411, 374], [412, 411], [413, 374], [414, 413], [415, 88], [415, 403], [415, 389], [416, 3], [417, 415], [418, 416], [422, 422], [422, 359], [423, 358], [424, 359], [424, 423], [424, 422], [425, 424], [428, 427], [429, 107], [431, 335], [431, 279], [431, 245], [431, 299], [431, 429], [431, 317], [434, 432], [434, 431], [435, 431], [436, 435], [437, 428], [437, 435], [438, 437], [440, 439], [441, 440], [442, 441], [443, 243], [444, 443], [445, 151], [446, 445], [449, 447], [451, 474], [451, 449], [452, 451], [453, 474], [453, 449], [454, 453], [455, 440], [456, 61], [457, 455], [458, 456], [460, 440], [461, 474], [461, 449], [462, 461], [463, 428], [464, 463], [465, 61], [466, 465], [468, 467], [469, 462], [469, 88], [470, 3], [471, 469], [472, 470], [474, 449], [474, 474], [475, 129], [477, 449], [477, 475], [477, 474], [478, 477], [479, 243], [480, 479], [481, 158], [482, 481], [483, 140], [485, 483], [486, 485], [488, 511], [488, 486], [489, 488], [490, 486], [490, 511], [491, 490], [492, 440], [493, 61], [494, 492], [495, 493], [497, 440], [498, 486], [498, 511], [499, 498], [500, 428], [501, 500], [502, 61], [503, 502], [505, 504], [506, 499], [506, 88], [507, 3], [508, 506], [509, 507], [511, 511], [511, 486], [514, 486], [514, 512], [514, 511], [515, 514], [516, 118], [518, 469], [518, 431], [518, 516], [518, 506], [521, 519], [521, 518], [522, 518], [522, 521], [523, 522], [525, 524], [526, 524], [526, 523], [527, 526], [529, 528], [530, 529], [531, 530], [532, 250], [533, 532], [534, 151], [535, 534], [538, 536], [540, 538], [540, 563], [541, 540], [542, 538], [542, 563], [543, 542], [544, 529], [545, 61], [546, 544], [547, 545], [549, 529], [550, 538], [550, 563], [551, 550], [552, 523], [553, 552], [554, 61], [555, 554], [557, 556], [558, 551], [558, 88], [559, 3], [560, 558], [561, 559], [563, 563], [563, 538], [564, 129], [566, 564], [566, 563], [566, 538], [567, 566], [568, 250], [569, 568], [570, 158], [571, 570], [572, 140], [574, 572], [575, 574], [577, 600], [577, 575], [578, 577], [579, 600], [579, 575], [580, 579], [581, 529], [582, 61], [583, 581], [584, 582], [586, 529], [587, 600], [587, 575], [588, 587], [589, 523], [590, 589], [591, 61], [592, 591], [594, 593], [595, 88], [595, 588], [596, 3], [597, 595], [598, 596], [600, 600], [600, 575], [603, 600], [603, 575], [603, 601], [604, 603], [605, 528], [605, 601], [605, 564], [605, 423], [606, 605], [608, 86], [609, 608], [611, 610], [612, 611], [614, 75], [614, 62], [615, 614], [617, 61], [618, 617], [623, 235], [623, 619], [623, 47], [623, 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/53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783_53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783.jsonl.gz", "strip_func_name": "sub_440999", "query": "\n\n\n__int64 __fastcall sub_440999(__int64 a1, unsigned __int16 *a2, unsigned __int16 *a3, __int16 a4, __int16 a5, unsigned __int16 a6, unsigned __int8 a7, char a8)\n{\n__int64 result; // rax\n__int16 v9; // ax\n__int16 v10; // ax\n__int16 v11; // ax\n__int16 v12; // ax\n__int16 v13; // ax\n__int16 v14; // ax\n__int16 v15; // ax\n__int16 v20; // [rsp+30h] [rbp-D0h] BYREF\n__int16 v21; // [rsp+32h] [rbp-CEh]\n__int16 v22; // [rsp+34h] [rbp-CCh]\n__int16 v23; // [rsp+36h] [rbp-CAh]\n__int16 v24; // [rsp+38h] [rbp-C8h] BYREF\nunsigned __int16 v25; // [rsp+3Ah] [rbp-C6h]\n__int16 v26; // [rsp+3Ch] [rbp-C4h]\nunsigned __int16 v27; // [rsp+3Eh] [rbp-C2h]\nchar v28[48]; // [rsp+40h] [rbp-C0h] BYREF\nchar v29[48]; // [rsp+70h] [rbp-90h] BYREF\n__int64 v30[2]; // [rsp+A0h] [rbp-60h] BYREF\nunsigned __int16 v31; // [rsp+B0h] [rbp-50h]\n__int64 v32; // [rsp+B8h] [rbp-48h]\nchar v33; // [rsp+C0h] [rbp-40h]\n__int16 *v34; // [rsp+C8h] [rbp-38h]\nunsigned __int8 v35; // [rsp+D0h] [rbp-30h]\nchar v36; // [rsp+D1h] [rbp-2Fh]\n__int16 v37; // [rsp+D8h] [rbp-28h] BYREF\n__int16 v38; // [rsp+DAh] [rbp-26h]\n__int16 v39; // [rsp+DCh] [rbp-24h]\n__int16 v40; // [rsp+DEh] [rbp-22h]\n__int16 v41; // [rsp+E0h] [rbp-20h]\n__int16 v42; // [rsp+E2h] [rbp-1Eh]\n__int16 v43; // [rsp+E4h] [rbp-1Ch]\n__int16 v44; // [rsp+E6h] [rbp-1Ah]\nbool v45; // [rsp+E8h] [rbp-18h]\nbool v46; // [rsp+E9h] [rbp-17h]\nbool v47; // [rsp+EAh] [rbp-16h]\nbool v48; // [rsp+EBh] [rbp-15h]\n__int16 v49; // [rsp+ECh] [rbp-14h]\n__int16 v50; // [rsp+EEh] [rbp-12h]\nunsigned int v51; // [rsp+F0h] [rbp-10h]\nbool v52; // [rsp+F6h] [rbp-Ah]\nchar v53; // [rsp+F7h] [rbp-9h]\nint i; // [rsp+F8h] [rbp-8h]\n__int16 v55; // [rsp+FEh] [rbp-2h]\n\nv52 = sub_42EE2A((__int64)a2);\nif ( !v52 && !a4 && !a5 )\nreturn sub_4413D5(a1, a2, a3, a6, a7);\nresult = (unsigned int)sub_469D5E(&v37, a2, *(_QWORD *)(a1 + 16)) ^ 1;\nif ( !(_BYTE)result )\n{\nv51 = (__int16)sub_43D497((unsigned __int16 *)&v37);\nsub_46EBF9(v30, 56LL);\nv32 = sub_46E2BB(v51);\nv55 = -1;\nif ( a4 > 0 )\n{\nsub_42F4AD((__int64)v29, a2, a4, 0);\nv55 = sub_42E9E2((__int64)v29, 0LL);\n}\nsub_42F4AD((__int64)v28, a3, a5, 1);\nv50 = sub_42E9E2((__int64)v28, 0LL);\nv30[0] = (__int64)&v24;\nv34 = &v24;\nv31 = a6;\nv35 = a7;\nv36 = a8;\nv9 = *a3;\nif ( (__int16)*a3 < (__int16)*a2 + a4 )\nv9 = *a2 + a4;\nv20 = v9;\nv10 = a3[2];\nif ( v10 > (__int16)a2[2] - a4 )\nv10 = a2[2] - a4;\nv22 = v10;\nv11 = a3[1];\nif ( v11 < (__int16)a2[1] + a4 )\nv11 = a2[1] + a4;\nv21 = v11;\nv12 = a3[3];\nif ( v12 > (__int16)a2[3] - a4 )\nv12 = a2[3] - a4;\nv23 = v12;\nv49 = sub_43D497((unsigned __int16 *)&v20);\nv48 = (__int16)a2[1] <= (__int16)a3[1];\nv47 = (__int16)a2[3] >= (__int16)a3[3];\nif ( v52 )\n{\nv24 = v37;\nv26 = v39;\nfor ( i = v38; i <= v40; ++i )\n{\nif ( v48 || i >= v21 )\n{\nif ( !v47 && i > v23 )\nbreak;\nv25 = i;\nv27 = i;\nsub_46ED27(v32, (int)v51);\nv33 = sub_42EA62(v32, v37, i, v51);\nsub_437A5B(a1, (__int64)v30);\n}\n}\nsub_42ECB0((__int64)v28);\nsub_42EBE1(v50);\nif ( v55 != -1 )\n{\nsub_42ECB0((__int64)v29);\nsub_42EBE1(v55);\n}\nresult = sub_46E4D4(v32);\n}\nelse\n{\nv46 = (__int16)*a2 <= (__int16)*a3;\nv45 = (__int16)a2[2] >= (__int16)a3[2];\nv53 = 1;\nif ( v46 && v45 && v48 && v47 && v49 <= 49 )\nv53 = 0;\nv33 = 1;\nif ( v48 && v53 )\n{\nv24 = v20;\nv26 = v22;\nv25 = a2[1];\nv27 = a3[1] - 1;\nsub_437A5B(a1, (__int64)v30);\n}\nif ( v47 && v53 )\n{\nv24 = v20;\nv26 = v22;\nv25 = a3[3] + 1;\nv27 = a2[3];\nsub_437A5B(a1, (__int64)v30);\n}\nif ( v46 )\n{\nv24 = *a2;\nv26 = *a3 - 1;\nv25 = v21;\nv27 = v23;\nsub_437A5B(a1, (__int64)v30);\n}\nif ( v45 )\n{\nv24 = a3[2] + 1;\nv26 = a2[2];\nv25 = v21;\nv27 = v23;\nsub_437A5B(a1, (__int64)v30);\n}\nif ( v53 != 1 )\n{\nv24 = v37;\nv26 = v39;\nv13 = a4;\nif ( (__int16)a3[1] - (__int16)a2[1] >= a4 )\nv13 = a3[1] - a2[1];\nv43 = v13;\nfor ( i = 0; i < v43; ++i )\n{\nv42 = a2[1] + i;\nv41 = a2[3] - i;\nif ( v42 >= v38 || v41 <= v40 )\n{\nsub_46ED27(v32, (int)v51);\nv33 = sub_42EA62(v32, v24, v42, v51);\nif ( v42 >= v38 )\n{\nv25 = v42;\nv27 = v42;\nsub_437A5B(a1, (__int64)v30);\n}\nif ( v41 <= v40 )\n{\nv25 = v41;\nv27 = v41;\nsub_437A5B(a1, (__int64)v30);\n}\n}\n}\n}\nelse\n{\nv24 = v37;\nv14 = v39;\nif ( v20 - 1 <= v39 )\nv14 = v20 - 1;\nv26 = v14;\nv44 = sub_43D497((unsigned __int16 *)&v24);\nif ( v44 > 0 )\n{\nif ( v46 || v48 )\n{\nfor ( i = v38; i < v21; ++i )\n{\nv25 = i;\nv27 = i;\nsub_46ED27(v32, v44);\nv33 = sub_42EA62(v32, v24, i, v44);\nsub_437A5B(a1, (__int64)v30);\n}\n}\nif ( v46 || v47 )\n{\nfor ( i = v23 + 1; i <= v40; ++i )\n{\nv25 = i;\nv27 = i;\nsub_46ED27(v32, v44);\nv33 = sub_42EA62(v32, v24, i, v44);\nsub_437A5B(a1, (__int64)v30);\n}\n}\n}\nv15 = v37;\nif ( v22 + 1 >= v37 )\nv15 = v22 + 1;\nv24 = v15;\nv26 = v39;\nv44 = sub_43D497((unsigned __int16 *)&v24);\nif ( v44 > 0 )\n{\nif ( v45 || v48 )\n{\nfor ( i = v38; i < v21; ++i )\n{\nv25 = i;\nv27 = i;\nsub_46ED27(v32, v44);\nv33 = sub_42EA62(v32, v24, i, v44);\nsub_437A5B(a1, (__int64)v30);\n}\n}\nif ( v45 || v47 )\n{\nfor ( i = v23 + 1; i <= v40; ++i )\n{\nv25 = i;\nv27 = i;\nsub_46ED27(v32, v44);\nv33 = sub_42EA62(v32, v24, i, v44);\nsub_437A5B(a1, (__int64)v30);\n}\n}\n}\n}\nsub_42ECB0((__int64)v28);\nsub_42EBE1(v50);\nsub_42ECB0((__int64)v29);\nsub_42EBE1(v55);\nresult = sub_46E4D4(v32);\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,a7,a8,v20,v24,v28,v29,v30,v37,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51,v52,v53,i,v55,sub_440999,sub_42EE2A,sub_4413D5,sub_469D5E,sub_43D497,sub_46EBF9,sub_46E2BB,sub_42F4AD,sub_42E9E2,sub_46ED27,sub_42EA62,sub_437A5B,sub_42ECB0,sub_42EBE1,sub_46E4D4,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'inner_area', 'a4': 'rout', 'a1': 'draw_ctx', 'a2': 'outer_area', 'a5': 'rin', 'a6': 'color', 'a7': 'opa', 'a8': 'blend_mode', 'v20': 'core_area', 'v24': 'blend_area', 'v28': 'mask_rin_param', 'v29': 'mask_rout_param', 'v30': 'blend_dsc', 'v37': 'draw_area', 'v41': 'bottom_y', 'v42': 'top_y', 'v43': 'max_h', 'v44': 'blend_w', 'v45': 'right_side', 'v46': 'left_side', 'v47': 'bottom_side', 'v48': 'top_side', 'v49': 'core_w', 'v50': 'mask_rin_id', 'v51': 'draw_area_w', 'v52': 'mask_any', 'v53': 'split_hor', 'i': 'h', 'v55': 'mask_rout_id', 'sub_440999': 'draw_border_generic', 'sub_42EE2A': 'lv_draw_mask_is_any', 'sub_4413D5': 'draw_border_simple', 'sub_469D5E': '_lv_area_intersect', 'sub_43D497': 'lv_area_get_width_17', 'sub_46EBF9': 'lv_memset_00', 'sub_46E2BB': 'lv_mem_buf_get', 'sub_42F4AD': 'lv_draw_mask_radius_init', 'sub_42E9E2': 'lv_draw_mask_add', 'sub_46ED27': 'lv_memset_ff', 'sub_42EA62': 'lv_draw_mask_apply', 'sub_437A5B': 'lv_draw_sw_blend', 'sub_42ECB0': 'lv_draw_mask_free_param', 'sub_42EBE1': 'lv_draw_mask_remove_id', 'sub_46E4D4': 'lv_mem_buf_release'}"}
prvIsQueueFull
19729148c2fecc0159cbd120947156a1f58505e3a7e54d3fb0c2e0bd24f28bc1
zephray
Fobu
NA
static BaseType_t prvIsQueueFull( const Queue_t * pxQueue ) { BaseType_t xReturn; taskENTER_CRITICAL(); { if( pxQueue->uxMessagesWaiting == pxQueue->uxLength ) { xReturn = pdTRUE; } else { xReturn = pdFALSE; } } taskEXIT_CRITICAL(); return xReturn; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44D41D", "function_addr": 4510749, "binary_name": "19729148c2fecc0159cbd120947156a1f58505e3a7e54d3fb0c2e0bd24f28bc1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "call sub_452FBE"], [5, "mov rax, [rbp+var_18]"], [6, "mov rdx, [rax+70h]"], [7, "mov rax, [rbp+var_18]"], [8, "mov rax, [rax+78h]"], [9, "cmp rdx, rax"], [10, "jnz short loc_44D44D"], [11, "mov [rbp+var_8], 1"], [12, "jmp short loc_44D455"], [13, "mov [rbp+var_8], 0"], [14, "call sub_452FDC"], [15, "mov rax, [rbp+var_8]"], [16, "leave"], [17, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 3], [8, 7], [9, 6], [9, 8], [10, 9], [15, 11], [15, 13], [17, 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/19729148c2fecc0159cbd120947156a1f58505e3a7e54d3fb0c2e0bd24f28bc1_19729148c2fecc0159cbd120947156a1f58505e3a7e54d3fb0c2e0bd24f28bc1.jsonl.gz", "strip_func_name": "sub_44D41D", "query": "\n\n\n_BOOL8 __fastcall sub_44D41D(__int64 a1)\n{\n_BOOL8 v2; // [rsp+18h] [rbp-8h]\n\nsub_452FBE();\nv2 = *(_QWORD *)(a1 + 112) == *(_QWORD *)(a1 + 120);\nsub_452FDC();\nreturn v2;\n}\n\n\n\nQ:[a1,v2,sub_44D41D,sub_452FBE,sub_452FDC,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pxQueue', 'v2': 'xReturn', 'sub_44D41D': 'prvIsQueueFull', 'sub_452FBE': 'vPortEnterCritical', 'sub_452FDC': 'vPortExitCritical'}"}
pj_timer_heap_count
a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c
AonCyberLabs
D-Modem
NA
PJ_DEF(pj_size_t) pj_timer_heap_count( pj_timer_heap_t *ht ) { PJ_ASSERT_RETURN(ht, 0); return ht->cur_size; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4C4C9B", "function_addr": 5000347, "binary_name": "a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "cmp [rbp+var_8], 0"], [5, "jnz short loc_4C4CD5"], [6, "cmp [rbp+var_8], 0"], [7, "jnz short loc_4C4CCE"], [8, "mov ecx, offset aPjTimerHeapCou"], [9, "mov edx, 3B0h"], [10, "mov esi, offset aSrcPjTimerC"], [11, "mov edi, offset aHt"], [12, "call ___assert_fail"], [13, "mov eax, 0"], [14, "jmp short locret_4C4CDD"], [15, "mov rax, [rbp+var_8]"], [16, "mov rax, [rax+10h]"], [17, "leave"], [18, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [15, 3], [16, 15], [18, 16], [18, 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/a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c_a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.jsonl.gz", "strip_func_name": "sub_4C4C9B", "query": "\n\n\n__int64 __fastcall sub_4C4C9B(__int64 a1)\n{\nif ( !a1 )\n__assert_fail(\"ht\", \"../src/pj/timer.c\", 0x3B0u, \"pj_timer_heap_count\");\nreturn *(_QWORD *)(a1 + 16);\n}\n\n\n\nQ:[a1,sub_4C4C9B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ht', 'sub_4C4C9B': 'pj_timer_heap_count'}"}
conf_set_changed_callback
884ecbda30b1bee169b7b4a286c9d072b0d0233f827a2854dd8234dc730536ff
eerimoq
simba
NA
void conf_set_changed_callback(void (*fn)(void)) { conf_changed_callback = fn; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B036", "function_addr": 4239414, "binary_name": "884ecbda30b1bee169b7b4a286c9d072b0d0233f827a2854dd8234dc730536ff.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov rax, [rbp+var_8]"], [4, "mov cs:qword_426770, rax"], [5, "nop"], [6, "pop rbp"], [7, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 0], [7, 3]]}
{"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/884ecbda30b1bee169b7b4a286c9d072b0d0233f827a2854dd8234dc730536ff_884ecbda30b1bee169b7b4a286c9d072b0d0233f827a2854dd8234dc730536ff.jsonl.gz", "strip_func_name": "sub_40B036", "query": "\n\n\n__int64 (*__fastcall sub_40B036(__int64 (*a1)(void)))(void)\n{\n__int64 (*result)(void); // rax\n\nresult = a1;\nqword_426770 = a1;\nreturn result;\n}\n\n\n\nQ:[a1,sub_40B036,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fn', 'sub_40B036': 'conf_set_changed_callback'}"}
expand_tlist
9b85fa48a868983d7ee8c1ec5b0fcd80355cfe0cf4a097485a7f6533d5af5dbe
hecomi
node-julius
NA
static void expand_tlist(FSBeam *d) { d->maxtnum += d->expand_step; d->tlist[0] = (TOKEN2 *)myrealloc(d->tlist[0],sizeof(TOKEN2) * d->maxtnum); d->tlist[1] = (TOKEN2 *)myrealloc(d->tlist[1],sizeof(TOKEN2) * d->maxtnum); d->tindex[0] = (TOKENID *)myrealloc(d->tindex[0],sizeof(TOKENID) * d->maxtnum); d->tindex[1] = (TOKENID *)myrealloc(d->tindex[1],sizeof(TOKENID) * d->maxtnum); if (debug2_flag) jlog("STAT: token space expanded to %d\n", d->maxtnum); d->expanded = TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_428537", "function_addr": 4359479, "binary_name": "9b85fa48a868983d7ee8c1ec5b0fcd80355cfe0cf4a097485a7f6533d5af5dbe.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 edx, [rax+20h]"], [6, "mov rax, [rbp+var_8]"], [7, "mov eax, [rax+24h]"], [8, "add edx, eax"], [9, "mov rax, [rbp+var_8]"], [10, "mov [rax+20h], edx"], [11, "mov rax, [rbp+var_8]"], [12, "mov eax, [rax+20h]"], [13, "movsxd rdx, eax"], [14, "mov rax, rdx"], [15, "add rax, rax"], [16, "add rax, rdx"], [17, "shl rax, 3"], [18, "mov rdx, rax"], [19, "mov rax, [rbp+var_8]"], [20, "mov rax, [rax]"], [21, "mov rsi, rdx"], [22, "mov rdi, rax"], [23, "call sub_466CB9"], [24, "mov rdx, [rbp+var_8]"], [25, "mov [rdx], rax"], [26, "mov rax, [rbp+var_8]"], [27, "mov eax, [rax+20h]"], [28, "movsxd rdx, eax"], [29, "mov rax, rdx"], [30, "add rax, rax"], [31, "add rax, rdx"], [32, "shl rax, 3"], [33, "mov rdx, rax"], [34, "mov rax, [rbp+var_8]"], [35, "mov rax, [rax+8]"], [36, "mov rsi, rdx"], [37, "mov rdi, rax"], [38, "call sub_466CB9"], [39, "mov rdx, [rbp+var_8]"], [40, "mov [rdx+8], rax"], [41, "mov rax, [rbp+var_8]"], [42, "mov eax, [rax+20h]"], [43, "cdqe"], [44, "lea rdx, ds:0[rax*4]"], [45, "mov rax, [rbp+var_8]"], [46, "mov rax, [rax+10h]"], [47, "mov rsi, rdx"], [48, "mov rdi, rax"], [49, "call sub_466CB9"], [50, "mov rdx, [rbp+var_8]"], [51, "mov [rdx+10h], rax"], [52, "mov rax, [rbp+var_8]"], [53, "mov eax, [rax+20h]"], [54, "cdqe"], [55, "lea rdx, ds:0[rax*4]"], [56, "mov rax, [rbp+var_8]"], [57, "mov rax, [rax+18h]"], [58, "mov rsi, rdx"], [59, "mov rdi, rax"], [60, "call sub_466CB9"], [61, "mov rdx, [rbp+var_8]"], [62, "mov [rdx+18h], rax"], [63, "mov rax, offset unk_499DB0"], [64, "movzx eax, byte ptr [rax]"], [65, "test al, al"], [66, "jz short loc_428642"], [67, "mov rax, [rbp+var_8]"], [68, "mov eax, [rax+20h]"], [69, "mov esi, eax"], [70, "lea rdi, aStatTokenSpace"], [71, "mov eax, 0"], [72, "call sub_466AFB"], [73, "mov rax, [rbp+var_8]"], [74, "mov byte ptr [rax+28h], 1"], [75, "nop"], [76, "leave"], [77, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 5], [8, 7], [9, 3], [10, 8], [10, 9], [11, 3], [12, 10], [12, 11], [13, 12], [14, 13], [15, 14], [16, 13], [16, 15], [17, 16], [18, 17], [19, 3], [20, 10], [20, 19], [21, 18], [22, 20], [24, 3], [25, 23], [25, 24], [26, 3], [27, 26], [27, 10], [27, 25], [28, 27], [29, 28], [30, 29], [31, 28], [31, 30], [32, 31], [33, 32], [34, 3], [35, 25], [35, 34], [36, 33], [37, 35], [39, 3], [40, 38], [40, 39], [41, 3], [42, 41], [42, 40], [42, 10], [44, 39], [45, 3], [46, 45], [46, 40], [47, 44], [48, 46], [50, 3], [51, 50], [51, 49], [52, 3], [53, 52], [53, 51], [53, 10], [55, 50], [56, 3], [57, 56], [57, 51], [58, 55], [59, 57], [61, 3], [62, 60], [62, 61], [64, 62], [64, 63], [65, 64], [66, 65], [67, 3], [68, 40], [68, 51], [68, 10], [68, 67], [68, 62], [68, 25], [69, 68], [70, 59], [73, 3], [74, 73], [77, 73]]}
{"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/9b85fa48a868983d7ee8c1ec5b0fcd80355cfe0cf4a097485a7f6533d5af5dbe_9b85fa48a868983d7ee8c1ec5b0fcd80355cfe0cf4a097485a7f6533d5af5dbe.jsonl.gz", "strip_func_name": "sub_428537", "query": "\n\n\n__int64 __fastcall sub_428537(__int64 a1)\n{\nint v1; // ecx\nint v2; // er8\nint v3; // er9\n__int64 result; // rax\n\n*(_DWORD *)(a1 + 32) += *(_DWORD *)(a1 + 36);\n*(_QWORD *)a1 = sub_466CB9(*(_QWORD *)a1, 24LL * *(int *)(a1 + 32));\n*(_QWORD *)(a1 + 8) = sub_466CB9(*(_QWORD *)(a1 + 8), 24LL * *(int *)(a1 + 32));\n*(_QWORD *)(a1 + 16) = sub_466CB9(*(_QWORD *)(a1 + 16), 4LL * *(int *)(a1 + 32));\n*(_QWORD *)(a1 + 24) = sub_466CB9(*(_QWORD *)(a1 + 24), 4LL * *(int *)(a1 + 32));\nif ( unk_499DB0 )\nsub_466AFB((unsigned int)\"STAT: token space expanded to %d\\n\", *(_DWORD *)(a1 + 32), a1, v1, v2, v3);\nresult = a1;\n*(_BYTE *)(a1 + 40) = 1;\nreturn result;\n}\n\n\n\nQ:[a1,sub_428537,sub_466CB9,sub_466AFB,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'd', 'sub_428537': 'expand_tlist', 'sub_466CB9': 'myrealloc', 'sub_466AFB': 'jlog'}"}
eth_mac_fmt
1812cddc11d5d37e1bfd4b1269e60e52c00acecac170e6456fc2ba2cddc55918
open-simh
simh
NA
void eth_mac_fmt(ETH_MAC* const mac, char* buff) { const uint8* m = (const uint8*) mac; sprintf(buff, "%02X:%02X:%02X:%02X:%02X:%02X", m[0], m[1], m[2], m[3], m[4], m[5]); return; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4715BE", "function_addr": 4658622, "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 [rbp+s], rsi"], [5, "mov rax, [rbp+var_18]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_8]"], [8, "add rax, 5"], [9, "movzx eax, byte ptr [rax]"], [10, "movzx edi, al"], [11, "mov rax, [rbp+var_8]"], [12, "add rax, 4"], [13, "movzx eax, byte ptr [rax]"], [14, "movzx esi, al"], [15, "mov rax, [rbp+var_8]"], [16, "add rax, 3"], [17, "movzx eax, byte ptr [rax]"], [18, "movzx r9d, al"], [19, "mov rax, [rbp+var_8]"], [20, "add rax, 2"], [21, "movzx eax, byte ptr [rax]"], [22, "movzx r8d, al"], [23, "mov rax, [rbp+var_8]"], [24, "add rax, 1"], [25, "movzx eax, byte ptr [rax]"], [26, "movzx ecx, al"], [27, "mov rax, [rbp+var_8]"], [28, "movzx eax, byte ptr [rax]"], [29, "movzx edx, al"], [30, "mov rax, [rbp+s]"], [31, "push rdi"], [32, "push rsi"], [33, "mov esi, offset a02x02x02x02x02"], [34, "mov rdi, rax"], [35, "mov eax, 0"], [36, "call _sprintf"], [37, "add rsp, 10h"], [38, "nop"], [39, "leave"], [40, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 6], [12, 11], [13, 12], [14, 13], [15, 6], [16, 15], [17, 16], [18, 17], [19, 6], [20, 19], [21, 20], [22, 21], [23, 6], [24, 23], [25, 24], [26, 25], [27, 6], [28, 27], [29, 28], [30, 4], [31, 10], [32, 14], [34, 30], [37, 2], [40, 36]]}
{"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_4715BE", "query": "\n\n\nint __fastcall sub_4715BE(unsigned __int8 *a1, char *a2)\n{\nreturn sprintf(a2, \"%02X:%02X:%02X:%02X:%02X:%02X\", *a1, a1[1], a1[2], a1[3], a1[4], a1[5]);\n}\n\n\n\nQ:[a1,a2,sub_4715BE,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'mac', 'a2': 'buff', 'sub_4715BE': 'eth_mac_fmt'}"}
nvram_unset
7898a45514a51514556e8ce9f1e754c503d76053495f12f406c42d8c77ac7056
OWASP
IoTGoat
NA
int nvram_unset(nvram_handle_t *h, const char *name) { uint32_t i; nvram_tuple_t *t, **prev; if (!name) return 0; /* Hash the name */ i = hash(name) % NVRAM_ARRAYSIZE(h->nvram_hash); /* Find the associated tuple in the hash table */ for (prev = &h->nvram_hash[i], t = *prev; t && strcmp(t->name, name); prev = &t->next, t = *prev); /* Move it to the dead table */ if (t) { *prev = t->next; t->next = h->nvram_dead; h->nvram_dead = t; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40224D", "function_addr": 4203085, "binary_name": "7898a45514a51514556e8ce9f1e754c503d76053495f12f406c42d8c77ac7056.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+s2], rsi"], [5, "cmp [rbp+s2], 0"], [6, "jnz short loc_40226E"], [7, "mov eax, 0"], [8, "jmp locret_40233E"], [9, "mov rax, [rbp+s2]"], [10, "mov rdi, rax"], [11, "call sub_401B9E"], [12, "mov edx, eax"], [13, "mov ecx, edx"], [14, "mov eax, 0FF00FF01h"], [15, "imul rax, rcx"], [16, "shr rax, 20h"], [17, "shr eax, 0Bh"], [18, "imul ecx, eax, 808h"], [19, "mov eax, edx"], [20, "sub eax, ecx"], [21, "shr eax, 3"], [22, "mov [rbp+var_14], eax"], [23, "mov eax, [rbp+var_14]"], [24, "add rax, 2"], [25, "lea rdx, ds:0[rax*8]"], [26, "mov rax, [rbp+var_28]"], [27, "add rax, rdx"], [28, "add rax, 8"], [29, "mov [rbp+var_10], rax"], [30, "mov rax, [rbp+var_10]"], [31, "mov rax, [rax]"], [32, "mov [rbp+var_8], rax"], [33, "jmp short loc_4022E0"], [34, "mov rax, [rbp+var_8]"], [35, "add rax, 10h"], [36, "mov [rbp+var_10], rax"], [37, "mov rax, [rbp+var_10]"], [38, "mov rax, [rax]"], [39, "mov [rbp+var_8], rax"], [40, "cmp [rbp+var_8], 0"], [41, "jz short loc_402301"], [42, "mov rax, [rbp+var_8]"], [43, "mov rax, [rax]"], [44, "mov rdx, [rbp+s2]"], [45, "mov rsi, rdx"], [46, "mov rdi, rax"], [47, "call _strcmp"], [48, "test eax, eax"], [49, "jnz short loc_4022C9"], [50, "cmp [rbp+var_8], 0"], [51, "jz short loc_402339"], [52, "mov rax, [rbp+var_8]"], [53, "mov rdx, [rax+10h]"], [54, "mov rax, [rbp+var_10]"], [55, "mov [rax], rdx"], [56, "mov rax, [rbp+var_28]"], [57, "mov rdx, [rax+820h]"], [58, "mov rax, [rbp+var_8]"], [59, "mov [rax+10h], rdx"], [60, "mov rax, [rbp+var_28]"], [61, "mov rdx, [rbp+var_8]"], [62, "mov [rax+820h], rdx"], [63, "mov eax, 0"], [64, "leave"], [65, "retn"]], "data_dep": [[5, 4], [6, 5], [9, 4], [10, 9], [12, 11], [13, 12], [15, 14], [15, 13], [16, 15], [17, 16], [18, 17], [18, 13], [19, 12], [20, 19], [20, 18], [21, 20], [22, 21], [23, 22], [24, 23], [25, 12], [26, 3], [27, 25], [27, 26], [28, 27], [29, 28], [30, 29], [31, 30], [32, 31], [34, 39], [34, 32], [35, 34], [36, 35], [37, 36], [38, 37], [39, 38], [40, 32], [40, 39], [41, 40], [42, 39], [42, 32], [43, 42], [44, 4], [45, 44], [46, 43], [48, 47], [49, 48], [50, 39], [50, 32], [51, 50], [52, 39], [52, 32], [53, 52], [54, 36], [54, 29], [55, 53], [55, 54], [56, 3], [57, 56], [57, 55], [58, 39], [58, 32], [59, 58], [59, 57], [60, 3], [61, 39], [61, 32], [62, 61], [62, 60], [65, 63], [65, 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/7898a45514a51514556e8ce9f1e754c503d76053495f12f406c42d8c77ac7056_7898a45514a51514556e8ce9f1e754c503d76053495f12f406c42d8c77ac7056.jsonl.gz", "strip_func_name": "sub_40224D", "query": "\n\n\n__int64 __fastcall sub_40224D(__int64 a1, char *a2)\n{\n__int64 *v3; // [rsp+20h] [rbp-10h]\n__int64 i; // [rsp+28h] [rbp-8h]\n\nif ( !a2 )\nreturn 0LL;\nv3 = (__int64 *)(8 * ((((unsigned int)sub_401B9E(a2) % 0x808) >> 3) + 2LL) + a1 + 8);\nfor ( i = *v3; i && strcmp(*(const char **)i, a2); i = *(_QWORD *)(i + 16) )\nv3 = (__int64 *)(i + 16);\nif ( i )\n{\n*v3 = *(_QWORD *)(i + 16);\n*(_QWORD *)(i + 16) = *(_QWORD *)(a1 + 2080);\n*(_QWORD *)(a1 + 2080) = i;\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,v3,i,sub_40224D,sub_401B9E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'h', 'a2': 'name', 'v3': 'prev', 'i': 't', 'sub_40224D': 'nvram_unset', 'sub_401B9E': 'hash'}"}
LookupDirAuxFile
d55fda16db10529ecce2a2221d71b4850e69161f637f47098f398ee1dde2d948
videolan
multicat
NA
off_t LookupDirAuxFile( const char *psz_dir_path, uint64_t i_file, int64_t i_wanted, size_t i_payload_size ) { off_t i_ret; char psz_file[strlen(psz_dir_path) + sizeof(PSZ_TS_EXT) + sizeof(".18446744073709551615")]; sprintf( psz_file, "%s/%"PRIu64"."PSZ_TS_EXT, psz_dir_path, i_file ); char *psz_aux_file = GetAuxFile( psz_file, i_payload_size ); i_ret = LookupAuxFile( psz_aux_file, i_wanted, true ); free( psz_aux_file ); return i_ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406195", "function_addr": 4219285, "binary_name": "d55fda16db10529ecce2a2221d71b4850e69161f637f47098f398ee1dde2d948.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r15"], [3, "push r14"], [4, "push r13"], [5, "push r12"], [6, "push rbx"], [7, "sub rsp, 48h"], [8, "mov [rbp+s], rdi"], [9, "mov [rbp+var_60], rsi"], [10, "mov [rbp+var_68], rdx"], [11, "mov [rbp+var_70], rcx"], [12, "mov rax, rsp"], [13, "mov rbx, rax"], [14, "mov rax, [rbp+s]"], [15, "mov rdi, rax"], [16, "call _strlen"], [17, "add rax, 19h"], [18, "mov rdx, rax"], [19, "sub rdx, 1"], [20, "mov [rbp+var_38], rdx"], [21, "mov r14, rax"], [22, "mov r15d, 0"], [23, "mov r12, rax"], [24, "mov r13d, 0"], [25, "mov edx, 10h"], [26, "sub rdx, 1"], [27, "add rax, rdx"], [28, "mov esi, 10h"], [29, "mov edx, 0"], [30, "div rsi"], [31, "imul rax, 10h"], [32, "sub rsp, rax"], [33, "mov rax, rsp"], [34, "add rax, 0"], [35, "mov [rbp+var_40], rax"], [36, "mov rcx, [rbp+var_60]"], [37, "mov rdx, [rbp+s]"], [38, "mov rax, [rbp+var_40]"], [39, "mov esi, offset aSLuTs"], [40, "mov rdi, rax"], [41, "mov eax, 0"], [42, "call _sprintf"], [43, "mov rdx, [rbp+var_70]"], [44, "mov rax, [rbp+var_40]"], [45, "mov rsi, rdx"], [46, "mov rdi, rax"], [47, "call sub_4058B7"], [48, "mov [rbp+ptr], rax"], [49, "mov rcx, [rbp+var_68]"], [50, "mov rax, [rbp+ptr]"], [51, "mov edx, 1"], [52, "mov rsi, rcx"], [53, "mov rdi, rax"], [54, "call sub_405A63"], [55, "mov [rbp+var_50], rax"], [56, "mov rax, [rbp+ptr]"], [57, "mov rdi, rax"], [58, "call _free"], [59, "mov rax, [rbp+var_50]"], [60, "mov rsp, rbx"], [61, "lea rsp, [rbp-28h]"], [62, "pop rbx"], [63, "pop r12"], [64, "pop r13"], [65, "pop r14"], [66, "pop r15"], [67, "pop rbp"], [68, "retn"]], "data_dep": [[12, 7], [13, 12], [14, 8], [15, 14], [17, 16], [18, 17], [19, 18], [20, 19], [21, 17], [23, 17], [26, 25], [27, 17], [27, 26], [30, 28], [31, 27], [32, 31], [32, 7], [33, 32], [34, 33], [35, 34], [36, 9], [37, 8], [38, 35], [40, 38], [43, 11], [44, 35], [45, 43], [46, 44], [48, 47], [49, 10], [50, 48], [52, 49], [53, 50], [55, 54], [56, 48], [57, 56], [59, 55], [60, 13], [61, 60], [62, 6], [63, 5], [64, 4], [65, 3], [66, 2], [67, 0], [68, 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/d55fda16db10529ecce2a2221d71b4850e69161f637f47098f398ee1dde2d948_d55fda16db10529ecce2a2221d71b4850e69161f637f47098f398ee1dde2d948.jsonl.gz", "strip_func_name": "sub_406195", "query": "\n\n\n__int64 __fastcall sub_406195(char *a1, __int64 a2, __int64 a3, __int64 a4)\n{\nsize_t v4; // rax\nvoid *v5; // rsp\n__int64 v7; // [rsp+0h] [rbp-70h] BYREF\n__int64 v8; // [rsp+8h] [rbp-68h]\n__int64 v9; // [rsp+10h] [rbp-60h]\nchar *s; // [rsp+18h] [rbp-58h]\n__int64 v11; // [rsp+20h] [rbp-50h]\nvoid *ptr; // [rsp+28h] [rbp-48h]\nchar *v13; // [rsp+30h] [rbp-40h]\nsize_t v14; // [rsp+38h] [rbp-38h]\n\ns = a1;\nv9 = a2;\nv8 = a3;\nv7 = a4;\nv4 = strlen(a1) + 25;\nv14 = v4 - 1;\nv5 = alloca(16 * ((v4 + 15) / 0x10));\nv13 = (char *)&v7;\nsprintf((char *)&v7, \"%s/%lu.ts\", s, v9);\nptr = sub_4058B7(v13, v7);\nv11 = sub_405A63((const char *)ptr, v8, 1);\nfree(ptr);\nreturn v11;\n}\n\n\n\nQ:[a3,a4,a1,a2,v7,v8,v9,s,v11,ptr,v13,sub_406195,sub_4058B7,sub_405A63,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'i_wanted', 'a4': 'i_payload_size', 'a1': 'psz_dir_path', 'a2': 'i_file', 'v7': 'i_payload_sizea', 'v8': 'i_wanteda', 'v9': 'i_filea', 's': 'psz_dir_patha', 'v11': 'i_ret', 'ptr': 'psz_aux_file', 'v13': 'p_psz_file', 'sub_406195': 'LookupDirAuxFile', 'sub_4058B7': 'GetAuxFile', 'sub_405A63': 'LookupAuxFile'}"}
get_privsep_data
77b5bc2302f8a9ff219acc3b3ed41aebbe2ca483c21c6a640f504139f2a58fd2
vvb2060
curl-android
NA
static void get_privsep_data(const RSA *rsa, struct st_neverbleed_rsa_exdata_t **exdata, struct st_neverbleed_thread_data_t **thdata) { *exdata = RSA_get_ex_data(rsa, get_rsa_exdata_idx()); if (*exdata == NULL) { errno = 0; dief("invalid internal ref"); } *thdata = get_thread_data((*exdata)->nb); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408167", "function_addr": 4227431, "binary_name": "77b5bc2302f8a9ff219acc3b3ed41aebbe2ca483c21c6a640f504139f2a58fd2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, [rbp+var_8]"], [7, "mov esi, 0"], [8, "mov rdi, rax"], [9, "call _RSA_get_ex_data"], [10, "mov rdx, rax"], [11, "mov rax, [rbp+var_10]"], [12, "mov rcx, rax"], [13, "shr rcx, 3"], [14, "add rcx, 7FFF8000h"], [15, "movzx ecx, byte ptr [rcx]"], [16, "test cl, cl"], [17, "jz short loc_4081B0"], [18, "mov rdi, rax"], [19, "call ___asan_report_store8"], [20, "mov rax, [rbp+var_10]"], [21, "mov [rax], rdx"], [22, "mov rax, [rbp+var_10]"], [23, "mov rax, [rax]"], [24, "test rax, rax"], [25, "jz loc_408247"], [26, "mov rax, [rbp+var_10]"], [27, "mov rdx, rax"], [28, "shr rdx, 3"], [29, "add rdx, 7FFF8000h"], [30, "movzx edx, byte ptr [rdx]"], [31, "test dl, dl"], [32, "jz short loc_4081E8"], [33, "mov rdi, rax"], [34, "call ___asan_report_load8"], [35, "mov rax, [rbp+var_10]"], [36, "mov rax, [rax]"], [37, "mov rdx, rax"], [38, "mov rcx, rdx"], [39, "shr rcx, 3"], [40, "add rcx, 7FFF8000h"], [41, "movzx ecx, byte ptr [rcx]"], [42, "test cl, cl"], [43, "jz short loc_40820F"], [44, "mov rdi, rdx"], [45, "call ___asan_report_load8"], [46, "mov rax, [rax]"], [47, "mov rdi, rax"], [48, "call sub_407CD7"], [49, "mov rdx, rax"], [50, "mov rax, [rbp+var_18]"], [51, "mov rcx, rax"], [52, "shr rcx, 3"], [53, "add rcx, 7FFF8000h"], [54, "movzx ecx, byte ptr [rcx]"], [55, "test cl, cl"], [56, "jz short loc_40823E"], [57, "mov rdi, rax"], [58, "call ___asan_report_store8"], [59, "mov rax, [rbp+var_18]"], [60, "mov [rax], rdx"], [61, "jmp short locret_408248"], [62, "nop"], [63, "leave"], [64, "retn"]], "data_dep": [[6, 3], [8, 6], [10, 9], [11, 4], [12, 11], [13, 12], [14, 13], [15, 14], [16, 15], [17, 16], [18, 11], [20, 4], [21, 10], [21, 20], [22, 4], [23, 22], [23, 21], [24, 23], [25, 24], [26, 4], [27, 26], [28, 27], [29, 28], [30, 21], [30, 29], [31, 30], [32, 31], [33, 26], [35, 4], [36, 21], [36, 35], [37, 36], [38, 37], [39, 38], [40, 39], [41, 40], [41, 21], [42, 41], [43, 42], [44, 37], [46, 36], [46, 45], [46, 21], [47, 46], [49, 48], [50, 5], [51, 50], [52, 51], [53, 52], [54, 21], [54, 53], [55, 54], [56, 55], [57, 50], [59, 5], [60, 59], [60, 49], [64, 59], [64, 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/77b5bc2302f8a9ff219acc3b3ed41aebbe2ca483c21c6a640f504139f2a58fd2_77b5bc2302f8a9ff219acc3b3ed41aebbe2ca483c21c6a640f504139f2a58fd2.jsonl.gz", "strip_func_name": "sub_408167", "query": "\n\n\n__int64 *__fastcall sub_408167(__m128 a1, __m128 a2, __m128 a3, __m128 a4, double a5, double a6, __m128 a7, __m128 a8, __int64 a9, __int64 *a10, unsigned __int64 *a11)\n{\n__int64 v11; // rdx\ndouble v12; // xmm4_8\ndouble v13; // xmm5_8\n__int64 *result; // rax\n__int64 *v15; // rax\nunsigned __int64 v16; // rdx\n\nv11 = RSA_get_ex_data();\nif ( *(_BYTE *)(((unsigned __int64)a10 >> 3) + 0x7FFF8000) )\n__asan_report_store8();\n*a10 = v11;\nresult = (__int64 *)*a10;\nif ( *a10 )\n{\nif ( *(_BYTE *)(((unsigned __int64)a10 >> 3) + 0x7FFF8000) )\n__asan_report_load8();\nv15 = (__int64 *)*a10;\nif ( *(_BYTE *)(((unsigned __int64)*a10 >> 3) + 0x7FFF8000) )\nv15 = (__int64 *)__asan_report_load8();\nv16 = sub_407CD7(*v15, 0LL, a1, a2, a3, a4, v12, v13, a7, a8);\nif ( *(_BYTE *)(((unsigned __int64)a11 >> 3) + 0x7FFF8000) )\n__asan_report_store8();\nresult = (__int64 *)a11;\n*a11 = v16;\n}\nreturn result;\n}\n\n\n\nQ:[a11,a10,a9,sub_408167,sub_407CD7,]\nAssistant: ", "hints": "[]", "response": "{'a11': 'thdata', 'a10': 'exdata', 'a9': 'rsa', 'sub_408167': 'get_privsep_data', 'sub_407CD7': 'get_thread_data'}"}
main
9c4eb45616cf68f899f481bb462a5f7bc8353e57fe3d33fddecbe769a3efc9eb
RadeonOpenCompute
ROCK-Kernel-Driver
NA
int main(int argc, char **argv) { bool has_ben = false, mbm_test = true, mba_test = true, cmt_test = true; int c, cpu_no = 1, span = 250, argc_new = argc, i, no_of_bits = 0; char *benchmark_cmd[BENCHMARK_ARGS], bw_report[64], bm_type[64]; char benchmark_cmd_area[BENCHMARK_ARGS][BENCHMARK_ARG_SIZE]; int ben_ind, ben_count, tests = 0; bool cat_test = true; for (i = 0; i < argc; i++) { if (strcmp(argv[i], "-b") == 0) { ben_ind = i + 1; ben_count = argc - ben_ind; argc_new = ben_ind - 1; has_ben = true; break; } } while ((c = getopt(argc_new, argv, "ht:b:n:p:")) != -1) { char *token; switch (c) { case 't': token = strtok(optarg, ","); mbm_test = false; mba_test = false; cmt_test = false; cat_test = false; while (token) { if (!strncmp(token, MBM_STR, sizeof(MBM_STR))) { mbm_test = true; tests++; } else if (!strncmp(token, MBA_STR, sizeof(MBA_STR))) { mba_test = true; tests++; } else if (!strncmp(token, CMT_STR, sizeof(CMT_STR))) { cmt_test = true; tests++; } else if (!strncmp(token, CAT_STR, sizeof(CAT_STR))) { cat_test = true; tests++; } else { printf("invalid argument\n"); return -1; } token = strtok(NULL, ","); } break; case 'p': cpu_no = atoi(optarg); break; case 'n': no_of_bits = atoi(optarg); if (no_of_bits <= 0) { printf("Bail out! invalid argument for no_of_bits\n"); return -1; } break; case 'h': cmd_help(); return 0; default: printf("invalid argument\n"); return -1; } } ksft_print_header(); /* * Typically we need root privileges, because: * 1. We write to resctrl FS * 2. We execute perf commands */ if (geteuid() != 0) return ksft_exit_skip("Not running as root. Skipping...\n"); if (has_ben) { /* Extract benchmark command from command line. */ for (i = ben_ind; i < argc; i++) { benchmark_cmd[i - ben_ind] = benchmark_cmd_area[i]; sprintf(benchmark_cmd[i - ben_ind], "%s", argv[i]); } benchmark_cmd[ben_count] = NULL; } else { /* If no benchmark is given by "-b" argument, use fill_buf. */ for (i = 0; i < 6; i++) benchmark_cmd[i] = benchmark_cmd_area[i]; strcpy(benchmark_cmd[0], "fill_buf"); sprintf(benchmark_cmd[1], "%d", span); strcpy(benchmark_cmd[2], "1"); strcpy(benchmark_cmd[3], "1"); strcpy(benchmark_cmd[4], "0"); strcpy(benchmark_cmd[5], ""); benchmark_cmd[6] = NULL; } sprintf(bw_report, "reads"); sprintf(bm_type, "fill_buf"); if (!check_resctrlfs_support()) return ksft_exit_skip("resctrl FS does not exist. Enable X86_CPU_RESCTRL config option.\n"); filter_dmesg(); ksft_set_plan(tests ? : 4); if ((get_vendor() == ARCH_INTEL) && mbm_test) run_mbm_test(has_ben, benchmark_cmd, span, cpu_no, bw_report); if ((get_vendor() == ARCH_INTEL) && mba_test) run_mba_test(has_ben, benchmark_cmd, span, cpu_no, bw_report); if (cmt_test) run_cmt_test(has_ben, benchmark_cmd, cpu_no); if (cat_test) run_cat_test(cpu_no, no_of_bits); umount_resctrlfs(); return ksft_exit_pass(); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4206412, "binary_name": "9c4eb45616cf68f899f481bb462a5f7bc8353e57fe3d33fddecbe769a3efc9eb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 12D0h"], [3, "mov [rbp+var_12C4], edi"], [4, "mov [rbp+argv], rsi"], [5, "mov [rbp+var_1], 0"], [6, "mov [rbp+var_2], 1"], [7, "mov [rbp+var_3], 1"], [8, "mov [rbp+var_4], 1"], [9, "mov [rbp+var_8], 1"], [10, "mov [rbp+var_34], 0FAh"], [11, "mov eax, [rbp+var_12C4]"], [12, "mov [rbp+argc], eax"], [13, "mov [rbp+var_14], 0"], [14, "mov [rbp+var_20], 0"], [15, "mov [rbp+var_21], 1"], [16, "mov [rbp+var_10], 0"], [17, "jmp short loc_402FF9"], [18, "mov eax, [rbp+var_10]"], [19, "cdqe"], [20, "lea rdx, ds:0[rax*8]"], [21, "mov rax, [rbp+argv]"], [22, "add rax, rdx"], [23, "mov rax, [rax]"], [24, "mov esi, offset aB"], [25, "mov rdi, rax"], [26, "call _strcmp"], [27, "test eax, eax"], [28, "jnz short loc_402FF5"], [29, "mov eax, [rbp+var_10]"], [30, "add eax, 1"], [31, "mov [rbp+var_18], eax"], [32, "mov eax, [rbp+var_12C4]"], [33, "sub eax, [rbp+var_18]"], [34, "mov [rbp+var_1C], eax"], [35, "mov eax, [rbp+var_18]"], [36, "sub eax, 1"], [37, "mov [rbp+argc], eax"], [38, "mov [rbp+var_1], 1"], [39, "jmp short loc_403004"], [40, "add [rbp+var_10], 1"], [41, "mov eax, [rbp+var_10]"], [42, "cmp eax, [rbp+var_12C4]"], [43, "jl short loc_402FA6"], [44, "jmp loc_4031D5"], [45, "cmp [rbp+var_38], 74h "], [46, "jz short loc_403046"], [47, "cmp [rbp+var_38], 74h "], [48, "jg loc_4031C1"], [49, "cmp [rbp+var_38], 70h "], [50, "jz loc_403172"], [51, "cmp [rbp+var_38], 70h "], [52, "jg loc_4031C1"], [53, "cmp [rbp+var_38], 68h "], [54, "jz loc_4031B2"], [55, "cmp [rbp+var_38], 6Eh "], [56, "jz loc_403186"], [57, "jmp loc_4031C1"], [58, "mov rax, cs:optarg"], [59, "mov esi, offset delim"], [60, "mov rdi, rax"], [61, "call _strtok"], [62, "mov [rbp+var_30], rax"], [63, "mov [rbp+var_2], 0"], [64, "mov [rbp+var_3], 0"], [65, "mov [rbp+var_4], 0"], [66, "mov [rbp+var_21], 0"], [67, "jmp loc_403165"], [68, "mov rax, [rbp+var_30]"], [69, "mov rdx, rax"], [70, "mov eax, offset aMbm"], [71, "mov ecx, 4"], [72, "mov rsi, rdx"], [73, "mov rdi, rax"], [74, "repe cmpsb"], [75, "setnbe al"], [76, "setb dl"], [77, "sub eax, edx"], [78, "movsx eax, al"], [79, "test eax, eax"], [80, "jnz short loc_4030A8"], [81, "mov [rbp+var_2], 1"], [82, "add [rbp+var_20], 1"], [83, "jmp loc_403152"], [84, "mov rax, [rbp+var_30]"], [85, "mov rdx, rax"], [86, "mov eax, offset aMba"], [87, "mov ecx, 4"], [88, "mov rsi, rdx"], [89, "mov rdi, rax"], [90, "repe cmpsb"], [91, "setnbe al"], [92, "setb dl"], [93, "sub eax, edx"], [94, "movsx eax, al"], [95, "test eax, eax"], [96, "jnz short loc_4030DA"], [97, "mov [rbp+var_3], 1"], [98, "add [rbp+var_20], 1"], [99, "jmp short loc_403152"], [100, "mov rax, [rbp+var_30]"], [101, "mov rdx, rax"], [102, "mov eax, offset aCmt"], [103, "mov ecx, 4"], [104, "mov rsi, rdx"], [105, "mov rdi, rax"], [106, "repe cmpsb"], [107, "setnbe al"], [108, "setb dl"], [109, "sub eax, edx"], [110, "movsx eax, al"], [111, "test eax, eax"], [112, "jnz short loc_40310C"], [113, "mov [rbp+var_4], 1"], [114, "add [rbp+var_20], 1"], [115, "jmp short loc_403152"], [116, "mov rax, [rbp+var_30]"], [117, "mov rdx, rax"], [118, "mov eax, offset aCat"], [119, "mov ecx, 4"], [120, "mov rsi, rdx"], [121, "mov rdi, rax"], [122, "repe cmpsb"], [123, "setnbe al"], [124, "setb dl"], [125, "sub eax, edx"], [126, "movsx eax, al"], [127, "test eax, eax"], [128, "jnz short loc_40313E"], [129, "mov [rbp+var_21], 1"], [130, "add [rbp+var_20], 1"], [131, "jmp short loc_403152"], [132, "mov edi, offset aInvalidArgumen"], [133, "call _puts"], [134, "mov eax, 0FFFFFFFFh"], [135, "jmp locret_403461"], [136, "mov esi, offset delim"], [137, "mov edi, 0"], [138, "call _strtok"], [139, "mov [rbp+var_30], rax"], [140, "cmp [rbp+var_30], 0"], [141, "jnz loc_403073"], [142, "jmp short loc_4031D5"], [143, "mov rax, cs:optarg"], [144, "mov rdi, rax"], [145, "call _atoi"], [146, "mov [rbp+var_8], eax"], [147, "jmp short loc_4031D5"], [148, "mov rax, cs:optarg"], [149, "mov rdi, rax"], [150, "call _atoi"], [151, "mov [rbp+var_14], eax"], [152, "cmp [rbp+var_14], 0"], [153, "jg short loc_4031D5"], [154, "mov edi, offset aBailOutInvalid"], [155, "call _puts"], [156, "mov eax, 0FFFFFFFFh"], [157, "jmp locret_403461"], [158, "call sub_402BDF"], [159, "mov eax, 0"], [160, "jmp locret_403461"], [161, "mov edi, offset aInvalidArgumen"], [162, "call _puts"], [163, "mov eax, 0FFFFFFFFh"], [164, "jmp locret_403461"], [165, "mov rcx, [rbp+argv]"], [166, "mov eax, [rbp+argc]"], [167, "mov edx, offset shortopts"], [168, "mov rsi, rcx"], [169, "mov edi, eax"], [170, "call _getopt"], [171, "mov [rbp+var_38], eax"], [172, "cmp [rbp+var_38], 0FFFFFFFFh"], [173, "jnz loc_403009"], [174, "call sub_402566"], [175, "call _geteuid"], [176, "test eax, eax"], [177, "jz short loc_40321D"], [178, "mov edi, offset aNotRunningAsRo"], [179, "mov eax, 0"], [180, "call sub_4029AE"], [181, "jmp locret_403461"], [182, "cmp [rbp+var_1], 0"], [183, "jz loc_4032B4"], [184, "mov eax, [rbp+var_18]"], [185, "mov [rbp+var_10], eax"], [186, "jmp short loc_403293"], [187, "mov eax, [rbp+var_10]"], [188, "sub eax, [rbp+var_18]"], [189, "lea rcx, [rbp+var_12C0]"], [190, "mov edx, [rbp+var_10]"], [191, "movsxd rdx, edx"], [192, "shl rdx, 6"], [193, "add rdx, rcx"], [194, "cdqe"], [195, "mov [rbp+rax*8+s], rdx"], [196, "mov eax, [rbp+var_10]"], [197, "cdqe"], [198, "lea rdx, ds:0[rax*8]"], [199, "mov rax, [rbp+argv]"], [200, "add rax, rdx"], [201, "mov rdx, [rax]"], [202, "mov eax, [rbp+var_10]"], [203, "sub eax, [rbp+var_18]"], [204, "cdqe"], [205, "mov rax, [rbp+rax*8+s]"], [206, "mov esi, offset aS"], [207, "mov rdi, rax"], [208, "mov eax, 0"], [209, "call _sprintf"], [210, "add [rbp+var_10], 1"], [211, "mov eax, [rbp+var_10]"], [212, "cmp eax, [rbp+var_12C4]"], [213, "jl short loc_40322F"], [214, "mov eax, [rbp+var_1C]"], [215, "cdqe"], [216, "mov [rbp+rax*8+s], 0"], [217, "jmp loc_403354"], [218, "mov [rbp+var_10], 0"], [219, "jmp short loc_4032E1"], [220, "lea rdx, [rbp+var_12C0]"], [221, "mov eax, [rbp+var_10]"], [222, "cdqe"], [223, "shl rax, 6"], [224, "add rdx, rax"], [225, "mov eax, [rbp+var_10]"], [226, "cdqe"], [227, "mov [rbp+rax*8+s], rdx"], [228, "add [rbp+var_10], 1"], [229, "cmp [rbp+var_10], 5"], [230, "jle short loc_4032BD"], [231, "mov rax, [rbp+s]"], [232, "mov rcx, 6675625F6C6C6966h"], [233, "mov [rax], rcx"], [234, "mov byte ptr [rax+8], 0"], [235, "mov rax, [rbp+var_238]"], [236, "mov edx, [rbp+var_34]"], [237, "mov esi, offset aD"], [238, "mov rdi, rax"], [239, "mov eax, 0"], [240, "call _sprintf"], [241, "mov rax, [rbp+var_230]"], [242, "mov word ptr [rax], 31h "], [243, "mov rax, [rbp+var_228]"], [244, "mov word ptr [rax], 31h "], [245, "mov rax, [rbp+var_220]"], [246, "mov word ptr [rax], 30h "], [247, "mov rax, [rbp+var_218]"], [248, "mov byte ptr [rax], 0"], [249, "mov [rbp+var_210], 0"], [250, "lea rax, [rbp+var_280]"], [251, "mov esi, offset aReads"], [252, "mov rdi, rax"], [253, "mov eax, 0"], [254, "call _sprintf"], [255, "lea rax, [rbp+var_2C0]"], [256, "mov esi, offset aFillBuf"], [257, "mov rdi, rax"], [258, "mov eax, 0"], [259, "call _sprintf"], [260, "call sub_408FAB"], [261, "xor eax, 1"], [262, "test al, al"], [263, "jz short loc_4033A6"], [264, "mov edi, offset aResctrlFsDoesN"], [265, "mov eax, 0"], [266, "call sub_4029AE"], [267, "jmp locret_403461"], [268, "call sub_4093CB"], [269, "mov eax, [rbp+var_20]"], [270, "test eax, eax"], [271, "jz short loc_4033B4"], [272, "jmp short loc_4033B9"], [273, "mov eax, 4"], [274, "mov edi, eax"], [275, "call sub_402586"], [276, "call sub_402BA4"], [277, "cmp eax, 1"], [278, "jnz short loc_4033F2"], [279, "cmp [rbp+var_2], 0"], [280, "jz short loc_4033F2"], [281, "movzx eax, [rbp+var_1]"], [282, "lea rdi, [rbp+var_280]"], [283, "mov ecx, [rbp+var_8]"], [284, "mov edx, [rbp+var_34]"], [285, "lea rsi, [rbp+s]"], [286, "mov r8, rdi"], [287, "mov edi, eax"], [288, "call sub_402C56"], [289, "call sub_402BA4"], [290, "cmp eax, 1"], [291, "jnz short loc_403424"], [292, "cmp [rbp+var_3], 0"], [293, "jz short loc_403424"], [294, "movzx eax, [rbp+var_1]"], [295, "lea rdi, [rbp+var_280]"], [296, "mov ecx, [rbp+var_8]"], [297, "mov edx, [rbp+var_34]"], [298, "lea rsi, [rbp+s]"], [299, "mov r8, rdi"], [300, "mov edi, eax"], [301, "call sub_402D36"], [302, "cmp [rbp+var_4], 0"], [303, "jz short loc_403442"], [304, "movzx eax, [rbp+var_1]"], [305, "mov edx, [rbp+var_8]"], [306, "lea rcx, [rbp+s]"], [307, "mov rsi, rcx"], [308, "mov edi, eax"], [309, "call sub_402DF2"], [310, "cmp [rbp+var_21], 0"], [311, "jz short loc_403457"], [312, "mov edx, [rbp+var_14]"], [313, "mov eax, [rbp+var_8]"], [314, "mov esi, edx"], [315, "mov edi, eax"], [316, "call sub_402EC9"], [317, "call sub_4080DA"], [318, "call sub_40299B"], [319, "leave"], [320, "retn"]], "data_dep": [[11, 3], [12, 11], [18, 16], [18, 40], [20, 20], [21, 4], [22, 21], [22, 20], [23, 22], [25, 23], [27, 26], [28, 27], [29, 40], [29, 16], [30, 29], [31, 30], [32, 3], [33, 31], [33, 32], [34, 33], [35, 31], [36, 35], [37, 36], [40, 40], [40, 16], [41, 40], [41, 16], [42, 41], [42, 3], [43, 42], [45, 171], [46, 45], [47, 171], [48, 47], [49, 171], [50, 49], [51, 171], [52, 51], [53, 171], [54, 53], [55, 171], [56, 55], [60, 58], [62, 61], [68, 139], [68, 62], [69, 68], [72, 69], [73, 70], [74, 122], [74, 106], [74, 90], [74, 74], [75, 140], [75, 70], [76, 140], [76, 69], [77, 76], [77, 75], [78, 77], [79, 78], [80, 79], [82, 14], [82, 82], [82, 130], [82, 114], [82, 98], [84, 139], [84, 62], [85, 84], [88, 85], [89, 86], [90, 74], [91, 86], [91, 79], [92, 79], [92, 85], [93, 92], [93, 91], [94, 93], [95, 94], [96, 95], [98, 14], [98, 98], [98, 82], [98, 130], [98, 114], [100, 62], [100, 139], [101, 100], [104, 101], [105, 102], [106, 90], [107, 95], [107, 102], [108, 95], [108, 101], [109, 108], [109, 107], [110, 109], [111, 110], [112, 111], [114, 14], [114, 114], [114, 98], [114, 82], [114, 130], [116, 62], [116, 139], [117, 116], [120, 117], [121, 118], [122, 106], [123, 118], [123, 111], [124, 111], [124, 117], [125, 123], [125, 124], [126, 125], [127, 126], [128, 127], [130, 14], [130, 98], [130, 82], [130, 130], [130, 114], [139, 138], [140, 139], [140, 62], [141, 140], [144, 143], [146, 145], [149, 148], [151, 150], [152, 151], [153, 152], [165, 4], [166, 37], [166, 12], [168, 165], [169, 166], [171, 170], [172, 171], [173, 172], [176, 175], [177, 176], [182, 5], [182, 38], [183, 182], [184, 31], [185, 184], [187, 185], [187, 210], [188, 187], [188, 31], [189, 189], [189, 165], [190, 185], [190, 210], [191, 190], [192, 191], [193, 192], [193, 189], [195, 193], [195, 188], [196, 185], [196, 210], [198, 193], [199, 4], [200, 199], [200, 198], [201, 200], [202, 185], [202, 210], [203, 202], [203, 31], [205, 195], [205, 203], [207, 205], [210, 185], [210, 210], [211, 185], [211, 210], [212, 211], [212, 3], [213, 212], [214, 34], [216, 214], [220, 167], [220, 224], [221, 228], [221, 218], [223, 221], [224, 220], [224, 223], [225, 228], [225, 218], [227, 225], [227, 224], [228, 228], [228, 218], [229, 228], [229, 218], [230, 229], [233, 232], [233, 231], [234, 231], [236, 10], [238, 235], [242, 241], [244, 243], [246, 245], [248, 247], [250, 214], [250, 247], [252, 250], [255, 254], [257, 255], [261, 260], [262, 261], [263, 262], [269, 14], [269, 130], [269, 114], [269, 98], [269, 82], [270, 269], [271, 270], [274, 273], [274, 270], [277, 276], [278, 277], [279, 6], [279, 63], [279, 81], [280, 279], [281, 38], [281, 5], [282, 274], [283, 9], [283, 146], [284, 10], [285, 256], [286, 282], [287, 281], [290, 289], [291, 290], [292, 97], [292, 7], [292, 64], [293, 292], [294, 5], [294, 38], [295, 287], [295, 274], [296, 9], [296, 146], [297, 10], [298, 256], [298, 285], [299, 295], [300, 294], [302, 8], [302, 113], [302, 65], [303, 302], [304, 38], [304, 5], [305, 9], [305, 146], [306, 189], [306, 296], [306, 232], [306, 165], [306, 283], [307, 306], [308, 304], [310, 129], [310, 15], [310, 66], [311, 310], [312, 13], [312, 151], [313, 9], [313, 146], [314, 312], [315, 313], [320, 159], [320, 163], [320, 156], [320, 134]]}
{"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/9c4eb45616cf68f899f481bb462a5f7bc8353e57fe3d33fddecbe769a3efc9eb_9c4eb45616cf68f899f481bb462a5f7bc8353e57fe3d33fddecbe769a3efc9eb.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n__int64 __fastcall main(int a1, char **a2, char **a3)\n{\n__int64 v4; // rdx\n__int64 v5; // rcx\n__int64 v6; // r8\n__int64 v7; // r9\nchar *v8; // rax\nchar **v9; // rsi\n__int64 v10; // rdx\n__int64 v11; // rcx\n__int64 v12; // r8\n__int64 v13; // r9\nunsigned int v14; // eax\n__int64 v15; // rdi\n__int64 v16; // rdx\n__int64 v17; // rcx\n__int64 v18; // r8\n__int64 v19; // r9\n__int64 v20; // rdx\n__int64 v21; // rcx\n__int64 v22; // r8\n__int64 v23; // r9\n__int64 v24; // rcx\n__int64 v25; // r8\n__int64 v26; // r9\nchar v27[4096]; // [rsp+10h] [rbp-12C0h] BYREF\nchar v28[64]; // [rsp+1010h] [rbp-2C0h] BYREF\nchar v29[64]; // [rsp+1050h] [rbp-280h] BYREF\nchar *s[65]; // [rsp+1090h] [rbp-240h] BYREF\nint v31; // [rsp+1298h] [rbp-38h]\nunsigned int v32; // [rsp+129Ch] [rbp-34h]\nchar *v33; // [rsp+12A0h] [rbp-30h]\nchar v34; // [rsp+12AFh] [rbp-21h]\nunsigned int v35; // [rsp+12B0h] [rbp-20h]\nint v36; // [rsp+12B4h] [rbp-1Ch]\nint v37; // [rsp+12B8h] [rbp-18h]\nunsigned int v38; // [rsp+12BCh] [rbp-14h]\nint i; // [rsp+12C0h] [rbp-10h]\nint argc; // [rsp+12C4h] [rbp-Ch]\nint v41; // [rsp+12C8h] [rbp-8h]\nchar v42; // [rsp+12CCh] [rbp-4h]\nchar v43; // [rsp+12CDh] [rbp-3h]\nchar v44; // [rsp+12CEh] [rbp-2h]\nunsigned __int8 v45; // [rsp+12CFh] [rbp-1h]\n\nv45 = 0;\nv44 = 1;\nv43 = 1;\nv42 = 1;\nv41 = 1;\nv32 = 250;\nargc = a1;\nv38 = 0;\nv35 = 0;\nv34 = 1;\nfor ( i = 0; i < a1; ++i )\n{\nif ( !strcmp(a2[i], \"-b\") )\n{\nv37 = i + 1;\nv36 = a1 - (i + 1);\nargc = i;\nv45 = 1;\ngoto LABEL_32;\n}\n}\nwhile ( 1 )\n{\nwhile ( 1 )\n{\nwhile ( 1 )\n{\nLABEL_32:\nv31 = getopt(argc, a2, \"ht:b:n:p:\");\nif ( v31 == -1 )\n{\nsub_402566();\nif ( geteuid() )\nsub_4029AE(\"Not running as root. Skipping...\\n\", (__int64)a2, v4, v5, v6, v7);\nif ( v45 )\n{\nfor ( i = v37; i < a1; ++i )\n{\ns[i - v37] = &v27[64 * (__int64)i];\nsprintf(s[i - v37], \"%s\", a2[i]);\n}\ns[v36] = 0LL;\n}\nelse\n{\nfor ( i = 0; i <= 5; ++i )\ns[i] = &v27[64 * (__int64)i];\nv8 = s[0];\n*(_QWORD *)s[0] = 0x6675625F6C6C6966LL;\nv8[8] = 0;\nsprintf(s[1], \"%d\", v32);\n*(_WORD *)s[2] = 49;\n*(_WORD *)s[3] = 49;\n*(_WORD *)s[4] = 48;\n*s[5] = 0;\ns[6] = 0LL;\n}\nsprintf(v29, \"reads\");\nv9 = (char **)\"fill_buf\";\nsprintf(v28, \"fill_buf\");\nif ( (unsigned __int8)sub_408FAB() != 1 )\nsub_4029AE(\n\"resctrl FS does not exist. Enable X86_CPU_RESCTRL config option.\\n\",\n(__int64)\"fill_buf\",\nv10,\nv11,\nv12,\nv13);\nsub_4093CB();\nv14 = v35;\nif ( !v35 )\nv14 = 4;\nv15 = v14;\nsub_402586(v14);\nif ( (unsigned int)sub_402BA4(v15, (__int64)\"fill_buf\", v16, v17, v18, v19) == 1 && v44 )\n{\nv9 = s;\nv15 = v45;\nsub_402C56(v45, (__int64)s, v32, (unsigned int)v41, (__int64)v29, v23);\n}\nif ( (unsigned int)sub_402BA4(v15, (__int64)v9, v20, v21, v22, v23) == 1 && v43 )\nsub_402D36(v45, (__int64)s, v32, (unsigned int)v41, (__int64)v29, v26);\nif ( v42 )\nsub_402DF2(v45, (__int64)s, (unsigned int)v41, (__int64)s, v25, v26);\nif ( v34 )\nsub_402EC9(v41, v38, v38, v24, v25, v26);\nsub_4080DA();\nsub_40299B();\n}\nif ( v31 != 116 )\nbreak;\nv33 = strtok(optarg, \",\");\nv44 = 0;\nv43 = 0;\nv42 = 0;\nv34 = 0;\nwhile ( v33 )\n{\nif ( !strcmp(v33, \"mbm\") )\n{\nv44 = 1;\n++v35;\n}\nelse if ( !strcmp(v33, \"mba\") )\n{\nv43 = 1;\n++v35;\n}\nelse if ( !strcmp(v33, \"cmt\") )\n{\nv42 = 1;\n++v35;\n}\nelse\n{\nif ( strcmp(v33, \"cat\") )\ngoto LABEL_23;\nv34 = 1;\n++v35;\n}\nv33 = strtok(0LL, \",\");\n}\n}\nif ( v31 > 116 )\n{\nLABEL_23:\nputs(\"invalid argument\");\nreturn 0xFFFFFFFFLL;\n}\nif ( v31 != 112 )\nbreak;\nv41 = atoi(optarg);\n}\nif ( v31 > 112 )\ngoto LABEL_23;\nif ( v31 == 104 )\nbreak;\nif ( v31 != 110 )\ngoto LABEL_23;\nv38 = atoi(optarg);\nif ( (int)v38 <= 0 )\n{\nputs(\"Bail out! invalid argument for no_of_bits\");\nreturn 0xFFFFFFFFLL;\n}\n}\nsub_402BDF();\nreturn 0LL;\n}\n\n\n\nQ:[a2,a3,a1,v16,v9,v15,v27,v28,v29,s,v31,v32,v33,v34,v35,v36,v37,v38,argc,v41,v42,v43,v44,v45,sub_402566,sub_4029AE,sub_408FAB,sub_4093CB,sub_402586,sub_402BA4,sub_402C56,sub_402D36,sub_402DF2,sub_402EC9,sub_4080DA,sub_40299B,sub_402BDF,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v16': 'envp', 'v9': 'argv', 'v15': 'argc', 'v27': 'benchmark_cmd_area', 'v28': 'bm_type', 'v29': 'bw_report', 's': 'benchmark_cmd', 'v31': 'c', 'v32': 'span', 'v33': 'token', 'v34': 'cat_test', 'v35': 'tests', 'v36': 'ben_count', 'v37': 'ben_ind', 'v38': 'no_of_bits', 'argc': 'argc_new', 'v41': 'cpu_no', 'v42': 'cmt_test', 'v43': 'mba_test', 'v44': 'mbm_test', 'v45': 'has_ben', 'sub_402566': 'ksft_print_header', 'sub_4029AE': 'ksft_exit_skip', 'sub_408FAB': 'check_resctrlfs_support', 'sub_4093CB': 'filter_dmesg', 'sub_402586': 'ksft_set_plan', 'sub_402BA4': 'get_vendor', 'sub_402C56': 'run_mbm_test', 'sub_402D36': 'run_mba_test', 'sub_402DF2': 'run_cmt_test', 'sub_402EC9': 'run_cat_test', 'sub_4080DA': 'umount_resctrlfs', 'sub_40299B': 'ksft_exit_pass', 'sub_402BDF': 'cmd_help'}"}
bool_free
c681eb38c30aec69de9ee360cf5cbaadc9181a4c2314bca13df8babc86210026
h2o
h2o
NA
static void bool_free(void *instance, void *env) { (void)env; free(instance); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_415D31", "function_addr": 4283697, "binary_name": "c681eb38c30aec69de9ee360cf5cbaadc9181a4c2314bca13df8babc86210026.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+ptr], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rax, [rbp+ptr]"], [6, "mov rdi, rax"], [7, "call _free"], [8, "nop"], [9, "leave"], [10, "retn"]], "data_dep": [[5, 3], [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/c681eb38c30aec69de9ee360cf5cbaadc9181a4c2314bca13df8babc86210026_c681eb38c30aec69de9ee360cf5cbaadc9181a4c2314bca13df8babc86210026.jsonl.gz", "strip_func_name": "sub_415D31", "query": "\n\n\nvoid __fastcall sub_415D31(void *a1)\n{\nfree(a1);\n}\n\n\n\nQ:[a1,sub_415D31,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'instance', 'sub_415D31': 'bool_free'}"}
LZ4_loadDictHC
8f0d292bd926a29d8d437cf1d40a4cc812756cca46fc5980d5428bef7ea8bcf4
lavabit
pahoehoe
NA
int LZ4_loadDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, const char* dictionary, int dictSize) { LZ4HC_CCtx_internal* const ctxPtr = &LZ4_streamHCPtr->internal_donotuse; if (dictSize > 64 KB) { dictionary += dictSize - 64 KB; dictSize = 64 KB; } LZ4HC_init (ctxPtr, (const BYTE*)dictionary); ctxPtr->end = (const BYTE*)dictionary + dictSize; if (dictSize >= 4) LZ4HC_Insert (ctxPtr, ctxPtr->end-3); return dictSize; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_423520", "function_addr": 4338976, "binary_name": "8f0d292bd926a29d8d437cf1d40a4cc812756cca46fc5980d5428bef7ea8bcf4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 70h"], [3, "mov [rbp+var_58], rdi"], [4, "mov [rbp+var_60], rsi"], [5, "mov [rbp+var_64], edx"], [6, "mov rax, [rbp+var_58]"], [7, "mov [rbp+var_8], rax"], [8, "cmp [rbp+var_64], 10000h"], [9, "jle short loc_42355A"], [10, "mov eax, [rbp+var_64]"], [11, "cdqe"], [12, "sub rax, 10000h"], [13, "add [rbp+var_60], rax"], [14, "mov [rbp+var_64], 10000h"], [15, "mov rdx, [rbp+var_60]"], [16, "mov rax, [rbp+var_8]"], [17, "mov rsi, rdx"], [18, "mov rdi, rax"], [19, "call sub_41A4D7"], [20, "mov eax, [rbp+var_64]"], [21, "movsxd rdx, eax"], [22, "mov rax, [rbp+var_60]"], [23, "add rdx, rax"], [24, "mov rax, [rbp+var_8]"], [25, "mov [rax+40000h], rdx"], [26, "cmp [rbp+var_64], 3"], [27, "jle loc_42367C"], [28, "mov rax, [rbp+var_8]"], [29, "mov rax, [rax+40000h]"], [30, "lea rdx, [rax-3]"], [31, "mov rax, [rbp+var_8]"], [32, "mov [rbp+var_10], rax"], [33, "mov [rbp+var_18], rdx"], [34, "mov rax, [rbp+var_10]"], [35, "add rax, 20000h"], [36, "mov [rbp+var_20], rax"], [37, "mov rax, [rbp+var_10]"], [38, "mov [rbp+var_28], rax"], [39, "mov rax, [rbp+var_10]"], [40, "mov rax, [rax+40008h]"], [41, "mov [rbp+var_30], rax"], [42, "mov rax, [rbp+var_18]"], [43, "sub rax, [rbp+var_30]"], [44, "mov [rbp+var_34], eax"], [45, "mov rax, [rbp+var_10]"], [46, "mov eax, [rax+40028h]"], [47, "mov [rbp+var_38], eax"], [48, "jmp short loc_423662"], [49, "mov edx, [rbp+var_38]"], [50, "mov rax, [rbp+var_30]"], [51, "add rax, rdx"], [52, "mov rdi, rax"], [53, "call sub_41A4B4"], [54, "mov [rbp+var_3C], eax"], [55, "mov eax, [rbp+var_3C]"], [56, "lea rdx, ds:0[rax*4]"], [57, "mov rax, [rbp+var_28]"], [58, "add rax, rdx"], [59, "mov edx, [rax]"], [60, "mov eax, [rbp+var_38]"], [61, "sub eax, edx"], [62, "mov eax, eax"], [63, "mov [rbp+var_48], rax"], [64, "cmp [rbp+var_48], 0FFFFh"], [65, "jbe short loc_42362F"], [66, "mov [rbp+var_48], 0FFFFh"], [67, "mov eax, [rbp+var_38]"], [68, "movzx eax, ax"], [69, "lea rdx, [rax+rax]"], [70, "mov rax, [rbp+var_20]"], [71, "add rax, rdx"], [72, "mov rdx, [rbp+var_48]"], [73, "mov [rax], dx"], [74, "mov eax, [rbp+var_3C]"], [75, "lea rdx, ds:0[rax*4]"], [76, "mov rax, [rbp+var_28]"], [77, "add rdx, rax"], [78, "mov eax, [rbp+var_38]"], [79, "mov [rdx], eax"], [80, "add [rbp+var_38], 1"], [81, "mov eax, [rbp+var_34]"], [82, "cmp eax, [rbp+var_38]"], [83, "ja loc_4235E9"], [84, "mov rax, [rbp+var_10]"], [85, "mov edx, [rbp+var_34]"], [86, "mov [rax+40028h], edx"], [87, "nop"], [88, "mov eax, [rbp+var_64]"], [89, "leave"], [90, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 5], [9, 8], [10, 5], [12, 10], [13, 12], [13, 4], [15, 4], [15, 13], [16, 7], [17, 15], [18, 16], [20, 5], [20, 14], [21, 20], [22, 4], [22, 13], [23, 22], [23, 21], [24, 7], [25, 23], [25, 24], [26, 5], [26, 14], [27, 26], [28, 7], [29, 28], [29, 25], [30, 29], [30, 23], [30, 25], [31, 7], [32, 31], [33, 30], [34, 32], [35, 34], [36, 35], [37, 32], [38, 37], [39, 32], [40, 25], [40, 39], [41, 40], [42, 33], [43, 41], [43, 42], [44, 43], [45, 32], [46, 45], [46, 25], [47, 46], [49, 80], [49, 47], [50, 41], [51, 50], [51, 49], [52, 51], [54, 53], [55, 54], [56, 49], [57, 38], [58, 56], [58, 57], [59, 73], [59, 79], [59, 58], [59, 25], [60, 80], [60, 47], [61, 60], [61, 59], [62, 61], [63, 62], [64, 63], [65, 64], [67, 47], [67, 80], [68, 67], [69, 25], [69, 73], [69, 59], [69, 68], [69, 79], [70, 36], [71, 69], [71, 70], [72, 66], [72, 63], [73, 71], [73, 72], [74, 54], [75, 72], [76, 38], [77, 76], [77, 75], [78, 47], [78, 80], [79, 78], [79, 77], [80, 80], [80, 47], [81, 44], [82, 47], [82, 81], [82, 80], [83, 82], [84, 32], [85, 44], [86, 85], [86, 84], [88, 5], [88, 14], [90, 88]]}
{"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/8f0d292bd926a29d8d437cf1d40a4cc812756cca46fc5980d5428bef7ea8bcf4_8f0d292bd926a29d8d437cf1d40a4cc812756cca46fc5980d5428bef7ea8bcf4.jsonl.gz", "strip_func_name": "sub_423520", "query": "\n\n\n__int64 __fastcall sub_423520(__int64 a1, __int64 a2, int a3)\n{\nint v4; // [rsp+Ch] [rbp-64h]\n__int64 v5; // [rsp+10h] [rbp-60h]\nunsigned __int64 v6; // [rsp+28h] [rbp-48h]\nunsigned int v7; // [rsp+34h] [rbp-3Ch]\nunsigned int i; // [rsp+38h] [rbp-38h]\nunsigned int v9; // [rsp+3Ch] [rbp-34h]\n__int64 v10; // [rsp+40h] [rbp-30h]\n\nv5 = a2;\nv4 = a3;\nif ( a3 > 0x10000 )\n{\nv5 = a3 - 0x10000LL + a2;\nv4 = 0x10000;\n}\nsub_41A4D7(a1, v5);\n*(_QWORD *)(a1 + 0x40000) = v5 + v4;\nif ( v4 > 3 )\n{\nv10 = *(_QWORD *)(a1 + 262152);\nv9 = *(_DWORD *)(a1 + 0x40000) - 3 - v10;\nfor ( i = *(_DWORD *)(a1 + 262184); v9 > i; ++i )\n{\nv7 = sub_41A4B4((unsigned int *)(i + v10));\nv6 = i - *(_DWORD *)(4LL * v7 + a1);\nif ( v6 > 0xFFFF )\nLOWORD(v6) = -1;\n*(_WORD *)(2LL * (unsigned __int16)i + a1 + 0x20000) = v6;\n*(_DWORD *)(a1 + 4LL * v7) = i;\n}\n*(_DWORD *)(a1 + 262184) = v9;\n}\nreturn (unsigned int)v4;\n}\n\n\n\nQ:[a3,a1,a2,v4,v5,sub_423520,sub_41A4D7,sub_41A4B4,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'dictSize', 'a1': 'LZ4_streamHCPtr', 'a2': 'dictionary', 'v4': 'dictSizea', 'v5': 'dictionarya', 'sub_423520': 'LZ4_loadDictHC', 'sub_41A4D7': 'LZ4HC_init', 'sub_41A4B4': 'LZ4HC_hashPtr'}"}
ScaleFuzzySeperator_r
96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7
zturtleman
lilium-voyager
NA
void ScaleFuzzySeperator_r(fuzzyseperator_t *fs, float scale) { if (fs->child) { ScaleFuzzySeperator_r(fs->child, scale); } //end if else if (fs->type == WT_BALANCE) { // fs->weight = (float) (fs->maxweight + fs->minweight) * scale; //get the weight between bounds if (fs->weight < fs->minweight) fs->weight = fs->minweight; else if (fs->weight > fs->maxweight) fs->weight = fs->maxweight; } //end else if if (fs->next) ScaleFuzzySeperator_r(fs->next, scale); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_48B052", "function_addr": 4763730, "binary_name": "96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "movss [rbp+var_C], xmm0"], [5, "mov rax, [rbp+var_8]"], [6, "mov rax, [rax+18h]"], [7, "test rax, rax"], [8, "jz short loc_48B08C"], [9, "mov rax, [rbp+var_8]"], [10, "mov rax, [rax+18h]"], [11, "mov edx, [rbp+var_C]"], [12, "movd xmm0, edx"], [13, "mov rdi, rax"], [14, "call sub_48B052"], [15, "jmp loc_48B110"], [16, "mov rax, [rbp+var_8]"], [17, "mov eax, [rax+8]"], [18, "cmp eax, 1"], [19, "jnz short loc_48B110"], [20, "mov rax, [rbp+var_8]"], [21, "movss xmm1, dword ptr [rax+14h]"], [22, "mov rax, [rbp+var_8]"], [23, "movss xmm0, dword ptr [rax+10h]"], [24, "addss xmm0, xmm1"], [25, "mulss xmm0, [rbp+var_C]"], [26, "mov rax, [rbp+var_8]"], [27, "movss dword ptr [rax+0Ch], xmm0"], [28, "mov rax, [rbp+var_8]"], [29, "movss xmm1, dword ptr [rax+0Ch]"], [30, "mov rax, [rbp+var_8]"], [31, "movss xmm0, dword ptr [rax+10h]"], [32, "comiss xmm0, xmm1"], [33, "jbe short loc_48B0E7"], [34, "mov rax, [rbp+var_8]"], [35, "movss xmm0, dword ptr [rax+10h]"], [36, "mov rax, [rbp+var_8]"], [37, "movss dword ptr [rax+0Ch], xmm0"], [38, "jmp short loc_48B110"], [39, "mov rax, [rbp+var_8]"], [40, "movss xmm0, dword ptr [rax+0Ch]"], [41, "mov rax, [rbp+var_8]"], [42, "movss xmm1, dword ptr [rax+14h]"], [43, "comiss xmm0, xmm1"], [44, "jbe short loc_48B110"], [45, "mov rax, [rbp+var_8]"], [46, "movss xmm0, dword ptr [rax+14h]"], [47, "mov rax, [rbp+var_8]"], [48, "movss dword ptr [rax+0Ch], xmm0"], [49, "mov rax, [rbp+var_8]"], [50, "mov rax, [rax+20h]"], [51, "test rax, rax"], [52, "jz short loc_48B134"], [53, "mov rax, [rbp+var_8]"], [54, "mov rax, [rax+20h]"], [55, "mov edx, [rbp+var_C]"], [56, "movd xmm0, edx"], [57, "mov rdi, rax"], [58, "call sub_48B052"], [59, "nop"], [60, "leave"], [61, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [9, 3], [10, 9], [11, 4], [12, 11], [13, 10], [16, 3], [17, 16], [18, 17], [19, 18], [20, 3], [21, 20], [22, 3], [23, 22], [24, 23], [24, 21], [25, 4], [25, 24], [26, 3], [27, 25], [27, 26], [28, 3], [29, 28], [29, 27], [30, 3], [31, 30], [31, 27], [32, 31], [32, 29], [33, 18], [34, 3], [35, 27], [35, 37], [35, 34], [36, 3], [37, 36], [37, 35], [39, 3], [40, 27], [40, 39], [41, 3], [42, 41], [42, 27], [43, 40], [43, 42], [44, 18], [45, 3], [46, 27], [46, 45], [46, 48], [47, 3], [48, 47], [48, 46], [49, 3], [50, 49], [50, 27], [50, 48], [50, 37], [51, 50], [52, 51], [53, 3], [54, 53], [54, 37], [54, 27], [54, 48], [55, 4], [56, 55], [57, 54], [61, 58], [61, 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/96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7_96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7.jsonl.gz", "strip_func_name": "sub_48B052", "query": "\n\n\n__int64 __fastcall sub_48B052(__int64 a1, float a2)\n{\n__int64 result; // rax\n\nif ( *(_QWORD *)(a1 + 24) )\n{\nsub_48B052(*(_QWORD *)(a1 + 24), *(double *)_mm_cvtsi32_si128(LODWORD(a2)).m128i_i64);\n}\nelse if ( *(_DWORD *)(a1 + 8) == 1 )\n{\n*(float *)(a1 + 12) = (float)(*(float *)(a1 + 16) + *(float *)(a1 + 20)) * a2;\nif ( *(float *)(a1 + 16) <= *(float *)(a1 + 12) )\n{\nif ( *(float *)(a1 + 12) > *(float *)(a1 + 20) )\n*(_DWORD *)(a1 + 12) = *(_DWORD *)(a1 + 20);\n}\nelse\n{\n*(_DWORD *)(a1 + 12) = *(_DWORD *)(a1 + 16);\n}\n}\nresult = *(_QWORD *)(a1 + 32);\nif ( result )\nresult = sub_48B052(*(_QWORD *)(a1 + 32), *(double *)_mm_cvtsi32_si128(LODWORD(a2)).m128i_i64);\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_48B052,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fs_0', 'a2': 'scale', 'sub_48B052': 'ScaleFuzzySeperator_r'}"}
con_ready_destroy
21ec570edffa9218508b4464f26703b15ddd9ff122ae322a90c284d140140eec
ohler55
agoo-c
NA
static void con_ready_destroy(void *ctx) { agoo_con_destroy((agooCon)ctx); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40AF5D", "function_addr": 4239197, "binary_name": "21ec570edffa9218508b4464f26703b15ddd9ff122ae322a90c284d140140eec.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_407A96"], [7, "nop"], [8, "leave"], [9, "retn"]], "data_dep": [[4, 3], [5, 4], [9, 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/21ec570edffa9218508b4464f26703b15ddd9ff122ae322a90c284d140140eec_21ec570edffa9218508b4464f26703b15ddd9ff122ae322a90c284d140140eec.jsonl.gz", "strip_func_name": "sub_40AF5D", "query": "\n\n\nvoid __fastcall sub_40AF5D(__int64 a1, __int64 a2, __int64 a3, int a4, int a5, int a6)\n{\nsub_407A96(a1, a2, a3, a4, a5, a6);\n}\n\n\n\nQ:[a1,sub_40AF5D,sub_407A96,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ctx', 'sub_40AF5D': 'con_ready_destroy', 'sub_407A96': 'agoo_con_destroy'}"}
sigchld
a9838ca9159ce9b0ee599a872c1ff0d2aebbc40101727b1a5d58bfee9dd9d87b
LukeSmithxyz
st
NA
void sigchld(int a) { int stat; pid_t p; if ((p = waitpid(pid, &stat, WNOHANG)) < 0) die("waiting for pid %hd failed: %s\n", pid, strerror(errno)); if (pid != p) return; if (WIFEXITED(stat) && WEXITSTATUS(stat)) die("child exited with status %d\n", WEXITSTATUS(stat)); else if (WIFSIGNALED(stat)) die("child terminated due to signal %d\n", WTERMSIG(stat)); _exit(0); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "handler", "function_addr": 4219816, "binary_name": "a9838ca9159ce9b0ee599a872c1ff0d2aebbc40101727b1a5d58bfee9dd9d87b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_14], edi"], [4, "mov eax, cs:pid"], [5, "lea rcx, [rbp+stat_loc]"], [6, "mov edx, 1"], [7, "mov rsi, rcx"], [8, "mov edi, eax"], [9, "call _waitpid"], [10, "mov [rbp+var_4], eax"], [11, "cmp [rbp+var_4], 0"], [12, "jns short loc_4063FD"], [13, "call ___errno_location"], [14, "mov eax, [rax]"], [15, "mov edi, eax"], [16, "call _strerror"], [17, "mov rdx, rax"], [18, "mov eax, cs:pid"], [19, "mov esi, eax"], [20, "mov edi, offset aWaitingForPidH"], [21, "mov eax, 0"], [22, "call sub_406094"], [23, "mov eax, cs:pid"], [24, "cmp [rbp+var_4], eax"], [25, "jnz short loc_40646B"], [26, "mov eax, [rbp+stat_loc]"], [27, "and eax, 7Fh"], [28, "test eax, eax"], [29, "jnz short loc_40643B"], [30, "mov eax, [rbp+stat_loc]"], [31, "sar eax, 8"], [32, "movzx eax, al"], [33, "test eax, eax"], [34, "jz short loc_40643B"], [35, "mov eax, [rbp+stat_loc]"], [36, "sar eax, 8"], [37, "movzx eax, al"], [38, "mov esi, eax"], [39, "mov edi, offset aChildExitedWit"], [40, "mov eax, 0"], [41, "call sub_406094"], [42, "jmp short loc_406461"], [43, "mov eax, [rbp+stat_loc]"], [44, "and eax, 7Fh"], [45, "add eax, 1"], [46, "sar al, 1"], [47, "test al, al"], [48, "jle short loc_406461"], [49, "mov eax, [rbp+stat_loc]"], [50, "and eax, 7Fh"], [51, "mov esi, eax"], [52, "mov edi, offset aChildTerminate"], [53, "mov eax, 0"], [54, "call sub_406094"], [55, "mov edi, 0"], [56, "call __exit"], [57, "nop"], [58, "leave"], [59, "retn"]], "data_dep": [[7, 5], [8, 4], [10, 9], [11, 10], [12, 11], [14, 13], [15, 14], [17, 16], [19, 18], [24, 23], [24, 10], [25, 24], [27, 26], [28, 27], [29, 28], [31, 30], [32, 31], [33, 32], [34, 33], [36, 35], [37, 36], [38, 37], [44, 43], [45, 44], [46, 45], [47, 46], [48, 47], [50, 49], [51, 50], [59, 23]]}
{"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/a9838ca9159ce9b0ee599a872c1ff0d2aebbc40101727b1a5d58bfee9dd9d87b_a9838ca9159ce9b0ee599a872c1ff0d2aebbc40101727b1a5d58bfee9dd9d87b.jsonl.gz", "strip_func_name": "handler", "query": "\n\n\nvoid handler()\n{\n__int64 v0; // rdx\n__int64 v1; // rcx\n__int64 v2; // r8\n__int64 v3; // r9\nint *v4; // rax\nchar *v5; // rax\n__int64 v6; // rcx\n__int64 v7; // r8\n__int64 v8; // r9\nint stat_loc; // [rsp+18h] [rbp-8h] BYREF\n__pid_t v10; // [rsp+1Ch] [rbp-4h]\n\nv10 = waitpid(pid, &stat_loc, 1);\nif ( v10 < 0 )\n{\nv4 = __errno_location();\nv5 = strerror(*v4);\nsub_406094(\"waiting for pid %hd failed: %s\\n\", (unsigned int)pid, (__int64)v5, v6, v7, v8);\n}\nif ( v10 == pid )\n{\nif ( (stat_loc & 0x7F) == 0 && BYTE1(stat_loc) )\nsub_406094(\"child exited with status %d\\n\", BYTE1(stat_loc), v0, v1, v2, v3);\nif ( (char)((stat_loc & 0x7F) + 1) >> 1 > 0 )\nsub_406094(\"child terminated due to signal %d\\n\", stat_loc & 0x7F, v0, v1, v2, v3);\n_exit(0);\n}\n}\n\n\n\nQ:[stat_loc,v10,sub_406094,]\nAssistant: ", "hints": "[]", "response": "{'stat_loc': 'stat', 'v10': 'p', 'sub_406094': 'die'}"}
OptPtrStore1
1c9782cb95ac345a77465ba88b70eb8da93f650d1c8877cf5bb119d4d1bf0021
mupfdev
SNESoIP
NA
unsigned OptPtrStore1 (CodeSeg* S) /* Search for the sequence: ** ** clc ** adc xxx ** bcc L ** inx ** L: jsr pushax ** ldx #$00 ** lda yyy ** ldy #$00 ** jsr staspidx ** ** and replace it by: ** ** sta ptr1 ** stx ptr1+1 ** ldy xxx ** ldx #$00 ** lda yyy ** sta (ptr1),y ** ** or by ** ** ldy xxx ** ldx #$00 ** lda yyy ** sta (zp),y ** ** or by ** ** ldy xxx ** ldx #$00 ** lda yyy ** sta label,y ** ** or by ** ** ldy xxx ** ldx #$00 ** lda yyy ** sta $xxxx,y ** ** depending on the code preceeding the sequence above. */ { unsigned Changes = 0; unsigned I; /* Walk over the entries */ I = 0; while (I < CS_GetEntryCount (S)) { CodeEntry* L[9]; /* Get next entry */ L[0] = CS_GetEntry (S, I); /* Check for the sequence */ if (L[0]->OPC == OP65_CLC && CS_GetEntries (S, L+1, I+1, 8) && L[1]->OPC == OP65_ADC && (L[1]->AM == AM65_ABS || L[1]->AM == AM65_ZP || L[1]->AM == AM65_IMM || (L[1]->AM == AM65_ZP_INDY && RegValIsKnown (L[1]->RI->In.RegY))) && (L[2]->OPC == OP65_BCC || L[2]->OPC == OP65_JCC) && L[2]->JumpTo != 0 && L[2]->JumpTo->Owner == L[4] && L[3]->OPC == OP65_INX && CE_IsCallTo (L[4], "pushax") && L[5]->OPC == OP65_LDX && L[6]->OPC == OP65_LDA && L[7]->OPC == OP65_LDY && CE_IsKnownImm (L[7], 0) && CE_IsCallTo (L[8], "staspidx") && !CS_RangeHasLabel (S, I+1, 3) && !CS_RangeHasLabel (S, I+5, 4)) { CodeEntry* X; const char* Loc; am_t AM; /* Track the insertion point */ unsigned IP = I + 9; if ((Loc = LoadAXZP (S, I)) != 0) { /* If the sequence is preceeded by a load of a ZP value, ** we can use this ZP value as a pointer using ZP ** indirect Y addressing. */ AM = AM65_ZP_INDY; } else if ((Loc = LoadAXImm (S, I)) != 0) { /* If the sequence is preceeded by a load of an immediate ** value, we can use this absolute value as an address ** using absolute indexed Y addressing. */ AM = AM65_ABSY; } /* If we don't have a store location, we use ptr1 with zp ** indirect Y addressing. We must store the value in A/X into ** ptr1 in this case. */ if (Loc == 0) { /* Must use ptr1 */ Loc = "ptr1"; AM = AM65_ZP_INDY; X = NewCodeEntry (OP65_STA, AM65_ZP, "ptr1", 0, L[8]->LI); CS_InsertEntry (S, X, IP++); X = NewCodeEntry (OP65_STX, AM65_ZP, "ptr1+1", 0, L[8]->LI); CS_InsertEntry (S, X, IP++); } /* If the index is loaded from (zp),y, we cannot do that directly. ** Note: In this case, the Y register will contain the correct ** value after removing the old code, so we don't need to load ** it here. */ if (L[1]->AM == AM65_ZP_INDY) { X = NewCodeEntry (OP65_LDA, L[1]->AM, L[1]->Arg, 0, L[1]->LI); CS_InsertEntry (S, X, IP++); X = NewCodeEntry (OP65_TAY, AM65_IMP, 0, 0, L[1]->LI); CS_InsertEntry (S, X, IP++); } else { X = NewCodeEntry (OP65_LDY, L[1]->AM, L[1]->Arg, 0, L[1]->LI); CS_InsertEntry (S, X, IP++); } X = NewCodeEntry (OP65_LDX, L[5]->AM, L[5]->Arg, 0, L[5]->LI); CS_InsertEntry (S, X, IP++); X = NewCodeEntry (OP65_LDA, L[6]->AM, L[6]->Arg, 0, L[6]->LI); CS_InsertEntry (S, X, IP++); X = NewCodeEntry (OP65_STA, AM, Loc, 0, L[8]->LI); CS_InsertEntry (S, X, IP++); /* Remove the old code */ CS_DelEntries (S, I, 9); /* Skip most of the generated replacement code */ I += 3; /* Remember, we had changes */ ++Changes; } /* Next entry */ ++I; } /* Return the number of changes made */ return Changes; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4315DE", "function_addr": 4396510, "binary_name": "1c9782cb95ac345a77465ba88b70eb8da93f650d1c8877cf5bb119d4d1bf0021.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "add rsp, 0FFFFFFFFFFFFFF80h"], [3, "mov [rbp+var_78], rdi"], [4, "mov [rbp+var_4], 0"], [5, "mov [rbp+var_8], 0"], [6, "jmp loc_431A96"], [7, "mov edx, [rbp+var_8]"], [8, "mov rax, [rbp+var_78]"], [9, "mov esi, edx"], [10, "mov rdi, rax"], [11, "call sub_431049"], [12, "mov [rbp+var_70], rax"], [13, "mov rax, [rbp+var_70]"], [14, "movzx eax, byte ptr [rax]"], [15, "cmp al, 0Eh"], [16, "jnz loc_431A92"], [17, "mov eax, [rbp+var_8]"], [18, "lea edx, [rax+1]"], [19, "lea rax, [rbp+var_70]"], [20, "add rax, 8"], [21, "mov rdi, [rbp+var_78]"], [22, "mov ecx, 8"], [23, "mov rsi, rax"], [24, "call sub_42FA88"], [25, "test eax, eax"], [26, "jz loc_431A92"], [27, "mov rax, [rbp+var_68]"], [28, "movzx eax, byte ptr [rax]"], [29, "test al, al"], [30, "jnz loc_431A92"], [31, "mov rax, [rbp+var_68]"], [32, "movzx eax, byte ptr [rax+1]"], [33, "cmp al, 6"], [34, "jz short loc_4316A7"], [35, "mov rax, [rbp+var_68]"], [36, "movzx eax, byte ptr [rax+1]"], [37, "cmp al, 3"], [38, "jz short loc_4316A7"], [39, "mov rax, [rbp+var_68]"], [40, "movzx eax, byte ptr [rax+1]"], [41, "cmp al, 2"], [42, "jz short loc_4316A7"], [43, "mov rax, [rbp+var_68]"], [44, "movzx eax, byte ptr [rax+1]"], [45, "cmp al, 0Ah"], [46, "jnz loc_431A92"], [47, "mov rax, [rbp+var_68]"], [48, "mov rax, [rax+40h]"], [49, "movzx eax, word ptr [rax+4]"], [50, "cwde"], [51, "mov edi, eax"], [52, "call sub_430FA8"], [53, "test eax, eax"], [54, "jz loc_431A92"], [55, "mov rax, [rbp+var_60]"], [56, "movzx eax, byte ptr [rax]"], [57, "cmp al, 3"], [58, "jz short loc_4316C1"], [59, "mov rax, [rbp+var_60]"], [60, "movzx eax, byte ptr [rax]"], [61, "cmp al, 1Eh"], [62, "jnz loc_431A92"], [63, "mov rax, [rbp+var_60]"], [64, "mov rax, [rax+20h]"], [65, "test rax, rax"], [66, "jz loc_431A92"], [67, "mov rax, [rbp+var_60]"], [68, "mov rax, [rax+20h]"], [69, "mov rdx, [rax+18h]"], [70, "mov rax, [rbp+var_50]"], [71, "cmp rdx, rax"], [72, "jnz loc_431A92"], [73, "mov rax, [rbp+var_58]"], [74, "movzx eax, byte ptr [rax]"], [75, "cmp al, 1Ch"], [76, "jnz loc_431A92"], [77, "mov rax, [rbp+var_50]"], [78, "mov esi, offset aPushax_3"], [79, "mov rdi, rax"], [80, "call sub_430FE7"], [81, "test eax, eax"], [82, "jz loc_431A92"], [83, "mov rax, [rbp+var_48]"], [84, "movzx eax, byte ptr [rax]"], [85, "cmp al, 29h "], [86, "jnz loc_431A92"], [87, "mov rax, [rbp+var_40]"], [88, "movzx eax, byte ptr [rax]"], [89, "cmp al, 28h "], [90, "jnz loc_431A92"], [91, "mov rax, [rbp+var_38]"], [92, "movzx eax, byte ptr [rax]"], [93, "cmp al, 2Ah "], [94, "jnz loc_431A92"], [95, "mov rax, [rbp+var_38]"], [96, "mov esi, 0"], [97, "mov rdi, rax"], [98, "call sub_40754B"], [99, "test eax, eax"], [100, "jz loc_431A92"], [101, "mov rax, [rbp+var_30]"], [102, "mov esi, offset aStaspidx"], [103, "mov rdi, rax"], [104, "call sub_430FE7"], [105, "test eax, eax"], [106, "jz loc_431A92"], [107, "mov eax, [rbp+var_8]"], [108, "lea ecx, [rax+1]"], [109, "mov rax, [rbp+var_78]"], [110, "mov edx, 3"], [111, "mov esi, ecx"], [112, "mov rdi, rax"], [113, "call sub_42FB5D"], [114, "test eax, eax"], [115, "jnz loc_431A92"], [116, "mov eax, [rbp+var_8]"], [117, "lea ecx, [rax+5]"], [118, "mov rax, [rbp+var_78]"], [119, "mov edx, 4"], [120, "mov esi, ecx"], [121, "mov rdi, rax"], [122, "call sub_42FB5D"], [123, "test eax, eax"], [124, "jnz loc_431A92"], [125, "mov eax, [rbp+var_8]"], [126, "add eax, 9"], [127, "mov [rbp+var_18], eax"], [128, "mov edx, [rbp+var_8]"], [129, "mov rax, [rbp+var_78]"], [130, "mov esi, edx"], [131, "mov rdi, rax"], [132, "call sub_43123C"], [133, "mov [rbp+var_10], rax"], [134, "cmp [rbp+var_10], 0"], [135, "jz short loc_4317E2"], [136, "mov [rbp+var_14], 0Ah"], [137, "jmp short loc_431805"], [138, "mov edx, [rbp+var_8]"], [139, "mov rax, [rbp+var_78]"], [140, "mov esi, edx"], [141, "mov rdi, rax"], [142, "call sub_431360"], [143, "mov [rbp+var_10], rax"], [144, "cmp [rbp+var_10], 0"], [145, "jz short loc_431805"], [146, "mov [rbp+var_14], 8"], [147, "cmp [rbp+var_10], 0"], [148, "jnz loc_4318A5"], [149, "mov [rbp+var_10], offset aPtr1_2"], [150, "mov [rbp+var_14], 0Ah"], [151, "mov rax, [rbp+var_30]"], [152, "mov rax, [rax+38h]"], [153, "mov r8, rax"], [154, "mov ecx, 0"], [155, "mov edx, offset aPtr1_2"], [156, "mov esi, 3"], [157, "mov edi, 3Eh "], [158, "call sub_4070C9"], [159, "mov [rbp+var_20], rax"], [160, "mov eax, [rbp+var_18]"], [161, "lea edx, [rax+1]"], [162, "mov [rbp+var_18], edx"], [163, "mov rsi, [rbp+var_20]"], [164, "mov rcx, [rbp+var_78]"], [165, "mov edx, eax"], [166, "mov rdi, rcx"], [167, "call sub_42F85E"], [168, "mov rax, [rbp+var_30]"], [169, "mov rax, [rax+38h]"], [170, "mov r8, rax"], [171, "mov ecx, 0"], [172, "mov edx, offset aPtr11_2"], [173, "mov esi, 3"], [174, "mov edi, 3Fh "], [175, "call sub_4070C9"], [176, "mov [rbp+var_20], rax"], [177, "mov eax, [rbp+var_18]"], [178, "lea edx, [rax+1]"], [179, "mov [rbp+var_18], edx"], [180, "mov rsi, [rbp+var_20]"], [181, "mov rcx, [rbp+var_78]"], [182, "mov edx, eax"], [183, "mov rdi, rcx"], [184, "call sub_42F85E"], [185, "mov rax, [rbp+var_68]"], [186, "movzx eax, byte ptr [rax+1]"], [187, "cmp al, 0Ah"], [188, "jnz loc_431948"], [189, "mov rax, [rbp+var_68]"], [190, "mov rcx, [rax+38h]"], [191, "mov rax, [rbp+var_68]"], [192, "mov rdx, [rax+8]"], [193, "mov rax, [rbp+var_68]"], [194, "movzx eax, byte ptr [rax+1]"], [195, "movzx eax, al"], [196, "mov r8, rcx"], [197, "mov ecx, 0"], [198, "mov esi, eax"], [199, "mov edi, 28h "], [200, "call sub_4070C9"], [201, "mov [rbp+var_20], rax"], [202, "mov eax, [rbp+var_18]"], [203, "lea edx, [rax+1]"], [204, "mov [rbp+var_18], edx"], [205, "mov rsi, [rbp+var_20]"], [206, "mov rcx, [rbp+var_78]"], [207, "mov edx, eax"], [208, "mov rdi, rcx"], [209, "call sub_42F85E"], [210, "mov rax, [rbp+var_68]"], [211, "mov rax, [rax+38h]"], [212, "mov r8, rax"], [213, "mov ecx, 0"], [214, "mov edx, 0"], [215, "mov esi, 0"], [216, "mov edi, 43h "], [217, "call sub_4070C9"], [218, "mov [rbp+var_20], rax"], [219, "mov eax, [rbp+var_18]"], [220, "lea edx, [rax+1]"], [221, "mov [rbp+var_18], edx"], [222, "mov rsi, [rbp+var_20]"], [223, "mov rcx, [rbp+var_78]"], [224, "mov edx, eax"], [225, "mov rdi, rcx"], [226, "call sub_42F85E"], [227, "jmp short loc_431996"], [228, "mov rax, [rbp+var_68]"], [229, "mov rcx, [rax+38h]"], [230, "mov rax, [rbp+var_68]"], [231, "mov rdx, [rax+8]"], [232, "mov rax, [rbp+var_68]"], [233, "movzx eax, byte ptr [rax+1]"], [234, "movzx eax, al"], [235, "mov r8, rcx"], [236, "mov ecx, 0"], [237, "mov esi, eax"], [238, "mov edi, 2Ah "], [239, "call sub_4070C9"], [240, "mov [rbp+var_20], rax"], [241, "mov eax, [rbp+var_18]"], [242, "lea edx, [rax+1]"], [243, "mov [rbp+var_18], edx"], [244, "mov rsi, [rbp+var_20]"], [245, "mov rcx, [rbp+var_78]"], [246, "mov edx, eax"], [247, "mov rdi, rcx"], [248, "call sub_42F85E"], [249, "mov rax, [rbp+var_48]"], [250, "mov rcx, [rax+38h]"], [251, "mov rax, [rbp+var_48]"], [252, "mov rdx, [rax+8]"], [253, "mov rax, [rbp+var_48]"], [254, "movzx eax, byte ptr [rax+1]"], [255, "movzx eax, al"], [256, "mov r8, rcx"], [257, "mov ecx, 0"], [258, "mov esi, eax"], [259, "mov edi, 29h "], [260, "call sub_4070C9"], [261, "mov [rbp+var_20], rax"], [262, "mov eax, [rbp+var_18]"], [263, "lea edx, [rax+1]"], [264, "mov [rbp+var_18], edx"], [265, "mov rsi, [rbp+var_20]"], [266, "mov rcx, [rbp+var_78]"], [267, "mov edx, eax"], [268, "mov rdi, rcx"], [269, "call sub_42F85E"], [270, "mov rax, [rbp+var_40]"], [271, "mov rcx, [rax+38h]"], [272, "mov rax, [rbp+var_40]"], [273, "mov rdx, [rax+8]"], [274, "mov rax, [rbp+var_40]"], [275, "movzx eax, byte ptr [rax+1]"], [276, "movzx eax, al"], [277, "mov r8, rcx"], [278, "mov ecx, 0"], [279, "mov esi, eax"], [280, "mov edi, 28h "], [281, "call sub_4070C9"], [282, "mov [rbp+var_20], rax"], [283, "mov eax, [rbp+var_18]"], [284, "lea edx, [rax+1]"], [285, "mov [rbp+var_18], edx"], [286, "mov rsi, [rbp+var_20]"], [287, "mov rcx, [rbp+var_78]"], [288, "mov edx, eax"], [289, "mov rdi, rcx"], [290, "call sub_42F85E"], [291, "mov rax, [rbp+var_30]"], [292, "mov rcx, [rax+38h]"], [293, "mov rdx, [rbp+var_10]"], [294, "mov eax, [rbp+var_14]"], [295, "mov r8, rcx"], [296, "mov ecx, 0"], [297, "mov esi, eax"], [298, "mov edi, 3Eh "], [299, "call sub_4070C9"], [300, "mov [rbp+var_20], rax"], [301, "mov eax, [rbp+var_18]"], [302, "lea edx, [rax+1]"], [303, "mov [rbp+var_18], edx"], [304, "mov rsi, [rbp+var_20]"], [305, "mov rcx, [rbp+var_78]"], [306, "mov edx, eax"], [307, "mov rdi, rcx"], [308, "call sub_42F85E"], [309, "mov ecx, [rbp+var_8]"], [310, "mov rax, [rbp+var_78]"], [311, "mov edx, 9"], [312, "mov esi, ecx"], [313, "mov rdi, rax"], [314, "call sub_42F963"], [315, "add [rbp+var_8], 3"], [316, "add [rbp+var_4], 1"], [317, "add [rbp+var_8], 1"], [318, "mov rax, [rbp+var_78]"], [319, "mov rdi, rax"], [320, "call sub_43102B"], [321, "cmp [rbp+var_8], eax"], [322, "jb loc_4315FD"], [323, "mov eax, [rbp+var_4]"], [324, "leave"], [325, "retn"]], "data_dep": [[7, 5], [7, 317], [8, 3], [9, 7], [10, 8], [12, 11], [13, 12], [14, 13], [15, 14], [16, 15], [17, 5], [17, 317], [18, 17], [18, 7], [19, 17], [19, 12], [20, 19], [21, 3], [23, 20], [25, 24], [26, 25], [28, 27], [29, 28], [30, 29], [32, 31], [33, 32], [34, 33], [36, 35], [37, 36], [38, 37], [40, 39], [41, 40], [42, 41], [44, 43], [45, 44], [46, 45], [48, 47], [49, 48], [51, 49], [53, 52], [54, 53], [56, 55], [57, 56], [58, 57], [60, 59], [61, 60], [62, 61], [64, 63], [65, 64], [66, 65], [68, 67], [69, 68], [71, 69], [71, 70], [72, 71], [74, 73], [75, 74], [76, 75], [79, 77], [81, 80], [82, 81], [84, 83], [85, 84], [86, 85], [88, 87], [89, 88], [90, 89], [92, 91], [93, 92], [94, 93], [97, 95], [99, 98], [100, 99], [103, 101], [105, 104], [106, 105], [107, 5], [107, 317], [108, 107], [108, 22], [109, 3], [111, 108], [112, 109], [114, 113], [115, 114], [116, 317], [116, 5], [117, 108], [117, 116], [118, 3], [120, 117], [121, 118], [123, 122], [124, 123], [125, 317], [125, 5], [126, 125], [127, 126], [128, 5], [128, 317], [129, 3], [130, 128], [131, 129], [133, 132], [134, 133], [135, 134], [138, 5], [138, 317], [139, 3], [140, 138], [141, 139], [143, 142], [144, 143], [145, 144], [147, 143], [147, 133], [148, 147], [152, 151], [153, 152], [159, 158], [160, 127], [161, 160], [161, 155], [162, 161], [163, 159], [164, 3], [165, 160], [166, 164], [169, 168], [170, 169], [176, 175], [177, 162], [178, 177], [178, 172], [179, 178], [180, 176], [181, 3], [182, 177], [183, 181], [186, 185], [187, 186], [188, 187], [190, 189], [192, 191], [194, 193], [195, 194], [196, 190], [198, 195], [201, 200], [202, 127], [202, 179], [203, 202], [203, 192], [204, 203], [205, 201], [206, 3], [207, 202], [208, 206], [211, 210], [212, 211], [218, 217], [219, 204], [220, 219], [220, 214], [221, 220], [222, 218], [223, 3], [224, 219], [225, 223], [229, 228], [231, 230], [233, 232], [234, 233], [235, 229], [237, 234], [240, 239], [241, 179], [241, 127], [242, 231], [242, 241], [243, 242], [244, 240], [245, 3], [246, 241], [247, 245], [250, 249], [252, 251], [254, 253], [255, 254], [256, 250], [258, 255], [261, 260], [262, 243], [262, 221], [263, 262], [263, 252], [264, 263], [265, 261], [266, 3], [267, 262], [268, 266], [271, 270], [273, 272], [275, 274], [276, 275], [277, 271], [279, 276], [282, 281], [283, 264], [284, 283], [284, 273], [285, 284], [286, 282], [287, 3], [288, 283], [289, 287], [292, 291], [293, 143], [293, 149], [293, 133], [294, 146], [294, 150], [294, 136], [295, 292], [297, 294], [300, 299], [301, 285], [302, 301], [302, 293], [303, 302], [304, 300], [305, 3], [306, 301], [307, 305], [309, 5], [309, 317], [310, 3], [312, 309], [313, 310], [315, 317], [315, 5], [316, 316], [316, 4], [317, 5], [317, 315], [317, 317], [318, 3], [319, 318], [321, 5], [321, 320], [321, 317], [322, 321], [323, 4], [323, 316], [325, 323]]}
{"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/1c9782cb95ac345a77465ba88b70eb8da93f650d1c8877cf5bb119d4d1bf0021_1c9782cb95ac345a77465ba88b70eb8da93f650d1c8877cf5bb119d4d1bf0021.jsonl.gz", "strip_func_name": "sub_4315DE", "query": "\n\n\n__int64 __fastcall sub_4315DE(__int64 a1)\n{\nunsigned int i; // eax\nunsigned int v2; // eax\nunsigned int v3; // eax\nunsigned int v4; // eax\nunsigned int v5; // eax\nunsigned int v6; // eax\nunsigned int v7; // eax\nunsigned int v8; // eax\n__int64 v10; // [rsp+18h] [rbp-68h] BYREF\n__int64 v11; // [rsp+20h] [rbp-60h]\n_BYTE *v12; // [rsp+28h] [rbp-58h]\n__int64 v13; // [rsp+30h] [rbp-50h]\n__int64 v14; // [rsp+38h] [rbp-48h]\n__int64 v15; // [rsp+40h] [rbp-40h]\n_BYTE *v16; // [rsp+48h] [rbp-38h]\n__int64 v17; // [rsp+50h] [rbp-30h]\nunsigned __int8 *v18; // [rsp+60h] [rbp-20h]\nunsigned int v19; // [rsp+68h] [rbp-18h]\nint v20; // [rsp+6Ch] [rbp-14h]\nchar *v21; // [rsp+70h] [rbp-10h]\nunsigned int v22; // [rsp+78h] [rbp-8h]\nunsigned int v23; // [rsp+7Ch] [rbp-4h]\n\nv23 = 0;\nv22 = 0;\nfor ( i = sub_43102B(a1); v22 < i; i = sub_43102B(a1) )\n{\nif ( *(_BYTE *)sub_431049(a1, v22) == 14\n&& (unsigned int)sub_42FA88(a1, &v10, v22 + 1, 8)\n&& !*(_BYTE *)v10\n&& (*(_BYTE *)(v10 + 1) == 6\n|| *(_BYTE *)(v10 + 1) == 3\n|| *(_BYTE *)(v10 + 1) == 2\n|| *(_BYTE *)(v10 + 1) == 10 && sub_430FA8(*(_WORD *)(*(_QWORD *)(v10 + 64) + 4LL)))\n&& (*(_BYTE *)v11 == 3 || *(_BYTE *)v11 == 30)\n&& *(_QWORD *)(v11 + 32)\n&& *(_QWORD *)(*(_QWORD *)(v11 + 32) + 24LL) == v13\n&& *v12 == 28\n&& sub_430FE7(v13, \"pushax\")\n&& *(_BYTE *)v14 == 41\n&& *(_BYTE *)v15 == 40\n&& *v16 == 42\n&& sub_40754B((__int64)v16, 0LL)\n&& sub_430FE7(v17, \"staspidx\")\n&& !(unsigned int)sub_42FB5D(a1, v22 + 1, 3u)\n&& !(unsigned int)sub_42FB5D(a1, v22 + 5, 4u) )\n{\nv19 = v22 + 9;\nv21 = (char *)sub_43123C(a1, v22);\nif ( v21 )\n{\nv20 = 10;\n}\nelse\n{\nv21 = (char *)sub_431360(a1, v22);\nif ( v21 )\nv20 = 8;\n}\nif ( !v21 )\n{\nv21 = \"ptr1\";\nv20 = 10;\nv18 = sub_4070C9(0x3Eu, 3u, \"ptr1\", 0LL, *(_QWORD *)(v17 + 56));\nv2 = v19++;\nsub_42F85E(a1, (__int64)v18, v2);\nv18 = sub_4070C9(0x3Fu, 3u, \"ptr1+1\", 0LL, *(_QWORD *)(v17 + 56));\nv3 = v19++;\nsub_42F85E(a1, (__int64)v18, v3);\n}\nif ( *(_BYTE *)(v10 + 1) == 10 )\n{\nv18 = sub_4070C9(0x28u, *(_BYTE *)(v10 + 1), *(_BYTE **)(v10 + 8), 0LL, *(_QWORD *)(v10 + 56));\nv4 = v19++;\nsub_42F85E(a1, (__int64)v18, v4);\nv18 = sub_4070C9(0x43u, 0, 0LL, 0LL, *(_QWORD *)(v10 + 56));\n}\nelse\n{\nv18 = sub_4070C9(0x2Au, *(_BYTE *)(v10 + 1), *(_BYTE **)(v10 + 8), 0LL, *(_QWORD *)(v10 + 56));\n}\nv5 = v19++;\nsub_42F85E(a1, (__int64)v18, v5);\nv18 = sub_4070C9(0x29u, *(_BYTE *)(v14 + 1), *(_BYTE **)(v14 + 8), 0LL, *(_QWORD *)(v14 + 56));\nv6 = v19++;\nsub_42F85E(a1, (__int64)v18, v6);\nv18 = sub_4070C9(0x28u, *(_BYTE *)(v15 + 1), *(_BYTE **)(v15 + 8), 0LL, *(_QWORD *)(v15 + 56));\nv7 = v19++;\nsub_42F85E(a1, (__int64)v18, v7);\nv18 = sub_4070C9(0x3Eu, v20, v21, 0LL, *(_QWORD *)(v17 + 56));\nv8 = v19++;\nsub_42F85E(a1, (__int64)v18, v8);\nsub_42F963(a1, v22, 9u);\nv22 += 3;\n++v23;\n}\n++v22;\n}\nreturn v23;\n}\n\n\n\nQ:[a1,v18,v19,v20,v21,v22,v23,sub_4315DE,sub_43102B,sub_431049,sub_42FA88,sub_430FA8,sub_430FE7,sub_40754B,sub_42FB5D,sub_43123C,sub_431360,sub_4070C9,sub_42F85E,sub_42F963,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'S', 'v18': 'X', 'v19': 'IP_0', 'v20': 'AM', 'v21': 'Loc', 'v22': 'I', 'v23': 'Changes', 'sub_4315DE': 'OptPtrStore1', 'sub_43102B': 'CS_GetEntryCount_11', 'sub_431049': 'CS_GetEntry_9', 'sub_42FA88': 'CS_GetEntries', 'sub_430FA8': 'RegValIsKnown_5', 'sub_430FE7': 'CE_IsCallTo_6', 'sub_40754B': 'CE_IsKnownImm', 'sub_42FB5D': 'CS_RangeHasLabel', 'sub_43123C': 'LoadAXZP', 'sub_431360': 'LoadAXImm', 'sub_4070C9': 'NewCodeEntry', 'sub_42F85E': 'CS_InsertEntry', 'sub_42F963': 'CS_DelEntries'}"}
fmtfloat
6149d22116745f31d4bfdbf0268ede407d6424efeceedfef1c64192bbc32bc0a
sraoss
pgsql-ivm
NA
static void fmtfloat(double value, char type, int forcesign, int leftjust, int minlen, int zpad, int precision, int pointflag, PrintfTarget *target) { int signvalue = 0; int prec; int vallen; char fmt[8]; char convert[1024]; int zeropadlen = 0; /* amount to pad with zeroes */ int padlen; /* amount to pad with spaces */ /* * We rely on the regular C library's snprintf to do the basic conversion, * then handle padding considerations here. * * The dynamic range of "double" is about 1E+-308 for IEEE math, and not * too wildly more than that with other hardware. In "f" format, snprintf * could therefore generate at most 308 characters to the left of the * decimal point; while we need to allow the precision to get as high as * 308+17 to ensure that we don't truncate significant digits from very * small values. To handle both these extremes, we use a buffer of 1024 * bytes and limit requested precision to 350 digits; this should prevent * buffer overrun even with non-IEEE math. If the original precision * request was more than 350, separately pad with zeroes. * * We handle infinities and NaNs specially to ensure platform-independent * output. */ if (precision < 0) /* cover possible overflow of "accum" */ precision = 0; prec = Min(precision, 350); if (isnan(value)) { strcpy(convert, "NaN"); vallen = 3; /* no zero padding, regardless of precision spec */ } else { /* * Handle sign (NaNs have no sign, so we don't do this in the case * above). "value < 0.0" will not be true for IEEE minus zero, so we * detect that by looking for the case where value equals 0.0 * according to == but not according to memcmp. */ static const double dzero = 0.0; if (adjust_sign((value < 0.0 || (value == 0.0 && memcmp(&value, &dzero, sizeof(double)) != 0)), forcesign, &signvalue)) value = -value; if (isinf(value)) { strcpy(convert, "Infinity"); vallen = 8; /* no zero padding, regardless of precision spec */ } else if (pointflag) { zeropadlen = precision - prec; fmt[0] = '%'; fmt[1] = '.'; fmt[2] = '*'; fmt[3] = type; fmt[4] = '\0'; vallen = snprintf(convert, sizeof(convert), fmt, prec, value); } else { fmt[0] = '%'; fmt[1] = type; fmt[2] = '\0'; vallen = snprintf(convert, sizeof(convert), fmt, value); } if (vallen < 0) goto fail; /* * Windows, alone among our supported platforms, likes to emit * three-digit exponent fields even when two digits would do. Hack * such results to look like the way everyone else does it. */ #ifdef WIN32 if (vallen >= 6 && convert[vallen - 5] == 'e' && convert[vallen - 3] == '0') { convert[vallen - 3] = convert[vallen - 2]; convert[vallen - 2] = convert[vallen - 1]; vallen--; } #endif } padlen = compute_padlen(minlen, vallen + zeropadlen, leftjust); leading_pad(zpad, signvalue, &padlen, target); if (zeropadlen > 0) { /* If 'e' or 'E' format, inject zeroes before the exponent */ char *epos = strrchr(convert, 'e'); if (!epos) epos = strrchr(convert, 'E'); if (epos) { /* pad before exponent */ dostr(convert, epos - convert, target); dopr_outchmulti('0', zeropadlen, target); dostr(epos, vallen - (epos - convert), target); } else { /* no exponent, pad after the digits */ dostr(convert, vallen, target); dopr_outchmulti('0', zeropadlen, target); } } else { /* no zero padding, just emit the number as-is */ dostr(convert, vallen, target); } trailing_pad(padlen, target); return; fail: target->failed = true; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40C537", "function_addr": 4244791, "binary_name": "6149d22116745f31d4bfdbf0268ede407d6424efeceedfef1c64192bbc32bc0a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 450h"], [3, "movsd [rbp+s1], xmm0"], [4, "mov eax, edi"], [5, "mov [rbp+var_440], esi"], [6, "mov [rbp+var_444], edx"], [7, "mov [rbp+var_448], ecx"], [8, "mov [rbp+var_44C], r8d"], [9, "mov [rbp+var_450], r9d"], [10, "mov [rbp+var_43C], al"], [11, "mov [rbp+var_18], 0"], [12, "mov [rbp+var_8], 0"], [13, "cmp [rbp+var_450], 0"], [14, "jns short loc_40C593"], [15, "mov [rbp+var_450], 0"], [16, "mov eax, 15Eh"], [17, "cmp [rbp+var_450], 15Eh"], [18, "cmovle eax, [rbp+var_450]"], [19, "mov [rbp+var_14], eax"], [20, "movsd xmm0, [rbp+s1]"], [21, "movsd xmm1, [rbp+s1]"], [22, "ucomisd xmm0, xmm1"], [23, "jnp short loc_40C5DB"], [24, "lea rax, [rbp+s]"], [25, "mov dword ptr [rax], 4E614Eh"], [26, "mov [rbp+var_4], 3"], [27, "jmp loc_40C764"], [28, "movsd xmm1, [rbp+s1]"], [29, "pxor xmm0, xmm0"], [30, "comisd xmm0, xmm1"], [31, "ja short loc_40C626"], [32, "movsd xmm0, [rbp+s1]"], [33, "pxor xmm1, xmm1"], [34, "ucomisd xmm0, xmm1"], [35, "jp short loc_40C62D"], [36, "pxor xmm1, xmm1"], [37, "ucomisd xmm0, xmm1"], [38, "jnz short loc_40C62D"], [39, "lea rax, [rbp+s1]"], [40, "mov edx, 8"], [41, "mov esi, offset unk_414878"], [42, "mov rdi, rax"], [43, "call _memcmp"], [44, "test eax, eax"], [45, "jz short loc_40C62D"], [46, "mov ecx, 1"], [47, "jmp short loc_40C632"], [48, "mov ecx, 0"], [49, "lea rdx, [rbp+var_18]"], [50, "mov eax, [rbp+var_440]"], [51, "mov esi, eax"], [52, "mov edi, ecx"], [53, "call sub_40CD2A"], [54, "test eax, eax"], [55, "jz short loc_40C665"], [56, "movsd xmm0, [rbp+s1]"], [57, "movq xmm1, cs:qword_414890"], [58, "xorpd xmm0, xmm1"], [59, "movsd [rbp+s1], xmm0"], [60, "movsd xmm0, [rbp+s1]"], [61, "movq xmm1, cs:qword_4148A0"], [62, "andpd xmm0, xmm1"], [63, "ucomisd xmm0, cs:qword_4148B0"], [64, "setbe al"], [65, "xor eax, 1"], [66, "test al, al"], [67, "jz short loc_40C692"], [68, "mov eax, 1"], [69, "jmp short loc_40C697"], [70, "mov eax, 0"], [71, "test al, al"], [72, "jz short loc_40C6BF"], [73, "lea rax, [rbp+s]"], [74, "mov rdi, 7974696E69666E49h"], [75, "mov [rax], rdi"], [76, "mov byte ptr [rax+8], 0"], [77, "mov [rbp+var_4], 8"], [78, "jmp loc_40C75A"], [79, "cmp [rbp+arg_0], 0"], [80, "jz short loc_40C71C"], [81, "mov eax, [rbp+var_450]"], [82, "sub eax, [rbp+var_14]"], [83, "mov [rbp+var_8], eax"], [84, "mov [rbp+format], 25h "], [85, "mov [rbp+var_1F], 2Eh "], [86, "mov [rbp+var_1E], 2Ah "], [87, "movzx eax, [rbp+var_43C]"], [88, "mov [rbp+var_1D], al"], [89, "mov [rbp+var_1C], 0"], [90, "mov rsi, [rbp+s1]"], [91, "mov ecx, [rbp+var_14]"], [92, "lea rdx, [rbp+format]"], [93, "lea rax, [rbp+s]"], [94, "movq xmm0, rsi"], [95, "mov esi, 400h"], [96, "mov rdi, rax"], [97, "mov eax, 1"], [98, "call _snprintf"], [99, "mov [rbp+var_4], eax"], [100, "jmp short loc_40C75A"], [101, "mov [rbp+format], 25h "], [102, "movzx eax, [rbp+var_43C]"], [103, "mov [rbp+var_1F], al"], [104, "mov [rbp+var_1E], 0"], [105, "mov rcx, [rbp+s1]"], [106, "lea rdx, [rbp+format]"], [107, "lea rax, [rbp+s]"], [108, "movq xmm0, rcx"], [109, "mov esi, 400h"], [110, "mov rdi, rax"], [111, "mov eax, 1"], [112, "call _snprintf"], [113, "mov [rbp+var_4], eax"], [114, "cmp [rbp+var_4], 0"], [115, "js loc_40C8A7"], [116, "mov edx, [rbp+var_4]"], [117, "mov eax, [rbp+var_8]"], [118, "lea ecx, [rdx+rax]"], [119, "mov edx, [rbp+var_444]"], [120, "mov eax, [rbp+var_448]"], [121, "mov esi, ecx"], [122, "mov edi, eax"], [123, "call sub_40CD66"], [124, "mov [rbp+var_424], eax"], [125, "mov esi, [rbp+var_18]"], [126, "mov rcx, [rbp+arg_8]"], [127, "lea rdx, [rbp+var_424]"], [128, "mov eax, [rbp+var_44C]"], [129, "mov edi, eax"], [130, "call sub_40CD97"], [131, "cmp [rbp+var_8], 0"], [132, "jle loc_40C879"], [133, "lea rax, [rbp+s]"], [134, "mov esi, 65h "], [135, "mov rdi, rax"], [136, "call _strrchr"], [137, "mov [rbp+var_10], rax"], [138, "cmp [rbp+var_10], 0"], [139, "jnz short loc_40C7E4"], [140, "lea rax, [rbp+s]"], [141, "mov esi, 45h "], [142, "mov rdi, rax"], [143, "call _strrchr"], [144, "mov [rbp+var_10], rax"], [145, "cmp [rbp+var_10], 0"], [146, "jz short loc_40C84C"], [147, "lea rdx, [rbp+s]"], [148, "mov rax, [rbp+var_10]"], [149, "sub rax, rdx"], [150, "mov ecx, eax"], [151, "mov rdx, [rbp+arg_8]"], [152, "lea rax, [rbp+s]"], [153, "mov esi, ecx"], [154, "mov rdi, rax"], [155, "call sub_40CADA"], [156, "mov rdx, [rbp+arg_8]"], [157, "mov eax, [rbp+var_8]"], [158, "mov esi, eax"], [159, "mov edi, 30h "], [160, "call sub_40CC46"], [161, "mov eax, [rbp+var_4]"], [162, "lea rcx, [rbp+s]"], [163, "mov rdx, [rbp+var_10]"], [164, "sub rdx, rcx"], [165, "sub eax, edx"], [166, "mov ecx, eax"], [167, "mov rdx, [rbp+arg_8]"], [168, "mov rax, [rbp+var_10]"], [169, "mov esi, ecx"], [170, "mov rdi, rax"], [171, "call sub_40CADA"], [172, "jmp short loc_40C891"], [173, "mov rdx, [rbp+arg_8]"], [174, "mov ecx, [rbp+var_4]"], [175, "lea rax, [rbp+s]"], [176, "mov esi, ecx"], [177, "mov rdi, rax"], [178, "call sub_40CADA"], [179, "mov rdx, [rbp+arg_8]"], [180, "mov eax, [rbp+var_8]"], [181, "mov esi, eax"], [182, "mov edi, 30h "], [183, "call sub_40CC46"], [184, "jmp short loc_40C891"], [185, "mov rdx, [rbp+arg_8]"], [186, "mov ecx, [rbp+var_4]"], [187, "lea rax, [rbp+s]"], [188, "mov esi, ecx"], [189, "mov rdi, rax"], [190, "call sub_40CADA"], [191, "mov eax, [rbp+var_424]"], [192, "mov rdx, [rbp+arg_8]"], [193, "mov rsi, rdx"], [194, "mov edi, eax"], [195, "call sub_40CE9C"], [196, "jmp short locret_40C8B0"], [197, "nop"], [198, "mov rax, [rbp+arg_8]"], [199, "mov byte ptr [rax+24h], 1"], [200, "leave"], [201, "retn"]], "data_dep": [[10, 4], [13, 9], [14, 13], [17, 9], [17, 15], [18, 9], [18, 15], [19, 18], [20, 3], [21, 3], [22, 21], [22, 20], [23, 17], [24, 18], [25, 24], [28, 3], [30, 29], [30, 28], [31, 17], [32, 3], [34, 32], [34, 33], [35, 17], [37, 34], [37, 36], [38, 17], [39, 3], [39, 18], [42, 39], [44, 43], [45, 44], [49, 11], [49, 40], [50, 5], [51, 50], [52, 46], [52, 48], [54, 53], [55, 54], [56, 3], [58, 56], [58, 57], [59, 58], [60, 59], [60, 3], [62, 60], [62, 61], [63, 62], [64, 54], [65, 64], [66, 65], [67, 66], [71, 68], [71, 70], [72, 71], [73, 71], [75, 74], [75, 73], [76, 73], [80, 79], [81, 9], [81, 15], [82, 81], [82, 19], [83, 82], [87, 10], [88, 87], [90, 3], [90, 59], [91, 19], [92, 84], [92, 49], [93, 87], [94, 90], [96, 93], [99, 98], [102, 10], [103, 102], [105, 3], [105, 59], [106, 49], [106, 101], [107, 102], [108, 105], [110, 107], [113, 112], [114, 113], [114, 99], [114, 77], [115, 114], [116, 113], [116, 26], [116, 99], [116, 77], [117, 83], [117, 12], [118, 117], [118, 46], [118, 76], [118, 48], [118, 105], [118, 25], [118, 91], [118, 75], [119, 6], [120, 7], [121, 118], [122, 120], [124, 123], [125, 11], [126, 83], [126, 12], [127, 124], [127, 119], [128, 8], [129, 128], [131, 83], [131, 12], [132, 131], [133, 130], [135, 133], [137, 136], [138, 137], [139, 138], [140, 136], [142, 140], [144, 143], [145, 144], [145, 137], [146, 145], [147, 127], [148, 144], [148, 137], [149, 148], [149, 147], [150, 149], [151, 83], [151, 12], [152, 149], [153, 150], [154, 152], [156, 83], [156, 12], [157, 83], [157, 12], [158, 157], [161, 77], [161, 113], [161, 26], [161, 99], [162, 150], [163, 144], [163, 137], [164, 162], [164, 163], [165, 161], [165, 164], [166, 165], [167, 83], [167, 12], [168, 144], [168, 137], [169, 166], [170, 168], [173, 12], [173, 83], [174, 77], [174, 26], [174, 113], [174, 99], [175, 143], [175, 136], [176, 174], [177, 175], [179, 83], [179, 12], [180, 83], [180, 12], [181, 180], [185, 83], [185, 12], [186, 26], [186, 113], [186, 99], [186, 77], [187, 130], [188, 186], [189, 187], [191, 124], [192, 83], [192, 12], [193, 192], [194, 191], [198, 83], [198, 12], [199, 198], [201, 198], [201, 195]]}
{"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/6149d22116745f31d4bfdbf0268ede407d6424efeceedfef1c64192bbc32bc0a_6149d22116745f31d4bfdbf0268ede407d6424efeceedfef1c64192bbc32bc0a.jsonl.gz", "strip_func_name": "sub_40C537", "query": "\n\n\n__int64 __fastcall sub_40C537(char a1, unsigned int a2, unsigned int a3, unsigned int a4, unsigned int a5, int a6, double a7, int a8, __int64 a9)\n{\nunsigned int v9; // eax\n_BOOL4 v10; // ecx\n__int64 result; // rax\nint v12; // [rsp+0h] [rbp-450h]\ndouble s1[2]; // [rsp+18h] [rbp-438h] BYREF\nunsigned int v17; // [rsp+2Ch] [rbp-424h] BYREF\nchar s[1024]; // [rsp+30h] [rbp-420h] BYREF\nchar format[8]; // [rsp+430h] [rbp-20h] BYREF\nunsigned int v20; // [rsp+438h] [rbp-18h] BYREF\nunsigned int v21; // [rsp+43Ch] [rbp-14h]\nchar *v22; // [rsp+440h] [rbp-10h]\nunsigned int v23; // [rsp+448h] [rbp-8h]\nunsigned int v24; // [rsp+44Ch] [rbp-4h]\n__int64 savedregs; // [rsp+450h] [rbp+0h] BYREF\n\ns1[0] = a7;\nv12 = a6;\nv20 = 0;\nv23 = 0;\nif ( a6 < 0 )\nv12 = 0;\nv9 = 350;\nif ( v12 <= 350 )\nv9 = v12;\nv21 = v9;\nv10 = s1[0] < 0.0 || s1[0] == 0.0 && memcmp(s1, &unk_414878, 8uLL);\nif ( (unsigned int)sub_40CD2A(v10, a2, &v20) )\ns1[0] = -s1[0];\nif ( fabs(s1[0]) <= 1.797693134862316e308 )\n{\nif ( a8 )\n{\nv23 = v12 - v21;\nqmemcpy(format, \"%.*\", 3);\nformat[3] = a1;\nformat[4] = 0;\nv24 = snprintf(s, 0x400uLL, format, v21, s1[0]);\n}\nelse\n{\nformat[0] = 37;\nformat[1] = a1;\nformat[2] = 0;\nv24 = snprintf(s, 0x400uLL, format, s1[0]);\n}\n}\nelse\n{\nstrcpy(s, \"Infinity\");\nv24 = 8;\n}\nif ( (v24 & 0x80000000) != 0 )\n{\nresult = a9;\n*(_BYTE *)(a9 + 36) = 1;\n}\nelse\n{\nv17 = sub_40CD66(a4, v24 + v23, a3);\nsub_40CD97(a5, v20, &v17, a9);\nif ( (int)v23 <= 0 )\n{\nsub_40CADA(s, v24, a9);\n}\nelse\n{\nv22 = strrchr(s, 101);\nif ( !v22 )\nv22 = strrchr(s, 69);\nif ( v22 )\n{\nsub_40CADA(s, (unsigned int)v22 - ((unsigned int)&savedregs - 1056), a9);\nsub_40CC46(48LL, v23, a9);\nsub_40CADA(v22, v24 - ((_DWORD)v22 - ((unsigned int)&savedregs - 1056)), a9);\n}\nelse\n{\nsub_40CADA(s, v24, a9);\nsub_40CC46(48LL, v23, a9);\n}\n}\nresult = sub_40CE9C(v17, a9);\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,a7,a8,a9,v12,s1,v17,s,format,v20,v21,v22,v23,v24,sub_40C537,sub_40CD2A,sub_40CD66,sub_40CD97,sub_40CADA,sub_40CC46,sub_40CE9C,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'leftjust', 'a4': 'minlen', 'a1': 'type', 'a2': 'forcesign', 'a5': 'zpad', 'a6': 'precision', 'a7': 'value', 'a8': 'pointflag', 'a9': 'target', 'v12': 'precisiona', 's1': 'valuea', 'v17': 'padlen', 's': 'convert', 'format': 'fmt', 'v20': 'signvalue', 'v21': 'prec', 'v22': 'epos', 'v23': 'zeropadlen', 'v24': 'vallen', 'sub_40C537': 'fmtfloat', 'sub_40CD2A': 'adjust_sign', 'sub_40CD66': 'compute_padlen', 'sub_40CD97': 'leading_pad', 'sub_40CADA': 'dostr', 'sub_40CC46': 'dopr_outchmulti', 'sub_40CE9C': 'trailing_pad'}"}
get_zeros_and_len_padding
6455e8619308c575139ba376a3fbff14e2036d5af8bad040d3e43a4f91fcf4d7
mattsta
trade-balancer
NA
static int get_zeros_and_len_padding( unsigned char *input, size_t input_len, size_t *data_len ) { size_t i, pad_idx; unsigned char padding_len, bad = 0; if( NULL == input || NULL == data_len ) return( MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA ); padding_len = input[input_len - 1]; *data_len = input_len - padding_len; /* Avoid logical || since it results in a branch */ bad |= padding_len > input_len; bad |= padding_len == 0; /* The number of bytes checked must be independent of padding_len */ pad_idx = input_len - padding_len; for( i = 0; i < input_len - 1; i++ ) bad |= input[i] * ( i >= pad_idx ); return( MBEDTLS_ERR_CIPHER_INVALID_PADDING * ( bad != 0 ) ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43F151", "function_addr": 4452689, "binary_name": "6455e8619308c575139ba376a3fbff14e2036d5af8bad040d3e43a4f91fcf4d7.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 [rbp+var_38], rdx"], [5, "mov [rbp+var_9], 0"], [6, "cmp [rbp+var_28], 0"], [7, "jz short loc_43F173"], [8, "cmp [rbp+var_38], 0"], [9, "jnz short loc_43F17D"], [10, "mov eax, 0FFFF9F00h"], [11, "jmp loc_43F23B"], [12, "mov rax, [rbp+var_30]"], [13, "lea rdx, [rax-1]"], [14, "mov rax, [rbp+var_28]"], [15, "add rax, rdx"], [16, "movzx eax, byte ptr [rax]"], [17, "mov [rbp+var_A], al"], [18, "movzx ecx, [rbp+var_A]"], [19, "mov rax, [rbp+var_30]"], [20, "sub rax, rcx"], [21, "mov rdx, rax"], [22, "mov rax, [rbp+var_38]"], [23, "mov [rax], rdx"], [24, "movzx eax, [rbp+var_A]"], [25, "cmp [rbp+var_30], rax"], [26, "setb al"], [27, "mov edx, eax"], [28, "movzx eax, [rbp+var_9]"], [29, "or eax, edx"], [30, "mov [rbp+var_9], al"], [31, "cmp [rbp+var_A], 0"], [32, "setz al"], [33, "mov edx, eax"], [34, "movzx eax, [rbp+var_9]"], [35, "or eax, edx"], [36, "mov [rbp+var_9], al"], [37, "movzx edx, [rbp+var_A]"], [38, "mov rax, [rbp+var_30]"], [39, "sub rax, rdx"], [40, "mov [rbp+var_18], rax"], [41, "mov [rbp+var_8], 0"], [42, "jmp short loc_43F21B"], [43, "mov rdx, [rbp+var_28]"], [44, "mov rax, [rbp+var_8]"], [45, "add rax, rdx"], [46, "movzx edx, byte ptr [rax]"], [47, "mov rax, [rbp+var_8]"], [48, "cmp rax, [rbp+var_18]"], [49, "setnb al"], [50, "movzx eax, al"], [51, "mov ecx, eax"], [52, "mov eax, edx"], [53, "imul eax, ecx"], [54, "mov edx, eax"], [55, "movzx eax, [rbp+var_9]"], [56, "or eax, edx"], [57, "mov [rbp+var_9], al"], [58, "add [rbp+var_8], 1"], [59, "mov rax, [rbp+var_30]"], [60, "sub rax, 1"], [61, "cmp [rbp+var_8], rax"], [62, "jb short loc_43F1E8"], [63, "cmp [rbp+var_9], 0"], [64, "jz short loc_43F236"], [65, "mov eax, 0FFFF9E00h"], [66, "jmp short loc_43F23B"], [67, "mov eax, 0"], [68, "pop rbp"], [69, "retn"]], "data_dep": [[6, 2], [7, 6], [8, 4], [9, 8], [12, 3], [13, 12], [14, 2], [15, 14], [15, 13], [16, 15], [17, 16], [18, 17], [19, 3], [20, 19], [20, 18], [21, 20], [22, 4], [23, 22], [23, 21], [24, 17], [25, 24], [25, 3], [26, 25], [26, 24], [27, 26], [28, 5], [29, 27], [29, 28], [30, 29], [31, 17], [32, 29], [32, 31], [33, 32], [34, 30], [35, 33], [35, 34], [36, 35], [37, 17], [38, 3], [39, 37], [39, 38], [40, 39], [43, 2], [44, 58], [44, 41], [45, 43], [45, 44], [46, 45], [46, 23], [47, 41], [47, 58], [48, 47], [48, 40], [49, 48], [49, 47], [50, 49], [51, 50], [52, 46], [53, 52], [53, 51], [54, 53], [55, 57], [55, 36], [56, 55], [56, 54], [57, 56], [58, 58], [58, 41], [59, 3], [60, 59], [61, 58], [61, 60], [61, 41], [62, 61], [63, 36], [63, 57], [64, 63], [68, 0], [69, 65], [69, 10], [69, 67]]}
{"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/6455e8619308c575139ba376a3fbff14e2036d5af8bad040d3e43a4f91fcf4d7_6455e8619308c575139ba376a3fbff14e2036d5af8bad040d3e43a4f91fcf4d7.jsonl.gz", "strip_func_name": "sub_43F151", "query": "\n\n\n__int64 __fastcall sub_43F151(__int64 a1, unsigned __int64 a2, _QWORD *a3)\n{\n__int64 result; // rax\nunsigned __int8 v4; // [rsp+2Eh] [rbp-Ah]\nchar v5; // [rsp+2Fh] [rbp-9h]\nunsigned __int64 i; // [rsp+30h] [rbp-8h]\n\nif ( !a1 || !a3 )\nreturn 4294942464LL;\nv4 = *(_BYTE *)(a2 - 1 + a1);\n*a3 = a2 - v4;\nv5 = v4 == 0 || a2 < v4;\nfor ( i = 0LL; i < a2 - 1; ++i )\nv5 |= (i >= a2 - v4) * *(_BYTE *)(a1 + i);\nif ( v5 )\nresult = 4294942208LL;\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v4,v5,sub_43F151,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'data_len', 'a1': 'input', 'a2': 'input_len', 'v4': 'padding_len', 'v5': 'bad', 'sub_43F151': 'get_zeros_and_len_padding'}"}
hfp_ag_run_for_context_service_level_connection
5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a
bluekitchen
btstack
NA
static int hfp_ag_run_for_context_service_level_connection(hfp_connection_t * hfp_connection){ // log_info("hfp_ag_run_for_context_service_level_connection state %u, command %u", hfp_connection->state, hfp_connection->command); if (hfp_connection->state >= HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED) return 0; int sent = 0; switch(hfp_connection->command){ case HFP_CMD_SUPPORTED_FEATURES: switch(hfp_connection->state){ case HFP_W4_EXCHANGE_SUPPORTED_FEATURES: case HFP_EXCHANGE_SUPPORTED_FEATURES: hfp_hf_drop_mSBC_if_eSCO_not_supported(hfp_ag_codecs, &hfp_ag_codecs_nr); if (has_codec_negotiation_feature(hfp_connection)){ hfp_connection->state = HFP_W4_NOTIFY_ON_CODECS; } else { hfp_connection->state = HFP_W4_RETRIEVE_INDICATORS; } hfp_ag_exchange_supported_features_cmd(hfp_connection->rfcomm_cid); return 1; default: break; } break; case HFP_CMD_AVAILABLE_CODECS: sent = codecs_exchange_state_machine(hfp_connection); if (hfp_connection->codecs_state == HFP_CODECS_RECEIVED_LIST){ hfp_connection->state = HFP_W4_RETRIEVE_INDICATORS; } return sent; case HFP_CMD_RETRIEVE_AG_INDICATORS: if (hfp_connection->state == HFP_W4_RETRIEVE_INDICATORS) { // HF requested AG Indicators and we did expect it hfp_connection->send_ag_indicators_segment = 0; hfp_connection->state = HFP_RETRIEVE_INDICATORS; // continue below in state switch } break; case HFP_CMD_RETRIEVE_AG_INDICATORS_STATUS: if (hfp_connection->state != HFP_W4_RETRIEVE_INDICATORS_STATUS) break; hfp_connection->state = HFP_W4_ENABLE_INDICATORS_STATUS_UPDATE; hfp_ag_send_retrieve_indicators_status_cmd(hfp_connection->rfcomm_cid); return 1; case HFP_CMD_ENABLE_INDICATOR_STATUS_UPDATE: if (hfp_connection->state != HFP_W4_ENABLE_INDICATORS_STATUS_UPDATE) break; if (has_call_waiting_and_3way_calling_feature(hfp_connection)){ hfp_connection->state = HFP_W4_RETRIEVE_CAN_HOLD_CALL; } else if (has_hf_indicators_feature(hfp_connection)){ hfp_connection->state = HFP_W4_LIST_GENERIC_STATUS_INDICATORS; } else { hfp_ag_slc_established(hfp_connection); } hfp_ag_send_ok(hfp_connection->rfcomm_cid); return 1; case HFP_CMD_SUPPORT_CALL_HOLD_AND_MULTIPARTY_SERVICES: if (hfp_connection->state != HFP_W4_RETRIEVE_CAN_HOLD_CALL) break; if (has_hf_indicators_feature(hfp_connection)){ hfp_connection->state = HFP_W4_LIST_GENERIC_STATUS_INDICATORS; } hfp_ag_send_retrieve_can_hold_call_cmd(hfp_connection->rfcomm_cid); if (!has_hf_indicators_feature(hfp_connection)){ hfp_ag_slc_established(hfp_connection); } return 1; case HFP_CMD_LIST_GENERIC_STATUS_INDICATORS: if (hfp_connection->state != HFP_W4_LIST_GENERIC_STATUS_INDICATORS) break; hfp_connection->state = HFP_W4_RETRIEVE_GENERIC_STATUS_INDICATORS; hfp_ag_send_list_supported_generic_status_indicators_cmd(hfp_connection->rfcomm_cid); return 1; case HFP_CMD_RETRIEVE_GENERIC_STATUS_INDICATORS: if (hfp_connection->state != HFP_W4_RETRIEVE_GENERIC_STATUS_INDICATORS) break; hfp_connection->state = HFP_W4_RETRIEVE_INITITAL_STATE_GENERIC_STATUS_INDICATORS; hfp_ag_send_retrieve_supported_generic_status_indicators_cmd(hfp_connection->rfcomm_cid); return 1; case HFP_CMD_RETRIEVE_GENERIC_STATUS_INDICATORS_STATE: if (hfp_connection->state != HFP_W4_RETRIEVE_INITITAL_STATE_GENERIC_STATUS_INDICATORS) break; hfp_ag_send_retrieve_initital_supported_generic_status_indicators_cmd(hfp_connection->rfcomm_cid); hfp_ag_slc_established(hfp_connection); return 1; default: break; } switch (hfp_connection->state){ case HFP_RETRIEVE_INDICATORS: { int next_segment = hfp_ag_send_retrieve_indicators_cmd_via_generator(hfp_connection->rfcomm_cid, hfp_connection, hfp_connection->send_ag_indicators_segment); int num_segments = hfp_ag_indicators_cmd_generator_num_segments(hfp_connection); log_info("HFP_CMD_RETRIEVE_AG_INDICATORS next segment %u, num_segments %u", next_segment, num_segments); if (next_segment < num_segments){ // prepare sending of next segment hfp_connection->send_ag_indicators_segment = next_segment; log_info("HFP_CMD_RETRIEVE_AG_INDICATORS more. command %u, next seg %u", hfp_connection->command, next_segment); } else { // done, go to next state hfp_connection->send_ag_indicators_segment = 0; hfp_connection->state = HFP_W4_RETRIEVE_INDICATORS_STATUS; } return 1; } default: break; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_456A1A", "function_addr": 4549146, "binary_name": "5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov eax, [rax+28h]"], [6, "cmp eax, 16h"], [7, "jbe short loc_456A3C"], [8, "mov eax, 0"], [9, "jmp locret_456DC0"], [10, "mov [rbp+var_4], 0"], [11, "mov rax, [rbp+var_18]"], [12, "mov eax, [rax+34h]"], [13, "sub eax, 5"], [14, "cmp eax, 0Eh"], [15, "ja def_456A60"], [16, "mov eax, eax"], [17, "mov rax, ds:jpt_456A60[rax*8]"], [18, "jmp rax"], [19, "mov rax, [rbp+var_18]"], [20, "mov eax, [rax+28h]"], [21, "sub eax, 5"], [22, "cmp eax, 1"], [23, "ja short loc_456AC4"], [24, "mov esi, offset byte_491022"], [25, "mov edi, offset byte_491028"], [26, "call sub_44F8FF"], [27, "mov rax, [rbp+var_18]"], [28, "mov rdi, rax"], [29, "call sub_455370"], [30, "test eax, eax"], [31, "jz short loc_456A9D"], [32, "mov rax, [rbp+var_18]"], [33, "mov dword ptr [rax+28h], 8"], [34, "jmp short loc_456AA8"], [35, "mov rax, [rbp+var_18]"], [36, "mov dword ptr [rax+28h], 0Ah"], [37, "mov rax, [rbp+var_18]"], [38, "movzx eax, word ptr [rax+1Ah]"], [39, "movzx eax, ax"], [40, "mov edi, eax"], [41, "call sub_4554D1"], [42, "mov eax, 1"], [43, "jmp locret_456DC0"], [44, "nop"], [45, "jmp loc_456CE3"], [46, "mov rax, [rbp+var_18]"], [47, "mov rdi, rax"], [48, "call sub_4566D8"], [49, "mov [rbp+var_4], eax"], [50, "mov rax, [rbp+var_18]"], [51, "mov eax, [rax+2Ch]"], [52, "cmp eax, 1"], [53, "jnz short loc_456AF0"], [54, "mov rax, [rbp+var_18]"], [55, "mov dword ptr [rax+28h], 0Ah"], [56, "mov eax, [rbp+var_4]"], [57, "jmp locret_456DC0"], [58, "mov rax, [rbp+var_18]"], [59, "mov eax, [rax+28h]"], [60, "cmp eax, 0Ah"], [61, "jnz loc_456CD0"], [62, "mov rax, [rbp+var_18]"], [63, "mov byte ptr [rax+27Ah], 0"], [64, "mov rax, [rbp+var_18]"], [65, "mov dword ptr [rax+28h], 9"], [66, "jmp loc_456CD0"], [67, "mov rax, [rbp+var_18]"], [68, "mov eax, [rax+28h]"], [69, "cmp eax, 0Ch"], [70, "jnz loc_456CD3"], [71, "mov rax, [rbp+var_18]"], [72, "mov dword ptr [rax+28h], 0Eh"], [73, "mov rax, [rbp+var_18]"], [74, "movzx eax, word ptr [rax+1Ah]"], [75, "movzx eax, ax"], [76, "mov edi, eax"], [77, "call sub_455F7F"], [78, "mov eax, 1"], [79, "jmp locret_456DC0"], [80, "mov rax, [rbp+var_18]"], [81, "mov eax, [rax+28h]"], [82, "cmp eax, 0Eh"], [83, "jnz loc_456CD6"], [84, "mov rax, [rbp+var_18]"], [85, "mov rdi, rax"], [86, "call sub_4553CB"], [87, "test eax, eax"], [88, "jz short loc_456B87"], [89, "mov rax, [rbp+var_18]"], [90, "mov dword ptr [rax+28h], 10h"], [91, "jmp short loc_456BB0"], [92, "mov rax, [rbp+var_18]"], [93, "mov rdi, rax"], [94, "call sub_455426"], [95, "test eax, eax"], [96, "jz short loc_456BA4"], [97, "mov rax, [rbp+var_18]"], [98, "mov dword ptr [rax+28h], 12h"], [99, "jmp short loc_456BB0"], [100, "mov rax, [rbp+var_18]"], [101, "mov rdi, rax"], [102, "call sub_45693F"], [103, "mov rax, [rbp+var_18]"], [104, "movzx eax, word ptr [rax+1Ah]"], [105, "movzx eax, ax"], [106, "mov edi, eax"], [107, "call sub_455524"], [108, "mov eax, 1"], [109, "jmp locret_456DC0"], [110, "mov rax, [rbp+var_18]"], [111, "mov eax, [rax+28h]"], [112, "cmp eax, 10h"], [113, "jnz loc_456CD9"], [114, "mov rax, [rbp+var_18]"], [115, "mov rdi, rax"], [116, "call sub_455426"], [117, "test eax, eax"], [118, "jz short loc_456BF7"], [119, "mov rax, [rbp+var_18]"], [120, "mov dword ptr [rax+28h], 12h"], [121, "mov rax, [rbp+var_18]"], [122, "movzx eax, word ptr [rax+1Ah]"], [123, "movzx eax, ax"], [124, "mov edi, eax"], [125, "call sub_45601B"], [126, "mov rax, [rbp+var_18]"], [127, "mov rdi, rax"], [128, "call sub_455426"], [129, "test eax, eax"], [130, "jnz short loc_456C25"], [131, "mov rax, [rbp+var_18]"], [132, "mov rdi, rax"], [133, "call sub_45693F"], [134, "mov eax, 1"], [135, "jmp locret_456DC0"], [136, "mov rax, [rbp+var_18]"], [137, "mov eax, [rax+28h]"], [138, "cmp eax, 12h"], [139, "jnz loc_456CDC"], [140, "mov rax, [rbp+var_18]"], [141, "mov dword ptr [rax+28h], 14h"], [142, "mov rax, [rbp+var_18]"], [143, "movzx eax, word ptr [rax+1Ah]"], [144, "movzx eax, ax"], [145, "mov edi, eax"], [146, "call sub_4560B7"], [147, "mov eax, 1"], [148, "jmp locret_456DC0"], [149, "mov rax, [rbp+var_18]"], [150, "mov eax, [rax+28h]"], [151, "cmp eax, 14h"], [152, "jnz short loc_456CDF"], [153, "mov rax, [rbp+var_18]"], [154, "mov dword ptr [rax+28h], 16h"], [155, "mov rax, [rbp+var_18]"], [156, "movzx eax, word ptr [rax+1Ah]"], [157, "movzx eax, ax"], [158, "mov edi, eax"], [159, "call sub_4560D2"], [160, "mov eax, 1"], [161, "jmp locret_456DC0"], [162, "mov rax, [rbp+var_18]"], [163, "mov eax, [rax+28h]"], [164, "cmp eax, 16h"], [165, "jnz short loc_456CE2"], [166, "mov rax, [rbp+var_18]"], [167, "mov rdi, rax"], [168, "call sub_45693F"], [169, "mov rax, [rbp+var_18]"], [170, "movzx eax, word ptr [rax+1Ah]"], [171, "movzx eax, ax"], [172, "mov edi, eax"], [173, "call sub_45616E"], [174, "mov eax, 1"], [175, "jmp locret_456DC0"], [176, "nop"], [177, "jmp short loc_456CE3"], [178, "nop"], [179, "jmp short loc_456CE3"], [180, "nop"], [181, "jmp short loc_456CE3"], [182, "nop"], [183, "jmp short loc_456CE3"], [184, "nop"], [185, "jmp short loc_456CE3"], [186, "nop"], [187, "jmp short loc_456CE3"], [188, "nop"], [189, "jmp short loc_456CE3"], [190, "nop"], [191, "mov rax, [rbp+var_18]"], [192, "mov eax, [rax+28h]"], [193, "cmp eax, 9"], [194, "jnz loc_456DBA"], [195, "mov rax, [rbp+var_18]"], [196, "movzx eax, byte ptr [rax+27Ah]"], [197, "movzx edx, al"], [198, "mov rax, [rbp+var_18]"], [199, "movzx eax, word ptr [rax+1Ah]"], [200, "movzx eax, ax"], [201, "mov rcx, [rbp+var_18]"], [202, "mov rsi, rcx"], [203, "mov edi, eax"], [204, "call sub_455F38"], [205, "mov [rbp+var_8], eax"], [206, "mov rax, [rbp+var_18]"], [207, "mov rdi, rax"], [208, "call sub_455988"], [209, "mov [rbp+var_C], eax"], [210, "mov edx, [rbp+var_C]"], [211, "mov eax, [rbp+var_8]"], [212, "mov r9d, edx"], [213, "mov r8d, eax"], [214, "mov ecx, 30Bh"], [215, "mov edx, offset aHfpAgC"], [216, "mov esi, offset aSUHfpCmdRetrie"], [217, "mov edi, 1"], [218, "mov eax, 0"], [219, "call sub_41CB24"], [220, "mov eax, [rbp+var_8]"], [221, "cmp eax, [rbp+var_C]"], [222, "jge short loc_456D9D"], [223, "mov eax, [rbp+var_8]"], [224, "mov edx, eax"], [225, "mov rax, [rbp+var_18]"], [226, "mov [rax+27Ah], dl"], [227, "mov rax, [rbp+var_18]"], [228, "mov eax, [rax+34h]"], [229, "mov edx, [rbp+var_8]"], [230, "mov r9d, edx"], [231, "mov r8d, eax"], [232, "mov ecx, 30Fh"], [233, "mov edx, offset aHfpAgC"], [234, "mov esi, offset aSUHfpCmdRetrie_0"], [235, "mov edi, 1"], [236, "mov eax, 0"], [237, "call sub_41CB24"], [238, "jmp short loc_456DB3"], [239, "mov rax, [rbp+var_18]"], [240, "mov byte ptr [rax+27Ah], 0"], [241, "mov rax, [rbp+var_18]"], [242, "mov dword ptr [rax+28h], 0Ch"], [243, "mov eax, 1"], [244, "jmp short locret_456DC0"], [245, "nop"], [246, "mov eax, 0"], [247, "leave"], [248, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [11, 3], [12, 11], [13, 12], [14, 13], [15, 14], [16, 13], [18, 17], [19, 3], [20, 19], [21, 20], [22, 21], [23, 22], [27, 3], [28, 27], [30, 29], [31, 30], [32, 3], [33, 32], [35, 3], [36, 35], [37, 3], [38, 36], [38, 33], [38, 37], [39, 38], [40, 39], [46, 3], [47, 46], [49, 48], [50, 3], [51, 50], [52, 51], [53, 52], [54, 3], [55, 54], [56, 49], [58, 3], [59, 58], [60, 59], [61, 60], [62, 3], [63, 62], [64, 3], [65, 64], [67, 3], [68, 67], [69, 68], [70, 69], [71, 3], [72, 71], [73, 3], [74, 73], [74, 72], [75, 74], [76, 75], [80, 3], [81, 80], [82, 81], [83, 82], [84, 3], [85, 84], [87, 86], [88, 87], [89, 3], [90, 89], [92, 3], [93, 92], [95, 94], [96, 95], [97, 3], [98, 97], [100, 3], [101, 100], [103, 3], [104, 98], [104, 90], [104, 103], [105, 104], [106, 105], [110, 3], [111, 110], [112, 111], [113, 112], [114, 3], [115, 114], [117, 116], [118, 117], [119, 3], [120, 119], [121, 3], [122, 121], [122, 120], [123, 122], [124, 123], [126, 3], [127, 126], [129, 128], [130, 129], [131, 3], [132, 131], [136, 3], [137, 136], [138, 137], [139, 138], [140, 3], [141, 140], [142, 3], [143, 142], [143, 141], [144, 143], [145, 144], [149, 3], [150, 149], [151, 150], [152, 151], [153, 3], [154, 153], [155, 3], [156, 154], [156, 155], [157, 156], [158, 157], [162, 3], [163, 162], [164, 163], [165, 164], [166, 3], [167, 166], [169, 3], [170, 169], [171, 170], [172, 171], [191, 3], [192, 65], [192, 191], [192, 63], [193, 192], [194, 193], [195, 3], [196, 63], [196, 65], [196, 195], [197, 196], [198, 3], [199, 198], [199, 63], [199, 65], [200, 199], [201, 3], [202, 201], [203, 200], [205, 204], [206, 3], [207, 206], [209, 208], [210, 209], [211, 205], [212, 210], [213, 211], [220, 205], [221, 209], [221, 220], [222, 221], [223, 205], [224, 223], [225, 3], [226, 225], [226, 224], [227, 3], [228, 226], [228, 227], [229, 205], [230, 229], [231, 228], [239, 3], [240, 239], [241, 3], [242, 241], [248, 134], [248, 8], [248, 56], [248, 147], [248, 42], [248, 243], [248, 78], [248, 108], [248, 174], [248, 160], [248, 246]]}
{"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/5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a_5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a.jsonl.gz", "strip_func_name": "sub_456A1A", "query": "\n\n\n__int64 __fastcall sub_456A1A(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 result; // rax\nunsigned int v7; // [rsp+14h] [rbp-Ch]\nunsigned int v8; // [rsp+18h] [rbp-8h]\nunsigned int v9; // [rsp+1Ch] [rbp-4h]\n\nif ( *(_DWORD *)(a1 + 40) > 0x16u )\nreturn 0LL;\nswitch ( *(_DWORD *)(a1 + 52) )\n{\ncase 5:\nif ( (unsigned int)(*(_DWORD *)(a1 + 40) - 5) > 1 )\ngoto LABEL_36;\nsub_44F8FF((__int64)&byte_491028, (unsigned __int8 *)&byte_491022);\nif ( sub_455370(a1) )\n*(_DWORD *)(a1 + 40) = 8;\nelse\n*(_DWORD *)(a1 + 40) = 10;\nsub_4554D1(*(_WORD *)(a1 + 26));\nreturn 1LL;\ncase 6:\nv9 = sub_4566D8(a1, a2, a3, a4, a5, a6);\nif ( *(_DWORD *)(a1 + 44) == 1 )\n*(_DWORD *)(a1 + 40) = 10;\nreturn v9;\ncase 8:\nif ( *(_DWORD *)(a1 + 40) == 10 )\n{\n*(_BYTE *)(a1 + 634) = 0;\n*(_DWORD *)(a1 + 40) = 9;\n}\ngoto LABEL_36;\ncase 9:\nif ( *(_DWORD *)(a1 + 40) != 12 )\ngoto LABEL_36;\n*(_DWORD *)(a1 + 40) = 14;\nsub_455F7F(*(_WORD *)(a1 + 26));\nresult = 1LL;\nbreak;\ncase 0xA:\nif ( *(_DWORD *)(a1 + 40) != 14 )\ngoto LABEL_36;\nif ( sub_4553CB(a1) )\n{\n*(_DWORD *)(a1 + 40) = 16;\n}\nelse if ( sub_455426(a1) )\n{\n*(_DWORD *)(a1 + 40) = 18;\n}\nelse\n{\nsub_45693F(a1);\n}\nsub_455524(*(_WORD *)(a1 + 26));\nresult = 1LL;\nbreak;\ncase 0xC:\nif ( *(_DWORD *)(a1 + 40) != 16 )\ngoto LABEL_36;\nif ( sub_455426(a1) )\n*(_DWORD *)(a1 + 40) = 18;\nsub_45601B(*(_WORD *)(a1 + 26));\nif ( !sub_455426(a1) )\nsub_45693F(a1);\nresult = 1LL;\nbreak;\ncase 0x11:\nif ( *(_DWORD *)(a1 + 40) != 18 )\ngoto LABEL_36;\n*(_DWORD *)(a1 + 40) = 20;\nsub_4560B7(*(_WORD *)(a1 + 26));\nresult = 1LL;\nbreak;\ncase 0x12:\nif ( *(_DWORD *)(a1 + 40) != 20 )\ngoto LABEL_36;\n*(_DWORD *)(a1 + 40) = 22;\nsub_4560D2(*(_WORD *)(a1 + 26));\nresult = 1LL;\nbreak;\ncase 0x13:\nif ( *(_DWORD *)(a1 + 40) != 22 )\ngoto LABEL_36;\nsub_45693F(a1);\nsub_45616E(*(_WORD *)(a1 + 26));\nresult = 1LL;\nbreak;\ndefault:\nLABEL_36:\nif ( *(_DWORD *)(a1 + 40) == 9 )\n{\nv8 = sub_455F38(*(_WORD *)(a1 + 26), a1, *(unsigned __int8 *)(a1 + 634));\nv7 = sub_455988(a1);\nsub_41CB24(\n1u,\n(__int64)\"%s.%u: HFP_CMD_RETRIEVE_AG_INDICATORS next segment %u, num_segments %u\",\n(__int64)\"hfp_ag.c\",\n779LL,\nv8,\nv7);\nif ( (int)v8 >= (int)v7 )\n{\n*(_BYTE *)(a1 + 634) = 0;\n*(_DWORD *)(a1 + 40) = 12;\n}\nelse\n{\n*(_BYTE *)(a1 + 634) = v8;\nsub_41CB24(\n1u,\n(__int64)\"%s.%u: HFP_CMD_RETRIEVE_AG_INDICATORS more. command %u, next seg %u\",\n(__int64)\"hfp_ag.c\",\n783LL,\n*(unsigned int *)(a1 + 52),\nv8);\n}\nresult = 1LL;\n}\nelse\n{\nresult = 0LL;\n}\nbreak;\n}\nreturn result;\n}\n\n\n\nQ:[a1,v7,v8,v9,sub_456A1A,sub_44F8FF,sub_455370,sub_4554D1,sub_4566D8,sub_455F7F,sub_4553CB,sub_455426,sub_45693F,sub_455524,sub_45601B,sub_4560B7,sub_4560D2,sub_45616E,sub_455F38,sub_455988,sub_41CB24,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'hfp_connection', 'v7': 'num_segments', 'v8': 'next_segment', 'v9': 'sent', 'sub_456A1A': 'hfp_ag_run_for_context_service_level_connection', 'sub_44F8FF': 'hfp_hf_drop_mSBC_if_eSCO_not_supported', 'sub_455370': 'has_codec_negotiation_feature', 'sub_4554D1': 'hfp_ag_exchange_supported_features_cmd', 'sub_4566D8': 'codecs_exchange_state_machine', 'sub_455F7F': 'hfp_ag_send_retrieve_indicators_status_cmd', 'sub_4553CB': 'has_call_waiting_and_3way_calling_feature', 'sub_455426': 'has_hf_indicators_feature', 'sub_45693F': 'hfp_ag_slc_established', 'sub_455524': 'hfp_ag_send_ok', 'sub_45601B': 'hfp_ag_send_retrieve_can_hold_call_cmd', 'sub_4560B7': 'hfp_ag_send_list_supported_generic_status_indicators_cmd', 'sub_4560D2': 'hfp_ag_send_retrieve_supported_generic_status_indicators_cmd', 'sub_45616E': 'hfp_ag_send_retrieve_initital_supported_generic_status_indicators_cmd', 'sub_455F38': 'hfp_ag_send_retrieve_indicators_cmd_via_generator', 'sub_455988': 'hfp_ag_indicators_cmd_generator_num_segments', 'sub_41CB24': 'hci_dump_log'}"}
hfp_has_hf_indicators_feature
9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3
sj15712795029
bluetooth_stack
NA
static uint16_t hfp_has_hf_indicators_feature(struct hfp_pcb_t *pcb) { uint16_t hf_support_hf_indicators = pcb->hfp_hf_local_support_feature & HFP_HFSF_HF_INDICATORS; uint16_t ag_support_hf_indicators = pcb->hfp_hf_remote_support_feature & HFP_AGSF_HF_INDICATORS; return hf_support_hf_indicators && ag_support_hf_indicators; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_416EFE", "function_addr": 4288254, "binary_name": "9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov rax, [rbp+var_18]"], [4, "movzx eax, word ptr [rax+26h]"], [5, "and ax, 100h"], [6, "mov [rbp+var_2], ax"], [7, "mov rax, [rbp+var_18]"], [8, "movzx eax, word ptr [rax+28h]"], [9, "and ax, 400h"], [10, "mov [rbp+var_4], ax"], [11, "cmp [rbp+var_2], 0"], [12, "jz short loc_416F3B"], [13, "cmp [rbp+var_4], 0"], [14, "jz short loc_416F3B"], [15, "mov eax, 1"], [16, "jmp short loc_416F40"], [17, "mov eax, 0"], [18, "pop rbp"], [19, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [7, 2], [8, 7], [9, 8], [10, 9], [11, 6], [12, 11], [13, 10], [14, 13], [18, 0], [19, 17], [19, 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/9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3_9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.jsonl.gz", "strip_func_name": "sub_416EFE", "query": "\n\n\n_BOOL8 __fastcall sub_416EFE(__int64 a1)\n{\nreturn (*(_WORD *)(a1 + 38) & 0x100) != 0 && (*(_WORD *)(a1 + 40) & 0x400) != 0;\n}\n\n\n\nQ:[a1,sub_416EFE,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pcb', 'sub_416EFE': 'hfp_has_hf_indicators_feature'}"}
writeessidadd
75a6adb908792a9ec3640567e6e5e5a507c0231d317ae6712be2ad1fd41f4acb
ZerBea
hcxtools
NA
static void writeessidadd(FILE *fhout, char *essid) { static unsigned int c, d; static char essidstring[PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX] = { 0 }; for(c = 22222; c <= 99999; c += 11111) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%d", essid, c); writepsk(fhout, essidstring); } if(essidglen <= 2) { for(c = thisyear +1; c < 1000000; c++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%d", essid, c); writepsk(fhout, essidstring); } } if(essidglen <= 3) { for(c = thisyear +1; c < 100000; c++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%d", essid, c); writepsk(fhout, essidstring); } } if(essidglen <= 12) { for(c = thisyear +1; c < 10000; c++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%d", essid, c); writepsk(fhout, essidstring); } } if(essidglen > 12) { for(c = 2222; c <= 9999; c += 1111) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%d", essid, c); writepsk(fhout, essidstring); } } for(c = 0; c <= thisyear; c++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%04d", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%04d!", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%04d%s", c, essid); writepsk(fhout, essidstring); } for(c = 100; c < 1000; c++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%05d", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%04d", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%d", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%d!", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%d%s", c, essid); writepsk(fhout, essidstring); } for(c = 10; c < 100; c++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%04d", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%03d", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%d!", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%d%s", c, essid); writepsk(fhout, essidstring); } for(c = 0; c < 10; c++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%04d", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%03d", essid, c); writepsk(fhout, essidstring); } for(c = 0; c <= 99; c++) { for(d = 0; d <= 99; d++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%02d%s%02d", c, essid, d); writepsk(fhout, essidstring); } } for(c = 0x21; c < 0x7f; c++) { for(d = 0x21; d < 0x7f; d++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%c%c%s%c%c", c, d, essid, d, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%c%c", essid, c, d); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%c%c%s", c, d, essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%c%s%c", c, essid, d); writepsk(fhout, essidstring); } } for(c = 0x21; c < 0x7f; c++) { snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%c", essid, c); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%c%s", c, essid); writepsk(fhout, essidstring); } snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s1234567890", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s123456789", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s12345678", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s1234567", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s123456", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s12345", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s9876543210", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s987654321", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s87654321", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s7654321", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s654321", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s54321", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s4711", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "1234567890%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "123456789%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "12345678%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "1234567%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "123456%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "12345%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "9876543210%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "987654321%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "87654321%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "7654321%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "654321%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "54321%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s@adsl", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s@Home", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s@WiFi", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s@1234", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%sWiFi", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s@dsl", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s@123", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX, "%s%s%s", essid, essid, essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%s", essid, essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "Family%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "Familie%s", essid); writepsk(fhout, essidstring); snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "Familia%s", essid); writepsk(fhout, essidstring); return; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404B33", "function_addr": 4213555, "binary_name": "75a6adb908792a9ec3640567e6e5e5a507c0231d317ae6712be2ad1fd41f4acb.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, "mov cs:dword_419AA0, 56CEh"], [6, "jmp short loc_404B9A"], [7, "mov edx, cs:dword_419AA0"], [8, "mov rax, [rbp+var_10]"], [9, "mov r8d, edx"], [10, "mov rcx, rax"], [11, "mov edx, offset aSD"], [12, "mov esi, 80h"], [13, "mov edi, offset byte_419AC0"], [14, "mov eax, 0"], [15, "call _snprintf"], [16, "mov rax, [rbp+var_8]"], [17, "mov esi, offset byte_419AC0"], [18, "mov rdi, rax"], [19, "call sub_401ABB"], [20, "mov eax, cs:dword_419AA0"], [21, "add eax, 2B67h"], [22, "mov cs:dword_419AA0, eax"], [23, "mov eax, cs:dword_419AA0"], [24, "cmp eax, 1869Fh"], [25, "jbe short loc_404B4F"], [26, "movzx eax, cs:byte_419500"], [27, "cmp al, 2"], [28, "ja short loc_404C19"], [29, "mov eax, cs:dword_419514"], [30, "add eax, 1"], [31, "mov cs:dword_419AA0, eax"], [32, "jmp short loc_404C0C"], [33, "mov edx, cs:dword_419AA0"], [34, "mov rax, [rbp+var_10]"], [35, "mov r8d, edx"], [36, "mov rcx, rax"], [37, "mov edx, offset aSD"], [38, "mov esi, 80h"], [39, "mov edi, offset byte_419AC0"], [40, "mov eax, 0"], [41, "call _snprintf"], [42, "mov rax, [rbp+var_8]"], [43, "mov esi, offset byte_419AC0"], [44, "mov rdi, rax"], [45, "call sub_401ABB"], [46, "mov eax, cs:dword_419AA0"], [47, "add eax, 1"], [48, "mov cs:dword_419AA0, eax"], [49, "mov eax, cs:dword_419AA0"], [50, "cmp eax, 0F423Fh"], [51, "jbe short loc_404BC3"], [52, "movzx eax, cs:byte_419500"], [53, "cmp al, 3"], [54, "ja short loc_404C8B"], [55, "mov eax, cs:dword_419514"], [56, "add eax, 1"], [57, "mov cs:dword_419AA0, eax"], [58, "jmp short loc_404C7E"], [59, "mov edx, cs:dword_419AA0"], [60, "mov rax, [rbp+var_10]"], [61, "mov r8d, edx"], [62, "mov rcx, rax"], [63, "mov edx, offset aSD"], [64, "mov esi, 80h"], [65, "mov edi, offset byte_419AC0"], [66, "mov eax, 0"], [67, "call _snprintf"], [68, "mov rax, [rbp+var_8]"], [69, "mov esi, offset byte_419AC0"], [70, "mov rdi, rax"], [71, "call sub_401ABB"], [72, "mov eax, cs:dword_419AA0"], [73, "add eax, 1"], [74, "mov cs:dword_419AA0, eax"], [75, "mov eax, cs:dword_419AA0"], [76, "cmp eax, 1869Fh"], [77, "jbe short loc_404C35"], [78, "movzx eax, cs:byte_419500"], [79, "cmp al, 0Ch"], [80, "ja short loc_404CFD"], [81, "mov eax, cs:dword_419514"], [82, "add eax, 1"], [83, "mov cs:dword_419AA0, eax"], [84, "jmp short loc_404CF0"], [85, "mov edx, cs:dword_419AA0"], [86, "mov rax, [rbp+var_10]"], [87, "mov r8d, edx"], [88, "mov rcx, rax"], [89, "mov edx, offset aSD"], [90, "mov esi, 80h"], [91, "mov edi, offset byte_419AC0"], [92, "mov eax, 0"], [93, "call _snprintf"], [94, "mov rax, [rbp+var_8]"], [95, "mov esi, offset byte_419AC0"], [96, "mov rdi, rax"], [97, "call sub_401ABB"], [98, "mov eax, cs:dword_419AA0"], [99, "add eax, 1"], [100, "mov cs:dword_419AA0, eax"], [101, "mov eax, cs:dword_419AA0"], [102, "cmp eax, 270Fh"], [103, "jbe short loc_404CA7"], [104, "movzx eax, cs:byte_419500"], [105, "cmp al, 0Ch"], [106, "jbe short loc_404D6C"], [107, "mov cs:dword_419AA0, 8AEh"], [108, "jmp short loc_404D5F"], [109, "mov edx, cs:dword_419AA0"], [110, "mov rax, [rbp+var_10]"], [111, "mov r8d, edx"], [112, "mov rcx, rax"], [113, "mov edx, offset aSD"], [114, "mov esi, 80h"], [115, "mov edi, offset byte_419AC0"], [116, "mov eax, 0"], [117, "call _snprintf"], [118, "mov rax, [rbp+var_8]"], [119, "mov esi, offset byte_419AC0"], [120, "mov rdi, rax"], [121, "call sub_401ABB"], [122, "mov eax, cs:dword_419AA0"], [123, "add eax, 457h"], [124, "mov cs:dword_419AA0, eax"], [125, "mov eax, cs:dword_419AA0"], [126, "cmp eax, 270Fh"], [127, "jbe short loc_404D14"], [128, "mov cs:dword_419AA0, 0"], [129, "jmp loc_404E37"], [130, "mov edx, cs:dword_419AA0"], [131, "mov rax, [rbp+var_10]"], [132, "mov r8d, edx"], [133, "mov rcx, rax"], [134, "mov edx, offset aS04d"], [135, "mov esi, 80h"], [136, "mov edi, offset byte_419AC0"], [137, "mov eax, 0"], [138, "call _snprintf"], [139, "mov rax, [rbp+var_8]"], [140, "mov esi, offset byte_419AC0"], [141, "mov rdi, rax"], [142, "call sub_401ABB"], [143, "mov edx, cs:dword_419AA0"], [144, "mov rax, [rbp+var_10]"], [145, "mov r8d, edx"], [146, "mov rcx, rax"], [147, "mov edx, offset aS04d_1"], [148, "mov esi, 80h"], [149, "mov edi, offset byte_419AC0"], [150, "mov eax, 0"], [151, "call _snprintf"], [152, "mov rax, [rbp+var_8]"], [153, "mov esi, offset byte_419AC0"], [154, "mov rdi, rax"], [155, "call sub_401ABB"], [156, "mov eax, cs:dword_419AA0"], [157, "mov rdx, [rbp+var_10]"], [158, "mov r8, rdx"], [159, "mov ecx, eax"], [160, "mov edx, offset a04dS"], [161, "mov esi, 80h"], [162, "mov edi, offset byte_419AC0"], [163, "mov eax, 0"], [164, "call _snprintf"], [165, "mov rax, [rbp+var_8]"], [166, "mov esi, offset byte_419AC0"], [167, "mov rdi, rax"], [168, "call sub_401ABB"], [169, "mov eax, cs:dword_419AA0"], [170, "add eax, 1"], [171, "mov cs:dword_419AA0, eax"], [172, "mov edx, cs:dword_419AA0"], [173, "mov eax, cs:dword_419514"], [174, "cmp edx, eax"], [175, "jbe loc_404D7B"], [176, "mov cs:dword_419AA0, 64h "], [177, "jmp loc_404F8A"], [178, "mov edx, cs:dword_419AA0"], [179, "mov rax, [rbp+var_10]"], [180, "mov r8d, edx"], [181, "mov rcx, rax"], [182, "mov edx, offset aS05d"], [183, "mov esi, 80h"], [184, "mov edi, offset byte_419AC0"], [185, "mov eax, 0"], [186, "call _snprintf"], [187, "mov rax, [rbp+var_8]"], [188, "mov esi, offset byte_419AC0"], [189, "mov rdi, rax"], [190, "call sub_401ABB"], [191, "mov edx, cs:dword_419AA0"], [192, "mov rax, [rbp+var_10]"], [193, "mov r8d, edx"], [194, "mov rcx, rax"], [195, "mov edx, offset aS04d"], [196, "mov esi, 80h"], [197, "mov edi, offset byte_419AC0"], [198, "mov eax, 0"], [199, "call _snprintf"], [200, "mov rax, [rbp+var_8]"], [201, "mov esi, offset byte_419AC0"], [202, "mov rdi, rax"], [203, "call sub_401ABB"], [204, "mov edx, cs:dword_419AA0"], [205, "mov rax, [rbp+var_10]"], [206, "mov r8d, edx"], [207, "mov rcx, rax"], [208, "mov edx, offset aSD"], [209, "mov esi, 80h"], [210, "mov edi, offset byte_419AC0"], [211, "mov eax, 0"], [212, "call _snprintf"], [213, "mov rax, [rbp+var_8]"], [214, "mov esi, offset byte_419AC0"], [215, "mov rdi, rax"], [216, "call sub_401ABB"], [217, "mov edx, cs:dword_419AA0"], [218, "mov rax, [rbp+var_10]"], [219, "mov r8d, edx"], [220, "mov rcx, rax"], [221, "mov edx, offset aSD_0"], [222, "mov esi, 80h"], [223, "mov edi, offset byte_419AC0"], [224, "mov eax, 0"], [225, "call _snprintf"], [226, "mov rax, [rbp+var_8]"], [227, "mov esi, offset byte_419AC0"], [228, "mov rdi, rax"], [229, "call sub_401ABB"], [230, "mov eax, cs:dword_419AA0"], [231, "mov rdx, [rbp+var_10]"], [232, "mov r8, rdx"], [233, "mov ecx, eax"], [234, "mov edx, offset aDS"], [235, "mov esi, 80h"], [236, "mov edi, offset byte_419AC0"], [237, "mov eax, 0"], [238, "call _snprintf"], [239, "mov rax, [rbp+var_8]"], [240, "mov esi, offset byte_419AC0"], [241, "mov rdi, rax"], [242, "call sub_401ABB"], [243, "mov eax, cs:dword_419AA0"], [244, "add eax, 1"], [245, "mov cs:dword_419AA0, eax"], [246, "mov eax, cs:dword_419AA0"], [247, "cmp eax, 3E7h"], [248, "jbe loc_404E5A"], [249, "mov cs:dword_419AA0, 0Ah"], [250, "jmp loc_4050A0"], [251, "mov edx, cs:dword_419AA0"], [252, "mov rax, [rbp+var_10]"], [253, "mov r8d, edx"], [254, "mov rcx, rax"], [255, "mov edx, offset aS04d"], [256, "mov esi, 80h"], [257, "mov edi, offset byte_419AC0"], [258, "mov eax, 0"], [259, "call _snprintf"], [260, "mov rax, [rbp+var_8]"], [261, "mov esi, offset byte_419AC0"], [262, "mov rdi, rax"], [263, "call sub_401ABB"], [264, "mov edx, cs:dword_419AA0"], [265, "mov rax, [rbp+var_10]"], [266, "mov r8d, edx"], [267, "mov rcx, rax"], [268, "mov edx, offset aS03d"], [269, "mov esi, 80h"], [270, "mov edi, offset byte_419AC0"], [271, "mov eax, 0"], [272, "call _snprintf"], [273, "mov rax, [rbp+var_8]"], [274, "mov esi, offset byte_419AC0"], [275, "mov rdi, rax"], [276, "call sub_401ABB"], [277, "mov edx, cs:dword_419AA0"], [278, "mov rax, [rbp+var_10]"], [279, "mov r8d, edx"], [280, "mov rcx, rax"], [281, "mov edx, offset aSD_0"], [282, "mov esi, 80h"], [283, "mov edi, offset byte_419AC0"], [284, "mov eax, 0"], [285, "call _snprintf"], [286, "mov rax, [rbp+var_8]"], [287, "mov esi, offset byte_419AC0"], [288, "mov rdi, rax"], [289, "call sub_401ABB"], [290, "mov eax, cs:dword_419AA0"], [291, "mov rdx, [rbp+var_10]"], [292, "mov r8, rdx"], [293, "mov ecx, eax"], [294, "mov edx, offset aDS"], [295, "mov esi, 80h"], [296, "mov edi, offset byte_419AC0"], [297, "mov eax, 0"], [298, "call _snprintf"], [299, "mov rax, [rbp+var_8]"], [300, "mov esi, offset byte_419AC0"], [301, "mov rdi, rax"], [302, "call sub_401ABB"], [303, "mov eax, cs:dword_419AA0"], [304, "add eax, 1"], [305, "mov cs:dword_419AA0, eax"], [306, "mov eax, cs:dword_419AA0"], [307, "cmp eax, 63h "], [308, "jbe loc_404FAA"], [309, "mov cs:dword_419AA0, 0"], [310, "jmp loc_405141"], [311, "mov edx, cs:dword_419AA0"], [312, "mov rax, [rbp+var_10]"], [313, "mov r8d, edx"], [314, "mov rcx, rax"], [315, "mov edx, offset aS04d"], [316, "mov esi, 80h"], [317, "mov edi, offset byte_419AC0"], [318, "mov eax, 0"], [319, "call _snprintf"], [320, "mov rax, [rbp+var_8]"], [321, "mov esi, offset byte_419AC0"], [322, "mov rdi, rax"], [323, "call sub_401ABB"], [324, "mov edx, cs:dword_419AA0"], [325, "mov rax, [rbp+var_10]"], [326, "mov r8d, edx"], [327, "mov rcx, rax"], [328, "mov edx, offset aS03d"], [329, "mov esi, 80h"], [330, "mov edi, offset byte_419AC0"], [331, "mov eax, 0"], [332, "call _snprintf"], [333, "mov rax, [rbp+var_8]"], [334, "mov esi, offset byte_419AC0"], [335, "mov rdi, rax"], [336, "call sub_401ABB"], [337, "mov eax, cs:dword_419AA0"], [338, "add eax, 1"], [339, "mov cs:dword_419AA0, eax"], [340, "mov eax, cs:dword_419AA0"], [341, "cmp eax, 9"], [342, "jbe loc_4050BE"], [343, "mov cs:dword_419AA0, 0"], [344, "jmp short loc_4051D3"], [345, "mov cs:dword_419B80, 0"], [346, "jmp short loc_4051B9"], [347, "mov ecx, cs:dword_419B80"], [348, "mov eax, cs:dword_419AA0"], [349, "mov rdx, [rbp+var_10]"], [350, "mov r9d, ecx"], [351, "mov r8, rdx"], [352, "mov ecx, eax"], [353, "mov edx, offset a02dS02d"], [354, "mov esi, 80h"], [355, "mov edi, offset byte_419AC0"], [356, "mov eax, 0"], [357, "call _snprintf"], [358, "mov rax, [rbp+var_8]"], [359, "mov esi, offset byte_419AC0"], [360, "mov rdi, rax"], [361, "call sub_401ABB"], [362, "mov eax, cs:dword_419B80"], [363, "add eax, 1"], [364, "mov cs:dword_419B80, eax"], [365, "mov eax, cs:dword_419B80"], [366, "cmp eax, 63h "], [367, "jbe short loc_405168"], [368, "mov eax, cs:dword_419AA0"], [369, "add eax, 1"], [370, "mov cs:dword_419AA0, eax"], [371, "mov eax, cs:dword_419AA0"], [372, "cmp eax, 63h "], [373, "jbe loc_40515C"], [374, "mov cs:dword_419AA0, 21h "], [375, "jmp loc_405348"], [376, "mov cs:dword_419B80, 21h "], [377, "jmp loc_40532A"], [378, "mov ecx, cs:dword_419AA0"], [379, "mov edx, cs:dword_419B80"], [380, "mov esi, cs:dword_419B80"], [381, "mov eax, cs:dword_419AA0"], [382, "mov rdi, [rbp+var_10]"], [383, "push rcx"], [384, "push rdx"], [385, "mov r9, rdi"], [386, "mov r8d, esi"], [387, "mov ecx, eax"], [388, "mov edx, offset aCCSCC"], [389, "mov esi, 80h"], [390, "mov edi, offset byte_419AC0"], [391, "mov eax, 0"], [392, "call _snprintf"], [393, "add rsp, 10h"], [394, "mov rax, [rbp+var_8]"], [395, "mov esi, offset byte_419AC0"], [396, "mov rdi, rax"], [397, "call sub_401ABB"], [398, "mov ecx, cs:dword_419B80"], [399, "mov edx, cs:dword_419AA0"], [400, "mov rax, [rbp+var_10]"], [401, "mov r9d, ecx"], [402, "mov r8d, edx"], [403, "mov rcx, rax"], [404, "mov edx, offset aSCC"], [405, "mov esi, 80h"], [406, "mov edi, offset byte_419AC0"], [407, "mov eax, 0"], [408, "call _snprintf"], [409, "mov rax, [rbp+var_8]"], [410, "mov esi, offset byte_419AC0"], [411, "mov rdi, rax"], [412, "call sub_401ABB"], [413, "mov edx, cs:dword_419B80"], [414, "mov eax, cs:dword_419AA0"], [415, "mov rcx, [rbp+var_10]"], [416, "mov r9, rcx"], [417, "mov r8d, edx"], [418, "mov ecx, eax"], [419, "mov edx, offset aCCS"], [420, "mov esi, 80h"], [421, "mov edi, offset byte_419AC0"], [422, "mov eax, 0"], [423, "call _snprintf"], [424, "mov rax, [rbp+var_8]"], [425, "mov esi, offset byte_419AC0"], [426, "mov rdi, rax"], [427, "call sub_401ABB"], [428, "mov ecx, cs:dword_419B80"], [429, "mov eax, cs:dword_419AA0"], [430, "mov rdx, [rbp+var_10]"], [431, "mov r9d, ecx"], [432, "mov r8, rdx"], [433, "mov ecx, eax"], [434, "mov edx, offset aCSC"], [435, "mov esi, 80h"], [436, "mov edi, offset byte_419AC0"], [437, "mov eax, 0"], [438, "call _snprintf"], [439, "mov rax, [rbp+var_8]"], [440, "mov esi, offset byte_419AC0"], [441, "mov rdi, rax"], [442, "call sub_401ABB"], [443, "mov eax, cs:dword_419B80"], [444, "add eax, 1"], [445, "mov cs:dword_419B80, eax"], [446, "mov eax, cs:dword_419B80"], [447, "cmp eax, 7Eh "], [448, "jbe loc_405200"], [449, "mov eax, cs:dword_419AA0"], [450, "add eax, 1"], [451, "mov cs:dword_419AA0, eax"], [452, "mov eax, cs:dword_419AA0"], [453, "cmp eax, 7Eh "], [454, "jbe loc_4051F1"], [455, "mov cs:dword_419AA0, 21h "], [456, "jmp loc_4053E8"], [457, "mov edx, cs:dword_419AA0"], [458, "mov rax, [rbp+var_10]"], [459, "mov r8d, edx"], [460, "mov rcx, rax"], [461, "mov edx, offset aSC"], [462, "mov esi, 80h"], [463, "mov edi, offset byte_419AC0"], [464, "mov eax, 0"], [465, "call _snprintf"], [466, "mov rax, [rbp+var_8]"], [467, "mov esi, offset byte_419AC0"], [468, "mov rdi, rax"], [469, "call sub_401ABB"], [470, "mov eax, cs:dword_419AA0"], [471, "mov rdx, [rbp+var_10]"], [472, "mov r8, rdx"], [473, "mov ecx, eax"], [474, "mov edx, offset aCS"], [475, "mov esi, 80h"], [476, "mov edi, offset byte_419AC0"], [477, "mov eax, 0"], [478, "call _snprintf"], [479, "mov rax, [rbp+var_8]"], [480, "mov esi, offset byte_419AC0"], [481, "mov rdi, rax"], [482, "call sub_401ABB"], [483, "mov eax, cs:dword_419AA0"], [484, "add eax, 1"], [485, "mov cs:dword_419AA0, eax"], [486, "mov eax, cs:dword_419AA0"], [487, "cmp eax, 7Eh "], [488, "jbe loc_405366"], [489, "mov rax, [rbp+var_10]"], [490, "mov rcx, rax"], [491, "mov edx, offset aS1234567890"], [492, "mov esi, 80h"], [493, "mov edi, offset byte_419AC0"], [494, "mov eax, 0"], [495, "call _snprintf"], [496, "mov rax, [rbp+var_8]"], [497, "mov esi, offset byte_419AC0"], [498, "mov rdi, rax"], [499, "call sub_401ABB"], [500, "mov rax, [rbp+var_10]"], [501, "mov rcx, rax"], [502, "mov edx, offset aS123456789"], [503, "mov esi, 80h"], [504, "mov edi, offset byte_419AC0"], [505, "mov eax, 0"], [506, "call _snprintf"], [507, "mov rax, [rbp+var_8]"], [508, "mov esi, offset byte_419AC0"], [509, "mov rdi, rax"], [510, "call sub_401ABB"], [511, "mov rax, [rbp+var_10]"], [512, "mov rcx, rax"], [513, "mov edx, offset aS12345678"], [514, "mov esi, 80h"], [515, "mov edi, offset byte_419AC0"], [516, "mov eax, 0"], [517, "call _snprintf"], [518, "mov rax, [rbp+var_8]"], [519, "mov esi, offset byte_419AC0"], [520, "mov rdi, rax"], [521, "call sub_401ABB"], [522, "mov rax, [rbp+var_10]"], [523, "mov rcx, rax"], [524, "mov edx, offset aS1234567"], [525, "mov esi, 80h"], [526, "mov edi, offset byte_419AC0"], [527, "mov eax, 0"], [528, "call _snprintf"], [529, "mov rax, [rbp+var_8]"], [530, "mov esi, offset byte_419AC0"], [531, "mov rdi, rax"], [532, "call sub_401ABB"], [533, "mov rax, [rbp+var_10]"], [534, "mov rcx, rax"], [535, "mov edx, offset aS123456"], [536, "mov esi, 80h"], [537, "mov edi, offset byte_419AC0"], [538, "mov eax, 0"], [539, "call _snprintf"], [540, "mov rax, [rbp+var_8]"], [541, "mov esi, offset byte_419AC0"], [542, "mov rdi, rax"], [543, "call sub_401ABB"], [544, "mov rax, [rbp+var_10]"], [545, "mov rcx, rax"], [546, "mov edx, offset aS12345"], [547, "mov esi, 80h"], [548, "mov edi, offset byte_419AC0"], [549, "mov eax, 0"], [550, "call _snprintf"], [551, "mov rax, [rbp+var_8]"], [552, "mov esi, offset byte_419AC0"], [553, "mov rdi, rax"], [554, "call sub_401ABB"], [555, "mov rax, [rbp+var_10]"], [556, "mov rcx, rax"], [557, "mov edx, offset aS9876543210"], [558, "mov esi, 80h"], [559, "mov edi, offset byte_419AC0"], [560, "mov eax, 0"], [561, "call _snprintf"], [562, "mov rax, [rbp+var_8]"], [563, "mov esi, offset byte_419AC0"], [564, "mov rdi, rax"], [565, "call sub_401ABB"], [566, "mov rax, [rbp+var_10]"], [567, "mov rcx, rax"], [568, "mov edx, offset aS987654321"], [569, "mov esi, 80h"], [570, "mov edi, offset byte_419AC0"], [571, "mov eax, 0"], [572, "call _snprintf"], [573, "mov rax, [rbp+var_8]"], [574, "mov esi, offset byte_419AC0"], [575, "mov rdi, rax"], [576, "call sub_401ABB"], [577, "mov rax, [rbp+var_10]"], [578, "mov rcx, rax"], [579, "mov edx, offset aS87654321"], [580, "mov esi, 80h"], [581, "mov edi, offset byte_419AC0"], [582, "mov eax, 0"], [583, "call _snprintf"], [584, "mov rax, [rbp+var_8]"], [585, "mov esi, offset byte_419AC0"], [586, "mov rdi, rax"], [587, "call sub_401ABB"], [588, "mov rax, [rbp+var_10]"], [589, "mov rcx, rax"], [590, "mov edx, offset aS7654321"], [591, "mov esi, 80h"], [592, "mov edi, offset byte_419AC0"], [593, "mov eax, 0"], [594, "call _snprintf"], [595, "mov rax, [rbp+var_8]"], [596, "mov esi, offset byte_419AC0"], [597, "mov rdi, rax"], [598, "call sub_401ABB"], [599, "mov rax, [rbp+var_10]"], [600, "mov rcx, rax"], [601, "mov edx, offset aS654321"], [602, "mov esi, 80h"], [603, "mov edi, offset byte_419AC0"], [604, "mov eax, 0"], [605, "call _snprintf"], [606, "mov rax, [rbp+var_8]"], [607, "mov esi, offset byte_419AC0"], [608, "mov rdi, rax"], [609, "call sub_401ABB"], [610, "mov rax, [rbp+var_10]"], [611, "mov rcx, rax"], [612, "mov edx, offset aS54321"], [613, "mov esi, 80h"], [614, "mov edi, offset byte_419AC0"], [615, "mov eax, 0"], [616, "call _snprintf"], [617, "mov rax, [rbp+var_8]"], [618, "mov esi, offset byte_419AC0"], [619, "mov rdi, rax"], [620, "call sub_401ABB"], [621, "mov rax, [rbp+var_10]"], [622, "mov rcx, rax"], [623, "mov edx, offset aS4711"], [624, "mov esi, 80h"], [625, "mov edi, offset byte_419AC0"], [626, "mov eax, 0"], [627, "call _snprintf"], [628, "mov rax, [rbp+var_8]"], [629, "mov esi, offset byte_419AC0"], [630, "mov rdi, rax"], [631, "call sub_401ABB"], [632, "mov rax, [rbp+var_10]"], [633, "mov rcx, rax"], [634, "mov edx, offset a1234567890S"], [635, "mov esi, 80h"], [636, "mov edi, offset byte_419AC0"], [637, "mov eax, 0"], [638, "call _snprintf"], [639, "mov rax, [rbp+var_8]"], [640, "mov esi, offset byte_419AC0"], [641, "mov rdi, rax"], [642, "call sub_401ABB"], [643, "mov rax, [rbp+var_10]"], [644, "mov rcx, rax"], [645, "mov edx, offset a123456789S"], [646, "mov esi, 80h"], [647, "mov edi, offset byte_419AC0"], [648, "mov eax, 0"], [649, "call _snprintf"], [650, "mov rax, [rbp+var_8]"], [651, "mov esi, offset byte_419AC0"], [652, "mov rdi, rax"], [653, "call sub_401ABB"], [654, "mov rax, [rbp+var_10]"], [655, "mov rcx, rax"], [656, "mov edx, offset a12345678S"], [657, "mov esi, 80h"], [658, "mov edi, offset byte_419AC0"], [659, "mov eax, 0"], [660, "call _snprintf"], [661, "mov rax, [rbp+var_8]"], [662, "mov esi, offset byte_419AC0"], [663, "mov rdi, rax"], [664, "call sub_401ABB"], [665, "mov rax, [rbp+var_10]"], [666, "mov rcx, rax"], [667, "mov edx, offset a1234567S"], [668, "mov esi, 80h"], [669, "mov edi, offset byte_419AC0"], [670, "mov eax, 0"], [671, "call _snprintf"], [672, "mov rax, [rbp+var_8]"], [673, "mov esi, offset byte_419AC0"], [674, "mov rdi, rax"], [675, "call sub_401ABB"], [676, "mov rax, [rbp+var_10]"], [677, "mov rcx, rax"], [678, "mov edx, offset a123456S"], [679, "mov esi, 80h"], [680, "mov edi, offset byte_419AC0"], [681, "mov eax, 0"], [682, "call _snprintf"], [683, "mov rax, [rbp+var_8]"], [684, "mov esi, offset byte_419AC0"], [685, "mov rdi, rax"], [686, "call sub_401ABB"], [687, "mov rax, [rbp+var_10]"], [688, "mov rcx, rax"], [689, "mov edx, offset a12345S"], [690, "mov esi, 80h"], [691, "mov edi, offset byte_419AC0"], [692, "mov eax, 0"], [693, "call _snprintf"], [694, "mov rax, [rbp+var_8]"], [695, "mov esi, offset byte_419AC0"], [696, "mov rdi, rax"], [697, "call sub_401ABB"], [698, "mov rax, [rbp+var_10]"], [699, "mov rcx, rax"], [700, "mov edx, offset a9876543210S"], [701, "mov esi, 80h"], [702, "mov edi, offset byte_419AC0"], [703, "mov eax, 0"], [704, "call _snprintf"], [705, "mov rax, [rbp+var_8]"], [706, "mov esi, offset byte_419AC0"], [707, "mov rdi, rax"], [708, "call sub_401ABB"], [709, "mov rax, [rbp+var_10]"], [710, "mov rcx, rax"], [711, "mov edx, offset a987654321S"], [712, "mov esi, 80h"], [713, "mov edi, offset byte_419AC0"], [714, "mov eax, 0"], [715, "call _snprintf"], [716, "mov rax, [rbp+var_8]"], [717, "mov esi, offset byte_419AC0"], [718, "mov rdi, rax"], [719, "call sub_401ABB"], [720, "mov rax, [rbp+var_10]"], [721, "mov rcx, rax"], [722, "mov edx, offset a87654321S"], [723, "mov esi, 80h"], [724, "mov edi, offset byte_419AC0"], [725, "mov eax, 0"], [726, "call _snprintf"], [727, "mov rax, [rbp+var_8]"], [728, "mov esi, offset byte_419AC0"], [729, "mov rdi, rax"], [730, "call sub_401ABB"], [731, "mov rax, [rbp+var_10]"], [732, "mov rcx, rax"], [733, "mov edx, offset a7654321S"], [734, "mov esi, 80h"], [735, "mov edi, offset byte_419AC0"], [736, "mov eax, 0"], [737, "call _snprintf"], [738, "mov rax, [rbp+var_8]"], [739, "mov esi, offset byte_419AC0"], [740, "mov rdi, rax"], [741, "call sub_401ABB"], [742, "mov rax, [rbp+var_10]"], [743, "mov rcx, rax"], [744, "mov edx, offset a654321S"], [745, "mov esi, 80h"], [746, "mov edi, offset byte_419AC0"], [747, "mov eax, 0"], [748, "call _snprintf"], [749, "mov rax, [rbp+var_8]"], [750, "mov esi, offset byte_419AC0"], [751, "mov rdi, rax"], [752, "call sub_401ABB"], [753, "mov rax, [rbp+var_10]"], [754, "mov rcx, rax"], [755, "mov edx, offset a54321S"], [756, "mov esi, 80h"], [757, "mov edi, offset byte_419AC0"], [758, "mov eax, 0"], [759, "call _snprintf"], [760, "mov rax, [rbp+var_8]"], [761, "mov esi, offset byte_419AC0"], [762, "mov rdi, rax"], [763, "call sub_401ABB"], [764, "mov rax, [rbp+var_10]"], [765, "mov rcx, rax"], [766, "mov edx, offset aSAdsl"], [767, "mov esi, 80h"], [768, "mov edi, offset byte_419AC0"], [769, "mov eax, 0"], [770, "call _snprintf"], [771, "mov rax, [rbp+var_8]"], [772, "mov esi, offset byte_419AC0"], [773, "mov rdi, rax"], [774, "call sub_401ABB"], [775, "mov rax, [rbp+var_10]"], [776, "mov rcx, rax"], [777, "mov edx, offset aSHome"], [778, "mov esi, 80h"], [779, "mov edi, offset byte_419AC0"], [780, "mov eax, 0"], [781, "call _snprintf"], [782, "mov rax, [rbp+var_8]"], [783, "mov esi, offset byte_419AC0"], [784, "mov rdi, rax"], [785, "call sub_401ABB"], [786, "mov rax, [rbp+var_10]"], [787, "mov rcx, rax"], [788, "mov edx, offset aSWifi"], [789, "mov esi, 80h"], [790, "mov edi, offset byte_419AC0"], [791, "mov eax, 0"], [792, "call _snprintf"], [793, "mov rax, [rbp+var_8]"], [794, "mov esi, offset byte_419AC0"], [795, "mov rdi, rax"], [796, "call sub_401ABB"], [797, "mov rax, [rbp+var_10]"], [798, "mov rcx, rax"], [799, "mov edx, offset aS1234"], [800, "mov esi, 80h"], [801, "mov edi, offset byte_419AC0"], [802, "mov eax, 0"], [803, "call _snprintf"], [804, "mov rax, [rbp+var_8]"], [805, "mov esi, offset byte_419AC0"], [806, "mov rdi, rax"], [807, "call sub_401ABB"], [808, "mov rax, [rbp+var_10]"], [809, "mov rcx, rax"], [810, "mov edx, offset aSwifi"], [811, "mov esi, 80h"], [812, "mov edi, offset byte_419AC0"], [813, "mov eax, 0"], [814, "call _snprintf"], [815, "mov rax, [rbp+var_8]"], [816, "mov esi, offset byte_419AC0"], [817, "mov rdi, rax"], [818, "call sub_401ABB"], [819, "mov rax, [rbp+var_10]"], [820, "mov rcx, rax"], [821, "mov edx, offset aSDsl"], [822, "mov esi, 80h"], [823, "mov edi, offset byte_419AC0"], [824, "mov eax, 0"], [825, "call _snprintf"], [826, "mov rax, [rbp+var_8]"], [827, "mov esi, offset byte_419AC0"], [828, "mov rdi, rax"], [829, "call sub_401ABB"], [830, "mov rax, [rbp+var_10]"], [831, "mov rcx, rax"], [832, "mov edx, offset aS123"], [833, "mov esi, 80h"], [834, "mov edi, offset byte_419AC0"], [835, "mov eax, 0"], [836, "call _snprintf"], [837, "mov rax, [rbp+var_8]"], [838, "mov esi, offset byte_419AC0"], [839, "mov rdi, rax"], [840, "call sub_401ABB"], [841, "mov rcx, [rbp+var_10]"], [842, "mov rdx, [rbp+var_10]"], [843, "mov rax, [rbp+var_10]"], [844, "mov r9, rcx"], [845, "mov r8, rdx"], [846, "mov rcx, rax"], [847, "mov edx, offset aSSS_0"], [848, "mov esi, 0C0h"], [849, "mov edi, offset byte_419AC0"], [850, "mov eax, 0"], [851, "call _snprintf"], [852, "mov rax, [rbp+var_8]"], [853, "mov esi, offset byte_419AC0"], [854, "mov rdi, rax"], [855, "call sub_401ABB"], [856, "mov rdx, [rbp+var_10]"], [857, "mov rax, [rbp+var_10]"], [858, "mov r8, rdx"], [859, "mov rcx, rax"], [860, "mov edx, offset aSS"], [861, "mov esi, 80h"], [862, "mov edi, offset byte_419AC0"], [863, "mov eax, 0"], [864, "call _snprintf"], [865, "mov rax, [rbp+var_8]"], [866, "mov esi, offset byte_419AC0"], [867, "mov rdi, rax"], [868, "call sub_401ABB"], [869, "mov rax, [rbp+var_10]"], [870, "mov rcx, rax"], [871, "mov edx, offset aS_0"], [872, "mov esi, 80h"], [873, "mov edi, offset byte_419AC0"], [874, "mov eax, 0"], [875, "call _snprintf"], [876, "mov rax, [rbp+var_8]"], [877, "mov esi, offset byte_419AC0"], [878, "mov rdi, rax"], [879, "call sub_401ABB"], [880, "mov rax, [rbp+var_10]"], [881, "mov rcx, rax"], [882, "mov edx, offset aFamilyS"], [883, "mov esi, 80h"], [884, "mov edi, offset byte_419AC0"], [885, "mov eax, 0"], [886, "call _snprintf"], [887, "mov rax, [rbp+var_8]"], [888, "mov esi, offset byte_419AC0"], [889, "mov rdi, rax"], [890, "call sub_401ABB"], [891, "mov rax, [rbp+var_10]"], [892, "mov rcx, rax"], [893, "mov edx, offset aFamilieS"], [894, "mov esi, 80h"], [895, "mov edi, offset byte_419AC0"], [896, "mov eax, 0"], [897, "call _snprintf"], [898, "mov rax, [rbp+var_8]"], [899, "mov esi, offset byte_419AC0"], [900, "mov rdi, rax"], [901, "call sub_401ABB"], [902, "mov rax, [rbp+var_10]"], [903, "mov rcx, rax"], [904, "mov edx, offset aFamiliaS"], [905, "mov esi, 80h"], [906, "mov edi, offset byte_419AC0"], [907, "mov eax, 0"], [908, "call _snprintf"], [909, "mov rax, [rbp+var_8]"], [910, "mov esi, offset byte_419AC0"], [911, "mov rdi, rax"], [912, "call sub_401ABB"], [913, "nop"], [914, "leave"], [915, "retn"]], "data_dep": [[7, 5], [7, 22], [8, 4], [9, 7], [10, 8], [16, 3], [18, 16], [20, 5], [20, 22], [21, 20], [22, 21], [23, 5], [23, 22], [24, 23], [25, 24], [27, 26], [28, 27], [30, 29], [31, 30], [33, 31], [33, 48], [34, 4], [35, 33], [36, 34], [42, 3], [44, 42], [46, 31], [46, 48], [47, 46], [48, 47], [49, 31], [49, 48], [50, 49], [51, 50], [53, 52], [54, 53], [56, 55], [57, 56], [59, 57], [59, 74], [60, 4], [61, 59], [62, 60], [68, 3], [70, 68], [72, 57], [72, 74], [73, 72], [74, 73], [75, 57], [75, 74], [76, 75], [77, 76], [79, 78], [80, 79], [82, 81], [83, 82], [85, 83], [85, 100], [86, 4], [87, 85], [88, 86], [94, 3], [96, 94], [98, 83], [98, 100], [99, 98], [100, 99], [101, 83], [101, 100], [102, 101], [103, 102], [105, 104], [106, 105], [109, 107], [109, 124], [110, 4], [111, 109], [112, 110], [118, 3], [120, 118], [122, 124], [122, 107], [123, 122], [124, 123], [125, 107], [125, 124], [126, 125], [127, 126], [130, 171], [130, 128], [131, 4], [132, 130], [133, 131], [139, 3], [141, 139], [143, 171], [143, 128], [144, 4], [145, 143], [146, 144], [152, 3], [154, 152], [156, 171], [156, 128], [157, 4], [158, 157], [159, 156], [165, 3], [167, 165], [169, 171], [169, 128], [170, 169], [171, 170], [172, 171], [172, 128], [174, 173], [174, 172], [175, 174], [178, 176], [178, 245], [179, 4], [180, 178], [181, 179], [187, 3], [189, 187], [191, 176], [191, 245], [192, 4], [193, 191], [194, 192], [200, 3], [202, 200], [204, 176], [204, 245], [205, 4], [206, 204], [207, 205], [213, 3], [215, 213], [217, 176], [217, 245], [218, 4], [219, 217], [220, 218], [226, 3], [228, 226], [230, 176], [230, 245], [231, 4], [232, 231], [233, 230], [239, 3], [241, 239], [243, 176], [243, 245], [244, 243], [245, 244], [246, 176], [246, 245], [247, 246], [248, 247], [251, 249], [251, 305], [252, 4], [253, 251], [254, 252], [260, 3], [262, 260], [264, 305], [264, 249], [265, 4], [266, 264], [267, 265], [273, 3], [275, 273], [277, 249], [277, 305], [278, 4], [279, 277], [280, 278], [286, 3], [288, 286], [290, 305], [290, 249], [291, 4], [292, 291], [293, 290], [299, 3], [301, 299], [303, 305], [303, 249], [304, 303], [305, 304], [306, 305], [306, 249], [307, 306], [308, 307], [311, 339], [311, 309], [312, 4], [313, 311], [314, 312], [320, 3], [322, 320], [324, 339], [324, 309], [325, 4], [326, 324], [327, 325], [333, 3], [335, 333], [337, 309], [337, 339], [338, 337], [339, 338], [340, 309], [340, 339], [341, 340], [342, 341], [347, 364], [347, 345], [348, 370], [348, 343], [349, 4], [350, 347], [351, 349], [352, 348], [358, 3], [360, 358], [362, 364], [362, 345], [363, 362], [364, 363], [365, 364], [365, 345], [366, 365], [367, 366], [368, 343], [368, 370], [369, 368], [370, 369], [371, 343], [371, 370], [372, 371], [373, 372], [378, 374], [378, 451], [379, 376], [379, 445], [380, 376], [380, 445], [381, 374], [381, 451], [382, 4], [383, 378], [384, 379], [385, 382], [386, 380], [387, 381], [393, 393], [393, 2], [394, 3], [396, 394], [398, 376], [398, 445], [399, 374], [399, 451], [400, 4], [401, 398], [402, 399], [403, 400], [409, 3], [411, 409], [413, 376], [413, 445], [414, 374], [414, 451], [415, 4], [416, 415], [417, 413], [418, 414], [424, 3], [426, 424], [428, 376], [428, 445], [429, 374], [429, 451], [430, 4], [431, 428], [432, 430], [433, 429], [439, 3], [441, 439], [443, 376], [443, 445], [444, 443], [445, 444], [446, 445], [446, 376], [447, 446], [448, 447], [449, 374], [449, 451], [450, 449], [451, 450], [452, 374], [452, 451], [453, 452], [454, 453], [457, 485], [457, 455], [458, 4], [459, 457], [460, 458], [466, 3], [468, 466], [470, 485], [470, 455], [471, 4], [472, 471], [473, 470], [479, 3], [481, 479], [483, 485], [483, 455], [484, 483], [485, 484], [486, 485], [486, 455], [487, 486], [488, 487], [489, 4], [490, 489], [496, 3], [498, 496], [500, 4], [501, 500], [507, 3], [509, 507], [511, 4], [512, 511], [518, 3], [520, 518], [522, 4], [523, 522], [529, 3], [531, 529], [533, 4], [534, 533], [540, 3], [542, 540], [544, 4], [545, 544], [551, 3], [553, 551], [555, 4], [556, 555], [562, 3], [564, 562], [566, 4], [567, 566], [573, 3], [575, 573], [577, 4], [578, 577], [584, 3], [586, 584], [588, 4], [589, 588], [595, 3], [597, 595], [599, 4], [600, 599], [606, 3], [608, 606], [610, 4], [611, 610], [617, 3], [619, 617], [621, 4], [622, 621], [628, 3], [630, 628], [632, 4], [633, 632], [639, 3], [641, 639], [643, 4], [644, 643], [650, 3], [652, 650], [654, 4], [655, 654], [661, 3], [663, 661], [665, 4], [666, 665], [672, 3], [674, 672], [676, 4], [677, 676], [683, 3], [685, 683], [687, 4], [688, 687], [694, 3], [696, 694], [698, 4], [699, 698], [705, 3], [707, 705], [709, 4], [710, 709], [716, 3], [718, 716], [720, 4], [721, 720], [727, 3], [729, 727], [731, 4], [732, 731], [738, 3], [740, 738], [742, 4], [743, 742], [749, 3], [751, 749], [753, 4], [754, 753], [760, 3], [762, 760], [764, 4], [765, 764], [771, 3], [773, 771], [775, 4], [776, 775], [782, 3], [784, 782], [786, 4], [787, 786], [793, 3], [795, 793], [797, 4], [798, 797], [804, 3], [806, 804], [808, 4], [809, 808], [815, 3], [817, 815], [819, 4], [820, 819], [826, 3], [828, 826], [830, 4], [831, 830], [837, 3], [839, 837], [841, 4], [842, 4], [843, 4], [844, 841], [845, 842], [846, 843], [852, 3], [854, 852], [856, 4], [857, 4], [858, 856], [859, 857], [865, 3], [867, 865], [869, 4], [870, 869], [876, 3], [878, 876], [880, 4], [881, 880], [887, 3], [889, 887], [891, 4], [892, 891], [898, 3], [900, 898], [902, 4], [903, 902], [909, 3], [911, 909], [915, 912]]}
{"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/75a6adb908792a9ec3640567e6e5e5a507c0231d317ae6712be2ad1fd41f4acb_75a6adb908792a9ec3640567e6e5e5a507c0231d317ae6712be2ad1fd41f4acb.jsonl.gz", "strip_func_name": "sub_404B33", "query": "\n\n\nint __fastcall sub_404B33(FILE *a1, const char *a2)\n{\nfor ( dword_419AA0 = 22222; (unsigned int)dword_419AA0 <= 0x1869F; dword_419AA0 += 11111 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\n}\nif ( (unsigned __int8)byte_419500 <= 2u )\n{\nfor ( dword_419AA0 = dword_419514 + 1; (unsigned int)dword_419AA0 <= 0xF423F; ++dword_419AA0 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\n}\n}\nif ( (unsigned __int8)byte_419500 <= 3u )\n{\nfor ( dword_419AA0 = dword_419514 + 1; (unsigned int)dword_419AA0 <= 0x1869F; ++dword_419AA0 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\n}\n}\nif ( (unsigned __int8)byte_419500 <= 0xCu )\n{\nfor ( dword_419AA0 = dword_419514 + 1; (unsigned int)dword_419AA0 <= 0x270F; ++dword_419AA0 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\n}\n}\nif ( (unsigned __int8)byte_419500 > 0xCu )\n{\nfor ( dword_419AA0 = 2222; (unsigned int)dword_419AA0 <= 0x270F; dword_419AA0 += 1111 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\n}\n}\nfor ( dword_419AA0 = 0; dword_419AA0 <= (unsigned int)dword_419514; ++dword_419AA0 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%04d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s%04d!\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%04d%s\", (unsigned int)dword_419AA0, a2);\nsub_401ABB(a1, byte_419AC0);\n}\nfor ( dword_419AA0 = 100; (unsigned int)dword_419AA0 <= 0x3E7; ++dword_419AA0 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%05d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s%04d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s%d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s%d!\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%d%s\", (unsigned int)dword_419AA0, a2);\nsub_401ABB(a1, byte_419AC0);\n}\nfor ( dword_419AA0 = 10; (unsigned int)dword_419AA0 <= 0x63; ++dword_419AA0 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%04d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s%03d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s%d!\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%d%s\", (unsigned int)dword_419AA0, a2);\nsub_401ABB(a1, byte_419AC0);\n}\nfor ( dword_419AA0 = 0; (unsigned int)dword_419AA0 <= 9; ++dword_419AA0 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%04d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s%03d\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\n}\nfor ( dword_419AA0 = 0; (unsigned int)dword_419AA0 <= 0x63; ++dword_419AA0 )\n{\nfor ( dword_419B80 = 0; (unsigned int)dword_419B80 <= 0x63; ++dword_419B80 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%02d%s%02d\", (unsigned int)dword_419AA0, a2, (unsigned int)dword_419B80);\nsub_401ABB(a1, byte_419AC0);\n}\n}\nfor ( dword_419AA0 = 33; (unsigned int)dword_419AA0 <= 0x7E; ++dword_419AA0 )\n{\nfor ( dword_419B80 = 33; (unsigned int)dword_419B80 <= 0x7E; ++dword_419B80 )\n{\nsnprintf(\nbyte_419AC0,\n0x80uLL,\n\"%c%c%s%c%c\",\n(unsigned int)dword_419AA0,\n(unsigned int)dword_419B80,\na2,\n(unsigned int)dword_419B80,\n(unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s%c%c\", a2, (unsigned int)dword_419AA0, (unsigned int)dword_419B80);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%c%c%s\", (unsigned int)dword_419AA0, (unsigned int)dword_419B80, a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%c%s%c\", (unsigned int)dword_419AA0, a2, (unsigned int)dword_419B80);\nsub_401ABB(a1, byte_419AC0);\n}\n}\nfor ( dword_419AA0 = 33; (unsigned int)dword_419AA0 <= 0x7E; ++dword_419AA0 )\n{\nsnprintf(byte_419AC0, 0x80uLL, \"%s%c\", a2, (unsigned int)dword_419AA0);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%c%s\", (unsigned int)dword_419AA0, a2);\nsub_401ABB(a1, byte_419AC0);\n}\nsnprintf(byte_419AC0, 0x80uLL, \"%s1234567890\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s123456789\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s12345678\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s1234567\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s123456\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s12345\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s9876543210\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s987654321\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s87654321\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s7654321\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s654321\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s54321\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s4711\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"1234567890%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"123456789%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"12345678%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"1234567%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"123456%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"12345%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"9876543210%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"987654321%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"87654321%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"7654321%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"654321%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"54321%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s@adsl\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s@Home\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s@WiFi\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s@1234\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%sWiFi\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s@dsl\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s@123\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0xC0uLL, \"%s%s%s\", a2, a2, a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s%s\", a2, a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"Family%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"Familie%s\", a2);\nsub_401ABB(a1, byte_419AC0);\nsnprintf(byte_419AC0, 0x80uLL, \"Familia%s\", a2);\nreturn sub_401ABB(a1, byte_419AC0);\n}\n\n\n\nQ:[a1,a2,sub_404B33,sub_401ABB,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fhout', 'a2': 'essid', 'sub_404B33': 'writeessidadd', 'sub_401ABB': 'writepsk'}"}
hname_2rfc1035_starwhitis
15c846e0bfd0fc6adae1a376838611ffa95b90e220a47eae1ecb0eede913846d
samboy
MaraDNS
NA
int hname_2rfc1035_starwhitis(js_string *hostname, int starwhitis) { int counter,seen; unsigned char *raw, *towrite; int ret = -2; /* Sanity checks */ if(js_has_sanity(hostname) == JS_ERROR) return JS_ERROR; if(hostname->unit_size != 1) return JS_ERROR; if(hostname->unit_count < 1) return JS_ERROR; /* Store the length of the first part of the hostname */ raw = towrite = hostname->string; /* Get the query type from the first letter */ switch(*raw) { case 'A': ret = RR_A; break; case 'N': ret = RR_NS; break; case 'C': ret = RR_CNAME; break; case 'S': ret = RR_SOA; break; case 'P': ret = RR_PTR; break; case '@': ret = RR_MX; break; case 'T': ret = RR_TXT; break; case 'U': ret = -3; break; case 'Z': ret = RR_ANY; break; default: return -2; } /* Handle the trivial case of an input in the form "A." */ if(*(raw + 1) == '.' && hostname->unit_count == 2) { *raw = 0; hostname->unit_count = 1; return ret; } /* Also handle the case of the hostname being *just* a star */ if(*(raw + 1) == '*' && hostname->unit_count == 2 && starwhitis == 1) { *raw = '_'; hostname->unit_count = 1; return ret; } /* Convert the dots in to hostname delimiters */ seen = counter = 0; while(counter < 256 && counter < hostname->unit_count) { counter++; if(counter > hostname->unit_count) return JS_ERROR; if(*(raw + counter) == '.') { if(seen < 1 || seen > 63) return JS_ERROR; *towrite = seen; towrite = raw + counter; seen = 0; } else seen++; if(counter == hostname->unit_count - 1) /* The final '.' */ break; } /* That last '0' for the dot after .com */ if(counter < 256 && *(raw + counter) == '.') { *(raw + counter) = 0; /* We need to deal with trailing * characters */ } else if(counter < 256 && counter > 1 && *(raw + counter) == '*' && hostname->unit_count > 1 && starwhitis == 1) { *(raw + counter - 1) = '_'; hostname->unit_count--; } else { return JS_ERROR; } return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406591", "function_addr": 4220305, "binary_name": "15c846e0bfd0fc6adae1a376838611ffa95b90e220a47eae1ecb0eede913846d.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 [rbp+var_14], 0FFFFFFFEh"], [6, "mov rax, [rbp+var_28]"], [7, "mov rdi, rax"], [8, "call sub_401789"], [9, "cmp eax, 0FFFFFFFFh"], [10, "jnz short loc_4065C2"], [11, "mov eax, 0FFFFFFFFh"], [12, "jmp locret_40682D"], [13, "mov rax, [rbp+var_28]"], [14, "mov eax, [rax+8]"], [15, "cmp eax, 1"], [16, "jz short loc_4065D8"], [17, "mov eax, 0FFFFFFFFh"], [18, "jmp locret_40682D"], [19, "mov rax, [rbp+var_28]"], [20, "mov eax, [rax+0Ch]"], [21, "test eax, eax"], [22, "jnz short loc_4065ED"], [23, "mov eax, 0FFFFFFFFh"], [24, "jmp locret_40682D"], [25, "mov rax, [rbp+var_28]"], [26, "mov rax, [rax]"], [27, "mov [rbp+var_10], rax"], [28, "mov rax, [rbp+var_10]"], [29, "mov [rbp+var_20], rax"], [30, "mov rax, [rbp+var_20]"], [31, "movzx eax, byte ptr [rax]"], [32, "movzx eax, al"], [33, "sub eax, 40h "], [34, "cmp eax, 1Ah"], [35, "ja short def_40661C"], [36, "mov eax, eax"], [37, "mov rax, ds:jpt_40661C[rax*8]"], [38, "jmp rax"], [39, "mov [rbp+var_14], 1"], [40, "jmp short loc_406679"], [41, "mov [rbp+var_14], 2"], [42, "jmp short loc_406679"], [43, "mov [rbp+var_14], 5"], [44, "jmp short loc_406679"], [45, "mov [rbp+var_14], 6"], [46, "jmp short loc_406679"], [47, "mov [rbp+var_14], 0Ch"], [48, "jmp short loc_406679"], [49, "mov [rbp+var_14], 0Fh"], [50, "jmp short loc_406679"], [51, "mov [rbp+var_14], 10h"], [52, "jmp short loc_406679"], [53, "mov [rbp+var_14], 0FFFFFFFDh"], [54, "jmp short loc_406679"], [55, "mov [rbp+var_14], 0FFh"], [56, "jmp short loc_406679"], [57, "mov eax, 0FFFFFFFEh"], [58, "jmp locret_40682D"], [59, "mov rax, [rbp+var_20]"], [60, "add rax, 1"], [61, "movzx eax, byte ptr [rax]"], [62, "cmp al, 2Eh "], [63, "jnz short loc_4066AE"], [64, "mov rax, [rbp+var_28]"], [65, "mov eax, [rax+0Ch]"], [66, "cmp eax, 2"], [67, "jnz short loc_4066AE"], [68, "mov rax, [rbp+var_20]"], [69, "mov byte ptr [rax], 0"], [70, "mov rax, [rbp+var_28]"], [71, "mov dword ptr [rax+0Ch], 1"], [72, "mov eax, [rbp+var_14]"], [73, "jmp locret_40682D"], [74, "mov rax, [rbp+var_20]"], [75, "add rax, 1"], [76, "movzx eax, byte ptr [rax]"], [77, "cmp al, 2Ah "], [78, "jnz short loc_4066E9"], [79, "mov rax, [rbp+var_28]"], [80, "mov eax, [rax+0Ch]"], [81, "cmp eax, 2"], [82, "jnz short loc_4066E9"], [83, "cmp [rbp+var_2C], 1"], [84, "jnz short loc_4066E9"], [85, "mov rax, [rbp+var_20]"], [86, "mov byte ptr [rax], 5Fh "], [87, "mov rax, [rbp+var_28]"], [88, "mov dword ptr [rax+0Ch], 1"], [89, "mov eax, [rbp+var_14]"], [90, "jmp locret_40682D"], [91, "mov [rbp+var_4], 0"], [92, "mov eax, [rbp+var_4]"], [93, "mov [rbp+var_8], eax"], [94, "jmp loc_40677B"], [95, "add [rbp+var_4], 1"], [96, "mov rax, [rbp+var_28]"], [97, "mov edx, [rax+0Ch]"], [98, "mov eax, [rbp+var_4]"], [99, "cmp edx, eax"], [100, "jnb short loc_406717"], [101, "mov eax, 0FFFFFFFFh"], [102, "jmp locret_40682D"], [103, "mov eax, [rbp+var_4]"], [104, "movsxd rdx, eax"], [105, "mov rax, [rbp+var_20]"], [106, "add rax, rdx"], [107, "movzx eax, byte ptr [rax]"], [108, "cmp al, 2Eh "], [109, "jnz short loc_406766"], [110, "cmp [rbp+var_8], 0"], [111, "jle short loc_406737"], [112, "cmp [rbp+var_8], 3Fh "], [113, "jle short loc_406741"], [114, "mov eax, 0FFFFFFFFh"], [115, "jmp locret_40682D"], [116, "mov eax, [rbp+var_8]"], [117, "mov edx, eax"], [118, "mov rax, [rbp+var_10]"], [119, "mov [rax], dl"], [120, "mov eax, [rbp+var_4]"], [121, "movsxd rdx, eax"], [122, "mov rax, [rbp+var_20]"], [123, "add rax, rdx"], [124, "mov [rbp+var_10], rax"], [125, "mov [rbp+var_8], 0"], [126, "jmp short loc_40676A"], [127, "add [rbp+var_8], 1"], [128, "mov rax, [rbp+var_28]"], [129, "mov eax, [rax+0Ch]"], [130, "lea edx, [rax-1]"], [131, "mov eax, [rbp+var_4]"], [132, "cmp edx, eax"], [133, "jz short loc_406798"], [134, "cmp [rbp+var_4], 0FFh"], [135, "jg short loc_406799"], [136, "mov rax, [rbp+var_28]"], [137, "mov edx, [rax+0Ch]"], [138, "mov eax, [rbp+var_4]"], [139, "cmp edx, eax"], [140, "ja loc_4066FB"], [141, "jmp short loc_406799"], [142, "nop"], [143, "cmp [rbp+var_4], 0FFh"], [144, "jg short loc_4067C8"], [145, "mov eax, [rbp+var_4]"], [146, "movsxd rdx, eax"], [147, "mov rax, [rbp+var_20]"], [148, "add rax, rdx"], [149, "movzx eax, byte ptr [rax]"], [150, "cmp al, 2Eh "], [151, "jnz short loc_4067C8"], [152, "mov eax, [rbp+var_4]"], [153, "movsxd rdx, eax"], [154, "mov rax, [rbp+var_20]"], [155, "add rax, rdx"], [156, "mov byte ptr [rax], 0"], [157, "jmp short loc_40682A"], [158, "cmp [rbp+var_4], 0FFh"], [159, "jg short loc_406823"], [160, "cmp [rbp+var_4], 1"], [161, "jle short loc_406823"], [162, "mov eax, [rbp+var_4]"], [163, "movsxd rdx, eax"], [164, "mov rax, [rbp+var_20]"], [165, "add rax, rdx"], [166, "movzx eax, byte ptr [rax]"], [167, "cmp al, 2Ah "], [168, "jnz short loc_406823"], [169, "mov rax, [rbp+var_28]"], [170, "mov eax, [rax+0Ch]"], [171, "cmp eax, 1"], [172, "jbe short loc_406823"], [173, "cmp [rbp+var_2C], 1"], [174, "jnz short loc_406823"], [175, "mov eax, [rbp+var_4]"], [176, "cdqe"], [177, "lea rdx, [rax-1]"], [178, "mov rax, [rbp+var_20]"], [179, "add rax, rdx"], [180, "mov byte ptr [rax], 5Fh "], [181, "mov rax, [rbp+var_28]"], [182, "mov eax, [rax+0Ch]"], [183, "lea edx, [rax-1]"], [184, "mov rax, [rbp+var_28]"], [185, "mov [rax+0Ch], edx"], [186, "jmp short loc_40682A"], [187, "mov eax, 0FFFFFFFFh"], [188, "jmp short locret_40682D"], [189, "mov eax, [rbp+var_14]"], [190, "leave"], [191, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 8], [10, 9], [13, 3], [14, 13], [15, 14], [16, 15], [19, 3], [20, 19], [21, 20], [22, 21], [25, 3], [26, 25], [27, 26], [28, 27], [29, 28], [30, 29], [31, 30], [32, 31], [33, 32], [34, 33], [35, 34], [36, 33], [38, 37], [59, 29], [60, 59], [61, 60], [62, 61], [63, 62], [64, 3], [65, 64], [66, 65], [67, 66], [68, 29], [69, 68], [70, 3], [71, 70], [72, 43], [72, 45], [72, 47], [72, 49], [72, 51], [72, 53], [72, 55], [72, 39], [72, 41], [74, 29], [75, 74], [76, 75], [77, 76], [78, 77], [79, 3], [80, 79], [81, 80], [82, 81], [83, 4], [84, 83], [85, 29], [86, 85], [87, 3], [88, 87], [89, 43], [89, 45], [89, 47], [89, 49], [89, 51], [89, 53], [89, 39], [89, 55], [89, 41], [92, 91], [93, 92], [95, 95], [95, 91], [96, 3], [97, 119], [97, 96], [98, 95], [99, 97], [99, 98], [100, 99], [103, 95], [104, 103], [105, 29], [106, 104], [106, 105], [107, 106], [107, 119], [108, 107], [109, 108], [110, 93], [110, 125], [110, 127], [111, 110], [112, 93], [112, 125], [112, 127], [113, 112], [116, 125], [116, 127], [116, 93], [117, 116], [118, 124], [118, 27], [119, 118], [119, 117], [120, 95], [121, 120], [122, 29], [123, 121], [123, 122], [124, 123], [127, 125], [127, 127], [127, 93], [128, 3], [129, 128], [129, 119], [130, 119], [130, 121], [130, 129], [130, 104], [131, 95], [132, 130], [132, 131], [133, 132], [134, 91], [134, 95], [135, 134], [136, 3], [137, 119], [137, 136], [138, 91], [138, 95], [139, 137], [139, 138], [140, 139], [143, 91], [143, 95], [144, 143], [145, 91], [145, 95], [146, 145], [147, 29], [148, 147], [148, 146], [149, 119], [149, 148], [150, 149], [151, 150], [152, 91], [152, 95], [153, 152], [154, 29], [155, 153], [155, 154], [156, 155], [158, 91], [158, 95], [159, 158], [160, 91], [160, 95], [161, 160], [162, 91], [162, 95], [163, 162], [164, 29], [165, 163], [165, 164], [166, 165], [166, 119], [167, 166], [168, 167], [169, 3], [170, 169], [170, 119], [171, 170], [172, 171], [173, 4], [174, 173], [175, 91], [175, 95], [177, 119], [177, 185], [177, 180], [177, 175], [177, 163], [178, 29], [179, 178], [179, 177], [180, 179], [181, 3], [182, 181], [182, 180], [183, 180], [183, 182], [183, 177], [184, 3], [185, 184], [185, 183], [189, 45], [189, 47], [189, 49], [189, 51], [189, 53], [189, 55], [189, 39], [189, 41], [189, 43], [191, 11], [191, 187], [191, 189], [191, 72], [191, 17], [191, 101], [191, 57], [191, 23], [191, 114], [191, 89]]}
{"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/15c846e0bfd0fc6adae1a376838611ffa95b90e220a47eae1ecb0eede913846d_15c846e0bfd0fc6adae1a376838611ffa95b90e220a47eae1ecb0eede913846d.jsonl.gz", "strip_func_name": "sub_406591", "query": "\n\n\n__int64 __fastcall sub_406591(_DWORD *a1, int a2)\n{\n_BYTE *v3; // [rsp+10h] [rbp-20h]\nunsigned int v4; // [rsp+1Ch] [rbp-14h]\n_BYTE *v5; // [rsp+20h] [rbp-10h]\nint v6; // [rsp+28h] [rbp-8h]\nint v7; // [rsp+2Ch] [rbp-4h]\n\nif ( (unsigned int)sub_401789(a1) == -1 )\nreturn 0xFFFFFFFFLL;\nif ( a1[2] != 1 )\nreturn 0xFFFFFFFFLL;\nif ( !a1[3] )\nreturn 0xFFFFFFFFLL;\nv5 = *(_BYTE **)a1;\nv3 = *(_BYTE **)a1;\nswitch ( **(_BYTE **)a1 )\n{\ncase '@':\nv4 = 15;\ngoto LABEL_18;\ncase 'A':\nv4 = 1;\ngoto LABEL_18;\ncase 'C':\nv4 = 5;\ngoto LABEL_18;\ncase 'N':\nv4 = 2;\ngoto LABEL_18;\ncase 'P':\nv4 = 12;\ngoto LABEL_18;\ncase 'S':\nv4 = 6;\ngoto LABEL_18;\ncase 'T':\nv4 = 16;\ngoto LABEL_18;\ncase 'U':\nv4 = -3;\ngoto LABEL_18;\ncase 'Z':\nv4 = 255;\nLABEL_18:\nif ( v3[1] == 46 && a1[3] == 2 )\n{\n*v3 = 0;\na1[3] = 1;\nreturn v4;\n}\nif ( v3[1] == 42 && a1[3] == 2 && a2 == 1 )\n{\n*v3 = 95;\na1[3] = 1;\nreturn v4;\n}\nv7 = 0;\nv6 = 0;\nbreak;\ndefault:\nreturn 4294967294LL;\n}\ndo\n{\nif ( v7 > 255 || a1[3] <= (unsigned int)v7 )\nbreak;\nif ( a1[3] < (unsigned int)++v7 )\nreturn 0xFFFFFFFFLL;\nif ( v3[v7] == 46 )\n{\nif ( v6 <= 0 || v6 > 63 )\nreturn 0xFFFFFFFFLL;\n*v5 = v6;\nv5 = &v3[v7];\nv6 = 0;\n}\nelse\n{\n++v6;\n}\n}\nwhile ( a1[3] - 1 != v7 );\nif ( v7 <= 255 && v3[v7] == 46 )\n{\nv3[v7] = 0;\n}\nelse\n{\nif ( v7 > 255 || v7 <= 1 || v3[v7] != 42 || a1[3] <= 1u || a2 != 1 )\nreturn 0xFFFFFFFFLL;\nv3[v7 - 1] = 95;\n--a1[3];\n}\nreturn v4;\n}\n\n\n\nQ:[a1,a2,v3,v5,v6,v7,sub_406591,sub_401789,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'hostname', 'a2': 'starwhitis', 'v3': 'raw', 'v5': 'towrite', 'v6': 'seen', 'v7': 'counter', 'sub_406591': 'hname_2rfc1035_starwhitis', 'sub_401789': 'js_has_sanity'}"}
tchdbloadmeta
9895acc23197a78b016e2ef6f09316b4db6f035f5b78cc4137e999b9fe3548fe
HewlettPackard
nvthreads
NA
static void tchdbloadmeta(TCHDB *hdb, const char *hbuf){ memcpy(&(hdb->type), hbuf + HDBTYPEOFF, sizeof(hdb->type)); memcpy(&(hdb->flags), hbuf + HDBFLAGSOFF, sizeof(hdb->flags)); memcpy(&(hdb->apow), hbuf + HDBAPOWOFF, sizeof(hdb->apow)); memcpy(&(hdb->fpow), hbuf + HDBFPOWOFF, sizeof(hdb->fpow)); memcpy(&(hdb->opts), hbuf + HDBOPTSOFF, sizeof(hdb->opts)); uint64_t llnum; memcpy(&llnum, hbuf + HDBBNUMOFF, sizeof(llnum)); hdb->bnum = TCITOHLL(llnum); memcpy(&llnum, hbuf + HDBRNUMOFF, sizeof(llnum)); hdb->rnum = TCITOHLL(llnum); memcpy(&llnum, hbuf + HDBFSIZOFF, sizeof(llnum)); hdb->fsiz = TCITOHLL(llnum); memcpy(&llnum, hbuf + HDBFRECOFF, sizeof(llnum)); hdb->frec = TCITOHLL(llnum); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44587E", "function_addr": 4479102, "binary_name": "9895acc23197a78b016e2ef6f09316b4db6f035f5b78cc4137e999b9fe3548fe.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_20], rsi"], [4, "mov rax, [rbp+var_20]"], [5, "add rax, 20h "], [6, "mov rdx, [rbp+var_18]"], [7, "add rdx, 30h "], [8, "movzx eax, byte ptr [rax]"], [9, "mov [rdx], al"], [10, "mov rax, [rbp+var_20]"], [11, "add rax, 21h "], [12, "mov rdx, [rbp+var_18]"], [13, "add rdx, 31h "], [14, "movzx eax, byte ptr [rax]"], [15, "mov [rdx], al"], [16, "mov rax, [rbp+var_20]"], [17, "add rax, 22h "], [18, "mov rdx, [rbp+var_18]"], [19, "add rdx, 40h "], [20, "movzx eax, byte ptr [rax]"], [21, "mov [rdx], al"], [22, "mov rax, [rbp+var_20]"], [23, "add rax, 23h "], [24, "mov rdx, [rbp+var_18]"], [25, "add rdx, 41h "], [26, "movzx eax, byte ptr [rax]"], [27, "mov [rdx], al"], [28, "mov rax, [rbp+var_20]"], [29, "add rax, 24h "], [30, "mov rdx, [rbp+var_18]"], [31, "add rdx, 42h "], [32, "movzx eax, byte ptr [rax]"], [33, "mov [rdx], al"], [34, "mov rax, [rbp+var_20]"], [35, "add rax, 28h "], [36, "mov rax, [rax]"], [37, "mov [rbp+var_8], rax"], [38, "mov rdx, [rbp+var_8]"], [39, "mov rax, [rbp+var_18]"], [40, "mov [rax+38h], rdx"], [41, "mov rax, [rbp+var_20]"], [42, "add rax, 30h "], [43, "mov rax, [rax]"], [44, "mov [rbp+var_8], rax"], [45, "mov rdx, [rbp+var_8]"], [46, "mov rax, [rbp+var_18]"], [47, "mov [rax+58h], rdx"], [48, "mov rax, [rbp+var_20]"], [49, "add rax, 38h "], [50, "mov rax, [rax]"], [51, "mov [rbp+var_8], rax"], [52, "mov rdx, [rbp+var_8]"], [53, "mov rax, [rbp+var_18]"], [54, "mov [rax+60h], rdx"], [55, "mov rax, [rbp+var_20]"], [56, "add rax, 40h "], [57, "mov rax, [rax]"], [58, "mov [rbp+var_8], rax"], [59, "mov rdx, [rbp+var_8]"], [60, "mov rax, [rbp+var_18]"], [61, "mov [rax+68h], rdx"], [62, "nop"], [63, "pop rbp"], [64, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 2], [7, 6], [8, 5], [9, 8], [9, 7], [10, 3], [11, 10], [12, 2], [13, 12], [14, 9], [14, 11], [15, 14], [15, 13], [16, 3], [17, 16], [18, 2], [19, 18], [20, 15], [20, 17], [21, 20], [21, 19], [22, 3], [23, 22], [24, 2], [25, 24], [26, 21], [26, 23], [27, 26], [27, 25], [28, 3], [29, 28], [30, 2], [31, 30], [32, 27], [32, 29], [33, 31], [33, 32], [34, 3], [35, 34], [36, 33], [36, 35], [37, 36], [38, 37], [39, 2], [40, 38], [40, 39], [41, 3], [42, 41], [43, 40], [43, 42], [44, 43], [45, 44], [46, 2], [47, 45], [47, 46], [48, 3], [49, 48], [50, 47], [50, 49], [51, 50], [52, 51], [53, 2], [54, 53], [54, 52], [55, 3], [56, 55], [57, 54], [57, 56], [58, 57], [59, 58], [60, 2], [61, 60], [61, 59], [63, 0], [64, 60]]}
{"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/9895acc23197a78b016e2ef6f09316b4db6f035f5b78cc4137e999b9fe3548fe_9895acc23197a78b016e2ef6f09316b4db6f035f5b78cc4137e999b9fe3548fe.jsonl.gz", "strip_func_name": "sub_44587E", "query": "\n\n\n__int64 __fastcall sub_44587E(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\n\n*(_BYTE *)(a1 + 48) = *(_BYTE *)(a2 + 32);\n*(_BYTE *)(a1 + 49) = *(_BYTE *)(a2 + 33);\n*(_BYTE *)(a1 + 64) = *(_BYTE *)(a2 + 34);\n*(_BYTE *)(a1 + 65) = *(_BYTE *)(a2 + 35);\n*(_BYTE *)(a1 + 66) = *(_BYTE *)(a2 + 36);\n*(_QWORD *)(a1 + 56) = *(_QWORD *)(a2 + 40);\n*(_QWORD *)(a1 + 88) = *(_QWORD *)(a2 + 48);\n*(_QWORD *)(a1 + 96) = *(_QWORD *)(a2 + 56);\nresult = a1;\n*(_QWORD *)(a1 + 104) = *(_QWORD *)(a2 + 64);\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_44587E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'hdb', 'a2': 'hbuf', 'sub_44587E': 'tchdbloadmeta'}"}
appender_exists
1e9a53676c4ecc031310c17db9c277cb0fcaa7830cd8049d6cd2b3f0176f97f9
mupfdev
eszFW
NA
static bool appender_exists(plog_id_t id) { return (id < PLOG_MAX_APPENDERS && NULL != gp_appenders[id].p_appender); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401386", "function_addr": 4199302, "binary_name": "1e9a53676c4ecc031310c17db9c277cb0fcaa7830cd8049d6cd2b3f0176f97f9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "cmp [rbp+var_8], 0Fh"], [4, "ja short loc_4013B2"], [5, "mov rax, [rbp+var_8]"], [6, "shl rax, 6"], [7, "add rax, 405140h"], [8, "mov rax, [rax]"], [9, "test rax, rax"], [10, "jz short loc_4013B2"], [11, "mov eax, 1"], [12, "jmp short loc_4013B7"], [13, "mov eax, 0"], [14, "and eax, 1"], [15, "pop rbp"], [16, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [14, 11], [14, 13], [15, 0], [16, 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/1e9a53676c4ecc031310c17db9c277cb0fcaa7830cd8049d6cd2b3f0176f97f9_1e9a53676c4ecc031310c17db9c277cb0fcaa7830cd8049d6cd2b3f0176f97f9.jsonl.gz", "strip_func_name": "sub_401386", "query": "\n\n\n_BOOL8 __fastcall sub_401386(unsigned __int64 a1)\n{\nreturn a1 <= 0xF && *((_QWORD *)&unk_405140 + 8 * a1);\n}\n\n\n\nQ:[a1,sub_401386,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'id', 'sub_401386': 'appender_exists'}"}
main
217bdc3f5ba91bf2aae0cae16be9f4667e8c410005fd83ad07a51e517482cf0f
rustyrussell
stats
NA
int main(int argc, char *argv[]) { struct object *objs; size_t i, j, num, deleted; struct timeval start, stop; struct htable_obj ht; bool make_dumb = false; if (argv[1] && strcmp(argv[1], "--dumb") == 0) { argv++; make_dumb = true; } num = argv[1] ? atoi(argv[1]) : 1000000; objs = calloc(num, sizeof(objs[0])); for (i = 0; i < num; i++) { objs[i].key = i; objs[i].self = &objs[i]; } htable_obj_init(&ht); printf("Initial insert: "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i++) htable_obj_add(&ht, objs[i].self); gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Details: hash size %u, mask bits %u, perfect %.0f%%\n", 1U << ht.raw.bits, popcount(ht.raw.common_mask), perfect(&ht.raw) * 100.0 / ht.raw.elems); if (make_dumb) { /* Screw with mask, to hobble us. */ update_common(&ht.raw, (void *)~ht.raw.common_bits); printf("Details: DUMB MODE: mask bits %u\n", popcount(ht.raw.common_mask)); } printf("Initial lookup (match): "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i++) if (htable_obj_get(&ht, &i)->self != objs[i].self) abort(); gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Initial lookup (miss): "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i++) { unsigned int n = i + num; if (htable_obj_get(&ht, &n)) abort(); } gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); /* Lookups in order are very cache-friendly for judy; try random */ printf("Initial lookup (random): "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0, j = 0; i < num; i++, j = (j + 10007) % num) if (htable_obj_get(&ht, &j)->self != &objs[j]) abort(); gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); hashcount = 0; printf("Initial delete all: "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i++) if (!htable_obj_del(&ht, objs[i].self)) abort(); gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Details: rehashes %zu\n", hashcount); printf("Initial re-inserting: "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i++) htable_obj_add(&ht, objs[i].self); gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); hashcount = 0; printf("Deleting first half: "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i+=2) if (!htable_obj_del(&ht, objs[i].self)) abort(); gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Details: rehashes %zu, delete markers %zu\n", hashcount, count_deleted(&ht.raw)); printf("Adding (a different) half: "); fflush(stdout); for (i = 0; i < num; i+=2) objs[i].key = num+i; gettimeofday(&start, NULL); for (i = 0; i < num; i+=2) htable_obj_add(&ht, objs[i].self); gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Details: delete markers %zu, perfect %.0f%%\n", count_deleted(&ht.raw), perfect(&ht.raw) * 100.0 / ht.raw.elems); printf("Lookup after half-change (match): "); fflush(stdout); gettimeofday(&start, NULL); for (i = 1; i < num; i+=2) if (htable_obj_get(&ht, &i)->self != objs[i].self) abort(); for (i = 0; i < num; i+=2) { unsigned int n = i + num; if (htable_obj_get(&ht, &n)->self != objs[i].self) abort(); } gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Lookup after half-change (miss): "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i++) { unsigned int n = i + num * 2; if (htable_obj_get(&ht, &n)) abort(); } gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); /* Hashtables with delete markers can fill with markers over time. * so do some changes to see how it operates in long-term. */ for (i = 0; i < 5; i++) { if (i == 0) { /* We don't measure this: jmap is different. */ printf("Details: initial churn\n"); } else { printf("Churning %s time: ", i == 1 ? "second" : i == 2 ? "third" : i == 3 ? "fourth" : "fifth"); fflush(stdout); } gettimeofday(&start, NULL); for (j = 0; j < num; j++) { if (!htable_obj_del(&ht, &objs[j])) abort(); objs[j].key = num*i+j; if (!htable_obj_add(&ht, &objs[j])) abort(); } gettimeofday(&stop, NULL); if (i != 0) printf(" %zu ns\n", normalize(&start, &stop, num)); } /* Spread out the keys more to try to make it harder. */ printf("Details: reinserting with spread\n"); for (i = 0; i < num; i++) { if (!htable_obj_del(&ht, objs[i].self)) abort(); objs[i].key = num * 5 + i * 9; if (!htable_obj_add(&ht, objs[i].self)) abort(); } printf("Details: delete markers %zu, perfect %.0f%%\n", count_deleted(&ht.raw), perfect(&ht.raw) * 100.0 / ht.raw.elems); i = worst_run(&ht.raw, &deleted); printf("Details: worst run %zu (%zu deleted)\n", i, deleted); printf("Lookup after churn & spread (match): "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i++) { unsigned int n = num * 5 + i * 9; if (htable_obj_get(&ht, &n)->self != objs[i].self) abort(); } gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Lookup after churn & spread (miss): "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i++) { unsigned int n = num * (5 + 9) + i * 9; if (htable_obj_get(&ht, &n)) abort(); } gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Lookup after churn & spread (random): "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0, j = 0; i < num; i++, j = (j + 10007) % num) { unsigned int n = num * 5 + j * 9; if (htable_obj_get(&ht, &n)->self != &objs[j]) abort(); } gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); hashcount = 0; printf("Deleting half after churn & spread: "); fflush(stdout); gettimeofday(&start, NULL); for (i = 0; i < num; i+=2) if (!htable_obj_del(&ht, objs[i].self)) abort(); gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Adding (a different) half after churn & spread: "); fflush(stdout); for (i = 0; i < num; i+=2) objs[i].key = num*6+i*9; gettimeofday(&start, NULL); for (i = 0; i < num; i+=2) htable_obj_add(&ht, objs[i].self); gettimeofday(&stop, NULL); printf(" %zu ns\n", normalize(&start, &stop, num)); printf("Details: delete markers %zu, perfect %.0f%%\n", count_deleted(&ht.raw), perfect(&ht.raw) * 100.0 / ht.raw.elems); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4203590, "binary_name": "217bdc3f5ba91bf2aae0cae16be9f4667e8c410005fd83ad07a51e517482cf0f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 0E8h"], [4, "mov [rbp+var_E4], edi"], [5, "mov [rbp+var_F0], rsi"], [6, "mov [rbp+var_11], 0"], [7, "mov rax, [rbp+var_F0]"], [8, "add rax, 8"], [9, "mov rax, [rax]"], [10, "test rax, rax"], [11, "jz short loc_4024A1"], [12, "mov rax, [rbp+var_F0]"], [13, "add rax, 8"], [14, "mov rax, [rax]"], [15, "mov esi, offset s2"], [16, "mov rdi, rax"], [17, "call _strcmp"], [18, "test eax, eax"], [19, "jnz short loc_4024A1"], [20, "add [rbp+var_F0], 8"], [21, "mov [rbp+var_11], 1"], [22, "mov rax, [rbp+var_F0]"], [23, "add rax, 8"], [24, "mov rax, [rax]"], [25, "test rax, rax"], [26, "jz short loc_4024CE"], [27, "mov rax, [rbp+var_F0]"], [28, "add rax, 8"], [29, "mov rax, [rax]"], [30, "mov rdi, rax"], [31, "call _atoi"], [32, "cdqe"], [33, "jmp short loc_4024D3"], [34, "mov eax, 0F4240h"], [35, "mov [rbp+nmemb], rax"], [36, "mov rax, [rbp+nmemb]"], [37, "mov esi, 10h"], [38, "mov rdi, rax"], [39, "call _calloc"], [40, "mov [rbp+var_28], rax"], [41, "mov [rbp+var_30], 0"], [42, "jmp short loc_402542"], [43, "mov rdx, [rbp+var_30]"], [44, "mov rax, [rbp+var_30]"], [45, "shl rax, 4"], [46, "mov rcx, rax"], [47, "mov rax, [rbp+var_28]"], [48, "add rax, rcx"], [49, "mov [rax], edx"], [50, "mov rax, [rbp+var_30]"], [51, "shl rax, 4"], [52, "mov rcx, rax"], [53, "mov rax, [rbp+var_30]"], [54, "shl rax, 4"], [55, "mov rdx, rax"], [56, "mov rax, [rbp+var_28]"], [57, "add rax, rdx"], [58, "mov rdx, [rbp+var_28]"], [59, "add rdx, rcx"], [60, "mov [rax+8], rdx"], [61, "mov rax, [rbp+var_30]"], [62, "add rax, 1"], [63, "mov [rbp+var_30], rax"], [64, "mov rax, [rbp+var_30]"], [65, "cmp [rbp+nmemb], rax"], [66, "ja short loc_4024F6"], [67, "lea rax, [rbp+var_C0]"], [68, "mov rdi, rax"], [69, "call sub_40201A"], [70, "mov edi, offset format"], [71, "mov eax, 0"], [72, "call _printf"], [73, "mov rax, cs:stdout"], [74, "mov rdi, rax"], [75, "call _fflush"], [76, "lea rax, [rbp+tv]"], [77, "mov esi, 0"], [78, "mov rdi, rax"], [79, "call _gettimeofday"], [80, "mov [rbp+var_30], 0"], [81, "jmp short loc_4025C8"], [82, "mov rax, [rbp+var_30]"], [83, "shl rax, 4"], [84, "mov rdx, rax"], [85, "mov rax, [rbp+var_28]"], [86, "add rax, rdx"], [87, "mov rdx, [rax+8]"], [88, "lea rax, [rbp+var_C0]"], [89, "mov rsi, rdx"], [90, "mov rdi, rax"], [91, "call sub_40203F"], [92, "mov rax, [rbp+var_30]"], [93, "add rax, 1"], [94, "mov [rbp+var_30], rax"], [95, "mov rax, [rbp+var_30]"], [96, "cmp [rbp+nmemb], rax"], [97, "ja short loc_402594"], [98, "lea rax, [rbp+var_60]"], [99, "mov esi, 0"], [100, "mov rdi, rax"], [101, "call _gettimeofday"], [102, "mov rax, [rbp+nmemb]"], [103, "mov edx, eax"], [104, "lea rcx, [rbp+var_60]"], [105, "lea rax, [rbp+tv]"], [106, "mov rsi, rcx"], [107, "mov rdi, rax"], [108, "call sub_402288"], [109, "mov rsi, rax"], [110, "mov edi, offset aZuNs"], [111, "mov eax, 0"], [112, "call _printf"], [113, "lea rax, [rbp+var_C0]"], [114, "mov rdi, rax"], [115, "call sub_402107"], [116, "test rax, rax"], [117, "js short loc_40262D"], [118, "pxor xmm0, xmm0"], [119, "cvtsi2sd xmm0, rax"], [120, "jmp short loc_402646"], [121, "mov rdx, rax"], [122, "shr rdx, 1"], [123, "and eax, 1"], [124, "or rdx, rax"], [125, "pxor xmm0, xmm0"], [126, "cvtsi2sd xmm0, rdx"], [127, "addsd xmm0, xmm0"], [128, "movsd xmm1, cs:qword_405438"], [129, "mulsd xmm1, xmm0"], [130, "mov rax, [rbp+var_A8]"], [131, "test rax, rax"], [132, "js short loc_402669"], [133, "pxor xmm0, xmm0"], [134, "cvtsi2sd xmm0, rax"], [135, "jmp short loc_402682"], [136, "mov rdx, rax"], [137, "shr rdx, 1"], [138, "and eax, 1"], [139, "or rdx, rax"], [140, "pxor xmm0, xmm0"], [141, "cvtsi2sd xmm0, rdx"], [142, "addsd xmm0, xmm0"], [143, "divsd xmm1, xmm0"], [144, "movq rbx, xmm1"], [145, "mov rax, [rbp+var_88]"], [146, "mov rdi, rax"], [147, "call sub_4020F0"], [148, "mov edx, eax"], [149, "mov eax, [rbp+var_B0]"], [150, "mov esi, 1"], [151, "mov ecx, eax"], [152, "shl esi, cl"], [153, "mov eax, esi"], [154, "movq xmm0, rbx"], [155, "mov esi, eax"], [156, "mov edi, offset aDetailsHashSiz"], [157, "mov eax, 1"], [158, "call _printf"], [159, "cmp [rbp+var_11], 0"], [160, "jz short loc_402705"], [161, "mov rax, [rbp+var_80]"], [162, "not rax"], [163, "mov rdx, rax"], [164, "lea rax, [rbp+var_C0]"], [165, "mov rsi, rdx"], [166, "mov rdi, rax"], [167, "call sub_401B89"], [168, "mov rax, [rbp+var_88]"], [169, "mov rdi, rax"], [170, "call sub_4020F0"], [171, "mov esi, eax"], [172, "mov edi, offset aDetailsDumbMod"], [173, "mov eax, 0"], [174, "call _printf"], [175, "mov edi, offset aInitialLookupM"], [176, "mov eax, 0"], [177, "call _printf"], [178, "mov rax, cs:stdout"], [179, "mov rdi, rax"], [180, "call _fflush"], [181, "lea rax, [rbp+tv]"], [182, "mov esi, 0"], [183, "mov rdi, rax"], [184, "call _gettimeofday"], [185, "mov [rbp+var_30], 0"], [186, "jmp short loc_402784"], [187, "lea rdx, [rbp+var_30]"], [188, "lea rax, [rbp+var_C0]"], [189, "mov rsi, rdx"], [190, "mov rdi, rax"], [191, "call sub_4020B7"], [192, "mov rdx, [rax+8]"], [193, "mov rax, [rbp+var_30]"], [194, "shl rax, 4"], [195, "mov rcx, rax"], [196, "mov rax, [rbp+var_28]"], [197, "add rax, rcx"], [198, "mov rax, [rax+8]"], [199, "cmp rdx, rax"], [200, "jz short loc_402778"], [201, "call _abort"], [202, "mov rax, [rbp+var_30]"], [203, "add rax, 1"], [204, "mov [rbp+var_30], rax"], [205, "mov rax, [rbp+var_30]"], [206, "cmp [rbp+nmemb], rax"], [207, "ja short loc_40273E"], [208, "lea rax, [rbp+var_60]"], [209, "mov esi, 0"], [210, "mov rdi, rax"], [211, "call _gettimeofday"], [212, "mov rax, [rbp+nmemb]"], [213, "mov edx, eax"], [214, "lea rcx, [rbp+var_60]"], [215, "lea rax, [rbp+tv]"], [216, "mov rsi, rcx"], [217, "mov rdi, rax"], [218, "call sub_402288"], [219, "mov rsi, rax"], [220, "mov edi, offset aZuNs"], [221, "mov eax, 0"], [222, "call _printf"], [223, "mov edi, offset aInitialLookupM_0"], [224, "mov eax, 0"], [225, "call _printf"], [226, "mov rax, cs:stdout"], [227, "mov rdi, rax"], [228, "call _fflush"], [229, "lea rax, [rbp+tv]"], [230, "mov esi, 0"], [231, "mov rdi, rax"], [232, "call _gettimeofday"], [233, "mov [rbp+var_30], 0"], [234, "jmp short loc_402844"], [235, "mov rax, [rbp+var_30]"], [236, "mov edx, eax"], [237, "mov rax, [rbp+nmemb]"], [238, "add eax, edx"], [239, "mov [rbp+var_C4], eax"], [240, "lea rdx, [rbp+var_C4]"], [241, "lea rax, [rbp+var_C0]"], [242, "mov rsi, rdx"], [243, "mov rdi, rax"], [244, "call sub_4020B7"], [245, "test rax, rax"], [246, "jz short loc_402838"], [247, "call _abort"], [248, "mov rax, [rbp+var_30]"], [249, "add rax, 1"], [250, "mov [rbp+var_30], rax"], [251, "mov rax, [rbp+var_30]"], [252, "cmp [rbp+nmemb], rax"], [253, "ja short loc_402803"], [254, "lea rax, [rbp+var_60]"], [255, "mov esi, 0"], [256, "mov rdi, rax"], [257, "call _gettimeofday"], [258, "mov rax, [rbp+nmemb]"], [259, "mov edx, eax"], [260, "lea rcx, [rbp+var_60]"], [261, "lea rax, [rbp+tv]"], [262, "mov rsi, rcx"], [263, "mov rdi, rax"], [264, "call sub_402288"], [265, "mov rsi, rax"], [266, "mov edi, offset aZuNs"], [267, "mov eax, 0"], [268, "call _printf"], [269, "mov edi, offset aInitialLookupR"], [270, "mov eax, 0"], [271, "call _printf"], [272, "mov rax, cs:stdout"], [273, "mov rdi, rax"], [274, "call _fflush"], [275, "lea rax, [rbp+tv]"], [276, "mov esi, 0"], [277, "mov rdi, rax"], [278, "call _gettimeofday"], [279, "mov [rbp+var_30], 0"], [280, "mov [rbp+var_38], 0"], [281, "jmp short loc_402927"], [282, "lea rdx, [rbp+var_38]"], [283, "lea rax, [rbp+var_C0]"], [284, "mov rsi, rdx"], [285, "mov rdi, rax"], [286, "call sub_4020B7"], [287, "mov rax, [rax+8]"], [288, "mov rdx, [rbp+var_38]"], [289, "mov rcx, rdx"], [290, "shl rcx, 4"], [291, "mov rdx, [rbp+var_28]"], [292, "add rdx, rcx"], [293, "cmp rax, rdx"], [294, "jz short loc_402901"], [295, "call _abort"], [296, "mov rax, [rbp+var_30]"], [297, "add rax, 1"], [298, "mov [rbp+var_30], rax"], [299, "mov rax, [rbp+var_38]"], [300, "add rax, 2717h"], [301, "mov edx, 0"], [302, "div [rbp+nmemb]"], [303, "mov rax, rdx"], [304, "mov [rbp+var_38], rax"], [305, "mov rax, [rbp+var_30]"], [306, "cmp [rbp+nmemb], rax"], [307, "ja short loc_4028CB"], [308, "lea rax, [rbp+var_60]"], [309, "mov esi, 0"], [310, "mov rdi, rax"], [311, "call _gettimeofday"], [312, "mov rax, [rbp+nmemb]"], [313, "mov edx, eax"], [314, "lea rcx, [rbp+var_60]"], [315, "lea rax, [rbp+tv]"], [316, "mov rsi, rcx"], [317, "mov rdi, rax"], [318, "call sub_402288"], [319, "mov rsi, rax"], [320, "mov edi, offset aZuNs"], [321, "mov eax, 0"], [322, "call _printf"], [323, "mov cs:qword_408088, 0"], [324, "mov edi, offset aInitialDeleteA"], [325, "mov eax, 0"], [326, "call _printf"], [327, "mov rax, cs:stdout"], [328, "mov rdi, rax"], [329, "call _fflush"], [330, "lea rax, [rbp+tv]"], [331, "mov esi, 0"], [332, "mov rdi, rax"], [333, "call _gettimeofday"], [334, "mov [rbp+var_30], 0"], [335, "jmp short loc_4029F1"], [336, "mov rax, [rbp+var_30]"], [337, "shl rax, 4"], [338, "mov rdx, rax"], [339, "mov rax, [rbp+var_28]"], [340, "add rax, rdx"], [341, "mov rdx, [rax+8]"], [342, "lea rax, [rbp+var_C0]"], [343, "mov rsi, rdx"], [344, "mov rdi, rax"], [345, "call sub_40207B"], [346, "xor eax, 1"], [347, "test al, al"], [348, "jz short loc_4029E5"], [349, "call _abort"], [350, "mov rax, [rbp+var_30]"], [351, "add rax, 1"], [352, "mov [rbp+var_30], rax"], [353, "mov rax, [rbp+var_30]"], [354, "cmp [rbp+nmemb], rax"], [355, "ja short loc_4029B1"], [356, "lea rax, [rbp+var_60]"], [357, "mov esi, 0"], [358, "mov rdi, rax"], [359, "call _gettimeofday"], [360, "mov rax, [rbp+nmemb]"], [361, "mov edx, eax"], [362, "lea rcx, [rbp+var_60]"], [363, "lea rax, [rbp+tv]"], [364, "mov rsi, rcx"], [365, "mov rdi, rax"], [366, "call sub_402288"], [367, "mov rsi, rax"], [368, "mov edi, offset aZuNs"], [369, "mov eax, 0"], [370, "call _printf"], [371, "mov rax, cs:qword_408088"], [372, "mov rsi, rax"], [373, "mov edi, offset aDetailsRehashe"], [374, "mov eax, 0"], [375, "call _printf"], [376, "mov edi, offset aInitialReInser"], [377, "mov eax, 0"], [378, "call _printf"], [379, "mov rax, cs:stdout"], [380, "mov rdi, rax"], [381, "call _fflush"], [382, "lea rax, [rbp+tv]"], [383, "mov esi, 0"], [384, "mov rdi, rax"], [385, "call _gettimeofday"], [386, "mov [rbp+var_30], 0"], [387, "jmp short loc_402ABD"], [388, "mov rax, [rbp+var_30]"], [389, "shl rax, 4"], [390, "mov rdx, rax"], [391, "mov rax, [rbp+var_28]"], [392, "add rax, rdx"], [393, "mov rdx, [rax+8]"], [394, "lea rax, [rbp+var_C0]"], [395, "mov rsi, rdx"], [396, "mov rdi, rax"], [397, "call sub_40203F"], [398, "mov rax, [rbp+var_30]"], [399, "add rax, 1"], [400, "mov [rbp+var_30], rax"], [401, "mov rax, [rbp+var_30]"], [402, "cmp [rbp+nmemb], rax"], [403, "ja short loc_402A89"], [404, "lea rax, [rbp+var_60]"], [405, "mov esi, 0"], [406, "mov rdi, rax"], [407, "call _gettimeofday"], [408, "mov rax, [rbp+nmemb]"], [409, "mov edx, eax"], [410, "lea rcx, [rbp+var_60]"], [411, "lea rax, [rbp+tv]"], [412, "mov rsi, rcx"], [413, "mov rdi, rax"], [414, "call sub_402288"], [415, "mov rsi, rax"], [416, "mov edi, offset aZuNs"], [417, "mov eax, 0"], [418, "call _printf"], [419, "mov cs:qword_408088, 0"], [420, "mov edi, offset aDeletingFirstH"], [421, "mov eax, 0"], [422, "call _printf"], [423, "mov rax, cs:stdout"], [424, "mov rdi, rax"], [425, "call _fflush"], [426, "lea rax, [rbp+tv]"], [427, "mov esi, 0"], [428, "mov rdi, rax"], [429, "call _gettimeofday"], [430, "mov [rbp+var_30], 0"], [431, "jmp short loc_402B87"], [432, "mov rax, [rbp+var_30]"], [433, "shl rax, 4"], [434, "mov rdx, rax"], [435, "mov rax, [rbp+var_28]"], [436, "add rax, rdx"], [437, "mov rdx, [rax+8]"], [438, "lea rax, [rbp+var_C0]"], [439, "mov rsi, rdx"], [440, "mov rdi, rax"], [441, "call sub_40207B"], [442, "xor eax, 1"], [443, "test al, al"], [444, "jz short loc_402B7B"], [445, "call _abort"], [446, "mov rax, [rbp+var_30]"], [447, "add rax, 2"], [448, "mov [rbp+var_30], rax"], [449, "mov rax, [rbp+var_30]"], [450, "cmp [rbp+nmemb], rax"], [451, "ja short loc_402B47"], [452, "lea rax, [rbp+var_60]"], [453, "mov esi, 0"], [454, "mov rdi, rax"], [455, "call _gettimeofday"], [456, "mov rax, [rbp+nmemb]"], [457, "mov edx, eax"], [458, "lea rcx, [rbp+var_60]"], [459, "lea rax, [rbp+tv]"], [460, "mov rsi, rcx"], [461, "mov rdi, rax"], [462, "call sub_402288"], [463, "mov rsi, rax"], [464, "mov edi, offset aZuNs"], [465, "mov eax, 0"], [466, "call _printf"], [467, "lea rax, [rbp+var_C0]"], [468, "mov rdi, rax"], [469, "call sub_402228"], [470, "mov rdx, rax"], [471, "mov rax, cs:qword_408088"], [472, "mov rsi, rax"], [473, "mov edi, offset aDetailsRehashe_0"], [474, "mov eax, 0"], [475, "call _printf"], [476, "mov edi, offset aAddingADiffere"], [477, "mov eax, 0"], [478, "call _printf"], [479, "mov rax, cs:stdout"], [480, "mov rdi, rax"], [481, "call _fflush"], [482, "mov [rbp+var_30], 0"], [483, "jmp short loc_402C4F"], [484, "mov rax, [rbp+nmemb]"], [485, "mov esi, eax"], [486, "mov rax, [rbp+var_30]"], [487, "mov ecx, eax"], [488, "mov rax, [rbp+var_30]"], [489, "shl rax, 4"], [490, "mov rdx, rax"], [491, "mov rax, [rbp+var_28]"], [492, "add rax, rdx"], [493, "lea edx, [rsi+rcx]"], [494, "mov [rax], edx"], [495, "mov rax, [rbp+var_30]"], [496, "add rax, 2"], [497, "mov [rbp+var_30], rax"], [498, "mov rax, [rbp+var_30]"], [499, "cmp [rbp+nmemb], rax"], [500, "ja short loc_402C20"], [501, "lea rax, [rbp+tv]"], [502, "mov esi, 0"], [503, "mov rdi, rax"], [504, "call _gettimeofday"], [505, "mov [rbp+var_30], 0"], [506, "jmp short loc_402CA8"], [507, "mov rax, [rbp+var_30]"], [508, "shl rax, 4"], [509, "mov rdx, rax"], [510, "mov rax, [rbp+var_28]"], [511, "add rax, rdx"], [512, "mov rdx, [rax+8]"], [513, "lea rax, [rbp+var_C0]"], [514, "mov rsi, rdx"], [515, "mov rdi, rax"], [516, "call sub_40203F"], [517, "mov rax, [rbp+var_30]"], [518, "add rax, 2"], [519, "mov [rbp+var_30], rax"], [520, "mov rax, [rbp+var_30]"], [521, "cmp [rbp+nmemb], rax"], [522, "ja short loc_402C74"], [523, "lea rax, [rbp+var_60]"], [524, "mov esi, 0"], [525, "mov rdi, rax"], [526, "call _gettimeofday"], [527, "mov rax, [rbp+nmemb]"], [528, "mov edx, eax"], [529, "lea rcx, [rbp+var_60]"], [530, "lea rax, [rbp+tv]"], [531, "mov rsi, rcx"], [532, "mov rdi, rax"], [533, "call sub_402288"], [534, "mov rsi, rax"], [535, "mov edi, offset aZuNs"], [536, "mov eax, 0"], [537, "call _printf"], [538, "lea rax, [rbp+var_C0]"], [539, "mov rdi, rax"], [540, "call sub_402107"], [541, "test rax, rax"], [542, "js short loc_402D0D"], [543, "pxor xmm0, xmm0"], [544, "cvtsi2sd xmm0, rax"], [545, "jmp short loc_402D26"], [546, "mov rdx, rax"], [547, "shr rdx, 1"], [548, "and eax, 1"], [549, "or rdx, rax"], [550, "pxor xmm0, xmm0"], [551, "cvtsi2sd xmm0, rdx"], [552, "addsd xmm0, xmm0"], [553, "movsd xmm1, cs:qword_405438"], [554, "mulsd xmm1, xmm0"], [555, "mov rax, [rbp+var_A8]"], [556, "test rax, rax"], [557, "js short loc_402D49"], [558, "pxor xmm0, xmm0"], [559, "cvtsi2sd xmm0, rax"], [560, "jmp short loc_402D62"], [561, "mov rdx, rax"], [562, "shr rdx, 1"], [563, "and eax, 1"], [564, "or rdx, rax"], [565, "pxor xmm0, xmm0"], [566, "cvtsi2sd xmm0, rdx"], [567, "addsd xmm0, xmm0"], [568, "divsd xmm1, xmm0"], [569, "movq rbx, xmm1"], [570, "lea rax, [rbp+var_C0]"], [571, "mov rdi, rax"], [572, "call sub_402228"], [573, "movq xmm0, rbx"], [574, "mov rsi, rax"], [575, "mov edi, offset aDetailsDeleteM"], [576, "mov eax, 1"], [577, "call _printf"], [578, "mov edi, offset aLookupAfterHal"], [579, "mov eax, 0"], [580, "call _printf"], [581, "mov rax, cs:stdout"], [582, "mov rdi, rax"], [583, "call _fflush"], [584, "lea rax, [rbp+tv]"], [585, "mov esi, 0"], [586, "mov rdi, rax"], [587, "call _gettimeofday"], [588, "mov [rbp+var_30], 1"], [589, "jmp short loc_402E10"], [590, "lea rdx, [rbp+var_30]"], [591, "lea rax, [rbp+var_C0]"], [592, "mov rsi, rdx"], [593, "mov rdi, rax"], [594, "call sub_4020B7"], [595, "mov rdx, [rax+8]"], [596, "mov rax, [rbp+var_30]"], [597, "shl rax, 4"], [598, "mov rcx, rax"], [599, "mov rax, [rbp+var_28]"], [600, "add rax, rcx"], [601, "mov rax, [rax+8]"], [602, "cmp rdx, rax"], [603, "jz short loc_402E04"], [604, "call _abort"], [605, "mov rax, [rbp+var_30]"], [606, "add rax, 2"], [607, "mov [rbp+var_30], rax"], [608, "mov rax, [rbp+var_30]"], [609, "cmp [rbp+nmemb], rax"], [610, "ja short loc_402DCA"], [611, "mov [rbp+var_30], 0"], [612, "jmp short loc_402E7F"], [613, "mov rax, [rbp+var_30]"], [614, "mov edx, eax"], [615, "mov rax, [rbp+nmemb]"], [616, "add eax, edx"], [617, "mov [rbp+var_C8], eax"], [618, "lea rdx, [rbp+var_C8]"], [619, "lea rax, [rbp+var_C0]"], [620, "mov rsi, rdx"], [621, "mov rdi, rax"], [622, "call sub_4020B7"], [623, "mov rdx, [rax+8]"], [624, "mov rax, [rbp+var_30]"], [625, "shl rax, 4"], [626, "mov rcx, rax"], [627, "mov rax, [rbp+var_28]"], [628, "add rax, rcx"], [629, "mov rax, [rax+8]"], [630, "cmp rdx, rax"], [631, "jz short loc_402E73"], [632, "call _abort"], [633, "mov rax, [rbp+var_30]"], [634, "add rax, 2"], [635, "mov [rbp+var_30], rax"], [636, "mov rax, [rbp+var_30]"], [637, "cmp [rbp+nmemb], rax"], [638, "ja short loc_402E24"], [639, "lea rax, [rbp+var_60]"], [640, "mov esi, 0"], [641, "mov rdi, rax"], [642, "call _gettimeofday"], [643, "mov rax, [rbp+nmemb]"], [644, "mov edx, eax"], [645, "lea rcx, [rbp+var_60]"], [646, "lea rax, [rbp+tv]"], [647, "mov rsi, rcx"], [648, "mov rdi, rax"], [649, "call sub_402288"], [650, "mov rsi, rax"], [651, "mov edi, offset aZuNs"], [652, "mov eax, 0"], [653, "call _printf"], [654, "mov edi, offset aLookupAfterHal_0"], [655, "mov eax, 0"], [656, "call _printf"], [657, "mov rax, cs:stdout"], [658, "mov rdi, rax"], [659, "call _fflush"], [660, "lea rax, [rbp+tv]"], [661, "mov esi, 0"], [662, "mov rdi, rax"], [663, "call _gettimeofday"], [664, "mov [rbp+var_30], 0"], [665, "jmp short loc_402F40"], [666, "mov rax, [rbp+nmemb]"], [667, "lea edx, [rax+rax]"], [668, "mov rax, [rbp+var_30]"], [669, "add eax, edx"], [670, "mov [rbp+var_CC], eax"], [671, "lea rdx, [rbp+var_CC]"], [672, "lea rax, [rbp+var_C0]"], [673, "mov rsi, rdx"], [674, "mov rdi, rax"], [675, "call sub_4020B7"], [676, "test rax, rax"], [677, "jz short loc_402F34"], [678, "call _abort"], [679, "mov rax, [rbp+var_30]"], [680, "add rax, 1"], [681, "mov [rbp+var_30], rax"], [682, "mov rax, [rbp+var_30]"], [683, "cmp [rbp+nmemb], rax"], [684, "ja short loc_402EFE"], [685, "lea rax, [rbp+var_60]"], [686, "mov esi, 0"], [687, "mov rdi, rax"], [688, "call _gettimeofday"], [689, "mov rax, [rbp+nmemb]"], [690, "mov edx, eax"], [691, "lea rcx, [rbp+var_60]"], [692, "lea rax, [rbp+tv]"], [693, "mov rsi, rcx"], [694, "mov rdi, rax"], [695, "call sub_402288"], [696, "mov rsi, rax"], [697, "mov edi, offset aZuNs"], [698, "mov eax, 0"], [699, "call _printf"], [700, "mov [rbp+var_30], 0"], [701, "jmp loc_403113"], [702, "mov rax, [rbp+var_30]"], [703, "test rax, rax"], [704, "jnz short loc_402FA8"], [705, "mov edi, offset s"], [706, "call _puts"], [707, "jmp short loc_403001"], [708, "mov rax, [rbp+var_30]"], [709, "cmp rax, 1"], [710, "jz short loc_402FDB"], [711, "mov rax, [rbp+var_30]"], [712, "cmp rax, 2"], [713, "jz short loc_402FD4"], [714, "mov rax, [rbp+var_30]"], [715, "cmp rax, 3"], [716, "jnz short loc_402FCD"], [717, "mov eax, offset aFourth"], [718, "jmp short loc_402FE0"], [719, "mov eax, offset aFifth"], [720, "jmp short loc_402FE0"], [721, "mov eax, offset aThird"], [722, "jmp short loc_402FE0"], [723, "mov eax, offset aSecond"], [724, "mov rsi, rax"], [725, "mov edi, offset aChurningSTime"], [726, "mov eax, 0"], [727, "call _printf"], [728, "mov rax, cs:stdout"], [729, "mov rdi, rax"], [730, "call _fflush"], [731, "lea rax, [rbp+tv]"], [732, "mov esi, 0"], [733, "mov rdi, rax"], [734, "call _gettimeofday"], [735, "mov [rbp+var_38], 0"], [736, "jmp loc_4030B4"], [737, "mov rax, [rbp+var_38]"], [738, "shl rax, 4"], [739, "mov rdx, rax"], [740, "mov rax, [rbp+var_28]"], [741, "add rdx, rax"], [742, "lea rax, [rbp+var_C0]"], [743, "mov rsi, rdx"], [744, "mov rdi, rax"], [745, "call sub_40207B"], [746, "xor eax, 1"], [747, "test al, al"], [748, "jz short loc_40304F"], [749, "call _abort"], [750, "mov rax, [rbp+nmemb]"], [751, "mov edx, eax"], [752, "mov rax, [rbp+var_30]"], [753, "imul edx, eax"], [754, "mov rax, [rbp+var_38]"], [755, "mov esi, eax"], [756, "mov rax, [rbp+var_38]"], [757, "shl rax, 4"], [758, "mov rcx, rax"], [759, "mov rax, [rbp+var_28]"], [760, "add rax, rcx"], [761, "add edx, esi"], [762, "mov [rax], edx"], [763, "mov rax, [rbp+var_38]"], [764, "shl rax, 4"], [765, "mov rdx, rax"], [766, "mov rax, [rbp+var_28]"], [767, "add rdx, rax"], [768, "lea rax, [rbp+var_C0]"], [769, "mov rsi, rdx"], [770, "mov rdi, rax"], [771, "call sub_40203F"], [772, "xor eax, 1"], [773, "test al, al"], [774, "jz short loc_4030A8"], [775, "call _abort"], [776, "mov rax, [rbp+var_38]"], [777, "add rax, 1"], [778, "mov [rbp+var_38], rax"], [779, "mov rax, [rbp+var_38]"], [780, "cmp [rbp+nmemb], rax"], [781, "ja loc_40301F"], [782, "lea rax, [rbp+var_60]"], [783, "mov esi, 0"], [784, "mov rdi, rax"], [785, "call _gettimeofday"], [786, "mov rax, [rbp+var_30]"], [787, "test rax, rax"], [788, "jz short loc_403107"], [789, "mov rax, [rbp+nmemb]"], [790, "mov edx, eax"], [791, "lea rcx, [rbp+var_60]"], [792, "lea rax, [rbp+tv]"], [793, "mov rsi, rcx"], [794, "mov rdi, rax"], [795, "call sub_402288"], [796, "mov rsi, rax"], [797, "mov edi, offset aZuNs"], [798, "mov eax, 0"], [799, "call _printf"], [800, "mov rax, [rbp+var_30]"], [801, "add rax, 1"], [802, "mov [rbp+var_30], rax"], [803, "mov rax, [rbp+var_30]"], [804, "cmp rax, 4"], [805, "jbe loc_402F93"], [806, "mov edi, offset aDetailsReinser"], [807, "call _puts"], [808, "mov [rbp+var_30], 0"], [809, "jmp loc_4031DD"], [810, "mov rax, [rbp+var_30]"], [811, "shl rax, 4"], [812, "mov rdx, rax"], [813, "mov rax, [rbp+var_28]"], [814, "add rax, rdx"], [815, "mov rdx, [rax+8]"], [816, "lea rax, [rbp+var_C0]"], [817, "mov rsi, rdx"], [818, "mov rdi, rax"], [819, "call sub_40207B"], [820, "xor eax, 1"], [821, "test al, al"], [822, "jz short loc_40316C"], [823, "call _abort"], [824, "mov rax, [rbp+nmemb]"], [825, "mov edx, eax"], [826, "mov eax, edx"], [827, "shl eax, 2"], [828, "lea ecx, [rax+rdx]"], [829, "mov rax, [rbp+var_30]"], [830, "mov edx, eax"], [831, "mov eax, edx"], [832, "shl eax, 3"], [833, "add edx, eax"], [834, "mov rax, [rbp+var_30]"], [835, "shl rax, 4"], [836, "mov rsi, rax"], [837, "mov rax, [rbp+var_28]"], [838, "add rax, rsi"], [839, "add edx, ecx"], [840, "mov [rax], edx"], [841, "mov rax, [rbp+var_30]"], [842, "shl rax, 4"], [843, "mov rdx, rax"], [844, "mov rax, [rbp+var_28]"], [845, "add rax, rdx"], [846, "mov rdx, [rax+8]"], [847, "lea rax, [rbp+var_C0]"], [848, "mov rsi, rdx"], [849, "mov rdi, rax"], [850, "call sub_40203F"], [851, "xor eax, 1"], [852, "test al, al"], [853, "jz short loc_4031D1"], [854, "call _abort"], [855, "mov rax, [rbp+var_30]"], [856, "add rax, 1"], [857, "mov [rbp+var_30], rax"], [858, "mov rax, [rbp+var_30]"], [859, "cmp [rbp+nmemb], rax"], [860, "ja loc_403138"], [861, "lea rax, [rbp+var_C0]"], [862, "mov rdi, rax"], [863, "call sub_402107"], [864, "test rax, rax"], [865, "js short loc_40320A"], [866, "pxor xmm0, xmm0"], [867, "cvtsi2sd xmm0, rax"], [868, "jmp short loc_403223"], [869, "mov rdx, rax"], [870, "shr rdx, 1"], [871, "and eax, 1"], [872, "or rdx, rax"], [873, "pxor xmm0, xmm0"], [874, "cvtsi2sd xmm0, rdx"], [875, "addsd xmm0, xmm0"], [876, "movsd xmm1, cs:qword_405438"], [877, "mulsd xmm1, xmm0"], [878, "mov rax, [rbp+var_A8]"], [879, "test rax, rax"], [880, "js short loc_403246"], [881, "pxor xmm0, xmm0"], [882, "cvtsi2sd xmm0, rax"], [883, "jmp short loc_40325F"], [884, "mov rdx, rax"], [885, "shr rdx, 1"], [886, "and eax, 1"], [887, "or rdx, rax"], [888, "pxor xmm0, xmm0"], [889, "cvtsi2sd xmm0, rdx"], [890, "addsd xmm0, xmm0"], [891, "divsd xmm1, xmm0"], [892, "movq rbx, xmm1"], [893, "lea rax, [rbp+var_C0]"], [894, "mov rdi, rax"], [895, "call sub_402228"], [896, "movq xmm0, rbx"], [897, "mov rsi, rax"], [898, "mov edi, offset aDetailsDeleteM"], [899, "mov eax, 1"], [900, "call _printf"], [901, "lea rdx, [rbp+var_40]"], [902, "lea rax, [rbp+var_C0]"], [903, "mov rsi, rdx"], [904, "mov rdi, rax"], [905, "call sub_402374"], [906, "mov [rbp+var_30], rax"], [907, "mov rdx, [rbp+var_40]"], [908, "mov rax, [rbp+var_30]"], [909, "mov rsi, rax"], [910, "mov edi, offset aDetailsWorstRu"], [911, "mov eax, 0"], [912, "call _printf"], [913, "mov edi, offset aLookupAfterChu"], [914, "mov eax, 0"], [915, "call _printf"], [916, "mov rax, cs:stdout"], [917, "mov rdi, rax"], [918, "call _fflush"], [919, "lea rax, [rbp+tv]"], [920, "mov esi, 0"], [921, "mov rdi, rax"], [922, "call _gettimeofday"], [923, "mov [rbp+var_30], 0"], [924, "jmp short loc_403367"], [925, "mov rax, [rbp+nmemb]"], [926, "mov edx, eax"], [927, "mov eax, edx"], [928, "shl eax, 2"], [929, "lea ecx, [rax+rdx]"], [930, "mov rax, [rbp+var_30]"], [931, "mov edx, eax"], [932, "mov eax, edx"], [933, "shl eax, 3"], [934, "add eax, edx"], [935, "add eax, ecx"], [936, "mov [rbp+var_D0], eax"], [937, "lea rdx, [rbp+var_D0]"], [938, "lea rax, [rbp+var_C0]"], [939, "mov rsi, rdx"], [940, "mov rdi, rax"], [941, "call sub_4020B7"], [942, "mov rdx, [rax+8]"], [943, "mov rax, [rbp+var_30]"], [944, "shl rax, 4"], [945, "mov rcx, rax"], [946, "mov rax, [rbp+var_28]"], [947, "add rax, rcx"], [948, "mov rax, [rax+8]"], [949, "cmp rdx, rax"], [950, "jz short loc_40335B"], [951, "call _abort"], [952, "mov rax, [rbp+var_30]"], [953, "add rax, 1"], [954, "mov [rbp+var_30], rax"], [955, "mov rax, [rbp+var_30]"], [956, "cmp [rbp+nmemb], rax"], [957, "ja short loc_4032FB"], [958, "lea rax, [rbp+var_60]"], [959, "mov esi, 0"], [960, "mov rdi, rax"], [961, "call _gettimeofday"], [962, "mov rax, [rbp+nmemb]"], [963, "mov edx, eax"], [964, "lea rcx, [rbp+var_60]"], [965, "lea rax, [rbp+tv]"], [966, "mov rsi, rcx"], [967, "mov rdi, rax"], [968, "call sub_402288"], [969, "mov rsi, rax"], [970, "mov edi, offset aZuNs"], [971, "mov eax, 0"], [972, "call _printf"], [973, "mov edi, offset aLookupAfterChu_0"], [974, "mov eax, 0"], [975, "call _printf"], [976, "mov rax, cs:stdout"], [977, "mov rdi, rax"], [978, "call _fflush"], [979, "lea rax, [rbp+tv]"], [980, "mov esi, 0"], [981, "mov rdi, rax"], [982, "call _gettimeofday"], [983, "mov [rbp+var_30], 0"], [984, "jmp short loc_403431"], [985, "mov rax, [rbp+nmemb]"], [986, "imul edx, eax, 0Eh"], [987, "mov rax, [rbp+var_30]"], [988, "mov ecx, eax"], [989, "mov eax, ecx"], [990, "shl eax, 3"], [991, "add eax, ecx"], [992, "add eax, edx"], [993, "mov [rbp+var_D4], eax"], [994, "lea rdx, [rbp+var_D4]"], [995, "lea rax, [rbp+var_C0]"], [996, "mov rsi, rdx"], [997, "mov rdi, rax"], [998, "call sub_4020B7"], [999, "test rax, rax"], [1000, "jz short loc_403425"], [1001, "call _abort"], [1002, "mov rax, [rbp+var_30]"], [1003, "add rax, 1"], [1004, "mov [rbp+var_30], rax"], [1005, "mov rax, [rbp+var_30]"], [1006, "cmp [rbp+nmemb], rax"], [1007, "ja short loc_4033E6"], [1008, "lea rax, [rbp+var_60]"], [1009, "mov esi, 0"], [1010, "mov rdi, rax"], [1011, "call _gettimeofday"], [1012, "mov rax, [rbp+nmemb]"], [1013, "mov edx, eax"], [1014, "lea rcx, [rbp+var_60]"], [1015, "lea rax, [rbp+tv]"], [1016, "mov rsi, rcx"], [1017, "mov rdi, rax"], [1018, "call sub_402288"], [1019, "mov rsi, rax"], [1020, "mov edi, offset aZuNs"], [1021, "mov eax, 0"], [1022, "call _printf"], [1023, "mov edi, offset aLookupAfterChu_1"], [1024, "mov eax, 0"], [1025, "call _printf"], [1026, "mov rax, cs:stdout"], [1027, "mov rdi, rax"], [1028, "call _fflush"], [1029, "lea rax, [rbp+tv]"], [1030, "mov esi, 0"], [1031, "mov rdi, rax"], [1032, "call _gettimeofday"], [1033, "mov [rbp+var_30], 0"], [1034, "mov [rbp+var_38], 0"], [1035, "jmp loc_40353D"], [1036, "mov rax, [rbp+nmemb]"], [1037, "mov edx, eax"], [1038, "mov eax, edx"], [1039, "shl eax, 2"], [1040, "lea ecx, [rax+rdx]"], [1041, "mov rax, [rbp+var_38]"], [1042, "mov edx, eax"], [1043, "mov eax, edx"], [1044, "shl eax, 3"], [1045, "add eax, edx"], [1046, "add eax, ecx"], [1047, "mov [rbp+var_D8], eax"], [1048, "lea rdx, [rbp+var_D8]"], [1049, "lea rax, [rbp+var_C0]"], [1050, "mov rsi, rdx"], [1051, "mov rdi, rax"], [1052, "call sub_4020B7"], [1053, "mov rax, [rax+8]"], [1054, "mov rdx, [rbp+var_38]"], [1055, "mov rcx, rdx"], [1056, "shl rcx, 4"], [1057, "mov rdx, [rbp+var_28]"], [1058, "add rdx, rcx"], [1059, "cmp rax, rdx"], [1060, "jz short loc_403517"], [1061, "call _abort"], [1062, "mov rax, [rbp+var_30]"], [1063, "add rax, 1"], [1064, "mov [rbp+var_30], rax"], [1065, "mov rax, [rbp+var_38]"], [1066, "add rax, 2717h"], [1067, "mov edx, 0"], [1068, "div [rbp+nmemb]"], [1069, "mov rax, rdx"], [1070, "mov [rbp+var_38], rax"], [1071, "mov rax, [rbp+var_30]"], [1072, "cmp [rbp+nmemb], rax"], [1073, "ja loc_4034BB"], [1074, "lea rax, [rbp+var_60]"], [1075, "mov esi, 0"], [1076, "mov rdi, rax"], [1077, "call _gettimeofday"], [1078, "mov rax, [rbp+nmemb]"], [1079, "mov edx, eax"], [1080, "lea rcx, [rbp+var_60]"], [1081, "lea rax, [rbp+tv]"], [1082, "mov rsi, rcx"], [1083, "mov rdi, rax"], [1084, "call sub_402288"], [1085, "mov rsi, rax"], [1086, "mov edi, offset aZuNs"], [1087, "mov eax, 0"], [1088, "call _printf"], [1089, "mov cs:qword_408088, 0"], [1090, "mov edi, offset aDeletingHalfAf"], [1091, "mov eax, 0"], [1092, "call _printf"], [1093, "mov rax, cs:stdout"], [1094, "mov rdi, rax"], [1095, "call _fflush"], [1096, "lea rax, [rbp+tv]"], [1097, "mov esi, 0"], [1098, "mov rdi, rax"], [1099, "call _gettimeofday"], [1100, "mov [rbp+var_30], 0"], [1101, "jmp short loc_40360B"], [1102, "mov rax, [rbp+var_30]"], [1103, "shl rax, 4"], [1104, "mov rdx, rax"], [1105, "mov rax, [rbp+var_28]"], [1106, "add rax, rdx"], [1107, "mov rdx, [rax+8]"], [1108, "lea rax, [rbp+var_C0]"], [1109, "mov rsi, rdx"], [1110, "mov rdi, rax"], [1111, "call sub_40207B"], [1112, "xor eax, 1"], [1113, "test al, al"], [1114, "jz short loc_4035FF"], [1115, "call _abort"], [1116, "mov rax, [rbp+var_30]"], [1117, "add rax, 2"], [1118, "mov [rbp+var_30], rax"], [1119, "mov rax, [rbp+var_30]"], [1120, "cmp [rbp+nmemb], rax"], [1121, "ja short loc_4035CB"], [1122, "lea rax, [rbp+var_60]"], [1123, "mov esi, 0"], [1124, "mov rdi, rax"], [1125, "call _gettimeofday"], [1126, "mov rax, [rbp+nmemb]"], [1127, "mov edx, eax"], [1128, "lea rcx, [rbp+var_60]"], [1129, "lea rax, [rbp+tv]"], [1130, "mov rsi, rcx"], [1131, "mov rdi, rax"], [1132, "call sub_402288"], [1133, "mov rsi, rax"], [1134, "mov edi, offset aZuNs"], [1135, "mov eax, 0"], [1136, "call _printf"], [1137, "mov edi, offset aAddingADiffere_0"], [1138, "mov eax, 0"], [1139, "call _printf"], [1140, "mov rax, cs:stdout"], [1141, "mov rdi, rax"], [1142, "call _fflush"], [1143, "mov [rbp+var_30], 0"], [1144, "jmp short loc_4036B8"], [1145, "mov rax, [rbp+nmemb]"], [1146, "mov edx, eax"], [1147, "mov eax, edx"], [1148, "add eax, eax"], [1149, "add eax, edx"], [1150, "add eax, eax"], [1151, "mov esi, eax"], [1152, "mov rax, [rbp+var_30]"], [1153, "mov edx, eax"], [1154, "mov eax, edx"], [1155, "shl eax, 3"], [1156, "add edx, eax"], [1157, "mov rax, [rbp+var_30]"], [1158, "shl rax, 4"], [1159, "mov rcx, rax"], [1160, "mov rax, [rbp+var_28]"], [1161, "add rax, rcx"], [1162, "add edx, esi"], [1163, "mov [rax], edx"], [1164, "mov rax, [rbp+var_30]"], [1165, "add rax, 2"], [1166, "mov [rbp+var_30], rax"], [1167, "mov rax, [rbp+var_30]"], [1168, "cmp [rbp+nmemb], rax"], [1169, "ja short loc_403679"], [1170, "lea rax, [rbp+tv]"], [1171, "mov esi, 0"], [1172, "mov rdi, rax"], [1173, "call _gettimeofday"], [1174, "mov [rbp+var_30], 0"], [1175, "jmp short loc_403711"], [1176, "mov rax, [rbp+var_30]"], [1177, "shl rax, 4"], [1178, "mov rdx, rax"], [1179, "mov rax, [rbp+var_28]"], [1180, "add rax, rdx"], [1181, "mov rdx, [rax+8]"], [1182, "lea rax, [rbp+var_C0]"], [1183, "mov rsi, rdx"], [1184, "mov rdi, rax"], [1185, "call sub_40203F"], [1186, "mov rax, [rbp+var_30]"], [1187, "add rax, 2"], [1188, "mov [rbp+var_30], rax"], [1189, "mov rax, [rbp+var_30]"], [1190, "cmp [rbp+nmemb], rax"], [1191, "ja short loc_4036DD"], [1192, "lea rax, [rbp+var_60]"], [1193, "mov esi, 0"], [1194, "mov rdi, rax"], [1195, "call _gettimeofday"], [1196, "mov rax, [rbp+nmemb]"], [1197, "mov edx, eax"], [1198, "lea rcx, [rbp+var_60]"], [1199, "lea rax, [rbp+tv]"], [1200, "mov rsi, rcx"], [1201, "mov rdi, rax"], [1202, "call sub_402288"], [1203, "mov rsi, rax"], [1204, "mov edi, offset aZuNs"], [1205, "mov eax, 0"], [1206, "call _printf"], [1207, "lea rax, [rbp+var_C0]"], [1208, "mov rdi, rax"], [1209, "call sub_402107"], [1210, "test rax, rax"], [1211, "js short loc_403776"], [1212, "pxor xmm0, xmm0"], [1213, "cvtsi2sd xmm0, rax"], [1214, "jmp short loc_40378F"], [1215, "mov rdx, rax"], [1216, "shr rdx, 1"], [1217, "and eax, 1"], [1218, "or rdx, rax"], [1219, "pxor xmm0, xmm0"], [1220, "cvtsi2sd xmm0, rdx"], [1221, "addsd xmm0, xmm0"], [1222, "movsd xmm1, cs:qword_405438"], [1223, "mulsd xmm1, xmm0"], [1224, "mov rax, [rbp+var_A8]"], [1225, "test rax, rax"], [1226, "js short loc_4037B2"], [1227, "pxor xmm0, xmm0"], [1228, "cvtsi2sd xmm0, rax"], [1229, "jmp short loc_4037CB"], [1230, "mov rdx, rax"], [1231, "shr rdx, 1"], [1232, "and eax, 1"], [1233, "or rdx, rax"], [1234, "pxor xmm0, xmm0"], [1235, "cvtsi2sd xmm0, rdx"], [1236, "addsd xmm0, xmm0"], [1237, "divsd xmm1, xmm0"], [1238, "movq rbx, xmm1"], [1239, "lea rax, [rbp+var_C0]"], [1240, "mov rdi, rax"], [1241, "call sub_402228"], [1242, "movq xmm0, rbx"], [1243, "mov rsi, rax"], [1244, "mov edi, offset aDetailsDeleteM"], [1245, "mov eax, 1"], [1246, "call _printf"], [1247, "mov eax, 0"], [1248, "mov rbx, [rbp+var_8]"], [1249, "leave"], [1250, "retn"]], "data_dep": [[7, 5], [8, 7], [9, 8], [10, 9], [11, 10], [12, 5], [13, 12], [14, 13], [16, 14], [18, 17], [19, 18], [20, 5], [22, 5], [22, 20], [23, 22], [24, 23], [25, 24], [26, 25], [27, 5], [27, 20], [28, 27], [29, 28], [30, 29], [35, 31], [35, 34], [36, 35], [38, 36], [40, 39], [43, 41], [43, 63], [44, 63], [44, 41], [45, 44], [46, 45], [47, 40], [48, 47], [48, 46], [49, 43], [49, 48], [50, 63], [50, 41], [51, 50], [52, 51], [53, 63], [53, 41], [54, 53], [55, 54], [56, 40], [57, 56], [57, 55], [58, 40], [59, 58], [59, 52], [60, 57], [60, 59], [61, 63], [61, 41], [62, 61], [63, 62], [64, 41], [64, 63], [65, 35], [65, 64], [66, 65], [67, 64], [68, 67], [74, 73], [76, 75], [78, 76], [82, 80], [82, 94], [83, 82], [84, 83], [85, 40], [86, 84], [86, 85], [87, 86], [87, 49], [87, 60], [88, 86], [89, 87], [90, 88], [92, 80], [92, 94], [93, 92], [94, 93], [95, 80], [95, 94], [96, 35], [96, 95], [97, 96], [98, 95], [100, 98], [102, 35], [103, 102], [104, 52], [105, 102], [106, 104], [107, 105], [109, 108], [113, 112], [114, 113], [116, 115], [117, 116], [119, 116], [119, 118], [121, 116], [122, 121], [123, 116], [124, 122], [124, 123], [126, 124], [126, 125], [127, 126], [129, 127], [129, 119], [129, 128], [131, 130], [132, 131], [134, 131], [134, 133], [136, 131], [137, 136], [138, 131], [139, 138], [139, 137], [141, 140], [141, 139], [142, 141], [143, 134], [143, 129], [143, 142], [144, 143], [146, 145], [148, 147], [151, 149], [152, 150], [152, 151], [153, 152], [154, 144], [155, 153], [159, 6], [159, 21], [160, 159], [162, 161], [163, 162], [164, 162], [165, 163], [166, 164], [169, 168], [171, 170], [179, 178], [181, 180], [183, 181], [187, 163], [187, 192], [187, 204], [187, 148], [187, 185], [188, 205], [189, 187], [190, 188], [192, 191], [192, 60], [192, 49], [193, 204], [193, 185], [194, 193], [195, 194], [196, 40], [197, 195], [197, 196], [198, 49], [198, 197], [198, 60], [199, 198], [199, 192], [200, 199], [202, 204], [202, 185], [203, 202], [204, 203], [205, 204], [205, 185], [206, 35], [206, 205], [207, 206], [208, 205], [210, 208], [212, 35], [213, 212], [214, 151], [214, 195], [215, 212], [216, 214], [217, 215], [219, 218], [227, 226], [229, 228], [231, 229], [235, 250], [235, 233], [236, 235], [237, 35], [238, 237], [238, 236], [239, 238], [240, 236], [240, 239], [241, 238], [242, 240], [243, 241], [245, 244], [246, 245], [248, 250], [248, 233], [249, 248], [250, 249], [251, 250], [251, 233], [252, 251], [252, 35], [253, 252], [254, 251], [256, 254], [258, 35], [259, 258], [260, 214], [261, 258], [262, 260], [263, 261], [265, 264], [273, 272], [275, 274], [277, 275], [282, 280], [282, 259], [282, 304], [282, 301], [283, 305], [284, 282], [285, 283], [287, 286], [287, 49], [287, 60], [288, 280], [288, 304], [289, 288], [290, 289], [291, 40], [292, 291], [292, 290], [293, 292], [293, 287], [294, 293], [296, 298], [296, 279], [297, 296], [298, 297], [299, 280], [299, 304], [300, 299], [302, 35], [302, 302], [303, 301], [304, 303], [305, 279], [305, 298], [306, 35], [306, 302], [306, 305], [307, 306], [308, 305], [310, 308], [312, 302], [312, 35], [313, 312], [314, 260], [314, 290], [315, 312], [316, 314], [317, 315], [319, 318], [328, 327], [330, 329], [332, 330], [336, 352], [336, 334], [337, 336], [338, 337], [339, 40], [340, 338], [340, 339], [341, 49], [341, 60], [341, 340], [342, 340], [343, 341], [344, 342], [346, 345], [347, 346], [348, 347], [350, 352], [350, 334], [351, 350], [352, 351], [353, 352], [353, 334], [354, 353], [354, 35], [354, 302], [355, 354], [356, 353], [358, 356], [360, 35], [360, 302], [361, 360], [362, 314], [363, 360], [364, 362], [365, 363], [367, 366], [371, 323], [372, 371], [380, 379], [382, 381], [384, 382], [388, 386], [388, 400], [389, 388], [390, 389], [391, 40], [392, 390], [392, 391], [393, 49], [393, 392], [393, 60], [394, 392], [395, 393], [396, 394], [398, 400], [398, 386], [399, 398], [400, 399], [401, 386], [401, 400], [402, 35], [402, 401], [402, 302], [403, 402], [404, 401], [406, 404], [408, 35], [408, 302], [409, 408], [410, 362], [411, 408], [412, 410], [413, 411], [415, 414], [424, 423], [426, 425], [428, 426], [432, 448], [432, 430], [433, 432], [434, 433], [435, 40], [436, 434], [436, 435], [437, 60], [437, 436], [437, 49], [438, 436], [439, 437], [440, 438], [442, 441], [443, 442], [444, 443], [446, 448], [446, 430], [447, 446], [448, 447], [449, 430], [449, 448], [450, 449], [450, 35], [450, 302], [451, 450], [452, 449], [454, 452], [456, 35], [456, 302], [457, 456], [458, 410], [459, 456], [460, 458], [461, 459], [463, 462], [467, 466], [468, 467], [470, 469], [471, 419], [472, 471], [480, 479], [484, 35], [484, 302], [485, 484], [486, 482], [486, 497], [487, 486], [488, 497], [488, 482], [489, 488], [490, 489], [491, 40], [492, 491], [492, 490], [493, 487], [493, 60], [493, 49], [493, 490], [493, 494], [494, 493], [494, 492], [495, 482], [495, 497], [496, 495], [497, 496], [498, 482], [498, 497], [499, 498], [499, 35], [499, 302], [500, 499], [501, 498], [503, 501], [507, 519], [507, 505], [508, 507], [509, 508], [510, 40], [511, 509], [511, 510], [512, 60], [512, 511], [512, 49], [512, 494], [513, 511], [514, 512], [515, 513], [517, 505], [517, 519], [518, 517], [519, 518], [520, 519], [520, 505], [521, 520], [521, 35], [521, 302], [522, 521], [523, 520], [525, 523], [527, 35], [527, 302], [528, 527], [529, 487], [529, 458], [530, 527], [531, 529], [532, 530], [534, 533], [538, 537], [539, 538], [541, 540], [542, 541], [544, 541], [544, 543], [546, 541], [547, 546], [548, 541], [549, 548], [549, 547], [551, 549], [551, 550], [552, 551], [554, 552], [554, 553], [554, 544], [556, 555], [557, 556], [559, 556], [559, 558], [561, 556], [562, 561], [563, 556], [564, 562], [564, 563], [566, 564], [566, 565], [567, 566], [568, 554], [568, 567], [568, 559], [569, 568], [570, 556], [570, 563], [571, 570], [573, 569], [574, 572], [582, 581], [584, 583], [586, 584], [590, 595], [590, 607], [590, 564], [590, 588], [590, 549], [590, 528], [591, 608], [592, 590], [593, 591], [595, 49], [595, 60], [595, 494], [595, 594], [596, 607], [596, 588], [597, 596], [598, 597], [599, 40], [600, 598], [600, 599], [601, 494], [601, 49], [601, 600], [601, 60], [602, 595], [602, 601], [603, 602], [605, 607], [605, 588], [606, 605], [607, 606], [608, 588], [608, 607], [609, 302], [609, 608], [609, 35], [610, 609], [613, 635], [613, 611], [614, 613], [615, 35], [615, 302], [616, 615], [616, 614], [617, 616], [618, 617], [618, 614], [619, 616], [620, 618], [621, 619], [623, 60], [623, 622], [623, 49], [623, 494], [624, 611], [624, 635], [625, 624], [626, 625], [627, 40], [628, 627], [628, 626], [629, 494], [629, 628], [629, 49], [629, 60], [630, 623], [630, 629], [631, 630], [633, 635], [633, 611], [634, 633], [635, 634], [636, 635], [636, 611], [637, 35], [637, 302], [637, 636], [638, 637], [639, 636], [641, 639], [643, 35], [643, 302], [644, 643], [645, 626], [645, 529], [645, 598], [646, 643], [647, 645], [648, 646], [650, 649], [658, 657], [660, 659], [662, 660], [666, 35], [666, 302], [667, 671], [667, 49], [667, 644], [667, 666], [667, 60], [667, 494], [668, 664], [668, 681], [669, 668], [669, 667], [670, 669], [671, 670], [671, 667], [672, 669], [673, 671], [674, 672], [676, 675], [677, 676], [679, 681], [679, 664], [680, 679], [681, 680], [682, 681], [682, 664], [683, 682], [683, 35], [683, 302], [684, 683], [685, 682], [687, 685], [689, 35], [689, 302], [690, 689], [691, 645], [692, 689], [693, 691], [694, 692], [696, 695], [702, 802], [702, 700], [703, 702], [704, 703], [708, 700], [708, 802], [709, 708], [710, 709], [711, 700], [711, 802], [712, 711], [713, 712], [714, 700], [714, 802], [715, 714], [716, 715], [724, 721], [724, 723], [724, 717], [724, 719], [729, 728], [731, 706], [731, 730], [733, 731], [737, 778], [737, 735], [738, 737], [739, 738], [740, 40], [741, 739], [741, 740], [742, 740], [743, 741], [744, 742], [746, 745], [747, 746], [748, 747], [750, 35], [750, 302], [751, 750], [752, 802], [752, 700], [753, 751], [753, 752], [754, 778], [754, 735], [755, 754], [756, 778], [756, 735], [757, 756], [758, 757], [759, 40], [760, 759], [760, 758], [761, 753], [761, 755], [762, 761], [762, 760], [763, 778], [763, 735], [764, 763], [765, 764], [766, 40], [767, 765], [767, 766], [768, 766], [769, 767], [770, 768], [772, 771], [773, 772], [774, 773], [776, 778], [776, 735], [777, 776], [778, 777], [779, 778], [779, 735], [780, 302], [780, 779], [780, 35], [781, 780], [782, 779], [784, 782], [786, 700], [786, 802], [787, 786], [788, 787], [789, 35], [789, 302], [790, 789], [791, 791], [791, 758], [791, 691], [792, 789], [793, 791], [794, 792], [796, 795], [800, 802], [800, 700], [801, 800], [802, 801], [803, 802], [803, 700], [804, 803], [805, 804], [810, 857], [810, 808], [811, 810], [812, 811], [813, 40], [814, 812], [814, 813], [815, 814], [815, 494], [815, 762], [815, 840], [815, 49], [815, 60], [816, 814], [817, 815], [818, 816], [820, 819], [821, 820], [822, 821], [824, 302], [824, 35], [825, 824], [826, 825], [827, 826], [828, 49], [828, 791], [828, 758], [828, 494], [828, 762], [828, 827], [828, 828], [828, 840], [828, 60], [828, 691], [829, 857], [829, 808], [830, 829], [831, 830], [832, 831], [833, 830], [833, 832], [834, 808], [834, 857], [835, 834], [836, 835], [837, 40], [838, 836], [838, 837], [839, 828], [839, 833], [840, 839], [840, 838], [841, 808], [841, 857], [842, 841], [843, 842], [844, 40], [845, 844], [845, 843], [846, 60], [846, 845], [846, 840], [847, 845], [848, 846], [849, 847], [851, 850], [852, 851], [853, 852], [855, 808], [855, 857], [856, 855], [857, 856], [858, 808], [858, 857], [859, 302], [859, 858], [859, 35], [860, 859], [861, 858], [862, 861], [864, 863], [865, 864], [867, 864], [867, 866], [869, 864], [870, 869], [871, 864], [872, 871], [872, 870], [874, 872], [874, 873], [875, 874], [877, 876], [877, 875], [877, 867], [879, 878], [880, 879], [882, 879], [882, 881], [884, 879], [885, 884], [886, 879], [887, 885], [887, 886], [889, 887], [889, 888], [890, 889], [891, 877], [891, 890], [891, 882], [892, 891], [893, 886], [893, 879], [894, 893], [896, 892], [897, 895], [901, 690], [901, 846], [901, 872], [901, 887], [901, 790], [901, 767], [902, 900], [903, 901], [904, 902], [906, 905], [908, 906], [909, 908], [917, 916], [919, 918], [921, 919], [925, 35], [925, 302], [926, 925], [927, 926], [928, 927], [929, 49], [929, 691], [929, 494], [929, 945], [929, 791], [929, 758], [929, 828], [929, 762], [929, 840], [929, 928], [929, 60], [930, 954], [930, 923], [931, 930], [932, 931], [933, 932], [934, 933], [934, 931], [935, 929], [935, 934], [936, 935], [937, 931], [937, 936], [938, 935], [939, 937], [940, 938], [942, 941], [942, 60], [942, 494], [942, 762], [942, 840], [942, 49], [943, 954], [943, 923], [944, 943], [945, 944], [946, 40], [947, 945], [947, 946], [948, 494], [948, 947], [948, 762], [948, 840], [948, 60], [948, 49], [949, 948], [949, 942], [950, 949], [952, 954], [952, 923], [953, 952], [954, 953], [955, 954], [955, 923], [956, 955], [956, 35], [956, 302], [957, 956], [958, 955], [960, 958], [962, 35], [962, 302], [963, 962], [964, 691], [964, 945], [964, 791], [964, 758], [964, 828], [965, 962], [966, 964], [967, 965], [969, 968], [977, 976], [979, 978], [981, 979], [985, 35], [985, 302], [986, 994], [986, 963], [986, 985], [987, 1004], [987, 983], [988, 987], [989, 988], [990, 989], [991, 988], [991, 990], [992, 991], [992, 986], [993, 992], [994, 993], [994, 986], [995, 992], [996, 994], [997, 995], [999, 998], [1000, 999], [1002, 1004], [1002, 983], [1003, 1002], [1004, 1003], [1005, 983], [1005, 1004], [1006, 1005], [1006, 35], [1006, 302], [1007, 1006], [1008, 1005], [1010, 1008], [1012, 302], [1012, 35], [1013, 1012], [1014, 988], [1014, 964], [1015, 1012], [1016, 1014], [1017, 1015], [1019, 1018], [1027, 1026], [1029, 1028], [1031, 1029], [1036, 1068], [1036, 35], [1036, 302], [1037, 1036], [1038, 1037], [1039, 1038], [1040, 1039], [1040, 60], [1040, 49], [1040, 494], [1040, 1014], [1040, 1056], [1040, 762], [1040, 840], [1041, 1034], [1041, 1070], [1042, 1041], [1043, 1042], [1044, 1043], [1045, 1042], [1045, 1044], [1046, 1040], [1046, 1045], [1047, 1046], [1048, 1047], [1048, 1042], [1049, 1046], [1050, 1048], [1051, 1049], [1053, 60], [1053, 49], [1053, 494], [1053, 762], [1053, 840], [1053, 1052], [1054, 1070], [1054, 1034], [1055, 1054], [1056, 1055], [1057, 40], [1058, 1057], [1058, 1056], [1059, 1053], [1059, 1058], [1060, 1059], [1062, 1064], [1062, 1033], [1063, 1062], [1064, 1063], [1065, 1070], [1065, 1034], [1066, 1065], [1068, 35], [1068, 302], [1068, 1068], [1069, 1067], [1070, 1069], [1071, 1064], [1071, 1033], [1072, 302], [1072, 1068], [1072, 1071], [1072, 35], [1073, 1072], [1074, 1071], [1076, 1074], [1078, 1068], [1078, 35], [1078, 302], [1079, 1078], [1080, 1014], [1080, 1056], [1081, 1078], [1082, 1080], [1083, 1081], [1085, 1084], [1094, 1093], [1096, 1095], [1098, 1096], [1102, 1118], [1102, 1100], [1103, 1102], [1104, 1103], [1105, 40], [1106, 1105], [1106, 1104], [1107, 1106], [1107, 762], [1107, 840], [1107, 60], [1107, 49], [1107, 494], [1108, 1106], [1109, 1107], [1110, 1108], [1112, 1111], [1113, 1112], [1114, 1113], [1116, 1100], [1116, 1118], [1117, 1116], [1118, 1117], [1119, 1100], [1119, 1118], [1120, 35], [1120, 302], [1120, 1119], [1120, 1068], [1121, 1120], [1122, 1119], [1124, 1122], [1126, 302], [1126, 1068], [1126, 35], [1127, 1126], [1128, 1080], [1129, 1126], [1130, 1128], [1131, 1129], [1133, 1132], [1141, 1140], [1145, 1068], [1145, 35], [1145, 302], [1146, 1145], [1147, 1146], [1148, 1147], [1149, 1146], [1149, 1148], [1150, 1149], [1151, 1150], [1152, 1143], [1152, 1166], [1153, 1152], [1154, 1153], [1155, 1154], [1156, 1153], [1156, 1155], [1157, 1143], [1157, 1166], [1158, 1157], [1159, 1158], [1160, 40], [1161, 1160], [1161, 1159], [1162, 1156], [1162, 1151], [1163, 1162], [1163, 1161], [1164, 1143], [1164, 1166], [1165, 1164], [1166, 1165], [1167, 1143], [1167, 1166], [1168, 35], [1168, 302], [1168, 1167], [1168, 1068], [1169, 1168], [1170, 1167], [1172, 1170], [1176, 1174], [1176, 1188], [1177, 1176], [1178, 1177], [1179, 40], [1180, 1179], [1180, 1178], [1181, 494], [1181, 762], [1181, 840], [1181, 1180], [1181, 49], [1181, 1163], [1181, 60], [1182, 1180], [1183, 1181], [1184, 1182], [1186, 1174], [1186, 1188], [1187, 1186], [1188, 1187], [1189, 1174], [1189, 1188], [1190, 302], [1190, 1068], [1190, 1189], [1190, 35], [1191, 1190], [1192, 1189], [1194, 1192], [1196, 1068], [1196, 35], [1196, 302], [1197, 1196], [1198, 1159], [1198, 1128], [1199, 1196], [1200, 1198], [1201, 1199], [1203, 1202], [1207, 1206], [1208, 1207], [1210, 1209], [1211, 1210], [1213, 1210], [1213, 1212], [1215, 1210], [1216, 1215], [1217, 1210], [1218, 1216], [1218, 1217], [1220, 1219], [1220, 1218], [1221, 1220], [1223, 1221], [1223, 1222], [1223, 1213], [1225, 1224], [1226, 1225], [1228, 1225], [1228, 1227], [1230, 1225], [1231, 1230], [1232, 1225], [1233, 1231], [1233, 1232], [1235, 1234], [1235, 1233], [1236, 1235], [1237, 1236], [1237, 1228], [1237, 1223], [1238, 1237], [1239, 1225], [1239, 1232], [1240, 1239], [1242, 1238], [1243, 1241], [1250, 1247]]}
{"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/217bdc3f5ba91bf2aae0cae16be9f4667e8c410005fd83ad07a51e517482cf0f_217bdc3f5ba91bf2aae0cae16be9f4667e8c410005fd83ad07a51e517482cf0f.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n__int64 __fastcall main(int a1, char **a2, char **a3)\n{\nsize_t v3; // rax\nunsigned __int64 v4; // rax\n__int64 v5; // rax\ndouble v6; // xmm0_8\ndouble v7; // xmm1_8\ndouble v8; // xmm0_8\nunsigned int v9; // eax\nunsigned int v10; // eax\n__int64 v11; // rax\nunsigned __int64 v12; // rax\nunsigned __int64 v13; // rax\n__int64 v14; // rax\nunsigned __int64 v15; // rax\nunsigned __int64 v16; // rax\nunsigned __int64 v17; // rax\nunsigned __int64 v18; // rax\n__int64 v19; // rax\nunsigned __int64 v20; // rax\n__int64 v21; // rax\ndouble v22; // xmm0_8\ndouble v23; // xmm1_8\ndouble v24; // xmm0_8\n__int64 v25; // rax\n__int64 v26; // rax\n__int64 v27; // rax\nunsigned __int64 v28; // rax\nunsigned __int64 v29; // rax\nconst char *v30; // rax\nunsigned __int64 v31; // rax\n__int64 v32; // rax\ndouble v33; // xmm0_8\ndouble v34; // xmm1_8\ndouble v35; // xmm0_8\n__int64 v36; // rax\n__int64 v37; // rax\nunsigned __int64 v38; // rax\nunsigned __int64 v39; // rax\n__int64 v40; // rax\nunsigned __int64 v41; // rax\nunsigned __int64 v42; // rax\nunsigned __int64 v43; // rax\n__int64 v44; // rax\ndouble v45; // xmm0_8\ndouble v46; // xmm1_8\ndouble v47; // xmm0_8\n__int64 v48; // rax\nchar **v50; // [rsp+0h] [rbp-F0h]\nint v51; // [rsp+18h] [rbp-D8h] BYREF\nint v52; // [rsp+1Ch] [rbp-D4h] BYREF\nint v53; // [rsp+20h] [rbp-D0h] BYREF\nint v54; // [rsp+24h] [rbp-CCh] BYREF\nint v55; // [rsp+28h] [rbp-C8h] BYREF\nint v56; // [rsp+2Ch] [rbp-C4h] BYREF\n_QWORD v57[2]; // [rsp+30h] [rbp-C0h] BYREF\nint v58; // [rsp+40h] [rbp-B0h]\nunsigned __int64 v59; // [rsp+48h] [rbp-A8h]\n__int64 v60; // [rsp+68h] [rbp-88h]\n__int64 v61; // [rsp+70h] [rbp-80h]\nstruct timeval v62; // [rsp+90h] [rbp-60h] BYREF\nstruct timeval tv; // [rsp+A0h] [rbp-50h] BYREF\nsize_t v64; // [rsp+B0h] [rbp-40h] BYREF\nsize_t j; // [rsp+B8h] [rbp-38h] BYREF\nsize_t i; // [rsp+C0h] [rbp-30h] BYREF\n_DWORD *v67; // [rsp+C8h] [rbp-28h]\nsize_t nmemb; // [rsp+D0h] [rbp-20h]\nchar v69; // [rsp+DFh] [rbp-11h]\n\nv50 = a2;\nv69 = 0;\nif ( a2[1] && !strcmp(a2[1], \"--dumb\") )\n{\nv50 = a2 + 1;\nv69 = 1;\n}\nif ( v50[1] )\nv3 = atoi(v50[1]);\nelse\nv3 = 1000000LL;\nnmemb = v3;\nv67 = calloc(v3, 0x10uLL);\nfor ( i = 0LL; nmemb > i; ++i )\n{\nv67[4 * i] = i;\n*(_QWORD *)&v67[4 * i + 2] = &v67[4 * i];\n}\nsub_40201A(v57);\nprintf(\"Initial insert: \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; ++i )\nsub_40203F(v57, *(_QWORD *)&v67[4 * i + 2]);\ngettimeofday(&v62, 0LL);\nv4 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v4);\nv5 = sub_402107((__int64)v57);\nif ( v5 < 0 )\nv6 = (double)(int)(v5 & 1 | ((unsigned __int64)v5 >> 1)) + (double)(int)(v5 & 1 | ((unsigned __int64)v5 >> 1));\nelse\nv6 = (double)(int)v5;\nv7 = 100.0 * v6;\nif ( (v59 & 0x8000000000000000LL) != 0LL )\nv8 = (double)(int)(v59 & 1 | (v59 >> 1)) + (double)(int)(v59 & 1 | (v59 >> 1));\nelse\nv8 = (double)(int)v59;\nv9 = sub_4020F0(v60);\nprintf(\"Details: hash size %u, mask bits %u, perfect %.0f%%\\n\", (unsigned int)(1 << v58), v9, v7 / v8);\nif ( v69 )\n{\nsub_401B89((__int64)v57, ~v61);\nv10 = sub_4020F0(v60);\nprintf(\"Details: DUMB MODE: mask bits %u\\n\", v10);\n}\nprintf(\"Initial lookup (match): \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; ++i )\n{\nv11 = sub_4020B7((__int64)v57, (__int64)&i);\nif ( *(_QWORD *)(v11 + 8) != *(_QWORD *)&v67[4 * i + 2] )\nabort();\n}\ngettimeofday(&v62, 0LL);\nv12 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v12);\nprintf(\"Initial lookup (miss): \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; ++i )\n{\nv56 = i + nmemb;\nif ( sub_4020B7((__int64)v57, (__int64)&v56) )\nabort();\n}\ngettimeofday(&v62, 0LL);\nv13 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v13);\nprintf(\"Initial lookup (random): \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\ni = 0LL;\nj = 0LL;\nwhile ( nmemb > i )\n{\nv14 = sub_4020B7((__int64)v57, (__int64)&j);\nif ( *(_DWORD **)(v14 + 8) != &v67[4 * j] )\nabort();\n++i;\nj = (j + 10007) % nmemb;\n}\ngettimeofday(&v62, 0LL);\nv15 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v15);\nqword_408088 = 0LL;\nprintf(\"Initial delete all: \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; ++i )\n{\nif ( (unsigned __int8)sub_40207B((__int64)v57, *(_QWORD *)&v67[4 * i + 2]) != 1 )\nabort();\n}\ngettimeofday(&v62, 0LL);\nv16 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v16);\nprintf(\"Details: rehashes %zu\\n\", qword_408088);\nprintf(\"Initial re-inserting: \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; ++i )\nsub_40203F(v57, *(_QWORD *)&v67[4 * i + 2]);\ngettimeofday(&v62, 0LL);\nv17 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v17);\nqword_408088 = 0LL;\nprintf(\"Deleting first half: \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; i += 2LL )\n{\nif ( (unsigned __int8)sub_40207B((__int64)v57, *(_QWORD *)&v67[4 * i + 2]) != 1 )\nabort();\n}\ngettimeofday(&v62, 0LL);\nv18 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v18);\nv19 = sub_402228((__int64)v57);\nprintf(\"Details: rehashes %zu, delete markers %zu\\n\", qword_408088, v19);\nprintf(\"Adding (a different) half: \");\nfflush(stdout);\nfor ( i = 0LL; nmemb > i; i += 2LL )\nv67[4 * i] = nmemb + i;\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; i += 2LL )\nsub_40203F(v57, *(_QWORD *)&v67[4 * i + 2]);\ngettimeofday(&v62, 0LL);\nv20 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v20);\nv21 = sub_402107((__int64)v57);\nif ( v21 < 0 )\nv22 = (double)(int)(v21 & 1 | ((unsigned __int64)v21 >> 1)) + (double)(int)(v21 & 1 | ((unsigned __int64)v21 >> 1));\nelse\nv22 = (double)(int)v21;\nv23 = 100.0 * v22;\nif ( (v59 & 0x8000000000000000LL) != 0LL )\nv24 = (double)(int)(v59 & 1 | (v59 >> 1)) + (double)(int)(v59 & 1 | (v59 >> 1));\nelse\nv24 = (double)(int)v59;\nv25 = sub_402228((__int64)v57);\nprintf(\"Details: delete markers %zu, perfect %.0f%%\\n\", v25, v23 / v24);\nprintf(\"Lookup after half-change (match): \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 1LL; nmemb > i; i += 2LL )\n{\nv26 = sub_4020B7((__int64)v57, (__int64)&i);\nif ( *(_QWORD *)(v26 + 8) != *(_QWORD *)&v67[4 * i + 2] )\nabort();\n}\nfor ( i = 0LL; nmemb > i; i += 2LL )\n{\nv55 = i + nmemb;\nv27 = sub_4020B7((__int64)v57, (__int64)&v55);\nif ( *(_QWORD *)(v27 + 8) != *(_QWORD *)&v67[4 * i + 2] )\nabort();\n}\ngettimeofday(&v62, 0LL);\nv28 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v28);\nprintf(\"Lookup after half-change (miss): \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; ++i )\n{\nv54 = 2 * nmemb + i;\nif ( sub_4020B7((__int64)v57, (__int64)&v54) )\nabort();\n}\ngettimeofday(&v62, 0LL);\nv29 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v29);\nfor ( i = 0LL; i <= 4; ++i )\n{\nif ( i )\n{\nswitch ( i )\n{\ncase 1uLL:\nv30 = \"second\";\nbreak;\ncase 2uLL:\nv30 = \"third\";\nbreak;\ncase 3uLL:\nv30 = \"fourth\";\nbreak;\ndefault:\nv30 = \"fifth\";\nbreak;\n}\nprintf(\"Churning %s time: \", v30);\nfflush(stdout);\n}\nelse\n{\nputs(\"Details: initial churn\");\n}\ngettimeofday(&tv, 0LL);\nfor ( j = 0LL; nmemb > j; ++j )\n{\nif ( (unsigned __int8)sub_40207B((__int64)v57, (__int64)&v67[4 * j]) != 1 )\nabort();\nv67[4 * j] = j + i * nmemb;\nif ( (unsigned __int8)sub_40203F(v57, (unsigned __int64)&v67[4 * j]) != 1 )\nabort();\n}\ngettimeofday(&v62, 0LL);\nif ( i )\n{\nv31 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v31);\n}\n}\nputs(\"Details: reinserting with spread\");\nfor ( i = 0LL; nmemb > i; ++i )\n{\nif ( (unsigned __int8)sub_40207B((__int64)v57, *(_QWORD *)&v67[4 * i + 2]) != 1 )\nabort();\nv67[4 * i] = 5 * nmemb + 9 * i;\nif ( (unsigned __int8)sub_40203F(v57, *(_QWORD *)&v67[4 * i + 2]) != 1 )\nabort();\n}\nv32 = sub_402107((__int64)v57);\nif ( v32 < 0 )\nv33 = (double)(int)(v32 & 1 | ((unsigned __int64)v32 >> 1)) + (double)(int)(v32 & 1 | ((unsigned __int64)v32 >> 1));\nelse\nv33 = (double)(int)v32;\nv34 = 100.0 * v33;\nif ( (v59 & 0x8000000000000000LL) != 0LL )\nv35 = (double)(int)(v59 & 1 | (v59 >> 1)) + (double)(int)(v59 & 1 | (v59 >> 1));\nelse\nv35 = (double)(int)v59;\nv36 = sub_402228((__int64)v57);\nprintf(\"Details: delete markers %zu, perfect %.0f%%\\n\", v36, v34 / v35);\ni = sub_402374((__int64)v57, &v64);\nprintf(\"Details: worst run %zu (%zu deleted)\\n\", i, v64);\nprintf(\"Lookup after churn & spread (match): \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; ++i )\n{\nv53 = 5 * nmemb + 9 * i;\nv37 = sub_4020B7((__int64)v57, (__int64)&v53);\nif ( *(_QWORD *)(v37 + 8) != *(_QWORD *)&v67[4 * i + 2] )\nabort();\n}\ngettimeofday(&v62, 0LL);\nv38 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v38);\nprintf(\"Lookup after churn & spread (miss): \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; ++i )\n{\nv52 = 14 * nmemb + 9 * i;\nif ( sub_4020B7((__int64)v57, (__int64)&v52) )\nabort();\n}\ngettimeofday(&v62, 0LL);\nv39 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v39);\nprintf(\"Lookup after churn & spread (random): \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\ni = 0LL;\nj = 0LL;\nwhile ( nmemb > i )\n{\nv51 = 5 * nmemb + 9 * j;\nv40 = sub_4020B7((__int64)v57, (__int64)&v51);\nif ( *(_DWORD **)(v40 + 8) != &v67[4 * j] )\nabort();\n++i;\nj = (j + 10007) % nmemb;\n}\ngettimeofday(&v62, 0LL);\nv41 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v41);\nqword_408088 = 0LL;\nprintf(\"Deleting half after churn & spread: \");\nfflush(stdout);\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; i += 2LL )\n{\nif ( (unsigned __int8)sub_40207B((__int64)v57, *(_QWORD *)&v67[4 * i + 2]) != 1 )\nabort();\n}\ngettimeofday(&v62, 0LL);\nv42 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v42);\nprintf(\"Adding (a different) half after churn & spread: \");\nfflush(stdout);\nfor ( i = 0LL; nmemb > i; i += 2LL )\nv67[4 * i] = 6 * nmemb + 9 * i;\ngettimeofday(&tv, 0LL);\nfor ( i = 0LL; nmemb > i; i += 2LL )\nsub_40203F(v57, *(_QWORD *)&v67[4 * i + 2]);\ngettimeofday(&v62, 0LL);\nv43 = sub_402288(&tv, &v62, nmemb);\nprintf(\" %zu ns\\n\", v43);\nv44 = sub_402107((__int64)v57);\nif ( v44 < 0 )\nv45 = (double)(int)(v44 & 1 | ((unsigned __int64)v44 >> 1)) + (double)(int)(v44 & 1 | ((unsigned __int64)v44 >> 1));\nelse\nv45 = (double)(int)v44;\nv46 = 100.0 * v45;\nif ( (v59 & 0x8000000000000000LL) != 0LL )\nv47 = (double)(int)(v59 & 1 | (v59 >> 1)) + (double)(int)(v59 & 1 | (v59 >> 1));\nelse\nv47 = (double)(int)v59;\nv48 = sub_402228((__int64)v57);\nprintf(\"Details: delete markers %zu, perfect %.0f%%\\n\", v48, v46 / v47);\nreturn 0LL;\n}\n\n\n\nQ:[a2,a3,a1,v50,v51,v52,v53,v54,v55,v56,v57,v62,tv,v64,v67,nmemb,v69,sub_40201A,sub_40203F,sub_402288,sub_402107,sub_4020F0,sub_401B89,sub_4020B7,sub_40207B,sub_402228,sub_402374,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v50': 'argva', 'v51': 'n_4', 'v52': 'n_3', 'v53': 'n_2', 'v54': 'n_1', 'v55': 'n_0', 'v56': 'n', 'v57': 'ht', 'v62': 'stop', 'tv': 'start', 'v64': 'deleted', 'v67': 'objs', 'nmemb': 'num', 'v69': 'make_dumb', 'sub_40201A': 'htable_obj_init', 'sub_40203F': 'htable_obj_add', 'sub_402288': 'normalize', 'sub_402107': 'perfect', 'sub_4020F0': 'popcount', 'sub_401B89': 'update_common', 'sub_4020B7': 'htable_obj_get', 'sub_40207B': 'htable_obj_del', 'sub_402228': 'count_deleted', 'sub_402374': 'worst_run'}"}
u8g_Init
ec8fc937e4ce3fa3c7735a74b6cbc74ff046aa1e3d1bd57a582fccc52f80cf78
olikraus
u8glib
NA
uint8_t u8g_Init(u8g_t *u8g, u8g_dev_t *dev) { u8g_init_data(u8g); u8g->dev = dev; /* On the Arduino Environment this will lead to two calls to u8g_Begin(), the following line will be called first (by U8glib constructors) */ /* if - in future releases - this is removed, then still call u8g_UpdateDimension() */ /* if Arduino call u8g_UpdateDimension else u8g_Begin */ /* issue 146 */ return u8g_Begin(u8g); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41372D", "function_addr": 4273965, "binary_name": "ec8fc937e4ce3fa3c7735a74b6cbc74ff046aa1e3d1bd57a582fccc52f80cf78.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, "mov rax, [rbp+var_8]"], [6, "mov rdi, rax"], [7, "call sub_413650"], [8, "mov rax, [rbp+var_8]"], [9, "mov rdx, [rbp+var_10]"], [10, "mov [rax+8], rdx"], [11, "mov rax, [rbp+var_8]"], [12, "mov rdi, rax"], [13, "call sub_4136EC"], [14, "leave"], [15, "retn"]], "data_dep": [[5, 3], [6, 5], [8, 3], [9, 4], [10, 9], [10, 8], [11, 3], [12, 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/ec8fc937e4ce3fa3c7735a74b6cbc74ff046aa1e3d1bd57a582fccc52f80cf78_ec8fc937e4ce3fa3c7735a74b6cbc74ff046aa1e3d1bd57a582fccc52f80cf78.jsonl.gz", "strip_func_name": "sub_41372D", "query": "\n\n\n__int64 __fastcall sub_41372D(__int64 a1, __int64 a2)\n{\nsub_413650(a1);\n*(_QWORD *)(a1 + 8) = a2;\nreturn sub_4136EC(a1);\n}\n\n\n\nQ:[a1,a2,sub_41372D,sub_413650,sub_4136EC,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'u8g', 'a2': 'dev', 'sub_41372D': 'u8g_Init', 'sub_413650': 'u8g_init_data', 'sub_4136EC': 'u8g_Begin'}"}
get_NVMe_Status_Fields_From_DWord
fa7d192f403e4cd85103a5281abf24b8385f9da12ec461f965cc0a971258cb29
Seagate
openSeaChest
NA
void get_NVMe_Status_Fields_From_DWord(uint32_t nvmeStatusDWord, bool *doNotRetry, bool *more, uint8_t *statusCodeType, uint8_t *statusCode) { if (doNotRetry && more && statusCodeType && statusCode) { *doNotRetry = nvmeStatusDWord & BIT31; *more = nvmeStatusDWord & BIT30; *statusCodeType = M_GETBITRANGE(nvmeStatusDWord, 27, 25); *statusCode = M_GETBITRANGE(nvmeStatusDWord, 24, 17); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45B3FA", "function_addr": 4568058, "binary_name": "fa7d192f403e4cd85103a5281abf24b8385f9da12ec461f965cc0a971258cb29.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "mov [rbp+var_10], rsi"], [4, "mov [rbp+var_18], rdx"], [5, "mov [rbp+var_20], rcx"], [6, "mov [rbp+var_28], r8"], [7, "cmp [rbp+var_10], 0"], [8, "jz short loc_45B474"], [9, "cmp [rbp+var_18], 0"], [10, "jz short loc_45B474"], [11, "cmp [rbp+var_20], 0"], [12, "jz short loc_45B474"], [13, "cmp [rbp+var_28], 0"], [14, "jz short loc_45B474"], [15, "mov eax, [rbp+var_4]"], [16, "and eax, 80000000h"], [17, "test rax, rax"], [18, "setnz dl"], [19, "mov rax, [rbp+var_10]"], [20, "mov [rax], dl"], [21, "mov eax, [rbp+var_4]"], [22, "and eax, 40000000h"], [23, "test rax, rax"], [24, "setnz dl"], [25, "mov rax, [rbp+var_18]"], [26, "mov [rax], dl"], [27, "mov eax, [rbp+var_4]"], [28, "shr eax, 19h"], [29, "and eax, 7"], [30, "mov edx, eax"], [31, "mov rax, [rbp+var_20]"], [32, "mov [rax], dl"], [33, "mov eax, [rbp+var_4]"], [34, "shr eax, 11h"], [35, "mov edx, eax"], [36, "mov rax, [rbp+var_28]"], [37, "mov [rax], dl"], [38, "nop"], [39, "pop rbp"], [40, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 4], [10, 9], [11, 5], [12, 11], [13, 6], [14, 13], [15, 2], [16, 15], [17, 16], [18, 17], [19, 3], [20, 19], [20, 18], [21, 2], [22, 21], [23, 22], [24, 23], [24, 18], [25, 4], [26, 24], [26, 25], [27, 2], [28, 27], [29, 28], [30, 29], [31, 5], [32, 31], [32, 30], [33, 2], [34, 33], [35, 34], [36, 6], [37, 36], [37, 35], [39, 0], [40, 36]]}
{"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/fa7d192f403e4cd85103a5281abf24b8385f9da12ec461f965cc0a971258cb29_fa7d192f403e4cd85103a5281abf24b8385f9da12ec461f965cc0a971258cb29.jsonl.gz", "strip_func_name": "sub_45B3FA", "query": "\n\n\n_BYTE *__fastcall sub_45B3FA(int a1, bool *a2, bool *a3, _BYTE *a4, _BYTE *a5)\n{\n_BYTE *result; // rax\n\nif ( a2 && a3 && a4 )\n{\nif ( a5 )\n{\n*a2 = a1 < 0;\n*a3 = (a1 & 0x40000000) != 0LL;\n*a4 = ((unsigned int)a1 >> 25) & 7;\nresult = a5;\n*a5 = (unsigned int)a1 >> 17;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,sub_45B3FA,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'more', 'a4': 'statusCodeType', 'a1': 'nvmeStatusDWord', 'a2': 'doNotRetry', 'a5': 'statusCode', 'sub_45B3FA': 'get_NVMe_Status_Fields_From_DWord'}"}
dwarf_get_TAG_name
92ba70718f06e827d9a717d0136680f8af85a2b0fe3ef4153be1eb80b8c49ffe
avast
libdwarf
NA
int dwarf_get_TAG_name (unsigned int val,const char ** s_out) { switch (val) { case DW_TAG_array_type: *s_out = "DW_TAG_array_type"; return DW_DLV_OK; case DW_TAG_class_type: *s_out = "DW_TAG_class_type"; return DW_DLV_OK; case DW_TAG_entry_point: *s_out = "DW_TAG_entry_point"; return DW_DLV_OK; case DW_TAG_enumeration_type: *s_out = "DW_TAG_enumeration_type"; return DW_DLV_OK; case DW_TAG_formal_parameter: *s_out = "DW_TAG_formal_parameter"; return DW_DLV_OK; case DW_TAG_imported_declaration: *s_out = "DW_TAG_imported_declaration"; return DW_DLV_OK; case DW_TAG_label: *s_out = "DW_TAG_label"; return DW_DLV_OK; case DW_TAG_lexical_block: *s_out = "DW_TAG_lexical_block"; return DW_DLV_OK; case DW_TAG_member: *s_out = "DW_TAG_member"; return DW_DLV_OK; case DW_TAG_pointer_type: *s_out = "DW_TAG_pointer_type"; return DW_DLV_OK; case DW_TAG_reference_type: *s_out = "DW_TAG_reference_type"; return DW_DLV_OK; case DW_TAG_compile_unit: *s_out = "DW_TAG_compile_unit"; return DW_DLV_OK; case DW_TAG_string_type: *s_out = "DW_TAG_string_type"; return DW_DLV_OK; case DW_TAG_structure_type: *s_out = "DW_TAG_structure_type"; return DW_DLV_OK; case DW_TAG_subroutine_type: *s_out = "DW_TAG_subroutine_type"; return DW_DLV_OK; case DW_TAG_typedef: *s_out = "DW_TAG_typedef"; return DW_DLV_OK; case DW_TAG_union_type: *s_out = "DW_TAG_union_type"; return DW_DLV_OK; case DW_TAG_unspecified_parameters: *s_out = "DW_TAG_unspecified_parameters"; return DW_DLV_OK; case DW_TAG_variant: *s_out = "DW_TAG_variant"; return DW_DLV_OK; case DW_TAG_common_block: *s_out = "DW_TAG_common_block"; return DW_DLV_OK; case DW_TAG_common_inclusion: *s_out = "DW_TAG_common_inclusion"; return DW_DLV_OK; case DW_TAG_inheritance: *s_out = "DW_TAG_inheritance"; return DW_DLV_OK; case DW_TAG_inlined_subroutine: *s_out = "DW_TAG_inlined_subroutine"; return DW_DLV_OK; case DW_TAG_module: *s_out = "DW_TAG_module"; return DW_DLV_OK; case DW_TAG_ptr_to_member_type: *s_out = "DW_TAG_ptr_to_member_type"; return DW_DLV_OK; case DW_TAG_set_type: *s_out = "DW_TAG_set_type"; return DW_DLV_OK; case DW_TAG_subrange_type: *s_out = "DW_TAG_subrange_type"; return DW_DLV_OK; case DW_TAG_with_stmt: *s_out = "DW_TAG_with_stmt"; return DW_DLV_OK; case DW_TAG_access_declaration: *s_out = "DW_TAG_access_declaration"; return DW_DLV_OK; case DW_TAG_base_type: *s_out = "DW_TAG_base_type"; return DW_DLV_OK; case DW_TAG_catch_block: *s_out = "DW_TAG_catch_block"; return DW_DLV_OK; case DW_TAG_const_type: *s_out = "DW_TAG_const_type"; return DW_DLV_OK; case DW_TAG_constant: *s_out = "DW_TAG_constant"; return DW_DLV_OK; case DW_TAG_enumerator: *s_out = "DW_TAG_enumerator"; return DW_DLV_OK; case DW_TAG_file_type: *s_out = "DW_TAG_file_type"; return DW_DLV_OK; case DW_TAG_friend: *s_out = "DW_TAG_friend"; return DW_DLV_OK; case DW_TAG_namelist: *s_out = "DW_TAG_namelist"; return DW_DLV_OK; case DW_TAG_namelist_item: *s_out = "DW_TAG_namelist_item"; return DW_DLV_OK; case DW_TAG_packed_type: *s_out = "DW_TAG_packed_type"; return DW_DLV_OK; case DW_TAG_subprogram: *s_out = "DW_TAG_subprogram"; return DW_DLV_OK; case DW_TAG_template_type_parameter: *s_out = "DW_TAG_template_type_parameter"; return DW_DLV_OK; case DW_TAG_template_value_parameter: *s_out = "DW_TAG_template_value_parameter"; return DW_DLV_OK; case DW_TAG_thrown_type: *s_out = "DW_TAG_thrown_type"; return DW_DLV_OK; case DW_TAG_try_block: *s_out = "DW_TAG_try_block"; return DW_DLV_OK; case DW_TAG_variant_part: *s_out = "DW_TAG_variant_part"; return DW_DLV_OK; case DW_TAG_variable: *s_out = "DW_TAG_variable"; return DW_DLV_OK; case DW_TAG_volatile_type: *s_out = "DW_TAG_volatile_type"; return DW_DLV_OK; case DW_TAG_dwarf_procedure: *s_out = "DW_TAG_dwarf_procedure"; return DW_DLV_OK; case DW_TAG_restrict_type: *s_out = "DW_TAG_restrict_type"; return DW_DLV_OK; case DW_TAG_interface_type: *s_out = "DW_TAG_interface_type"; return DW_DLV_OK; case DW_TAG_namespace: *s_out = "DW_TAG_namespace"; return DW_DLV_OK; case DW_TAG_imported_module: *s_out = "DW_TAG_imported_module"; return DW_DLV_OK; case DW_TAG_unspecified_type: *s_out = "DW_TAG_unspecified_type"; return DW_DLV_OK; case DW_TAG_partial_unit: *s_out = "DW_TAG_partial_unit"; return DW_DLV_OK; case DW_TAG_imported_unit: *s_out = "DW_TAG_imported_unit"; return DW_DLV_OK; case DW_TAG_mutable_type: *s_out = "DW_TAG_mutable_type"; return DW_DLV_OK; case DW_TAG_condition: *s_out = "DW_TAG_condition"; return DW_DLV_OK; case DW_TAG_shared_type: *s_out = "DW_TAG_shared_type"; return DW_DLV_OK; case DW_TAG_type_unit: *s_out = "DW_TAG_type_unit"; return DW_DLV_OK; case DW_TAG_rvalue_reference_type: *s_out = "DW_TAG_rvalue_reference_type"; return DW_DLV_OK; case DW_TAG_template_alias: *s_out = "DW_TAG_template_alias"; return DW_DLV_OK; case DW_TAG_coarray_type: *s_out = "DW_TAG_coarray_type"; return DW_DLV_OK; case DW_TAG_generic_subrange: *s_out = "DW_TAG_generic_subrange"; return DW_DLV_OK; case DW_TAG_dynamic_type: *s_out = "DW_TAG_dynamic_type"; return DW_DLV_OK; case DW_TAG_atomic_type: *s_out = "DW_TAG_atomic_type"; return DW_DLV_OK; case DW_TAG_call_site: *s_out = "DW_TAG_call_site"; return DW_DLV_OK; case DW_TAG_call_site_parameter: *s_out = "DW_TAG_call_site_parameter"; return DW_DLV_OK; case DW_TAG_lo_user: *s_out = "DW_TAG_lo_user"; return DW_DLV_OK; case DW_TAG_MIPS_loop: *s_out = "DW_TAG_MIPS_loop"; return DW_DLV_OK; case DW_TAG_HP_array_descriptor: *s_out = "DW_TAG_HP_array_descriptor"; return DW_DLV_OK; case DW_TAG_format_label: *s_out = "DW_TAG_format_label"; return DW_DLV_OK; case DW_TAG_function_template: *s_out = "DW_TAG_function_template"; return DW_DLV_OK; case DW_TAG_class_template: *s_out = "DW_TAG_class_template"; return DW_DLV_OK; case DW_TAG_GNU_BINCL: *s_out = "DW_TAG_GNU_BINCL"; return DW_DLV_OK; case DW_TAG_GNU_EINCL: *s_out = "DW_TAG_GNU_EINCL"; return DW_DLV_OK; case DW_TAG_GNU_template_template_parameter: *s_out = "DW_TAG_GNU_template_template_parameter"; return DW_DLV_OK; case DW_TAG_GNU_template_parameter_pack: *s_out = "DW_TAG_GNU_template_parameter_pack"; return DW_DLV_OK; case DW_TAG_GNU_formal_parameter_pack: *s_out = "DW_TAG_GNU_formal_parameter_pack"; return DW_DLV_OK; case DW_TAG_GNU_call_site: *s_out = "DW_TAG_GNU_call_site"; return DW_DLV_OK; case DW_TAG_GNU_call_site_parameter: *s_out = "DW_TAG_GNU_call_site_parameter"; return DW_DLV_OK; case DW_TAG_SUN_function_template: *s_out = "DW_TAG_SUN_function_template"; return DW_DLV_OK; case DW_TAG_SUN_class_template: *s_out = "DW_TAG_SUN_class_template"; return DW_DLV_OK; case DW_TAG_SUN_struct_template: *s_out = "DW_TAG_SUN_struct_template"; return DW_DLV_OK; case DW_TAG_SUN_union_template: *s_out = "DW_TAG_SUN_union_template"; return DW_DLV_OK; case DW_TAG_SUN_indirect_inheritance: *s_out = "DW_TAG_SUN_indirect_inheritance"; return DW_DLV_OK; case DW_TAG_SUN_codeflags: *s_out = "DW_TAG_SUN_codeflags"; return DW_DLV_OK; case DW_TAG_SUN_memop_info: *s_out = "DW_TAG_SUN_memop_info"; return DW_DLV_OK; case DW_TAG_SUN_omp_child_func: *s_out = "DW_TAG_SUN_omp_child_func"; return DW_DLV_OK; case DW_TAG_SUN_rtti_descriptor: *s_out = "DW_TAG_SUN_rtti_descriptor"; return DW_DLV_OK; case DW_TAG_SUN_dtor_info: *s_out = "DW_TAG_SUN_dtor_info"; return DW_DLV_OK; case DW_TAG_SUN_dtor: *s_out = "DW_TAG_SUN_dtor"; return DW_DLV_OK; case DW_TAG_SUN_f90_interface: *s_out = "DW_TAG_SUN_f90_interface"; return DW_DLV_OK; case DW_TAG_SUN_fortran_vax_structure: *s_out = "DW_TAG_SUN_fortran_vax_structure"; return DW_DLV_OK; case DW_TAG_SUN_hi: *s_out = "DW_TAG_SUN_hi"; return DW_DLV_OK; case DW_TAG_ALTIUM_circ_type: *s_out = "DW_TAG_ALTIUM_circ_type"; return DW_DLV_OK; case DW_TAG_ALTIUM_mwa_circ_type: *s_out = "DW_TAG_ALTIUM_mwa_circ_type"; return DW_DLV_OK; case DW_TAG_ALTIUM_rev_carry_type: *s_out = "DW_TAG_ALTIUM_rev_carry_type"; return DW_DLV_OK; case DW_TAG_ALTIUM_rom: *s_out = "DW_TAG_ALTIUM_rom"; return DW_DLV_OK; case DW_TAG_upc_shared_type: *s_out = "DW_TAG_upc_shared_type"; return DW_DLV_OK; case DW_TAG_upc_strict_type: *s_out = "DW_TAG_upc_strict_type"; return DW_DLV_OK; case DW_TAG_upc_relaxed_type: *s_out = "DW_TAG_upc_relaxed_type"; return DW_DLV_OK; case DW_TAG_PGI_kanji_type: *s_out = "DW_TAG_PGI_kanji_type"; return DW_DLV_OK; case DW_TAG_PGI_interface_block: *s_out = "DW_TAG_PGI_interface_block"; return DW_DLV_OK; case DW_TAG_hi_user: *s_out = "DW_TAG_hi_user"; return DW_DLV_OK; } return DW_DLV_NO_ENTRY; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414410", "function_addr": 4277264, "binary_name": "92ba70718f06e827d9a717d0136680f8af85a2b0fe3ef4153be1eb80b8c49ffe.elf_extract.pkl\n"}, "code": [[0, "cmp edi, 3Ah "], [1, "jz loc_414B64"], [2, "jbe short loc_414478"], [3, "cmp edi, 4108h"], [4, "jz loc_4146E0"], [5, "ja loc_4144E0"], [6, "cmp edi, 47h "], [7, "jz loc_414B96"], [8, "ja loc_4145D0"], [9, "cmp edi, 40h "], [10, "jz loc_414AF6"], [11, "jbe loc_4147F8"], [12, "cmp edi, 43h "], [13, "jz loc_414712"], [14, "jbe loc_414960"], [15, "cmp edi, 45h "], [16, "jz loc_414CC8"], [17, "jbe loc_414C14"], [18, "mov qword ptr [rsi], offset aDwTagDynamicTy"], [19, "xor eax, eax"], [20, "retn"], [21, "cmp edi, 20h "], [22, "jz loc_414AB0"], [23, "ja loc_414548"], [24, "cmp edi, 12h"], [25, "jz loc_414BAA"], [26, "ja loc_414590"], [27, "cmp edi, 8"], [28, "jz loc_414ACE"], [29, "jbe loc_414858"], [30, "cmp edi, 0Dh"], [31, "jz loc_414726"], [32, "jbe loc_414888"], [33, "cmp edi, 10h"], [34, "jz loc_414BBE"], [35, "ja loc_414ABA"], [36, "cmp edi, 0Fh"], [37, "jnz loc_414BF0"], [38, "mov qword ptr [rsi], offset aDwTagPointerTy"], [39, "xor eax, eax"], [40, "retn"], [41, "cmp edi, 420Bh"], [42, "jz loc_414BB4"], [43, "jbe loc_414650"], [44, "cmp edi, 5111h"], [45, "jz loc_414B5A"], [46, "ja loc_414690"], [47, "cmp edi, 42FFh"], [48, "jz loc_4146CC"], [49, "jbe loc_4148F0"], [50, "cmp edi, 5102h"], [51, "jz loc_414C00"], [52, "cmp edi, 5103h"], [53, "jz loc_414BF6"], [54, "cmp edi, 5101h"], [55, "jnz loc_414BF0"], [56, "mov qword ptr [rsi], offset aDwTagAltiumCir"], [57, "xor eax, eax"], [58, "retn"], [59, "cmp edi, 2Dh "], [60, "jz loc_414BA0"], [61, "ja loc_414610"], [62, "cmp edi, 26h "], [63, "jz loc_414D04"], [64, "jbe loc_414828"], [65, "cmp edi, 29h "], [66, "jz loc_4146FE"], [67, "jbe loc_4149A8"], [68, "cmp edi, 2Bh "], [69, "jz loc_414C78"], [70, "jbe loc_414B46"], [71, "mov qword ptr [rsi], offset aDwTagNamelistI"], [72, "xor eax, eax"], [73, "retn"], [74, "cmp edi, 19h"], [75, "jz loc_414B1E"], [76, "jbe loc_414790"], [77, "cmp edi, 1Ch"], [78, "jz loc_41471C"], [79, "jbe loc_4148D0"], [80, "cmp edi, 1Eh"], [81, "jz loc_414CB4"], [82, "jbe loc_414C8C"], [83, "mov qword ptr [rsi], offset aDwTagPtrToMemb"], [84, "xor eax, eax"], [85, "retn"], [86, "cmp edi, 4101h"], [87, "jz loc_414B50"], [88, "jbe loc_414730"], [89, "cmp edi, 4104h"], [90, "jz loc_414708"], [91, "jbe loc_414918"], [92, "cmp edi, 4106h"], [93, "jz loc_414CA0"], [94, "jbe loc_414C96"], [95, "mov qword ptr [rsi], offset aDwTagGnuTempla"], [96, "xor eax, eax"], [97, "retn"], [98, "cmp edi, 33h "], [99, "jz loc_414B6E"], [100, "jbe loc_414760"], [101, "cmp edi, 36h "], [102, "jz loc_4146F4"], [103, "jbe loc_414940"], [104, "cmp edi, 38h "], [105, "jz loc_414C50"], [106, "jbe loc_414C46"], [107, "mov qword ptr [rsi], offset aDwTagNamespace"], [108, "xor eax, eax"], [109, "retn"], [110, "cmp edi, 4204h"], [111, "jz loc_414CDC"], [112, "jbe loc_4147C0"], [113, "cmp edi, 4207h"], [114, "jz loc_4146EA"], [115, "jbe loc_4148A8"], [116, "cmp edi, 4209h"], [117, "jz loc_414C64"], [118, "jbe loc_414C3C"], [119, "mov qword ptr [rsi], offset aDwTagSunDtorIn"], [120, "xor eax, eax"], [121, "retn"], [122, "cmp edi, 8767h"], [123, "jz short loc_4146D6"], [124, "jbe loc_414980"], [125, "cmp edi, 0A020h"], [126, "jz loc_414C28"], [127, "cmp edi, 0FFFFh"], [128, "jz loc_414C1E"], [129, "cmp edi, 0A000h"], [130, "jnz loc_414BF0"], [131, "mov qword ptr [rsi], offset aDwTagPgiKanjiT"], [132, "xor eax, eax"], [133, "retn"], [134, "mov qword ptr [rsi], offset aDwTagSunHi"], [135, "xor eax, eax"], [136, "retn"], [137, "mov qword ptr [rsi], offset aDwTagUpcRelaxe"], [138, "xor eax, eax"], [139, "retn"], [140, "mov qword ptr [rsi], offset aDwTagGnuFormal"], [141, "xor eax, eax"], [142, "retn"], [143, "mov qword ptr [rsi], offset aDwTagSunMemopI"], [144, "xor eax, eax"], [145, "retn"], [146, "mov qword ptr [rsi], offset aDwTagDwarfProc"], [147, "xor eax, eax"], [148, "retn"], [149, "mov qword ptr [rsi], offset aDwTagFileType"], [150, "xor eax, eax"], [151, "retn"], [152, "mov qword ptr [rsi], offset aDwTagGnuBincl"], [153, "xor eax, eax"], [154, "retn"], [155, "mov qword ptr [rsi], offset aDwTagTemplateA"], [156, "xor eax, eax"], [157, "retn"], [158, "mov qword ptr [rsi], offset aDwTagInheritan"], [159, "xor eax, eax"], [160, "retn"], [161, "mov qword ptr [rsi], offset aDwTagMember"], [162, "xor eax, eax"], [163, "retn"], [164, "cmp edi, 4080h"], [165, "jz loc_414B82"], [166, "ja loc_414A30"], [167, "cmp edi, 48h "], [168, "jz loc_414B78"], [169, "cmp edi, 49h "], [170, "jnz loc_414BF0"], [171, "mov qword ptr [rsi], offset aDwTagCallSiteP"], [172, "xor eax, eax"], [173, "retn"], [174, "cmp edi, 30h "], [175, "jz loc_414B32"], [176, "ja loc_414A10"], [177, "cmp edi, 2Eh "], [178, "jz loc_414B28"], [179, "cmp edi, 2Fh "], [180, "jnz loc_414BF0"], [181, "mov qword ptr [rsi], offset aDwTagTemplateT"], [182, "xor eax, eax"], [183, "retn"], [184, "cmp edi, 16h"], [185, "jz loc_414CF0"], [186, "ja loc_414A78"], [187, "cmp edi, 13h"], [188, "jz loc_414CE6"], [189, "cmp edi, 15h"], [190, "jnz loc_414BF0"], [191, "mov qword ptr [rsi], offset aDwTagSubroutin"], [192, "xor eax, eax"], [193, "retn"], [194, "cmp edi, 4201h"], [195, "jz loc_414B0A"], [196, "ja loc_4149E8"], [197, "cmp edi, 4109h"], [198, "jz loc_414B00"], [199, "cmp edi, 410Ah"], [200, "jnz loc_414BF0"], [201, "mov qword ptr [rsi], offset aDwTagGnuCallSi"], [202, "xor eax, eax"], [203, "retn"], [204, "cmp edi, 3Dh "], [205, "jz loc_414D18"], [206, "ja loc_414A98"], [207, "cmp edi, 3Bh "], [208, "jz loc_414D0E"], [209, "cmp edi, 3Ch "], [210, "jnz loc_414BF0"], [211, "mov qword ptr [rsi], offset aDwTagPartialUn"], [212, "xor eax, eax"], [213, "retn"], [214, "cmp edi, 23h "], [215, "jz loc_414AE2"], [216, "ja loc_4149C8"], [217, "cmp edi, 21h "], [218, "jz loc_414AD8"], [219, "cmp edi, 22h "], [220, "jnz loc_414BF0"], [221, "mov qword ptr [rsi], offset aDwTagWithStmt"], [222, "xor eax, eax"], [223, "retn"], [224, "cmp edi, 3"], [225, "jz loc_414BD2"], [226, "ja loc_414A58"], [227, "cmp edi, 1"], [228, "jz loc_414BC8"], [229, "cmp edi, 2"], [230, "jnz loc_414BF0"], [231, "mov qword ptr [rsi], offset aDwTagClassType"], [232, "xor eax, eax"], [233, "retn"], [234, "cmp edi, 0Ah"], [235, "jz loc_414C6E"], [236, "cmp edi, 0Bh"], [237, "jnz loc_414BF0"], [238, "mov qword ptr [rsi], offset aDwTagLexicalBl"], [239, "xor eax, eax"], [240, "retn"], [241, "cmp edi, 4205h"], [242, "jz loc_414CBE"], [243, "cmp edi, 4206h"], [244, "jnz loc_414BF0"], [245, "mov qword ptr [rsi], offset aDwTagSunCodefl"], [246, "xor eax, eax"], [247, "retn"], [248, "cmp edi, 1Ah"], [249, "jz loc_414C0A"], [250, "cmp edi, 1Bh"], [251, "jnz loc_414BF0"], [252, "mov qword ptr [rsi], offset aDwTagCommonInc"], [253, "xor eax, eax"], [254, "retn"], [255, "cmp edi, 420Ch"], [256, "jz loc_414CAA"], [257, "cmp edi, 420Dh"], [258, "jnz loc_414BF0"], [259, "mov qword ptr [rsi], offset aDwTagSunFortra"], [260, "xor eax, eax"], [261, "retn"], [262, "cmp edi, 4102h"], [263, "jz loc_414C5A"], [264, "cmp edi, 4103h"], [265, "jnz loc_414BF0"], [266, "mov qword ptr [rsi], offset aDwTagClassTemp"], [267, "xor eax, eax"], [268, "retn"], [269, "cmp edi, 34h "], [270, "jz loc_414CD2"], [271, "cmp edi, 35h "], [272, "jnz loc_414BF0"], [273, "mov qword ptr [rsi], offset aDwTagVolatileT"], [274, "xor eax, eax"], [275, "retn"], [276, "cmp edi, 41h "], [277, "jz loc_414C32"], [278, "cmp edi, 42h "], [279, "jnz loc_414BF0"], [280, "mov qword ptr [rsi], offset aDwTagRvalueRef"], [281, "xor eax, eax"], [282, "retn"], [283, "cmp edi, 8765h"], [284, "jz loc_414C82"], [285, "cmp edi, 8766h"], [286, "jnz loc_414BF0"], [287, "mov qword ptr [rsi], offset aDwTagUpcStrict"], [288, "xor eax, eax"], [289, "retn"], [290, "cmp edi, 27h "], [291, "jz loc_414AEC"], [292, "cmp edi, 28h "], [293, "jnz loc_414BF0"], [294, "mov qword ptr [rsi], offset aDwTagEnumerato"], [295, "xor eax, eax"], [296, "retn"], [297, "cmp edi, 24h "], [298, "jz loc_414B14"], [299, "cmp edi, 25h "], [300, "jnz loc_414BF0"], [301, "mov qword ptr [rsi], offset aDwTagCatchBloc"], [302, "xor eax, eax"], [303, "retn"], [304, "cmp edi, 4202h"], [305, "jz loc_414B3C"], [306, "cmp edi, 4203h"], [307, "jnz loc_414BF0"], [308, "mov qword ptr [rsi], offset aDwTagSunStruct"], [309, "xor eax, eax"], [310, "retn"], [311, "cmp edi, 31h "], [312, "jz loc_414B8C"], [313, "cmp edi, 32h "], [314, "jnz loc_414BF0"], [315, "mov qword ptr [rsi], offset aDwTagTryBlock"], [316, "xor eax, eax"], [317, "retn"], [318, "cmp edi, 4081h"], [319, "jz loc_414BDC"], [320, "cmp edi, 4090h"], [321, "jnz loc_414BF0"], [322, "mov qword ptr [rsi], offset aDwTagHpArrayDe"], [323, "xor eax, eax"], [324, "retn"], [325, "cmp edi, 4"], [326, "jz loc_414CFA"], [327, "cmp edi, 5"], [328, "jnz loc_414BF0"], [329, "mov qword ptr [rsi], offset aDwTagFormalPar"], [330, "xor eax, eax"], [331, "retn"], [332, "cmp edi, 17h"], [333, "jz loc_414D22"], [334, "cmp edi, 18h"], [335, "jnz loc_414BF0"], [336, "mov qword ptr [rsi], offset aDwTagUnspecifi"], [337, "xor eax, eax"], [338, "retn"], [339, "cmp edi, 3Eh "], [340, "jz short loc_414AC4"], [341, "cmp edi, 3Fh "], [342, "jnz loc_414BF0"], [343, "mov qword ptr [rsi], offset aDwTagCondition"], [344, "xor eax, eax"], [345, "retn"], [346, "mov qword ptr [rsi], offset aDwTagSetType"], [347, "xor eax, eax"], [348, "retn"], [349, "mov qword ptr [rsi], offset aDwTagCompileUn"], [350, "xor eax, eax"], [351, "retn"], [352, "mov qword ptr [rsi], offset aDwTagMutableTy"], [353, "xor eax, eax"], [354, "retn"], [355, "mov qword ptr [rsi], offset aDwTagImportedD"], [356, "xor eax, eax"], [357, "retn"], [358, "mov qword ptr [rsi], offset aDwTagSubrangeT"], [359, "xor eax, eax"], [360, "retn"], [361, "mov qword ptr [rsi], offset aDwTagAccessDec"], [362, "xor eax, eax"], [363, "retn"], [364, "mov qword ptr [rsi], offset aDwTagConstant"], [365, "xor eax, eax"], [366, "retn"], [367, "mov qword ptr [rsi], offset aDwTagSharedTyp"], [368, "xor eax, eax"], [369, "retn"], [370, "mov qword ptr [rsi], offset aDwTagGnuCallSi_0"], [371, "xor eax, eax"], [372, "retn"], [373, "mov qword ptr [rsi], offset aDwTagSunFuncti"], [374, "xor eax, eax"], [375, "retn"], [376, "mov qword ptr [rsi], offset aDwTagBaseType"], [377, "xor eax, eax"], [378, "retn"], [379, "mov qword ptr [rsi], offset aDwTagVariant"], [380, "xor eax, eax"], [381, "retn"], [382, "mov qword ptr [rsi], offset aDwTagSubprogra"], [383, "xor eax, eax"], [384, "retn"], [385, "mov qword ptr [rsi], offset aDwTagTemplateV"], [386, "xor eax, eax"], [387, "retn"], [388, "mov qword ptr [rsi], offset aDwTagSunClassT"], [389, "xor eax, eax"], [390, "retn"], [391, "mov qword ptr [rsi], offset aDwTagFriend"], [392, "xor eax, eax"], [393, "retn"], [394, "mov qword ptr [rsi], offset aDwTagFormatLab"], [395, "xor eax, eax"], [396, "retn"], [397, "mov qword ptr [rsi], offset aDwTagAltiumRom"], [398, "xor eax, eax"], [399, "retn"], [400, "mov qword ptr [rsi], offset aDwTagImportedM"], [401, "xor eax, eax"], [402, "retn"], [403, "mov qword ptr [rsi], offset aDwTagVariantPa"], [404, "xor eax, eax"], [405, "retn"], [406, "mov qword ptr [rsi], offset aDwTagCallSite"], [407, "xor eax, eax"], [408, "retn"], [409, "mov qword ptr [rsi], offset aDwTagLoUser"], [410, "xor eax, eax"], [411, "retn"], [412, "mov qword ptr [rsi], offset aDwTagThrownTyp"], [413, "xor eax, eax"], [414, "retn"], [415, "mov qword ptr [rsi], offset aDwTagAtomicTyp"], [416, "xor eax, eax"], [417, "retn"], [418, "mov qword ptr [rsi], offset aDwTagPackedTyp"], [419, "xor eax, eax"], [420, "retn"], [421, "mov qword ptr [rsi], offset aDwTagStringTyp"], [422, "xor eax, eax"], [423, "retn"], [424, "mov qword ptr [rsi], offset aDwTagSunDtor"], [425, "xor eax, eax"], [426, "retn"], [427, "mov qword ptr [rsi], offset aDwTagReference"], [428, "xor eax, eax"], [429, "retn"], [430, "mov qword ptr [rsi], offset aDwTagArrayType"], [431, "xor eax, eax"], [432, "retn"], [433, "mov qword ptr [rsi], offset aDwTagEntryPoin"], [434, "xor eax, eax"], [435, "retn"], [436, "mov qword ptr [rsi], offset aDwTagMipsLoop"], [437, "xor eax, eax"], [438, "retn"], [439, "mov eax, 0FFFFFFFFh"], [440, "retn"], [441, "mov qword ptr [rsi], offset aDwTagAltiumRev"], [442, "xor eax, eax"], [443, "retn"], [444, "mov qword ptr [rsi], offset aDwTagAltiumMwa"], [445, "xor eax, eax"], [446, "retn"], [447, "mov qword ptr [rsi], offset aDwTagCommonBlo"], [448, "xor eax, eax"], [449, "retn"], [450, "mov qword ptr [rsi], offset aDwTagCoarrayTy"], [451, "xor eax, eax"], [452, "retn"], [453, "mov qword ptr [rsi], offset aDwTagHiUser"], [454, "xor eax, eax"], [455, "retn"], [456, "mov qword ptr [rsi], offset aDwTagPgiInterf"], [457, "xor eax, eax"], [458, "retn"], [459, "mov qword ptr [rsi], offset aDwTagTypeUnit"], [460, "xor eax, eax"], [461, "retn"], [462, "mov qword ptr [rsi], offset aDwTagSunOmpChi"], [463, "xor eax, eax"], [464, "retn"], [465, "mov qword ptr [rsi], offset aDwTagRestrictT"], [466, "xor eax, eax"], [467, "retn"], [468, "mov qword ptr [rsi], offset aDwTagInterface"], [469, "xor eax, eax"], [470, "retn"], [471, "mov qword ptr [rsi], offset aDwTagFunctionT"], [472, "xor eax, eax"], [473, "retn"], [474, "mov qword ptr [rsi], offset aDwTagSunRttiDe"], [475, "xor eax, eax"], [476, "retn"], [477, "mov qword ptr [rsi], offset aDwTagLabel"], [478, "xor eax, eax"], [479, "retn"], [480, "mov qword ptr [rsi], offset aDwTagNamelist"], [481, "xor eax, eax"], [482, "retn"], [483, "mov qword ptr [rsi], offset aDwTagUpcShared"], [484, "xor eax, eax"], [485, "retn"], [486, "mov qword ptr [rsi], offset aDwTagInlinedSu"], [487, "xor eax, eax"], [488, "retn"], [489, "mov qword ptr [rsi], offset aDwTagGnuEincl"], [490, "xor eax, eax"], [491, "retn"], [492, "mov qword ptr [rsi], offset aDwTagGnuTempla_0"], [493, "xor eax, eax"], [494, "retn"], [495, "mov qword ptr [rsi], offset aDwTagSunF90Int"], [496, "xor eax, eax"], [497, "retn"], [498, "mov qword ptr [rsi], offset aDwTagModule"], [499, "xor eax, eax"], [500, "retn"], [501, "mov qword ptr [rsi], offset aDwTagSunIndire"], [502, "xor eax, eax"], [503, "retn"], [504, "mov qword ptr [rsi], offset aDwTagGenericSu"], [505, "xor eax, eax"], [506, "retn"], [507, "mov qword ptr [rsi], offset aDwTagVariable"], [508, "xor eax, eax"], [509, "retn"], [510, "mov qword ptr [rsi], offset aDwTagSunUnionT"], [511, "xor eax, eax"], [512, "retn"], [513, "mov qword ptr [rsi], offset aDwTagStructure"], [514, "xor eax, eax"], [515, "retn"], [516, "mov qword ptr [rsi], offset aDwTagTypedef"], [517, "xor eax, eax"], [518, "retn"], [519, "mov qword ptr [rsi], offset aDwTagEnumerati"], [520, "xor eax, eax"], [521, "retn"], [522, "mov qword ptr [rsi], offset aDwTagConstType"], [523, "xor eax, eax"], [524, "retn"], [525, "mov qword ptr [rsi], offset aDwTagUnspecifi_0"], [526, "xor eax, eax"], [527, "retn"], [528, "mov qword ptr [rsi], offset aDwTagImportedU"], [529, "xor eax, eax"], [530, "retn"], [531, "mov qword ptr [rsi], offset aDwTagUnionType"], [532, "xor eax, eax"], [533, "retn"]], "data_dep": [[1, 0], [2, 0], [4, 3], [5, 3], [7, 6], [8, 6], [10, 9], [11, 9], [13, 12], [14, 12], [16, 15], [17, 15], [20, 19], [22, 21], [23, 21], [25, 24], [26, 24], [28, 27], [29, 27], [31, 30], [32, 30], [34, 33], [35, 33], [37, 36], [40, 39], [42, 41], [43, 41], [45, 44], [46, 44], [48, 47], [49, 47], [51, 50], [53, 52], [55, 54], [58, 57], [60, 59], [61, 59], [63, 62], [64, 62], [66, 65], [67, 65], [69, 68], [70, 68], [73, 72], [75, 74], [76, 74], [78, 77], [79, 77], [81, 80], [82, 80], [85, 84], [87, 86], [88, 86], [90, 89], [91, 89], [93, 92], [94, 92], [97, 96], [99, 98], [100, 98], [102, 101], [103, 101], [105, 104], [106, 104], [109, 108], [111, 110], [112, 110], [114, 113], [115, 113], [117, 116], [118, 116], [121, 120], [123, 122], [124, 122], [126, 125], [128, 127], [130, 129], [133, 132], [136, 135], [139, 138], [142, 141], [145, 144], [148, 147], [151, 150], [154, 153], [157, 156], [160, 159], [163, 162], [165, 164], [166, 164], [168, 167], [170, 169], [173, 172], [175, 174], [176, 174], [178, 177], [180, 179], [183, 182], [185, 184], [186, 184], [188, 187], [190, 189], [193, 192], [195, 194], [196, 194], [198, 197], [200, 199], [203, 202], [205, 204], [206, 204], [208, 207], [210, 209], [213, 212], [215, 214], [216, 214], [218, 217], [220, 219], [223, 222], [225, 224], [226, 224], [228, 227], [230, 229], [233, 232], [235, 234], [237, 236], [240, 239], [242, 241], [244, 243], [247, 246], [249, 248], [251, 250], [254, 253], [256, 255], [258, 257], [261, 260], [263, 262], [265, 264], [268, 267], [270, 269], [272, 271], [275, 274], [277, 276], [279, 278], [282, 281], [284, 283], [286, 285], [289, 288], [291, 290], [293, 292], [296, 295], [298, 297], [300, 299], [303, 302], [305, 304], [307, 306], [310, 309], [312, 311], [314, 313], [317, 316], [319, 318], [321, 320], [324, 323], [326, 325], [328, 327], [331, 330], [333, 332], [335, 334], [338, 337], [340, 339], [342, 341], [345, 344], [348, 347], [351, 350], [354, 353], [357, 356], [360, 359], [363, 362], [366, 365], [369, 368], [372, 371], [375, 374], [378, 377], [381, 380], [384, 383], [387, 386], [390, 389], [393, 392], [396, 395], [399, 398], [402, 401], [405, 404], [408, 407], [411, 410], [414, 413], [417, 416], [420, 419], [423, 422], [426, 425], [429, 428], [432, 431], [435, 434], [438, 437], [440, 439], [443, 442], [446, 445], [449, 448], [452, 451], [455, 454], [458, 457], [461, 460], [464, 463], [467, 466], [470, 469], [473, 472], [476, 475], [479, 478], [482, 481], [485, 484], [488, 487], [491, 490], [494, 493], [497, 496], [500, 499], [503, 502], [506, 505], [509, 508], [512, 511], [515, 514], [518, 517], [521, 520], [524, 523], [527, 526], [530, 529], [533, 532]]}
{"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/92ba70718f06e827d9a717d0136680f8af85a2b0fe3ef4153be1eb80b8c49ffe_92ba70718f06e827d9a717d0136680f8af85a2b0fe3ef4153be1eb80b8c49ffe.jsonl.gz", "strip_func_name": "sub_414410", "query": "\n\n\n__int64 __fastcall sub_414410(unsigned int a1, _QWORD *a2)\n{\n__int64 result; // rax\n\nif ( a1 == 58 )\n{\n*a2 = \"DW_TAG_imported_module\";\nreturn 0LL;\n}\nif ( a1 <= 0x3A )\n{\nif ( a1 == 32 )\n{\n*a2 = \"DW_TAG_set_type\";\nreturn 0LL;\n}\nif ( a1 > 0x20 )\n{\nif ( a1 == 45 )\n{\n*a2 = \"DW_TAG_packed_type\";\nresult = 0LL;\n}\nelse if ( a1 > 0x2D )\n{\nif ( a1 == 51 )\n{\n*a2 = \"DW_TAG_variant_part\";\nresult = 0LL;\n}\nelse if ( a1 <= 0x33 )\n{\nif ( a1 == 48 )\n{\n*a2 = \"DW_TAG_template_value_parameter\";\nresult = 0LL;\n}\nelse if ( a1 > 0x30 )\n{\nif ( a1 == 49 )\n*a2 = \"DW_TAG_thrown_type\";\nelse\n*a2 = \"DW_TAG_try_block\";\nresult = 0LL;\n}\nelse\n{\nif ( a1 == 46 )\n*a2 = \"DW_TAG_subprogram\";\nelse\n*a2 = \"DW_TAG_template_type_parameter\";\nresult = 0LL;\n}\n}\nelse if ( a1 == 54 )\n{\n*a2 = \"DW_TAG_dwarf_procedure\";\nresult = 0LL;\n}\nelse if ( a1 <= 0x36 )\n{\nif ( a1 == 52 )\n*a2 = \"DW_TAG_variable\";\nelse\n*a2 = \"DW_TAG_volatile_type\";\nresult = 0LL;\n}\nelse if ( a1 == 56 )\n{\n*a2 = \"DW_TAG_interface_type\";\nresult = 0LL;\n}\nelse\n{\nif ( a1 <= 0x38 )\n*a2 = \"DW_TAG_restrict_type\";\nelse\n*a2 = \"DW_TAG_namespace\";\nresult = 0LL;\n}\n}\nelse if ( a1 == 38 )\n{\n*a2 = \"DW_TAG_const_type\";\nresult = 0LL;\n}\nelse if ( a1 <= 0x26 )\n{\nif ( a1 == 35 )\n{\n*a2 = \"DW_TAG_access_declaration\";\nresult = 0LL;\n}\nelse if ( a1 > 0x23 )\n{\nif ( a1 == 36 )\n*a2 = \"DW_TAG_base_type\";\nelse\n*a2 = \"DW_TAG_catch_block\";\nresult = 0LL;\n}\nelse\n{\nif ( a1 == 33 )\n*a2 = \"DW_TAG_subrange_type\";\nelse\n*a2 = \"DW_TAG_with_stmt\";\nresult = 0LL;\n}\n}\nelse if ( a1 == 41 )\n{\n*a2 = \"DW_TAG_file_type\";\nresult = 0LL;\n}\nelse if ( a1 <= 0x29 )\n{\nif ( a1 == 39 )\n*a2 = \"DW_TAG_constant\";\nelse\n*a2 = \"DW_TAG_enumerator\";\nresult = 0LL;\n}\nelse if ( a1 == 43 )\n{\n*a2 = \"DW_TAG_namelist\";\nresult = 0LL;\n}\nelse\n{\nif ( a1 <= 0x2B )\n*a2 = \"DW_TAG_friend\";\nelse\n*a2 = \"DW_TAG_namelist_item\";\nresult = 0LL;\n}\n}\nelse\n{\nif ( a1 == 18 )\n{\n*a2 = \"DW_TAG_string_type\";\nreturn 0LL;\n}\nif ( a1 <= 0x12 )\n{\nif ( a1 == 8 )\n{\n*a2 = \"DW_TAG_imported_declaration\";\nreturn 0LL;\n}\nif ( a1 <= 8 )\n{\nif ( a1 == 3 )\n{\n*a2 = \"DW_TAG_entry_point\";\nreturn 0LL;\n}\nif ( a1 > 3 )\n{\nif ( a1 == 4 )\n{\n*a2 = \"DW_TAG_enumeration_type\";\nreturn 0LL;\n}\nif ( a1 == 5 )\n{\n*a2 = \"DW_TAG_formal_parameter\";\nreturn 0LL;\n}\n}\nelse\n{\nif ( a1 == 1 )\n{\n*a2 = \"DW_TAG_array_type\";\nreturn 0LL;\n}\nif ( a1 == 2 )\n{\n*a2 = \"DW_TAG_class_type\";\nreturn 0LL;\n}\n}\n}\nelse\n{\nif ( a1 == 13 )\n{\n*a2 = \"DW_TAG_member\";\nreturn 0LL;\n}\nif ( a1 <= 0xD )\n{\nif ( a1 == 10 )\n{\n*a2 = \"DW_TAG_label\";\nreturn 0LL;\n}\nif ( a1 == 11 )\n{\n*a2 = \"DW_TAG_lexical_block\";\nreturn 0LL;\n}\n}\nelse\n{\nif ( a1 == 16 )\n{\n*a2 = \"DW_TAG_reference_type\";\nreturn 0LL;\n}\nif ( a1 > 0x10 )\n{\n*a2 = \"DW_TAG_compile_unit\";\nreturn 0LL;\n}\nif ( a1 == 15 )\n{\n*a2 = \"DW_TAG_pointer_type\";\nreturn 0LL;\n}\n}\n}\nreturn 0xFFFFFFFFLL;\n}\nif ( a1 == 25 )\n{\n*a2 = \"DW_TAG_variant\";\nreturn 0LL;\n}\nif ( a1 <= 0x19 )\n{\nif ( a1 == 22 )\n{\n*a2 = \"DW_TAG_typedef\";\nreturn 0LL;\n}\nif ( a1 <= 0x16 )\n{\nif ( a1 == 19 )\n{\n*a2 = \"DW_TAG_structure_type\";\nreturn 0LL;\n}\nif ( a1 == 21 )\n{\n*a2 = \"DW_TAG_subroutine_type\";\nreturn 0LL;\n}\nreturn 0xFFFFFFFFLL;\n}\nif ( a1 == 23 )\n*a2 = \"DW_TAG_union_type\";\nelse\n*a2 = \"DW_TAG_unspecified_parameters\";\nresult = 0LL;\n}\nelse if ( a1 == 28 )\n{\n*a2 = \"DW_TAG_inheritance\";\nresult = 0LL;\n}\nelse if ( a1 <= 0x1C )\n{\nif ( a1 == 26 )\n*a2 = \"DW_TAG_common_block\";\nelse\n*a2 = \"DW_TAG_common_inclusion\";\nresult = 0LL;\n}\nelse if ( a1 == 30 )\n{\n*a2 = \"DW_TAG_module\";\nresult = 0LL;\n}\nelse\n{\nif ( a1 <= 0x1E )\n*a2 = \"DW_TAG_inlined_subroutine\";\nelse\n*a2 = \"DW_TAG_ptr_to_member_type\";\nresult = 0LL;\n}\n}\n}\nelse\n{\nif ( a1 == 16648 )\n{\n*a2 = \"DW_TAG_GNU_formal_parameter_pack\";\nreturn 0LL;\n}\nif ( a1 <= 0x4108 )\n{\nif ( a1 == 71 )\n{\n*a2 = \"DW_TAG_atomic_type\";\nreturn 0LL;\n}\nif ( a1 <= 0x47 )\n{\nif ( a1 == 64 )\n{\n*a2 = \"DW_TAG_shared_type\";\nresult = 0LL;\n}\nelse if ( a1 <= 0x40 )\n{\nif ( a1 == 61 )\n{\n*a2 = \"DW_TAG_imported_unit\";\nresult = 0LL;\n}\nelse if ( a1 > 0x3D )\n{\nif ( a1 == 62 )\n*a2 = \"DW_TAG_mutable_type\";\nelse\n*a2 = \"DW_TAG_condition\";\nresult = 0LL;\n}\nelse\n{\nif ( a1 == 59 )\n*a2 = \"DW_TAG_unspecified_type\";\nelse\n*a2 = \"DW_TAG_partial_unit\";\nresult = 0LL;\n}\n}\nelse if ( a1 == 67 )\n{\n*a2 = \"DW_TAG_template_alias\";\nresult = 0LL;\n}\nelse if ( a1 <= 0x43 )\n{\nif ( a1 == 65 )\n*a2 = \"DW_TAG_type_unit\";\nelse\n*a2 = \"DW_TAG_rvalue_reference_type\";\nresult = 0LL;\n}\nelse if ( a1 == 69 )\n{\n*a2 = \"DW_TAG_generic_subrange\";\nresult = 0LL;\n}\nelse\n{\nif ( a1 <= 0x45 )\n*a2 = \"DW_TAG_coarray_type\";\nelse\n*a2 = \"DW_TAG_dynamic_type\";\nresult = 0LL;\n}\nreturn result;\n}\nif ( a1 == 16641 )\n{\n*a2 = \"DW_TAG_format_label\";\nreturn 0LL;\n}\nif ( a1 > 0x4101 )\n{\nif ( a1 == 16644 )\n{\n*a2 = \"DW_TAG_GNU_BINCL\";\nresult = 0LL;\n}\nelse if ( a1 <= 0x4104 )\n{\nif ( a1 == 16642 )\n*a2 = \"DW_TAG_function_template\";\nelse\n*a2 = \"DW_TAG_class_template\";\nresult = 0LL;\n}\nelse if ( a1 == 16646 )\n{\n*a2 = \"DW_TAG_GNU_template_template_parameter\";\nresult = 0LL;\n}\nelse\n{\nif ( a1 <= 0x4106 )\n*a2 = \"DW_TAG_GNU_EINCL\";\nelse\n*a2 = \"DW_TAG_GNU_template_parameter_pack\";\nresult = 0LL;\n}\nreturn result;\n}\nif ( a1 == 16512 )\n{\n*a2 = \"DW_TAG_lo_user\";\nreturn 0LL;\n}\nif ( a1 > 0x4080 )\n{\nif ( a1 == 16513 )\n{\n*a2 = \"DW_TAG_MIPS_loop\";\nreturn 0LL;\n}\nif ( a1 == 16528 )\n{\n*a2 = \"DW_TAG_HP_array_descriptor\";\nreturn 0LL;\n}\n}\nelse\n{\nif ( a1 == 72 )\n{\n*a2 = \"DW_TAG_call_site\";\nreturn 0LL;\n}\nif ( a1 == 73 )\n{\n*a2 = \"DW_TAG_call_site_parameter\";\nreturn 0LL;\n}\n}\nreturn 0xFFFFFFFFLL;\n}\nif ( a1 == 16907 )\n{\n*a2 = \"DW_TAG_SUN_dtor\";\nreturn 0LL;\n}\nif ( a1 > 0x420B )\n{\nif ( a1 == 20753 )\n{\n*a2 = \"DW_TAG_ALTIUM_rom\";\nreturn 0LL;\n}\nif ( a1 > 0x5111 )\n{\nif ( a1 == 34663 )\n{\n*a2 = \"DW_TAG_upc_relaxed_type\";\nreturn 0LL;\n}\nif ( a1 <= 0x8767 )\n{\nif ( a1 == 34661 )\n{\n*a2 = \"DW_TAG_upc_shared_type\";\nreturn 0LL;\n}\nif ( a1 == 34662 )\n{\n*a2 = \"DW_TAG_upc_strict_type\";\nreturn 0LL;\n}\n}\nelse\n{\nswitch ( a1 )\n{\ncase 0xA020u:\n*a2 = \"DW_TAG_PGI_interface_block\";\nreturn 0LL;\ncase 0xFFFFu:\n*a2 = \"DW_TAG_hi_user\";\nreturn 0LL;\ncase 0xA000u:\n*a2 = \"DW_TAG_PGI_kanji_type\";\nreturn 0LL;\n}\n}\n}\nelse\n{\nif ( a1 == 17151 )\n{\n*a2 = \"DW_TAG_SUN_hi\";\nreturn 0LL;\n}\nif ( a1 <= 0x42FF )\n{\nif ( a1 == 16908 )\n{\n*a2 = \"DW_TAG_SUN_f90_interface\";\nreturn 0LL;\n}\nif ( a1 == 16909 )\n{\n*a2 = \"DW_TAG_SUN_fortran_vax_structure\";\nreturn 0LL;\n}\n}\nelse\n{\nswitch ( a1 )\n{\ncase 0x5102u:\n*a2 = \"DW_TAG_ALTIUM_mwa_circ_type\";\nreturn 0LL;\ncase 0x5103u:\n*a2 = \"DW_TAG_ALTIUM_rev_carry_type\";\nreturn 0LL;\ncase 0x5101u:\n*a2 = \"DW_TAG_ALTIUM_circ_type\";\nreturn 0LL;\n}\n}\n}\nreturn 0xFFFFFFFFLL;\n}\nif ( a1 == 16900 )\n{\n*a2 = \"DW_TAG_SUN_union_template\";\nreturn 0LL;\n}\nif ( a1 <= 0x4204 )\n{\nif ( a1 == 16897 )\n{\n*a2 = \"DW_TAG_SUN_function_template\";\nreturn 0LL;\n}\nif ( a1 <= 0x4201 )\n{\nif ( a1 == 16649 )\n{\n*a2 = \"DW_TAG_GNU_call_site\";\nreturn 0LL;\n}\nif ( a1 == 16650 )\n{\n*a2 = \"DW_TAG_GNU_call_site_parameter\";\nreturn 0LL;\n}\nreturn 0xFFFFFFFFLL;\n}\nif ( a1 == 16898 )\n*a2 = \"DW_TAG_SUN_class_template\";\nelse\n*a2 = \"DW_TAG_SUN_struct_template\";\nresult = 0LL;\n}\nelse if ( a1 == 16903 )\n{\n*a2 = \"DW_TAG_SUN_memop_info\";\nresult = 0LL;\n}\nelse if ( a1 <= 0x4207 )\n{\nif ( a1 == 16901 )\n*a2 = \"DW_TAG_SUN_indirect_inheritance\";\nelse\n*a2 = \"DW_TAG_SUN_codeflags\";\nresult = 0LL;\n}\nelse if ( a1 == 16905 )\n{\n*a2 = \"DW_TAG_SUN_rtti_descriptor\";\nresult = 0LL;\n}\nelse\n{\nif ( a1 <= 0x4209 )\n*a2 = \"DW_TAG_SUN_omp_child_func\";\nelse\n*a2 = \"DW_TAG_SUN_dtor_info\";\nresult = 0LL;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_414410,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'val', 'a2': 's_out', 'sub_414410': 'dwarf_get_TAG_name'}"}
tr_solution_proc
5b5ebd34ba308ed5b09b37c81197f0ee3b56c88f8dc37f221f8a02a01273ef1f
kees
scantool
NA
int tr_solution_proc(int msg, DIALOG *d, int c) // procedure which displays a textbox { switch (msg) { case MSG_START: d->dp = empty_string; break; case MSG_READY: if (get_number_of_codes() == 0) d->dp = empty_string; else if(!(d->dp = get_trouble_code(current_code_index)->solution)) d->dp = empty_string; return D_REDRAWME; } return d_textbox_proc(msg, d, c); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409B9A", "function_addr": 4234138, "binary_name": "5b5ebd34ba308ed5b09b37c81197f0ee3b56c88f8dc37f221f8a02a01273ef1f.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 [rbp+var_8], edx"], [6, "cmp [rbp+var_4], 1"], [7, "jz short loc_409BBA"], [8, "cmp [rbp+var_4], 1Bh"], [9, "jz short loc_409BC8"], [10, "jmp short loc_409C1D"], [11, "mov rax, [rbp+var_10]"], [12, "mov qword ptr [rax+30h], offset empty_string"], [13, "jmp short loc_409C1D"], [14, "mov eax, 0"], [15, "call sub_40BD16"], [16, "test eax, eax"], [17, "jnz short loc_409BE4"], [18, "mov rax, [rbp+var_10]"], [19, "mov qword ptr [rax+30h], offset empty_string"], [20, "jmp short loc_409C16"], [21, "mov eax, cs:dword_41C088"], [22, "mov edi, eax"], [23, "call sub_40BCC9"], [24, "mov rdx, [rax+10h]"], [25, "mov rax, [rbp+var_10]"], [26, "mov [rax+30h], rdx"], [27, "mov rax, [rbp+var_10]"], [28, "mov rax, [rax+30h]"], [29, "test rax, rax"], [30, "jnz short loc_409C16"], [31, "mov rax, [rbp+var_10]"], [32, "mov qword ptr [rax+30h], offset empty_string"], [33, "mov eax, 4"], [34, "jmp short locret_409C31"], [35, "mov edx, [rbp+var_8]"], [36, "mov rcx, [rbp+var_10]"], [37, "mov eax, [rbp+var_4]"], [38, "mov rsi, rcx"], [39, "mov edi, eax"], [40, "call _d_textbox_proc"], [41, "leave"], [42, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 3], [9, 8], [11, 4], [12, 11], [16, 15], [17, 16], [18, 4], [19, 18], [22, 21], [24, 23], [25, 4], [26, 24], [26, 25], [27, 4], [28, 27], [28, 26], [29, 28], [30, 29], [31, 4], [32, 31], [35, 5], [36, 4], [37, 3], [38, 36], [39, 37], [42, 40], [42, 33]]}
{"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/5b5ebd34ba308ed5b09b37c81197f0ee3b56c88f8dc37f221f8a02a01273ef1f_5b5ebd34ba308ed5b09b37c81197f0ee3b56c88f8dc37f221f8a02a01273ef1f.jsonl.gz", "strip_func_name": "sub_409B9A", "query": "\n\n\n__int64 __fastcall sub_409B9A(__int64 a1, __int64 a2)\n{\nif ( (_DWORD)a1 == 1 )\n{\n*(_QWORD *)(a2 + 48) = empty_string;\nreturn d_textbox_proc();\n}\nif ( (_DWORD)a1 != 27 )\nreturn d_textbox_proc();\nif ( (unsigned int)sub_40BD16(a1, a2) )\n{\n*(_QWORD *)(a2 + 48) = *(_QWORD *)(sub_40BCC9((unsigned int)dword_41C088) + 16);\nif ( !*(_QWORD *)(a2 + 48) )\n*(_QWORD *)(a2 + 48) = empty_string;\n}\nelse\n{\n*(_QWORD *)(a2 + 48) = empty_string;\n}\nreturn 4LL;\n}\n\n\n\nQ:[a1,a2,sub_409B9A,sub_40BD16,sub_40BCC9,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'msg', 'a2': 'd', 'sub_409B9A': 'tr_solution_proc', 'sub_40BD16': 'get_number_of_codes', 'sub_40BCC9': 'get_trouble_code'}"}
ea
29ea477980c0d8b0baee130da8b95a902e69458dd77b36fa27b9e48bd094f22d
aap
pdp6
NA
Value ea(void) { word w; Token t; Sym *ext; Value x, y; w = 0; if(*lp == '@'){ lp++; w = 0000020000000; } ext = nil; y = expr(0, &ext); updateext(ext, &y, 0); if(left(y.val)) err(0, "warning: address truncated"); w |= right(y.val); t = token(); if(t.type == '('){ /* TODO: this is probably a statement */ x = expr(2, nil); if(t = token(), t.type != ')'){ err(1, "error: ')' expected"); peekt = t; } if(x.rel) err(0, "warning: index relocation ignored"); w |= fw(right(x.val) & 017, left(x.val)); }else peekt = t; return (Value){ w, y.rel }; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4036D7", "function_addr": 4208343, "binary_name": "29ea477980c0d8b0baee130da8b95a902e69458dd77b36fa27b9e48bd094f22d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r13"], [3, "push r12"], [4, "push rbx"], [5, "sub rsp, 58h"], [6, "mov [rbp+var_28], 0"], [7, "mov rax, cs:src"], [8, "movzx eax, byte ptr [rax]"], [9, "cmp al, 40h "], [10, "jnz short loc_403714"], [11, "mov rax, cs:src"], [12, "add rax, 1"], [13, "mov cs:src, rax"], [14, "mov [rbp+var_28], offset dword_400000"], [15, "mov [rbp+var_48], 0"], [16, "lea rax, [rbp+var_48]"], [17, "mov rsi, rax"], [18, "mov edi, 0"], [19, "call sub_40335C"], [20, "mov [rbp+var_70], rax"], [21, "mov [rbp+var_68], rdx"], [22, "mov rax, [rbp+var_48]"], [23, "lea rcx, [rbp+var_70]"], [24, "mov edx, 0"], [25, "mov rsi, rcx"], [26, "mov rdi, rax"], [27, "call sub_401D20"], [28, "mov rax, [rbp+var_70]"], [29, "mov rdi, rax"], [30, "call sub_4058B1"], [31, "test eax, eax"], [32, "jz short loc_403771"], [33, "mov esi, offset aWarningAddress"], [34, "mov edi, 0"], [35, "mov eax, 0"], [36, "call err"], [37, "mov rax, [rbp+var_70]"], [38, "mov rdi, rax"], [39, "call sub_4058C8"], [40, "mov eax, eax"], [41, "or [rbp+var_28], rax"], [42, "call sub_402689"], [43, "mov ecx, eax"], [44, "mov rax, rdx"], [45, "mov dword ptr [rbp+var_40], ecx"], [46, "mov [rbp+var_38], rax"], [47, "mov eax, dword ptr [rbp+var_40]"], [48, "cmp eax, 28h "], [49, "jnz loc_403841"], [50, "mov esi, 0"], [51, "mov edi, 2"], [52, "call sub_40335C"], [53, "mov [rbp+var_60], rax"], [54, "mov [rbp+var_58], rdx"], [55, "call sub_402689"], [56, "mov ecx, eax"], [57, "mov rax, rdx"], [58, "mov dword ptr [rbp+var_40], ecx"], [59, "mov [rbp+var_38], rax"], [60, "mov eax, dword ptr [rbp+var_40]"], [61, "cmp eax, 29h "], [62, "jz short loc_4037FA"], [63, "mov esi, offset aErrorExpected_1"], [64, "mov edi, 1"], [65, "mov eax, 0"], [66, "call err"], [67, "mov rax, [rbp+var_40]"], [68, "mov rdx, [rbp+var_38]"], [69, "mov cs:qword_435EB0, rax"], [70, "mov cs:qword_435EB8, rdx"], [71, "mov eax, dword ptr [rbp+var_58]"], [72, "test eax, eax"], [73, "jz short loc_403815"], [74, "mov esi, offset aWarningIndexRe"], [75, "mov edi, 0"], [76, "mov eax, 0"], [77, "call err"], [78, "mov rax, [rbp+var_60]"], [79, "mov rdi, rax"], [80, "call sub_4058B1"], [81, "mov ebx, eax"], [82, "mov rax, [rbp+var_60]"], [83, "mov rdi, rax"], [84, "call sub_4058C8"], [85, "and eax, 0Fh"], [86, "mov esi, ebx"], [87, "mov edi, eax"], [88, "call sub_40584B"], [89, "or [rbp+var_28], rax"], [90, "jmp short loc_403857"], [91, "mov rax, [rbp+var_40]"], [92, "mov rdx, [rbp+var_38]"], [93, "mov cs:qword_435EB0, rax"], [94, "mov cs:qword_435EB8, rdx"], [95, "mov eax, dword ptr [rbp+var_68]"], [96, "mov r12, [rbp+var_28]"], [97, "mov edx, eax"], [98, "mov rcx, r13"], [99, "mov rax, 0FFFFFFFF00000000h"], [100, "and rax, rcx"], [101, "or rax, rdx"], [102, "mov r13, rax"], [103, "mov rax, r12"], [104, "mov rdx, r13"], [105, "add rsp, 58h"], [106, "pop rbx"], [107, "pop r12"], [108, "pop r13"], [109, "pop rbp"], [110, "retn"]], "data_dep": [[8, 7], [9, 8], [10, 9], [12, 11], [13, 12], [16, 12], [16, 15], [16, 8], [17, 16], [20, 19], [22, 15], [23, 20], [25, 23], [26, 22], [28, 20], [29, 28], [31, 30], [32, 31], [37, 20], [38, 37], [40, 39], [41, 40], [41, 6], [41, 14], [43, 42], [44, 24], [45, 43], [46, 44], [47, 45], [48, 47], [49, 48], [53, 52], [54, 24], [56, 55], [57, 24], [58, 56], [59, 57], [60, 58], [61, 60], [62, 61], [69, 67], [70, 68], [71, 54], [72, 71], [73, 72], [78, 53], [79, 78], [81, 80], [82, 53], [83, 82], [85, 84], [86, 81], [87, 85], [89, 88], [89, 41], [91, 45], [92, 46], [93, 91], [94, 92], [95, 21], [96, 41], [96, 89], [97, 95], [100, 98], [100, 99], [101, 97], [101, 100], [102, 101], [103, 96], [104, 102], [105, 5], [106, 4], [107, 3], [108, 2], [109, 0], [110, 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/29ea477980c0d8b0baee130da8b95a902e69458dd77b36fa27b9e48bd094f22d_29ea477980c0d8b0baee130da8b95a902e69458dd77b36fa27b9e48bd094f22d.jsonl.gz", "strip_func_name": "sub_4036D7", "query": "\n\n\nunsigned __int64 sub_4036D7()\n{\nunsigned __int64 v0; // rdx\n__int64 v1; // rdx\n__int64 v2; // rcx\n__int64 v3; // r8\n__int64 v4; // r9\n__int64 v5; // rdi\nunsigned int v6; // eax\n__int64 v7; // rdx\n__int64 v8; // rdx\nunsigned int v9; // eax\n__int64 v10; // rdx\n__int64 v11; // r8\n__int64 v12; // r9\nunsigned int v13; // ebx\nchar v14; // al\nunsigned __int64 v16[2]; // [rsp+0h] [rbp-70h] BYREF\n__int64 v17; // [rsp+10h] [rbp-60h]\n__int64 v18; // [rsp+18h] [rbp-58h]\n_QWORD *v19; // [rsp+28h] [rbp-48h] BYREF\n__int64 v20; // [rsp+30h] [rbp-40h]\n__int64 v21; // [rsp+38h] [rbp-38h]\nunsigned __int64 v22; // [rsp+48h] [rbp-28h]\n\nv22 = 0LL;\nif ( *src == 64 )\n{\n++src;\nv22 = (unsigned __int64)&dword_400000;\n}\nv19 = 0LL;\nv16[0] = sub_40335C(0, (unsigned __int64 *)&v19);\nv16[1] = v0;\nsub_401D20(v19, v16, 0);\nif ( (unsigned int)sub_4058B1(v16[0]) )\nerr(0, \"warning: address truncated\", v1, v2, v3, v4);\nv5 = v16[0];\nv6 = sub_4058C8(v16[0]);\nv22 |= v6;\nLODWORD(v20) = (unsigned int)sub_402689(v5, v16);\nv21 = v7;\nif ( (_DWORD)v20 == 40 )\n{\nv17 = sub_40335C(2u, 0LL);\nv18 = v8;\nv9 = (unsigned int)sub_402689(2LL, 0LL);\nLODWORD(v20) = v9;\nv21 = v10;\nif ( v9 != 41 )\nerr(1, \"error: ')' expected\", v10, v9, v11, v12);\nif ( (_DWORD)v18 )\nerr(0, \"warning: index relocation ignored\", v10, v9, v11, v12);\nv13 = sub_4058B1(v17);\nv14 = sub_4058C8(v17);\nv22 |= sub_40584B(v14 & 0xF, v13);\n}\nelse\n{\nqword_435EB0 = v20;\nqword_435EB8 = v21;\n}\nreturn v22;\n}\n\n\n\nQ:[v16,v17,v19,v20,v22,sub_4036D7,sub_40335C,sub_401D20,sub_4058B1,sub_4058C8,sub_402689,sub_40584B,]\nAssistant: ", "hints": "[]", "response": "{'v16': 'y', 'v17': 'x', 'v19': 'ext', 'v20': 't', 'v22': 'w', 'sub_4036D7': 'ea', 'sub_40335C': 'expr', 'sub_401D20': 'updateext', 'sub_4058B1': 'left', 'sub_4058C8': 'right', 'sub_402689': 'token', 'sub_40584B': 'fw'}"}
valid_reloc_aarch64
2f5d91478cdbd733b4d2f79052ff2ac977f3977372ec6e8fe63629b020783033
teslamotors
coreboot
NA
static int valid_reloc_aarch64(Elf64_Rela *rel) { int type; type = ELF64_R_TYPE(rel->r_info); return (type == R_AARCH64_ADR_PREL_PG_HI21 || type == R_AARCH64_ADD_ABS_LO12_NC || type == R_AARCH64_LDST8_ABS_LO12_NC || type == R_AARCH64_CONDBR19 || type == R_AARCH64_JUMP26 || type == R_AARCH64_LDST32_ABS_LO12_NC || type == R_AARCH64_LDST64_ABS_LO12_NC || type == R_AARCH64_CALL26 || type == R_AARCH64_ABS64 || type == R_AARCH64_LD_PREL_LO19 || type == R_AARCH64_ADR_PREL_LO21); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4016B0", "function_addr": 4200112, "binary_name": "2f5d91478cdbd733b4d2f79052ff2ac977f3977372ec6e8fe63629b020783033.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov rax, [rbp+var_18]"], [4, "mov rax, [rax+8]"], [5, "mov [rbp+var_4], eax"], [6, "cmp [rbp+var_4], 113h"], [7, "jz short loc_401726"], [8, "cmp [rbp+var_4], 115h"], [9, "jz short loc_401726"], [10, "cmp [rbp+var_4], 116h"], [11, "jz short loc_401726"], [12, "cmp [rbp+var_4], 118h"], [13, "jz short loc_401726"], [14, "cmp [rbp+var_4], 11Ah"], [15, "jz short loc_401726"], [16, "cmp [rbp+var_4], 11Dh"], [17, "jz short loc_401726"], [18, "cmp [rbp+var_4], 11Eh"], [19, "jz short loc_401726"], [20, "cmp [rbp+var_4], 11Bh"], [21, "jz short loc_401726"], [22, "cmp [rbp+var_4], 101h"], [23, "jz short loc_401726"], [24, "cmp [rbp+var_4], 111h"], [25, "jz short loc_401726"], [26, "cmp [rbp+var_4], 112h"], [27, "jnz short loc_40172D"], [28, "mov eax, 1"], [29, "jmp short loc_401732"], [30, "mov eax, 0"], [31, "pop rbp"], [32, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [7, 6], [8, 5], [9, 8], [10, 5], [11, 10], [12, 5], [13, 12], [14, 5], [15, 14], [16, 5], [17, 16], [18, 5], [19, 18], [20, 5], [21, 20], [22, 5], [23, 22], [24, 5], [25, 24], [26, 5], [27, 26], [31, 0], [32, 30], [32, 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/2f5d91478cdbd733b4d2f79052ff2ac977f3977372ec6e8fe63629b020783033_2f5d91478cdbd733b4d2f79052ff2ac977f3977372ec6e8fe63629b020783033.jsonl.gz", "strip_func_name": "sub_4016B0", "query": "\n\n\n_BOOL8 __fastcall sub_4016B0(__int64 a1)\n{\nint v2; // [rsp+14h] [rbp-4h]\n\nv2 = *(_QWORD *)(a1 + 8);\nreturn v2 == 275\n|| v2 == 277\n|| v2 == 278\n|| v2 == 280\n|| v2 == 282\n|| v2 == 285\n|| v2 == 286\n|| v2 == 283\n|| v2 == 257\n|| v2 == 273\n|| v2 == 274;\n}\n\n\n\nQ:[a1,v2,sub_4016B0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'rel', 'v2': 'type', 'sub_4016B0': 'valid_reloc_aarch64'}"}
CC_AssemF
bd3828dfb34ba781bec33c1de282f318297bb654233245dae251c4e307355d55
glouw
rr
NA
static void CC_AssemF(CC* self, String* assem) { CC_Assem(self, assem, FRONT); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41E64D", "function_addr": 4318797, "binary_name": "bd3828dfb34ba781bec33c1de282f318297bb654233245dae251c4e307355d55.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, "mov rcx, [rbp+var_10]"], [6, "mov rax, [rbp+var_8]"], [7, "mov edx, 0"], [8, "mov rsi, rcx"], [9, "mov rdi, rax"], [10, "call sub_41E446"], [11, "nop"], [12, "leave"], [13, "retn"]], "data_dep": [[5, 4], [6, 3], [8, 5], [9, 6], [13, 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/bd3828dfb34ba781bec33c1de282f318297bb654233245dae251c4e307355d55_bd3828dfb34ba781bec33c1de282f318297bb654233245dae251c4e307355d55.jsonl.gz", "strip_func_name": "sub_41E64D", "query": "\n\n\n__int64 __fastcall sub_41E64D(unsigned __int64 *a1, unsigned __int64 a2)\n{\nreturn sub_41E446(a1, a2, 0);\n}\n\n\n\nQ:[a1,a2,sub_41E64D,sub_41E446,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'self', 'a2': 'assem', 'sub_41E64D': 'CC_AssemF', 'sub_41E446': 'CC_Assem'}"}
kinsert
fb33b7f466e5f8c1f14c2459c90523ac901717aeadf8e6ec491962c69e0b8693
torvalds
uemacs
NA
int kinsert(int c) { struct kill *nchunk; /* ptr to newly malloced chunk */ /* check to see if we need a new chunk */ if (kused >= KBLOCK) { if ((nchunk = (struct kill *)malloc(sizeof(struct kill))) == NULL) return FALSE; if (kbufh == NULL) /* set head ptr if first time */ kbufh = nchunk; if (kbufp != NULL) /* point the current to this new one */ kbufp->d_next = nchunk; kbufp = nchunk; kbufp->d_next = NULL; kused = 0; } /* and now insert the character */ kbufp->d_chunk[kused++] = c; return TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F6A4", "function_addr": 4257444, "binary_name": "fb33b7f466e5f8c1f14c2459c90523ac901717aeadf8e6ec491962c69e0b8693.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_14], edi"], [4, "mov eax, cs:dword_4233C0"], [5, "cmp eax, 0F9h"], [6, "jle short loc_40F72C"], [7, "mov edi, 108h"], [8, "call _malloc"], [9, "mov [rbp+var_8], rax"], [10, "cmp [rbp+var_8], 0"], [11, "jnz short loc_40F6D8"], [12, "mov eax, 0"], [13, "jmp short locret_40F750"], [14, "mov rax, cs:qword_427D00"], [15, "test rax, rax"], [16, "jnz short loc_40F6EF"], [17, "mov rax, [rbp+var_8]"], [18, "mov cs:qword_427D00, rax"], [19, "mov rax, cs:qword_427CF8"], [20, "test rax, rax"], [21, "jz short loc_40F709"], [22, "mov rax, cs:qword_427CF8"], [23, "mov rdx, [rbp+var_8]"], [24, "mov [rax], rdx"], [25, "mov rax, [rbp+var_8]"], [26, "mov cs:qword_427CF8, rax"], [27, "mov rax, cs:qword_427CF8"], [28, "mov qword ptr [rax], 0"], [29, "mov cs:dword_4233C0, 0"], [30, "mov rdx, cs:qword_427CF8"], [31, "mov eax, cs:dword_4233C0"], [32, "lea ecx, [rax+1]"], [33, "mov cs:dword_4233C0, ecx"], [34, "mov ecx, [rbp+var_14]"], [35, "cdqe"], [36, "mov [rdx+rax+8], cl"], [37, "mov eax, 1"], [38, "leave"], [39, "retn"]], "data_dep": [[5, 4], [6, 5], [9, 8], [10, 9], [11, 10], [15, 14], [16, 15], [17, 9], [18, 17], [20, 19], [21, 20], [23, 9], [24, 23], [24, 22], [25, 9], [26, 25], [27, 26], [28, 27], [30, 26], [31, 29], [32, 31], [32, 24], [32, 36], [32, 28], [33, 32], [34, 3], [36, 31], [36, 34], [39, 12], [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/fb33b7f466e5f8c1f14c2459c90523ac901717aeadf8e6ec491962c69e0b8693_fb33b7f466e5f8c1f14c2459c90523ac901717aeadf8e6ec491962c69e0b8693.jsonl.gz", "strip_func_name": "sub_40F6A4", "query": "\n\n\n__int64 __fastcall sub_40F6A4(char a1)\n{\nint v2; // eax\n_QWORD *v3; // [rsp+18h] [rbp-8h]\n\nif ( dword_4233C0 > 249 )\n{\nv3 = malloc(0x108uLL);\nif ( !v3 )\nreturn 0LL;\nif ( !qword_427D00 )\nqword_427D00 = (__int64)v3;\nif ( qword_427CF8 )\n*(_QWORD *)qword_427CF8 = v3;\nqword_427CF8 = v3;\n*v3 = 0LL;\ndword_4233C0 = 0;\n}\nv2 = dword_4233C0++;\n*((_BYTE *)qword_427CF8 + v2 + 8) = a1;\nreturn 1LL;\n}\n\n\n\nQ:[a1,v3,sub_40F6A4,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'v3': 'nchunk', 'sub_40F6A4': 'kinsert'}"}
luaL_checkstack
f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b
aerospike
aerospike-client-c
NA
LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) { if (l_unlikely(!lua_checkstack(L, space))) { if (msg) luaL_error(L, "stack overflow (%s)", msg); else luaL_error(L, "stack overflow"); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_46D43A", "function_addr": 4641850, "binary_name": "f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov edx, [rbp+var_C]"], [7, "mov rax, [rbp+var_8]"], [8, "mov esi, edx"], [9, "mov rdi, rax"], [10, "call sub_46A87E"], [11, "test eax, eax"], [12, "jnz short loc_46D47E"], [13, "mov rdx, [rbp+var_18]"], [14, "mov rax, [rbp+var_8]"], [15, "lea rsi, aStackOverflowS"], [16, "mov rdi, rax"], [17, "mov eax, 0"], [18, "call sub_46D144"], [19, "nop"], [20, "leave"], [21, "retn"]], "data_dep": [[6, 4], [7, 3], [8, 6], [9, 7], [11, 10], [12, 11], [13, 5], [14, 3], [15, 8], [16, 14], [21, 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/f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b_f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b.jsonl.gz", "strip_func_name": "sub_46D43A", "query": "\n\n\n__int64 __fastcall sub_46D43A(_QWORD *a1, int a2, __int64 a3)\n{\n__int64 result; // rax\n__int64 v4; // rcx\n__int64 v5; // r8\n__int64 v6; // r9\n\nresult = sub_46A87E(a1, a2);\nif ( !(_DWORD)result )\nsub_46D144(a1, (__int64)\"stack overflow (%s)\", a3, v4, v5, v6);\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,sub_46D43A,sub_46A87E,sub_46D144,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'mes', 'a1': 'L', 'a2': 'space', 'sub_46D43A': 'luaL_checkstack', 'sub_46A87E': 'lua_checkstack', 'sub_46D144': 'luaL_error'}"}
on_recv2
d0acddaf1222c6ab785a4dd1b8f0c6a143a41f26ba52ecfbbf69cd16a46bbd6d
paullouisageneau
libjuice
NA
static void on_recv2(juice_agent_t *agent, const char *data, size_t size, void *user_ptr) { char buffer[BUFFER_SIZE]; if (size > BUFFER_SIZE - 1) size = BUFFER_SIZE - 1; memcpy(buffer, data, size); buffer[size] = '\0'; printf("Received 2: %s\n", buffer); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404A4C", "function_addr": 4213324, "binary_name": "d0acddaf1222c6ab785a4dd1b8f0c6a143a41f26ba52ecfbbf69cd16a46bbd6d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 1020h"], [3, "mov [rbp+var_1008], rdi"], [4, "mov [rbp+src], rsi"], [5, "mov [rbp+n], rdx"], [6, "mov [rbp+var_1020], rcx"], [7, "cmp [rbp+n], 0FFFh"], [8, "jbe short loc_404A8B"], [9, "mov [rbp+n], 0FFFh"], [10, "mov rdx, [rbp+n]"], [11, "mov rcx, [rbp+src]"], [12, "lea rax, [rbp+dest]"], [13, "mov rsi, rcx"], [14, "mov rdi, rax"], [15, "call _memcpy"], [16, "lea rdx, [rbp+dest]"], [17, "mov rax, [rbp+n]"], [18, "add rax, rdx"], [19, "mov byte ptr [rax], 0"], [20, "lea rax, [rbp+dest]"], [21, "mov rsi, rax"], [22, "lea rdi, aReceived2S_2"], [23, "mov eax, 0"], [24, "call _printf"], [25, "nop"], [26, "leave"], [27, "retn"]], "data_dep": [[7, 5], [8, 7], [10, 5], [10, 9], [11, 4], [13, 11], [14, 12], [16, 10], [17, 5], [17, 9], [18, 17], [18, 16], [19, 18], [20, 18], [21, 20], [22, 14], [27, 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/d0acddaf1222c6ab785a4dd1b8f0c6a143a41f26ba52ecfbbf69cd16a46bbd6d_d0acddaf1222c6ab785a4dd1b8f0c6a143a41f26ba52ecfbbf69cd16a46bbd6d.jsonl.gz", "strip_func_name": "sub_404A4C", "query": "\n\n\nint __fastcall sub_404A4C(__int64 a1, const void *a2, unsigned __int64 a3)\n{\nsize_t n; // [rsp+8h] [rbp-1018h]\nchar dest[4096]; // [rsp+20h] [rbp-1000h] BYREF\n\nn = a3;\nif ( a3 > 0xFFF )\nn = 4095LL;\nmemcpy(dest, a2, n);\ndest[n] = 0;\nreturn printf(\"Received 2: %s\\n\", dest);\n}\n\n\n\nQ:[a3,a2,a1,n,dest,sub_404A4C,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'size', 'a2': 'data', 'a1': 'agent', 'n': 'sizea', 'dest': 'buffer', 'sub_404A4C': 'on_recv2_2'}"}
main
c57ba09312b2c265e7e1f2b6bc026a1d3bce89da991bebd357c0eb209942bb54
stephenrkell
liballocs
NA
int main(int argc, char **argv) { x = 2; printf("hello world\n"); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4198690, "binary_name": "c57ba09312b2c265e7e1f2b6bc026a1d3bce89da991bebd357c0eb209942bb54.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 cs:dword_404034, 2"], [6, "mov edi, offset s"], [7, "call _puts"], [8, "mov eax, 0"], [9, "leave"], [10, "retn"]], "data_dep": [[10, 8]]}
{"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/c57ba09312b2c265e7e1f2b6bc026a1d3bce89da991bebd357c0eb209942bb54_c57ba09312b2c265e7e1f2b6bc026a1d3bce89da991bebd357c0eb209942bb54.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n__int64 __fastcall main(int a1, char **a2, char **a3)\n{\ndword_404034 = 2;\nputs(\"hello world\");\nreturn 0LL;\n}\n\n\n\nQ:[a2,a3,a1,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc'}"}
expr1
52d6428286326c975eaf1801693e24ec80f3dcc477ca21987a78c689c68cce17
FrozenSand
ioq3-for-UrbanTerror-4
NA
Tree expr1(int tok) { static char stop[] = { IF, ID, 0 }; Tree p = expr2(); if (t == '=' || (prec[t] >= 6 && prec[t] <= 8) || (prec[t] >= 11 && prec[t] <= 13)) { int op = t; t = gettok(); if (oper[op] == ASGN) p = asgntree(ASGN, p, value(expr1(0))); else { expect('='); p = incr(op, p, expr1(0)); } } if (tok) test(tok, stop); return p; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4140CC", "function_addr": 4276428, "binary_name": "52d6428286326c975eaf1801693e24ec80f3dcc477ca21987a78c689c68cce17.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_14], edi"], [4, "call sub_414225"], [5, "mov [rbp+var_8], rax"], [6, "mov eax, cs:dword_448110"], [7, "cmp eax, 3Dh "], [8, "jz short loc_41413B"], [9, "mov eax, cs:dword_448110"], [10, "cdqe"], [11, "movzx eax, byte_4436C0[rax]"], [12, "cmp al, 5"], [13, "jle short loc_414111"], [14, "mov eax, cs:dword_448110"], [15, "cdqe"], [16, "movzx eax, byte_4436C0[rax]"], [17, "cmp al, 8"], [18, "jle short loc_41413B"], [19, "mov eax, cs:dword_448110"], [20, "cdqe"], [21, "movzx eax, byte_4436C0[rax]"], [22, "cmp al, 0Ah"], [23, "jle loc_4141B8"], [24, "mov eax, cs:dword_448110"], [25, "cdqe"], [26, "movzx eax, byte_4436C0[rax]"], [27, "cmp al, 0Dh"], [28, "jg short loc_4141B8"], [29, "mov eax, cs:dword_448110"], [30, "mov [rbp+var_C], eax"], [31, "call sub_41CD06"], [32, "mov cs:dword_448110, eax"], [33, "mov eax, [rbp+var_C]"], [34, "cdqe"], [35, "mov eax, dword_443740[rax*4]"], [36, "cmp eax, 30h "], [37, "jnz short loc_41418C"], [38, "mov edi, 0"], [39, "call sub_4140CC"], [40, "mov rdi, rax"], [41, "call sub_414372"], [42, "mov rdx, rax"], [43, "mov rax, [rbp+var_8]"], [44, "mov rsi, rax"], [45, "mov edi, 30h "], [46, "call sub_411CC4"], [47, "mov [rbp+var_8], rax"], [48, "jmp short loc_4141B8"], [49, "mov edi, 3Dh "], [50, "call sub_4136DB"], [51, "mov edi, 0"], [52, "call sub_4140CC"], [53, "mov rdx, rax"], [54, "mov rcx, [rbp+var_8]"], [55, "mov eax, [rbp+var_C]"], [56, "mov rsi, rcx"], [57, "mov edi, eax"], [58, "call sub_4141D3"], [59, "mov [rbp+var_8], rax"], [60, "cmp [rbp+var_14], 0"], [61, "jz short loc_4141CD"], [62, "mov eax, [rbp+var_14]"], [63, "mov esi, offset unk_443948"], [64, "mov edi, eax"], [65, "call sub_413680"], [66, "mov rax, [rbp+var_8]"], [67, "leave"], [68, "retn"]], "data_dep": [[5, 4], [7, 6], [8, 7], [12, 11], [13, 12], [17, 16], [18, 17], [22, 21], [23, 22], [27, 26], [28, 27], [30, 29], [32, 31], [33, 30], [36, 35], [37, 36], [40, 39], [42, 41], [43, 5], [44, 43], [47, 46], [53, 52], [54, 5], [55, 30], [56, 54], [57, 55], [59, 58], [60, 3], [61, 60], [62, 3], [64, 62], [66, 5], [66, 47], [66, 59], [68, 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/52d6428286326c975eaf1801693e24ec80f3dcc477ca21987a78c689c68cce17_52d6428286326c975eaf1801693e24ec80f3dcc477ca21987a78c689c68cce17.jsonl.gz", "strip_func_name": "sub_4140CC", "query": "\n\n\n__int64 __fastcall sub_4140CC(__int64 a1, __int64 a2, double a3)\n{\nint v3; // edx\nint v4; // ecx\nint v5; // er8\nint v6; // er9\n__int64 v7; // rax\n__int64 v8; // rax\n__int64 v9; // rax\nunsigned int v11; // [rsp+14h] [rbp-Ch]\n__int64 v12; // [rsp+18h] [rbp-8h]\n\nv12 = sub_414225();\nif ( dword_448110 == 61\n|| byte_4436C0[dword_448110] > 5 && byte_4436C0[dword_448110] <= 8\n|| byte_4436C0[dword_448110] > 10 && byte_4436C0[dword_448110] <= 13 )\n{\nv11 = dword_448110;\ndword_448110 = sub_41CD06(a1, a2);\nif ( dword_443740[v11] == 48 )\n{\nv7 = sub_4140CC(0LL);\nv8 = sub_414372(v7);\nv12 = sub_411CC4(48, v12, v8, a3);\n}\nelse\n{\nsub_4136DB(61LL, a2, v3, v4, v5, v6);\nv9 = sub_4140CC(0LL);\nv12 = sub_4141D3(v11, v12, v9);\n}\n}\nif ( (_DWORD)a1 )\nsub_413680((unsigned int)a1, (__int64)&unk_443948);\nreturn v12;\n}\n\n\n\nQ:[a1,v11,v12,sub_4140CC,sub_414225,sub_41CD06,sub_414372,sub_411CC4,sub_4136DB,sub_4141D3,sub_413680,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'tok', 'v11': 'op', 'v12': 'p', 'sub_4140CC': 'expr1', 'sub_414225': 'expr2', 'sub_41CD06': 'gettok', 'sub_414372': 'value_0', 'sub_411CC4': 'asgntree', 'sub_4136DB': 'expect', 'sub_4141D3': 'incr', 'sub_413680': 'test'}"}
mz_zip_compute_crc32_callback
8b39c693ef01bd5cdaa90987e61e4cd7be3ceaaa2ca926e05669749937e737a3
ryanries
GameB
NA
static size_t mz_zip_compute_crc32_callback(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) { mz_uint32 *p = (mz_uint32 *)pOpaque; (void)file_ofs; *p = (mz_uint32)mz_crc32(*p, (const mz_uint8 *)pBuf, n); return n; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_420088", "function_addr": 4325512, "binary_name": "8b39c693ef01bd5cdaa90987e61e4cd7be3ceaaa2ca926e05669749937e737a3.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 [rbp+var_30], rcx"], [7, "mov rax, [rbp+var_18]"], [8, "mov [rbp+var_8], rax"], [9, "mov rax, [rbp+var_8]"], [10, "mov eax, [rax]"], [11, "mov ecx, eax"], [12, "mov rdx, [rbp+var_30]"], [13, "mov rax, [rbp+var_28]"], [14, "mov rsi, rax"], [15, "mov rdi, rcx"], [16, "call sub_40FA9C"], [17, "mov edx, eax"], [18, "mov rax, [rbp+var_8]"], [19, "mov [rax], edx"], [20, "mov rax, [rbp+var_30]"], [21, "leave"], [22, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 8], [10, 9], [11, 10], [12, 6], [13, 5], [14, 13], [15, 11], [17, 16], [18, 8], [19, 17], [19, 18], [20, 6], [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/8b39c693ef01bd5cdaa90987e61e4cd7be3ceaaa2ca926e05669749937e737a3_8b39c693ef01bd5cdaa90987e61e4cd7be3ceaaa2ca926e05669749937e737a3.jsonl.gz", "strip_func_name": "sub_420088", "query": "\n\n\nunsigned __int64 __fastcall sub_420088(int *a1, __int64 a2, _BYTE *a3, unsigned __int64 a4)\n{\n*a1 = sub_40FA9C(*a1, a3, a4);\nreturn a4;\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_420088,sub_40FA9C,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'pBuf', 'a4': 'n', 'a1': 'pOpaque', 'a2': 'file_ofs', 'sub_420088': 'mz_zip_compute_crc32_callback', 'sub_40FA9C': 'mz_crc32'}"}
AcpiUtGetArgumentTypes
1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822
bitdefender
napoca
NA
static UINT32 AcpiUtGetArgumentTypes ( char *Buffer, UINT16 ArgumentTypes) { UINT16 ThisArgumentType; UINT16 SubIndex; UINT16 ArgCount; UINT32 i; *Buffer = 0; SubIndex = 2; /* First field in the types list is the count of args to follow */ ArgCount = METHOD_GET_ARG_COUNT (ArgumentTypes); if (ArgCount > METHOD_PREDEF_ARGS_MAX) { printf ("**** Invalid argument count (%u) " "in predefined info structure\n", ArgCount); return (ArgCount); } /* Get each argument from the list, convert to ascii, store to buffer */ for (i = 0; i < ArgCount; i++) { ThisArgumentType = METHOD_GET_NEXT_TYPE (ArgumentTypes); if (!ThisArgumentType || (ThisArgumentType > METHOD_MAX_ARG_TYPE)) { printf ("**** Invalid argument type (%u) " "in predefined info structure\n", ThisArgumentType); return (ArgCount); } strcat (Buffer, UtExternalTypeNames[ThisArgumentType] + SubIndex); SubIndex = 0; } return (ArgCount); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_48E3AC", "function_addr": 4776876, "binary_name": "1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+dest], rdi"], [4, "mov eax, esi"], [5, "mov [rbp+var_1C], ax"], [6, "mov rax, [rbp+dest]"], [7, "mov byte ptr [rax], 0"], [8, "mov [rbp+var_2], 2"], [9, "movzx eax, [rbp+var_1C]"], [10, "and eax, 7"], [11, "mov [rbp+var_A], ax"], [12, "cmp [rbp+var_A], 4"], [13, "jbe short loc_48E3F8"], [14, "movzx eax, [rbp+var_A]"], [15, "mov esi, eax"], [16, "mov edi, offset aInvalidArgumen_1"], [17, "mov eax, 0"], [18, "call _printf"], [19, "movzx eax, [rbp+var_A]"], [20, "jmp short locret_48E475"], [21, "mov [rbp+var_8], 0"], [22, "jmp short loc_48E468"], [23, "shr [rbp+var_1C], 3"], [24, "movzx eax, [rbp+var_1C]"], [25, "and eax, 7"], [26, "mov [rbp+var_C], ax"], [27, "cmp [rbp+var_C], 0"], [28, "jz short loc_48E41F"], [29, "cmp [rbp+var_C], 4"], [30, "jbe short loc_48E43A"], [31, "movzx eax, [rbp+var_C]"], [32, "mov esi, eax"], [33, "mov edi, offset aInvalidArgumen_2"], [34, "mov eax, 0"], [35, "call _printf"], [36, "movzx eax, [rbp+var_A]"], [37, "jmp short locret_48E475"], [38, "movzx eax, [rbp+var_C]"], [39, "cdqe"], [40, "mov rdx, off_51B120[rax*8]"], [41, "movzx eax, [rbp+var_2]"], [42, "add rdx, rax"], [43, "mov rax, [rbp+dest]"], [44, "mov rsi, rdx"], [45, "mov rdi, rax"], [46, "call _strcat"], [47, "mov [rbp+var_2], 0"], [48, "add [rbp+var_8], 1"], [49, "movzx eax, [rbp+var_A]"], [50, "cmp [rbp+var_8], eax"], [51, "jb short loc_48E401"], [52, "movzx eax, [rbp+var_A]"], [53, "leave"], [54, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 6], [9, 5], [10, 9], [11, 10], [12, 11], [13, 12], [14, 11], [15, 14], [19, 11], [23, 5], [23, 23], [24, 23], [25, 24], [26, 25], [27, 26], [28, 27], [29, 26], [30, 29], [31, 26], [32, 31], [36, 11], [38, 26], [41, 8], [41, 47], [42, 41], [42, 40], [43, 3], [44, 42], [45, 43], [48, 21], [48, 48], [49, 11], [50, 49], [50, 21], [50, 48], [51, 50], [52, 11], [54, 19], [54, 52], [54, 36]]}
{"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/1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822_1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822.jsonl.gz", "strip_func_name": "sub_48E3AC", "query": "\n\n\n__int64 __fastcall sub_48E3AC(char *a1, unsigned __int16 a2)\n{\n__int64 result; // rax\nunsigned __int16 v3; // [rsp+4h] [rbp-1Ch]\nunsigned int i; // [rsp+18h] [rbp-8h]\nunsigned __int16 v5; // [rsp+1Eh] [rbp-2h]\n\nv3 = a2;\n*a1 = 0;\nv5 = 2;\nif ( (a2 & 7u) <= 4 )\n{\nfor ( i = 0; i < (a2 & 7u); ++i )\n{\nv3 >>= 3;\nif ( (v3 & 7) == 0 || (v3 & 7u) > 4 )\n{\nprintf(\"**** Invalid argument type (%u) in predefined info structure\\n\", v3 & 7);\nreturn a2 & 7;\n}\nstrcat(a1, &off_51B120[v3 & 7][v5]);\nv5 = 0;\n}\nresult = a2 & 7;\n}\nelse\n{\nprintf(\"**** Invalid argument count (%u) in predefined info structure\\n\", a2 & 7);\nresult = a2 & 7;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v3,v5,sub_48E3AC,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'Buffer', 'a2': 'ArgumentTypes', 'v3': 'ArgumentTypesa', 'v5': 'SubIndex', 'sub_48E3AC': 'AcpiUtGetArgumentTypes'}"}
srtp_aes_icm_openssl_alloc
a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c
AonCyberLabs
D-Modem
NA
static srtp_err_status_t srtp_aes_icm_openssl_alloc (srtp_cipher_t **c, int key_len, int tlen) { srtp_aes_icm_ctx_t *icm; debug_print(srtp_mod_aes_icm, "allocating cipher with key length %d", key_len); /* * Verify the key_len is valid for one of: AES-128/192/256 */ if (key_len != SRTP_AES_ICM_128_KEY_LEN_WSALT && key_len != SRTP_AES_ICM_192_KEY_LEN_WSALT && key_len != SRTP_AES_ICM_256_KEY_LEN_WSALT) { return srtp_err_status_bad_param; } /* allocate memory a cipher of type aes_icm */ *c = (srtp_cipher_t *)srtp_crypto_alloc(sizeof(srtp_cipher_t)); if (*c == NULL) { return srtp_err_status_alloc_fail; } memset(*c, 0x0, sizeof(srtp_cipher_t)); icm = (srtp_aes_icm_ctx_t *)srtp_crypto_alloc(sizeof(srtp_aes_icm_ctx_t)); if (icm == NULL) { srtp_crypto_free(*c); *c = NULL; return srtp_err_status_alloc_fail; } memset(icm, 0x0, sizeof(srtp_aes_icm_ctx_t)); icm->ctx = EVP_CIPHER_CTX_new(); if (icm->ctx == NULL) { srtp_crypto_free(icm); srtp_crypto_free(*c); *c = NULL; return srtp_err_status_alloc_fail; } /* set pointers */ (*c)->state = icm; /* setup cipher parameters */ switch (key_len) { case SRTP_AES_ICM_128_KEY_LEN_WSALT: (*c)->algorithm = SRTP_AES_ICM_128; (*c)->type = &srtp_aes_icm_128; icm->key_size = SRTP_AES_128_KEY_LEN; break; case SRTP_AES_ICM_192_KEY_LEN_WSALT: (*c)->algorithm = SRTP_AES_ICM_192; (*c)->type = &srtp_aes_icm_192; icm->key_size = SRTP_AES_192_KEY_LEN; break; case SRTP_AES_ICM_256_KEY_LEN_WSALT: (*c)->algorithm = SRTP_AES_ICM_256; (*c)->type = &srtp_aes_icm_256; icm->key_size = SRTP_AES_256_KEY_LEN; break; } /* set key size */ (*c)->key_len = key_len; return srtp_err_status_ok; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_482F26", "function_addr": 4730662, "binary_name": "a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.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 [rbp+var_20], edx"], [6, "mov eax, cs:dword_50E6C0"], [7, "test eax, eax"], [8, "jz short loc_482F65"], [9, "mov rax, cs:off_50E6C8"], [10, "mov edx, [rbp+var_1C]"], [11, "mov ecx, edx"], [12, "mov rdx, rax"], [13, "mov esi, offset aSAllocatingCip_0"], [14, "mov edi, 3"], [15, "mov eax, 0"], [16, "call sub_482693"], [17, "cmp [rbp+var_1C], 1Eh"], [18, "jz short loc_482F81"], [19, "cmp [rbp+var_1C], 26h "], [20, "jz short loc_482F81"], [21, "cmp [rbp+var_1C], 2Eh "], [22, "jz short loc_482F81"], [23, "mov eax, 2"], [24, "jmp locret_483113"], [25, "mov edi, 18h"], [26, "call sub_4824CD"], [27, "mov rdx, [rbp+var_18]"], [28, "mov [rdx], rax"], [29, "mov rax, [rbp+var_18]"], [30, "mov rax, [rax]"], [31, "test rax, rax"], [32, "jnz short loc_482FA8"], [33, "mov eax, 3"], [34, "jmp locret_483113"], [35, "mov rax, [rbp+var_18]"], [36, "mov rax, [rax]"], [37, "mov edx, 18h"], [38, "mov esi, 0"], [39, "mov rdi, rax"], [40, "call _memset"], [41, "mov edi, 30h "], [42, "call sub_4824CD"], [43, "mov [rbp+s], rax"], [44, "cmp [rbp+s], 0"], [45, "jnz short loc_482FFA"], [46, "mov rax, [rbp+var_18]"], [47, "mov rax, [rax]"], [48, "mov rdi, rax"], [49, "call sub_482556"], [50, "mov rax, [rbp+var_18]"], [51, "mov qword ptr [rax], 0"], [52, "mov eax, 3"], [53, "jmp locret_483113"], [54, "mov rax, [rbp+s]"], [55, "mov edx, 30h "], [56, "mov esi, 0"], [57, "mov rdi, rax"], [58, "call _memset"], [59, "call _EVP_CIPHER_CTX_new"], [60, "mov rdx, [rbp+s]"], [61, "mov [rdx+28h], rax"], [62, "mov rax, [rbp+s]"], [63, "mov rax, [rax+28h]"], [64, "test rax, rax"], [65, "jnz short loc_48305A"], [66, "mov rax, [rbp+s]"], [67, "mov rdi, rax"], [68, "call sub_482556"], [69, "mov rax, [rbp+var_18]"], [70, "mov rax, [rax]"], [71, "mov rdi, rax"], [72, "call sub_482556"], [73, "mov rax, [rbp+var_18]"], [74, "mov qword ptr [rax], 0"], [75, "mov eax, 3"], [76, "jmp locret_483113"], [77, "mov rax, [rbp+var_18]"], [78, "mov rax, [rax]"], [79, "mov rdx, [rbp+s]"], [80, "mov [rax+8], rdx"], [81, "cmp [rbp+var_1C], 2Eh "], [82, "jz short loc_4830D9"], [83, "cmp [rbp+var_1C], 2Eh "], [84, "jg loc_483101"], [85, "cmp [rbp+var_1C], 1Eh"], [86, "jz short loc_483087"], [87, "cmp [rbp+var_1C], 26h "], [88, "jz short loc_4830B0"], [89, "jmp short loc_483101"], [90, "mov rax, [rbp+var_18]"], [91, "mov rax, [rax]"], [92, "mov dword ptr [rax+14h], 1"], [93, "mov rax, [rbp+var_18]"], [94, "mov rax, [rax]"], [95, "mov qword ptr [rax], offset off_4E7BA0"], [96, "mov rax, [rbp+s]"], [97, "mov dword ptr [rax+20h], 10h"], [98, "jmp short loc_483101"], [99, "mov rax, [rbp+var_18]"], [100, "mov rax, [rax]"], [101, "mov dword ptr [rax+14h], 4"], [102, "mov rax, [rbp+var_18]"], [103, "mov rax, [rax]"], [104, "mov qword ptr [rax], offset off_4E7C00"], [105, "mov rax, [rbp+s]"], [106, "mov dword ptr [rax+20h], 18h"], [107, "jmp short loc_483101"], [108, "mov rax, [rbp+var_18]"], [109, "mov rax, [rax]"], [110, "mov dword ptr [rax+14h], 5"], [111, "mov rax, [rbp+var_18]"], [112, "mov rax, [rax]"], [113, "mov qword ptr [rax], offset off_4E7C60"], [114, "mov rax, [rbp+s]"], [115, "mov dword ptr [rax+20h], 20h "], [116, "nop"], [117, "mov rax, [rbp+var_18]"], [118, "mov rax, [rax]"], [119, "mov edx, [rbp+var_1C]"], [120, "mov [rax+10h], edx"], [121, "mov eax, 0"], [122, "leave"], [123, "retn"]], "data_dep": [[7, 6], [8, 7], [10, 4], [11, 10], [12, 9], [17, 4], [18, 17], [19, 4], [20, 19], [21, 4], [22, 21], [27, 3], [28, 27], [28, 26], [29, 3], [30, 29], [30, 28], [31, 30], [32, 31], [35, 3], [36, 35], [36, 28], [39, 36], [43, 42], [44, 43], [45, 44], [46, 3], [47, 51], [47, 28], [47, 46], [48, 47], [50, 3], [51, 50], [54, 43], [57, 54], [60, 43], [61, 60], [61, 59], [62, 43], [63, 61], [63, 62], [64, 63], [65, 64], [66, 43], [67, 66], [69, 3], [70, 61], [70, 74], [70, 28], [70, 69], [71, 70], [73, 3], [74, 73], [77, 3], [78, 77], [78, 61], [78, 28], [78, 80], [79, 43], [80, 78], [80, 79], [81, 4], [82, 81], [83, 4], [84, 83], [85, 4], [86, 85], [87, 4], [88, 87], [90, 3], [91, 80], [91, 61], [91, 95], [91, 97], [91, 90], [91, 28], [91, 92], [92, 91], [93, 3], [94, 93], [94, 92], [95, 94], [96, 43], [97, 96], [99, 3], [100, 28], [100, 101], [100, 80], [100, 61], [100, 104], [100, 106], [100, 99], [101, 100], [102, 3], [103, 102], [103, 101], [104, 103], [105, 43], [106, 105], [108, 3], [109, 113], [109, 115], [109, 108], [109, 28], [109, 110], [109, 80], [109, 61], [110, 109], [111, 3], [112, 111], [112, 110], [113, 112], [114, 43], [115, 114], [117, 3], [118, 95], [118, 104], [118, 113], [118, 97], [118, 106], [118, 115], [118, 117], [118, 28], [118, 92], [118, 101], [118, 110], [118, 80], [118, 61], [118, 120], [119, 4], [120, 119], [120, 118], [123, 121], [123, 75], [123, 52], [123, 33], [123, 23]]}
{"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_482F26", "query": "\n\n\n__int64 __fastcall sub_482F26(void **a1, unsigned int a2, unsigned int a3, __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 result; // rax\n__int64 v7; // rdx\n__int64 v8; // rcx\nint v9; // er8\nint v10; // er9\n__int64 v11; // rcx\nint v12; // er8\nint v13; // er9\n__int64 v14; // rdx\n__int64 v15; // rcx\nint v16; // er8\nint v17; // er9\nunsigned __int64 v18; // [rsp+0h] [rbp-20h]\nvoid *s; // [rsp+18h] [rbp-8h]\n\nv18 = __PAIR64__(a2, a3);\nif ( dword_50E6C0 )\nsub_482693(\n3u,\n(__int64)\"%s: allocating cipher with key length %d\\n\",\n(__int64)off_50E6C8,\na2,\na5,\na6,\n__PAIR64__(a2, a3));\nif ( HIDWORD(v18) != 30 && HIDWORD(v18) != 38 && HIDWORD(v18) != 46 )\nreturn 2LL;\n*a1 = sub_4824CD(0x18uLL);\nif ( !*a1 )\nreturn 3LL;\nmemset(*a1, 0, 0x18uLL);\ns = sub_4824CD(0x30uLL);\nif ( s )\n{\nmemset(s, 0, 0x30uLL);\n*((_QWORD *)s + 5) = EVP_CIPHER_CTX_new();\nif ( *((_QWORD *)s + 5) )\n{\n*((_QWORD *)*a1 + 1) = s;\nif ( HIDWORD(v18) == 46 )\n{\n*((_DWORD *)*a1 + 5) = 5;\n*(_QWORD *)*a1 = off_4E7C60;\n*((_DWORD *)s + 8) = 32;\n}\nelse if ( HIDWORD(v18) == 30 )\n{\n*((_DWORD *)*a1 + 5) = 1;\n*(_QWORD *)*a1 = off_4E7BA0;\n*((_DWORD *)s + 8) = 16;\n}\nelse\n{\n*((_DWORD *)*a1 + 5) = 4;\n*(_QWORD *)*a1 = off_4E7C00;\n*((_DWORD *)s + 8) = 24;\n}\n*((_DWORD *)*a1 + 4) = HIDWORD(v18);\nresult = 0LL;\n}\nelse\n{\nsub_482556(s, 0LL, (__int64)s, v11, v12, v13);\nsub_482556(*a1, 0LL, v14, v15, v16, v17);\n*a1 = 0LL;\nresult = 3LL;\n}\n}\nelse\n{\nsub_482556(*a1, 0LL, v7, v8, v9, v10);\n*a1 = 0LL;\nresult = 3LL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v7,s,sub_482F26,sub_482693,sub_4824CD,sub_482556,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'tlen', 'a1': 'c', 'a2': 'key_len', 'v7': 'tlen', 's': 'icm', 'sub_482F26': 'srtp_aes_icm_openssl_alloc', 'sub_482693': 'srtp_err_report', 'sub_4824CD': 'srtp_crypto_alloc', 'sub_482556': 'srtp_crypto_free'}"}
box
05fec2ec7593193c18b101ca793da0df323252e287ea2c5bf454697b982ed322
jfdelnero
HxCModPlayer
NA
void box(framegenerator * fg,int xpos,int ypos,int xsize,int ysize,uint32_t fg_color) { int i,j; for(i=0;i<ysize;i++) { for(j=0;j<xsize;j++) { fg->textbuffer[((ypos+i)*fg->xres)+ xpos + j] = fg_color; } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "box", "function_addr": 4200667, "binary_name": "05fec2ec7593193c18b101ca793da0df323252e287ea2c5bf454697b982ed322.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_1C], esi"], [4, "mov [rbp+var_20], edx"], [5, "mov [rbp+var_24], ecx"], [6, "mov [rbp+var_28], r8d"], [7, "mov [rbp+var_2C], r9d"], [8, "mov [rbp+var_4], 0"], [9, "jmp short loc_401949"], [10, "mov [rbp+var_8], 0"], [11, "jmp short loc_40193D"], [12, "mov rax, [rbp+var_18]"], [13, "mov rdx, [rax+10h]"], [14, "mov ecx, [rbp+var_20]"], [15, "mov eax, [rbp+var_4]"], [16, "add eax, ecx"], [17, "mov ecx, eax"], [18, "mov rax, [rbp+var_18]"], [19, "mov eax, [rax]"], [20, "imul ecx, eax"], [21, "mov eax, [rbp+var_1C]"], [22, "add ecx, eax"], [23, "mov eax, [rbp+var_8]"], [24, "add eax, ecx"], [25, "mov eax, eax"], [26, "shl rax, 2"], [27, "add rdx, rax"], [28, "mov eax, [rbp+var_2C]"], [29, "mov [rdx], eax"], [30, "add [rbp+var_8], 1"], [31, "mov eax, [rbp+var_8]"], [32, "cmp eax, [rbp+var_24]"], [33, "jl short loc_401906"], [34, "add [rbp+var_4], 1"], [35, "mov eax, [rbp+var_4]"], [36, "cmp eax, [rbp+var_28]"], [37, "jl short loc_4018FD"], [38, "nop"], [39, "nop"], [40, "pop rbp"], [41, "retn"]], "data_dep": [[12, 2], [13, 29], [13, 12], [14, 4], [15, 8], [15, 34], [16, 15], [16, 14], [17, 16], [18, 2], [19, 18], [19, 29], [20, 17], [20, 19], [21, 3], [22, 20], [22, 21], [23, 10], [23, 30], [24, 23], [24, 22], [25, 24], [26, 25], [27, 13], [27, 26], [28, 7], [29, 28], [29, 27], [30, 30], [30, 10], [31, 10], [31, 30], [32, 31], [32, 5], [33, 32], [34, 34], [34, 8], [35, 8], [35, 34], [36, 6], [36, 35], [37, 36], [40, 0], [41, 35]]}
{"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/05fec2ec7593193c18b101ca793da0df323252e287ea2c5bf454697b982ed322_05fec2ec7593193c18b101ca793da0df323252e287ea2c5bf454697b982ed322.jsonl.gz", "strip_func_name": "box", "query": "\n\n\n__int64 __fastcall box(__int64 a1, int a2, int a3, int a4, int a5, int a6)\n{\n__int64 result; // rax\nint j; // [rsp+24h] [rbp-8h]\nunsigned int i; // [rsp+28h] [rbp-4h]\n\nfor ( i = 0; ; ++i )\n{\nresult = i;\nif ( (int)i >= a5 )\nbreak;\nfor ( j = 0; j < a4; ++j )\n*(_DWORD *)(4LL * (a2 + *(_DWORD *)a1 * (a3 + i) + j) + *(_QWORD *)(a1 + 16)) = a6;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'ypos', 'a4': 'xsize', 'a1': 'fg', 'a2': 'xpos', 'a5': 'ysize', 'a6': 'fg_color'}"}
issock
c6d787102350f6a87227173602f31471d0e35fecd07bd7d6b49f58a7e3182c6a
hc0d3r
tea
NA
int issock(int fd) { struct stat st; if (fstat(fd, &st) == -1) { //err(1, "fstat(%d, %p)", fd, &st); return 0; } return S_ISSOCK(st.st_mode); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401465", "function_addr": 4199525, "binary_name": "c6d787102350f6a87227173602f31471d0e35fecd07bd7d6b49f58a7e3182c6a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0A0h"], [3, "mov [rbp+fildes], edi"], [4, "lea rdx, [rbp+stat_buf]"], [5, "mov eax, [rbp+fildes]"], [6, "mov rsi, rdx"], [7, "mov edi, eax"], [8, "call sub_401E80"], [9, "cmp eax, 0FFFFFFFFh"], [10, "jnz short loc_401499"], [11, "mov eax, 0"], [12, "jmp short locret_4014AC"], [13, "mov eax, [rbp+stat_buf.st_mode]"], [14, "and eax, 0F000h"], [15, "cmp eax, 0C000h"], [16, "setz al"], [17, "movzx eax, al"], [18, "leave"], [19, "retn"]], "data_dep": [[5, 3], [6, 4], [7, 5], [9, 8], [10, 9], [14, 13], [15, 14], [16, 14], [16, 15], [17, 16], [19, 17], [19, 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/c6d787102350f6a87227173602f31471d0e35fecd07bd7d6b49f58a7e3182c6a_c6d787102350f6a87227173602f31471d0e35fecd07bd7d6b49f58a7e3182c6a.jsonl.gz", "strip_func_name": "sub_401465", "query": "\n\n\n_BOOL8 __fastcall sub_401465(int a1)\n{\n_BOOL8 result; // rax\nstruct stat stat_buf; // [rsp+10h] [rbp-90h] BYREF\n\nif ( (unsigned int)sub_401E80(a1, &stat_buf) == -1 )\nresult = 0LL;\nelse\nresult = (stat_buf.st_mode & 0xF000) == 49152;\nreturn result;\n}\n\n\n\nQ:[a1,stat_buf,sub_401465,sub_401E80,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fd', 'stat_buf': 'st', 'sub_401465': 'issock', 'sub_401E80': 'fstat'}"}
l2cap_le_request_can_send_now_event
1cdcd09e088b6ff1db54fa3ae8a0c70f8f219b2e121d0ce2b5639ebfe341cfd3
Matheus-Garbelini
esp32_bluetooth_classic_sniffer
NA
uint8_t l2cap_le_request_can_send_now_event(uint16_t local_cid){ l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); if (!channel) { log_error("l2cap_le_request_can_send_now_event no channel for cid 0x%02x", local_cid); return L2CAP_LOCAL_CID_DOES_NOT_EXIST; } channel->waiting_for_can_send_now = 1; l2cap_le_notify_channel_can_send(channel); return ERROR_CODE_SUCCESS; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42158C", "function_addr": 4330892, "binary_name": "1cdcd09e088b6ff1db54fa3ae8a0c70f8f219b2e121d0ce2b5639ebfe341cfd3.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, "movzx eax, [rbp+var_14]"], [6, "mov edi, eax"], [7, "call sub_41A21D"], [8, "mov [rbp+var_8], rax"], [9, "cmp [rbp+var_8], 0"], [10, "jnz short loc_4215DC"], [11, "movzx eax, [rbp+var_14]"], [12, "mov r8d, eax"], [13, "mov ecx, 109Ah"], [14, "mov edx, offset aL2capC"], [15, "mov esi, offset aSUL2capLeReque"], [16, "mov edi, 2"], [17, "mov eax, 0"], [18, "call sub_417964"], [19, "mov eax, 6Eh "], [20, "jmp short locret_4215F5"], [21, "mov rax, [rbp+var_8]"], [22, "mov byte ptr [rax+18h], 1"], [23, "mov rax, [rbp+var_8]"], [24, "mov rdi, rax"], [25, "call sub_4206D4"], [26, "mov eax, 0"], [27, "leave"], [28, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [8, 7], [9, 8], [10, 9], [11, 4], [12, 11], [21, 8], [22, 21], [23, 8], [24, 23], [28, 26], [28, 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/1cdcd09e088b6ff1db54fa3ae8a0c70f8f219b2e121d0ce2b5639ebfe341cfd3_1cdcd09e088b6ff1db54fa3ae8a0c70f8f219b2e121d0ce2b5639ebfe341cfd3.jsonl.gz", "strip_func_name": "sub_42158C", "query": "\n\n\n__int64 __fastcall sub_42158C(unsigned __int16 a1)\n{\n__int64 v1; // r9\n__int64 result; // rax\n__int64 v3; // [rsp+18h] [rbp-8h]\n\nv3 = sub_41A21D(a1);\nif ( v3 )\n{\n*(_BYTE *)(v3 + 24) = 1;\nsub_4206D4(v3);\nresult = 0LL;\n}\nelse\n{\nsub_417964(\n2,\n(__int64)\"%s.%u: l2cap_le_request_can_send_now_event no channel for cid 0x%02x\",\n(__int64)\"l2cap.c\",\n4250LL,\na1,\nv1);\nresult = 110LL;\n}\nreturn result;\n}\n\n\n\nQ:[a1,v3,sub_42158C,sub_41A21D,sub_4206D4,sub_417964,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'local_cid', 'v3': 'channel', 'sub_42158C': 'l2cap_le_request_can_send_now_event', 'sub_41A21D': 'l2cap_get_channel_for_local_cid', 'sub_4206D4': 'l2cap_le_notify_channel_can_send', 'sub_417964': 'hci_dump_log'}"}
AcpiPsCompleteFinalOp
409f7ebd875056ec33b17ff69e77e300c0715d956d9a542312496070b0061f7d
bitdefender
napoca
NA
ACPI_STATUS AcpiPsCompleteFinalOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status) { ACPI_STATUS Status2; ACPI_FUNCTION_TRACE_PTR (PsCompleteFinalOp, WalkState); /* * Complete the last Op (if not completed), and clear the scope stack. * It is easily possible to end an AML "package" with an unbounded number * of open scopes (such as when several ASL blocks are closed with * sequential closing braces). We want to terminate each one cleanly. */ ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "AML package complete at Op %p\n", Op)); do { if (Op) { if (WalkState->AscendingCallback != NULL) { WalkState->Op = Op; WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); WalkState->Opcode = Op->Common.AmlOpcode; Status = WalkState->AscendingCallback (WalkState); Status = AcpiPsNextParseState (WalkState, Op, Status); if (Status == AE_CTRL_PENDING) { Status = AcpiPsCompleteOp (WalkState, &Op, AE_OK); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } if (Status == AE_CTRL_TERMINATE) { Status = AE_OK; /* Clean up */ do { if (Op) { Status2 = AcpiPsCompleteThisOp (WalkState, Op); if (ACPI_FAILURE (Status2)) { return_ACPI_STATUS (Status2); } } AcpiPsPopScope (&(WalkState->ParserState), &Op, &WalkState->ArgTypes, &WalkState->ArgCount); } while (Op); return_ACPI_STATUS (Status); } else if (ACPI_FAILURE (Status)) { /* First error is most important */ (void) AcpiPsCompleteThisOp (WalkState, Op); return_ACPI_STATUS (Status); } } Status2 = AcpiPsCompleteThisOp (WalkState, Op); if (ACPI_FAILURE (Status2)) { return_ACPI_STATUS (Status2); } } AcpiPsPopScope (&(WalkState->ParserState), &Op, &WalkState->ArgTypes, &WalkState->ArgCount); } while (Op); return_ACPI_STATUS (Status); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41F828", "function_addr": 4323368, "binary_name": "409f7ebd875056ec33b17ff69e77e300c0715d956d9a542312496070b0061f7d.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, [rbp+var_20]"], [7, "test rax, rax"], [8, "jz loc_41F9AB"], [9, "mov rax, [rbp+var_18]"], [10, "mov rax, [rax+460h]"], [11, "test rax, rax"], [12, "jz loc_41F98A"], [13, "mov rdx, [rbp+var_20]"], [14, "mov rax, [rbp+var_18]"], [15, "mov [rax+408h], rdx"], [16, "mov rax, [rbp+var_20]"], [17, "movzx eax, word ptr [rax+0Ah]"], [18, "movzx eax, ax"], [19, "mov edi, eax"], [20, "call sub_41F9E4"], [21, "mov rdx, [rbp+var_18]"], [22, "mov [rdx+410h], rax"], [23, "mov rax, [rbp+var_20]"], [24, "movzx edx, word ptr [rax+0Ah]"], [25, "mov rax, [rbp+var_18]"], [26, "mov [rax+0Ah], dx"], [27, "mov rax, [rbp+var_18]"], [28, "mov rdx, [rax+460h]"], [29, "mov rax, [rbp+var_18]"], [30, "mov rdi, rax"], [31, "call rdx"], [32, "mov [rbp+var_24], eax"], [33, "mov rcx, [rbp+var_20]"], [34, "mov edx, [rbp+var_24]"], [35, "mov rax, [rbp+var_18]"], [36, "mov rsi, rcx"], [37, "mov rdi, rax"], [38, "call sub_41FE99"], [39, "mov [rbp+var_24], eax"], [40, "cmp [rbp+var_24], 4002h"], [41, "jnz short loc_41F8FA"], [42, "lea rcx, [rbp+var_20]"], [43, "mov rax, [rbp+var_18]"], [44, "mov edx, 0"], [45, "mov rsi, rcx"], [46, "mov rdi, rax"], [47, "call sub_41F388"], [48, "mov [rbp+var_24], eax"], [49, "cmp [rbp+var_24], 0"], [50, "jz short loc_41F8FA"], [51, "mov eax, [rbp+var_24]"], [52, "jmp locret_41F9E2"], [53, "cmp [rbp+var_24], 4003h"], [54, "jnz short loc_41F96C"], [55, "mov [rbp+var_24], 0"], [56, "mov rax, [rbp+var_20]"], [57, "test rax, rax"], [58, "jz short loc_41F937"], [59, "mov rdx, [rbp+var_20]"], [60, "mov rax, [rbp+var_18]"], [61, "mov rsi, rdx"], [62, "mov rdi, rax"], [63, "call sub_41FAF8"], [64, "mov [rbp+var_4], eax"], [65, "cmp [rbp+var_4], 0"], [66, "jz short loc_41F937"], [67, "mov eax, [rbp+var_4]"], [68, "jmp locret_41F9E2"], [69, "mov rax, [rbp+var_18]"], [70, "lea rcx, [rax+8Ch]"], [71, "mov rax, [rbp+var_18]"], [72, "lea rdx, [rax+28h]"], [73, "mov rax, [rbp+var_18]"], [74, "lea rdi, [rax+38h]"], [75, "lea rax, [rbp+var_20]"], [76, "mov rsi, rax"], [77, "call sub_420665"], [78, "mov rax, [rbp+var_20]"], [79, "test rax, rax"], [80, "jnz short loc_41F90A"], [81, "mov eax, [rbp+var_24]"], [82, "jmp short locret_41F9E2"], [83, "cmp [rbp+var_24], 0"], [84, "jz short loc_41F98A"], [85, "mov rdx, [rbp+var_20]"], [86, "mov rax, [rbp+var_18]"], [87, "mov rsi, rdx"], [88, "mov rdi, rax"], [89, "call sub_41FAF8"], [90, "mov eax, [rbp+var_24]"], [91, "jmp short locret_41F9E2"], [92, "mov rdx, [rbp+var_20]"], [93, "mov rax, [rbp+var_18]"], [94, "mov rsi, rdx"], [95, "mov rdi, rax"], [96, "call sub_41FAF8"], [97, "mov [rbp+var_4], eax"], [98, "cmp [rbp+var_4], 0"], [99, "jz short loc_41F9AB"], [100, "mov eax, [rbp+var_4]"], [101, "jmp short locret_41F9E2"], [102, "mov rax, [rbp+var_18]"], [103, "lea rcx, [rax+8Ch]"], [104, "mov rax, [rbp+var_18]"], [105, "lea rdx, [rax+28h]"], [106, "mov rax, [rbp+var_18]"], [107, "lea rdi, [rax+38h]"], [108, "lea rax, [rbp+var_20]"], [109, "mov rsi, rax"], [110, "call sub_420665"], [111, "mov rax, [rbp+var_20]"], [112, "test rax, rax"], [113, "jnz loc_41F83B"], [114, "mov eax, [rbp+var_24]"], [115, "leave"], [116, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [9, 3], [10, 22], [10, 15], [10, 26], [10, 9], [11, 10], [12, 11], [13, 4], [14, 3], [15, 14], [15, 13], [16, 4], [17, 16], [17, 15], [17, 26], [18, 17], [19, 18], [21, 3], [22, 21], [22, 20], [23, 4], [24, 26], [24, 23], [24, 22], [25, 3], [26, 25], [26, 24], [27, 3], [28, 27], [28, 26], [29, 3], [30, 29], [31, 28], [32, 31], [33, 4], [34, 32], [35, 3], [36, 33], [37, 35], [39, 38], [40, 39], [41, 40], [42, 4], [42, 33], [43, 3], [45, 42], [46, 43], [48, 47], [49, 48], [50, 49], [51, 48], [53, 48], [53, 39], [54, 53], [56, 4], [57, 56], [58, 57], [59, 4], [60, 3], [61, 59], [62, 60], [64, 63], [65, 64], [66, 65], [67, 64], [69, 3], [70, 70], [70, 22], [70, 15], [70, 33], [70, 42], [70, 26], [70, 69], [71, 3], [72, 59], [72, 22], [72, 15], [72, 72], [72, 26], [72, 44], [72, 71], [72, 34], [73, 3], [74, 73], [74, 15], [74, 22], [74, 26], [74, 74], [74, 37], [74, 46], [74, 62], [75, 73], [75, 4], [76, 75], [78, 4], [79, 78], [80, 79], [81, 55], [83, 39], [83, 48], [84, 83], [85, 4], [86, 3], [87, 85], [88, 86], [90, 39], [90, 48], [92, 4], [93, 3], [94, 92], [95, 93], [97, 96], [98, 97], [99, 98], [100, 97], [102, 3], [103, 102], [103, 33], [103, 42], [103, 26], [103, 103], [103, 22], [103, 15], [104, 3], [105, 15], [105, 104], [105, 26], [105, 92], [105, 105], [105, 22], [106, 3], [107, 95], [107, 106], [107, 26], [107, 22], [107, 107], [107, 15], [108, 4], [108, 106], [109, 108], [111, 4], [112, 111], [113, 112], [114, 5], [114, 39], [114, 48], [116, 100], [116, 67], [116, 51], [116, 81], [116, 90], [116, 114]]}
{"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/409f7ebd875056ec33b17ff69e77e300c0715d956d9a542312496070b0061f7d_409f7ebd875056ec33b17ff69e77e300c0715d956d9a542312496070b0061f7d.jsonl.gz", "strip_func_name": "sub_41F828", "query": "\n\n\n__int64 __fastcall sub_41F828(__int64 a1, __int64 a2, unsigned int a3)\n{\nunsigned int v3; // eax\n__int64 v6; // [rsp+10h] [rbp-20h] BYREF\n__int64 v7; // [rsp+18h] [rbp-18h]\nunsigned int v8; // [rsp+2Ch] [rbp-4h]\n\nv7 = a1;\nv6 = a2;\nwhile ( !v6 )\n{\nLABEL_17:\nsub_420665(v7 + 56, &v6, v7 + 40, v7 + 140);\nif ( !v6 )\nreturn a3;\n}\nif ( !*(_QWORD *)(v7 + 1120) )\n{\nLABEL_15:\nv8 = sub_41FAF8(v7, v6);\nif ( v8 )\nreturn v8;\ngoto LABEL_17;\n}\n*(_QWORD *)(v7 + 1032) = v6;\n*(_QWORD *)(v7 + 1040) = sub_41F9E4(*(unsigned __int16 *)(v6 + 10));\n*(_WORD *)(v7 + 10) = *(_WORD *)(v6 + 10);\nv3 = (*(__int64 (__fastcall **)(__int64))(v7 + 1120))(v7);\na3 = sub_41FE99(v7, v6, v3);\nif ( a3 == 16386 )\n{\na3 = sub_41F388(v7, &v6, 0);\nif ( a3 )\nreturn a3;\n}\nif ( a3 != 16387 )\n{\nif ( a3 )\n{\nsub_41FAF8(v7, v6);\nreturn a3;\n}\ngoto LABEL_15;\n}\ndo\n{\nif ( v6 )\n{\nv8 = sub_41FAF8(v7, v6);\nif ( v8 )\nreturn v8;\n}\nsub_420665(v7 + 56, &v6, v7 + 40, v7 + 140);\n}\nwhile ( v6 );\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v6,v7,v8,sub_41F828,sub_420665,sub_41FAF8,sub_41F9E4,sub_41FE99,sub_41F388,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'Status', 'a1': 'WalkState', 'a2': 'Op', 'v6': 'Opa', 'v7': 'WalkStatea', 'v8': 'Status2', 'sub_41F828': 'AcpiPsCompleteFinalOp', 'sub_420665': 'AcpiPsPopScope', 'sub_41FAF8': 'AcpiPsCompleteThisOp', 'sub_41F9E4': 'AcpiPsGetOpcodeInfo', 'sub_41FE99': 'AcpiPsNextParseState', 'sub_41F388': 'AcpiPsCompleteOp'}"}
schedule_entry
a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8
AonCyberLabs
D-Modem
NA
static pj_status_t schedule_entry( pj_timer_heap_t *ht, pj_timer_entry *entry, const pj_time_val *future_time ) { if (ht->cur_size < ht->max_size) { // Obtain the next unique sequence number. // Set the entry entry->_timer_id = pop_freelist(ht); return insert_node( ht, entry, future_time ); } else return -1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_483370", "function_addr": 4731760, "binary_name": "a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, [rbp+var_8]"], [7, "mov rdx, [rax+10h]"], [8, "mov rax, [rbp+var_8]"], [9, "mov rax, [rax+8]"], [10, "cmp rdx, rax"], [11, "jnb short loc_4833C5"], [12, "mov rax, [rbp+var_8]"], [13, "mov rdi, rax"], [14, "call sub_482956"], [15, "mov rdx, [rbp+var_10]"], [16, "mov [rdx+18h], eax"], [17, "mov rdx, [rbp+var_18]"], [18, "mov rcx, [rbp+var_10]"], [19, "mov rax, [rbp+var_8]"], [20, "mov rsi, rcx"], [21, "mov rdi, rax"], [22, "call sub_48325A"], [23, "jmp short locret_4833CA"], [24, "mov eax, 0FFFFFFFFh"], [25, "leave"], [26, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 3], [9, 8], [10, 9], [10, 7], [11, 10], [12, 3], [13, 12], [15, 4], [16, 15], [16, 14], [17, 5], [18, 4], [19, 3], [20, 18], [21, 19], [26, 24], [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/a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8_a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8.jsonl.gz", "strip_func_name": "sub_483370", "query": "\n\n\n__int64 __fastcall sub_483370(_QWORD *a1, int *a2, _QWORD *a3)\n{\nif ( a1[2] >= a1[1] )\nreturn 0xFFFFFFFFLL;\na2[6] = sub_482956((__int64)a1);\nreturn sub_48325A(a1, a2, a3);\n}\n\n\n\nQ:[a3,a1,a2,sub_483370,sub_482956,sub_48325A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'future_time', 'a1': 'ht', 'a2': 'entry', 'sub_483370': 'schedule_entry', 'sub_482956': 'pop_freelist', 'sub_48325A': 'insert_node'}"}
wait_for_pager_signal
decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08
khadas
linux
NA
static void wait_for_pager_signal(int signo) { wait_for_pager(); sigchain_pop(signo); raise(signo); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_48BB89", "function_addr": 4766601, "binary_name": "decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+sig], edi"], [4, "mov rax, fs:28h"], [5, "mov [rbp+var_8], rax"], [6, "xor eax, eax"], [7, "call sub_48BB1F"], [8, "mov eax, [rbp+sig]"], [9, "mov edi, eax"], [10, "call sigchain_pop"], [11, "mov eax, [rbp+sig]"], [12, "mov edi, eax"], [13, "call _raise"], [14, "nop"], [15, "mov rax, [rbp+var_8]"], [16, "sub rax, fs:28h"], [17, "jz short locret_48BBD1"], [18, "call ___stack_chk_fail"], [19, "leave"], [20, "retn"]], "data_dep": [[5, 4], [8, 3], [9, 8], [11, 3], [12, 11], [15, 5], [16, 15], [17, 16], [20, 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/decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08_decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08.jsonl.gz", "strip_func_name": "sub_48BB89", "query": "\n\n\nunsigned __int64 __fastcall sub_48BB89(int a1, __int64 a2)\n{\n__int64 v2; // rdx\n__int64 v3; // rcx\n__int64 v4; // r8\n__int64 v5; // r9\nunsigned __int64 v7; // [rsp+18h] [rbp-8h]\n\nv7 = __readfsqword(0x28u);\nsub_48BB1F();\nsigchain_pop(a1, a2, v2, v3, v4, v5);\nraise(a1);\nreturn v7 - __readfsqword(0x28u);\n}\n\n\n\nQ:[a1,sub_48BB89,sub_48BB1F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'signo', 'sub_48BB89': 'wait_for_pager_signal', 'sub_48BB1F': 'wait_for_pager'}"}
vdu_2307
8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb
stardot
MatrixBrandy
NA
static void vdu_2307(void) { int32 windowed; if (vduqueue[1] == 0) { windowed = 1; } else { windowed = 0; } switch (vduqueue[2]) { case 0: /* Scroll right */ scroll_right(windowed); break; case 1: /* Scroll left */ scroll_left(windowed); break; case 2: /* Scroll down */ scroll_down(windowed); break; case 3: /* Scroll up */ scroll_up(windowed); break; case 4: /* Scroll in positive X direction (default right) */ scroll_xpos(windowed); break; case 5: /* Scroll in negative X direction (default left) */ scroll_xneg(windowed); break; case 6: /* Scroll in positive Y direction (default down) */ scroll_ypos(windowed); break; case 7: /* Scroll in negative Y direction (default up) */ scroll_yneg(windowed); break; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414A0F", "function_addr": 4278799, "binary_name": "8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "movzx eax, cs:byte_483161"], [4, "test al, al"], [5, "jnz short loc_414A2B"], [6, "mov [rbp+var_4], 1"], [7, "jmp short loc_414A32"], [8, "mov [rbp+var_4], 0"], [9, "movzx eax, cs:byte_483162"], [10, "movzx eax, al"], [11, "cmp eax, 7"], [12, "ja short def_414A4B"], [13, "mov eax, eax"], [14, "mov rax, ds:jpt_414A4B[rax*8]"], [15, "jmp rax"], [16, "mov eax, [rbp+var_4]"], [17, "mov edi, eax"], [18, "call sub_416D59"], [19, "jmp short def_414A4B"], [20, "mov eax, [rbp+var_4]"], [21, "mov edi, eax"], [22, "call sub_4168FE"], [23, "jmp short def_414A4B"], [24, "mov eax, [rbp+var_4]"], [25, "mov edi, eax"], [26, "call sub_41648A"], [27, "jmp short def_414A4B"], [28, "mov eax, [rbp+var_4]"], [29, "mov edi, eax"], [30, "call sub_415FF8"], [31, "jmp short def_414A4B"], [32, "mov eax, [rbp+var_4]"], [33, "mov edi, eax"], [34, "call sub_4170D5"], [35, "jmp short def_414A4B"], [36, "mov eax, [rbp+var_4]"], [37, "mov edi, eax"], [38, "call sub_417132"], [39, "jmp short def_414A4B"], [40, "mov eax, [rbp+var_4]"], [41, "mov edi, eax"], [42, "call sub_41718F"], [43, "jmp short def_414A4B"], [44, "mov eax, [rbp+var_4]"], [45, "mov edi, eax"], [46, "call sub_4171EC"], [47, "nop"], [48, "nop"], [49, "leave"], [50, "retn"]], "data_dep": [[4, 3], [5, 4], [10, 9], [11, 10], [12, 11], [13, 10], [15, 14], [16, 6], [16, 8], [17, 16], [20, 8], [20, 6], [21, 20], [24, 8], [24, 6], [25, 24], [28, 6], [28, 8], [29, 28], [32, 6], [32, 8], [33, 32], [36, 6], [36, 8], [37, 36], [40, 6], [40, 8], [41, 40], [44, 8], [44, 6], [45, 44], [50, 46], [50, 18], [50, 30], [50, 42], [50, 26], [50, 38], [50, 10], [50, 22], [50, 34]]}
{"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_414A0F", "query": "\n\n\n__int64 sub_414A0F()\n{\n__int64 result; // rax\n\nresult = (unsigned __int8)byte_483162;\nswitch ( byte_483162 )\n{\ncase 0:\nresult = sub_416D59(byte_483161 == 0);\nbreak;\ncase 1:\nresult = sub_4168FE(byte_483161 == 0);\nbreak;\ncase 2:\nresult = sub_41648A(byte_483161 == 0);\nbreak;\ncase 3:\nresult = sub_415FF8(byte_483161 == 0);\nbreak;\ncase 4:\nresult = sub_4170D5(byte_483161 == 0);\nbreak;\ncase 5:\nresult = sub_417132(byte_483161 == 0);\nbreak;\ncase 6:\nresult = sub_41718F(byte_483161 == 0);\nbreak;\ncase 7:\nresult = sub_4171EC(byte_483161 == 0);\nbreak;\ndefault:\nreturn result;\n}\nreturn result;\n}\n\n\n\nQ:[sub_414A0F,sub_416D59,sub_4168FE,sub_41648A,sub_415FF8,sub_4170D5,sub_417132,sub_41718F,sub_4171EC,]\nAssistant: ", "hints": "[]", "response": "{'sub_414A0F': 'vdu_2307', 'sub_416D59': 'scroll_right', 'sub_4168FE': 'scroll_left', 'sub_41648A': 'scroll_down', 'sub_415FF8': 'scroll_up', 'sub_4170D5': 'scroll_xpos', 'sub_417132': 'scroll_xneg', 'sub_41718F': 'scroll_ypos', 'sub_4171EC': 'scroll_yneg'}"}
new_decode_dev
2d9afaec97fe4600ae949d689ca152804a46f89846625a56c49994d8db0a008b
OpenCloudOS
perf-prof
NA
static inline dev_t new_decode_dev(u32 dev) { unsigned major = (dev & 0xfff00) >> 8; unsigned minor = (dev & 0xff) | ((dev >> 12) & 0xfff00); return MKDEV(major, minor); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_421A1A", "function_addr": 4332058, "binary_name": "2d9afaec97fe4600ae949d689ca152804a46f89846625a56c49994d8db0a008b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_14], edi"], [3, "mov eax, [rbp+var_14]"], [4, "shr eax, 8"], [5, "and eax, 0FFFh"], [6, "mov [rbp+var_4], eax"], [7, "mov eax, [rbp+var_14]"], [8, "movzx edx, al"], [9, "mov eax, [rbp+var_14]"], [10, "shr eax, 0Ch"], [11, "and eax, 0FFF00h"], [12, "or eax, edx"], [13, "mov [rbp+var_8], eax"], [14, "mov eax, [rbp+var_4]"], [15, "shl eax, 14h"], [16, "or eax, [rbp+var_8]"], [17, "mov eax, eax"], [18, "pop rbp"], [19, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [7, 2], [8, 7], [9, 2], [10, 9], [11, 10], [12, 11], [12, 8], [13, 12], [14, 6], [15, 14], [16, 13], [16, 15], [17, 16], [18, 0], [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/2d9afaec97fe4600ae949d689ca152804a46f89846625a56c49994d8db0a008b_2d9afaec97fe4600ae949d689ca152804a46f89846625a56c49994d8db0a008b.jsonl.gz", "strip_func_name": "sub_421A1A", "query": "\n\n\n__int64 __fastcall sub_421A1A(unsigned int a1)\n{\nreturn (unsigned __int8)a1 | (a1 >> 12) & 0xFFF00 | (a1 >> 8 << 20);\n}\n\n\n\nQ:[a1,sub_421A1A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dev', 'sub_421A1A': 'new_decode_dev'}"}
search_backspace
c0991e08b6ca9a04669d67fded9ba9f7104796d22e363fa4f7759ba64e5c9aad
sonic-net
sonic-buildimage
NA
static void search_backspace(void) { size_t len; len = os_strlen(search_buf); if (len == 0) return; search_buf[len - 1] = '\0'; search_skip = 0; search_redraw(); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40CD12", "function_addr": 4246802, "binary_name": "c0991e08b6ca9a04669d67fded9ba9f7104796d22e363fa4f7759ba64e5c9aad.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov edi, offset needle"], [4, "call _strlen"], [5, "mov [rbp+var_8], rax"], [6, "cmp [rbp+var_8], 0"], [7, "jz short loc_40CD4F"], [8, "mov rax, [rbp+var_8]"], [9, "sub rax, 1"], [10, "mov ds:needle[rax], 0"], [11, "mov cs:dword_418558, 0"], [12, "call sub_40CBFF"], [13, "jmp short locret_40CD50"], [14, "nop"], [15, "leave"], [16, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 5], [9, 8], [16, 12], [16, 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/c0991e08b6ca9a04669d67fded9ba9f7104796d22e363fa4f7759ba64e5c9aad_c0991e08b6ca9a04669d67fded9ba9f7104796d22e363fa4f7759ba64e5c9aad.jsonl.gz", "strip_func_name": "sub_40CD12", "query": "\n\n\nint sub_40CD12()\n{\nsize_t v0; // rax\n\nv0 = strlen(needle);\nif ( v0 )\n{\nneedle[v0 - 1] = 0;\ndword_418558 = 0;\nLODWORD(v0) = sub_40CBFF();\n}\nreturn v0;\n}\n\n\n\nQ:[sub_40CD12,sub_40CBFF,]\nAssistant: ", "hints": "[]", "response": "{'sub_40CD12': 'search_backspace', 'sub_40CBFF': 'search_redraw'}"}
pj_stun_get_err_reason
d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c
AonCyberLabs
D-Modem
NA
PJ_DEF(pj_str_t) pj_stun_get_err_reason(int err_code) { #if 0 /* Find error using linear search */ unsigned i; for (i=0; i<PJ_ARRAY_SIZE(stun_err_msg_map); ++i) { if (stun_err_msg_map[i].err_code == err_code) return pj_str((char*)stun_err_msg_map[i].err_msg); } return pj_str(NULL); #else /* Find error message using binary search */ int first = 0; int n = PJ_ARRAY_SIZE(stun_err_msg_map); while (n > 0) { int half = n/2; int mid = first + half; if (stun_err_msg_map[mid].err_code < err_code) { first = mid+1; n -= (half+1); } else if (stun_err_msg_map[mid].err_code > err_code) { n = half; } else { first = mid; break; } } if (stun_err_msg_map[first].err_code == err_code) { return pj_str((char*)stun_err_msg_map[first].err_msg); } else { return pj_str(NULL); } #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409725", "function_addr": 4232997, "binary_name": "d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_14], edi"], [4, "mov [rbp+var_4], 0"], [5, "mov [rbp+var_8], 12h"], [6, "jmp short loc_4097AA"], [7, "mov eax, [rbp+var_8]"], [8, "mov edx, eax"], [9, "shr edx, 1Fh"], [10, "add eax, edx"], [11, "sar eax, 1"], [12, "mov [rbp+var_C], eax"], [13, "mov edx, [rbp+var_4]"], [14, "mov eax, [rbp+var_C]"], [15, "add eax, edx"], [16, "mov [rbp+var_10], eax"], [17, "mov eax, [rbp+var_10]"], [18, "cdqe"], [19, "shl rax, 4"], [20, "add rax, 4394E0h"], [21, "mov eax, [rax]"], [22, "cmp [rbp+var_14], eax"], [23, "jle short loc_409784"], [24, "mov eax, [rbp+var_10]"], [25, "add eax, 1"], [26, "mov [rbp+var_4], eax"], [27, "mov eax, [rbp+var_C]"], [28, "add eax, 1"], [29, "sub [rbp+var_8], eax"], [30, "jmp short loc_4097AA"], [31, "mov eax, [rbp+var_10]"], [32, "cdqe"], [33, "shl rax, 4"], [34, "add rax, 4394E0h"], [35, "mov eax, [rax]"], [36, "cmp [rbp+var_14], eax"], [37, "jge short loc_4097A2"], [38, "mov eax, [rbp+var_C]"], [39, "mov [rbp+var_8], eax"], [40, "jmp short loc_4097AA"], [41, "mov eax, [rbp+var_10]"], [42, "mov [rbp+var_4], eax"], [43, "jmp short loc_4097B0"], [44, "cmp [rbp+var_8], 0"], [45, "jg short loc_409740"], [46, "mov eax, [rbp+var_4]"], [47, "cdqe"], [48, "shl rax, 4"], [49, "add rax, 4394E0h"], [50, "mov eax, [rax]"], [51, "cmp [rbp+var_14], eax"], [52, "jnz short loc_4097E2"], [53, "mov eax, [rbp+var_4]"], [54, "cdqe"], [55, "shl rax, 4"], [56, "add rax, 4394E8h"], [57, "mov rax, [rax]"], [58, "mov rdi, rax"], [59, "call sub_423FA6"], [60, "jmp short locret_4097EC"], [61, "mov edi, 0"], [62, "call sub_423FA6"], [63, "leave"], [64, "retn"]], "data_dep": [[7, 29], [7, 39], [7, 5], [8, 7], [9, 8], [10, 9], [10, 7], [11, 10], [12, 11], [13, 26], [13, 4], [14, 12], [15, 14], [15, 13], [16, 15], [17, 16], [19, 17], [20, 19], [21, 20], [22, 3], [22, 21], [23, 22], [24, 16], [25, 24], [26, 25], [27, 12], [28, 27], [29, 29], [29, 28], [29, 39], [29, 5], [31, 16], [33, 31], [34, 33], [35, 34], [36, 3], [36, 35], [37, 36], [38, 12], [39, 38], [41, 16], [42, 41], [44, 39], [44, 5], [44, 29], [45, 44], [46, 42], [46, 26], [46, 4], [48, 46], [49, 48], [50, 49], [51, 50], [51, 3], [52, 51], [53, 26], [53, 4], [53, 42], [55, 53], [56, 55], [57, 56], [58, 57], [64, 59], [64, 62]]}
{"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/d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c_d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c.jsonl.gz", "strip_func_name": "sub_409725", "query": "\n\n\n__int64 __fastcall sub_409725(int a1)\n{\n__int64 result; // rax\nint v2; // [rsp+10h] [rbp-10h]\nint v3; // [rsp+18h] [rbp-8h]\nint v4; // [rsp+1Ch] [rbp-4h]\n\nv4 = 0;\nv3 = 18;\nwhile ( v3 > 0 )\n{\nv2 = v4 + v3 / 2;\nif ( a1 <= dword_4394E0[4 * v2] )\n{\nif ( a1 >= dword_4394E0[4 * v2] )\n{\nv4 += v3 / 2;\nbreak;\n}\nv3 /= 2;\n}\nelse\n{\nv4 = v2 + 1;\nv3 -= v3 / 2 + 1;\n}\n}\nif ( a1 == dword_4394E0[4 * v4] )\nresult = sub_423FA6(*(_QWORD *)&dword_4394E0[4 * v4 + 2]);\nelse\nresult = sub_423FA6(0LL);\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,v4,sub_409725,sub_423FA6,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'err_code', 'v2': 'mid', 'v3': 'n', 'v4': 'first', 'sub_409725': 'pj_stun_get_err_reason', 'sub_423FA6': 'pj_str'}"}
parse_one_nh
bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb
multipath-tcp
iproute-mptcp
NA
static int parse_one_nh(struct nlmsghdr *n, struct rtmsg *r, struct rtattr *rta, size_t len, struct rtnexthop *rtnh, int *argcp, char ***argvp) { int argc = *argcp; char **argv = *argvp; while (++argv, --argc > 0) { if (strcmp(*argv, "via") == 0) { inet_prefix addr; int family; NEXT_ARG(); family = read_family(*argv); if (family == AF_UNSPEC) family = r->rtm_family; else NEXT_ARG(); get_addr(&addr, *argv, family); if (r->rtm_family == AF_UNSPEC) r->rtm_family = addr.family; if (addr.family == r->rtm_family) { if (rta_addattr_l(rta, len, RTA_GATEWAY, &addr.data, addr.bytelen)) return -1; rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; } else { if (rta_addattr_l(rta, len, RTA_VIA, &addr.family, addr.bytelen + 2)) return -1; rtnh->rtnh_len += RTA_SPACE(addr.bytelen + 2); } } else if (strcmp(*argv, "dev") == 0) { NEXT_ARG(); rtnh->rtnh_ifindex = ll_name_to_index(*argv); if (!rtnh->rtnh_ifindex) return nodev(*argv); } else if (strcmp(*argv, "weight") == 0) { unsigned int w; NEXT_ARG(); if (get_unsigned(&w, *argv, 0) || w == 0 || w > 256) invarg("\"weight\" is invalid\n", *argv); rtnh->rtnh_hops = w - 1; } else if (strcmp(*argv, "onlink") == 0) { rtnh->rtnh_flags |= RTNH_F_ONLINK; } else if (matches(*argv, "realms") == 0) { __u32 realm; NEXT_ARG(); if (get_rt_realms_or_raw(&realm, *argv)) invarg("\"realm\" value is invalid\n", *argv); if (rta_addattr32(rta, len, RTA_FLOW, realm)) return -1; rtnh->rtnh_len += sizeof(struct rtattr) + 4; } else if (strcmp(*argv, "encap") == 0) { int old_len = rta->rta_len; if (lwt_parse_encap(rta, len, &argc, &argv, RTA_ENCAP, RTA_ENCAP_TYPE)) return -1; rtnh->rtnh_len += rta->rta_len - old_len; } else if (strcmp(*argv, "as") == 0) { inet_prefix addr; NEXT_ARG(); if (strcmp(*argv, "to") == 0) NEXT_ARG(); get_addr(&addr, *argv, r->rtm_family); if (rta_addattr_l(rta, len, RTA_NEWDST, &addr.data, addr.bytelen)) return -1; rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; } else break; } *argcp = argc; *argvp = argv; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4164E4", "function_addr": 4285668, "binary_name": "bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 160h"], [3, "mov [rbp+var_138], rdi"], [4, "mov [rbp+var_140], rsi"], [5, "mov [rbp+var_148], rdx"], [6, "mov [rbp+var_150], rcx"], [7, "mov [rbp+var_158], r8"], [8, "mov [rbp+var_160], r9"], [9, "mov rax, [rbp+var_160]"], [10, "mov eax, [rax]"], [11, "mov [rbp+var_C], eax"], [12, "mov rax, [rbp+arg_0]"], [13, "mov rax, [rax]"], [14, "mov [rbp+var_18], rax"], [15, "jmp loc_416A75"], [16, "mov rax, [rbp+var_18]"], [17, "mov rax, [rax]"], [18, "mov esi, offset aVia_0"], [19, "mov rdi, rax"], [20, "call _strcmp"], [21, "test eax, eax"], [22, "jnz loc_4166EE"], [23, "mov rax, [rbp+var_18]"], [24, "add rax, 8"], [25, "mov [rbp+var_18], rax"], [26, "mov eax, [rbp+var_C]"], [27, "sub eax, 1"], [28, "mov [rbp+var_C], eax"], [29, "mov eax, [rbp+var_C]"], [30, "test eax, eax"], [31, "jg short loc_416572"], [32, "call incomplete_command"], [33, "mov rax, [rbp+var_18]"], [34, "mov rax, [rax]"], [35, "mov rdi, rax"], [36, "call read_family"], [37, "mov [rbp+var_4], eax"], [38, "cmp [rbp+var_4], 0"], [39, "jnz short loc_41659C"], [40, "mov rax, [rbp+var_140]"], [41, "movzx eax, byte ptr [rax]"], [42, "movzx eax, al"], [43, "mov [rbp+var_4], eax"], [44, "jmp short loc_4165BD"], [45, "mov rax, [rbp+var_18]"], [46, "add rax, 8"], [47, "mov [rbp+var_18], rax"], [48, "mov eax, [rbp+var_C]"], [49, "sub eax, 1"], [50, "mov [rbp+var_C], eax"], [51, "mov eax, [rbp+var_C]"], [52, "test eax, eax"], [53, "jg short loc_4165BD"], [54, "call incomplete_command"], [55, "mov rax, [rbp+var_18]"], [56, "mov rcx, [rax]"], [57, "mov edx, [rbp+var_4]"], [58, "lea rax, [rbp+var_130]"], [59, "mov rsi, rcx"], [60, "mov rdi, rax"], [61, "call get_addr"], [62, "mov rax, [rbp+var_140]"], [63, "movzx eax, byte ptr [rax]"], [64, "test al, al"], [65, "jnz short loc_4165F9"], [66, "movzx eax, [rbp+var_12A]"], [67, "mov edx, eax"], [68, "mov rax, [rbp+var_140]"], [69, "mov [rax], dl"], [70, "movzx edx, [rbp+var_12A]"], [71, "mov rax, [rbp+var_140]"], [72, "movzx eax, byte ptr [rax]"], [73, "movzx eax, al"], [74, "cmp dx, ax"], [75, "jnz short loc_41667D"], [76, "movzx eax, [rbp+var_12E]"], [77, "movzx ecx, ax"], [78, "mov rax, [rbp+var_150]"], [79, "mov esi, eax"], [80, "lea rax, [rbp+var_130]"], [81, "lea rdx, [rax+8]"], [82, "mov rax, [rbp+var_148]"], [83, "mov r8d, ecx"], [84, "mov rcx, rdx"], [85, "mov edx, 5"], [86, "mov rdi, rax"], [87, "call rta_addattr_l"], [88, "test eax, eax"], [89, "jz short loc_416658"], [90, "mov eax, 0FFFFFFFFh"], [91, "jmp locret_416AB4"], [92, "mov rax, [rbp+var_158]"], [93, "movzx edx, word ptr [rax]"], [94, "movzx eax, [rbp+var_12E]"], [95, "add eax, edx"], [96, "lea edx, [rax+4]"], [97, "mov rax, [rbp+var_158]"], [98, "mov [rax], dx"], [99, "jmp loc_416A75"], [100, "movzx eax, [rbp+var_12E]"], [101, "movzx eax, ax"], [102, "lea ecx, [rax+2]"], [103, "mov rax, [rbp+var_150]"], [104, "mov esi, eax"], [105, "lea rax, [rbp+var_130]"], [106, "lea rdx, [rax+6]"], [107, "mov rax, [rbp+var_148]"], [108, "mov r8d, ecx"], [109, "mov rcx, rdx"], [110, "mov edx, 12h"], [111, "mov rdi, rax"], [112, "call rta_addattr_l"], [113, "test eax, eax"], [114, "jz short loc_4166C6"], [115, "mov eax, 0FFFFFFFFh"], [116, "jmp locret_416AB4"], [117, "mov rax, [rbp+var_158]"], [118, "movzx edx, word ptr [rax]"], [119, "movzx eax, [rbp+var_12E]"], [120, "add eax, 9"], [121, "and eax, 0FFFFFFFCh"], [122, "add edx, eax"], [123, "mov rax, [rbp+var_158]"], [124, "mov [rax], dx"], [125, "jmp loc_416A75"], [126, "mov rax, [rbp+var_18]"], [127, "mov rax, [rax]"], [128, "mov esi, offset aDev_2"], [129, "mov rdi, rax"], [130, "call _strcmp"], [131, "test eax, eax"], [132, "jnz short loc_416768"], [133, "mov rax, [rbp+var_18]"], [134, "add rax, 8"], [135, "mov [rbp+var_18], rax"], [136, "mov eax, [rbp+var_C]"], [137, "sub eax, 1"], [138, "mov [rbp+var_C], eax"], [139, "mov eax, [rbp+var_C]"], [140, "test eax, eax"], [141, "jg short loc_416727"], [142, "call incomplete_command"], [143, "mov rax, [rbp+var_18]"], [144, "mov rax, [rax]"], [145, "mov rdi, rax"], [146, "call ll_name_to_index"], [147, "mov edx, eax"], [148, "mov rax, [rbp+var_158]"], [149, "mov [rax+4], edx"], [150, "mov rax, [rbp+var_158]"], [151, "mov eax, [rax+4]"], [152, "test eax, eax"], [153, "jnz loc_416A75"], [154, "mov rax, [rbp+var_18]"], [155, "mov rax, [rax]"], [156, "mov rdi, rax"], [157, "call nodev"], [158, "jmp locret_416AB4"], [159, "mov rax, [rbp+var_18]"], [160, "mov rax, [rax]"], [161, "mov esi, offset aWeight"], [162, "mov rdi, rax"], [163, "call _strcmp"], [164, "test eax, eax"], [165, "jnz short loc_4167FA"], [166, "mov rax, [rbp+var_18]"], [167, "add rax, 8"], [168, "mov [rbp+var_18], rax"], [169, "mov eax, [rbp+var_C]"], [170, "sub eax, 1"], [171, "mov [rbp+var_C], eax"], [172, "mov eax, [rbp+var_C]"], [173, "test eax, eax"], [174, "jg short loc_4167A1"], [175, "call incomplete_command"], [176, "mov rax, [rbp+var_18]"], [177, "mov rcx, [rax]"], [178, "lea rax, [rbp+var_1C]"], [179, "mov edx, 0"], [180, "mov rsi, rcx"], [181, "mov rdi, rax"], [182, "call get_unsigned"], [183, "test eax, eax"], [184, "jnz short loc_4167D1"], [185, "mov eax, [rbp+var_1C]"], [186, "test eax, eax"], [187, "jz short loc_4167D1"], [188, "mov eax, [rbp+var_1C]"], [189, "cmp eax, 100h"], [190, "jbe short loc_4167E5"], [191, "mov rax, [rbp+var_18]"], [192, "mov rax, [rax]"], [193, "mov rsi, rax"], [194, "mov edi, offset aWeightIsInvali"], [195, "call invarg"], [196, "mov eax, [rbp+var_1C]"], [197, "lea edx, [rax-1]"], [198, "mov rax, [rbp+var_158]"], [199, "mov [rax+3], dl"], [200, "jmp loc_416A75"], [201, "mov rax, [rbp+var_18]"], [202, "mov rax, [rax]"], [203, "mov esi, offset aOnlink"], [204, "mov rdi, rax"], [205, "call _strcmp"], [206, "test eax, eax"], [207, "jnz short loc_416831"], [208, "mov rax, [rbp+var_158]"], [209, "movzx eax, byte ptr [rax+2]"], [210, "or eax, 4"], [211, "mov edx, eax"], [212, "mov rax, [rbp+var_158]"], [213, "mov [rax+2], dl"], [214, "jmp loc_416A75"], [215, "mov rax, [rbp+var_18]"], [216, "mov rax, [rax]"], [217, "mov esi, offset aRealms"], [218, "mov rdi, rax"], [219, "call matches"], [220, "xor eax, 1"], [221, "test al, al"], [222, "jz loc_4168EB"], [223, "mov rax, [rbp+var_18]"], [224, "add rax, 8"], [225, "mov [rbp+var_18], rax"], [226, "mov eax, [rbp+var_C]"], [227, "sub eax, 1"], [228, "mov [rbp+var_C], eax"], [229, "mov eax, [rbp+var_C]"], [230, "test eax, eax"], [231, "jg short loc_416871"], [232, "call incomplete_command"], [233, "mov rax, [rbp+var_18]"], [234, "mov rdx, [rax]"], [235, "lea rax, [rbp+var_20]"], [236, "mov rsi, rdx"], [237, "mov rdi, rax"], [238, "call get_rt_realms_or_raw"], [239, "test eax, eax"], [240, "jz short loc_41689F"], [241, "mov rax, [rbp+var_18]"], [242, "mov rax, [rax]"], [243, "mov rsi, rax"], [244, "mov edi, offset aRealmValueIsIn"], [245, "call invarg"], [246, "mov edx, [rbp+var_20]"], [247, "mov rax, [rbp+var_150]"], [248, "mov esi, eax"], [249, "mov rax, [rbp+var_148]"], [250, "mov ecx, edx"], [251, "mov edx, 0Bh"], [252, "mov rdi, rax"], [253, "call rta_addattr32"], [254, "test eax, eax"], [255, "jz short loc_4168CF"], [256, "mov eax, 0FFFFFFFFh"], [257, "jmp locret_416AB4"], [258, "mov rax, [rbp+var_158]"], [259, "movzx eax, word ptr [rax]"], [260, "lea edx, [rax+8]"], [261, "mov rax, [rbp+var_158]"], [262, "mov [rax], dx"], [263, "jmp loc_416A75"], [264, "mov rax, [rbp+var_18]"], [265, "mov rax, [rax]"], [266, "mov esi, offset aEncap"], [267, "mov rdi, rax"], [268, "call _strcmp"], [269, "test eax, eax"], [270, "jnz short loc_416976"], [271, "mov rax, [rbp+var_148]"], [272, "movzx eax, word ptr [rax]"], [273, "movzx eax, ax"], [274, "mov [rbp+var_8], eax"], [275, "lea rcx, [rbp+var_18]"], [276, "lea rdx, [rbp+var_C]"], [277, "mov rsi, [rbp+var_150]"], [278, "mov rax, [rbp+var_148]"], [279, "mov r9d, 15h"], [280, "mov r8d, 16h"], [281, "mov rdi, rax"], [282, "call lwt_parse_encap"], [283, "test eax, eax"], [284, "jz short loc_41694B"], [285, "mov eax, 0FFFFFFFFh"], [286, "jmp locret_416AB4"], [287, "mov rax, [rbp+var_158]"], [288, "movzx ecx, word ptr [rax]"], [289, "mov rax, [rbp+var_148]"], [290, "movzx eax, word ptr [rax]"], [291, "mov edx, [rbp+var_8]"], [292, "sub eax, edx"], [293, "lea edx, [rcx+rax]"], [294, "mov rax, [rbp+var_158]"], [295, "mov [rax], dx"], [296, "jmp loc_416A75"], [297, "mov rax, [rbp+var_18]"], [298, "mov rax, [rax]"], [299, "mov esi, offset aAs"], [300, "mov rdi, rax"], [301, "call _strcmp"], [302, "test eax, eax"], [303, "jnz loc_416A97"], [304, "mov rax, [rbp+var_18]"], [305, "add rax, 8"], [306, "mov [rbp+var_18], rax"], [307, "mov eax, [rbp+var_C]"], [308, "sub eax, 1"], [309, "mov [rbp+var_C], eax"], [310, "mov eax, [rbp+var_C]"], [311, "test eax, eax"], [312, "jg short loc_4169B3"], [313, "call incomplete_command"], [314, "mov rax, [rbp+var_18]"], [315, "mov rax, [rax]"], [316, "mov esi, offset aTo_0"], [317, "mov rdi, rax"], [318, "call _strcmp"], [319, "test eax, eax"], [320, "jnz short loc_4169EC"], [321, "mov rax, [rbp+var_18]"], [322, "add rax, 8"], [323, "mov [rbp+var_18], rax"], [324, "mov eax, [rbp+var_C]"], [325, "sub eax, 1"], [326, "mov [rbp+var_C], eax"], [327, "mov eax, [rbp+var_C]"], [328, "test eax, eax"], [329, "jg short loc_4169EC"], [330, "call incomplete_command"], [331, "mov rax, [rbp+var_140]"], [332, "movzx eax, byte ptr [rax]"], [333, "movzx edx, al"], [334, "mov rax, [rbp+var_18]"], [335, "mov rcx, [rax]"], [336, "lea rax, [rbp+var_130]"], [337, "mov rsi, rcx"], [338, "mov rdi, rax"], [339, "call get_addr"], [340, "movzx eax, [rbp+var_12E]"], [341, "movzx ecx, ax"], [342, "mov rax, [rbp+var_150]"], [343, "mov esi, eax"], [344, "lea rax, [rbp+var_130]"], [345, "lea rdx, [rax+8]"], [346, "mov rax, [rbp+var_148]"], [347, "mov r8d, ecx"], [348, "mov rcx, rdx"], [349, "mov edx, 13h"], [350, "mov rdi, rax"], [351, "call rta_addattr_l"], [352, "test eax, eax"], [353, "jz short loc_416A55"], [354, "mov eax, 0FFFFFFFFh"], [355, "jmp short locret_416AB4"], [356, "mov rax, [rbp+var_158]"], [357, "movzx edx, word ptr [rax]"], [358, "movzx eax, [rbp+var_12E]"], [359, "add eax, edx"], [360, "lea edx, [rax+4]"], [361, "mov rax, [rbp+var_158]"], [362, "mov [rax], dx"], [363, "mov rax, [rbp+var_18]"], [364, "add rax, 8"], [365, "mov [rbp+var_18], rax"], [366, "mov eax, [rbp+var_C]"], [367, "sub eax, 1"], [368, "mov [rbp+var_C], eax"], [369, "mov eax, [rbp+var_C]"], [370, "test eax, eax"], [371, "jg loc_416535"], [372, "jmp short loc_416A98"], [373, "nop"], [374, "mov edx, [rbp+var_C]"], [375, "mov rax, [rbp+var_160]"], [376, "mov [rax], edx"], [377, "mov rdx, [rbp+var_18]"], [378, "mov rax, [rbp+arg_0]"], [379, "mov [rax], rdx"], [380, "mov eax, 0"], [381, "leave"], [382, "retn"]], "data_dep": [[9, 8], [10, 9], [11, 10], [13, 12], [14, 13], [16, 365], [17, 295], [17, 149], [17, 98], [17, 362], [17, 213], [17, 69], [17, 199], [17, 124], [17, 16], [17, 262], [19, 17], [21, 20], [22, 21], [23, 365], [24, 23], [25, 24], [26, 368], [27, 26], [28, 27], [29, 28], [30, 29], [31, 30], [33, 25], [34, 295], [34, 124], [34, 262], [34, 33], [34, 149], [34, 98], [34, 362], [34, 213], [34, 69], [34, 199], [35, 34], [37, 36], [38, 37], [39, 38], [40, 4], [41, 149], [41, 98], [41, 362], [41, 213], [41, 69], [41, 199], [41, 40], [41, 295], [41, 124], [41, 262], [42, 41], [43, 42], [45, 25], [46, 45], [47, 46], [48, 28], [49, 48], [50, 49], [51, 50], [52, 51], [53, 52], [55, 47], [55, 25], [56, 295], [56, 124], [56, 262], [56, 149], [56, 98], [56, 362], [56, 213], [56, 69], [56, 199], [56, 55], [57, 43], [57, 37], [58, 55], [59, 56], [60, 58], [62, 4], [63, 149], [63, 98], [63, 362], [63, 213], [63, 69], [63, 199], [63, 124], [63, 262], [63, 62], [63, 295], [64, 63], [65, 64], [67, 66], [68, 4], [69, 67], [69, 68], [71, 4], [72, 262], [72, 71], [72, 98], [72, 149], [72, 124], [72, 362], [72, 213], [72, 69], [72, 199], [72, 295], [73, 72], [74, 70], [74, 73], [75, 74], [77, 76], [78, 6], [79, 78], [80, 78], [81, 213], [81, 69], [81, 199], [81, 295], [81, 262], [81, 80], [81, 98], [81, 70], [81, 149], [81, 124], [81, 362], [82, 5], [83, 77], [84, 81], [86, 82], [88, 87], [89, 88], [92, 7], [93, 69], [93, 149], [93, 124], [93, 362], [93, 92], [93, 213], [93, 199], [93, 295], [93, 262], [93, 98], [95, 93], [95, 94], [96, 95], [96, 98], [96, 93], [96, 149], [96, 124], [96, 362], [96, 213], [96, 69], [96, 199], [96, 295], [96, 262], [97, 7], [98, 97], [98, 96], [101, 100], [102, 262], [102, 98], [102, 56], [102, 149], [102, 124], [102, 362], [102, 101], [102, 213], [102, 69], [102, 199], [102, 295], [103, 6], [104, 103], [105, 103], [106, 124], [106, 362], [106, 213], [106, 69], [106, 105], [106, 199], [106, 295], [106, 262], [106, 98], [106, 70], [106, 149], [107, 5], [108, 102], [109, 106], [111, 107], [113, 112], [114, 113], [117, 7], [118, 117], [118, 98], [118, 149], [118, 362], [118, 124], [118, 213], [118, 69], [118, 199], [118, 295], [118, 262], [120, 119], [121, 120], [122, 118], [122, 121], [123, 7], [124, 123], [124, 122], [126, 365], [127, 295], [127, 262], [127, 126], [127, 98], [127, 149], [127, 362], [127, 124], [127, 213], [127, 69], [127, 199], [129, 127], [131, 130], [132, 131], [133, 365], [134, 133], [135, 134], [136, 368], [137, 136], [138, 137], [139, 138], [140, 139], [141, 140], [143, 135], [144, 143], [144, 124], [144, 362], [144, 213], [144, 199], [144, 295], [144, 262], [144, 98], [144, 69], [144, 149], [145, 144], [147, 146], [148, 7], [149, 147], [149, 148], [150, 7], [151, 150], [151, 149], [152, 151], [153, 152], [154, 135], [155, 149], [155, 124], [155, 362], [155, 213], [155, 199], [155, 295], [155, 262], [155, 98], [155, 69], [155, 154], [156, 155], [159, 365], [160, 213], [160, 199], [160, 295], [160, 159], [160, 262], [160, 98], [160, 69], [160, 149], [160, 124], [160, 362], [162, 160], [164, 163], [165, 164], [166, 365], [167, 166], [168, 167], [169, 368], [170, 169], [171, 170], [172, 171], [173, 172], [174, 173], [176, 168], [177, 199], [177, 149], [177, 176], [177, 124], [177, 362], [177, 213], [177, 295], [177, 262], [177, 98], [177, 69], [178, 176], [180, 177], [181, 178], [183, 182], [184, 183], [186, 185], [187, 186], [189, 188], [190, 189], [191, 168], [192, 295], [192, 262], [192, 98], [192, 191], [192, 69], [192, 199], [192, 149], [192, 124], [192, 362], [192, 213], [193, 192], [197, 262], [197, 149], [197, 98], [197, 196], [197, 362], [197, 213], [197, 69], [197, 199], [197, 124], [197, 179], [197, 295], [198, 7], [199, 198], [199, 197], [201, 365], [202, 98], [202, 362], [202, 213], [202, 69], [202, 199], [202, 124], [202, 201], [202, 295], [202, 262], [202, 149], [204, 202], [206, 205], [207, 206], [208, 7], [209, 124], [209, 362], [209, 208], [209, 295], [209, 262], [209, 98], [209, 213], [209, 69], [209, 199], [209, 149], [210, 209], [211, 210], [212, 7], [213, 212], [213, 211], [215, 365], [216, 262], [216, 149], [216, 215], [216, 98], [216, 362], [216, 213], [216, 69], [216, 199], [216, 124], [216, 295], [218, 216], [220, 219], [221, 220], [222, 221], [223, 365], [224, 223], [225, 224], [226, 368], [227, 226], [228, 227], [229, 228], [230, 229], [231, 230], [233, 225], [234, 199], [234, 149], [234, 124], [234, 362], [234, 213], [234, 295], [234, 262], [234, 233], [234, 98], [234, 69], [235, 233], [236, 234], [237, 235], [239, 238], [240, 239], [241, 225], [242, 241], [242, 124], [242, 295], [242, 262], [242, 149], [242, 98], [242, 362], [242, 213], [242, 69], [242, 199], [243, 242], [247, 6], [248, 247], [249, 5], [250, 246], [252, 249], [254, 253], [255, 254], [258, 7], [259, 98], [259, 362], [259, 213], [259, 69], [259, 199], [259, 124], [259, 258], [259, 295], [259, 262], [259, 149], [260, 295], [260, 262], [260, 149], [260, 251], [260, 98], [260, 362], [260, 213], [260, 69], [260, 199], [260, 259], [260, 124], [261, 7], [262, 261], [262, 260], [264, 365], [265, 262], [265, 149], [265, 98], [265, 362], [265, 213], [265, 69], [265, 199], [265, 264], [265, 124], [265, 295], [267, 265], [269, 268], [270, 269], [271, 5], [272, 199], [272, 124], [272, 295], [272, 262], [272, 271], [272, 149], [272, 98], [272, 362], [272, 213], [272, 69], [273, 272], [274, 273], [275, 348], [275, 288], [275, 250], [275, 109], [275, 365], [275, 177], [275, 84], [276, 293], [276, 122], [276, 368], [276, 260], [276, 147], [276, 96], [276, 360], [276, 211], [276, 197], [277, 6], [278, 5], [281, 278], [283, 282], [284, 283], [287, 7], [288, 124], [288, 295], [288, 262], [288, 149], [288, 98], [288, 362], [288, 213], [288, 69], [288, 199], [288, 287], [289, 5], [290, 289], [290, 149], [290, 98], [290, 362], [290, 213], [290, 69], [290, 199], [290, 295], [290, 124], [290, 262], [291, 274], [292, 291], [292, 290], [293, 149], [293, 98], [293, 362], [293, 213], [293, 69], [293, 199], [293, 292], [293, 291], [293, 295], [293, 124], [293, 262], [294, 7], [295, 294], [295, 293], [297, 365], [298, 149], [298, 98], [298, 362], [298, 213], [298, 69], [298, 199], [298, 297], [298, 295], [298, 124], [298, 262], [300, 298], [302, 301], [303, 302], [304, 365], [305, 304], [306, 305], [307, 368], [308, 307], [309, 308], [310, 309], [311, 310], [312, 311], [314, 306], [315, 262], [315, 149], [315, 98], [315, 362], [315, 213], [315, 69], [315, 199], [315, 314], [315, 295], [315, 124], [317, 315], [319, 318], [320, 319], [321, 306], [322, 321], [323, 322], [324, 309], [325, 324], [326, 325], [327, 326], [328, 327], [329, 328], [331, 4], [332, 213], [332, 69], [332, 199], [332, 295], [332, 124], [332, 262], [332, 98], [332, 331], [332, 149], [332, 362], [333, 332], [334, 323], [334, 306], [335, 124], [335, 362], [335, 213], [335, 69], [335, 334], [335, 199], [335, 295], [335, 262], [335, 98], [335, 149], [336, 334], [337, 335], [338, 336], [341, 340], [342, 6], [343, 342], [344, 342], [345, 295], [345, 124], [345, 262], [345, 149], [345, 98], [345, 344], [345, 362], [345, 213], [345, 69], [345, 199], [345, 333], [346, 5], [347, 341], [348, 345], [350, 346], [352, 351], [353, 352], [356, 7], [357, 98], [357, 362], [357, 213], [357, 69], [357, 199], [357, 295], [357, 124], [357, 262], [357, 356], [357, 149], [359, 358], [359, 357], [360, 149], [360, 124], [360, 362], [360, 357], [360, 213], [360, 69], [360, 199], [360, 295], [360, 262], [360, 359], [360, 98], [361, 7], [362, 361], [362, 360], [363, 47], [363, 168], [363, 14], [363, 135], [363, 306], [363, 323], [363, 25], [363, 365], [363, 225], [364, 363], [365, 364], [366, 368], [366, 228], [366, 326], [366, 28], [366, 138], [366, 50], [366, 171], [366, 309], [366, 11], [367, 366], [368, 367], [369, 368], [370, 369], [371, 370], [374, 368], [375, 8], [376, 375], [376, 374], [377, 365], [379, 377], [379, 378], [382, 256], [382, 157], [382, 115], [382, 380], [382, 285], [382, 90], [382, 354]]}
{"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/bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb_bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb.jsonl.gz", "strip_func_name": "sub_4164E4", "query": "\n\n\n__int64 __fastcall sub_4164E4(__int64 a1, _BYTE *a2, _WORD *a3, __int64 a4, __int64 a5, int *a6, const char ***a7)\n{\nchar v12[2]; // [rsp+30h] [rbp-130h] BYREF\nunsigned __int16 v13; // [rsp+32h] [rbp-12Eh]\n__int16 v14; // [rsp+36h] [rbp-12Ah] BYREF\n_BYTE v15[264]; // [rsp+38h] [rbp-128h] BYREF\nunsigned int v16; // [rsp+140h] [rbp-20h] BYREF\nunsigned int v17; // [rsp+144h] [rbp-1Ch] BYREF\nconst char **v18; // [rsp+148h] [rbp-18h] BYREF\nint v19; // [rsp+154h] [rbp-Ch] BYREF\nint v20; // [rsp+158h] [rbp-8h]\nunsigned int v21; // [rsp+15Ch] [rbp-4h]\n\nv19 = *a6;\nv18 = *a7;\nwhile ( 1 )\n{\n++v18;\nif ( --v19 <= 0 )\nbreak;\nif ( !strcmp(*v18, \"via\") )\n{\n++v18;\nif ( --v19 <= 0 )\nincomplete_command();\nv21 = read_family(*v18);\nif ( v21 )\n{\n++v18;\nif ( --v19 <= 0 )\nincomplete_command();\n}\nelse\n{\nv21 = (unsigned __int8)*a2;\n}\nget_addr(v12, *v18, v21);\nif ( !*a2 )\n*a2 = v14;\nif ( v14 == (unsigned __int8)*a2 )\n{\nif ( (unsigned int)rta_addattr_l(a3, (unsigned int)a4, 5LL, v15, v13) )\nreturn 0xFFFFFFFFLL;\n*(_WORD *)a5 += v13 + 4;\n}\nelse\n{\nif ( (unsigned int)rta_addattr_l(a3, (unsigned int)a4, 18LL, &v14, (unsigned int)v13 + 2) )\nreturn 0xFFFFFFFFLL;\n*(_WORD *)a5 += (v13 + 9) & 0xFFFC;\n}\n}\nelse if ( !strcmp(*v18, \"dev\") )\n{\n++v18;\nif ( --v19 <= 0 )\nincomplete_command();\n*(_DWORD *)(a5 + 4) = ll_name_to_index(*v18);\nif ( !*(_DWORD *)(a5 + 4) )\nreturn nodev(*v18);\n}\nelse if ( !strcmp(*v18, \"weight\") )\n{\n++v18;\nif ( --v19 <= 0 )\nincomplete_command();\nif ( (unsigned int)get_unsigned(&v17, *v18, 0LL) || !v17 || v17 > 0x100 )\ninvarg(\"\\\"weight\\\" is invalid\\n\", *v18);\n*(_BYTE *)(a5 + 3) = v17 - 1;\n}\nelse if ( !strcmp(*v18, \"onlink\") )\n{\n*(_BYTE *)(a5 + 2) |= 4u;\n}\nelse if ( (unsigned __int8)matches(*v18, \"realms\") != 1 )\n{\n++v18;\nif ( --v19 <= 0 )\nincomplete_command();\nif ( (unsigned int)get_rt_realms_or_raw(&v16, *v18) )\ninvarg(\"\\\"realm\\\" value is invalid\\n\", *v18);\nif ( (unsigned int)rta_addattr32(a3, (unsigned int)a4, 11LL, v16) )\nreturn 0xFFFFFFFFLL;\n*(_WORD *)a5 += 8;\n}\nelse if ( !strcmp(*v18, \"encap\") )\n{\nv20 = (unsigned __int16)*a3;\nif ( (unsigned int)lwt_parse_encap(a3, a4, &v19, &v18, 22LL, 21LL) )\nreturn 0xFFFFFFFFLL;\n*(_WORD *)a5 += *a3 - v20;\n}\nelse\n{\nif ( strcmp(*v18, \"as\") )\nbreak;\n++v18;\nif ( --v19 <= 0 )\nincomplete_command();\nif ( !strcmp(*v18, \"to\") )\n{\n++v18;\nif ( --v19 <= 0 )\nincomplete_command();\n}\nget_addr(v12, *v18, (unsigned __int8)*a2);\nif ( (unsigned int)rta_addattr_l(a3, (unsigned int)a4, 19LL, v15, v13) )\nreturn 0xFFFFFFFFLL;\n*(_WORD *)a5 += v13 + 4;\n}\n}\n*a6 = v19;\n*a7 = v18;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a2,a5,a6,a1,a7,v12,v16,v17,v18,v19,v20,v21,sub_4164E4,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'rta', 'a4': 'len', 'a2': 'r', 'a5': 'rtnh', 'a6': 'argcp', 'a1': 'n', 'a7': 'argvp', 'v12': 'addr', 'v16': 'realm', 'v17': 'w', 'v18': 'argv', 'v19': 'argc', 'v20': 'old_len', 'v21': 'family', 'sub_4164E4': 'parse_one_nh'}"}
l2cap_can_send_prepared_packet_now
1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca
micropython
micropython-unicorn
NA
int l2cap_can_send_prepared_packet_now(uint16_t local_cid){ l2cap_channel_t *channel = l2cap_get_channel_for_local_cid(local_cid); if (!channel) return 0; #ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE if (channel->mode == L2CAP_CHANNEL_MODE_ENHANCED_RETRANSMISSION){ return 0; } #endif return hci_can_send_prepared_acl_packet_now(channel->con_handle); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413A90", "function_addr": 4274832, "binary_name": "1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.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, "movzx eax, [rbp+var_14]"], [6, "mov edi, eax"], [7, "call sub_4139F1"], [8, "mov [rbp+var_8], rax"], [9, "cmp [rbp+var_8], 0"], [10, "jnz short loc_413ABB"], [11, "mov eax, 0"], [12, "jmp short locret_413ACD"], [13, "mov rax, [rbp+var_8]"], [14, "movzx eax, word ptr [rax+48h]"], [15, "movzx eax, ax"], [16, "mov edi, eax"], [17, "call sub_407EB0"], [18, "leave"], [19, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [8, 7], [9, 8], [10, 9], [13, 8], [14, 13], [15, 14], [16, 15], [19, 17], [19, 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/1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca_1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.jsonl.gz", "strip_func_name": "sub_413A90", "query": "\n\n\n_BOOL8 __fastcall sub_413A90(__int16 a1, __int64 a2)\n{\n_BOOL8 result; // rax\n__int64 v3; // [rsp+18h] [rbp-8h]\n\nv3 = sub_4139F1(a1);\nif ( v3 )\nresult = sub_407EB0(*(_WORD *)(v3 + 72), a2);\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a1,v3,sub_413A90,sub_4139F1,sub_407EB0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'local_cid', 'v3': 'channel', 'sub_413A90': 'l2cap_can_send_prepared_packet_now', 'sub_4139F1': 'l2cap_get_channel_for_local_cid', 'sub_407EB0': 'hci_can_send_prepared_acl_packet_now'}"}
run_target
ad678b06bce5d6b0d0083d64458cd58aea1ad05107ba88ecb3cb7b66e0079784
CGCL-codes
SCVDT
NA
static u8 run_target(char** argv, u8* mem, u32 len, u8 first_run) { static struct itimerval it; int status = 0; s32 prog_in_fd; u32 cksum; memset(trace_bits, 0, MAP_SIZE); MEM_BARRIER(); prog_in_fd = write_to_file(prog_in, mem, len); child_pid = fork(); if (child_pid < 0) PFATAL("fork() failed"); if (!child_pid) { struct rlimit r; if (dup2(use_stdin ? prog_in_fd : dev_null_fd, 0) < 0 || dup2(dev_null_fd, 1) < 0 || dup2(dev_null_fd, 2) < 0) { *(u32*)trace_bits = EXEC_FAIL_SIG; PFATAL("dup2() failed"); } close(dev_null_fd); close(prog_in_fd); setsid(); if (mem_limit) { r.rlim_max = r.rlim_cur = ((rlim_t)mem_limit) << 20; #ifdef RLIMIT_AS setrlimit(RLIMIT_AS, &r); /* Ignore errors */ #else setrlimit(RLIMIT_DATA, &r); /* Ignore errors */ #endif /* ^RLIMIT_AS */ } r.rlim_max = r.rlim_cur = 0; setrlimit(RLIMIT_CORE, &r); /* Ignore errors */ execv(target_path, argv); *(u32*)trace_bits = EXEC_FAIL_SIG; exit(0); } close(prog_in_fd); /* Configure timeout, wait for child, cancel timeout. */ child_timed_out = 0; it.it_value.tv_sec = (exec_tmout / 1000); it.it_value.tv_usec = (exec_tmout % 1000) * 1000; setitimer(ITIMER_REAL, &it, NULL); if (waitpid(child_pid, &status, 0) <= 0) FATAL("waitpid() failed"); child_pid = 0; it.it_value.tv_sec = 0; it.it_value.tv_usec = 0; setitimer(ITIMER_REAL, &it, NULL); MEM_BARRIER(); /* Clean up bitmap, analyze exit condition, etc. */ if (*(u32*)trace_bits == EXEC_FAIL_SIG) FATAL("Unable to execute '%s'", argv[0]); classify_counts(trace_bits); apply_mask((u32*)trace_bits, (u32*)mask_bitmap); total_execs++; if (stop_soon) { SAYF(cRST cLRD "\n+++ Minimization aborted by user +++\n" cRST); close(write_to_file(out_file, in_data, in_len)); exit(1); } /* Always discard inputs that time out. */ if (child_timed_out) { missed_hangs++; return 0; } /* Handle crashing inputs depending on current mode. */ if (WIFSIGNALED(status) || (WIFEXITED(status) && WEXITSTATUS(status) == MSAN_ERROR) || (WIFEXITED(status) && WEXITSTATUS(status) && exit_crash)) { if (first_run) crash_mode = 1; if (crash_mode) { if (!exact_mode) return 1; } else { missed_crashes++; return 0; } } else /* Handle non-crashing inputs appropriately. */ if (crash_mode) { missed_paths++; return 0; } cksum = hash32(trace_bits, MAP_SIZE, HASH_CONST); if (first_run) orig_cksum = cksum; if (orig_cksum == cksum) return 1; missed_paths++; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4031ED", "function_addr": 4207085, "binary_name": "ad678b06bce5d6b0d0083d64458cd58aea1ad05107ba88ecb3cb7b66e0079784.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+argv], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_34], edx"], [6, "mov eax, ecx"], [7, "mov [rbp+var_38], al"], [8, "mov [rbp+stat_loc], 0"], [9, "mov rax, cs:s"], [10, "mov edx, 10000h"], [11, "mov esi, 0"], [12, "mov rdi, rax"], [13, "call _memset"], [14, "mov rax, cs:name"], [15, "mov edx, [rbp+var_34]"], [16, "mov rcx, [rbp+var_30]"], [17, "mov rsi, rcx"], [18, "mov rdi, rax"], [19, "call sub_402FC7"], [20, "mov [rbp+fd], eax"], [21, "call _fork"], [22, "mov cs:pid, eax"], [23, "mov eax, cs:pid"], [24, "test eax, eax"], [25, "jns loc_4032E4"], [26, "mov rax, cs:stdout"], [27, "mov rdi, rax"], [28, "call _fflush"], [29, "mov rax, cs:stderr"], [30, "mov rcx, rax"], [31, "mov edx, 3Eh "], [32, "mov esi, 1"], [33, "mov edi, offset unk_4066F8"], [34, "call _fwrite"], [35, "mov rax, cs:stderr"], [36, "mov r8d, 10Dh"], [37, "mov ecx, offset aAflTminC"], [38, "mov edx, offset aRunTarget"], [39, "mov esi, offset a191mStopLocati_0"], [40, "mov rdi, rax"], [41, "mov eax, 0"], [42, "call _fprintf"], [43, "call ___errno_location"], [44, "mov eax, [rax]"], [45, "mov edi, eax"], [46, "call _strerror"], [47, "mov rdx, rax"], [48, "mov rax, cs:stderr"], [49, "mov esi, offset a191mOsMessage0"], [50, "mov rdi, rax"], [51, "mov eax, 0"], [52, "call _fprintf"], [53, "mov edi, 1"], [54, "call _exit"], [55, "mov eax, cs:pid"], [56, "test eax, eax"], [57, "jnz loc_40347D"], [58, "movzx eax, cs:byte_40A1C4"], [59, "test al, al"], [60, "jz short loc_403302"], [61, "mov eax, [rbp+fd]"], [62, "jmp short loc_403308"], [63, "mov eax, cs:fd"], [64, "mov esi, 0"], [65, "mov edi, eax"], [66, "call _dup2"], [67, "test eax, eax"], [68, "js short loc_403348"], [69, "mov eax, cs:fd"], [70, "mov esi, 1"], [71, "mov edi, eax"], [72, "call _dup2"], [73, "test eax, eax"], [74, "js short loc_403348"], [75, "mov eax, cs:fd"], [76, "mov esi, 2"], [77, "mov edi, eax"], [78, "call _dup2"], [79, "test eax, eax"], [80, "jns loc_4033DF"], [81, "mov rax, cs:s"], [82, "mov dword ptr [rax], 0FEE1DEADh"], [83, "mov rax, cs:stdout"], [84, "mov rdi, rax"], [85, "call _fflush"], [86, "mov rax, cs:stderr"], [87, "mov rcx, rax"], [88, "mov edx, 3Eh "], [89, "mov esi, 1"], [90, "mov edi, offset unk_406738"], [91, "call _fwrite"], [92, "mov rax, cs:stderr"], [93, "mov r8d, 118h"], [94, "mov ecx, offset aAflTminC"], [95, "mov edx, offset aRunTarget"], [96, "mov esi, offset a191mStopLocati_0"], [97, "mov rdi, rax"], [98, "mov eax, 0"], [99, "call _fprintf"], [100, "call ___errno_location"], [101, "mov eax, [rax]"], [102, "mov edi, eax"], [103, "call _strerror"], [104, "mov rdx, rax"], [105, "mov rax, cs:stderr"], [106, "mov esi, offset a191mOsMessage0"], [107, "mov rdi, rax"], [108, "mov eax, 0"], [109, "call _fprintf"], [110, "mov edi, 1"], [111, "call _exit"], [112, "mov eax, cs:fd"], [113, "mov edi, eax"], [114, "call _close"], [115, "mov eax, [rbp+fd]"], [116, "mov edi, eax"], [117, "call _close"], [118, "call _setsid"], [119, "mov rax, cs:qword_40A1B8"], [120, "test rax, rax"], [121, "jz short loc_40342F"], [122, "mov rax, cs:qword_40A1B8"], [123, "shl rax, 14h"], [124, "mov [rbp+rlimits.rlim_cur], rax"], [125, "mov rax, [rbp+rlimits.rlim_cur]"], [126, "mov [rbp+rlimits.rlim_max], rax"], [127, "lea rax, [rbp+rlimits]"], [128, "mov rsi, rax"], [129, "mov edi, 9"], [130, "call _setrlimit"], [131, "mov [rbp+rlimits.rlim_cur], 0"], [132, "mov rax, [rbp+rlimits.rlim_cur]"], [133, "mov [rbp+rlimits.rlim_max], rax"], [134, "lea rax, [rbp+rlimits]"], [135, "mov rsi, rax"], [136, "mov edi, 4"], [137, "call _setrlimit"], [138, "mov rax, cs:filename"], [139, "mov rdx, [rbp+argv]"], [140, "mov rsi, rdx"], [141, "mov rdi, rax"], [142, "call _execv"], [143, "mov rax, cs:s"], [144, "mov dword ptr [rax], 0FEE1DEADh"], [145, "mov edi, 0"], [146, "call _exit"], [147, "mov eax, [rbp+fd]"], [148, "mov edi, eax"], [149, "call _close"], [150, "mov cs:byte_40A289, 0"], [151, "mov eax, cs:dword_40A1B0"], [152, "mov eax, eax"], [153, "imul rax, 10624DD3h"], [154, "shr rax, 20h"], [155, "shr eax, 6"], [156, "mov eax, eax"], [157, "mov cs:new.it_value.tv_sec, rax"], [158, "mov edx, cs:dword_40A1B0"], [159, "mov eax, edx"], [160, "imul rax, 10624DD3h"], [161, "shr rax, 20h"], [162, "shr eax, 6"], [163, "imul ecx, eax, 3E8h"], [164, "mov eax, edx"], [165, "sub eax, ecx"], [166, "imul eax, 3E8h"], [167, "mov eax, eax"], [168, "mov cs:new.it_value.tv_usec, rax"], [169, "mov edx, 0"], [170, "mov esi, offset new"], [171, "mov edi, 0"], [172, "call _setitimer"], [173, "mov eax, cs:pid"], [174, "lea rcx, [rbp+stat_loc]"], [175, "mov edx, 0"], [176, "mov rsi, rcx"], [177, "mov edi, eax"], [178, "call _waitpid"], [179, "test eax, eax"], [180, "jg short loc_40355E"], [181, "mov rax, cs:stderr"], [182, "mov rcx, rax"], [183, "mov edx, 41h "], [184, "mov esi, 1"], [185, "mov edi, offset unk_406778"], [186, "call _fwrite"], [187, "mov rax, cs:stderr"], [188, "mov r8d, 145h"], [189, "mov ecx, offset aAflTminC"], [190, "mov edx, offset aRunTarget"], [191, "mov esi, offset a191mLocation0m"], [192, "mov rdi, rax"], [193, "mov eax, 0"], [194, "call _fprintf"], [195, "mov edi, 1"], [196, "call _exit"], [197, "mov cs:pid, 0"], [198, "mov cs:new.it_value.tv_sec, 0"], [199, "mov cs:new.it_value.tv_usec, 0"], [200, "mov edx, 0"], [201, "mov esi, offset new"], [202, "mov edi, 0"], [203, "call _setitimer"], [204, "mov rax, cs:s"], [205, "mov eax, [rax]"], [206, "cmp eax, 0FEE1DEADh"], [207, "jnz short loc_4035F5"], [208, "mov rax, [rbp+argv]"], [209, "mov rdx, [rax]"], [210, "mov rax, cs:stderr"], [211, "mov esi, offset byte_4067C0"], [212, "mov rdi, rax"], [213, "mov eax, 0"], [214, "call _fprintf"], [215, "mov rax, cs:stderr"], [216, "mov r8d, 152h"], [217, "mov ecx, offset aAflTminC"], [218, "mov edx, offset aRunTarget"], [219, "mov esi, offset a191mLocation0m"], [220, "mov rdi, rax"], [221, "mov eax, 0"], [222, "call _fprintf"], [223, "mov edi, 1"], [224, "call _exit"], [225, "mov rax, cs:s"], [226, "mov rdi, rax"], [227, "call sub_4028FF"], [228, "mov rdx, cs:buf"], [229, "mov rax, cs:s"], [230, "mov rsi, rdx"], [231, "mov rdi, rax"], [232, "call sub_40296F"], [233, "mov eax, cs:dword_40A270"], [234, "add eax, 1"], [235, "mov cs:dword_40A270, eax"], [236, "movzx eax, cs:byte_40A288"], [237, "test al, al"], [238, "jz short loc_403685"], [239, "mov rax, cs:stderr"], [240, "mov rcx, rax"], [241, "mov edx, 35h "], [242, "mov esi, 1"], [243, "mov edi, offset a0m191mMinimiza"], [244, "call _fwrite"], [245, "mov edx, cs:n"], [246, "mov rcx, cs:src"], [247, "mov rax, cs:qword_40A240"], [248, "mov rsi, rcx"], [249, "mov rdi, rax"], [250, "call sub_402FC7"], [251, "mov edi, eax"], [252, "call _close"], [253, "mov edi, 1"], [254, "call _exit"], [255, "movzx eax, cs:byte_40A289"], [256, "test al, al"], [257, "jz short loc_4036A9"], [258, "mov eax, cs:dword_40A274"], [259, "add eax, 1"], [260, "mov cs:dword_40A274, eax"], [261, "mov eax, 0"], [262, "jmp locret_4037A8"], [263, "mov eax, [rbp+stat_loc]"], [264, "and eax, 7Fh"], [265, "add eax, 1"], [266, "sar al, 1"], [267, "test al, al"], [268, "jg short loc_4036F2"], [269, "mov eax, [rbp+stat_loc]"], [270, "and eax, 7Fh"], [271, "test eax, eax"], [272, "jnz short loc_4036D0"], [273, "mov eax, [rbp+stat_loc]"], [274, "sar eax, 8"], [275, "movzx eax, al"], [276, "cmp eax, 56h "], [277, "jz short loc_4036F2"], [278, "mov eax, [rbp+stat_loc]"], [279, "and eax, 7Fh"], [280, "test eax, eax"], [281, "jnz short loc_403735"], [282, "mov eax, [rbp+stat_loc]"], [283, "sar eax, 8"], [284, "movzx eax, al"], [285, "test eax, eax"], [286, "jz short loc_403735"], [287, "movzx eax, cs:byte_40A285"], [288, "test al, al"], [289, "jz short loc_403735"], [290, "cmp [rbp+var_38], 0"], [291, "jz short loc_4036FF"], [292, "mov cs:byte_40A284, 1"], [293, "movzx eax, cs:byte_40A284"], [294, "test al, al"], [295, "jz short loc_40371F"], [296, "movzx eax, cs:byte_40A287"], [297, "test al, al"], [298, "jnz short loc_403756"], [299, "mov eax, 1"], [300, "jmp locret_4037A8"], [301, "mov eax, cs:dword_40A278"], [302, "add eax, 1"], [303, "mov cs:dword_40A278, eax"], [304, "mov eax, 0"], [305, "jmp short locret_4037A8"], [306, "movzx eax, cs:byte_40A284"], [307, "test al, al"], [308, "jz short loc_403757"], [309, "mov eax, cs:dword_40A27C"], [310, "add eax, 1"], [311, "mov cs:dword_40A27C, eax"], [312, "mov eax, 0"], [313, "jmp short locret_4037A8"], [314, "nop"], [315, "mov rax, cs:s"], [316, "mov edx, 0A5B35705h"], [317, "mov esi, 10000h"], [318, "mov rdi, rax"], [319, "call sub_40280B"], [320, "mov [rbp+var_8], eax"], [321, "cmp [rbp+var_38], 0"], [322, "jz short loc_403782"], [323, "mov eax, [rbp+var_8]"], [324, "mov cs:dword_40A26C, eax"], [325, "mov eax, cs:dword_40A26C"], [326, "cmp [rbp+var_8], eax"], [327, "jnz short loc_403794"], [328, "mov eax, 1"], [329, "jmp short locret_4037A8"], [330, "mov eax, cs:dword_40A27C"], [331, "add eax, 1"], [332, "mov cs:dword_40A27C, eax"], [333, "mov eax, 0"], [334, "leave"], [335, "retn"]], "data_dep": [[7, 6], [12, 9], [15, 5], [16, 4], [17, 16], [18, 14], [20, 19], [22, 21], [23, 22], [24, 23], [25, 24], [27, 26], [30, 29], [40, 35], [44, 43], [45, 44], [47, 46], [50, 48], [55, 22], [56, 55], [57, 56], [59, 58], [60, 59], [61, 20], [65, 61], [65, 63], [67, 66], [68, 67], [71, 69], [73, 72], [74, 73], [77, 75], [79, 78], [80, 79], [82, 81], [84, 83], [87, 86], [97, 92], [101, 82], [101, 100], [102, 101], [104, 103], [107, 105], [113, 112], [115, 20], [116, 115], [120, 119], [121, 120], [123, 122], [124, 123], [125, 124], [126, 125], [127, 125], [128, 127], [132, 131], [133, 132], [134, 132], [135, 134], [139, 3], [140, 139], [141, 138], [144, 143], [147, 20], [148, 147], [152, 151], [153, 152], [154, 153], [155, 154], [156, 155], [157, 156], [159, 158], [160, 159], [161, 160], [162, 161], [163, 16], [163, 162], [164, 158], [165, 163], [165, 164], [166, 165], [167, 166], [168, 167], [173, 22], [174, 8], [174, 163], [176, 174], [177, 173], [179, 178], [180, 179], [182, 181], [192, 187], [205, 204], [206, 205], [207, 206], [208, 3], [209, 208], [212, 210], [220, 215], [226, 225], [230, 228], [231, 229], [234, 233], [235, 234], [237, 236], [238, 237], [240, 239], [248, 246], [249, 247], [251, 250], [255, 150], [256, 255], [257, 256], [259, 258], [260, 259], [263, 8], [264, 263], [265, 264], [266, 265], [267, 266], [268, 267], [269, 8], [270, 269], [271, 270], [272, 271], [273, 8], [274, 273], [275, 274], [276, 275], [277, 276], [278, 8], [279, 278], [280, 279], [281, 280], [282, 8], [283, 282], [284, 283], [285, 284], [286, 285], [288, 287], [289, 288], [290, 7], [291, 290], [293, 292], [294, 293], [295, 294], [297, 296], [298, 297], [302, 301], [303, 302], [307, 306], [308, 307], [310, 309], [311, 310], [318, 315], [320, 319], [321, 7], [322, 321], [323, 320], [324, 323], [325, 324], [326, 325], [326, 320], [327, 326], [331, 330], [332, 331], [335, 312], [335, 304], [335, 261], [335, 299], [335, 333], [335, 328]]}
{"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/ad678b06bce5d6b0d0083d64458cd58aea1ad05107ba88ecb3cb7b66e0079784_ad678b06bce5d6b0d0083d64458cd58aea1ad05107ba88ecb3cb7b66e0079784.jsonl.gz", "strip_func_name": "sub_4031ED", "query": "\n\n\n__int64 __fastcall sub_4031ED(char *const *a1, const void *a2, unsigned int a3, char a4)\n{\nint *v4; // rax\nchar *v5; // rax\nint v6; // eax\nint *v7; // rax\nchar *v8; // rax\nint v9; // eax\nstruct rlimit rlimits; // [rsp+20h] [rbp-20h] BYREF\nint stat_loc; // [rsp+34h] [rbp-Ch] BYREF\nint v15; // [rsp+38h] [rbp-8h]\nint fd; // [rsp+3Ch] [rbp-4h]\n\nstat_loc = 0;\nmemset(s, 0, 0x10000uLL);\nfd = sub_402FC7(name, a2, a3);\npid = fork();\nif ( pid < 0 )\n{\nfflush(stdout);\nfwrite(&unk_4066F8, 1uLL, 0x3EuLL, stderr);\nfprintf(stderr, \"\\x1B[1;91m\\n Stop location : \\x1B[0m%s(), %s:%u\\n\", \"run_target\", \"afl-tmin.c\", 269LL);\nv4 = __errno_location();\nv5 = strerror(*v4);\nfprintf(stderr, \"\\x1B[1;91m OS message : \\x1B[0m%s\\n\", v5);\nexit(1);\n}\nif ( !pid )\n{\nif ( byte_40A1C4 )\nv6 = fd;\nelse\nv6 = ::fd;\nif ( dup2(v6, 0) < 0 || dup2(::fd, 1) < 0 || dup2(::fd, 2) < 0 )\n{\n*(_DWORD *)s = -18751827;\nfflush(stdout);\nfwrite(&unk_406738, 1uLL, 0x3EuLL, stderr);\nfprintf(stderr, \"\\x1B[1;91m\\n Stop location : \\x1B[0m%s(), %s:%u\\n\", \"run_target\", \"afl-tmin.c\", 280LL);\nv7 = __errno_location();\nv8 = strerror(*v7);\nfprintf(stderr, \"\\x1B[1;91m OS message : \\x1B[0m%s\\n\", v8);\nexit(1);\n}\nclose(::fd);\nclose(fd);\nsetsid();\nif ( qword_40A1B8 )\n{\nrlimits.rlim_cur = qword_40A1B8 << 20;\nrlimits.rlim_max = qword_40A1B8 << 20;\nsetrlimit(RLIMIT_AS, &rlimits);\n}\nrlimits.rlim_cur = 0LL;\nrlimits.rlim_max = 0LL;\nsetrlimit(RLIMIT_CORE, &rlimits);\nexecv(filename, a1);\n*(_DWORD *)s = -18751827;\nexit(0);\n}\nclose(fd);\nbyte_40A289 = 0;\nnew.it_value.tv_sec = dword_40A1B0 / 0x3E8u;\nnew.it_value.tv_usec = 1000 * (dword_40A1B0 % 0x3E8u);\nsetitimer(ITIMER_REAL, &new, 0LL);\nif ( waitpid(pid, &stat_loc, 0) <= 0 )\n{\nfwrite(&unk_406778, 1uLL, 0x41uLL, stderr);\nfprintf(stderr, \"\\x1B[1;91m\\n Location : \\x1B[0m%s(), %s:%u\\n\\n\", \"run_target\", \"afl-tmin.c\", 325LL);\nexit(1);\n}\npid = 0;\nnew.it_value.tv_sec = 0LL;\nnew.it_value.tv_usec = 0LL;\nsetitimer(ITIMER_REAL, &new, 0LL);\nif ( *(_DWORD *)s == -18751827 )\n{\nfprintf(stderr, &byte_4067C0, *a1);\nfprintf(stderr, \"\\x1B[1;91m\\n Location : \\x1B[0m%s(), %s:%u\\n\\n\", \"run_target\", \"afl-tmin.c\", 338LL);\nexit(1);\n}\nsub_4028FF(s);\nsub_40296F(s, buf);\n++dword_40A270;\nif ( byte_40A288 )\n{\nfwrite(\"\\x1B[0m\\x1B[1;91m\\n+++ Minimization aborted by user +++\\n\\x1B[0m\", 1uLL, 0x35uLL, stderr);\nv9 = sub_402FC7((const char *)qword_40A240, src, n);\nclose(v9);\nexit(1);\n}\nif ( byte_40A289 )\n{\n++dword_40A274;\nreturn 0LL;\n}\nif ( (char)((stat_loc & 0x7F) + 1) >> 1 > 0\n|| (stat_loc & 0x7F) == 0 && BYTE1(stat_loc) == 86\n|| (stat_loc & 0x7F) == 0 && BYTE1(stat_loc) && byte_40A285 )\n{\nif ( a4 )\nbyte_40A284 = 1;\nif ( !byte_40A284 )\n{\n++dword_40A278;\nreturn 0LL;\n}\nif ( !byte_40A287 )\nreturn 1LL;\n}\nelse if ( byte_40A284 )\n{\n++dword_40A27C;\nreturn 0LL;\n}\nv15 = sub_40280B(s, 0x10000u, 0xA5B35705);\nif ( a4 )\ndword_40A26C = v15;\nif ( v15 == dword_40A26C )\nreturn 1LL;\n++dword_40A27C;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,rlimits,stat_loc,v15,fd,sub_4031ED,sub_402FC7,sub_4028FF,sub_40296F,sub_40280B,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'len', 'a4': 'first_run', 'a1': 'argv', 'a2': 'mem', 'rlimits': 'r', 'stat_loc': 'status', 'v15': 'cksum', 'fd': 'prog_in_fd', 'sub_4031ED': 'run_target', 'sub_402FC7': 'write_to_file', 'sub_4028FF': 'classify_counts', 'sub_40296F': 'apply_mask', 'sub_40280B': 'hash32'}"}
fp_2expt
71b7e1c2a43d6e7b2e32725ea1b597d5f13d9d4ff3bd088f73fbdef183e31974
wiire-a
pixiewps
NA
void fp_2expt(fp_int *a, int b) { int z; /* zero a as per default */ fp_zero (a); if (b < 0) { return; } z = b / DIGIT_BIT; if (z >= FP_SIZE) { return; } /* set the used count of where the bit will go */ a->used = z + 1; /* put the single bit in its place */ a->dp[z] = ((fp_digit)1) << (b % DIGIT_BIT); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409FE9", "function_addr": 4235241, "binary_name": "71b7e1c2a43d6e7b2e32725ea1b597d5f13d9d4ff3bd088f73fbdef183e31974.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+s], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov rax, [rbp+s]"], [6, "mov edx, 248h"], [7, "mov esi, 0"], [8, "mov rdi, rax"], [9, "call _memset"], [10, "cmp [rbp+var_1C], 0"], [11, "js short loc_40A066"], [12, "mov eax, [rbp+var_1C]"], [13, "lea edx, [rax+3Fh]"], [14, "test eax, eax"], [15, "cmovs eax, edx"], [16, "sar eax, 6"], [17, "mov [rbp+var_4], eax"], [18, "cmp [rbp+var_4], 47h "], [19, "jg short loc_40A069"], [20, "mov eax, [rbp+var_4]"], [21, "lea edx, [rax+1]"], [22, "mov rax, [rbp+s]"], [23, "mov [rax+240h], edx"], [24, "mov eax, [rbp+var_1C]"], [25, "cdq"], [26, "shr edx, 1Ah"], [27, "add eax, edx"], [28, "and eax, 3Fh"], [29, "sub eax, edx"], [30, "mov edx, 1"], [31, "mov ecx, eax"], [32, "shl rdx, cl"], [33, "mov rcx, rdx"], [34, "mov rax, [rbp+s]"], [35, "mov edx, [rbp+var_4]"], [36, "movsxd rdx, edx"], [37, "mov [rax+rdx*8], rcx"], [38, "jmp short locret_40A06A"], [39, "nop"], [40, "jmp short locret_40A06A"], [41, "nop"], [42, "leave"], [43, "retn"]], "data_dep": [[5, 3], [8, 5], [10, 4], [11, 10], [12, 4], [13, 6], [13, 12], [14, 12], [15, 14], [15, 13], [16, 15], [17, 16], [18, 17], [19, 18], [20, 17], [21, 13], [21, 20], [22, 3], [23, 22], [23, 21], [24, 4], [26, 21], [27, 24], [27, 26], [28, 27], [29, 26], [29, 28], [31, 29], [32, 31], [32, 30], [33, 32], [34, 3], [35, 17], [36, 35], [37, 33], [37, 34], [43, 9], [43, 16], [43, 34]]}
{"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/71b7e1c2a43d6e7b2e32725ea1b597d5f13d9d4ff3bd088f73fbdef183e31974_71b7e1c2a43d6e7b2e32725ea1b597d5f13d9d4ff3bd088f73fbdef183e31974.jsonl.gz", "strip_func_name": "sub_409FE9", "query": "\n\n\nunsigned __int64 __fastcall sub_409FE9(_DWORD *a1, int a2)\n{\nunsigned __int64 result; // rax\nint v3; // [rsp+1Ch] [rbp-4h]\n\nresult = (unsigned __int64)memset(a1, 0, 0x248uLL);\nif ( a2 >= 0 )\n{\nresult = (unsigned int)(a2 >> 6);\nv3 = result;\nif ( (int)result <= 71 )\n{\na1[144] = result + 1;\nresult = (unsigned __int64)a1;\n*(_QWORD *)&a1[2 * v3] = 1LL << (a2 % 64);\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v3,sub_409FE9,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'a', 'a2': 'b', 'v3': 'z', 'sub_409FE9': 'fp_2expt'}"}
hdl_lookup_partition
fc9efd69c78bfd2879262c7c7b7f2edcc043a9e3211c855fda31906cc6864565
ps2homebrew
hdl-dump
NA
int hdl_lookup_partition(const dict_t *config, const char *device_name, const char *game_name, char partition_id[PS2_PART_IDMAX + 1]) { /*@only@*/ hio_t *hio = NULL; int result; *partition_id = '\0'; result = hio_probe(config, device_name, &hio); if (result == RET_OK && hio != NULL) { result = hdl_lookup_partition_ex(hio, game_name, partition_id); (void)hio->close(hio); } return (result); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F6E9", "function_addr": 4257513, "binary_name": "fc9efd69c78bfd2879262c7c7b7f2edcc043a9e3211c855fda31906cc6864565.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 [rbp+var_30], rcx"], [7, "mov [rbp+var_10], 0"], [8, "mov rax, [rbp+var_30]"], [9, "mov byte ptr [rax], 0"], [10, "lea rdx, [rbp+var_10]"], [11, "mov rcx, [rbp+var_20]"], [12, "mov rax, [rbp+var_18]"], [13, "mov rsi, rcx"], [14, "mov rdi, rax"], [15, "call sub_4141D1"], [16, "mov [rbp+var_4], eax"], [17, "cmp [rbp+var_4], 0"], [18, "jnz short loc_40F764"], [19, "mov rax, [rbp+var_10]"], [20, "test rax, rax"], [21, "jz short loc_40F764"], [22, "mov rax, [rbp+var_10]"], [23, "mov rdx, [rbp+var_30]"], [24, "mov rcx, [rbp+var_28]"], [25, "mov rsi, rcx"], [26, "mov rdi, rax"], [27, "call sub_40F5EB"], [28, "mov [rbp+var_4], eax"], [29, "mov rax, [rbp+var_10]"], [30, "mov rdx, [rax+20h]"], [31, "mov rax, [rbp+var_10]"], [32, "mov rdi, rax"], [33, "call rdx"], [34, "mov eax, [rbp+var_4]"], [35, "leave"], [36, "retn"]], "data_dep": [[8, 6], [9, 8], [10, 7], [11, 4], [12, 3], [13, 11], [14, 12], [16, 15], [17, 16], [18, 17], [19, 7], [20, 19], [21, 20], [22, 7], [23, 6], [24, 5], [25, 24], [26, 22], [28, 27], [29, 7], [30, 9], [30, 29], [31, 7], [32, 31], [33, 30], [34, 16], [34, 28], [36, 34]]}
{"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_40F6E9", "query": "\n\n\n__int64 __fastcall sub_40F6E9(__int64 a1, __int64 a2, _BYTE *a3, char *a4)\n{\n__int64 v7; // [rsp+20h] [rbp-10h] BYREF\nunsigned int v8; // [rsp+2Ch] [rbp-4h]\n\nv7 = 0LL;\n*a4 = 0;\nv8 = sub_4141D1(a1, a2, &v7);\nif ( !v8 && v7 )\n{\nv8 = sub_40F5EB(v7, a3, a4);\n(*(void (__fastcall **)(__int64))(v7 + 32))(v7);\n}\nreturn v8;\n}\n\n\n\nQ:[a3,a4,a1,a2,v7,v8,sub_40F6E9,sub_4141D1,sub_40F5EB,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'game_name', 'a4': 'partition_id', 'a1': 'config', 'a2': 'device_name', 'v7': 'hio', 'v8': 'result', 'sub_40F6E9': 'hdl_lookup_partition', 'sub_4141D1': 'hio_probe', 'sub_40F5EB': 'hdl_lookup_partition_ex'}"}
exanic_get_all_ports
a789c5a1e9a35d79fcaa803888e980339d053554e33e2cc9cc21b5d40b06f763
cisco
exanic-software
NA
ssize_t exanic_get_all_ports(exanic_port_info_t *table, size_t table_size) { struct if_nameindex *ifnames; size_t i, nports; ifnames = if_nameindex(); if (ifnames == NULL) { exanic_err_printf("if_nameindex failed: %s\n", strerror(errno)); return -1; } nports = 0; for (i = 0; ifnames[i].if_index != 0; i++) { if (nports * sizeof(exanic_port_info_t) >= table_size) break; if (exanic_find_port_by_interface_name(ifnames[i].if_name, table[nports].device, sizeof(table[nports].device), &table[nports].port_number) == 0) nports++; } if_freenameindex(ifnames); return nports; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406E27", "function_addr": 4222503, "binary_name": "a789c5a1e9a35d79fcaa803888e980339d053554e33e2cc9cc21b5d40b06f763.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, "call _if_nameindex"], [6, "mov [rbp+ptr], rax"], [7, "cmp [rbp+ptr], 0"], [8, "jnz short loc_406E75"], [9, "call ___errno_location"], [10, "mov eax, [rax]"], [11, "mov edi, eax"], [12, "call _strerror"], [13, "mov rsi, rax"], [14, "lea rdi, aIfNameindexFai"], [15, "mov eax, 0"], [16, "call sub_408C58"], [17, "mov rax, 0FFFFFFFFFFFFFFFFh"], [18, "jmp locret_406F48"], [19, "mov [rbp+var_10], 0"], [20, "mov [rbp+var_8], 0"], [21, "jmp loc_406F19"], [22, "mov rdx, [rbp+var_10]"], [23, "mov rax, rdx"], [24, "shl rax, 2"], [25, "add rax, rdx"], [26, "shl rax, 2"], [27, "cmp [rbp+var_30], rax"], [28, "jbe loc_406F37"], [29, "mov rdx, [rbp+var_10]"], [30, "mov rax, rdx"], [31, "shl rax, 2"], [32, "add rax, rdx"], [33, "shl rax, 2"], [34, "mov rdx, rax"], [35, "mov rax, [rbp+var_28]"], [36, "add rax, rdx"], [37, "lea rdx, [rax+10h]"], [38, "mov rcx, [rbp+var_10]"], [39, "mov rax, rcx"], [40, "shl rax, 2"], [41, "add rax, rcx"], [42, "shl rax, 2"], [43, "mov rcx, rax"], [44, "mov rax, [rbp+var_28]"], [45, "add rax, rcx"], [46, "mov rsi, rax"], [47, "mov rax, [rbp+var_8]"], [48, "shl rax, 4"], [49, "mov rcx, rax"], [50, "mov rax, [rbp+ptr]"], [51, "add rax, rcx"], [52, "mov rax, [rax+8]"], [53, "mov rcx, rdx"], [54, "mov edx, 10h"], [55, "mov rdi, rax"], [56, "call sub_406B99"], [57, "test eax, eax"], [58, "jnz short loc_406F14"], [59, "add [rbp+var_10], 1"], [60, "add [rbp+var_8], 1"], [61, "mov rax, [rbp+var_8]"], [62, "shl rax, 4"], [63, "mov rdx, rax"], [64, "mov rax, [rbp+ptr]"], [65, "add rax, rdx"], [66, "mov eax, [rax]"], [67, "test eax, eax"], [68, "jnz loc_406E8A"], [69, "jmp short loc_406F38"], [70, "nop"], [71, "mov rax, [rbp+ptr]"], [72, "mov rdi, rax"], [73, "call _if_freenameindex"], [74, "mov rax, [rbp+var_10]"], [75, "leave"], [76, "retn"]], "data_dep": [[6, 5], [7, 6], [8, 7], [10, 9], [11, 10], [13, 12], [14, 11], [22, 59], [22, 19], [23, 22], [24, 23], [25, 22], [25, 24], [26, 25], [27, 4], [27, 26], [28, 27], [29, 59], [29, 19], [30, 29], [31, 30], [32, 31], [32, 29], [33, 32], [34, 33], [35, 3], [36, 34], [36, 35], [37, 36], [37, 34], [38, 59], [38, 19], [39, 38], [40, 39], [41, 40], [41, 38], [42, 41], [43, 42], [44, 3], [45, 43], [45, 44], [46, 45], [47, 60], [47, 20], [48, 47], [49, 48], [50, 6], [51, 50], [51, 49], [52, 51], [53, 37], [55, 52], [57, 56], [58, 57], [59, 59], [59, 19], [60, 60], [60, 20], [61, 60], [61, 20], [62, 61], [63, 62], [64, 6], [65, 64], [65, 63], [66, 65], [67, 66], [68, 67], [71, 6], [72, 71], [74, 59], [74, 19], [76, 17], [76, 74]]}
{"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/a789c5a1e9a35d79fcaa803888e980339d053554e33e2cc9cc21b5d40b06f763_a789c5a1e9a35d79fcaa803888e980339d053554e33e2cc9cc21b5d40b06f763.jsonl.gz", "strip_func_name": "sub_406E27", "query": "\n\n\n__int64 __fastcall sub_406E27(__int64 a1, unsigned __int64 a2)\n{\nint *v2; // rax\nunsigned int v3; // eax\nint v4; // edx\nint v5; // ecx\nint v6; // er8\nint v7; // er9\n__int64 result; // rax\nstruct if_nameindex *ptr; // [rsp+18h] [rbp-18h]\n__int64 v10; // [rsp+20h] [rbp-10h]\n__int64 i; // [rsp+28h] [rbp-8h]\n\nptr = if_nameindex();\nif ( ptr )\n{\nv10 = 0LL;\nfor ( i = 0LL; ptr[i].if_index && a2 > 20 * v10; ++i )\n{\nif ( !(unsigned int)sub_406B99(ptr[i].if_name, (char *)(20 * v10 + a1), 0x10uLL, (_DWORD *)(20 * v10 + a1 + 16)) )\n++v10;\n}\nif_freenameindex(ptr);\nresult = v10;\n}\nelse\n{\nv2 = __errno_location();\nv3 = (unsigned int)strerror(*v2);\nsub_408C58((unsigned int)\"if_nameindex failed: %s\\n\", v3, v4, v5, v6, v7);\nresult = -1LL;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,ptr,v10,sub_406E27,sub_406B99,sub_408C58,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'table', 'a2': 'table_size', 'ptr': 'ifnames', 'v10': 'nports', 'sub_406E27': 'exanic_get_all_ports', 'sub_406B99': 'exanic_find_port_by_interface_name', 'sub_408C58': 'exanic_err_printf'}"}
explain
5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0
multipath-tcp
iproute-mptcp
NA
static void explain(void) { fprintf(stderr, "Usage: ... plug [block | release | release_indefinite | limit NUMBER]\n"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45BB40", "function_addr": 4569920, "binary_name": "5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov rax, cs:stderr"], [3, "mov rcx, rax"], [4, "mov edx, 46h "], [5, "mov esi, 1"], [6, "mov edi, offset aUsagePlugBlock"], [7, "call _fwrite"], [8, "nop"], [9, "pop rbp"], [10, "retn"]], "data_dep": [[3, 2], [9, 0], [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/5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0_5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0.jsonl.gz", "strip_func_name": "sub_45BB40", "query": "\n\n\nsize_t sub_45BB40()\n{\nreturn fwrite(\"Usage: ... plug [block | release | release_indefinite | limit NUMBER]\\n\", 1uLL, 0x46uLL, stderr);\n}\n\n\n\nQ:[sub_45BB40,]\nAssistant: ", "hints": "[]", "response": "{'sub_45BB40': 'explain_56'}"}
sim_set_cons_log
52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc
open-simh
simh
NA
t_stat sim_set_cons_log (int32 flg, CONST char *cptr) { char cmdbuf[CBUFSIZE]; sprintf(cmdbuf, "LOG%c%s", cptr ? '=' : '\0', cptr ? cptr : ""); return tmxr_open_master (&sim_con_tmxr, cmdbuf); /* open master socket */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_447A77", "function_addr": 4487799, "binary_name": "52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 1090h"], [3, "mov [rbp+var_1084], edi"], [4, "mov [rbp+var_1090], rsi"], [5, "cmp [rbp+var_1090], 0"], [6, "jz short loc_447AA2"], [7, "mov rax, [rbp+var_1090]"], [8, "jmp short loc_447AA7"], [9, "mov eax, offset unk_4AF735"], [10, "cmp [rbp+var_1090], 0"], [11, "jz short loc_447AB8"], [12, "mov edx, 3Dh "], [13, "jmp short loc_447ABD"], [14, "mov edx, 0"], [15, "lea rdi, [rbp+s]"], [16, "mov rcx, rax"], [17, "mov esi, offset aLogCS"], [18, "mov eax, 0"], [19, "call _sprintf"], [20, "lea rax, [rbp+s]"], [21, "mov rsi, rax"], [22, "mov edi, offset unk_4E31A0"], [23, "call sub_461803"], [24, "leave"], [25, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 4], [10, 4], [11, 10], [16, 7], [16, 9], [20, 19], [21, 20], [25, 23]]}
{"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/52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc_52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc.jsonl.gz", "strip_func_name": "sub_447A77", "query": "\n\n\n__int64 __fastcall sub_447A77(__int64 a1, const char *a2)\n{\nconst char *v2; // rax\n__int64 v3; // rdx\nchar s[4224]; // [rsp+10h] [rbp-1080h] BYREF\n\nif ( a2 )\nv2 = a2;\nelse\nv2 = (const char *)&unk_4AF735;\nif ( a2 )\nv3 = 61LL;\nelse\nv3 = 0LL;\nsprintf(s, \"LOG%c%s\", v3, v2);\nreturn sub_461803(&unk_4E31A0, s);\n}\n\n\n\nQ:[a2,a1,s,sub_447A77,sub_461803,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'cptr', 'a1': 'flg', 's': 'cmdbuf', 'sub_447A77': 'sim_set_cons_log', 'sub_461803': 'tmxr_open_master'}"}
CmdHF14A
4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487
nccgroup
proxmark3-amiimicyou
NA
int CmdHF14A(const char *Cmd) { // flush WaitForResponseTimeout(CMD_ACK,NULL,100); // parse CmdsParse(CommandTable, Cmd); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "CmdHF14A", "function_addr": 4389713, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov edx, 64h "], [5, "mov esi, 0"], [6, "mov edi, 0FFh"], [7, "call WaitForResponseTimeout"], [8, "mov rax, [rbp+var_8]"], [9, "mov rsi, rax"], [10, "mov edi, offset off_4DC360"], [11, "call CmdsParse"], [12, "mov eax, 0"], [13, "leave"], [14, "retn"]], "data_dep": [[8, 3], [9, 8], [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/4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487_4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.jsonl.gz", "strip_func_name": "CmdHF14A", "query": "\n\n\n__int64 __fastcall CmdHF14A(__int64 a1)\n{\nWaitForResponseTimeout(255LL, 0LL, 100LL);\nCmdsParse(&off_4DC360, a1);\nreturn 0LL;\n}\n\n\n\nQ:[a1,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'Cmd'}"}
selectDumpableAccessMethod
fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602
EnterpriseDB
zheap
NA
static void selectDumpableAccessMethod(AccessMethodInfo *method, Archive *fout) { if (checkExtensionMembership(&method->dobj, fout)) return; /* extension membership overrides all else */ /* * This would be DUMP_COMPONENT_ACL for from-initdb access methods, but * they do not support ACLs currently. */ if (method->dobj.catId.oid <= (Oid) g_last_builtin_oid) method->dobj.dump = DUMP_COMPONENT_NONE; else method->dobj.dump = fout->dopt->include_everything ? DUMP_COMPONENT_ALL : DUMP_COMPONENT_NONE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406EDF", "function_addr": 4222687, "binary_name": "fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602.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, "mov rax, [rbp+var_8]"], [6, "mov rdx, [rbp+var_10]"], [7, "mov rsi, rdx"], [8, "mov rdi, rax"], [9, "call sub_4069F5"], [10, "test al, al"], [11, "jnz short loc_406F48"], [12, "mov rax, [rbp+var_8]"], [13, "mov edx, [rax+8]"], [14, "mov eax, cs:dword_479DB8"], [15, "cmp edx, eax"], [16, "ja short loc_406F24"], [17, "mov rax, [rbp+var_8]"], [18, "mov dword ptr [rax+20h], 0"], [19, "jmp short locret_406F49"], [20, "mov rax, [rbp+var_10]"], [21, "mov rax, [rax]"], [22, "movzx eax, byte ptr [rax+7Ch]"], [23, "test al, al"], [24, "jz short loc_406F3A"], [25, "mov edx, 0FFFFh"], [26, "jmp short loc_406F3F"], [27, "mov edx, 0"], [28, "mov rax, [rbp+var_8]"], [29, "mov [rax+20h], edx"], [30, "jmp short locret_406F49"], [31, "nop"], [32, "leave"], [33, "retn"]], "data_dep": [[5, 3], [6, 4], [7, 6], [8, 5], [10, 9], [11, 10], [12, 3], [13, 12], [15, 14], [15, 13], [16, 15], [17, 3], [18, 17], [20, 4], [21, 20], [22, 21], [23, 22], [24, 23], [28, 3], [29, 25], [29, 28], [29, 27], [33, 17], [33, 10], [33, 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/fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602_fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602.jsonl.gz", "strip_func_name": "sub_406EDF", "query": "\n\n\n__int64 __fastcall sub_406EDF(__int64 a1, int *a2)\n{\n__int64 result; // rax\nint v3; // edx\n\nresult = sub_4069F5(a1, a2);\nif ( !(_BYTE)result )\n{\nif ( *(_DWORD *)(a1 + 8) > (unsigned int)dword_479DB8 )\n{\nif ( *(_BYTE *)(*(_QWORD *)a2 + 124LL) )\nv3 = 0xFFFF;\nelse\nv3 = 0;\nresult = a1;\n*(_DWORD *)(a1 + 32) = v3;\n}\nelse\n{\nresult = a1;\n*(_DWORD *)(a1 + 32) = 0;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_406EDF,sub_4069F5,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'method', 'a2': 'fout', 'sub_406EDF': 'selectDumpableAccessMethod', 'sub_4069F5': 'checkExtensionMembership'}"}
_err_return
9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23
open-simh
simh
NA
static t_stat _err_return (UNIT *uptr, t_stat stat) { free (uptr->filename); uptr->filename = NULL; free (uptr->disk_ctx); uptr->disk_ctx = NULL; return stat; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4A4687", "function_addr": 4867719, "binary_name": "9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23.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+10h]"], [7, "mov rdi, rax"], [8, "call _free"], [9, "mov rax, [rbp+var_8]"], [10, "mov qword ptr [rax+10h], 0"], [11, "mov rax, [rbp+var_8]"], [12, "mov rax, [rax+80h]"], [13, "mov rdi, rax"], [14, "call _free"], [15, "mov rax, [rbp+var_8]"], [16, "mov qword ptr [rax+80h], 0"], [17, "mov eax, [rbp+var_C]"], [18, "leave"], [19, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [9, 3], [10, 9], [11, 3], [12, 10], [12, 11], [13, 12], [15, 3], [16, 15], [17, 4], [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/9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23_9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23.jsonl.gz", "strip_func_name": "sub_4A4687", "query": "\n\n\n__int64 __fastcall sub_4A4687(__int64 a1, unsigned int a2)\n{\nfree(*(void **)(a1 + 16));\n*(_QWORD *)(a1 + 16) = 0LL;\nfree(*(void **)(a1 + 128));\n*(_QWORD *)(a1 + 128) = 0LL;\nreturn a2;\n}\n\n\n\nQ:[a1,a2,sub_4A4687,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'uptr', 'a2': 'stat', 'sub_4A4687': '_err_return'}"}
graph_is_interesting
f831702f41994ee170774af7a79dac102dd372be4a801864a0cdf0753939ec83
msysgit
msysgit
NA
static int graph_is_interesting(struct git_graph *graph, struct commit *commit) { /* * If revs->boundary is set, commits whose children have * been shown are always interesting, even if they have the * UNINTERESTING or TREESAME flags set. */ if (graph->revs && graph->revs->boundary) { if (commit->object.flags & CHILD_SHOWN) return 1; } /* * Otherwise, use get_commit_action() to see if this commit is * interesting */ return get_commit_action(graph->revs, commit) == commit_show; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4804E1", "function_addr": 4719841, "binary_name": "f831702f41994ee170774af7a79dac102dd372be4a801864a0cdf0753939ec83.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, "mov rax, [rbp+var_8]"], [6, "mov rax, [rax+8]"], [7, "test rax, rax"], [8, "jz short loc_480528"], [9, "mov rax, [rbp+var_8]"], [10, "mov rax, [rax+8]"], [11, "movzx eax, byte ptr [rax+76h]"], [12, "and eax, 18h"], [13, "test al, al"], [14, "jz short loc_480528"], [15, "mov rax, [rbp+var_10]"], [16, "mov eax, [rax]"], [17, "shr eax, 5"], [18, "and eax, 40h"], [19, "test eax, eax"], [20, "jz short loc_480528"], [21, "mov eax, 1"], [22, "jmp short locret_480548"], [23, "mov rax, [rbp+var_8]"], [24, "mov rax, [rax+8]"], [25, "mov rdx, [rbp+var_10]"], [26, "mov rsi, rdx"], [27, "mov rdi, rax"], [28, "call sub_4691A1"], [29, "cmp eax, 1"], [30, "setz al"], [31, "movzx eax, al"], [32, "leave"], [33, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [9, 3], [10, 9], [11, 10], [12, 11], [13, 12], [14, 13], [15, 4], [16, 15], [17, 16], [18, 17], [19, 18], [20, 19], [23, 3], [24, 23], [25, 4], [26, 25], [27, 24], [29, 28], [30, 29], [30, 28], [31, 30], [33, 31], [33, 21]]}
{"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/f831702f41994ee170774af7a79dac102dd372be4a801864a0cdf0753939ec83_f831702f41994ee170774af7a79dac102dd372be4a801864a0cdf0753939ec83.jsonl.gz", "strip_func_name": "sub_4804E1", "query": "\n\n\n_BOOL8 __fastcall sub_4804E1(__int64 a1, _DWORD *a2)\n{\n_BOOL8 result; // rax\n\nif ( *(_QWORD *)(a1 + 8) && (*(_BYTE *)(*(_QWORD *)(a1 + 8) + 118LL) & 0x18) != 0 && ((*a2 >> 5) & 0x40) != 0 )\nresult = 1LL;\nelse\nresult = (unsigned int)sub_4691A1(*(_QWORD *)(a1 + 8), (__int64)a2) == 1;\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_4804E1,sub_4691A1,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'graph', 'a2': 'commit', 'sub_4804E1': 'graph_is_interesting', 'sub_4691A1': 'get_commit_action'}"}
tmxr_init_line
b3a8b4769bdb267a1562d144bd5416f56584185a8ee940d909e9d5c1f4737051
open-simh
simh
NA
static void tmxr_init_line (TMLN *lp) { lp->tsta = 0; /* init telnet state */ lp->xmte = 1; /* enable transmit */ lp->dstb = 0; /* default bin mode */ lp->rxbpr = lp->rxbpi = lp->rxcnt = lp->rxpcnt = 0; /* init receive indexes */ if (!lp->txbfd || lp->notelnet) /* if not buffered telnet */ lp->txbpr = lp->txbpi = lp->txcnt = lp->txpcnt = 0; /* init transmit indexes */ lp->txdrp = lp->txstall = 0; tmxr_set_get_modem_bits (lp, 0, 0, NULL); if (lp->mp && (!lp->mp->buffered) && (!lp->txbfd)) { lp->txbfd = 0; lp->txbsz = TMXR_MAXBUF; lp->txb = (char *)realloc (lp->txb, lp->txbsz); lp->rxbsz = TMXR_MAXBUF; lp->rxb = (char *)realloc(lp->rxb, lp->rxbsz); lp->rbr = (char *)realloc(lp->rbr, lp->rxbsz); } if (lp->loopback) { lp->lpbsz = lp->rxbsz; lp->lpb = (char *)realloc(lp->lpb, lp->lpbsz); lp->lpbcnt = lp->lpbpi = lp->lpbpr = 0; } if (lp->rxpb) { lp->rxpboffset = lp->rxpbsize = 0; free (lp->rxpb); lp->rxpb = NULL; } if (lp->txpb) { lp->txpbsize = lp->txppsize = lp->txppoffset = 0; free (lp->txpb); lp->txpb = NULL; } memset (lp->rbr, 0, lp->rxbsz); /* clear break status array */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44BB36", "function_addr": 4504374, "binary_name": "b3a8b4769bdb267a1562d144bd5416f56584185a8ee940d909e9d5c1f4737051.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 dword ptr [rax+38h], 0"], [6, "mov rax, [rbp+var_8]"], [7, "mov dword ptr [rax+40h], 1"], [8, "mov rax, [rbp+var_8]"], [9, "mov dword ptr [rax+44h], 0"], [10, "mov rax, [rbp+var_8]"], [11, "mov dword ptr [rax+68h], 0"], [12, "mov rax, [rbp+var_8]"], [13, "mov edx, [rax+68h]"], [14, "mov rax, [rbp+var_8]"], [15, "mov [rax+64h], edx"], [16, "mov rax, [rbp+var_8]"], [17, "mov edx, [rax+64h]"], [18, "mov rax, [rbp+var_8]"], [19, "mov [rax+5Ch], edx"], [20, "mov rax, [rbp+var_8]"], [21, "mov edx, [rax+5Ch]"], [22, "mov rax, [rbp+var_8]"], [23, "mov [rax+58h], edx"], [24, "mov rax, [rbp+var_8]"], [25, "mov eax, [rax+88h]"], [26, "test eax, eax"], [27, "jz short loc_44BBB1"], [28, "mov rax, [rbp+var_8]"], [29, "mov eax, [rax+48h]"], [30, "test eax, eax"], [31, "jz short loc_44BBE6"], [32, "mov rax, [rbp+var_8]"], [33, "mov dword ptr [rax+78h], 0"], [34, "mov rax, [rbp+var_8]"], [35, "mov edx, [rax+78h]"], [36, "mov rax, [rbp+var_8]"], [37, "mov [rax+74h], edx"], [38, "mov rax, [rbp+var_8]"], [39, "mov edx, [rax+74h]"], [40, "mov rax, [rbp+var_8]"], [41, "mov [rax+70h], edx"], [42, "mov rax, [rbp+var_8]"], [43, "mov edx, [rax+70h]"], [44, "mov rax, [rbp+var_8]"], [45, "mov [rax+6Ch], edx"], [46, "mov rax, [rbp+var_8]"], [47, "mov dword ptr [rax+80h], 0"], [48, "mov rax, [rbp+var_8]"], [49, "mov edx, [rax+80h]"], [50, "mov rax, [rbp+var_8]"], [51, "mov [rax+7Ch], edx"], [52, "mov rax, [rbp+var_8]"], [53, "mov ecx, 0"], [54, "mov edx, 0"], [55, "mov esi, 0"], [56, "mov rdi, rax"], [57, "call sub_45094F"], [58, "mov rax, [rbp+var_8]"], [59, "mov rax, [rax+128h]"], [60, "test rax, rax"], [61, "jz loc_44BD0A"], [62, "mov rax, [rbp+var_8]"], [63, "mov rax, [rax+128h]"], [64, "mov eax, [rax+104Ch]"], [65, "test eax, eax"], [66, "jnz loc_44BD0A"], [67, "mov rax, [rbp+var_8]"], [68, "mov eax, [rax+88h]"], [69, "test eax, eax"], [70, "jnz loc_44BD0A"], [71, "mov rax, [rbp+var_8]"], [72, "mov dword ptr [rax+88h], 0"], [73, "mov rax, [rbp+var_8]"], [74, "mov dword ptr [rax+84h], 100h"], [75, "mov rax, [rbp+var_8]"], [76, "mov eax, [rax+84h]"], [77, "movsxd rdx, eax"], [78, "mov rax, [rbp+var_8]"], [79, "mov rax, [rax+0C0h]"], [80, "mov rsi, rdx"], [81, "mov rdi, rax"], [82, "call _realloc"], [83, "mov rdx, [rbp+var_8]"], [84, "mov [rdx+0C0h], rax"], [85, "mov rax, [rbp+var_8]"], [86, "mov dword ptr [rax+60h], 100h"], [87, "mov rax, [rbp+var_8]"], [88, "mov eax, [rax+60h]"], [89, "movsxd rdx, eax"], [90, "mov rax, [rbp+var_8]"], [91, "mov rax, [rax+0B0h]"], [92, "mov rsi, rdx"], [93, "mov rdi, rax"], [94, "call _realloc"], [95, "mov rdx, [rbp+var_8]"], [96, "mov [rdx+0B0h], rax"], [97, "mov rax, [rbp+var_8]"], [98, "mov eax, [rax+60h]"], [99, "movsxd rdx, eax"], [100, "mov rax, [rbp+var_8]"], [101, "mov rax, [rax+0B8h]"], [102, "mov rsi, rdx"], [103, "mov rdi, rax"], [104, "call _realloc"], [105, "mov rdx, [rbp+var_8]"], [106, "mov [rdx+0B8h], rax"], [107, "mov rax, [rbp+var_8]"], [108, "mov eax, [rax+150h]"], [109, "test eax, eax"], [110, "jz short loc_44BD8D"], [111, "mov rax, [rbp+var_8]"], [112, "mov edx, [rax+60h]"], [113, "mov rax, [rbp+var_8]"], [114, "mov [rax+16Ch], edx"], [115, "mov rax, [rbp+var_8]"], [116, "mov eax, [rax+16Ch]"], [117, "movsxd rdx, eax"], [118, "mov rax, [rbp+var_8]"], [119, "mov rax, [rax+170h]"], [120, "mov rsi, rdx"], [121, "mov rdi, rax"], [122, "call _realloc"], [123, "mov rdx, [rbp+var_8]"], [124, "mov [rdx+170h], rax"], [125, "mov rax, [rbp+var_8]"], [126, "mov dword ptr [rax+160h], 0"], [127, "mov rax, [rbp+var_8]"], [128, "mov edx, [rax+160h]"], [129, "mov rax, [rbp+var_8]"], [130, "mov [rax+164h], edx"], [131, "mov rax, [rbp+var_8]"], [132, "mov edx, [rax+164h]"], [133, "mov rax, [rbp+var_8]"], [134, "mov [rax+168h], edx"], [135, "mov rax, [rbp+var_8]"], [136, "mov rax, [rax+0C8h]"], [137, "test rax, rax"], [138, "jz short loc_44BDE1"], [139, "mov rax, [rbp+var_8]"], [140, "mov dword ptr [rax+0D0h], 0"], [141, "mov rax, [rbp+var_8]"], [142, "mov edx, [rax+0D0h]"], [143, "mov rax, [rbp+var_8]"], [144, "mov [rax+0D4h], edx"], [145, "mov rax, [rbp+var_8]"], [146, "mov rax, [rax+0C8h]"], [147, "mov rdi, rax"], [148, "call _free"], [149, "mov rax, [rbp+var_8]"], [150, "mov qword ptr [rax+0C8h], 0"], [151, "mov rax, [rbp+var_8]"], [152, "mov rax, [rax+110h]"], [153, "test rax, rax"], [154, "jz short loc_44BE49"], [155, "mov rax, [rbp+var_8]"], [156, "mov dword ptr [rax+120h], 0"], [157, "mov rax, [rbp+var_8]"], [158, "mov edx, [rax+120h]"], [159, "mov rax, [rbp+var_8]"], [160, "mov [rax+11Ch], edx"], [161, "mov rax, [rbp+var_8]"], [162, "mov edx, [rax+11Ch]"], [163, "mov rax, [rbp+var_8]"], [164, "mov [rax+118h], edx"], [165, "mov rax, [rbp+var_8]"], [166, "mov rax, [rax+110h]"], [167, "mov rdi, rax"], [168, "call _free"], [169, "mov rax, [rbp+var_8]"], [170, "mov qword ptr [rax+110h], 0"], [171, "mov rax, [rbp+var_8]"], [172, "mov eax, [rax+60h]"], [173, "movsxd rdx, eax"], [174, "mov rax, [rbp+var_8]"], [175, "mov rax, [rax+0B8h]"], [176, "mov esi, 0"], [177, "mov rdi, rax"], [178, "call _memset"], [179, "nop"], [180, "leave"], [181, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 3], [9, 8], [10, 3], [11, 10], [12, 3], [13, 12], [13, 11], [14, 3], [15, 14], [15, 13], [16, 3], [17, 15], [17, 16], [18, 3], [19, 18], [19, 17], [20, 3], [21, 20], [21, 19], [22, 3], [23, 22], [23, 21], [24, 3], [25, 24], [25, 23], [26, 25], [27, 26], [28, 3], [29, 7], [29, 11], [29, 15], [29, 19], [29, 28], [29, 5], [29, 23], [29, 9], [30, 29], [31, 30], [32, 3], [33, 32], [34, 3], [35, 34], [35, 33], [36, 3], [37, 35], [37, 36], [38, 3], [39, 38], [39, 37], [40, 3], [41, 40], [41, 39], [42, 3], [43, 41], [43, 42], [44, 3], [45, 43], [45, 44], [46, 3], [47, 46], [48, 3], [49, 48], [49, 47], [50, 3], [51, 50], [51, 49], [52, 3], [56, 52], [58, 3], [59, 58], [59, 51], [60, 59], [61, 60], [62, 3], [63, 47], [63, 15], [63, 33], [63, 19], [63, 37], [63, 5], [63, 23], [63, 9], [63, 51], [63, 41], [63, 45], [63, 7], [63, 11], [63, 62], [64, 7], [64, 11], [64, 15], [64, 47], [64, 33], [64, 51], [64, 19], [64, 37], [64, 5], [64, 23], [64, 41], [64, 9], [64, 45], [64, 63], [65, 64], [66, 65], [67, 3], [68, 41], [68, 45], [68, 7], [68, 11], [68, 67], [68, 47], [68, 15], [68, 33], [68, 51], [68, 19], [68, 37], [68, 5], [68, 23], [68, 9], [69, 68], [70, 69], [71, 3], [72, 71], [73, 3], [74, 73], [75, 3], [76, 75], [76, 74], [77, 76], [78, 3], [79, 74], [79, 78], [80, 77], [81, 79], [83, 3], [84, 83], [84, 82], [85, 3], [86, 85], [87, 3], [88, 86], [88, 87], [89, 88], [90, 3], [91, 90], [91, 86], [92, 89], [93, 91], [95, 3], [96, 95], [96, 94], [97, 3], [98, 97], [98, 96], [98, 86], [99, 98], [100, 3], [101, 96], [101, 100], [102, 99], [103, 101], [105, 3], [106, 105], [106, 104], [107, 3], [108, 41], [108, 45], [108, 72], [108, 7], [108, 11], [108, 86], [108, 84], [108, 47], [108, 15], [108, 33], [108, 51], [108, 19], [108, 37], [108, 5], [108, 23], [108, 9], [108, 107], [108, 106], [108, 74], [108, 96], [109, 108], [110, 109], [111, 3], [112, 84], [112, 47], [112, 74], [112, 33], [112, 51], [112, 19], [112, 37], [112, 5], [112, 23], [112, 41], [112, 9], [112, 130], [112, 134], [112, 111], [112, 106], [112, 124], [112, 96], [112, 86], [112, 45], [112, 72], [112, 7], [112, 11], [112, 114], [112, 15], [112, 126], [113, 3], [114, 113], [114, 112], [115, 3], [116, 114], [116, 115], [117, 116], [118, 3], [119, 114], [119, 118], [120, 117], [121, 119], [123, 3], [124, 123], [124, 122], [125, 3], [126, 125], [127, 3], [128, 127], [128, 126], [129, 3], [130, 128], [130, 129], [131, 3], [132, 131], [132, 130], [133, 3], [134, 133], [134, 132], [135, 3], [136, 23], [136, 41], [136, 135], [136, 9], [136, 130], [136, 134], [136, 106], [136, 124], [136, 96], [136, 114], [136, 86], [136, 45], [136, 72], [136, 7], [136, 11], [136, 15], [136, 19], [136, 5], [136, 126], [136, 84], [136, 47], [136, 74], [136, 33], [136, 51], [136, 37], [137, 136], [138, 137], [139, 3], [140, 139], [141, 3], [142, 140], [142, 141], [143, 3], [144, 143], [144, 142], [145, 3], [146, 145], [146, 144], [147, 146], [149, 3], [150, 149], [151, 3], [152, 106], [152, 124], [152, 96], [152, 114], [152, 86], [152, 72], [152, 151], [152, 7], [152, 11], [152, 150], [152, 15], [152, 19], [152, 140], [152, 5], [152, 126], [152, 84], [152, 47], [152, 74], [152, 33], [152, 51], [152, 37], [152, 23], [152, 41], [152, 144], [152, 9], [152, 45], [152, 130], [152, 134], [153, 152], [154, 153], [155, 3], [156, 155], [157, 3], [158, 157], [158, 156], [159, 3], [160, 159], [160, 158], [161, 3], [162, 161], [162, 160], [163, 3], [164, 163], [164, 162], [165, 3], [166, 165], [166, 164], [167, 166], [169, 3], [170, 169], [171, 3], [172, 84], [172, 47], [172, 74], [172, 33], [172, 51], [172, 37], [172, 23], [172, 41], [172, 144], [172, 171], [172, 9], [172, 45], [172, 130], [172, 134], [172, 106], [172, 124], [172, 96], [172, 114], [172, 86], [172, 72], [172, 170], [172, 156], [172, 160], [172, 7], [172, 164], [172, 11], [172, 150], [172, 15], [172, 19], [172, 140], [172, 5], [172, 126], [173, 172], [174, 3], [175, 140], [175, 5], [175, 126], [175, 84], [175, 47], [175, 74], [175, 33], [175, 51], [175, 19], [175, 37], [175, 23], [175, 41], [175, 144], [175, 9], [175, 130], [175, 134], [175, 106], [175, 124], [175, 96], [175, 114], [175, 86], [175, 45], [175, 72], [175, 170], [175, 156], [175, 174], [175, 160], [175, 7], [175, 164], [175, 11], [175, 150], [175, 15], [177, 175], [181, 178]]}
{"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_44BB36", "query": "\n\n\nvoid *__fastcall sub_44BB36(__int64 a1)\n{\n*(_DWORD *)(a1 + 56) = 0;\n*(_DWORD *)(a1 + 64) = 1;\n*(_DWORD *)(a1 + 68) = 0;\n*(_DWORD *)(a1 + 104) = 0;\n*(_DWORD *)(a1 + 100) = *(_DWORD *)(a1 + 104);\n*(_DWORD *)(a1 + 92) = *(_DWORD *)(a1 + 100);\n*(_DWORD *)(a1 + 88) = *(_DWORD *)(a1 + 92);\nif ( !*(_DWORD *)(a1 + 136) || *(_DWORD *)(a1 + 72) )\n{\n*(_DWORD *)(a1 + 120) = 0;\n*(_DWORD *)(a1 + 116) = *(_DWORD *)(a1 + 120);\n*(_DWORD *)(a1 + 112) = *(_DWORD *)(a1 + 116);\n*(_DWORD *)(a1 + 108) = *(_DWORD *)(a1 + 112);\n}\n*(_DWORD *)(a1 + 128) = 0;\n*(_DWORD *)(a1 + 124) = *(_DWORD *)(a1 + 128);\nsub_45094F(a1, 0LL, 0LL, 0LL);\nif ( *(_QWORD *)(a1 + 296) && !*(_DWORD *)(*(_QWORD *)(a1 + 296) + 4172LL) && !*(_DWORD *)(a1 + 136) )\n{\n*(_DWORD *)(a1 + 136) = 0;\n*(_DWORD *)(a1 + 132) = 256;\n*(_QWORD *)(a1 + 192) = realloc(*(void **)(a1 + 192), *(int *)(a1 + 132));\n*(_DWORD *)(a1 + 96) = 256;\n*(_QWORD *)(a1 + 176) = realloc(*(void **)(a1 + 176), *(int *)(a1 + 96));\n*(_QWORD *)(a1 + 184) = realloc(*(void **)(a1 + 184), *(int *)(a1 + 96));\n}\nif ( *(_DWORD *)(a1 + 336) )\n{\n*(_DWORD *)(a1 + 364) = *(_DWORD *)(a1 + 96);\n*(_QWORD *)(a1 + 368) = realloc(*(void **)(a1 + 368), *(int *)(a1 + 364));\n*(_DWORD *)(a1 + 352) = 0;\n*(_DWORD *)(a1 + 356) = *(_DWORD *)(a1 + 352);\n*(_DWORD *)(a1 + 360) = *(_DWORD *)(a1 + 356);\n}\nif ( *(_QWORD *)(a1 + 200) )\n{\n*(_DWORD *)(a1 + 208) = 0;\n*(_DWORD *)(a1 + 212) = *(_DWORD *)(a1 + 208);\nfree(*(void **)(a1 + 200));\n*(_QWORD *)(a1 + 200) = 0LL;\n}\nif ( *(_QWORD *)(a1 + 272) )\n{\n*(_DWORD *)(a1 + 288) = 0;\n*(_DWORD *)(a1 + 284) = *(_DWORD *)(a1 + 288);\n*(_DWORD *)(a1 + 280) = *(_DWORD *)(a1 + 284);\nfree(*(void **)(a1 + 272));\n*(_QWORD *)(a1 + 272) = 0LL;\n}\nreturn memset(*(void **)(a1 + 184), 0, *(int *)(a1 + 96));\n}\n\n\n\nQ:[a1,sub_44BB36,sub_45094F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'lp', 'sub_44BB36': 'tmxr_init_line', 'sub_45094F': 'tmxr_set_get_modem_bits'}"}
set_destory
362955a1d3230a4d03d634c3e5bff13ca4ae6a5e24e02b2cad6e9251388f57a8
shiquan
PISA
NA
void set_destory(set_t *set) { if (set->m) free(set->ele); free(set); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4436BD", "function_addr": 4470461, "binary_name": "362955a1d3230a4d03d634c3e5bff13ca4ae6a5e24e02b2cad6e9251388f57a8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+ptr], rdi"], [4, "mov rax, [rbp+ptr]"], [5, "mov eax, [rax+0Ch]"], [6, "test eax, eax"], [7, "jz short loc_4436E3"], [8, "mov rax, [rbp+ptr]"], [9, "mov rax, [rax]"], [10, "mov rdi, rax"], [11, "call _free"], [12, "mov rax, [rbp+ptr]"], [13, "mov rdi, rax"], [14, "call _free"], [15, "nop"], [16, "leave"], [17, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 3], [9, 8], [10, 9], [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/362955a1d3230a4d03d634c3e5bff13ca4ae6a5e24e02b2cad6e9251388f57a8_362955a1d3230a4d03d634c3e5bff13ca4ae6a5e24e02b2cad6e9251388f57a8.jsonl.gz", "strip_func_name": "sub_4436BD", "query": "\n\n\nvoid __fastcall sub_4436BD(__int64 a1)\n{\nif ( *(_DWORD *)(a1 + 12) )\nfree(*(void **)a1);\nfree((void *)a1);\n}\n\n\n\nQ:[a1,sub_4436BD,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'set', 'sub_4436BD': 'set_destory'}"}
spx_codec_modify
25c5dec96bb3133ec9c32f1c53b06126b3f458e8718b6d0581ace9fa89525fd0
asterisk
pjproject-archive
NA
static pj_status_t spx_codec_modify(pjmedia_codec *codec, const pjmedia_codec_param *attr ) { struct spx_private *spx; int tmp; spx = (struct spx_private*) codec->codec_data; /* VAD */ tmp = (attr->setting.vad != 0); speex_encoder_ctl(spx->enc, SPEEX_SET_VAD, &tmp); speex_encoder_ctl(spx->enc, SPEEX_SET_DTX, &tmp); /* PENH */ tmp = attr->setting.penh; speex_decoder_ctl(spx->dec, SPEEX_SET_ENH, &tmp); return PJ_SUCCESS; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41186E", "function_addr": 4266094, "binary_name": "25c5dec96bb3133ec9c32f1c53b06126b3f458e8718b6d0581ace9fa89525fd0.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+10h]"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_20]"], [9, "movzx eax, byte ptr [rax+21h]"], [10, "and eax, 1"], [11, "test al, al"], [12, "setnz al"], [13, "movzx eax, al"], [14, "mov [rbp+var_C], eax"], [15, "mov rax, [rbp+var_8]"], [16, "mov rax, [rax+8]"], [17, "lea rdx, [rbp+var_C]"], [18, "mov esi, 1Eh"], [19, "mov rdi, rax"], [20, "call speex_encoder_ctl"], [21, "mov rax, [rbp+var_8]"], [22, "mov rax, [rax+8]"], [23, "lea rdx, [rbp+var_C]"], [24, "mov esi, 22h "], [25, "mov rdi, rax"], [26, "call speex_encoder_ctl"], [27, "mov rax, [rbp+var_20]"], [28, "movzx eax, byte ptr [rax+21h]"], [29, "shr al, 2"], [30, "and eax, 1"], [31, "movzx eax, al"], [32, "mov [rbp+var_C], eax"], [33, "mov rax, [rbp+var_8]"], [34, "mov rax, [rax+40h]"], [35, "lea rdx, [rbp+var_C]"], [36, "mov esi, 0"], [37, "mov rdi, rax"], [38, "call speex_decoder_ctl"], [39, "mov eax, 0"], [40, "leave"], [41, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 4], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [14, 13], [15, 7], [16, 15], [17, 14], [19, 16], [21, 7], [22, 21], [23, 14], [23, 17], [25, 22], [27, 4], [28, 27], [29, 28], [30, 29], [31, 30], [32, 31], [33, 7], [34, 33], [35, 23], [35, 32], [37, 34], [41, 39]]}
{"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/25c5dec96bb3133ec9c32f1c53b06126b3f458e8718b6d0581ace9fa89525fd0_25c5dec96bb3133ec9c32f1c53b06126b3f458e8718b6d0581ace9fa89525fd0.jsonl.gz", "strip_func_name": "sub_41186E", "query": "\n\n\n__int64 __fastcall sub_41186E(__int64 a1, __int64 a2)\n{\n_BOOL4 v3; // [rsp+14h] [rbp-Ch] BYREF\n__int64 v4; // [rsp+18h] [rbp-8h]\n\nv4 = *(_QWORD *)(a1 + 16);\nv3 = (*(_BYTE *)(a2 + 33) & 1) != 0;\nspeex_encoder_ctl(*(_QWORD *)(v4 + 8), 30LL, &v3);\nspeex_encoder_ctl(*(_QWORD *)(v4 + 8), 34LL, &v3);\nv3 = (*(_BYTE *)(a2 + 33) & 4) != 0;\nspeex_decoder_ctl(*(_QWORD *)(v4 + 64), 0LL, &v3);\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,v3,v4,sub_41186E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'codec', 'a2': 'attr', 'v3': 'tmp', 'v4': 'spx', 'sub_41186E': 'spx_codec_modify'}"}
l2cap_run_le_data_channels
1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca
micropython
micropython-unicorn
NA
static void l2cap_run_le_data_channels(void){ btstack_linked_list_iterator_t it; btstack_linked_list_iterator_init(&it, &l2cap_channels); while (btstack_linked_list_iterator_has_next(&it)){ uint16_t mps; l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it); if (channel->channel_type != L2CAP_CHANNEL_TYPE_LE_DATA_CHANNEL) continue; // log_info("l2cap_run: channel %p, state %u, var 0x%02x", channel, channel->state, channel->state_var); switch (channel->state){ case L2CAP_STATE_WILL_SEND_LE_CONNECTION_REQUEST: if (!hci_can_send_acl_packet_now(channel->con_handle)) break; channel->state = L2CAP_STATE_WAIT_LE_CONNECTION_RESPONSE; // le psm, source cid, mtu, mps, initial credits channel->local_sig_id = l2cap_next_sig_id(); channel->credits_incoming = channel->new_credits_incoming; channel->new_credits_incoming = 0; mps = btstack_min(l2cap_max_le_mtu(), channel->local_mtu); l2cap_send_le_signaling_packet( channel->con_handle, LE_CREDIT_BASED_CONNECTION_REQUEST, channel->local_sig_id, channel->psm, channel->local_cid, channel->local_mtu, mps, channel->credits_incoming); break; case L2CAP_STATE_WILL_SEND_LE_CONNECTION_RESPONSE_ACCEPT: if (!hci_can_send_acl_packet_now(channel->con_handle)) break; // TODO: support larger MPS channel->state = L2CAP_STATE_OPEN; channel->credits_incoming = channel->new_credits_incoming; channel->new_credits_incoming = 0; mps = btstack_min(l2cap_max_le_mtu(), channel->local_mtu); l2cap_send_le_signaling_packet(channel->con_handle, LE_CREDIT_BASED_CONNECTION_RESPONSE, channel->remote_sig_id, channel->local_cid, channel->local_mtu, mps, channel->credits_incoming, 0); // notify client l2cap_emit_le_channel_opened(channel, 0); break; case L2CAP_STATE_WILL_SEND_LE_CONNECTION_RESPONSE_DECLINE: if (!hci_can_send_acl_packet_now(channel->con_handle)) break; channel->state = L2CAP_STATE_INVALID; l2cap_send_le_signaling_packet(channel->con_handle, LE_CREDIT_BASED_CONNECTION_RESPONSE, channel->remote_sig_id, 0, 0, 0, 0, channel->reason); // discard channel - l2cap_finialize_channel_close without sending l2cap close event btstack_linked_list_iterator_remove(&it); l2cap_free_channel_entry(channel); break; case L2CAP_STATE_OPEN: if (!hci_can_send_acl_packet_now(channel->con_handle)) break; // send credits if (channel->new_credits_incoming){ log_info("l2cap: sending %u credits", channel->new_credits_incoming); channel->local_sig_id = l2cap_next_sig_id(); uint16_t new_credits = channel->new_credits_incoming; channel->new_credits_incoming = 0; channel->credits_incoming += new_credits; l2cap_send_le_signaling_packet(channel->con_handle, LE_FLOW_CONTROL_CREDIT, channel->local_sig_id, channel->remote_cid, new_credits); } break; case L2CAP_STATE_WILL_SEND_DISCONNECT_REQUEST: if (!hci_can_send_acl_packet_now(channel->con_handle)) break; channel->local_sig_id = l2cap_next_sig_id(); channel->state = L2CAP_STATE_WAIT_DISCONNECT; l2cap_send_le_signaling_packet( channel->con_handle, DISCONNECTION_REQUEST, channel->local_sig_id, channel->remote_cid, channel->local_cid); break; case L2CAP_STATE_WILL_SEND_DISCONNECT_RESPONSE: if (!hci_can_send_acl_packet_now(channel->con_handle)) break; channel->state = L2CAP_STATE_INVALID; l2cap_send_le_signaling_packet( channel->con_handle, DISCONNECTION_RESPONSE, channel->remote_sig_id, channel->local_cid, channel->remote_cid); l2cap_le_finialize_channel_close(channel); // -- remove from list break; default: break; } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414D72", "function_addr": 4279666, "binary_name": "1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 38h"], [4, "lea rax, [rbp+var_40]"], [5, "mov esi, offset qword_4743D8"], [6, "mov rdi, rax"], [7, "call sub_4056B7"], [8, "jmp loc_4151DC"], [9, "lea rax, [rbp+var_40]"], [10, "mov rdi, rax"], [11, "call sub_40574B"], [12, "mov [rbp+var_18], rax"], [13, "mov rax, [rbp+var_18]"], [14, "mov eax, [rax+8]"], [15, "cmp eax, 2"], [16, "jz short loc_414DB2"], [17, "jmp loc_4151DC"], [18, "mov rax, [rbp+var_18]"], [19, "mov eax, [rax+40h]"], [20, "sub eax, 0Ch"], [21, "cmp eax, 0Ah"], [22, "ja def_414DCF"], [23, "mov eax, eax"], [24, "mov rax, ds:jpt_414DCF[rax*8]"], [25, "jmp rax"], [26, "mov rax, [rbp+var_18]"], [27, "movzx eax, word ptr [rax+48h]"], [28, "movzx eax, ax"], [29, "mov edi, eax"], [30, "call sub_407EE8"], [31, "test eax, eax"], [32, "jnz short loc_414DEC"], [33, "jmp loc_4151DC"], [34, "mov rax, [rbp+var_18]"], [35, "mov dword ptr [rax+40h], 17h"], [36, "call sub_4130C6"], [37, "mov rdx, [rbp+var_18]"], [38, "mov [rdx+55h], al"], [39, "mov rax, [rbp+var_18]"], [40, "movzx edx, word ptr [rax+88h]"], [41, "mov rax, [rbp+var_18]"], [42, "mov [rax+8Ah], dx"], [43, "mov rax, [rbp+var_18]"], [44, "mov word ptr [rax+88h], 0"], [45, "mov rax, [rbp+var_18]"], [46, "movzx eax, word ptr [rax+58h]"], [47, "movzx ebx, ax"], [48, "call sub_4142B1"], [49, "movzx eax, ax"], [50, "mov esi, ebx"], [51, "mov edi, eax"], [52, "call sub_40639B"], [53, "mov [rbp+var_1A], ax"], [54, "mov rax, [rbp+var_18]"], [55, "movzx eax, word ptr [rax+8Ah]"], [56, "movzx edi, ax"], [57, "movzx esi, [rbp+var_1A]"], [58, "mov rax, [rbp+var_18]"], [59, "movzx eax, word ptr [rax+58h]"], [60, "movzx r9d, ax"], [61, "mov rax, [rbp+var_18]"], [62, "movzx eax, word ptr [rax+0Ch]"], [63, "movzx r8d, ax"], [64, "mov rax, [rbp+var_18]"], [65, "movzx eax, word ptr [rax+5Eh]"], [66, "movzx ecx, ax"], [67, "mov rax, [rbp+var_18]"], [68, "movzx eax, byte ptr [rax+55h]"], [69, "movzx edx, al"], [70, "mov rax, [rbp+var_18]"], [71, "movzx eax, word ptr [rax+48h]"], [72, "movzx eax, ax"], [73, "push rdi"], [74, "push rsi"], [75, "mov esi, 14h"], [76, "mov edi, eax"], [77, "mov eax, 0"], [78, "call sub_41418F"], [79, "add rsp, 10h"], [80, "jmp loc_4151DC"], [81, "mov rax, [rbp+var_18]"], [82, "movzx eax, word ptr [rax+48h]"], [83, "movzx eax, ax"], [84, "mov edi, eax"], [85, "call sub_407EE8"], [86, "test eax, eax"], [87, "jnz short loc_414EC8"], [88, "jmp loc_4151DC"], [89, "mov rax, [rbp+var_18]"], [90, "mov dword ptr [rax+40h], 0Ch"], [91, "mov rax, [rbp+var_18]"], [92, "movzx edx, word ptr [rax+88h]"], [93, "mov rax, [rbp+var_18]"], [94, "mov [rax+8Ah], dx"], [95, "mov rax, [rbp+var_18]"], [96, "mov word ptr [rax+88h], 0"], [97, "mov rax, [rbp+var_18]"], [98, "movzx eax, word ptr [rax+58h]"], [99, "movzx ebx, ax"], [100, "call sub_4142B1"], [101, "movzx eax, ax"], [102, "mov esi, ebx"], [103, "mov edi, eax"], [104, "call sub_40639B"], [105, "mov [rbp+var_1A], ax"], [106, "mov rax, [rbp+var_18]"], [107, "movzx eax, word ptr [rax+8Ah]"], [108, "movzx esi, ax"], [109, "movzx r8d, [rbp+var_1A]"], [110, "mov rax, [rbp+var_18]"], [111, "movzx eax, word ptr [rax+58h]"], [112, "movzx edi, ax"], [113, "mov rax, [rbp+var_18]"], [114, "movzx eax, word ptr [rax+0Ch]"], [115, "movzx ecx, ax"], [116, "mov rax, [rbp+var_18]"], [117, "movzx eax, byte ptr [rax+54h]"], [118, "movzx edx, al"], [119, "mov rax, [rbp+var_18]"], [120, "movzx eax, word ptr [rax+48h]"], [121, "movzx eax, ax"], [122, "push 0"], [123, "push rsi"], [124, "mov r9d, r8d"], [125, "mov r8d, edi"], [126, "mov esi, 15h"], [127, "mov edi, eax"], [128, "mov eax, 0"], [129, "call sub_41418F"], [130, "add rsp, 10h"], [131, "mov rax, [rbp+var_18]"], [132, "mov esi, 0"], [133, "mov rdi, rax"], [134, "call sub_41856D"], [135, "jmp loc_4151DC"], [136, "mov rax, [rbp+var_18]"], [137, "movzx eax, word ptr [rax+48h]"], [138, "movzx eax, ax"], [139, "mov edi, eax"], [140, "call sub_407EE8"], [141, "test eax, eax"], [142, "jnz short loc_414FA4"], [143, "jmp loc_4151DC"], [144, "mov rax, [rbp+var_18]"], [145, "mov dword ptr [rax+40h], 19h"], [146, "mov rax, [rbp+var_18]"], [147, "movzx eax, byte ptr [rax+64h]"], [148, "movzx ecx, al"], [149, "mov rax, [rbp+var_18]"], [150, "movzx eax, byte ptr [rax+54h]"], [151, "movzx edx, al"], [152, "mov rax, [rbp+var_18]"], [153, "movzx eax, word ptr [rax+48h]"], [154, "movzx eax, ax"], [155, "push rcx"], [156, "push 0"], [157, "mov r9d, 0"], [158, "mov r8d, 0"], [159, "mov ecx, 0"], [160, "mov esi, 15h"], [161, "mov edi, eax"], [162, "mov eax, 0"], [163, "call sub_41418F"], [164, "add rsp, 10h"], [165, "lea rax, [rbp+var_40]"], [166, "mov rdi, rax"], [167, "call sub_4057C3"], [168, "mov rax, [rbp+var_18]"], [169, "mov rdi, rax"], [170, "call sub_415675"], [171, "jmp loc_4151DC"], [172, "mov rax, [rbp+var_18]"], [173, "movzx eax, word ptr [rax+48h]"], [174, "movzx eax, ax"], [175, "mov edi, eax"], [176, "call sub_407EE8"], [177, "test eax, eax"], [178, "jnz short loc_415031"], [179, "jmp loc_4151DC"], [180, "mov rax, [rbp+var_18]"], [181, "movzx eax, word ptr [rax+88h]"], [182, "test ax, ax"], [183, "jz loc_4151DC"], [184, "mov rax, [rbp+var_18]"], [185, "movzx eax, word ptr [rax+88h]"], [186, "movzx eax, ax"], [187, "mov r8d, eax"], [188, "mov ecx, 703h"], [189, "mov edx, offset aL2capC"], [190, "mov esi, offset aSUL2capSending"], [191, "mov edi, 1"], [192, "mov eax, 0"], [193, "call sub_412F63"], [194, "call sub_4130C6"], [195, "mov rdx, [rbp+var_18]"], [196, "mov [rdx+55h], al"], [197, "mov rax, [rbp+var_18]"], [198, "movzx eax, word ptr [rax+88h]"], [199, "mov [rbp+var_1C], ax"], [200, "mov rax, [rbp+var_18]"], [201, "mov word ptr [rax+88h], 0"], [202, "mov rax, [rbp+var_18]"], [203, "movzx edx, word ptr [rax+8Ah]"], [204, "movzx eax, [rbp+var_1C]"], [205, "add edx, eax"], [206, "mov rax, [rbp+var_18]"], [207, "mov [rax+8Ah], dx"], [208, "movzx esi, [rbp+var_1C]"], [209, "mov rax, [rbp+var_18]"], [210, "movzx eax, word ptr [rax+56h]"], [211, "movzx ecx, ax"], [212, "mov rax, [rbp+var_18]"], [213, "movzx eax, byte ptr [rax+55h]"], [214, "movzx edx, al"], [215, "mov rax, [rbp+var_18]"], [216, "movzx eax, word ptr [rax+48h]"], [217, "movzx eax, ax"], [218, "mov r8d, esi"], [219, "mov esi, 16h"], [220, "mov edi, eax"], [221, "mov eax, 0"], [222, "call sub_41418F"], [223, "jmp loc_4151DC"], [224, "mov rax, [rbp+var_18]"], [225, "movzx eax, word ptr [rax+48h]"], [226, "movzx eax, ax"], [227, "mov edi, eax"], [228, "call sub_407EE8"], [229, "test eax, eax"], [230, "jnz short loc_415111"], [231, "jmp loc_4151DC"], [232, "call sub_4130C6"], [233, "mov rdx, [rbp+var_18]"], [234, "mov [rdx+55h], al"], [235, "mov rax, [rbp+var_18]"], [236, "mov dword ptr [rax+40h], 0Dh"], [237, "mov rax, [rbp+var_18]"], [238, "movzx eax, word ptr [rax+0Ch]"], [239, "movzx esi, ax"], [240, "mov rax, [rbp+var_18]"], [241, "movzx eax, word ptr [rax+56h]"], [242, "movzx ecx, ax"], [243, "mov rax, [rbp+var_18]"], [244, "movzx eax, byte ptr [rax+55h]"], [245, "movzx edx, al"], [246, "mov rax, [rbp+var_18]"], [247, "movzx eax, word ptr [rax+48h]"], [248, "movzx eax, ax"], [249, "mov r8d, esi"], [250, "mov esi, 6"], [251, "mov edi, eax"], [252, "mov eax, 0"], [253, "call sub_41418F"], [254, "jmp short loc_4151DC"], [255, "mov rax, [rbp+var_18]"], [256, "movzx eax, word ptr [rax+48h]"], [257, "movzx eax, ax"], [258, "mov edi, eax"], [259, "call sub_407EE8"], [260, "test eax, eax"], [261, "jnz short loc_415182"], [262, "jmp short loc_4151DC"], [263, "mov rax, [rbp+var_18]"], [264, "mov dword ptr [rax+40h], 19h"], [265, "mov rax, [rbp+var_18]"], [266, "movzx eax, word ptr [rax+56h]"], [267, "movzx esi, ax"], [268, "mov rax, [rbp+var_18]"], [269, "movzx eax, word ptr [rax+0Ch]"], [270, "movzx ecx, ax"], [271, "mov rax, [rbp+var_18]"], [272, "movzx eax, byte ptr [rax+54h]"], [273, "movzx edx, al"], [274, "mov rax, [rbp+var_18]"], [275, "movzx eax, word ptr [rax+48h]"], [276, "movzx eax, ax"], [277, "mov r8d, esi"], [278, "mov esi, 7"], [279, "mov edi, eax"], [280, "mov eax, 0"], [281, "call sub_41418F"], [282, "mov rax, [rbp+var_18]"], [283, "mov rdi, rax"], [284, "call sub_418A04"], [285, "jmp short loc_4151DC"], [286, "nop"], [287, "lea rax, [rbp+var_40]"], [288, "mov rdi, rax"], [289, "call sub_4056EB"], [290, "test al, al"], [291, "jnz loc_414D91"], [292, "nop"], [293, "nop"], [294, "mov rbx, [rbp+var_8]"], [295, "leave"], [296, "retn"]], "data_dep": [[6, 4], [9, 290], [10, 9], [12, 11], [13, 12], [14, 42], [14, 145], [14, 236], [14, 96], [14, 13], [14, 264], [14, 35], [14, 44], [14, 207], [14, 234], [14, 90], [14, 94], [14, 201], [14, 196], [14, 38], [15, 14], [16, 15], [18, 12], [19, 18], [19, 236], [19, 96], [19, 264], [19, 35], [19, 44], [19, 207], [19, 234], [19, 90], [19, 94], [19, 201], [19, 196], [19, 38], [19, 42], [19, 145], [20, 19], [21, 20], [22, 21], [23, 20], [25, 24], [26, 12], [27, 264], [27, 236], [27, 96], [27, 207], [27, 26], [27, 35], [27, 44], [27, 234], [27, 90], [27, 94], [27, 201], [27, 196], [27, 38], [27, 42], [27, 145], [28, 27], [29, 28], [31, 30], [32, 31], [34, 12], [35, 34], [37, 12], [38, 36], [38, 37], [39, 12], [40, 44], [40, 201], [40, 39], [40, 38], [40, 96], [41, 12], [42, 41], [42, 40], [43, 12], [44, 43], [45, 12], [46, 45], [46, 44], [47, 46], [49, 48], [50, 47], [51, 49], [53, 52], [54, 12], [55, 42], [55, 54], [55, 44], [56, 55], [57, 53], [58, 12], [59, 44], [59, 58], [60, 59], [61, 12], [62, 44], [62, 61], [63, 62], [64, 12], [65, 64], [65, 44], [66, 65], [67, 12], [68, 44], [68, 67], [69, 68], [70, 12], [71, 44], [71, 70], [72, 71], [73, 56], [74, 57], [76, 72], [79, 130], [79, 3], [79, 79], [79, 164], [81, 12], [82, 38], [82, 42], [82, 145], [82, 264], [82, 236], [82, 96], [82, 35], [82, 44], [82, 207], [82, 234], [82, 81], [82, 90], [82, 94], [82, 201], [82, 196], [83, 82], [84, 83], [86, 85], [87, 86], [89, 12], [90, 89], [91, 12], [92, 96], [92, 44], [92, 91], [92, 90], [92, 201], [93, 12], [94, 93], [94, 92], [95, 12], [96, 95], [97, 12], [98, 97], [98, 96], [99, 98], [101, 100], [102, 99], [103, 101], [105, 104], [106, 12], [107, 94], [107, 106], [107, 96], [108, 107], [109, 105], [110, 12], [111, 110], [111, 96], [112, 111], [113, 12], [114, 96], [114, 113], [115, 114], [116, 12], [117, 116], [117, 96], [118, 117], [119, 12], [120, 96], [120, 119], [121, 120], [123, 108], [124, 109], [125, 112], [127, 121], [130, 3], [130, 79], [130, 164], [130, 130], [131, 12], [133, 131], [136, 12], [137, 145], [137, 136], [137, 234], [137, 90], [137, 94], [137, 201], [137, 196], [137, 38], [137, 42], [137, 264], [137, 236], [137, 96], [137, 207], [137, 35], [137, 44], [138, 137], [139, 138], [141, 140], [142, 141], [144, 12], [145, 144], [146, 12], [147, 146], [147, 145], [148, 147], [149, 12], [150, 149], [150, 145], [151, 150], [152, 12], [153, 152], [153, 145], [154, 153], [155, 148], [161, 154], [164, 130], [164, 79], [164, 3], [164, 164], [165, 163], [166, 165], [168, 12], [169, 168], [172, 12], [173, 35], [173, 44], [173, 38], [173, 145], [173, 234], [173, 94], [173, 201], [173, 196], [173, 42], [173, 172], [173, 264], [173, 236], [173, 96], [173, 207], [173, 90], [174, 173], [175, 174], [177, 176], [178, 177], [180, 12], [181, 44], [181, 201], [181, 38], [181, 145], [181, 234], [181, 94], [181, 196], [181, 42], [181, 180], [181, 264], [181, 236], [181, 96], [181, 207], [181, 90], [181, 35], [182, 181], [183, 182], [184, 12], [185, 264], [185, 236], [185, 96], [185, 207], [185, 90], [185, 184], [185, 35], [185, 44], [185, 201], [185, 38], [185, 145], [185, 234], [185, 94], [185, 196], [185, 42], [186, 185], [187, 186], [195, 12], [196, 194], [196, 195], [197, 12], [198, 96], [198, 197], [198, 44], [198, 201], [198, 196], [199, 198], [200, 12], [201, 200], [202, 12], [203, 202], [203, 94], [203, 201], [203, 42], [203, 207], [204, 199], [205, 204], [205, 203], [206, 12], [207, 206], [207, 205], [208, 199], [209, 12], [210, 209], [210, 207], [211, 210], [212, 12], [213, 212], [213, 207], [214, 213], [215, 12], [216, 215], [216, 207], [217, 216], [218, 208], [220, 217], [224, 12], [225, 96], [225, 207], [225, 90], [225, 35], [225, 44], [225, 38], [225, 145], [225, 234], [225, 94], [225, 224], [225, 201], [225, 196], [225, 42], [225, 264], [225, 236], [226, 225], [227, 226], [229, 228], [230, 229], [233, 12], [234, 233], [234, 232], [235, 12], [236, 235], [237, 12], [238, 237], [238, 236], [239, 238], [240, 12], [241, 236], [241, 240], [242, 241], [243, 12], [244, 243], [244, 236], [245, 244], [246, 12], [247, 236], [247, 246], [248, 247], [249, 239], [251, 248], [255, 12], [256, 236], [256, 264], [256, 35], [256, 96], [256, 207], [256, 234], [256, 90], [256, 94], [256, 44], [256, 201], [256, 196], [256, 38], [256, 42], [256, 145], [256, 255], [257, 256], [258, 257], [260, 259], [261, 260], [263, 12], [264, 263], [265, 12], [266, 265], [266, 264], [267, 266], [268, 12], [269, 264], [269, 268], [270, 269], [271, 12], [272, 264], [272, 271], [273, 272], [274, 12], [275, 264], [275, 274], [276, 275], [277, 267], [279, 276], [282, 12], [283, 282], [287, 182], [287, 20], [287, 141], [287, 177], [287, 24], [287, 284], [287, 14], [287, 260], [287, 222], [287, 78], [287, 31], [287, 134], [287, 170], [287, 7], [287, 253], [287, 86], [287, 229], [288, 287], [290, 289], [291, 290], [296, 290]]}
{"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/1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca_1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.jsonl.gz", "strip_func_name": "sub_414D72", "query": "\n\n\nbool sub_414D72()\n{\n__int64 v0; // rsi\nunsigned int v1; // ebx\nunsigned __int16 v2; // ax\nunsigned int v3; // ebx\nunsigned __int16 v4; // ax\n__int64 v5; // r9\nbool result; // al\nchar v7[36]; // [rsp+0h] [rbp-40h] BYREF\nunsigned __int16 v8; // [rsp+24h] [rbp-1Ch]\nunsigned __int16 v9; // [rsp+26h] [rbp-1Ah]\n__int64 v10; // [rsp+28h] [rbp-18h]\n\nv0 = (__int64)&qword_4743D8;\nsub_4056B7((__int64)v7, &qword_4743D8);\nwhile ( 1 )\n{\nresult = sub_4056EB((__int64)v7);\nif ( !result )\nreturn result;\nv10 = sub_40574B((__int64)v7);\nif ( *(_DWORD *)(v10 + 8) == 2 )\n{\nswitch ( *(_DWORD *)(v10 + 64) )\n{\ncase 0xC:\nif ( sub_407EE8(*(_WORD *)(v10 + 72), v0) )\n{\nif ( *(_WORD *)(v10 + 136) )\n{\nsub_412F63(\n1,\n\"%s.%u: l2cap: sending %u credits\",\n(__int64)\"l2cap.c\",\n1795LL,\n*(unsigned __int16 *)(v10 + 136),\nv5);\n*(_BYTE *)(v10 + 85) = sub_4130C6();\nv8 = *(_WORD *)(v10 + 136);\n*(_WORD *)(v10 + 136) = 0;\n*(_WORD *)(v10 + 138) += v8;\nv0 = 22LL;\nsub_41418F(*(_WORD *)(v10 + 72), 22LL, *(_BYTE *)(v10 + 85), *(unsigned __int16 *)(v10 + 86), v8);\n}\n}\nbreak;\ncase 0x12:\nif ( sub_407EE8(*(_WORD *)(v10 + 72), v0) )\n{\n*(_BYTE *)(v10 + 85) = sub_4130C6();\n*(_DWORD *)(v10 + 64) = 13;\nv0 = 6LL;\nsub_41418F(\n*(_WORD *)(v10 + 72),\n6LL,\n*(_BYTE *)(v10 + 85),\n*(unsigned __int16 *)(v10 + 86),\n*(unsigned __int16 *)(v10 + 12));\n}\nbreak;\ncase 0x13:\nif ( sub_407EE8(*(_WORD *)(v10 + 72), v0) )\n{\n*(_DWORD *)(v10 + 64) = 25;\nv0 = 7LL;\nsub_41418F(\n*(_WORD *)(v10 + 72),\n7LL,\n*(_BYTE *)(v10 + 84),\n*(unsigned __int16 *)(v10 + 12),\n*(unsigned __int16 *)(v10 + 86));\nsub_418A04(v10);\n}\nbreak;\ncase 0x14:\nif ( sub_407EE8(*(_WORD *)(v10 + 72), v0) )\n{\n*(_DWORD *)(v10 + 64) = 23;\n*(_BYTE *)(v10 + 85) = sub_4130C6();\n*(_WORD *)(v10 + 138) = *(_WORD *)(v10 + 136);\n*(_WORD *)(v10 + 136) = 0;\nv1 = *(unsigned __int16 *)(v10 + 88);\nv2 = sub_4142B1();\nv9 = sub_40639B(v2, v1);\nv0 = 20LL;\nsub_41418F(\n*(_WORD *)(v10 + 72),\n20LL,\n*(_BYTE *)(v10 + 85),\n*(unsigned __int16 *)(v10 + 94),\n*(unsigned __int16 *)(v10 + 12),\n*(unsigned __int16 *)(v10 + 88),\nv9,\n*(unsigned __int16 *)(v10 + 138));\n}\nbreak;\ncase 0x15:\nif ( sub_407EE8(*(_WORD *)(v10 + 72), v0) )\n{\n*(_DWORD *)(v10 + 64) = 25;\nv0 = 21LL;\nsub_41418F(\n*(_WORD *)(v10 + 72),\n21LL,\n*(_BYTE *)(v10 + 84),\n0LL,\n0LL,\n0LL,\n0LL,\n*(unsigned __int8 *)(v10 + 100));\nsub_4057C3((__int64)v7);\nsub_415675(v10);\n}\nbreak;\ncase 0x16:\nif ( sub_407EE8(*(_WORD *)(v10 + 72), v0) )\n{\n*(_DWORD *)(v10 + 64) = 12;\n*(_WORD *)(v10 + 138) = *(_WORD *)(v10 + 136);\n*(_WORD *)(v10 + 136) = 0;\nv3 = *(unsigned __int16 *)(v10 + 88);\nv4 = sub_4142B1();\nv9 = sub_40639B(v4, v3);\nsub_41418F(\n*(_WORD *)(v10 + 72),\n21LL,\n*(_BYTE *)(v10 + 84),\n*(unsigned __int16 *)(v10 + 12),\n*(unsigned __int16 *)(v10 + 88),\nv9,\n*(unsigned __int16 *)(v10 + 138),\n0LL);\nv0 = 0LL;\nsub_41856D(v10, 0LL);\n}\nbreak;\ndefault:\ncontinue;\n}\n}\n}\n}\n\n\n\nQ:[v7,v8,v9,v10,sub_414D72,sub_4056B7,sub_4056EB,sub_40574B,sub_407EE8,sub_412F63,sub_4130C6,sub_41418F,sub_418A04,sub_4142B1,sub_40639B,sub_4057C3,sub_415675,sub_41856D,]\nAssistant: ", "hints": "[]", "response": "{'v7': 'it', 'v8': 'new_credits', 'v9': 'mps', 'v10': 'channel', 'sub_414D72': 'l2cap_run_le_data_channels', 'sub_4056B7': 'btstack_linked_list_iterator_init', 'sub_4056EB': 'btstack_linked_list_iterator_has_next', 'sub_40574B': 'btstack_linked_list_iterator_next', 'sub_407EE8': 'hci_can_send_acl_packet_now', 'sub_412F63': 'hci_dump_log', 'sub_4130C6': 'l2cap_next_sig_id', 'sub_41418F': 'l2cap_send_le_signaling_packet', 'sub_418A04': 'l2cap_le_finialize_channel_close', 'sub_4142B1': 'l2cap_max_le_mtu', 'sub_40639B': 'btstack_min', 'sub_4057C3': 'btstack_linked_list_iterator_remove', 'sub_415675': 'l2cap_free_channel_entry', 'sub_41856D': 'l2cap_emit_le_channel_opened'}"}
LZ4_compress_limitedOutput
ca8e612d3fd0fdfbb7d379738cbd55f8d41d34510beb9e95c96b381a701a295d
dinhvh
kvdb
NA
int LZ4_compress_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize) { #if (HEAPMODE) void* ctx = ALLOCATOR(LZ4_STREAMSIZE_U64, 8); /* Aligned on 8-bytes boundaries */ #else U64 ctx[LZ4_STREAMSIZE_U64] = {0}; /* Ensure data is aligned on 8-bytes boundaries */ #endif int result; if (inputSize < LZ4_64Klimit) result = LZ4_compress_generic((void*)ctx, source, dest, inputSize, maxOutputSize, limitedOutput, byU16, noDict, noDictIssue); else result = LZ4_compress_generic((void*)ctx, source, dest, inputSize, maxOutputSize, limitedOutput, LZ4_64bits() ? byU32 : byPtr, noDict, noDictIssue); #if (HEAPMODE) FREEMEM(ctx); #endif return result; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40223E", "function_addr": 4203070, "binary_name": "ca8e612d3fd0fdfbb7d379738cbd55f8d41d34510beb9e95c96b381a701a295d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 4050h"], [3, "mov [rbp+var_4038], rdi"], [4, "mov [rbp+var_4040], rsi"], [5, "mov [rbp+var_4044], edx"], [6, "mov [rbp+var_4048], ecx"], [7, "lea rax, [rbp+s]"], [8, "mov edx, 4020h"], [9, "mov esi, 0"], [10, "mov rdi, rax"], [11, "call _memset"], [12, "mov eax, 1000Bh"], [13, "cmp [rbp+var_4044], eax"], [14, "jge short loc_4022CE"], [15, "mov edi, [rbp+var_4048]"], [16, "mov ecx, [rbp+var_4044]"], [17, "mov rdx, [rbp+var_4040]"], [18, "mov rsi, [rbp+var_4038]"], [19, "lea rax, [rbp+s]"], [20, "sub rsp, 8"], [21, "push 0"], [22, "push 0"], [23, "push 2"], [24, "mov r9d, 1"], [25, "mov r8d, edi"], [26, "mov rdi, rax"], [27, "call sub_401857"], [28, "add rsp, 20h"], [29, "mov [rbp+var_4], eax"], [30, "jmp short loc_40231B"], [31, "call sub_4012A2"], [32, "test eax, eax"], [33, "setnz al"], [34, "movzx edi, al"], [35, "mov r8d, [rbp+var_4048]"], [36, "mov ecx, [rbp+var_4044]"], [37, "mov rdx, [rbp+var_4040]"], [38, "mov rsi, [rbp+var_4038]"], [39, "lea rax, [rbp+s]"], [40, "sub rsp, 8"], [41, "push 0"], [42, "push 0"], [43, "push rdi"], [44, "mov r9d, 1"], [45, "mov rdi, rax"], [46, "call sub_401857"], [47, "add rsp, 20h"], [48, "mov [rbp+var_4], eax"], [49, "mov eax, [rbp+var_4]"], [50, "leave"], [51, "retn"]], "data_dep": [[10, 7], [13, 5], [13, 12], [14, 13], [15, 6], [16, 5], [17, 4], [18, 3], [19, 12], [20, 2], [25, 15], [26, 19], [28, 20], [29, 27], [32, 31], [33, 32], [34, 33], [35, 6], [36, 5], [37, 4], [38, 3], [39, 33], [40, 2], [43, 34], [45, 39], [47, 40], [48, 46], [49, 29], [49, 48], [51, 49]]}
{"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/ca8e612d3fd0fdfbb7d379738cbd55f8d41d34510beb9e95c96b381a701a295d_ca8e612d3fd0fdfbb7d379738cbd55f8d41d34510beb9e95c96b381a701a295d.jsonl.gz", "strip_func_name": "sub_40223E", "query": "\n\n\n__int64 __fastcall sub_40223E(unsigned int *a1, _BYTE *a2, int a3, unsigned int a4)\n{\nint v4; // eax\nchar s[16428]; // [rsp+20h] [rbp-4030h] BYREF\n\nmemset(s, 0, 0x4020uLL);\nif ( a3 < 65547 )\nreturn (unsigned int)sub_401857((__int64)s, a1, a2, a3, a4, 1, 2u, 0, 0);\nv4 = sub_4012A2();\nreturn (unsigned int)sub_401857((__int64)s, a1, a2, a3, a4, 1, v4 != 0, 0, 0);\n}\n\n\n\nQ:[a3,a4,a1,a2,s,sub_40223E,sub_401857,sub_4012A2,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'inputSize', 'a4': 'maxOutputSize', 'a1': 'source', 'a2': 'dest', 's': 'ctx', 'sub_40223E': 'LZ4_compress_limitedOutput', 'sub_401857': 'LZ4_compress_generic', 'sub_4012A2': 'LZ4_64bits'}"}
SelectCursTrace
42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48
RTimothyEdwards
irsim
NA
public void SelectCursTrace( y ) Coord y; { BBox b; XEvent ev; Trptr new, select; if( traces.disp == 0 or tims.cursor < tims.first or tims.cursor > tims.last ) return; b.left = cursorBox.left + 1; b.right = cursorBox.right - 1; if( (select = GetYTrace( y )) ) { b.top = select->top - 1; b.bot = select->bot + 1; OutlineBox( window, b, gcs.black ); } GrabMouse( window, ButtonPressMask | ButtonMotionMask | ButtonReleaseMask, None ); do { XNextEvent( display, &ev ); if( ev.type == MotionNotify ) new = GetYTrace( ev.xmotion.y ); else if( ev.type == ButtonRelease ) new = GetYTrace( ev.xbutton.y ); else continue; if( select != new ) { if( select ) OutlineBox( window, b, gcs.white ); if( new ) { b.top = new->top - 1; b.bot = new->bot + 1; OutlineBox( window, b, gcs.black ); } select = new; } } while( ev.type != ButtonRelease ); XUngrabPointer( display, CurrentTime ); XFlush( display ); if( select ) { OutlineBox( window, b, gcs.white ); ExpandCursVal( select ); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4075EF", "function_addr": 4224495, "binary_name": "42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0F0h"], [3, "mov [rbp+var_E4], edi"], [4, "mov rax, offset unk_452C80"], [5, "mov eax, [rax+4]"], [6, "test eax, eax"], [7, "jz loc_4078FC"], [8, "mov rax, offset unk_452C40"], [9, "mov rdx, [rax+28h]"], [10, "mov rax, offset unk_452C40"], [11, "mov rax, [rax]"], [12, "cmp rdx, rax"], [13, "jb loc_4078FC"], [14, "mov rax, offset unk_452C40"], [15, "mov rdx, [rax+28h]"], [16, "mov rax, offset unk_452C40"], [17, "mov rax, [rax+8]"], [18, "cmp rdx, rax"], [19, "ja loc_4078FC"], [20, "mov rax, offset unk_452630"], [21, "mov eax, [rax+4]"], [22, "add eax, 1"], [23, "mov [rbp+var_1C], eax"], [24, "mov rax, offset unk_452630"], [25, "mov eax, [rax+0Ch]"], [26, "sub eax, 1"], [27, "mov [rbp+var_14], eax"], [28, "mov eax, [rbp+var_E4]"], [29, "mov edi, eax"], [30, "mov eax, 0"], [31, "call sub_406883"], [32, "mov [rbp+var_10], rax"], [33, "cmp [rbp+var_10], 0"], [34, "jz short loc_4076F5"], [35, "mov rax, [rbp+var_10]"], [36, "mov eax, [rax+1Ch]"], [37, "sub eax, 1"], [38, "mov [rbp+var_20], eax"], [39, "mov rax, [rbp+var_10]"], [40, "mov eax, [rax+20h]"], [41, "add eax, 1"], [42, "mov [rbp+var_18], eax"], [43, "mov eax, [rbp+var_18]"], [44, "mov edx, [rbp+var_20]"], [45, "sub eax, edx"], [46, "mov r8d, eax"], [47, "mov eax, [rbp+var_14]"], [48, "mov edx, [rbp+var_1C]"], [49, "sub eax, edx"], [50, "mov r9d, eax"], [51, "mov edi, [rbp+var_20]"], [52, "mov ecx, [rbp+var_1C]"], [53, "mov rax, offset unk_452740"], [54, "mov rdx, [rax]"], [55, "mov rax, offset unk_452C10"], [56, "mov rsi, [rax]"], [57, "mov rax, offset unk_452C00"], [58, "mov rax, [rax]"], [59, "sub rsp, 8"], [60, "push r8"], [61, "mov r8d, edi"], [62, "mov rdi, rax"], [63, "call _XDrawRectangle"], [64, "add rsp, 10h"], [65, "mov rax, offset unk_452C10"], [66, "mov rax, [rax]"], [67, "mov edx, 0"], [68, "mov esi, 200Ch"], [69, "mov rdi, rax"], [70, "mov eax, 0"], [71, "call sub_407B33"], [72, "mov rax, offset unk_452C00"], [73, "mov rax, [rax]"], [74, "lea rdx, [rbp+var_E0]"], [75, "mov rsi, rdx"], [76, "mov rdi, rax"], [77, "call _XNextEvent"], [78, "mov eax, dword ptr [rbp+var_E0]"], [79, "cmp eax, 6"], [80, "jnz short loc_407755"], [81, "mov eax, dword ptr [rbp+var_E0+44h]"], [82, "mov edi, eax"], [83, "mov eax, 0"], [84, "call sub_406883"], [85, "mov [rbp+var_8], rax"], [86, "jmp short loc_40777A"], [87, "mov eax, dword ptr [rbp+var_E0]"], [88, "cmp eax, 5"], [89, "jnz loc_407859"], [90, "mov eax, dword ptr [rbp+var_E0+44h]"], [91, "mov edi, eax"], [92, "mov eax, 0"], [93, "call sub_406883"], [94, "mov [rbp+var_8], rax"], [95, "mov rax, [rbp+var_10]"], [96, "cmp rax, [rbp+var_8]"], [97, "jz loc_40785A"], [98, "cmp [rbp+var_10], 0"], [99, "jz short loc_4077DF"], [100, "mov eax, [rbp+var_18]"], [101, "mov edx, [rbp+var_20]"], [102, "sub eax, edx"], [103, "mov r8d, eax"], [104, "mov eax, [rbp+var_14]"], [105, "mov edx, [rbp+var_1C]"], [106, "sub eax, edx"], [107, "mov r9d, eax"], [108, "mov edi, [rbp+var_20]"], [109, "mov ecx, [rbp+var_1C]"], [110, "mov rax, offset unk_452740"], [111, "mov rdx, [rax+8]"], [112, "mov rax, offset unk_452C10"], [113, "mov rsi, [rax]"], [114, "mov rax, offset unk_452C00"], [115, "mov rax, [rax]"], [116, "sub rsp, 8"], [117, "push r8"], [118, "mov r8d, edi"], [119, "mov rdi, rax"], [120, "call _XDrawRectangle"], [121, "add rsp, 10h"], [122, "cmp [rbp+var_8], 0"], [123, "jz short loc_40784F"], [124, "mov rax, [rbp+var_8]"], [125, "mov eax, [rax+1Ch]"], [126, "sub eax, 1"], [127, "mov [rbp+var_20], eax"], [128, "mov rax, [rbp+var_8]"], [129, "mov eax, [rax+20h]"], [130, "add eax, 1"], [131, "mov [rbp+var_18], eax"], [132, "mov eax, [rbp+var_18]"], [133, "mov edx, [rbp+var_20]"], [134, "sub eax, edx"], [135, "mov r8d, eax"], [136, "mov eax, [rbp+var_14]"], [137, "mov edx, [rbp+var_1C]"], [138, "sub eax, edx"], [139, "mov r9d, eax"], [140, "mov edi, [rbp+var_20]"], [141, "mov ecx, [rbp+var_1C]"], [142, "mov rax, offset unk_452740"], [143, "mov rdx, [rax]"], [144, "mov rax, offset unk_452C10"], [145, "mov rsi, [rax]"], [146, "mov rax, offset unk_452C00"], [147, "mov rax, [rax]"], [148, "sub rsp, 8"], [149, "push r8"], [150, "mov r8d, edi"], [151, "mov rdi, rax"], [152, "call _XDrawRectangle"], [153, "add rsp, 10h"], [154, "mov rax, [rbp+var_8]"], [155, "mov [rbp+var_10], rax"], [156, "jmp short loc_40785A"], [157, "nop"], [158, "mov eax, dword ptr [rbp+var_E0]"], [159, "cmp eax, 5"], [160, "jnz loc_407716"], [161, "mov rax, offset unk_452C00"], [162, "mov rax, [rax]"], [163, "mov esi, 0"], [164, "mov rdi, rax"], [165, "call _XUngrabPointer"], [166, "mov rax, offset unk_452C00"], [167, "mov rax, [rax]"], [168, "mov rdi, rax"], [169, "call _XFlush"], [170, "cmp [rbp+var_10], 0"], [171, "jz short locret_4078FD"], [172, "mov eax, [rbp+var_18]"], [173, "mov edx, [rbp+var_20]"], [174, "sub eax, edx"], [175, "mov r8d, eax"], [176, "mov eax, [rbp+var_14]"], [177, "mov edx, [rbp+var_1C]"], [178, "sub eax, edx"], [179, "mov r9d, eax"], [180, "mov edi, [rbp+var_20]"], [181, "mov ecx, [rbp+var_1C]"], [182, "mov rax, offset unk_452740"], [183, "mov rdx, [rax+8]"], [184, "mov rax, offset unk_452C10"], [185, "mov rsi, [rax]"], [186, "mov rax, offset unk_452C00"], [187, "mov rax, [rax]"], [188, "sub rsp, 8"], [189, "push r8"], [190, "mov r8d, edi"], [191, "mov rdi, rax"], [192, "call _XDrawRectangle"], [193, "add rsp, 10h"], [194, "mov rax, [rbp+var_10]"], [195, "mov rdi, rax"], [196, "mov eax, 0"], [197, "call sub_414C93"], [198, "jmp short locret_4078FD"], [199, "nop"], [200, "leave"], [201, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [9, 8], [11, 10], [12, 9], [12, 11], [13, 12], [15, 14], [17, 16], [18, 17], [18, 15], [19, 18], [21, 20], [22, 21], [23, 22], [25, 24], [26, 25], [27, 26], [28, 3], [29, 28], [32, 31], [33, 32], [34, 33], [35, 32], [36, 35], [37, 36], [38, 37], [39, 32], [40, 39], [41, 40], [42, 41], [43, 42], [44, 38], [45, 43], [45, 44], [46, 45], [47, 27], [48, 23], [49, 48], [49, 47], [50, 49], [51, 38], [52, 23], [54, 53], [56, 55], [58, 57], [59, 2], [60, 46], [61, 51], [62, 58], [64, 59], [66, 65], [69, 66], [73, 72], [74, 143], [74, 111], [74, 74], [74, 67], [75, 74], [76, 73], [79, 78], [80, 79], [82, 81], [85, 84], [88, 87], [89, 88], [91, 90], [94, 93], [95, 32], [95, 155], [96, 95], [96, 85], [96, 94], [97, 96], [98, 32], [98, 155], [99, 98], [100, 131], [100, 42], [101, 127], [101, 38], [102, 100], [102, 101], [103, 102], [104, 27], [105, 23], [106, 104], [106, 105], [107, 106], [108, 127], [108, 38], [109, 23], [111, 110], [113, 112], [115, 114], [116, 153], [116, 64], [116, 2], [116, 121], [117, 103], [118, 108], [119, 115], [121, 116], [122, 85], [122, 94], [123, 122], [124, 85], [124, 94], [125, 124], [126, 125], [127, 126], [128, 85], [128, 94], [129, 128], [130, 129], [131, 130], [132, 131], [133, 127], [134, 133], [134, 132], [135, 134], [136, 27], [137, 23], [138, 137], [138, 136], [139, 138], [140, 127], [141, 23], [143, 142], [145, 144], [147, 146], [148, 64], [148, 121], [148, 153], [148, 2], [149, 135], [150, 140], [151, 147], [153, 148], [154, 85], [154, 94], [155, 154], [159, 158], [160, 159], [162, 161], [164, 162], [167, 166], [168, 167], [170, 32], [170, 155], [171, 170], [172, 131], [172, 42], [173, 38], [173, 127], [174, 173], [174, 172], [175, 174], [176, 27], [177, 23], [178, 177], [178, 176], [179, 178], [180, 127], [180, 38], [181, 23], [183, 182], [185, 184], [187, 186], [188, 64], [188, 121], [188, 153], [188, 2], [189, 175], [190, 180], [191, 187], [193, 188], [194, 32], [194, 155], [195, 194], [201, 6], [201, 17], [201, 197], [201, 169], [201, 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/42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48_42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48.jsonl.gz", "strip_func_name": "sub_4075EF", "query": "\n\n\nint __fastcall sub_4075EF(int a1)\n{\nunsigned __int64 v1; // rax\nXEvent v3; // [rsp+10h] [rbp-E0h] BYREF\nint v4; // [rsp+D0h] [rbp-20h]\nint v5; // [rsp+D4h] [rbp-1Ch]\nint v6; // [rsp+D8h] [rbp-18h]\nint v7; // [rsp+DCh] [rbp-14h]\n__int64 *v8; // [rsp+E0h] [rbp-10h]\n__int64 *v9; // [rsp+E8h] [rbp-8h]\n\nLODWORD(v1) = HIDWORD(qword_452C80[0]);\nif ( (_DWORD)v1 )\n{\nLODWORD(v1) = qword_452C40[0];\nif ( qword_452C40[5] >= qword_452C40[0] )\n{\nv1 = qword_452C40[1];\nif ( qword_452C40[5] <= v1 )\n{\nv5 = dword_452630[1] + 1;\nv7 = dword_452630[3] - 1;\nv8 = sub_406883(a1);\nif ( v8 )\n{\nv4 = *((_DWORD *)v8 + 7) - 1;\nv6 = *((_DWORD *)v8 + 8) + 1;\nXDrawRectangle(qword_452C00, qword_452C10, (GC)qword_452740[0], v5, v4, v7 - v5, v6 - v4);\n}\nsub_407B33(qword_452C10, 8204LL, 0LL);\ndo\n{\nXNextEvent(qword_452C00, &v3);\nif ( v3.type == 6 || v3.type == 5 )\n{\nv9 = sub_406883(v3.xkey.y);\nif ( v8 != v9 )\n{\nif ( v8 )\nXDrawRectangle(qword_452C00, qword_452C10, (GC)qword_452740[1], v5, v4, v7 - v5, v6 - v4);\nif ( v9 )\n{\nv4 = *((_DWORD *)v9 + 7) - 1;\nv6 = *((_DWORD *)v9 + 8) + 1;\nXDrawRectangle(qword_452C00, qword_452C10, (GC)qword_452740[0], v5, v4, v7 - v5, v6 - v4);\n}\nv8 = v9;\n}\n}\n}\nwhile ( v3.type != 5 );\nXUngrabPointer(qword_452C00, 0LL);\nLODWORD(v1) = XFlush(qword_452C00);\nif ( v8 )\n{\nXDrawRectangle(qword_452C00, qword_452C10, (GC)qword_452740[1], v5, v4, v7 - v5, v6 - v4);\nLODWORD(v1) = sub_414C93(v8);\n}\n}\n}\n}\nreturn v1;\n}\n\n\n\nQ:[a1,v3,v4,v8,v9,sub_4075EF,sub_406883,sub_407B33,sub_414C93,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'y', 'v3': 'ev', 'v4': 'b', 'v8': 'select', 'v9': 'newa', 'sub_4075EF': 'SelectCursTrace', 'sub_406883': 'GetYTrace', 'sub_407B33': 'GrabMouse', 'sub_414C93': 'ExpandCursVal'}"}
acl__check_single
115d9c9332c0b93740f4adf88b6dad4e3498e5c049937cf97438444fd59ff5ca
DLTcollab
tangle-accelerator
NA
static int acl__check_single(struct mosquitto__auth_plugin_config *auth_plugin, struct mosquitto *context, struct mosquitto_acl_msg *msg, int access) { const char *username; const char *topic = msg->topic; username = mosquitto_client_username(context); if(auth_plugin->deny_special_chars == true){ /* Check whether the client id or username contains a +, # or / and if * so deny access. * * Do this check for every message regardless, we have to protect the * plugins against possible pattern based attacks. */ if(username && strpbrk(username, "+#")){ log__printf(NULL, MOSQ_LOG_NOTICE, "ACL denying access to client with dangerous username \"%s\"", username); return MOSQ_ERR_ACL_DENIED; } if(context->id && strpbrk(context->id, "+#")){ log__printf(NULL, MOSQ_LOG_NOTICE, "ACL denying access to client with dangerous client id \"%s\"", context->id); return MOSQ_ERR_ACL_DENIED; } } if(auth_plugin->plugin.version == 4){ return auth_plugin->plugin.acl_check_v4(auth_plugin->plugin.user_data, access, context, msg); }else if(auth_plugin->plugin.version == 3){ return auth_plugin->plugin.acl_check_v3(auth_plugin->plugin.user_data, access, context, msg); }else if(auth_plugin->plugin.version == 2){ if(access == MOSQ_ACL_SUBSCRIBE){ return MOSQ_ERR_SUCCESS; } return auth_plugin->plugin.acl_check_v2(auth_plugin->plugin.user_data, context->id, username, topic, access); }else{ return MOSQ_ERR_INVAL; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42FEEB", "function_addr": 4390635, "binary_name": "115d9c9332c0b93740f4adf88b6dad4e3498e5c049937cf97438444fd59ff5ca.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 [rbp+var_2C], ecx"], [7, "mov rax, [rbp+var_28]"], [8, "mov rax, [rax]"], [9, "mov [rbp+var_8], rax"], [10, "mov rax, [rbp+var_20]"], [11, "mov rdi, rax"], [12, "call mosquitto_client_username"], [13, "mov [rbp+s], rax"], [14, "mov rax, [rbp+var_18]"], [15, "movzx eax, byte ptr [rax+14h]"], [16, "test al, al"], [17, "jz loc_42FFC9"], [18, "cmp [rbp+s], 0"], [19, "jz short loc_42FF74"], [20, "mov rax, [rbp+s]"], [21, "mov esi, offset asc_448F84"], [22, "mov rdi, rax"], [23, "call _strpbrk"], [24, "test rax, rax"], [25, "jz short loc_42FF74"], [26, "mov rax, [rbp+s]"], [27, "mov rcx, rax"], [28, "mov edx, offset aAclDenyingAcce"], [29, "mov esi, 2"], [30, "mov edi, 0"], [31, "mov eax, 0"], [32, "call sub_41E286"], [33, "mov eax, 0Ch"], [34, "jmp locret_430085"], [35, "mov rax, [rbp+var_20]"], [36, "mov rax, [rax+10h]"], [37, "test rax, rax"], [38, "jz short loc_42FFC9"], [39, "mov rax, [rbp+var_20]"], [40, "mov rax, [rax+10h]"], [41, "mov esi, offset asc_448F84"], [42, "mov rdi, rax"], [43, "call _strpbrk"], [44, "test rax, rax"], [45, "jz short loc_42FFC9"], [46, "mov rax, [rbp+var_20]"], [47, "mov rax, [rax+10h]"], [48, "mov rcx, rax"], [49, "mov edx, offset aAclDenyingAcce_0"], [50, "mov esi, 2"], [51, "mov edi, 0"], [52, "mov eax, 0"], [53, "call sub_41E286"], [54, "mov eax, 0Ch"], [55, "jmp locret_430085"], [56, "mov rax, [rbp+var_18]"], [57, "mov eax, [rax+0E8h]"], [58, "cmp eax, 4"], [59, "jnz short loc_42FFFE"], [60, "mov rax, [rbp+var_18]"], [61, "mov r8, [rax+50h]"], [62, "mov rax, [rbp+var_18]"], [63, "mov rax, [rax+20h]"], [64, "mov rcx, [rbp+var_28]"], [65, "mov rdx, [rbp+var_20]"], [66, "mov esi, [rbp+var_2C]"], [67, "mov rdi, rax"], [68, "call r8"], [69, "jmp locret_430085"], [70, "mov rax, [rbp+var_18]"], [71, "mov eax, [rax+0E8h]"], [72, "cmp eax, 3"], [73, "jnz short loc_430033"], [74, "mov rax, [rbp+var_18]"], [75, "mov r8, [rax+98h]"], [76, "mov rax, [rbp+var_18]"], [77, "mov rax, [rax+20h]"], [78, "mov rcx, [rbp+var_28]"], [79, "mov rdx, [rbp+var_20]"], [80, "mov esi, [rbp+var_2C]"], [81, "mov rdi, rax"], [82, "call r8"], [83, "jmp short locret_430085"], [84, "mov rax, [rbp+var_18]"], [85, "mov eax, [rax+0E8h]"], [86, "cmp eax, 2"], [87, "jnz short loc_430080"], [88, "cmp [rbp+var_2C], 4"], [89, "jnz short loc_43004F"], [90, "mov eax, 0"], [91, "jmp short locret_430085"], [92, "mov rax, [rbp+var_18]"], [93, "mov r9, [rax+0D0h]"], [94, "mov rax, [rbp+var_20]"], [95, "mov rsi, [rax+10h]"], [96, "mov rax, [rbp+var_18]"], [97, "mov rax, [rax+20h]"], [98, "mov edi, [rbp+var_2C]"], [99, "mov rcx, [rbp+var_8]"], [100, "mov rdx, [rbp+s]"], [101, "mov r8d, edi"], [102, "mov rdi, rax"], [103, "call r9"], [104, "jmp short locret_430085"], [105, "mov eax, 3"], [106, "leave"], [107, "retn"]], "data_dep": [[7, 5], [8, 7], [9, 8], [10, 4], [11, 10], [13, 12], [14, 3], [15, 14], [16, 15], [17, 16], [18, 13], [19, 18], [20, 13], [22, 20], [24, 23], [25, 24], [26, 13], [27, 26], [35, 4], [36, 35], [37, 36], [38, 37], [39, 4], [40, 39], [42, 40], [44, 43], [45, 44], [46, 4], [47, 46], [48, 47], [56, 3], [57, 56], [58, 57], [59, 58], [60, 3], [61, 60], [62, 3], [63, 62], [64, 5], [65, 4], [66, 6], [67, 63], [68, 61], [70, 3], [71, 70], [72, 71], [73, 72], [74, 3], [75, 74], [76, 3], [77, 76], [78, 5], [79, 4], [80, 6], [81, 77], [82, 75], [84, 3], [85, 84], [86, 85], [87, 86], [88, 6], [89, 88], [92, 3], [93, 92], [94, 4], [95, 94], [96, 3], [97, 96], [98, 6], [99, 9], [100, 13], [101, 98], [102, 97], [103, 93], [107, 33], [107, 90], [107, 103], [107, 105], [107, 82], [107, 68], [107, 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/115d9c9332c0b93740f4adf88b6dad4e3498e5c049937cf97438444fd59ff5ca_115d9c9332c0b93740f4adf88b6dad4e3498e5c049937cf97438444fd59ff5ca.jsonl.gz", "strip_func_name": "sub_42FEEB", "query": "\n\n\n__int64 __fastcall sub_42FEEB(__int64 a1, __int64 a2, __int64 *a3, unsigned int a4)\n{\n__int64 v4; // r8\n__int64 v5; // r9\n__int64 result; // rax\n__int64 v7; // r8\n__int64 v8; // r9\nchar *s; // [rsp+20h] [rbp-10h]\n__int64 v12; // [rsp+28h] [rbp-8h]\n\nv12 = *a3;\ns = (char *)mosquitto_client_username(a2);\nif ( !*(_BYTE *)(a1 + 20) )\ngoto LABEL_8;\nif ( s && strpbrk(s, \"+#\") )\n{\nsub_41E286(0LL, 2, \"ACL denying access to client with dangerous username \\\"%s\\\"\", (__int64)s, v4, v5);\nreturn 12LL;\n}\nif ( *(_QWORD *)(a2 + 16) && strpbrk(*(const char **)(a2 + 16), \"+#\") )\n{\nsub_41E286(0LL, 2, \"ACL denying access to client with dangerous client id \\\"%s\\\"\", *(_QWORD *)(a2 + 16), v7, v8);\nresult = 12LL;\n}\nelse\n{\nLABEL_8:\nswitch ( *(_DWORD *)(a1 + 232) )\n{\ncase 4:\nresult = (*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64, __int64 *))(a1 + 80))(\n*(_QWORD *)(a1 + 32),\na4,\na2,\na3);\nbreak;\ncase 3:\nresult = (*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64, __int64 *))(a1 + 152))(\n*(_QWORD *)(a1 + 32),\na4,\na2,\na3);\nbreak;\ncase 2:\nif ( a4 == 4 )\nresult = 0LL;\nelse\nresult = (*(__int64 (__fastcall **)(_QWORD, _QWORD, char *, __int64, _QWORD))(a1 + 208))(\n*(_QWORD *)(a1 + 32),\n*(_QWORD *)(a2 + 16),\ns,\nv12,\na4);\nbreak;\ndefault:\nresult = 3LL;\nbreak;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,s,v12,sub_42FEEB,sub_41E286,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'msg', 'a4': 'access', 'a1': 'auth_plugin', 'a2': 'context', 's': 'username', 'v12': 'topic', 'sub_42FEEB': 'acl__check_single', 'sub_41E286': 'log__printf'}"}
delete_files
5f16b3afd272d78f573890cec07ced5d004f104db2d85b77032114b3d5789924
AFLplusplus
AFLplusplus
NA
static u8 delete_files(u8 *path, u8 *prefix) { DIR *d; struct dirent *d_ent; d = opendir(path); if (!d) { return 0; } while ((d_ent = readdir(d))) { if (d_ent->d_name[0] != '.' && (!prefix || !strncmp(d_ent->d_name, prefix, strlen(prefix)))) { u8 *fname = alloc_printf("%s/%s", path, d_ent->d_name); if (unlink(fname)) { PFATAL("Unable to delete '%s'", fname); } ck_free(fname); } } closedir(d); return !!rmdir(path); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43923B", "function_addr": 4428347, "binary_name": "5f16b3afd272d78f573890cec07ced5d004f104db2d85b77032114b3d5789924.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+name], rdi"], [4, "mov [rbp+s], rsi"], [5, "mov rax, [rbp+name]"], [6, "mov rdi, rax"], [7, "call _opendir"], [8, "mov [rbp+dirp], rax"], [9, "cmp [rbp+dirp], 0"], [10, "jnz loc_43940C"], [11, "mov eax, 0"], [12, "jmp locret_439444"], [13, "mov rax, [rbp+var_10]"], [14, "movzx eax, byte ptr [rax+13h]"], [15, "cmp al, 2Eh "], [16, "jz loc_43940C"], [17, "cmp [rbp+s], 0"], [18, "jz short loc_4392B5"], [19, "mov rax, [rbp+s]"], [20, "mov rdi, rax"], [21, "call _strlen"], [22, "mov rdx, rax"], [23, "mov rax, [rbp+var_10]"], [24, "lea rcx, [rax+13h]"], [25, "mov rax, [rbp+s]"], [26, "mov rsi, rax"], [27, "mov rdi, rcx"], [28, "call _strncmp"], [29, "test eax, eax"], [30, "jnz loc_43940C"], [31, "mov rax, [rbp+var_10]"], [32, "lea rdx, [rax+13h]"], [33, "mov rax, [rbp+name]"], [34, "mov r8, rdx"], [35, "mov rcx, rax"], [36, "lea rdx, aSS_3"], [37, "mov esi, 0"], [38, "mov edi, 0"], [39, "mov eax, 0"], [40, "call _snprintf"], [41, "mov [rbp+var_14], eax"], [42, "cmp [rbp+var_14], 0"], [43, "jns short loc_43932A"], [44, "lea rdi, byte_465740"], [45, "mov eax, 0"], [46, "call _printf"], [47, "mov ecx, 5E5h"], [48, "lea rdx, aSrcAflFuzzInit"], [49, "lea rsi, aDeleteFiles"], [50, "lea rdi, a191mLocation0m_8"], [51, "mov eax, 0"], [52, "call _printf"], [53, "mov edi, 1"], [54, "call _exit"], [55, "mov eax, [rbp+var_14]"], [56, "add eax, 1"], [57, "mov edi, eax"], [58, "call sub_435710"], [59, "mov [rbp+var_20], rax"], [60, "mov rax, [rbp+var_10]"], [61, "lea rcx, [rax+13h]"], [62, "mov eax, [rbp+var_14]"], [63, "add eax, 1"], [64, "movsxd rsi, eax"], [65, "mov rdx, [rbp+name]"], [66, "mov rax, [rbp+var_20]"], [67, "mov r8, rcx"], [68, "mov rcx, rdx"], [69, "lea rdx, aSS_3"], [70, "mov rdi, rax"], [71, "mov eax, 0"], [72, "call _snprintf"], [73, "mov rax, [rbp+var_20]"], [74, "mov [rbp+var_28], rax"], [75, "mov rax, [rbp+var_28]"], [76, "mov rdi, rax"], [77, "call _unlink"], [78, "test eax, eax"], [79, "jz short loc_439400"], [80, "mov rax, cs:stdout_ptr"], [81, "mov rax, [rax]"], [82, "mov rdi, rax"], [83, "call _fflush"], [84, "mov rax, [rbp+var_28]"], [85, "mov rsi, rax"], [86, "lea rdi, byte_466C58"], [87, "mov eax, 0"], [88, "call _printf"], [89, "mov ecx, 5E6h"], [90, "lea rdx, aSrcAflFuzzInit"], [91, "lea rsi, aDeleteFiles"], [92, "lea rdi, a191mStopLocati_13"], [93, "mov eax, 0"], [94, "call _printf"], [95, "call ___errno_location"], [96, "mov eax, [rax]"], [97, "mov edi, eax"], [98, "call _strerror"], [99, "mov rsi, rax"], [100, "lea rdi, a191mOsMessage0_6"], [101, "mov eax, 0"], [102, "call _printf"], [103, "mov edi, 1"], [104, "call _exit"], [105, "mov rax, [rbp+var_28]"], [106, "mov rdi, rax"], [107, "call sub_43574C"], [108, "mov rax, [rbp+dirp]"], [109, "mov rdi, rax"], [110, "call _readdir64"], [111, "mov [rbp+var_10], rax"], [112, "cmp [rbp+var_10], 0"], [113, "jnz loc_439270"], [114, "mov rax, [rbp+dirp]"], [115, "mov rdi, rax"], [116, "call _closedir"], [117, "mov rax, [rbp+name]"], [118, "mov rdi, rax"], [119, "call _rmdir"], [120, "test eax, eax"], [121, "setnz al"], [122, "leave"], [123, "retn"]], "data_dep": [[5, 3], [6, 5], [8, 7], [9, 8], [10, 9], [13, 111], [14, 13], [15, 14], [16, 15], [17, 4], [18, 17], [19, 4], [20, 19], [22, 21], [23, 111], [24, 23], [24, 68], [24, 24], [25, 4], [26, 25], [27, 24], [29, 28], [30, 29], [31, 111], [32, 69], [32, 22], [32, 31], [33, 3], [34, 32], [35, 33], [36, 32], [41, 40], [42, 41], [43, 42], [44, 38], [48, 36], [49, 37], [50, 44], [55, 41], [56, 55], [57, 56], [59, 58], [60, 111], [61, 35], [61, 60], [62, 41], [63, 62], [64, 63], [65, 3], [66, 59], [67, 61], [68, 65], [69, 65], [70, 66], [73, 59], [74, 73], [75, 74], [76, 75], [78, 77], [79, 78], [81, 80], [82, 81], [84, 74], [85, 84], [86, 82], [90, 69], [91, 85], [92, 86], [96, 95], [97, 96], [99, 98], [100, 97], [105, 74], [106, 105], [108, 8], [109, 108], [111, 110], [112, 111], [113, 112], [114, 8], [115, 114], [117, 3], [118, 117], [120, 119], [121, 120], [123, 121], [123, 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/5f16b3afd272d78f573890cec07ced5d004f104db2d85b77032114b3d5789924_5f16b3afd272d78f573890cec07ced5d004f104db2d85b77032114b3d5789924.jsonl.gz", "strip_func_name": "sub_43923B", "query": "\n\n\nbool __fastcall sub_43923B(const char *a1, const char *a2)\n{\nsize_t v3; // rax\nint *v4; // rax\nchar *v5; // rax\nchar *v6; // [rsp+20h] [rbp-20h]\nint v7; // [rsp+2Ch] [rbp-14h]\nstruct dirent64 *v8; // [rsp+30h] [rbp-10h]\nDIR *dirp; // [rsp+38h] [rbp-8h]\n\ndirp = opendir(a1);\nif ( !dirp )\nreturn 0;\nwhile ( 1 )\n{\nv8 = readdir64(dirp);\nif ( !v8 )\nbreak;\nif ( v8->d_name[0] != 46 )\n{\nif ( !a2 || (v3 = strlen(a2), !strncmp(v8->d_name, a2, v3)) )\n{\nv7 = snprintf(0LL, 0LL, \"%s/%s\", a1, v8->d_name);\nif ( v7 < 0 )\n{\nprintf(&byte_465740);\nprintf(\n\"\\x1B[1;91m\\n Location : \\x1B[0m%s(), %s:%u\\n\\n\",\n\"delete_files\",\n\"src/afl-fuzz-init.c\",\n1509LL);\nexit(1);\n}\nv6 = (char *)sub_435710(v7 + 1);\nsnprintf(v6, v7 + 1, \"%s/%s\", a1, v8->d_name);\nif ( unlink(v6) )\n{\nfflush(stdout);\nprintf(&byte_466C58, v6);\nprintf(\"\\x1B[1;91m\\n Stop location : \\x1B[0m%s(), %s:%u\\n\", \"delete_files\", \"src/afl-fuzz-init.c\", 1510LL);\nv4 = __errno_location();\nv5 = strerror(*v4);\nprintf(\"\\x1B[1;91m OS message : \\x1B[0m%s\\n\", v5);\nexit(1);\n}\nsub_43574C(v6);\n}\n}\n}\nclosedir(dirp);\nreturn rmdir(a1) != 0;\n}\n\n\n\nQ:[a1,a2,v6,v7,v8,dirp,sub_43923B,sub_435710,sub_43574C,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'path', 'a2': 'prefix', 'v6': '_tmp', 'v7': '_len', 'v8': 'd_ent', 'dirp': 'd', 'sub_43923B': 'delete_files', 'sub_435710': 'DFL_ck_alloc_5', 'sub_43574C': 'DFL_ck_free_4'}"}
parse_banner3
025286ef7fc4d4d9d3d73621818413ad52915f8d6b2e629a4854256ceec115ef
chroblert
AssetManage
NA
static void parse_banner3(struct Output *out, unsigned char *buf, size_t buf_length) { struct MasscanRecord record; /* * Parse the parts that are common to most records */ record.timestamp = buf[0]<<24 | buf[1]<<16 | buf[2]<<8 | buf[3]; record.ip = buf[4]<<24 | buf[5]<<16 | buf[6]<<8 | buf[7]; record.port = buf[8]<<8 | buf[9]; record.app_proto = buf[10]<<8 | buf[11]; if (out->when_scan_started == 0) out->when_scan_started = record.timestamp; /* * Now print the output */ output_report_banner( out, record.timestamp, record.ip, 6, /* this is always TCP */ record.port, record.app_proto, 0, /* ttl */ buf+12, (unsigned)buf_length-12 ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403F42", "function_addr": 4210498, "binary_name": "025286ef7fc4d4d9d3d73621818413ad52915f8d6b2e629a4854256ceec115ef.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 rax, [rbp+var_30]"], [7, "movzx eax, byte ptr [rax]"], [8, "movzx eax, al"], [9, "shl eax, 18h"], [10, "mov edx, eax"], [11, "mov rax, [rbp+var_30]"], [12, "add rax, 1"], [13, "movzx eax, byte ptr [rax]"], [14, "movzx eax, al"], [15, "shl eax, 10h"], [16, "or edx, eax"], [17, "mov rax, [rbp+var_30]"], [18, "add rax, 2"], [19, "movzx eax, byte ptr [rax]"], [20, "movzx eax, al"], [21, "shl eax, 8"], [22, "or edx, eax"], [23, "mov rax, [rbp+var_30]"], [24, "add rax, 3"], [25, "movzx eax, byte ptr [rax]"], [26, "movzx eax, al"], [27, "or eax, edx"], [28, "mov [rbp+var_20], eax"], [29, "mov rax, [rbp+var_30]"], [30, "add rax, 4"], [31, "movzx eax, byte ptr [rax]"], [32, "movzx eax, al"], [33, "shl eax, 18h"], [34, "mov edx, eax"], [35, "mov rax, [rbp+var_30]"], [36, "add rax, 5"], [37, "movzx eax, byte ptr [rax]"], [38, "movzx eax, al"], [39, "shl eax, 10h"], [40, "or edx, eax"], [41, "mov rax, [rbp+var_30]"], [42, "add rax, 6"], [43, "movzx eax, byte ptr [rax]"], [44, "movzx eax, al"], [45, "shl eax, 8"], [46, "or edx, eax"], [47, "mov rax, [rbp+var_30]"], [48, "add rax, 7"], [49, "movzx eax, byte ptr [rax]"], [50, "movzx eax, al"], [51, "or eax, edx"], [52, "mov [rbp+var_1C], eax"], [53, "mov rax, [rbp+var_30]"], [54, "add rax, 8"], [55, "movzx eax, byte ptr [rax]"], [56, "movzx eax, al"], [57, "shl eax, 8"], [58, "mov edx, eax"], [59, "mov rax, [rbp+var_30]"], [60, "add rax, 9"], [61, "movzx eax, byte ptr [rax]"], [62, "movzx eax, al"], [63, "or eax, edx"], [64, "mov [rbp+var_16], ax"], [65, "mov rax, [rbp+var_30]"], [66, "add rax, 0Ah"], [67, "movzx eax, byte ptr [rax]"], [68, "movzx eax, al"], [69, "shl eax, 8"], [70, "mov edx, eax"], [71, "mov rax, [rbp+var_30]"], [72, "add rax, 0Bh"], [73, "movzx eax, byte ptr [rax]"], [74, "movzx eax, al"], [75, "or eax, edx"], [76, "mov [rbp+var_C], eax"], [77, "mov rax, [rbp+var_28]"], [78, "mov rax, [rax+0E8h]"], [79, "test rax, rax"], [80, "jnz short loc_404057"], [81, "mov eax, [rbp+var_20]"], [82, "mov edx, eax"], [83, "mov rax, [rbp+var_28]"], [84, "mov [rax+0E8h], rdx"], [85, "mov rax, [rbp+var_38]"], [86, "lea esi, [rax-0Ch]"], [87, "mov rax, [rbp+var_30]"], [88, "lea rcx, [rax+0Ch]"], [89, "mov r8d, [rbp+var_C]"], [90, "movzx eax, [rbp+var_16]"], [91, "movzx edi, ax"], [92, "mov edx, [rbp+var_1C]"], [93, "mov eax, [rbp+var_20]"], [94, "mov r10d, eax"], [95, "mov rax, [rbp+var_28]"], [96, "sub rsp, 8"], [97, "push rsi"], [98, "push rcx"], [99, "push 0"], [100, "mov r9d, r8d"], [101, "mov r8d, edi"], [102, "mov ecx, 6"], [103, "mov rsi, r10"], [104, "mov rdi, rax"], [105, "call sub_416A4B"], [106, "add rsp, 20h"], [107, "nop"], [108, "leave"], [109, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [9, 8], [10, 9], [11, 4], [12, 11], [13, 12], [14, 13], [15, 14], [16, 15], [16, 10], [17, 4], [18, 17], [19, 18], [20, 19], [21, 20], [22, 21], [22, 16], [23, 4], [24, 23], [25, 24], [26, 25], [27, 22], [27, 26], [28, 27], [29, 4], [30, 29], [31, 30], [32, 31], [33, 32], [34, 33], [35, 4], [36, 35], [37, 36], [38, 37], [39, 38], [40, 34], [40, 39], [41, 4], [42, 41], [43, 42], [44, 43], [45, 44], [46, 45], [46, 40], [47, 4], [48, 47], [49, 48], [50, 49], [51, 50], [51, 46], [52, 51], [53, 4], [54, 53], [55, 54], [56, 55], [57, 56], [58, 57], [59, 4], [60, 59], [61, 60], [62, 61], [63, 58], [63, 62], [64, 63], [65, 4], [66, 65], [67, 66], [68, 67], [69, 68], [70, 69], [71, 4], [72, 71], [73, 72], [74, 73], [75, 74], [75, 70], [76, 75], [77, 3], [78, 77], [79, 78], [80, 79], [81, 28], [82, 81], [83, 3], [84, 83], [84, 82], [85, 5], [86, 85], [86, 84], [87, 4], [88, 87], [88, 84], [89, 76], [90, 64], [91, 90], [92, 52], [93, 28], [94, 93], [95, 3], [96, 2], [97, 86], [98, 88], [100, 89], [101, 91], [103, 94], [104, 95], [106, 96], [109, 105]]}
{"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/025286ef7fc4d4d9d3d73621818413ad52915f8d6b2e629a4854256ceec115ef_025286ef7fc4d4d9d3d73621818413ad52915f8d6b2e629a4854256ceec115ef.jsonl.gz", "strip_func_name": "sub_403F42", "query": "\n\n\n__int64 __fastcall sub_403F42(__int64 a1, __int64 a2, int a3)\n{\nunsigned int v4; // [rsp+20h] [rbp-20h]\nunsigned int v5; // [rsp+24h] [rbp-1Ch]\nunsigned __int16 v6; // [rsp+2Ah] [rbp-16h]\nint v7; // [rsp+34h] [rbp-Ch]\n\nv4 = _byteswap_ulong(*(_DWORD *)a2);\nv5 = _byteswap_ulong(*(_DWORD *)(a2 + 4));\nv6 = _byteswap_ushort(*(_WORD *)(a2 + 8));\nv7 = (*(unsigned __int8 *)(a2 + 10) << 8) | *(unsigned __int8 *)(a2 + 11);\nif ( !*(_QWORD *)(a1 + 232) )\n*(_QWORD *)(a1 + 232) = v4;\nreturn sub_416A4B(a1, v4, v5, 6, v6, v7, 0, a2 + 12, a3 - 12);\n}\n\n\n\nQ:[a3,a1,a2,v4,v5,v6,v7,sub_403F42,sub_416A4B,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'buf_length', 'a1': 'out', 'a2': 'buf', 'v4': 'record', 'v5': 'record_4', 'v6': 'record_10', 'v7': 'record_20', 'sub_403F42': 'parse_banner3', 'sub_416A4B': 'output_report_banner'}"}
_drawing_write_c_nv_pr
2e7195e6bc11902cb1147d429b22ff6f7655de6050b37429b5d7074aaa0727e8
jmcnamara
libxlsxwriter
NA
STATIC void _drawing_write_c_nv_pr(lxw_drawing *self, char *object_name, uint32_t index, lxw_drawing_object *drawing_object) { struct xml_attribute_list attributes; struct xml_attribute *attribute; char name[LXW_OBJ_NAME_LENGTH]; lxw_snprintf(name, LXW_OBJ_NAME_LENGTH, "%s %d", object_name, index); LXW_INIT_ATTRIBUTES(); LXW_PUSH_ATTRIBUTES_INT("id", index + 1); LXW_PUSH_ATTRIBUTES_STR("name", name); if (drawing_object && drawing_object->description && strlen(drawing_object->description) && !drawing_object->decorative) { LXW_PUSH_ATTRIBUTES_STR("descr", drawing_object->description); } if (drawing_object && (drawing_object->url_rel_index || drawing_object->decorative)) { lxw_xml_start_tag(self->file, "xdr:cNvPr", &attributes); if (drawing_object->url_rel_index) { /* Write the a:hlinkClick element. */ _drawing_write_a_hlink_click(self, drawing_object->url_rel_index, drawing_object->tip); } if (drawing_object->decorative) { _workbook_write_decorative(self); } lxw_xml_end_tag(self->file, "xdr:cNvPr"); } else { lxw_xml_empty_tag(self->file, "xdr:cNvPr", &attributes); } LXW_FREE_ATTRIBUTES(); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43CBC1", "function_addr": 4443073, "binary_name": "2e7195e6bc11902cb1147d429b22ff6f7655de6050b37429b5d7074aaa0727e8.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 [rbp+var_44], edx"], [6, "mov [rbp+var_50], rcx"], [7, "mov ecx, [rbp+var_44]"], [8, "mov rdx, [rbp+var_40]"], [9, "lea rax, [rbp+s]"], [10, "mov r8d, ecx"], [11, "mov rcx, rdx"], [12, "mov edx, offset aSD"], [13, "mov esi, 0Eh"], [14, "mov rdi, rax"], [15, "mov eax, 0"], [16, "call _snprintf"], [17, "mov [rbp+var_20], 0"], [18, "lea rax, [rbp+var_20]"], [19, "mov [rbp+var_18], rax"], [20, "mov eax, [rbp+var_44]"], [21, "add eax, 1"], [22, "mov esi, eax"], [23, "mov edi, offset aId_0"], [24, "call sub_423048"], [25, "mov [rbp+ptr], rax"], [26, "mov rax, [rbp+ptr]"], [27, "mov qword ptr [rax+1040h], 0"], [28, "mov rax, [rbp+var_18]"], [29, "mov rdx, [rbp+ptr]"], [30, "mov [rax], rdx"], [31, "mov rax, [rbp+ptr]"], [32, "add rax, 1040h"], [33, "mov [rbp+var_18], rax"], [34, "lea rax, [rbp+s]"], [35, "mov rsi, rax"], [36, "mov edi, offset aName_1"], [37, "call sub_422FD7"], [38, "mov [rbp+ptr], rax"], [39, "mov rax, [rbp+ptr]"], [40, "mov qword ptr [rax+1040h], 0"], [41, "mov rax, [rbp+var_18]"], [42, "mov rdx, [rbp+ptr]"], [43, "mov [rax], rdx"], [44, "mov rax, [rbp+ptr]"], [45, "add rax, 1040h"], [46, "mov [rbp+var_18], rax"], [47, "cmp [rbp+var_50], 0"], [48, "jz short loc_43CCFB"], [49, "mov rax, [rbp+var_50]"], [50, "mov rax, [rax+58h]"], [51, "test rax, rax"], [52, "jz short loc_43CCFB"], [53, "mov rax, [rbp+var_50]"], [54, "mov rax, [rax+58h]"], [55, "movzx eax, byte ptr [rax]"], [56, "test al, al"], [57, "jz short loc_43CCFB"], [58, "mov rax, [rbp+var_50]"], [59, "movzx eax, byte ptr [rax+68h]"], [60, "test al, al"], [61, "jnz short loc_43CCFB"], [62, "mov rax, [rbp+var_50]"], [63, "mov rax, [rax+58h]"], [64, "mov rsi, rax"], [65, "mov edi, offset aDescr"], [66, "call sub_422FD7"], [67, "mov [rbp+ptr], rax"], [68, "mov rax, [rbp+ptr]"], [69, "mov qword ptr [rax+1040h], 0"], [70, "mov rax, [rbp+var_18]"], [71, "mov rdx, [rbp+ptr]"], [72, "mov [rax], rdx"], [73, "mov rax, [rbp+ptr]"], [74, "add rax, 1040h"], [75, "mov [rbp+var_18], rax"], [76, "cmp [rbp+var_50], 0"], [77, "jz loc_43CD8B"], [78, "mov rax, [rbp+var_50]"], [79, "mov eax, [rax+50h]"], [80, "test eax, eax"], [81, "jnz short loc_43CD1D"], [82, "mov rax, [rbp+var_50]"], [83, "movzx eax, byte ptr [rax+68h]"], [84, "test al, al"], [85, "jz short loc_43CD8B"], [86, "mov rax, [rbp+var_38]"], [87, "mov rax, [rax]"], [88, "lea rdx, [rbp+var_20]"], [89, "mov esi, offset aXdrCnvpr"], [90, "mov rdi, rax"], [91, "call sub_4226AF"], [92, "mov rax, [rbp+var_50]"], [93, "mov eax, [rax+50h]"], [94, "test eax, eax"], [95, "jz short loc_43CD5D"], [96, "mov rax, [rbp+var_50]"], [97, "mov rdx, [rax+60h]"], [98, "mov rax, [rbp+var_50]"], [99, "mov ecx, [rax+50h]"], [100, "mov rax, [rbp+var_38]"], [101, "mov esi, ecx"], [102, "mov rdi, rax"], [103, "call sub_43C5D2"], [104, "mov rax, [rbp+var_50]"], [105, "movzx eax, byte ptr [rax+68h]"], [106, "test al, al"], [107, "jz short loc_43CD75"], [108, "mov rax, [rbp+var_38]"], [109, "mov rdi, rax"], [110, "call sub_43CB23"], [111, "mov rax, [rbp+var_38]"], [112, "mov rax, [rax]"], [113, "mov esi, offset aXdrCnvpr"], [114, "mov rdi, rax"], [115, "call sub_422795"], [116, "jmp short loc_43CDA3"], [117, "mov rax, [rbp+var_38]"], [118, "mov rax, [rax]"], [119, "lea rdx, [rbp+var_20]"], [120, "mov esi, offset aXdrCnvpr"], [121, "mov rdi, rax"], [122, "call sub_4227C2"], [123, "jmp short loc_43CDD9"], [124, "mov rax, [rbp+var_20]"], [125, "mov [rbp+ptr], rax"], [126, "mov rax, [rbp+var_20]"], [127, "mov rax, [rax+1040h]"], [128, "mov [rbp+var_20], rax"], [129, "mov rax, [rbp+var_20]"], [130, "test rax, rax"], [131, "jnz short loc_43CDCD"], [132, "lea rax, [rbp+var_20]"], [133, "mov [rbp+var_18], rax"], [134, "mov rax, [rbp+ptr]"], [135, "mov rdi, rax"], [136, "call _free"], [137, "mov rax, [rbp+var_20]"], [138, "test rax, rax"], [139, "jnz short loc_43CDA5"], [140, "nop"], [141, "nop"], [142, "leave"], [143, "retn"]], "data_dep": [[7, 5], [8, 4], [10, 7], [11, 8], [14, 9], [18, 17], [18, 16], [19, 18], [20, 5], [21, 20], [22, 21], [25, 24], [26, 25], [27, 26], [28, 19], [29, 25], [30, 29], [30, 28], [31, 25], [32, 31], [33, 32], [34, 32], [35, 34], [38, 37], [39, 38], [40, 39], [41, 33], [42, 38], [43, 41], [43, 42], [44, 38], [45, 44], [46, 45], [47, 6], [48, 47], [49, 6], [50, 27], [50, 40], [50, 49], [50, 30], [50, 43], [51, 50], [52, 51], [53, 6], [54, 40], [54, 30], [54, 53], [54, 43], [54, 27], [55, 43], [55, 54], [55, 40], [55, 30], [55, 27], [56, 55], [57, 56], [58, 6], [59, 43], [59, 27], [59, 40], [59, 58], [59, 30], [60, 59], [61, 60], [62, 6], [63, 43], [63, 27], [63, 40], [63, 72], [63, 30], [63, 69], [63, 62], [64, 63], [67, 66], [68, 67], [69, 68], [70, 46], [71, 67], [72, 70], [72, 71], [73, 67], [74, 73], [75, 74], [76, 6], [77, 76], [78, 6], [79, 30], [79, 69], [79, 78], [79, 27], [79, 43], [79, 72], [79, 40], [80, 79], [81, 80], [82, 6], [83, 30], [83, 69], [83, 82], [83, 27], [83, 43], [83, 72], [83, 40], [84, 83], [85, 84], [86, 3], [87, 43], [87, 27], [87, 86], [87, 40], [87, 72], [87, 30], [87, 69], [88, 42], [88, 17], [88, 71], [90, 87], [92, 6], [93, 72], [93, 40], [93, 69], [93, 92], [93, 30], [93, 43], [93, 27], [94, 93], [95, 94], [96, 6], [97, 72], [97, 40], [97, 30], [97, 69], [97, 96], [97, 27], [97, 43], [98, 6], [99, 72], [99, 40], [99, 30], [99, 69], [99, 98], [99, 27], [99, 43], [100, 3], [101, 99], [102, 100], [104, 6], [105, 43], [105, 72], [105, 40], [105, 104], [105, 30], [105, 69], [105, 27], [106, 105], [107, 106], [108, 3], [109, 108], [111, 3], [112, 27], [112, 43], [112, 72], [112, 111], [112, 40], [112, 30], [112, 69], [114, 112], [117, 3], [118, 40], [118, 117], [118, 30], [118, 69], [118, 43], [118, 27], [118, 72], [119, 71], [119, 17], [119, 42], [121, 118], [124, 128], [124, 17], [125, 124], [126, 128], [126, 17], [127, 43], [127, 72], [127, 40], [127, 126], [127, 30], [127, 69], [127, 27], [128, 127], [129, 128], [130, 129], [131, 130], [132, 128], [132, 130], [133, 132], [134, 125], [135, 134], [137, 17], [137, 128], [138, 137], [139, 138], [143, 138]]}
{"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_43CBC1", "query": "\n\n\n_QWORD *__fastcall sub_43CBC1(FILE **a1, const char *a2, unsigned int a3, __int64 a4)\n{\n_QWORD *result; // rax\nchar s[14]; // [rsp+22h] [rbp-2Eh] BYREF\n_QWORD *v8; // [rsp+30h] [rbp-20h] BYREF\nvoid **v9; // [rsp+38h] [rbp-18h]\nvoid *ptr; // [rsp+48h] [rbp-8h]\n\nsnprintf(s, 0xEuLL, \"%s %d\", a2, a3);\nv8 = 0LL;\nv9 = (void **)&v8;\nptr = sub_423048(\"id\", a3 + 1);\n*((_QWORD *)ptr + 520) = 0LL;\n*v9 = ptr;\nv9 = (void **)((char *)ptr + 4160);\nptr = sub_422FD7(\"name\", s);\n*((_QWORD *)ptr + 520) = 0LL;\n*v9 = ptr;\nv9 = (void **)((char *)ptr + 4160);\nif ( a4 && *(_QWORD *)(a4 + 88) && **(_BYTE **)(a4 + 88) && !*(_BYTE *)(a4 + 104) )\n{\nptr = sub_422FD7(\"descr\", *(const char **)(a4 + 88));\n*((_QWORD *)ptr + 520) = 0LL;\n*v9 = ptr;\nv9 = (void **)((char *)ptr + 4160);\n}\nif ( a4 && (*(_DWORD *)(a4 + 80) || *(_BYTE *)(a4 + 104)) )\n{\nsub_4226AF(*a1, \"xdr:cNvPr\", (__int64)&v8);\nif ( *(_DWORD *)(a4 + 80) )\nsub_43C5D2(a1, *(_DWORD *)(a4 + 80), *(const char **)(a4 + 96));\nif ( *(_BYTE *)(a4 + 104) )\nsub_43CB23(a1);\nsub_422795(*a1, \"xdr:cNvPr\");\n}\nelse\n{\nsub_4227C2(*a1, \"xdr:cNvPr\", (__int64)&v8);\n}\nwhile ( 1 )\n{\nresult = v8;\nif ( !v8 )\nbreak;\nptr = v8;\nv8 = (_QWORD *)v8[520];\nif ( !v8 )\nv9 = (void **)&v8;\nfree(ptr);\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,s,v8,ptr,sub_43CBC1,sub_423048,sub_422FD7,sub_4226AF,sub_43C5D2,sub_43CB23,sub_422795,sub_4227C2,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'index', 'a4': 'drawing_object', 'a1': 'self', 'a2': 'object_name', 's': 'name', 'v8': 'attributes', 'ptr': 'attribute', 'sub_43CBC1': '_drawing_write_c_nv_pr', 'sub_423048': 'lxw_new_attribute_int', 'sub_422FD7': 'lxw_new_attribute_str', 'sub_4226AF': 'lxw_xml_start_tag', 'sub_43C5D2': '_drawing_write_a_hlink_click', 'sub_43CB23': '_workbook_write_decorative', 'sub_422795': 'lxw_xml_end_tag', 'sub_4227C2': 'lxw_xml_empty_tag'}"}
mbedtls_zeroize
8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2
aliyun
haas-mini-program
NA
static void mbedtls_zeroize( void *v, size_t n ) { volatile unsigned char *p = (unsigned char*)v; while( n-- ) *p++ = 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4AD9EA", "function_addr": 4905450, "binary_name": "8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_20], rsi"], [4, "mov rax, [rbp+var_18]"], [5, "mov [rbp+var_8], rax"], [6, "jmp short loc_4ADA0F"], [7, "mov rax, [rbp+var_8]"], [8, "lea rdx, [rax+1]"], [9, "mov [rbp+var_8], rdx"], [10, "mov byte ptr [rax], 0"], [11, "mov rax, [rbp+var_20]"], [12, "lea rdx, [rax-1]"], [13, "mov [rbp+var_20], rdx"], [14, "test rax, rax"], [15, "jnz short loc_4ADA00"], [16, "nop"], [17, "nop"], [18, "pop rbp"], [19, "retn"]], "data_dep": [[4, 2], [5, 4], [7, 9], [7, 5], [8, 12], [8, 7], [8, 10], [9, 8], [10, 7], [11, 13], [11, 3], [12, 10], [12, 11], [12, 8], [13, 12], [14, 11], [15, 14], [18, 0], [19, 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/8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2_8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2.jsonl.gz", "strip_func_name": "sub_4AD9EA", "query": "\n\n\n__int64 __fastcall sub_4AD9EA(_BYTE *a1, __int64 a2)\n{\n_BYTE *v2; // rax\n__int64 result; // rax\n\nwhile ( 1 )\n{\nresult = a2--;\nif ( !result )\nbreak;\nv2 = a1++;\n*v2 = 0;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_4AD9EA,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'v', 'a2': 'n', 'sub_4AD9EA': 'mbedtls_zeroize_4'}"}
hostapd_cli_cmd_mib
ee14ea6e9f43a82e3de6fce33b02cf5140d44e7949e0765606a08ccbc19a37c0
vanhoefm
krackattacks-poc-zerokey
NA
static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[]) { if (argc > 0) { char buf[100]; os_snprintf(buf, sizeof(buf), "MIB %s", argv[0]); return wpa_ctrl_command(ctrl, buf); } return wpa_ctrl_command(ctrl, "MIB"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402C9C", "function_addr": 4205724, "binary_name": "ee14ea6e9f43a82e3de6fce33b02cf5140d44e7949e0765606a08ccbc19a37c0.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 90h"], [3, "mov [rbp+var_78], rdi"], [4, "mov [rbp+var_7C], esi"], [5, "mov [rbp+var_88], rdx"], [6, "cmp [rbp+var_7C], 0"], [7, "jle short loc_402CF8"], [8, "mov rax, [rbp+var_88]"], [9, "mov rdx, [rax]"], [10, "lea rax, [rbp+s]"], [11, "mov rcx, rdx"], [12, "mov edx, offset aMibS"], [13, "mov esi, 64h "], [14, "mov rdi, rax"], [15, "mov eax, 0"], [16, "call _snprintf"], [17, "lea rdx, [rbp+s]"], [18, "mov rax, [rbp+var_78]"], [19, "mov rsi, rdx"], [20, "mov rdi, rax"], [21, "call sub_402B09"], [22, "jmp short locret_402D09"], [23, "mov rax, [rbp+var_78]"], [24, "mov esi, offset aMib"], [25, "mov rdi, rax"], [26, "call sub_402B09"], [27, "leave"], [28, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 5], [9, 8], [10, 8], [11, 9], [14, 10], [17, 12], [18, 3], [19, 17], [20, 18], [23, 3], [25, 23], [28, 26], [28, 21]]}
{"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/ee14ea6e9f43a82e3de6fce33b02cf5140d44e7949e0765606a08ccbc19a37c0_ee14ea6e9f43a82e3de6fce33b02cf5140d44e7949e0765606a08ccbc19a37c0.jsonl.gz", "strip_func_name": "sub_402C9C", "query": "\n\n\n__int64 __fastcall sub_402C9C(__int64 a1, int a2, const char **a3)\n{\nchar s[112]; // [rsp+20h] [rbp-70h] BYREF\n\nif ( a2 <= 0 )\nreturn sub_402B09(a1, \"MIB\");\nsnprintf(s, 0x64uLL, \"MIB %s\", *a3);\nreturn sub_402B09(a1, s);\n}\n\n\n\nQ:[a3,a1,a2,s,sub_402C9C,sub_402B09,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'argv', 'a1': 'ctrl', 'a2': 'argc', 's': 'buf', 'sub_402C9C': 'hostapd_cli_cmd_mib', 'sub_402B09': 'wpa_ctrl_command'}"}
channel_watcher
89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334
IanHarvey
bluepy
NA
static gboolean channel_watcher(GIOChannel *chan, GIOCondition cond, gpointer user_data) { DBG("chan = %p", chan); // in case of quick disconnection/reconnection, do not mix them if (chan == iochannel) disconnect_io(); return FALSE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4052EE", "function_addr": 4215534, "binary_name": "89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, cs:qword_444F10"], [7, "cmp [rbp+var_8], rax"], [8, "jnz short loc_405318"], [9, "mov eax, 0"], [10, "call sub_404C59"], [11, "mov eax, 0"], [12, "leave"], [13, "retn"]], "data_dep": [[7, 6], [7, 3], [8, 7], [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/89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334_89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334.jsonl.gz", "strip_func_name": "sub_4052EE", "query": "\n\n\n__int64 __fastcall sub_4052EE(__int64 a1)\n{\nif ( a1 == qword_444F10 )\nsub_404C59();\nreturn 0LL;\n}\n\n\n\nQ:[a1,sub_4052EE,sub_404C59,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'chan', 'sub_4052EE': 'channel_watcher', 'sub_404C59': 'disconnect_io'}"}
ntt_red256_product4_asm
edbd63c80fdd0dfc4608c0f1fb0a91840d4b2f242dc7d03d7e1ad88bfab8e5ff
SRI-CSL
Bliss
NA
void ntt_red256_product4_asm(int32_t *c, int32_t *a, int32_t *b) { shift_array_asm(a, 256); // convert to [-(Q-1)/2, (Q-1)/2] mul_reduce_array16_asm(a, 256, ntt_red256_psi_powers); ntt_red256_gs_std2rev_asm(a); reduce_array_asm(a, 256); shift_array_asm(b, 256); mul_reduce_array16_asm(b, 256, ntt_red256_psi_powers); ntt_red256_gs_std2rev_asm(b); reduce_array_asm(b, 256); // at this point: // a = NTT(a) * 3, -524287 <= a[i] <= 536573 // b = NTT(b) * 3, -524287 <= b[i] <= 536573 mul_reduce_array_asm(c, 256, a, b); // c[i] = 3 * a[i] * b[i] reduce_array_twice_asm(c, 256); // c[i] = 9 * c[i] mod Q // we have: -130 <= c[i] <= 12413 intt_red256_gs_rev2std_asm(c); mul_reduce_array16_asm(c, 256, ntt_red256_scaled_inv_psi_powers); reduce_array_twice_asm(c, 256); // c[i] = 9 * c[i] mod Q correct_asm(c, 256); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40273B", "function_addr": 4204347, "binary_name": "edbd63c80fdd0dfc4608c0f1fb0a91840d4b2f242dc7d03d7e1ad88bfab8e5ff.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, [rbp+var_10]"], [7, "mov esi, 100h"], [8, "mov rdi, rax"], [9, "call sub_403CF0"], [10, "mov rax, [rbp+var_10]"], [11, "mov edx, offset unk_4072E0"], [12, "mov esi, 100h"], [13, "mov rdi, rax"], [14, "call sub_403D40"], [15, "mov rax, [rbp+var_10]"], [16, "mov rdi, rax"], [17, "call sub_40235B"], [18, "mov rax, [rbp+var_10]"], [19, "mov esi, 100h"], [20, "mov rdi, rax"], [21, "call sub_403B00"], [22, "mov rax, [rbp+var_18]"], [23, "mov esi, 100h"], [24, "mov rdi, rax"], [25, "call sub_403CF0"], [26, "mov rax, [rbp+var_18]"], [27, "mov edx, offset unk_4072E0"], [28, "mov esi, 100h"], [29, "mov rdi, rax"], [30, "call sub_403D40"], [31, "mov rax, [rbp+var_18]"], [32, "mov rdi, rax"], [33, "call sub_40235B"], [34, "mov rax, [rbp+var_18]"], [35, "mov esi, 100h"], [36, "mov rdi, rax"], [37, "call sub_403B00"], [38, "mov rcx, [rbp+var_18]"], [39, "mov rdx, [rbp+var_10]"], [40, "mov rax, [rbp+var_8]"], [41, "mov esi, 100h"], [42, "mov rdi, rax"], [43, "call sub_403E10"], [44, "mov rax, [rbp+var_8]"], [45, "mov esi, 100h"], [46, "mov rdi, rax"], [47, "call sub_403BA0"], [48, "mov rax, [rbp+var_8]"], [49, "mov rdi, rax"], [50, "call sub_4023A5"], [51, "mov rax, [rbp+var_8]"], [52, "mov edx, offset unk_4078E0"], [53, "mov esi, 100h"], [54, "mov rdi, rax"], [55, "call sub_403D40"], [56, "mov rax, [rbp+var_8]"], [57, "mov esi, 100h"], [58, "mov rdi, rax"], [59, "call sub_403BA0"], [60, "mov rax, [rbp+var_8]"], [61, "mov esi, 100h"], [62, "mov rdi, rax"], [63, "call sub_403C80"], [64, "nop"], [65, "leave"], [66, "retn"]], "data_dep": [[6, 4], [8, 6], [10, 4], [13, 10], [15, 4], [16, 15], [18, 4], [20, 18], [22, 5], [24, 22], [26, 5], [29, 26], [31, 5], [32, 31], [34, 5], [36, 34], [38, 5], [39, 4], [40, 3], [42, 40], [44, 3], [46, 44], [48, 3], [49, 48], [51, 3], [54, 51], [56, 3], [58, 56], [60, 3], [62, 60], [66, 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/edbd63c80fdd0dfc4608c0f1fb0a91840d4b2f242dc7d03d7e1ad88bfab8e5ff_edbd63c80fdd0dfc4608c0f1fb0a91840d4b2f242dc7d03d7e1ad88bfab8e5ff.jsonl.gz", "strip_func_name": "sub_40273B", "query": "\n\n\n__int64 __fastcall sub_40273B(__int64 a1, __int64 a2, __int64 a3)\n{\nsub_403CF0(a2, 256LL);\nsub_403D40(a2, 256LL, &unk_4072E0);\nsub_40235B(a2);\nsub_403B00(a2, 256LL);\nsub_403CF0(a3, 256LL);\nsub_403D40(a3, 256LL, &unk_4072E0);\nsub_40235B(a3);\nsub_403B00(a3, 256LL);\nsub_403E10(a1, 256LL, a2, a3);\nsub_403BA0(a1, 256LL);\nsub_4023A5(a1);\nsub_403D40(a1, 256LL, &unk_4078E0);\nsub_403BA0(a1, 256LL);\nreturn sub_403C80(a1, 256LL);\n}\n\n\n\nQ:[a3,a1,a2,sub_40273B,sub_403CF0,sub_403D40,sub_40235B,sub_403B00,sub_403E10,sub_403BA0,sub_4023A5,sub_403C80,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'b', 'a1': 'c', 'a2': 'a', 'sub_40273B': 'ntt_red256_product4_asm', 'sub_403CF0': 'shift_array_asm', 'sub_403D40': 'mul_reduce_array16_asm', 'sub_40235B': 'ntt_red256_gs_std2rev_asm_0', 'sub_403B00': 'reduce_array_asm', 'sub_403E10': 'mul_reduce_array_asm', 'sub_403BA0': 'reduce_array_twice_asm', 'sub_4023A5': 'intt_red256_gs_rev2std_asm_0', 'sub_403C80': 'correct_asm'}"}
setup_error
1cdcd09e088b6ff1db54fa3ae8a0c70f8f219b2e121d0ce2b5639ebfe341cfd3
Matheus-Garbelini
esp32_bluetooth_classic_sniffer
NA
static uint16_t setup_error(uint8_t * response_buffer, uint16_t request, uint16_t handle, uint8_t error_code){ response_buffer[0] = ATT_ERROR_RESPONSE; response_buffer[1] = request; little_endian_store_16(response_buffer, 2, handle); response_buffer[4] = error_code; return 5; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42FA07", "function_addr": 4389383, "binary_name": "1cdcd09e088b6ff1db54fa3ae8a0c70f8f219b2e121d0ce2b5639ebfe341cfd3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov eax, edx"], [5, "mov edx, ecx"], [6, "mov ecx, esi"], [7, "mov [rbp+var_C], cx"], [8, "mov [rbp+var_10], ax"], [9, "mov eax, edx"], [10, "mov [rbp+var_14], al"], [11, "mov rax, [rbp+var_8]"], [12, "mov byte ptr [rax], 1"], [13, "mov rax, [rbp+var_8]"], [14, "add rax, 1"], [15, "movzx edx, [rbp+var_C]"], [16, "mov [rax], dl"], [17, "movzx edx, [rbp+var_10]"], [18, "mov rax, [rbp+var_8]"], [19, "mov esi, 2"], [20, "mov rdi, rax"], [21, "call sub_4095AF"], [22, "mov rax, [rbp+var_8]"], [23, "lea rdx, [rax+4]"], [24, "movzx eax, [rbp+var_14]"], [25, "mov [rdx], al"], [26, "mov eax, 5"], [27, "leave"], [28, "retn"]], "data_dep": [[7, 6], [8, 4], [9, 5], [10, 9], [11, 3], [12, 11], [13, 3], [14, 13], [15, 7], [16, 15], [16, 14], [17, 8], [18, 3], [20, 18], [22, 3], [23, 16], [23, 22], [23, 17], [24, 10], [25, 23], [25, 24], [28, 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/1cdcd09e088b6ff1db54fa3ae8a0c70f8f219b2e121d0ce2b5639ebfe341cfd3_1cdcd09e088b6ff1db54fa3ae8a0c70f8f219b2e121d0ce2b5639ebfe341cfd3.jsonl.gz", "strip_func_name": "sub_42FA07", "query": "\n\n\n__int64 __fastcall sub_42FA07(_BYTE *a1, char a2, __int16 a3, char a4)\n{\n*a1 = 1;\na1[1] = a2;\nsub_4095AF((__int64)a1, 2u, a3);\na1[4] = a4;\nreturn 5LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_42FA07,sub_4095AF,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'handle', 'a4': 'error_code', 'a1': 'response_buffer', 'a2': 'request', 'sub_42FA07': 'setup_error', 'sub_4095AF': 'little_endian_store_16'}"}
DelayedUpdate
d08e849fccddd177d1c140c7984670e0e0a17aec74dfd9249b5e78acd3cac90d
interkosmos
micropolis
NA
static void DelayedUpdate(ClientData clientData) { //fprintf(stderr, "DelayedUpdate\n"); UpdateDelayed = 0; sim_skip = 0; sim_update(); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42E7A0", "function_addr": 4384672, "binary_name": "d08e849fccddd177d1c140c7984670e0e0a17aec74dfd9249b5e78acd3cac90d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov cs:dword_4FF340, 0"], [5, "mov cs:dword_4FB430, 0"], [6, "mov eax, 0"], [7, "call sub_407918"], [8, "nop"], [9, "leave"], [10, "retn"]], "data_dep": [[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/d08e849fccddd177d1c140c7984670e0e0a17aec74dfd9249b5e78acd3cac90d_d08e849fccddd177d1c140c7984670e0e0a17aec74dfd9249b5e78acd3cac90d.jsonl.gz", "strip_func_name": "sub_42E7A0", "query": "\n\n\n__int64 sub_42E7A0()\n{\ndword_4FF340 = 0;\ndword_4FB430 = 0;\nreturn sub_407918();\n}\n\n\n\nQ:[sub_42E7A0,sub_407918,]\nAssistant: ", "hints": "[]", "response": "{'sub_42E7A0': 'DelayedUpdate', 'sub_407918': 'sim_update'}"}
xlCallErrorHandler
616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602
dbetz
xlisp
NA
void xlCallErrorHandler(void) { xlVal = xlEnter("*ERROR-HANDLER*"); if ((xlVal = xlGetValue(xlVal)) != xlNil) xlInternalCall(NULL,0,xlVal,3,xlFun,xlEnv); xlThrowError(s_error); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409287", "function_addr": 4231815, "binary_name": "616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov edi, offset aErrorHandler_0"], [3, "call sub_413248"], [4, "mov cs:qword_441AE8, rax"], [5, "mov rax, cs:qword_441AE8"], [6, "mov rax, [rax+10h]"], [7, "mov rax, [rax]"], [8, "mov cs:qword_441AE8, rax"], [9, "mov rax, cs:qword_441AE8"], [10, "test rax, rax"], [11, "jz short loc_4092F4"], [12, "mov rcx, cs:qword_441AE0"], [13, "mov rdx, cs:qword_441AD8"], [14, "mov rax, cs:qword_441AE8"], [15, "mov r9, rcx"], [16, "mov r8, rdx"], [17, "mov ecx, 3"], [18, "mov rdx, rax"], [19, "mov esi, 0"], [20, "mov edi, 0"], [21, "mov eax, 0"], [22, "call sub_408089"], [23, "mov rax, cs:qword_441C18"], [24, "mov rdi, rax"], [25, "call sub_408723"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [14, 8], [15, 12], [16, 13], [18, 14], [24, 23]]}
{"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_409287", "query": "\n\n\nvoid __noreturn sub_409287()\n{\nqword_441AE8 = sub_413248(\"*ERROR-HANDLER*\");\nqword_441AE8 = **(_QWORD **)(qword_441AE8 + 16);\nif ( qword_441AE8 )\nsub_408089(0LL, 0, qword_441AE8, 3u, qword_441AD8, qword_441AE0);\nsub_408723(qword_441C18);\n}\n\n\n\nQ:[sub_409287,sub_413248,sub_408089,sub_408723,]\nAssistant: ", "hints": "[]", "response": "{'sub_409287': 'xlCallErrorHandler', 'sub_413248': 'xlEnter', 'sub_408089': 'xlInternalCall', 'sub_408723': 'xlThrowError'}"}
Draw_Sensors_V2_T1_P1
4c203109843f8da4148d01ce8f9e54fd81ce3fc82864f2211a1aaeb59256f803
cyring
CoreFreq
NA
size_t Draw_Sensors_V2_T1_P1(Layer *layer, const unsigned int cpu, CUINT row) { if ((RO(Shm)->Cpu[cpu].Topology.ThreadID == 0) || (RO(Shm)->Cpu[cpu].Topology.ThreadID == -1)) { return Draw_Sensors_V1_T1_P1(layer, cpu, row); } else { return Draw_Sensors_V0_T1_P1(layer, cpu, row); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4724CE", "function_addr": 4662478, "binary_name": "4c203109843f8da4148d01ce8f9e54fd81ce3fc82864f2211a1aaeb59256f803.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 eax, edx"], [6, "mov [rbp+var_10], ax"], [7, "mov rdx, cs:addr"], [8, "mov eax, [rbp+var_C]"], [9, "imul rax, 0D58h"], [10, "add rax, rdx"], [11, "add rax, 27F7Ch"], [12, "mov eax, [rax]"], [13, "test eax, eax"], [14, "jz short loc_472524"], [15, "mov rdx, cs:addr"], [16, "mov eax, [rbp+var_C]"], [17, "imul rax, 0D58h"], [18, "add rax, rdx"], [19, "add rax, 27F7Ch"], [20, "mov eax, [rax]"], [21, "cmp eax, 0FFFFFFFFh"], [22, "jnz short loc_47253B"], [23, "movzx edx, [rbp+var_10]"], [24, "mov ecx, [rbp+var_C]"], [25, "mov rax, [rbp+var_8]"], [26, "mov esi, ecx"], [27, "mov rdi, rax"], [28, "call sub_471CC0"], [29, "jmp short locret_472550"], [30, "movzx edx, [rbp+var_10]"], [31, "mov ecx, [rbp+var_C]"], [32, "mov rax, [rbp+var_8]"], [33, "mov esi, ecx"], [34, "mov rdi, rax"], [35, "call sub_471361"], [36, "leave"], [37, "retn"]], "data_dep": [[6, 5], [8, 4], [9, 8], [10, 9], [10, 7], [11, 10], [12, 11], [13, 12], [14, 13], [16, 4], [17, 16], [18, 17], [18, 15], [19, 18], [20, 19], [21, 20], [22, 21], [23, 6], [24, 4], [25, 3], [26, 24], [27, 25], [30, 6], [31, 4], [32, 3], [33, 31], [34, 32], [37, 35], [37, 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/4c203109843f8da4148d01ce8f9e54fd81ce3fc82864f2211a1aaeb59256f803_4c203109843f8da4148d01ce8f9e54fd81ce3fc82864f2211a1aaeb59256f803.jsonl.gz", "strip_func_name": "sub_4724CE", "query": "\n\n\n__int64 __fastcall sub_4724CE(__int64 a1, unsigned int a2)\n{\n__int64 result; // rax\n\nif ( *((_DWORD *)addr + 854 * a2 + 40927) && *((_DWORD *)addr + 854 * a2 + 40927) != -1 )\nresult = sub_471361(a1, a2);\nelse\nresult = sub_471CC0(a1, a2);\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_4724CE,sub_471361,sub_471CC0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'layer', 'a2': 'cpu', 'sub_4724CE': 'Draw_Sensors_V2_T1_P1', 'sub_471361': 'Draw_Sensors_V0_T1_P1', 'sub_471CC0': 'Draw_Sensors_V1_T1_P1'}"}
tcp_tx_retransmit_one
02ab506b54df7f54386bbabc9f0031f99aeada0abe8b24d56b27e2544d2a9bfb
shenango
caladan
NA
static int tcp_tx_retransmit_one(tcpconn_t *c, struct mbuf *m) { int ret; uint8_t opts_len; uint16_t l4len; l4len = m->seg_end - m->seg_seq; if (m->flags & (TCP_SYN | TCP_FIN)) l4len--; opts_len = ((struct tcp_hdr *)mbuf_transport_offset(m))->off - 5; /* * Check if still transmitting. Because of a limitation in some DPDK NIC * drivers, completions could be delayed long after transmission is * finished. We copy the packet to allow retransmission to still succeed * in such corner cases. */ if (unlikely(atomic_read(&m->ref) != 1)) { struct mbuf *newm = net_tx_alloc_mbuf(); if (unlikely(!newm)) return -ENOMEM; memcpy(mbuf_put(newm, sizeof(uint32_t) * opts_len + l4len), mbuf_transport_offset(m) + sizeof(struct tcp_hdr), sizeof(uint32_t) * opts_len + l4len); newm->flags = m->flags; newm->seg_seq = m->seg_seq; newm->seg_end = m->seg_end; newm->txflags = OLFLAG_TCP_CHKSUM; m = newm; } else { /* strip headers and reset ref count */ mbuf_reset(m, m->transport_off + sizeof(struct tcp_hdr)); atomic_write(&m->ref, 2); } /* handle a partially acknowledged packet */ uint32_t una = load_acquire(&c->pcb.snd_una); if (unlikely(wraps_lte(m->seg_end, una))) { mbuf_free(m); return 0; } else if (unlikely(wraps_lt(m->seg_seq, una))) { mbuf_pull(m, una - m->seg_seq); m->seg_seq = una; } /* push the TCP header back on (now with fresher ack) */ tcp_push_tcphdr(m, c, m->flags, 5 + opts_len, l4len); /* transmit the packet */ tcp_debug_egress_pkt(c, m); ret = net_tx_ip(m, IPPROTO_TCP, c->e.raddr.ip); if (unlikely(ret)) mbuf_free(m); return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412B1A", "function_addr": 4270874, "binary_name": "02ab506b54df7f54386bbabc9f0031f99aeada0abe8b24d56b27e2544d2a9bfb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 70h"], [5, "mov [rbp+var_78], rdi"], [6, "mov [rbp+var_80], rsi"], [7, "mov rax, [rbp+var_80]"], [8, "mov eax, [rax+5Ch]"], [9, "mov edx, eax"], [10, "mov rax, [rbp+var_80]"], [11, "mov eax, [rax+58h]"], [12, "mov ecx, eax"], [13, "mov eax, edx"], [14, "sub eax, ecx"], [15, "mov [rbp+var_12], ax"], [16, "mov rax, [rbp+var_80]"], [17, "movzx eax, byte ptr [rax+60h]"], [18, "movzx eax, al"], [19, "and eax, 3"], [20, "test eax, eax"], [21, "jz short loc_412B64"], [22, "movzx eax, [rbp+var_12]"], [23, "sub eax, 1"], [24, "mov [rbp+var_12], ax"], [25, "mov rax, [rbp+var_80]"], [26, "mov rdi, rax"], [27, "call sub_411BA6"], [28, "movzx eax, byte ptr [rax+0Ch]"], [29, "shr al, 4"], [30, "sub eax, 5"], [31, "mov [rbp+var_13], al"], [32, "mov rax, [rbp+var_80]"], [33, "add rax, 64h "], [34, "mov rdi, rax"], [35, "call sub_411845"], [36, "cmp eax, 1"], [37, "setnz al"], [38, "movzx eax, al"], [39, "test rax, rax"], [40, "jz loc_412C53"], [41, "call sub_409F55"], [42, "mov [rbp+var_20], rax"], [43, "cmp [rbp+var_20], 0"], [44, "setz al"], [45, "movzx eax, al"], [46, "test rax, rax"], [47, "jz short loc_412BC2"], [48, "mov eax, 0FFFFFFF4h"], [49, "jmp loc_412ECF"], [50, "movzx eax, [rbp+var_13]"], [51, "lea rdx, ds:0[rax*4]"], [52, "movzx eax, [rbp+var_12]"], [53, "lea r12, [rdx+rax]"], [54, "mov rax, [rbp+var_80]"], [55, "mov rdi, rax"], [56, "call sub_411BA6"], [57, "lea rbx, [rax+14h]"], [58, "movzx eax, [rbp+var_13]"], [59, "lea edx, ds:0[rax*4]"], [60, "movzx eax, [rbp+var_12]"], [61, "add edx, eax"], [62, "mov rax, [rbp+var_20]"], [63, "mov esi, edx"], [64, "mov rdi, rax"], [65, "call sub_411A5D"], [66, "mov rdx, r12"], [67, "mov rsi, rbx"], [68, "mov rdi, rax"], [69, "call _memcpy"], [70, "mov rax, [rbp+var_80]"], [71, "movzx edx, byte ptr [rax+60h]"], [72, "mov rax, [rbp+var_20]"], [73, "mov [rax+60h], dl"], [74, "mov rax, [rbp+var_80]"], [75, "mov edx, [rax+58h]"], [76, "mov rax, [rbp+var_20]"], [77, "mov [rax+58h], edx"], [78, "mov rax, [rbp+var_80]"], [79, "mov edx, [rax+5Ch]"], [80, "mov rax, [rbp+var_20]"], [81, "mov [rax+5Ch], edx"], [82, "mov rax, [rbp+var_20]"], [83, "mov dword ptr [rax+28h], 2"], [84, "mov rax, [rbp+var_20]"], [85, "mov [rbp+var_80], rax"], [86, "jmp short loc_412C84"], [87, "mov rax, [rbp+var_80]"], [88, "movzx eax, word ptr [rax+2Eh]"], [89, "movzx eax, ax"], [90, "lea edx, [rax+14h]"], [91, "mov rax, [rbp+var_80]"], [92, "mov esi, edx"], [93, "mov rdi, rax"], [94, "call sub_411AD7"], [95, "mov rax, [rbp+var_80]"], [96, "add rax, 64h "], [97, "mov esi, 2"], [98, "mov rdi, rax"], [99, "call sub_411855"], [100, "mov rax, [rbp+var_78]"], [101, "mov eax, [rax+44h]"], [102, "mov [rbp+var_24], eax"], [103, "mov eax, [rbp+var_24]"], [104, "mov [rbp+var_28], eax"], [105, "mov rax, [rbp+var_80]"], [106, "mov eax, [rax+5Ch]"], [107, "mov edx, [rbp+var_28]"], [108, "mov esi, edx"], [109, "mov edi, eax"], [110, "call sub_4115AF"], [111, "movzx eax, al"], [112, "test rax, rax"], [113, "jz short loc_412CC5"], [114, "mov rax, [rbp+var_80]"], [115, "mov rdi, rax"], [116, "call sub_411BC6"], [117, "mov eax, 0"], [118, "jmp loc_412ECF"], [119, "mov rax, [rbp+var_80]"], [120, "mov eax, [rax+58h]"], [121, "mov edx, [rbp+var_28]"], [122, "mov esi, edx"], [123, "mov edi, eax"], [124, "call sub_41159A"], [125, "movzx eax, al"], [126, "test rax, rax"], [127, "jz short loc_412D06"], [128, "mov rax, [rbp+var_80]"], [129, "mov ecx, [rax+58h]"], [130, "mov eax, [rbp+var_28]"], [131, "sub eax, ecx"], [132, "mov edx, eax"], [133, "mov rax, [rbp+var_80]"], [134, "mov esi, edx"], [135, "mov rdi, rax"], [136, "call sub_411985"], [137, "mov rax, [rbp+var_80]"], [138, "mov edx, [rbp+var_28]"], [139, "mov [rax+58h], edx"], [140, "movzx eax, [rbp+var_12]"], [141, "movzx edx, [rbp+var_13]"], [142, "add edx, 5"], [143, "movzx edx, dl"], [144, "mov rcx, [rbp+var_80]"], [145, "movzx ecx, byte ptr [rcx+60h]"], [146, "movzx ecx, cl"], [147, "mov rsi, [rbp+var_80]"], [148, "mov [rbp+var_38], rsi"], [149, "mov rsi, [rbp+var_78]"], [150, "mov [rbp+var_40], rsi"], [151, "mov [rbp+var_41], cl"], [152, "mov [rbp+var_42], dl"], [153, "mov [rbp+var_44], ax"], [154, "mov rax, [rbp+var_40]"], [155, "mov rax, [rax+68h]"], [156, "mov [rbp+var_50], rax"], [157, "mov rax, [rbp+var_50]"], [158, "mov [rbp+var_58], rax"], [159, "mov rax, [rbp+var_58]"], [160, "mov edx, eax"], [161, "mov rax, [rbp+var_40]"], [162, "mov [rax+108h], edx"], [163, "mov rax, [rbp+var_40]"], [164, "mov eax, [rax+108h]"], [165, "mov [rbp+var_5C], eax"], [166, "mov rax, [rbp+var_58]"], [167, "shr rax, 20h"], [168, "mov edx, eax"], [169, "mov rax, [rbp+var_40]"], [170, "mov [rax+10Ch], edx"], [171, "mov rax, [rbp+var_40]"], [172, "mov eax, [rax+10Ch]"], [173, "mov [rbp+var_60], eax"], [174, "mov rax, [rbp+var_38]"], [175, "mov esi, 14h"], [176, "mov rdi, rax"], [177, "call sub_4119DB"], [178, "mov [rbp+var_68], rax"], [179, "mov rax, [rbp+var_38]"], [180, "mov rdi, rax"], [181, "call sub_411B73"], [182, "mov rax, [rbp+var_40]"], [183, "movzx eax, word ptr [rax+0Ch]"], [184, "movzx eax, ax"], [185, "mov edi, eax"], [186, "call sub_4115DD"], [187, "mov rdx, [rbp+var_68]"], [188, "mov [rdx], ax"], [189, "mov rax, [rbp+var_40]"], [190, "movzx eax, word ptr [rax+14h]"], [191, "movzx eax, ax"], [192, "mov edi, eax"], [193, "call sub_4115DD"], [194, "mov rdx, [rbp+var_68]"], [195, "mov [rdx+2], ax"], [196, "mov eax, [rbp+var_5C]"], [197, "mov edi, eax"], [198, "call sub_4115F1"], [199, "mov rdx, [rbp+var_68]"], [200, "mov [rdx+8], eax"], [201, "movzx eax, [rbp+var_42]"], [202, "and eax, 0Fh"], [203, "mov edx, eax"], [204, "mov rax, [rbp+var_68]"], [205, "mov ecx, edx"], [206, "shl ecx, 4"], [207, "movzx edx, byte ptr [rax+0Ch]"], [208, "and edx, 0Fh"], [209, "or edx, ecx"], [210, "mov [rax+0Ch], dl"], [211, "mov rax, [rbp+var_68]"], [212, "movzx edx, [rbp+var_41]"], [213, "mov [rax+0Dh], dl"], [214, "mov rax, [rbp+var_40]"], [215, "mov eax, [rax+78h]"], [216, "mov edx, [rbp+var_60]"], [217, "mov ecx, eax"], [218, "shr edx, cl"], [219, "mov eax, edx"], [220, "movzx eax, ax"], [221, "mov edi, eax"], [222, "call sub_4115DD"], [223, "mov rdx, [rbp+var_68]"], [224, "mov [rdx+0Eh], ax"], [225, "mov rax, [rbp+var_38]"], [226, "mov eax, [rax+58h]"], [227, "mov edi, eax"], [228, "call sub_4115F1"], [229, "mov rdx, [rbp+var_68]"], [230, "mov [rdx+4], eax"], [231, "movzx eax, [rbp+var_42]"], [232, "lea edx, ds:0[rax*4]"], [233, "movzx eax, [rbp+var_44]"], [234, "add eax, edx"], [235, "movzx edx, ax"], [236, "mov rax, [rbp+var_40]"], [237, "mov ecx, [rax+10h]"], [238, "mov rax, [rbp+var_40]"], [239, "mov eax, [rax+8]"], [240, "mov esi, ecx"], [241, "mov edi, eax"], [242, "call sub_411C24"], [243, "mov rdx, [rbp+var_68]"], [244, "mov [rdx+10h], ax"], [245, "mov rdx, [rbp+var_80]"], [246, "mov rax, [rbp+var_78]"], [247, "mov rsi, rdx"], [248, "mov rdi, rax"], [249, "call sub_411BE6"], [250, "mov rax, [rbp+var_78]"], [251, "mov edx, [rax+10h]"], [252, "mov rax, [rbp+var_80]"], [253, "mov esi, 6"], [254, "mov rdi, rax"], [255, "call sub_40A60F"], [256, "mov [rbp+var_2C], eax"], [257, "cmp [rbp+var_2C], 0"], [258, "setnz al"], [259, "movzx eax, al"], [260, "test rax, rax"], [261, "jz short loc_412ECC"], [262, "mov rax, [rbp+var_80]"], [263, "mov rdi, rax"], [264, "call sub_411BC6"], [265, "mov eax, [rbp+var_2C]"], [266, "add rsp, 70h"], [267, "pop rbx"], [268, "pop r12"], [269, "pop rbp"], [270, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [10, 6], [11, 10], [12, 11], [13, 9], [14, 13], [14, 12], [15, 14], [16, 6], [17, 16], [18, 17], [19, 18], [20, 19], [21, 20], [22, 15], [23, 22], [24, 23], [25, 6], [26, 25], [28, 27], [29, 28], [30, 29], [31, 30], [32, 6], [33, 32], [34, 33], [36, 35], [37, 35], [37, 36], [38, 37], [39, 38], [40, 39], [42, 41], [43, 42], [44, 41], [44, 43], [45, 44], [46, 45], [47, 46], [50, 31], [51, 9], [52, 15], [52, 24], [53, 52], [54, 6], [55, 54], [57, 56], [58, 31], [59, 51], [60, 15], [60, 24], [61, 60], [61, 59], [62, 42], [63, 61], [64, 62], [66, 53], [67, 57], [68, 65], [70, 6], [71, 70], [72, 42], [73, 72], [73, 71], [74, 6], [75, 74], [75, 73], [76, 42], [77, 76], [77, 75], [78, 6], [79, 78], [79, 77], [80, 42], [81, 80], [81, 79], [82, 42], [83, 82], [84, 42], [85, 84], [87, 6], [88, 87], [89, 88], [90, 9], [90, 89], [91, 6], [92, 90], [93, 91], [95, 6], [96, 95], [98, 96], [100, 5], [101, 83], [101, 73], [101, 77], [101, 100], [101, 81], [102, 101], [103, 102], [104, 103], [105, 6], [105, 85], [106, 83], [106, 105], [106, 73], [106, 77], [106, 81], [107, 104], [108, 107], [109, 106], [111, 110], [112, 111], [113, 112], [114, 6], [114, 85], [115, 114], [119, 6], [119, 85], [120, 83], [120, 73], [120, 77], [120, 119], [120, 81], [121, 104], [122, 121], [123, 120], [125, 124], [126, 125], [127, 126], [128, 6], [128, 85], [129, 128], [129, 139], [129, 83], [129, 73], [129, 77], [129, 81], [130, 104], [131, 130], [131, 129], [132, 131], [133, 6], [133, 85], [134, 132], [135, 133], [137, 85], [137, 6], [138, 104], [139, 138], [139, 137], [140, 15], [140, 24], [141, 31], [142, 141], [143, 142], [144, 6], [144, 85], [145, 224], [145, 210], [145, 200], [145, 195], [145, 144], [145, 162], [145, 139], [145, 83], [145, 213], [145, 73], [145, 230], [145, 77], [145, 81], [145, 170], [145, 188], [145, 244], [146, 145], [147, 6], [147, 85], [148, 147], [149, 5], [150, 149], [151, 146], [152, 143], [153, 140], [154, 150], [155, 162], [155, 139], [155, 83], [155, 213], [155, 73], [155, 230], [155, 77], [155, 81], [155, 170], [155, 188], [155, 244], [155, 224], [155, 210], [155, 200], [155, 195], [155, 154], [156, 155], [157, 156], [158, 157], [159, 158], [160, 159], [161, 150], [162, 161], [162, 160], [163, 150], [164, 163], [164, 162], [165, 164], [166, 158], [167, 166], [168, 167], [169, 150], [170, 169], [170, 168], [171, 150], [172, 171], [172, 170], [173, 172], [174, 148], [176, 174], [178, 177], [179, 148], [180, 179], [182, 150], [183, 182], [183, 170], [184, 183], [185, 184], [187, 178], [188, 187], [188, 186], [189, 150], [190, 189], [190, 188], [191, 190], [192, 191], [194, 178], [195, 193], [195, 194], [196, 165], [197, 196], [199, 178], [200, 199], [200, 198], [201, 152], [202, 201], [203, 202], [204, 178], [205, 203], [206, 205], [207, 200], [207, 204], [208, 207], [209, 208], [209, 206], [210, 209], [210, 204], [211, 178], [212, 151], [213, 212], [213, 211], [214, 150], [215, 214], [215, 213], [216, 173], [217, 215], [218, 217], [218, 216], [219, 218], [220, 219], [221, 220], [223, 178], [224, 223], [224, 222], [225, 148], [226, 139], [226, 77], [226, 225], [226, 224], [227, 226], [229, 178], [230, 229], [230, 228], [231, 152], [232, 229], [233, 153], [234, 233], [234, 232], [235, 234], [236, 150], [237, 236], [237, 230], [238, 150], [239, 230], [239, 238], [240, 237], [241, 239], [243, 178], [244, 243], [244, 242], [245, 85], [245, 6], [246, 5], [247, 245], [248, 246], [250, 5], [251, 250], [251, 244], [252, 85], [252, 6], [254, 252], [256, 255], [257, 256], [258, 255], [258, 257], [259, 258], [260, 259], [261, 260], [262, 85], [262, 6], [263, 262], [265, 256], [266, 4], [267, 3], [268, 2], [269, 0], [270, 265], [270, 48], [270, 117]]}
{"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/02ab506b54df7f54386bbabc9f0031f99aeada0abe8b24d56b27e2544d2a9bfb_02ab506b54df7f54386bbabc9f0031f99aeada0abe8b24d56b27e2544d2a9bfb.jsonl.gz", "strip_func_name": "sub_412B1A", "query": "\n\n\n__int64 __fastcall sub_412B1A(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\nconst void *v3; // rbx\nvoid *v4; // rax\n__int64 v5; // [rsp+0h] [rbp-80h]\n__int64 v6; // [rsp+18h] [rbp-68h]\nunsigned int v7; // [rsp+20h] [rbp-60h]\nunsigned int v8; // [rsp+24h] [rbp-5Ch]\n__int64 v9; // [rsp+28h] [rbp-58h]\nchar v10; // [rsp+3Fh] [rbp-41h]\nunsigned int v11; // [rsp+54h] [rbp-2Ch]\nint v12; // [rsp+58h] [rbp-28h]\n__int64 v13; // [rsp+60h] [rbp-20h]\nunsigned __int8 v14; // [rsp+6Dh] [rbp-13h]\nunsigned __int16 v15; // [rsp+6Eh] [rbp-12h]\n\nv5 = a2;\nv15 = *(_DWORD *)(a2 + 92) - *(_DWORD *)(a2 + 88);\nif ( (*(_BYTE *)(a2 + 96) & 3) != 0 )\n--v15;\nv14 = (*(_BYTE *)(sub_411BA6(a2) + 12) >> 4) - 5;\nif ( (unsigned int)sub_411845((unsigned int *)(a2 + 100)) == 1 )\n{\nsub_411AD7(a2, *(unsigned __int16 *)(a2 + 46) + 20);\nsub_411855((_DWORD *)(a2 + 100), 2);\n}\nelse\n{\nv13 = sub_409F55();\nif ( !v13 )\nreturn 4294967284LL;\nv3 = (const void *)(sub_411BA6(a2) + 20);\nv4 = (void *)sub_411A5D(v13, v15 + 4 * (unsigned int)v14);\nmemcpy(v4, v3, 4LL * v14 + v15);\n*(_BYTE *)(v13 + 96) = *(_BYTE *)(a2 + 96);\n*(_DWORD *)(v13 + 88) = *(_DWORD *)(a2 + 88);\n*(_DWORD *)(v13 + 92) = *(_DWORD *)(a2 + 92);\n*(_DWORD *)(v13 + 40) = 2;\nv5 = v13;\n}\nv12 = *(_DWORD *)(a1 + 68);\nif ( sub_4115AF(*(_DWORD *)(v5 + 92), v12) )\n{\nsub_411BC6(v5);\nresult = 0LL;\n}\nelse\n{\nif ( (unsigned __int8)sub_41159A(*(_DWORD *)(v5 + 88), v12) )\n{\nsub_411985(v5, v12 - *(_DWORD *)(v5 + 88));\n*(_DWORD *)(v5 + 88) = v12;\n}\nv10 = *(_BYTE *)(v5 + 96);\nv9 = *(_QWORD *)(a1 + 104);\n*(_DWORD *)(a1 + 264) = v9;\nv8 = *(_DWORD *)(a1 + 264);\n*(_DWORD *)(a1 + 268) = HIDWORD(v9);\nv7 = *(_DWORD *)(a1 + 268);\nv6 = sub_4119DB(v5, 0x14u);\nsub_411B73((_WORD *)v5);\n*(_WORD *)v6 = sub_4115DD(*(_WORD *)(a1 + 12));\n*(_WORD *)(v6 + 2) = sub_4115DD(*(_WORD *)(a1 + 20));\n*(_DWORD *)(v6 + 8) = sub_4115F1(v8);\n*(_BYTE *)(v6 + 12) = (16 * ((v14 + 5) & 0xF)) | *(_BYTE *)(v6 + 12) & 0xF;\n*(_BYTE *)(v6 + 13) = v10;\n*(_WORD *)(v6 + 14) = sub_4115DD(v7 >> *(_DWORD *)(a1 + 120));\n*(_DWORD *)(v6 + 4) = sub_4115F1(*(_DWORD *)(v5 + 88));\n*(_WORD *)(v6 + 16) = sub_411C24(*(_DWORD *)(a1 + 8), *(_DWORD *)(a1 + 16), 4 * (unsigned __int8)(v14 + 5) + v15);\nsub_411BE6();\nv11 = sub_40A60F(v5, 6, *(_DWORD *)(a1 + 16));\nif ( v11 )\nsub_411BC6(v5);\nresult = v11;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v5,v8,v12,v13,v14,v15,sub_412B1A,sub_411BA6,sub_411845,sub_411AD7,sub_411855,sub_409F55,sub_411A5D,sub_4115AF,sub_411BC6,sub_41159A,sub_411985,sub_4119DB,sub_411B73,sub_411C24,sub_411BE6,sub_40A60F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'a2': 'm', 'v5': 'ma', 'v8': 'val', 'v12': 'una', 'v13': 'newm', 'v14': 'opts_len', 'v15': 'l4len', 'sub_412B1A': 'tcp_tx_retransmit_one', 'sub_411BA6': 'mbuf_transport_offset_0', 'sub_411845': 'atomic_read_0', 'sub_411AD7': 'mbuf_reset', 'sub_411855': 'atomic_write_1', 'sub_409F55': 'net_tx_alloc_mbuf', 'sub_411A5D': 'mbuf_put_2', 'sub_4115AF': 'wraps_lte_0', 'sub_411BC6': 'mbuf_free_5', 'sub_41159A': 'wraps_lt_0', 'sub_411985': 'mbuf_pull_1', 'sub_4119DB': 'mbuf_push_2', 'sub_411B73': 'mbuf_mark_transport_offset_0', 'sub_411C24': 'tcp_hdr_chksum', 'sub_411BE6': 'tcp_debug_egress_pkt', 'sub_40A60F': 'net_tx_ip'}"}
luaB_dofile
f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b
aerospike
aerospike-client-c
NA
static int luaB_dofile (lua_State *L) { const char *fname = luaL_optstring(L, 1, NULL); lua_settop(L, 1); if (l_unlikely(luaL_loadfile(L, fname) != LUA_OK)) return lua_error(L); lua_callk(L, 0, LUA_MULTRET, 0, dofilecont); return dofilecont(L, 0, 0); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_498287", "function_addr": 4817543, "binary_name": "f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov ecx, 0"], [6, "mov edx, 0"], [7, "mov esi, 1"], [8, "mov rdi, rax"], [9, "call sub_46D54F"], [10, "mov [rbp+var_8], rax"], [11, "mov rax, [rbp+var_18]"], [12, "mov rdi, rax"], [13, "call sub_46AAD1"], [14, "mov [rbp+var_C], eax"], [15, "mov rdx, [rbp+var_8]"], [16, "mov rax, [rbp+var_18]"], [17, "mov rsi, rdx"], [18, "mov rdi, rax"], [19, "call sub_46E2F2"], [20, "test eax, eax"], [21, "jz short loc_4982E4"], [22, "mov rax, [rbp+var_18]"], [23, "mov rdi, rax"], [24, "call sub_46C9DF"], [25, "mov rax, [rbp+var_18]"], [26, "mov edx, 0FFFFFFFFh"], [27, "mov esi, 0"], [28, "mov rdi, rax"], [29, "call sub_46C4A8"], [30, "mov rax, [rbp+var_18]"], [31, "mov rdi, rax"], [32, "call sub_46AAD1"], [33, "sub eax, [rbp+var_C]"], [34, "leave"], [35, "retn"]], "data_dep": [[4, 3], [8, 4], [10, 9], [11, 3], [12, 11], [14, 13], [15, 10], [16, 3], [17, 15], [18, 16], [20, 19], [21, 20], [22, 3], [23, 22], [25, 3], [28, 25], [30, 3], [31, 30], [33, 14], [33, 32], [35, 33]]}
{"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/f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b_f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b.jsonl.gz", "strip_func_name": "sub_498287", "query": "\n\n\n__int64 __fastcall sub_498287(__int64 a1)\n{\nint v2; // [rsp+14h] [rbp-Ch]\nconst char *v3; // [rsp+18h] [rbp-8h]\n\nv3 = (const char *)sub_46D54F(a1, 1, 0LL, 0LL);\nv2 = sub_46AAD1(a1);\nif ( (unsigned int)sub_46E2F2(a1, v3) )\nsub_46C9DF(a1);\nsub_46C4A8(a1, 0, 0xFFFFFFFF);\nreturn (unsigned int)sub_46AAD1(a1) - v2;\n}\n\n\n\nQ:[a1,v2,v3,sub_498287,sub_46D54F,sub_46AAD1,sub_46E2F2,sub_46C9DF,sub_46C4A8,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'L', 'v2': 'n', 'v3': 'fname', 'sub_498287': 'luaB_dofile', 'sub_46D54F': 'luaL_optlstring', 'sub_46AAD1': 'lua_gettop', 'sub_46E2F2': 'luaL_loadfile', 'sub_46C9DF': 'lua_error', 'sub_46C4A8': 'lua_call'}"}
CalcSurfaceInfo
14cc4e1a4c0c21a927331b0eb383269c3c1fc544d9887e02f7120cae7dd9bad1
sezero
uhexen2
NA
void CalcSurfaceInfo (surface_t *surf) { int i, j; face_t *f; if (!surf->faces) COM_Error ("%s: surface without a face", __thisfunc__); // // calculate a bounding box // for (i = 0 ; i < 3 ; i++) { surf->mins[i] = 99999; surf->maxs[i] = -99999; } for (f = surf->faces ; f ; f = f->next) { if (f->contents[0] >= 0 || f->contents[1] >= 0) COM_Error ("Bad contents"); for (i = 0 ; i < f->numpoints ; i++) { for (j = 0 ; j < 3 ; j++) { if (f->pts[i][j] < surf->mins[j]) surf->mins[j] = f->pts[i][j]; if (f->pts[i][j] > surf->maxs[j]) surf->maxs[j] = f->pts[i][j]; } } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41154A", "function_addr": 4265290, "binary_name": "14cc4e1a4c0c21a927331b0eb383269c3c1fc544d9887e02f7120cae7dd9bad1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov rax, [rax+50h]"], [6, "test rax, rax"], [7, "jnz short loc_411577"], [8, "mov esi, offset aCalcsurfaceinf"], [9, "mov edi, offset aSSurfaceWithou"], [10, "mov eax, 0"], [11, "call sub_402CAF"], [12, "mov [rbp+var_4], 0"], [13, "jmp short loc_4115BB"], [14, "mov rax, [rbp+var_18]"], [15, "mov edx, [rbp+var_4]"], [16, "movsxd rdx, edx"], [17, "add rdx, 2"], [18, "movsd xmm0, cs:qword_4185E8"], [19, "movsd qword ptr [rax+rdx*8+8], xmm0"], [20, "mov rax, [rbp+var_18]"], [21, "mov edx, [rbp+var_4]"], [22, "movsxd rdx, edx"], [23, "add rdx, 6"], [24, "movsd xmm0, cs:qword_418600"], [25, "movsd qword ptr [rax+rdx*8], xmm0"], [26, "add [rbp+var_4], 1"], [27, "cmp [rbp+var_4], 2"], [28, "jle short loc_411580"], [29, "mov rax, [rbp+var_18]"], [30, "mov rax, [rax+50h]"], [31, "mov [rbp+var_10], rax"], [32, "jmp loc_41172A"], [33, "mov rax, [rbp+var_10]"], [34, "mov eax, [rax+14h]"], [35, "test eax, eax"], [36, "jns short loc_4115E8"], [37, "mov rax, [rbp+var_10]"], [38, "mov eax, [rax+18h]"], [39, "test eax, eax"], [40, "js short loc_4115F7"], [41, "mov edi, offset aBadContents"], [42, "mov eax, 0"], [43, "call sub_402CAF"], [44, "mov [rbp+var_4], 0"], [45, "jmp loc_41170F"], [46, "mov [rbp+var_8], 0"], [47, "jmp loc_411701"], [48, "mov rdx, [rbp+var_10]"], [49, "mov eax, [rbp+var_8]"], [50, "movsxd rsi, eax"], [51, "mov eax, [rbp+var_4]"], [52, "movsxd rcx, eax"], [53, "mov rax, rcx"], [54, "add rax, rax"], [55, "add rax, rcx"], [56, "add rax, rsi"], [57, "add rax, 6"], [58, "movsd xmm1, qword ptr [rdx+rax*8]"], [59, "mov rax, [rbp+var_18]"], [60, "mov edx, [rbp+var_8]"], [61, "movsxd rdx, edx"], [62, "add rdx, 2"], [63, "movsd xmm0, qword ptr [rax+rdx*8+8]"], [64, "comisd xmm0, xmm1"], [65, "jbe short loc_411687"], [66, "mov rdx, [rbp+var_10]"], [67, "mov eax, [rbp+var_8]"], [68, "movsxd rsi, eax"], [69, "mov eax, [rbp+var_4]"], [70, "movsxd rcx, eax"], [71, "mov rax, rcx"], [72, "add rax, rax"], [73, "add rax, rcx"], [74, "add rax, rsi"], [75, "add rax, 6"], [76, "movsd xmm0, qword ptr [rdx+rax*8]"], [77, "mov rax, [rbp+var_18]"], [78, "mov edx, [rbp+var_8]"], [79, "movsxd rdx, edx"], [80, "add rdx, 2"], [81, "movsd qword ptr [rax+rdx*8+8], xmm0"], [82, "mov rdx, [rbp+var_10]"], [83, "mov eax, [rbp+var_8]"], [84, "movsxd rsi, eax"], [85, "mov eax, [rbp+var_4]"], [86, "movsxd rcx, eax"], [87, "mov rax, rcx"], [88, "add rax, rax"], [89, "add rax, rcx"], [90, "add rax, rsi"], [91, "add rax, 6"], [92, "movsd xmm0, qword ptr [rdx+rax*8]"], [93, "mov rax, [rbp+var_18]"], [94, "mov edx, [rbp+var_8]"], [95, "movsxd rdx, edx"], [96, "add rdx, 6"], [97, "movsd xmm1, qword ptr [rax+rdx*8]"], [98, "comisd xmm0, xmm1"], [99, "jbe short loc_4116FD"], [100, "mov rdx, [rbp+var_10]"], [101, "mov eax, [rbp+var_8]"], [102, "movsxd rsi, eax"], [103, "mov eax, [rbp+var_4]"], [104, "movsxd rcx, eax"], [105, "mov rax, rcx"], [106, "add rax, rax"], [107, "add rax, rcx"], [108, "add rax, rsi"], [109, "add rax, 6"], [110, "movsd xmm0, qword ptr [rdx+rax*8]"], [111, "mov rax, [rbp+var_18]"], [112, "mov edx, [rbp+var_8]"], [113, "movsxd rdx, edx"], [114, "add rdx, 6"], [115, "movsd qword ptr [rax+rdx*8], xmm0"], [116, "add [rbp+var_8], 1"], [117, "cmp [rbp+var_8], 2"], [118, "jle loc_41160F"], [119, "add [rbp+var_4], 1"], [120, "mov rax, [rbp+var_10]"], [121, "mov eax, [rax+2Ch]"], [122, "cmp [rbp+var_4], eax"], [123, "jl loc_411603"], [124, "mov rax, [rbp+var_10]"], [125, "mov rax, [rax]"], [126, "mov [rbp+var_10], rax"], [127, "cmp [rbp+var_10], 0"], [128, "jnz loc_4115D2"], [129, "nop"], [130, "nop"], [131, "leave"], [132, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [14, 3], [15, 12], [15, 26], [16, 15], [17, 16], [19, 18], [19, 14], [20, 3], [21, 26], [21, 12], [22, 21], [23, 22], [25, 20], [25, 24], [26, 26], [26, 12], [27, 26], [27, 12], [28, 27], [29, 3], [30, 29], [30, 19], [30, 25], [31, 30], [33, 31], [33, 126], [34, 19], [34, 25], [34, 33], [34, 115], [34, 81], [35, 34], [36, 35], [37, 126], [37, 31], [38, 25], [38, 81], [38, 19], [38, 37], [38, 115], [39, 38], [40, 39], [48, 31], [48, 126], [49, 46], [49, 116], [50, 49], [51, 44], [51, 119], [52, 51], [53, 52], [54, 53], [55, 52], [55, 54], [56, 55], [56, 50], [57, 56], [58, 115], [58, 81], [58, 19], [58, 25], [58, 57], [59, 3], [60, 46], [60, 116], [61, 60], [62, 61], [63, 25], [63, 81], [63, 19], [63, 115], [63, 59], [64, 63], [64, 58], [65, 62], [66, 126], [66, 31], [67, 116], [67, 46], [68, 67], [69, 44], [69, 119], [70, 69], [71, 70], [72, 71], [73, 70], [73, 72], [74, 73], [74, 68], [75, 74], [76, 115], [76, 81], [76, 19], [76, 25], [76, 75], [77, 3], [78, 116], [78, 46], [79, 78], [80, 79], [81, 76], [81, 77], [82, 31], [82, 126], [83, 116], [83, 46], [84, 83], [85, 119], [85, 44], [86, 85], [87, 86], [88, 87], [89, 86], [89, 88], [90, 89], [90, 84], [91, 90], [92, 115], [92, 81], [92, 19], [92, 25], [92, 91], [93, 3], [94, 116], [94, 46], [95, 94], [96, 95], [97, 81], [97, 115], [97, 19], [97, 25], [97, 93], [98, 92], [98, 97], [99, 96], [100, 126], [100, 31], [101, 46], [101, 116], [102, 101], [103, 44], [103, 119], [104, 103], [105, 104], [106, 105], [107, 104], [107, 106], [108, 107], [108, 102], [109, 108], [110, 109], [110, 81], [110, 115], [110, 19], [110, 25], [111, 3], [112, 116], [112, 46], [113, 112], [114, 113], [115, 111], [115, 110], [116, 116], [116, 46], [117, 46], [117, 116], [118, 117], [119, 44], [119, 119], [120, 31], [120, 126], [121, 25], [121, 120], [121, 115], [121, 81], [121, 19], [122, 44], [122, 119], [122, 121], [123, 122], [124, 31], [124, 126], [125, 115], [125, 124], [125, 81], [125, 19], [125, 25], [126, 125], [127, 31], [127, 126], [128, 127], [132, 125], [132, 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/14cc4e1a4c0c21a927331b0eb383269c3c1fc544d9887e02f7120cae7dd9bad1_14cc4e1a4c0c21a927331b0eb383269c3c1fc544d9887e02f7120cae7dd9bad1.jsonl.gz", "strip_func_name": "sub_41154A", "query": "\n\n\n__int64 *__fastcall sub_41154A(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 *result; // rax\nint *j; // [rsp+10h] [rbp-10h]\nint l; // [rsp+18h] [rbp-8h]\nint i; // [rsp+1Ch] [rbp-4h]\nint k; // [rsp+1Ch] [rbp-4h]\n\nif ( !*(_QWORD *)(a1 + 80) )\nsub_402CAF(\"%s: surface without a face\", (__int64)\"CalcSurfaceInfo\", a3, a4, a5, a6);\nfor ( i = 0; i <= 2; ++i )\n{\n*(_QWORD *)(a1 + 8 * (i + 2LL) + 8) = 0x40F869F000000000LL;\na3 = i + 6LL;\n*(_QWORD *)(a1 + 8 * a3) = 0xC0F869F000000000LL;\n}\nresult = *(__int64 **)(a1 + 80);\nfor ( j = (int *)result; j; j = *(int **)j )\n{\nif ( j[5] >= 0 || j[6] >= 0 )\nsub_402CAF(\"Bad contents\", a2, a3, a4, a5, a6);\nfor ( k = 0; k < j[11]; ++k )\n{\nfor ( l = 0; l <= 2; ++l )\n{\nif ( *(double *)(a1 + 8 * (l + 2LL) + 8) > *(double *)&j[6 * k + 12 + 2 * l] )\n*(_QWORD *)(a1 + 8 * (l + 2LL) + 8) = *(_QWORD *)&j[6 * k + 12 + 2 * l];\na2 = l;\na4 = k;\na3 = l + 6LL;\nif ( *(double *)&j[6 * k + 12 + 2 * l] > *(double *)(a1 + 8 * a3) )\n{\na2 = l;\na4 = k;\na3 = l + 6LL;\n*(_QWORD *)(a1 + 8 * a3) = *(_QWORD *)&j[6 * k + 12 + 2 * l];\n}\n}\n}\nresult = *(__int64 **)j;\n}\nreturn result;\n}\n\n\n\nQ:[a1,j,i,sub_41154A,sub_402CAF,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'surf', 'j': 'f', 'i': 'ia', 'sub_41154A': 'CalcSurfaceInfo', 'sub_402CAF': 'COM_Error'}"}
AcpiTbGetRsdpLength
c8491ae03f8dc9e8695f46c8251e57f69f5ff7c0ed65d1286b5d5158829a78e3
bitdefender
napoca
NA
UINT32 AcpiTbGetRsdpLength ( ACPI_TABLE_RSDP *Rsdp) { if (!ACPI_VALIDATE_RSDP_SIG (Rsdp->Signature)) { /* BAD Signature */ return (0); } /* "Length" field is available if table version >= 2 */ if (Rsdp->Revision >= 2) { return (Rsdp->Length); } else { return (ACPI_RSDP_CHECKSUM_LENGTH); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_435838", "function_addr": 4413496, "binary_name": "c8491ae03f8dc9e8695f46c8251e57f69f5ff7c0ed65d1286b5d5158829a78e3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+s1], rdi"], [4, "mov rax, [rbp+s1]"], [5, "mov edx, 8"], [6, "mov esi, offset aRsdPtr_0"], [7, "mov rdi, rax"], [8, "call _strncmp"], [9, "test eax, eax"], [10, "jz short loc_435865"], [11, "mov eax, 0"], [12, "jmp short locret_43587F"], [13, "mov rax, [rbp+s1]"], [14, "movzx eax, byte ptr [rax+0Fh]"], [15, "cmp al, 1"], [16, "jbe short loc_43587A"], [17, "mov rax, [rbp+s1]"], [18, "mov eax, [rax+14h]"], [19, "jmp short locret_43587F"], [20, "mov eax, 14h"], [21, "leave"], [22, "retn"]], "data_dep": [[4, 3], [7, 4], [9, 8], [10, 9], [13, 3], [14, 13], [15, 14], [16, 15], [17, 3], [18, 17], [22, 18], [22, 11], [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/c8491ae03f8dc9e8695f46c8251e57f69f5ff7c0ed65d1286b5d5158829a78e3_c8491ae03f8dc9e8695f46c8251e57f69f5ff7c0ed65d1286b5d5158829a78e3.jsonl.gz", "strip_func_name": "sub_435838", "query": "\n\n\n__int64 __fastcall sub_435838(__int64 a1)\n{\nif ( strncmp((const char *)a1, \"RSD PTR \", 8uLL) )\nreturn 0LL;\nif ( *(_BYTE *)(a1 + 15) <= 1u )\nreturn 20LL;\nreturn *(unsigned int *)(a1 + 20);\n}\n\n\n\nQ:[a1,sub_435838,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'Rsdp', 'sub_435838': 'AcpiTbGetRsdpLength'}"}
ep_frompair
5e394c28fd6752ba9c21ebed39db67d56684150621cc2af455e48a8d4672051a
evilpan
P2P-Over-MiddleBoxes-Demo
NA
endpoint_t ep_frompair(const char *host, short port) { endpoint_t ep; memset(&ep, 0, sizeof ep); ep.sin_family = AF_INET; ep.sin_addr.s_addr = inet_addr(host); ep.sin_port = htons(port); return ep; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401FA9", "function_addr": 4202409, "binary_name": "5e394c28fd6752ba9c21ebed39db67d56684150621cc2af455e48a8d4672051a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+cp], rdi"], [4, "mov eax, esi"], [5, "mov [rbp+var_1C], ax"], [6, "lea rax, [rbp+s]"], [7, "mov edx, 10h"], [8, "mov esi, 0"], [9, "mov rdi, rax"], [10, "call _memset"], [11, "mov word ptr [rbp+s], 2"], [12, "mov rax, [rbp+cp]"], [13, "mov rdi, rax"], [14, "call _inet_addr"], [15, "mov dword ptr [rbp+s+4], eax"], [16, "movzx eax, [rbp+var_1C]"], [17, "movzx eax, ax"], [18, "mov edi, eax"], [19, "call _htons"], [20, "mov word ptr [rbp+s+2], ax"], [21, "mov rax, [rbp+s]"], [22, "mov rdx, [rbp+var_8]"], [23, "leave"], [24, "retn"]], "data_dep": [[5, 4], [6, 4], [9, 6], [12, 3], [13, 12], [15, 14], [16, 5], [17, 16], [18, 17], [20, 19], [21, 11], [24, 21]]}
{"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/5e394c28fd6752ba9c21ebed39db67d56684150621cc2af455e48a8d4672051a_5e394c28fd6752ba9c21ebed39db67d56684150621cc2af455e48a8d4672051a.jsonl.gz", "strip_func_name": "sub_401FA9", "query": "\n\n\n__int64 __fastcall sub_401FA9(const char *a1, uint16_t a2)\n{\n__int64 s; // [rsp+10h] [rbp-10h] BYREF\n\nmemset(&s, 0, 0x10uLL);\nLOWORD(s) = 2;\nHIDWORD(s) = inet_addr(a1);\nWORD1(s) = htons(a2);\nreturn s;\n}\n\n\n\nQ:[a1,a2,s,sub_401FA9,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'host', 'a2': 'port', 's': 'ep', 'sub_401FA9': 'ep_frompair'}"}
process_auth
d8d3ef21e51c96db765e8f0d32e6b1df14da5354e4a3a9cd3b6492c5bc4a8750
AonCyberLabs
D-Modem
NA
static pj_status_t process_auth( pj_pool_t *req_pool, const pjsip_www_authenticate_hdr *hchal, const pjsip_uri *uri, pjsip_tx_data *tdata, pjsip_auth_clt_sess *sess, pjsip_cached_auth *cached_auth, pjsip_authorization_hdr **h_auth) { const pjsip_cred_info *cred; pjsip_authorization_hdr *sent_auth = NULL; pjsip_hdr *hdr; pj_status_t status; /* See if we have sent authorization header for this realm */ hdr = tdata->msg->hdr.next; while (hdr != &tdata->msg->hdr) { if ((hchal->type == PJSIP_H_WWW_AUTHENTICATE && hdr->type == PJSIP_H_AUTHORIZATION) || (hchal->type == PJSIP_H_PROXY_AUTHENTICATE && hdr->type == PJSIP_H_PROXY_AUTHORIZATION)) { sent_auth = (pjsip_authorization_hdr*) hdr; if (pj_stricmp(&hchal->challenge.common.realm, &sent_auth->credential.common.realm )==0) { /* If this authorization has empty response, remove it. */ if (pj_stricmp(&sent_auth->scheme, &pjsip_DIGEST_STR)==0 && sent_auth->credential.digest.response.slen == 0) { /* This is empty authorization, remove it. */ hdr = hdr->next; pj_list_erase(sent_auth); continue; } else { /* Found previous authorization attempt */ break; } } } hdr = hdr->next; } /* If we have sent, see if server rejected because of stale nonce or * other causes. */ if (hdr != &tdata->msg->hdr) { pj_bool_t stale; /* Detect "stale" state */ stale = hchal->challenge.digest.stale; if (!stale) { /* If stale is false, check is nonce has changed. Some servers * (broken ones!) want to change nonce but they fail to set * stale to true. */ stale = pj_strcmp(&hchal->challenge.digest.nonce, &sent_auth->credential.digest.nonce); } if (stale == PJ_FALSE) { /* Our credential is rejected. No point in trying to re-supply * the same credential. */ PJ_LOG(4, (THIS_FILE, "Authorization failed for %.*s@%.*s: " "server rejected with stale=false", sent_auth->credential.digest.username.slen, sent_auth->credential.digest.username.ptr, sent_auth->credential.digest.realm.slen, sent_auth->credential.digest.realm.ptr)); return PJSIP_EFAILEDCREDENTIAL; } cached_auth->stale_cnt++; if (cached_auth->stale_cnt >= PJSIP_MAX_STALE_COUNT) { /* Our credential is rejected. No point in trying to re-supply * the same credential. */ PJ_LOG(4, (THIS_FILE, "Authorization failed for %.*s@%.*s: " "maximum number of stale retries exceeded", sent_auth->credential.digest.username.slen, sent_auth->credential.digest.username.ptr, sent_auth->credential.digest.realm.slen, sent_auth->credential.digest.realm.ptr)); return PJSIP_EAUTHSTALECOUNT; } /* Otherwise remove old, stale authorization header from the mesasge. * We will supply a new one. */ pj_list_erase(sent_auth); } /* Find credential to be used for the challenge. */ cred = auth_find_cred( sess, &hchal->challenge.common.realm, &hchal->scheme); if (!cred) { const pj_str_t *realm = &hchal->challenge.common.realm; PJ_LOG(4,(THIS_FILE, "Unable to set auth for %s: can not find credential for %.*s/%.*s", tdata->obj_name, realm->slen, realm->ptr, hchal->scheme.slen, hchal->scheme.ptr)); return PJSIP_ENOCREDENTIAL; } /* Respond to authorization challenge. */ status = auth_respond( req_pool, hchal, uri, cred, &tdata->msg->line.req.method, sess->pool, cached_auth, h_auth); return status; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4356C2", "function_addr": 4413122, "binary_name": "d8d3ef21e51c96db765e8f0d32e6b1df14da5354e4a3a9cd3b6492c5bc4a8750.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_40], rsi"], [5, "mov [rbp+var_48], rdx"], [6, "mov [rbp+var_50], rcx"], [7, "mov [rbp+var_58], r8"], [8, "mov [rbp+var_60], r9"], [9, "mov [rbp+var_8], 0"], [10, "mov rax, [rbp+var_50]"], [11, "mov rax, [rax+188h]"], [12, "mov rax, [rax+30h]"], [13, "mov [rbp+var_10], rax"], [14, "jmp loc_4357A8"], [15, "mov rax, [rbp+var_40]"], [16, "mov eax, [rax+10h]"], [17, "cmp eax, 2Bh "], [18, "jnz short loc_43571A"], [19, "mov rax, [rbp+var_10]"], [20, "mov eax, [rax+10h]"], [21, "cmp eax, 6"], [22, "jz short loc_435732"], [23, "mov rax, [rbp+var_40]"], [24, "mov eax, [rax+10h]"], [25, "cmp eax, 1Ah"], [26, "jnz short loc_43579C"], [27, "mov rax, [rbp+var_10]"], [28, "mov eax, [rax+10h]"], [29, "cmp eax, 1Bh"], [30, "jnz short loc_43579C"], [31, "mov rax, [rbp+var_10]"], [32, "mov [rbp+var_8], rax"], [33, "mov rax, [rbp+var_8]"], [34, "lea rdx, [rax+50h]"], [35, "mov rax, [rbp+var_40]"], [36, "add rax, 50h "], [37, "mov rsi, rdx"], [38, "mov rdi, rax"], [39, "call sub_48DF7E"], [40, "test eax, eax"], [41, "jnz short loc_43579C"], [42, "mov rax, [rbp+var_8]"], [43, "add rax, 40h "], [44, "mov esi, offset off_499E20"], [45, "mov rdi, rax"], [46, "call sub_48DF7E"], [47, "test eax, eax"], [48, "jnz short loc_4357C1"], [49, "mov rax, [rbp+var_8]"], [50, "mov rax, [rax+0C8h]"], [51, "test rax, rax"], [52, "jnz short loc_4357C1"], [53, "mov rax, [rbp+var_10]"], [54, "mov rax, [rax+8]"], [55, "mov [rbp+var_10], rax"], [56, "mov rax, [rbp+var_8]"], [57, "mov rdi, rax"], [58, "call sub_487A5E"], [59, "jmp short loc_4357A8"], [60, "mov rax, [rbp+var_10]"], [61, "mov rax, [rax+8]"], [62, "mov [rbp+var_10], rax"], [63, "mov rax, [rbp+var_50]"], [64, "mov rax, [rax+188h]"], [65, "add rax, 28h "], [66, "cmp [rbp+var_10], rax"], [67, "jnz loc_435702"], [68, "mov rax, [rbp+var_50]"], [69, "mov rax, [rax+188h]"], [70, "add rax, 28h "], [71, "cmp [rbp+var_10], rax"], [72, "jz loc_4358F3"], [73, "mov rax, [rbp+var_40]"], [74, "mov eax, [rax+0C0h]"], [75, "mov [rbp+var_14], eax"], [76, "cmp [rbp+var_14], 0"], [77, "jnz short loc_435810"], [78, "mov rax, [rbp+var_8]"], [79, "lea rdx, [rax+0A0h]"], [80, "mov rax, [rbp+var_40]"], [81, "add rax, 0A0h"], [82, "mov rsi, rdx"], [83, "mov rdi, rax"], [84, "call sub_48DD84"], [85, "mov [rbp+var_14], eax"], [86, "cmp [rbp+var_14], 0"], [87, "jnz short loc_435870"], [88, "call sub_488E0A"], [89, "cmp eax, 3"], [90, "jle short loc_435866"], [91, "mov rax, [rbp+var_8]"], [92, "mov rsi, [rax+50h]"], [93, "mov rax, [rbp+var_8]"], [94, "mov rcx, [rax+58h]"], [95, "mov rax, [rbp+var_8]"], [96, "mov rdx, [rax+90h]"], [97, "mov rax, [rbp+var_8]"], [98, "mov rax, [rax+98h]"], [99, "mov r9, rsi"], [100, "mov r8, rcx"], [101, "mov rcx, rdx"], [102, "mov rdx, rax"], [103, "mov esi, offset aAuthorizationF"], [104, "mov edi, offset aSipAuthClientC"], [105, "mov eax, 0"], [106, "call sub_48977E"], [107, "mov eax, 29C5Ch"], [108, "jmp locret_4359C8"], [109, "mov rax, [rbp+var_60]"], [110, "mov eax, [rax+30h]"], [111, "lea edx, [rax+1]"], [112, "mov rax, [rbp+var_60]"], [113, "mov [rax+30h], edx"], [114, "mov rax, [rbp+var_60]"], [115, "mov eax, [rax+30h]"], [116, "cmp eax, 2"], [117, "jbe short loc_4358E7"], [118, "call sub_488E0A"], [119, "cmp eax, 3"], [120, "jle short loc_4358DD"], [121, "mov rax, [rbp+var_8]"], [122, "mov rsi, [rax+50h]"], [123, "mov rax, [rbp+var_8]"], [124, "mov rcx, [rax+58h]"], [125, "mov rax, [rbp+var_8]"], [126, "mov rdx, [rax+90h]"], [127, "mov rax, [rbp+var_8]"], [128, "mov rax, [rax+98h]"], [129, "mov r9, rsi"], [130, "mov r8, rcx"], [131, "mov rcx, rdx"], [132, "mov rdx, rax"], [133, "mov esi, offset aAuthorizationF_0"], [134, "mov edi, offset aSipAuthClientC"], [135, "mov eax, 0"], [136, "call sub_48977E"], [137, "mov eax, 29C67h"], [138, "jmp locret_4359C8"], [139, "mov rax, [rbp+var_8]"], [140, "mov rdi, rax"], [141, "call sub_487A5E"], [142, "mov rax, [rbp+var_40]"], [143, "lea rdx, [rax+40h]"], [144, "mov rax, [rbp+var_40]"], [145, "lea rcx, [rax+50h]"], [146, "mov rax, [rbp+var_58]"], [147, "mov rsi, rcx"], [148, "mov rdi, rax"], [149, "call sub_43471C"], [150, "mov [rbp+var_20], rax"], [151, "cmp [rbp+var_20], 0"], [152, "jnz short loc_435987"], [153, "mov rax, [rbp+var_40]"], [154, "add rax, 50h "], [155, "mov [rbp+var_30], rax"], [156, "call sub_488E0A"], [157, "cmp eax, 3"], [158, "jle short loc_435980"], [159, "mov rax, [rbp+var_40]"], [160, "mov rcx, [rax+40h]"], [161, "mov rax, [rbp+var_40]"], [162, "mov rdi, [rax+48h]"], [163, "mov rax, [rbp+var_30]"], [164, "mov rsi, [rax]"], [165, "mov rax, [rbp+var_30]"], [166, "mov rax, [rax+8]"], [167, "mov rdx, [rbp+var_50]"], [168, "add rdx, 18h"], [169, "sub rsp, 8"], [170, "push rcx"], [171, "mov r9, rdi"], [172, "mov r8, rsi"], [173, "mov rcx, rax"], [174, "mov esi, offset aUnableToSetAut"], [175, "mov edi, offset aSipAuthClientC"], [176, "mov eax, 0"], [177, "call sub_48977E"], [178, "add rsp, 10h"], [179, "mov eax, 29C5Dh"], [180, "jmp short locret_4359C8"], [181, "mov rax, [rbp+var_58]"], [182, "mov rdi, [rax]"], [183, "mov rax, [rbp+var_50]"], [184, "mov rax, [rax+188h]"], [185, "lea r8, [rax+8]"], [186, "mov rcx, [rbp+var_20]"], [187, "mov rdx, [rbp+var_48]"], [188, "mov rsi, [rbp+var_40]"], [189, "mov rax, [rbp+var_38]"], [190, "push [rbp+arg_0]"], [191, "push [rbp+var_60]"], [192, "mov r9, rdi"], [193, "mov rdi, rax"], [194, "call sub_434E55"], [195, "add rsp, 10h"], [196, "mov [rbp+var_24], eax"], [197, "mov eax, [rbp+var_24]"], [198, "leave"], [199, "retn"]], "data_dep": [[10, 6], [11, 10], [12, 11], [13, 12], [15, 4], [16, 15], [17, 16], [18, 17], [19, 55], [19, 13], [19, 62], [20, 19], [21, 20], [22, 21], [23, 4], [24, 23], [25, 24], [26, 25], [27, 13], [27, 62], [27, 55], [28, 27], [29, 28], [30, 29], [31, 62], [31, 55], [31, 13], [32, 31], [33, 32], [34, 34], [34, 33], [35, 4], [36, 35], [37, 34], [38, 36], [40, 39], [41, 40], [42, 32], [43, 42], [45, 43], [47, 46], [48, 47], [49, 32], [50, 49], [51, 50], [52, 51], [53, 62], [53, 55], [53, 13], [54, 53], [55, 54], [56, 32], [57, 56], [60, 62], [60, 55], [60, 13], [61, 60], [62, 61], [63, 6], [64, 63], [65, 64], [66, 62], [66, 55], [66, 13], [66, 65], [67, 66], [68, 6], [69, 68], [70, 69], [71, 62], [71, 55], [71, 13], [71, 70], [72, 71], [73, 4], [74, 73], [75, 74], [76, 75], [77, 76], [78, 32], [78, 9], [79, 78], [79, 34], [80, 4], [81, 80], [82, 79], [83, 81], [85, 84], [86, 85], [86, 75], [87, 86], [89, 88], [90, 89], [91, 9], [91, 32], [92, 91], [93, 32], [93, 9], [94, 93], [95, 32], [95, 9], [96, 95], [97, 32], [97, 9], [98, 97], [99, 92], [100, 94], [101, 96], [102, 98], [109, 8], [110, 109], [111, 110], [111, 34], [111, 79], [112, 8], [113, 112], [113, 111], [114, 8], [115, 114], [115, 113], [116, 115], [117, 116], [119, 118], [120, 119], [121, 32], [121, 9], [122, 113], [122, 121], [123, 32], [123, 9], [124, 113], [124, 123], [125, 9], [125, 32], [126, 125], [126, 113], [127, 32], [127, 9], [128, 127], [128, 113], [129, 122], [130, 124], [131, 126], [132, 128], [139, 32], [139, 9], [140, 139], [142, 4], [143, 142], [143, 34], [143, 111], [143, 113], [144, 4], [145, 144], [145, 113], [146, 7], [147, 145], [148, 146], [150, 149], [151, 150], [152, 151], [153, 4], [154, 153], [155, 154], [157, 156], [158, 157], [159, 4], [160, 159], [160, 113], [161, 4], [162, 113], [162, 161], [163, 155], [164, 113], [164, 163], [165, 155], [166, 165], [166, 113], [167, 6], [168, 167], [169, 2], [170, 160], [171, 162], [172, 164], [173, 166], [178, 169], [181, 7], [182, 113], [182, 181], [183, 6], [184, 113], [184, 183], [185, 184], [185, 113], [186, 150], [187, 5], [188, 4], [189, 3], [191, 8], [192, 182], [193, 189], [195, 2], [196, 194], [197, 196], [199, 179], [199, 197], [199, 107], [199, 137]]}
{"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_4356C2", "query": "\n\n\n__int64 __fastcall sub_4356C2(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 *a5, __int64 a6, _QWORD *a7)\n{\n__int64 v12; // [rsp+40h] [rbp-20h]\nint v13; // [rsp+4Ch] [rbp-14h]\n__int64 v14; // [rsp+50h] [rbp-10h]\n_QWORD *v15; // [rsp+58h] [rbp-8h]\n\nv15 = 0LL;\nv14 = *(_QWORD *)(*(_QWORD *)(a4 + 392) + 48LL);\nwhile ( v14 != *(_QWORD *)(a4 + 392) + 40LL )\n{\nif ( (*(_DWORD *)(a2 + 16) == 43 && *(_DWORD *)(v14 + 16) == 6\n|| *(_DWORD *)(a2 + 16) == 26 && *(_DWORD *)(v14 + 16) == 27)\n&& (v15 = (_QWORD *)v14, !(unsigned int)sub_48DF7E(a2 + 80, v14 + 80)) )\n{\nif ( (unsigned int)sub_48DF7E(v14 + 64, &off_499E20) || *(_QWORD *)(v14 + 200) )\nbreak;\nv14 = *(_QWORD *)(v14 + 8);\nsub_487A5E(v15);\n}\nelse\n{\nv14 = *(_QWORD *)(v14 + 8);\n}\n}\nif ( v14 != *(_QWORD *)(a4 + 392) + 40LL )\n{\nv13 = *(_DWORD *)(a2 + 192);\nif ( !v13 )\nv13 = sub_48DD84(a2 + 160, v15 + 20);\nif ( !v13 )\n{\nif ( (int)sub_488E0A() > 3 )\nsub_48977E(\n(unsigned int)\"sip_auth_client.c\",\n(unsigned int)\"Authorization failed for %.*s@%.*s: server rejected with stale=false\",\nv15[19],\nv15[18],\nv15[11],\nv15[10]);\nreturn 171100LL;\n}\nif ( ++*(_DWORD *)(a6 + 48) > 2u )\n{\nif ( (int)sub_488E0A() > 3 )\nsub_48977E(\n(unsigned int)\"sip_auth_client.c\",\n(unsigned int)\"Authorization failed for %.*s@%.*s: maximum number of stale retries exceeded\",\nv15[19],\nv15[18],\nv15[11],\nv15[10]);\nreturn 171111LL;\n}\nsub_487A5E(v15);\n}\nv12 = sub_43471C((__int64)a5, a2 + 80);\nif ( v12 )\nreturn (unsigned int)sub_434E55(a1, a2, a3, v12, *(_QWORD *)(a4 + 392) + 8LL, *a5, a6, a7);\nif ( (int)sub_488E0A() > 3 )\nsub_48977E(\n(unsigned int)\"sip_auth_client.c\",\n(unsigned int)\"Unable to set auth for %s: can not find credential for %.*s/%.*s\",\na4 + 24,\n*(_QWORD *)(a2 + 88),\n*(_QWORD *)(a2 + 80),\n*(_QWORD *)(a2 + 72));\nreturn 171101LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,a7,v12,v13,v14,v15,sub_4356C2,sub_48DF7E,sub_487A5E,sub_48DD84,sub_488E0A,sub_48977E,sub_43471C,sub_434E55,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'uri', 'a4': 'tdata', 'a1': 'req_pool', 'a2': 'hchal', 'a5': 'sess', 'a6': 'cached_auth', 'a7': 'h_auth', 'v12': 'cred', 'v13': 'stale', 'v14': 'hdr', 'v15': 'sent_auth', 'sub_4356C2': 'process_auth', 'sub_48DF7E': 'pj_stricmp', 'sub_487A5E': 'pj_list_erase', 'sub_48DD84': 'pj_strcmp', 'sub_488E0A': 'pj_log_get_level', 'sub_48977E': 'pj_log_4', 'sub_43471C': 'auth_find_cred', 'sub_434E55': 'auth_respond'}"}