src
stringlengths
11
425k
codeart
stringlengths
257
560k
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}
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]]}