src
stringlengths
11
425k
codeart
stringlengths
257
560k
int main_lorenz(int argc, char *argv[]) { bam_plp_t plp; BGZF *fp; bam_hdr_t *h; const bam_pileup1_t *p; int i, c, n_plp, tid, pos, step = 1000; uint64_t *cnt, bed_len = 0, sum_partial = 0, cov = 0, tot = 0, tot_partial = 0; void *bed = 0; while ((c = getopt(argc, argv, "b:s:")) >= 0) { if (c == 'b') { bed = bed_read(optarg); bed_len = bed_totlen(bed); fprintf(stderr, "[M::%s] total length in BED: %ld\n", __func__, (long)bed_len); } else if (c == 's') step = atoi(optarg); } if (optind == argc) { fprintf(stderr, "Usage: lianti lorenz [-b bed] [-s step=%d] <aln.bam>\n", step); return 1; } cnt = (uint64_t*)calloc(MAX_DEPTH + 1, sizeof(uint64_t)); fp = bgzf_open(argv[optind], "r"); h = bam_hdr_read(fp); plp = bam_plp_init((bam_plp_auto_f)bam_read1, fp); while ((p = bam_plp_auto(plp, &tid, &pos, &n_plp)) != 0) { if (bed_overlap(bed, h->target_name[tid], pos, pos + 1)) ++cnt[n_plp < MAX_DEPTH? n_plp : MAX_DEPTH]; } for (i = 1; i <= MAX_DEPTH; ++i) cov += cnt[i]; cnt[0] = bed_len - cov; for (i = 0; i <= MAX_DEPTH; ++i) tot += cnt[i] * i; bam_plp_destroy(plp); printf("%.4f\t%.4f\n", 0., 0.); for (i = 0, sum_partial = tot_partial = 0; i <= MAX_DEPTH; ++i) { if (cnt[i] <= step) { sum_partial += cnt[i], tot_partial += i * cnt[i]; printf("%.4f\t%.4f\n", (double)sum_partial / bed_len, (double)tot_partial / tot); } else { uint64_t rest = cnt[i]; while (rest) { int x = rest < step? rest : step; sum_partial += x, tot_partial += i * x; printf("%.4f\t%.4f\n", (double)sum_partial / bed_len, (double)tot_partial / tot); rest -= x; } } } bam_hdr_destroy(h); bgzf_close(fp); free(cnt); if (bed) bed_destroy(bed); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_430613", "function_addr": 4392467, "binary_name": "18ba826ac31830a73aba61dc9990ca60507abe36300168b1d3124d77e38500a7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 90h"], [3, "mov [rbp+argc], edi"], [4, "mov [rbp+argv], rsi"], [5, "mov [rbp+var_8], 3E8h"], [6, "mov [rbp+var_10], 0"], [7, "mov [rbp+var_18], 0"], [8, "mov [rbp+var_20], 0"], [9, "mov [rbp+var_28], 0"], [10, "mov [rbp+var_30], 0"], [11, "mov [rbp+var_38], 0"], [12, "jmp short loc_4306CC"], [13, "cmp [rbp+var_44], 62h "], [14, "jnz short loc_4306B4"], [15, "mov rax, cs:optarg"], [16, "mov rdi, rax"], [17, "call sub_40F80C"], [18, "mov [rbp+var_38], rax"], [19, "mov rax, [rbp+var_38]"], [20, "mov rdi, rax"], [21, "call sub_40F29E"], [22, "mov [rbp+var_10], rax"], [23, "mov rdx, [rbp+var_10]"], [24, "mov rax, cs:stderr"], [25, "mov rcx, rdx"], [26, "mov edx, offset aMainLorenz"], [27, "mov esi, offset aMSTotalLengthI"], [28, "mov rdi, rax"], [29, "mov eax, 0"], [30, "call _fprintf"], [31, "jmp short loc_4306CC"], [32, "cmp [rbp+var_44], 73h "], [33, "jnz short loc_4306CC"], [34, "mov rax, cs:optarg"], [35, "mov rdi, rax"], [36, "call _atoi"], [37, "mov [rbp+var_8], eax"], [38, "mov rcx, [rbp+argv]"], [39, "mov eax, [rbp+argc]"], [40, "mov edx, offset aBS"], [41, "mov rsi, rcx"], [42, "mov edi, eax"], [43, "call _getopt"], [44, "mov [rbp+var_44], eax"], [45, "cmp [rbp+var_44], 0"], [46, "jns loc_430664"], [47, "mov eax, cs:optind"], [48, "cmp [rbp+argc], eax"], [49, "jnz short loc_430729"], [50, "mov rax, cs:stderr"], [51, "mov edx, [rbp+var_8]"], [52, "mov esi, offset aUsageLiantiLor"], [53, "mov rdi, rax"], [54, "mov eax, 0"], [55, "call _fprintf"], [56, "mov eax, 1"], [57, "jmp locret_430B9F"], [58, "mov esi, 8"], [59, "mov edi, 2711h"], [60, "call _calloc"], [61, "mov [rbp+ptr], rax"], [62, "mov eax, cs:optind"], [63, "cdqe"], [64, "lea rdx, ds:0[rax*8]"], [65, "mov rax, [rbp+argv]"], [66, "add rax, rdx"], [67, "mov rax, [rax]"], [68, "mov esi, offset aR_9"], [69, "mov rdi, rax"], [70, "call sub_4030B8"], [71, "mov [rbp+var_58], rax"], [72, "mov rax, [rbp+var_58]"], [73, "mov rdi, rax"], [74, "call sub_411F78"], [75, "mov [rbp+var_60], rax"], [76, "mov rax, [rbp+var_58]"], [77, "mov rsi, rax"], [78, "mov edi, offset sub_412A69"], [79, "call sub_4170B4"], [80, "mov [rbp+var_68], rax"], [81, "jmp short loc_4307F0"], [82, "mov eax, [rbp+var_80]"], [83, "lea ecx, [rax+1]"], [84, "mov edx, [rbp+var_80]"], [85, "mov rax, [rbp+var_60]"], [86, "mov rsi, [rax+20h]"], [87, "mov eax, [rbp+var_7C]"], [88, "cdqe"], [89, "shl rax, 3"], [90, "add rax, rsi"], [91, "mov rsi, [rax]"], [92, "mov rax, [rbp+var_38]"], [93, "mov rdi, rax"], [94, "call sub_40F78B"], [95, "test eax, eax"], [96, "jz short loc_4307F0"], [97, "mov eax, [rbp+var_78]"], [98, "cmp eax, 270Fh"], [99, "jg short loc_4307DA"], [100, "mov eax, [rbp+var_78]"], [101, "cdqe"], [102, "lea rdx, ds:0[rax*8]"], [103, "jmp short loc_4307DF"], [104, "mov edx, 13880h"], [105, "mov rax, [rbp+ptr]"], [106, "add rax, rdx"], [107, "mov rdx, [rax]"], [108, "add rdx, 1"], [109, "mov [rax], rdx"], [110, "lea rcx, [rbp+var_78]"], [111, "lea rdx, [rbp+var_80]"], [112, "lea rsi, [rbp+var_7C]"], [113, "mov rax, [rbp+var_68]"], [114, "mov rdi, rax"], [115, "call sub_417875"], [116, "mov [rbp+var_70], rax"], [117, "cmp [rbp+var_70], 0"], [118, "jnz loc_430791"], [119, "mov [rbp+var_4], 1"], [120, "jmp short loc_43083F"], [121, "mov eax, [rbp+var_4]"], [122, "cdqe"], [123, "lea rdx, ds:0[rax*8]"], [124, "mov rax, [rbp+ptr]"], [125, "add rax, rdx"], [126, "mov rax, [rax]"], [127, "add [rbp+var_20], rax"], [128, "add [rbp+var_4], 1"], [129, "cmp [rbp+var_4], 2710h"], [130, "jle short loc_430820"], [131, "mov rax, [rbp+var_10]"], [132, "sub rax, [rbp+var_20]"], [133, "mov rdx, rax"], [134, "mov rax, [rbp+ptr]"], [135, "mov [rax], rdx"], [136, "mov [rbp+var_4], 0"], [137, "jmp short loc_43088B"], [138, "mov eax, [rbp+var_4]"], [139, "cdqe"], [140, "lea rdx, ds:0[rax*8]"], [141, "mov rax, [rbp+ptr]"], [142, "add rax, rdx"], [143, "mov rdx, [rax]"], [144, "mov eax, [rbp+var_4]"], [145, "cdqe"], [146, "imul rax, rdx"], [147, "add [rbp+var_28], rax"], [148, "add [rbp+var_4], 1"], [149, "cmp [rbp+var_4], 2710h"], [150, "jle short loc_430863"], [151, "mov rax, [rbp+var_68]"], [152, "mov rdi, rax"], [153, "call sub_417187"], [154, "pxor xmm1, xmm1"], [155, "pxor xmm0, xmm0"], [156, "mov edi, offset a4f4f"], [157, "mov eax, 2"], [158, "call _printf"], [159, "mov [rbp+var_4], 0"], [160, "mov [rbp+var_30], 0"], [161, "mov rax, [rbp+var_30]"], [162, "mov [rbp+var_18], rax"], [163, "jmp loc_430B56"], [164, "mov eax, [rbp+var_4]"], [165, "cdqe"], [166, "lea rdx, ds:0[rax*8]"], [167, "mov rax, [rbp+ptr]"], [168, "add rax, rdx"], [169, "mov rdx, [rax]"], [170, "mov eax, [rbp+var_8]"], [171, "cdqe"], [172, "cmp rdx, rax"], [173, "ja loc_430A1A"], [174, "mov eax, [rbp+var_4]"], [175, "cdqe"], [176, "lea rdx, ds:0[rax*8]"], [177, "mov rax, [rbp+ptr]"], [178, "add rax, rdx"], [179, "mov rax, [rax]"], [180, "add [rbp+var_18], rax"], [181, "mov eax, [rbp+var_4]"], [182, "movsxd rdx, eax"], [183, "mov eax, [rbp+var_4]"], [184, "cdqe"], [185, "lea rcx, ds:0[rax*8]"], [186, "mov rax, [rbp+ptr]"], [187, "add rax, rcx"], [188, "mov rax, [rax]"], [189, "imul rax, rdx"], [190, "add [rbp+var_30], rax"], [191, "mov rax, [rbp+var_30]"], [192, "test rax, rax"], [193, "js short loc_43094C"], [194, "pxor xmm0, xmm0"], [195, "cvtsi2sd xmm0, rax"], [196, "jmp short loc_430965"], [197, "mov rdx, rax"], [198, "shr rdx, 1"], [199, "and eax, 1"], [200, "or rdx, rax"], [201, "pxor xmm0, xmm0"], [202, "cvtsi2sd xmm0, rdx"], [203, "addsd xmm0, xmm0"], [204, "mov rax, [rbp+var_28]"], [205, "test rax, rax"], [206, "js short loc_430979"], [207, "pxor xmm1, xmm1"], [208, "cvtsi2sd xmm1, rax"], [209, "jmp short loc_430992"], [210, "mov rdx, rax"], [211, "shr rdx, 1"], [212, "and eax, 1"], [213, "or rdx, rax"], [214, "pxor xmm1, xmm1"], [215, "cvtsi2sd xmm1, rdx"], [216, "addsd xmm1, xmm1"], [217, "movapd xmm2, xmm0"], [218, "divsd xmm2, xmm1"], [219, "mov rax, [rbp+var_18]"], [220, "test rax, rax"], [221, "js short loc_4309AE"], [222, "pxor xmm0, xmm0"], [223, "cvtsi2sd xmm0, rax"], [224, "jmp short loc_4309C7"], [225, "mov rdx, rax"], [226, "shr rdx, 1"], [227, "and eax, 1"], [228, "or rdx, rax"], [229, "pxor xmm0, xmm0"], [230, "cvtsi2sd xmm0, rdx"], [231, "addsd xmm0, xmm0"], [232, "mov rax, [rbp+var_10]"], [233, "test rax, rax"], [234, "js short loc_4309DB"], [235, "pxor xmm1, xmm1"], [236, "cvtsi2sd xmm1, rax"], [237, "jmp short loc_4309F4"], [238, "mov rdx, rax"], [239, "shr rdx, 1"], [240, "and eax, 1"], [241, "or rdx, rax"], [242, "pxor xmm1, xmm1"], [243, "cvtsi2sd xmm1, rdx"], [244, "addsd xmm1, xmm1"], [245, "divsd xmm0, xmm1"], [246, "movq rax, xmm0"], [247, "movapd xmm1, xmm2"], [248, "movq xmm0, rax"], [249, "mov edi, offset a4f4f"], [250, "mov eax, 2"], [251, "call _printf"], [252, "jmp loc_430B52"], [253, "mov eax, [rbp+var_4]"], [254, "cdqe"], [255, "lea rdx, ds:0[rax*8]"], [256, "mov rax, [rbp+ptr]"], [257, "add rax, rdx"], [258, "mov rax, [rax]"], [259, "mov [rbp+var_40], rax"], [260, "jmp loc_430B47"], [261, "mov eax, [rbp+var_8]"], [262, "cdqe"], [263, "cmp [rbp+var_40], rax"], [264, "cmovbe rax, [rbp+var_40]"], [265, "mov [rbp+var_74], eax"], [266, "mov eax, [rbp+var_74]"], [267, "cdqe"], [268, "add [rbp+var_18], rax"], [269, "mov eax, [rbp+var_4]"], [270, "imul eax, [rbp+var_74]"], [271, "cdqe"], [272, "add [rbp+var_30], rax"], [273, "mov rax, [rbp+var_30]"], [274, "test rax, rax"], [275, "js short loc_430A75"], [276, "pxor xmm0, xmm0"], [277, "cvtsi2sd xmm0, rax"], [278, "jmp short loc_430A8E"], [279, "mov rdx, rax"], [280, "shr rdx, 1"], [281, "and eax, 1"], [282, "or rdx, rax"], [283, "pxor xmm0, xmm0"], [284, "cvtsi2sd xmm0, rdx"], [285, "addsd xmm0, xmm0"], [286, "mov rax, [rbp+var_28]"], [287, "test rax, rax"], [288, "js short loc_430AA2"], [289, "pxor xmm1, xmm1"], [290, "cvtsi2sd xmm1, rax"], [291, "jmp short loc_430ABB"], [292, "mov rdx, rax"], [293, "shr rdx, 1"], [294, "and eax, 1"], [295, "or rdx, rax"], [296, "pxor xmm1, xmm1"], [297, "cvtsi2sd xmm1, rdx"], [298, "addsd xmm1, xmm1"], [299, "movapd xmm2, xmm0"], [300, "divsd xmm2, xmm1"], [301, "mov rax, [rbp+var_18]"], [302, "test rax, rax"], [303, "js short loc_430AD7"], [304, "pxor xmm0, xmm0"], [305, "cvtsi2sd xmm0, rax"], [306, "jmp short loc_430AF0"], [307, "mov rdx, rax"], [308, "shr rdx, 1"], [309, "and eax, 1"], [310, "or rdx, rax"], [311, "pxor xmm0, xmm0"], [312, "cvtsi2sd xmm0, rdx"], [313, "addsd xmm0, xmm0"], [314, "mov rax, [rbp+var_10]"], [315, "test rax, rax"], [316, "js short loc_430B04"], [317, "pxor xmm1, xmm1"], [318, "cvtsi2sd xmm1, rax"], [319, "jmp short loc_430B1D"], [320, "mov rdx, rax"], [321, "shr rdx, 1"], [322, "and eax, 1"], [323, "or rdx, rax"], [324, "pxor xmm1, xmm1"], [325, "cvtsi2sd xmm1, rdx"], [326, "addsd xmm1, xmm1"], [327, "divsd xmm0, xmm1"], [328, "movq rax, xmm0"], [329, "movapd xmm1, xmm2"], [330, "movq xmm0, rax"], [331, "mov edi, offset a4f4f"], [332, "mov eax, 2"], [333, "call _printf"], [334, "mov eax, [rbp+var_74]"], [335, "cdqe"], [336, "sub [rbp+var_40], rax"], [337, "cmp [rbp+var_40], 0"], [338, "jnz loc_430A3A"], [339, "add [rbp+var_4], 1"], [340, "cmp [rbp+var_4], 2710h"], [341, "jle loc_4308D3"], [342, "mov rax, [rbp+var_60]"], [343, "mov rdi, rax"], [344, "call sub_411D2A"], [345, "mov rax, [rbp+var_58]"], [346, "mov rdi, rax"], [347, "call sub_4046AD"], [348, "mov rax, [rbp+ptr]"], [349, "mov rdi, rax"], [350, "call _free"], [351, "cmp [rbp+var_38], 0"], [352, "jz short loc_430B9A"], [353, "mov rax, [rbp+var_38]"], [354, "mov rdi, rax"], [355, "call sub_40FB87"], [356, "mov eax, 0"], [357, "leave"], [358, "retn"]], "data_dep": [[13, 44], [14, 13], [16, 15], [18, 17], [19, 18], [20, 19], [22, 21], [23, 22], [25, 23], [28, 24], [32, 44], [33, 32], [35, 34], [37, 36], [38, 4], [39, 3], [41, 38], [42, 39], [44, 43], [45, 44], [46, 45], [48, 3], [48, 47], [49, 48], [51, 37], [51, 5], [53, 50], [61, 60], [64, 40], [65, 4], [66, 65], [66, 64], [67, 66], [69, 67], [71, 70], [72, 71], [73, 72], [75, 74], [76, 71], [77, 76], [80, 79], [83, 109], [83, 110], [83, 82], [85, 75], [86, 109], [86, 85], [89, 87], [90, 86], [90, 89], [91, 109], [91, 90], [92, 11], [92, 18], [93, 92], [95, 94], [96, 95], [98, 97], [99, 98], [102, 84], [105, 61], [106, 102], [106, 105], [106, 104], [107, 106], [107, 109], [108, 107], [109, 106], [109, 108], [110, 38], [110, 83], [111, 64], [111, 108], [111, 84], [112, 91], [112, 77], [113, 80], [114, 113], [116, 115], [117, 116], [118, 117], [121, 119], [121, 128], [123, 111], [123, 123], [124, 61], [125, 124], [125, 123], [126, 125], [126, 109], [127, 127], [127, 126], [127, 8], [128, 119], [128, 128], [129, 128], [129, 119], [130, 129], [131, 22], [131, 6], [132, 127], [132, 131], [132, 8], [133, 132], [134, 61], [135, 134], [135, 133], [138, 136], [138, 148], [140, 143], [140, 133], [141, 61], [142, 140], [142, 141], [143, 135], [143, 142], [143, 109], [144, 136], [144, 148], [146, 144], [146, 143], [147, 9], [147, 147], [147, 146], [148, 136], [148, 148], [149, 136], [149, 148], [150, 149], [151, 80], [152, 151], [161, 160], [162, 161], [164, 339], [164, 159], [166, 143], [166, 255], [166, 282], [166, 241], [166, 133], [166, 213], [166, 310], [166, 323], [166, 295], [166, 228], [166, 182], [166, 200], [167, 61], [168, 167], [168, 166], [169, 109], [169, 168], [169, 135], [170, 5], [170, 37], [172, 170], [172, 169], [173, 172], [174, 159], [174, 339], [176, 169], [177, 61], [178, 177], [178, 176], [179, 178], [179, 109], [179, 135], [180, 162], [180, 268], [180, 180], [180, 179], [181, 159], [181, 339], [182, 181], [183, 339], [183, 159], [185, 110], [185, 185], [186, 61], [187, 186], [187, 185], [188, 187], [188, 109], [188, 135], [189, 182], [189, 188], [190, 189], [190, 160], [190, 272], [190, 190], [191, 190], [192, 191], [193, 192], [195, 192], [195, 194], [197, 192], [198, 197], [199, 192], [200, 199], [200, 198], [202, 200], [202, 201], [203, 202], [204, 9], [204, 147], [205, 204], [206, 205], [208, 205], [208, 207], [210, 205], [211, 210], [212, 205], [213, 212], [213, 211], [215, 214], [215, 213], [216, 215], [217, 203], [217, 195], [218, 208], [218, 217], [218, 216], [219, 180], [220, 219], [221, 220], [223, 222], [223, 220], [225, 220], [226, 225], [227, 220], [228, 226], [228, 227], [230, 229], [230, 228], [231, 230], [232, 22], [232, 6], [233, 232], [234, 233], [236, 235], [236, 233], [238, 233], [239, 238], [240, 233], [241, 240], [241, 239], [243, 242], [243, 241], [244, 243], [245, 236], [245, 231], [245, 244], [245, 223], [246, 245], [247, 218], [248, 246], [253, 159], [253, 339], [255, 169], [256, 61], [257, 256], [257, 255], [258, 109], [258, 257], [258, 135], [259, 258], [261, 37], [261, 5], [263, 336], [263, 261], [263, 259], [264, 259], [264, 263], [264, 336], [265, 264], [266, 265], [268, 266], [268, 162], [268, 180], [268, 268], [269, 159], [269, 339], [270, 265], [270, 269], [272, 272], [272, 160], [272, 270], [272, 190], [273, 272], [274, 273], [275, 274], [277, 276], [277, 274], [279, 274], [280, 279], [281, 274], [282, 280], [282, 281], [284, 283], [284, 282], [285, 284], [286, 147], [286, 9], [287, 286], [288, 287], [290, 289], [290, 287], [292, 287], [293, 292], [294, 287], [295, 294], [295, 293], [297, 296], [297, 295], [298, 297], [299, 277], [299, 285], [300, 290], [300, 299], [300, 298], [301, 268], [302, 301], [303, 302], [305, 302], [305, 304], [307, 302], [308, 307], [309, 302], [310, 309], [310, 308], [312, 311], [312, 310], [313, 312], [314, 22], [314, 6], [315, 314], [316, 315], [318, 315], [318, 317], [320, 315], [321, 320], [322, 315], [323, 322], [323, 321], [325, 324], [325, 323], [326, 325], [327, 305], [327, 318], [327, 313], [327, 326], [328, 327], [329, 300], [330, 328], [334, 265], [336, 334], [336, 259], [336, 336], [337, 259], [337, 336], [338, 337], [339, 159], [339, 339], [340, 159], [340, 339], [341, 340], [342, 75], [343, 342], [345, 71], [346, 345], [348, 61], [349, 348], [351, 11], [351, 18], [352, 351], [353, 11], [353, 18], [354, 353], [358, 56], [358, 356]]}
static void raw_close(BlockDriverState *bs) { BDRVRawState *s = bs->opaque; if (s->fd >= 0) { close(s->fd); s->fd = -1; if (s->aligned_buf != NULL) qemu_vfree(s->aligned_buf); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_442330", "function_addr": 4465456, "binary_name": "cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, fs:28h"], [5, "mov [rbp+var_8], rax"], [6, "xor eax, eax"], [7, "mov rax, [rbp+var_18]"], [8, "mov rax, [rax+48h]"], [9, "mov [rbp+var_10], rax"], [10, "mov rax, [rbp+var_10]"], [11, "mov eax, [rax]"], [12, "test eax, eax"], [13, "js short loc_442395"], [14, "mov rax, [rbp+var_10]"], [15, "mov eax, [rax]"], [16, "mov edi, eax"], [17, "call _close"], [18, "mov rax, [rbp+var_10]"], [19, "mov dword ptr [rax], 0FFFFFFFFh"], [20, "mov rax, [rbp+var_10]"], [21, "mov rax, [rax+38h]"], [22, "test rax, rax"], [23, "jz short loc_442395"], [24, "mov rax, [rbp+var_10]"], [25, "mov rax, [rax+38h]"], [26, "mov rdi, rax"], [27, "call sub_4060BA"], [28, "nop"], [29, "mov rax, [rbp+var_8]"], [30, "sub rax, fs:28h"], [31, "jz short locret_4423AA"], [32, "call ___stack_chk_fail"], [33, "leave"], [34, "retn"]], "data_dep": [[5, 4], [7, 3], [8, 7], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [14, 9], [15, 14], [16, 15], [18, 9], [19, 18], [20, 9], [21, 19], [21, 20], [22, 21], [23, 22], [24, 9], [25, 19], [25, 24], [26, 25], [29, 5], [30, 29], [31, 30], [34, 30]]}
static DTableDesc HUFv07_getDTableDesc(const HUFv07_DTable* table) { DTableDesc dtd; memcpy(&dtd, table, sizeof(dtd)); return dtd; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43DC88", "function_addr": 4447368, "binary_name": "a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.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 eax, [rax]"], [5, "mov [rbp+var_4], eax"], [6, "mov eax, [rbp+var_4]"], [7, "pop rbp"], [8, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [7, 0], [8, 6]]}
int btf_type_visit_str_offs(struct btf_type *t, str_off_visit_fn visit, void *ctx) { int i, n, err; err = visit(&t->name_off, ctx); if (err) return err; switch (btf_kind(t)) { case BTF_KIND_STRUCT: case BTF_KIND_UNION: { struct btf_member *m = btf_members(t); for (i = 0, n = btf_vlen(t); i < n; i++, m++) { err = visit(&m->name_off, ctx); if (err) return err; } break; } case BTF_KIND_ENUM: { struct btf_enum *m = btf_enum(t); for (i = 0, n = btf_vlen(t); i < n; i++, m++) { err = visit(&m->name_off, ctx); if (err) return err; } break; } case BTF_KIND_FUNC_PROTO: { struct btf_param *m = btf_params(t); for (i = 0, n = btf_vlen(t); i < n; i++, m++) { err = visit(&m->name_off, ctx); if (err) return err; } break; } default: break; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42F248", "function_addr": 4387400, "binary_name": "feda8be2137e1ca53e8082ecae6cfbea19ddaf0e7963aa620ad58be1c3aa369b.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_48], rdx"], [6, "mov rax, [rbp+var_38]"], [7, "mov rdx, [rbp+var_48]"], [8, "mov rcx, [rbp+var_40]"], [9, "mov rsi, rdx"], [10, "mov rdi, rax"], [11, "call rcx"], [12, "mov [rbp+var_24], eax"], [13, "cmp [rbp+var_24], 0"], [14, "jz short loc_42F281"], [15, "mov eax, [rbp+var_24]"], [16, "jmp locret_42F3E7"], [17, "mov rax, [rbp+var_38]"], [18, "mov rdi, rax"], [19, "call sub_427027"], [20, "movzx eax, ax"], [21, "cmp eax, 0Dh"], [22, "jz loc_42F381"], [23, "cmp eax, 0Dh"], [24, "jg loc_42F3E1"], [25, "cmp eax, 5"], [26, "jg short loc_42F2B1"], [27, "cmp eax, 4"], [28, "jge short loc_42F2BB"], [29, "jmp loc_42F3E1"], [30, "cmp eax, 6"], [31, "jz short loc_42F321"], [32, "jmp loc_42F3E1"], [33, "mov rax, [rbp+var_38]"], [34, "mov rdi, rax"], [35, "call sub_427253"], [36, "mov [rbp+var_10], rax"], [37, "mov [rbp+var_4], 0"], [38, "mov rax, [rbp+var_38]"], [39, "mov rdi, rax"], [40, "call sub_42703E"], [41, "movzx eax, ax"], [42, "mov [rbp+var_28], eax"], [43, "jmp short loc_42F314"], [44, "mov rax, [rbp+var_10]"], [45, "mov rdx, [rbp+var_48]"], [46, "mov rcx, [rbp+var_40]"], [47, "mov rsi, rdx"], [48, "mov rdi, rax"], [49, "call rcx"], [50, "mov [rbp+var_24], eax"], [51, "cmp [rbp+var_24], 0"], [52, "jz short loc_42F30B"], [53, "mov eax, [rbp+var_24]"], [54, "jmp locret_42F3E7"], [55, "add [rbp+var_4], 1"], [56, "add [rbp+var_10], 0Ch"], [57, "mov eax, [rbp+var_4]"], [58, "cmp eax, [rbp+var_28]"], [59, "jl short loc_42F2E6"], [60, "jmp loc_42F3E2"], [61, "mov rax, [rbp+var_38]"], [62, "mov rdi, rax"], [63, "call sub_427241"], [64, "mov [rbp+var_18], rax"], [65, "mov [rbp+var_4], 0"], [66, "mov rax, [rbp+var_38]"], [67, "mov rdi, rax"], [68, "call sub_42703E"], [69, "movzx eax, ax"], [70, "mov [rbp+var_28], eax"], [71, "jmp short loc_42F377"], [72, "mov rax, [rbp+var_18]"], [73, "mov rdx, [rbp+var_48]"], [74, "mov rcx, [rbp+var_40]"], [75, "mov rsi, rdx"], [76, "mov rdi, rax"], [77, "call rcx"], [78, "mov [rbp+var_24], eax"], [79, "cmp [rbp+var_24], 0"], [80, "jz short loc_42F36E"], [81, "mov eax, [rbp+var_24]"], [82, "jmp short locret_42F3E7"], [83, "add [rbp+var_4], 1"], [84, "add [rbp+var_18], 8"], [85, "mov eax, [rbp+var_4]"], [86, "cmp eax, [rbp+var_28]"], [87, "jl short loc_42F34C"], [88, "jmp short loc_42F3E2"], [89, "mov rax, [rbp+var_38]"], [90, "mov rdi, rax"], [91, "call sub_427265"], [92, "mov [rbp+var_20], rax"], [93, "mov [rbp+var_4], 0"], [94, "mov rax, [rbp+var_38]"], [95, "mov rdi, rax"], [96, "call sub_42703E"], [97, "movzx eax, ax"], [98, "mov [rbp+var_28], eax"], [99, "jmp short loc_42F3D7"], [100, "mov rax, [rbp+var_20]"], [101, "mov rdx, [rbp+var_48]"], [102, "mov rcx, [rbp+var_40]"], [103, "mov rsi, rdx"], [104, "mov rdi, rax"], [105, "call rcx"], [106, "mov [rbp+var_24], eax"], [107, "cmp [rbp+var_24], 0"], [108, "jz short loc_42F3CE"], [109, "mov eax, [rbp+var_24]"], [110, "jmp short locret_42F3E7"], [111, "add [rbp+var_4], 1"], [112, "add [rbp+var_20], 8"], [113, "mov eax, [rbp+var_4]"], [114, "cmp eax, [rbp+var_28]"], [115, "jl short loc_42F3AC"], [116, "jmp short loc_42F3E2"], [117, "nop"], [118, "mov eax, 0"], [119, "leave"], [120, "retn"]], "data_dep": [[6, 3], [7, 5], [8, 4], [9, 7], [10, 6], [11, 8], [12, 11], [13, 12], [14, 13], [15, 12], [17, 3], [18, 17], [20, 19], [21, 20], [22, 21], [23, 20], [24, 23], [25, 20], [26, 25], [27, 20], [28, 27], [30, 20], [31, 30], [33, 3], [34, 33], [36, 35], [38, 3], [39, 38], [41, 40], [42, 41], [44, 36], [44, 56], [45, 5], [46, 4], [47, 45], [48, 44], [49, 46], [50, 49], [51, 50], [52, 51], [53, 50], [55, 37], [55, 55], [56, 36], [56, 56], [57, 37], [57, 55], [58, 42], [58, 57], [59, 58], [61, 3], [62, 61], [64, 63], [66, 3], [67, 66], [69, 68], [70, 69], [72, 84], [72, 64], [73, 5], [74, 4], [75, 73], [76, 72], [77, 74], [78, 77], [79, 78], [80, 79], [81, 78], [83, 65], [83, 83], [84, 84], [84, 64], [85, 65], [85, 83], [86, 85], [86, 70], [87, 86], [89, 3], [90, 89], [92, 91], [94, 3], [95, 94], [97, 96], [98, 97], [100, 92], [100, 112], [101, 5], [102, 4], [103, 101], [104, 100], [105, 102], [106, 105], [107, 106], [108, 107], [109, 106], [111, 93], [111, 111], [112, 92], [112, 112], [113, 93], [113, 111], [114, 113], [114, 98], [115, 114], [120, 81], [120, 53], [120, 15], [120, 109], [120, 118]]}
static DecodeStatus DecodeModImmInstruction(MCInst *Inst, uint32_t insn, uint64_t Addr, void *Decoder) { unsigned Rd = fieldFromInstruction(insn, 0, 5); unsigned cmode = fieldFromInstruction(insn, 12, 4); unsigned imm = fieldFromInstruction(insn, 16, 3) << 5; imm |= fieldFromInstruction(insn, 5, 5); if (MCInst_getOpcode(Inst) == AArch64_MOVID) DecodeFPR64RegisterClass(Inst, Rd, Addr, Decoder); else DecodeVectorRegisterClass(Inst, Rd, Addr, Decoder); MCOperand_CreateImm0(Inst, imm); switch (MCInst_getOpcode(Inst)) { default: break; case AArch64_MOVIv4i16: case AArch64_MOVIv8i16: case AArch64_MVNIv4i16: case AArch64_MVNIv8i16: case AArch64_MOVIv2i32: case AArch64_MOVIv4i32: case AArch64_MVNIv2i32: case AArch64_MVNIv4i32: MCOperand_CreateImm0(Inst, (cmode & 6) << 2); break; case AArch64_MOVIv2s_msl: case AArch64_MOVIv4s_msl: case AArch64_MVNIv2s_msl: case AArch64_MVNIv4s_msl: MCOperand_CreateImm0(Inst, cmode & 1 ? 0x110 : 0x108); break; } return Success; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_469090", "function_addr": 4624528, "binary_name": "23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_30], rcx"], [7, "mov eax, [rbp+var_1C]"], [8, "mov edx, 5"], [9, "mov esi, 0"], [10, "mov edi, eax"], [11, "call sub_4517D7"], [12, "mov [rbp+var_4], eax"], [13, "mov eax, [rbp+var_1C]"], [14, "mov edx, 4"], [15, "mov esi, 0Ch"], [16, "mov edi, eax"], [17, "call sub_4517D7"], [18, "mov [rbp+var_8], eax"], [19, "mov eax, [rbp+var_1C]"], [20, "mov edx, 3"], [21, "mov esi, 10h"], [22, "mov edi, eax"], [23, "call sub_4517D7"], [24, "shl eax, 5"], [25, "mov [rbp+var_C], eax"], [26, "mov eax, [rbp+var_1C]"], [27, "mov edx, 5"], [28, "mov esi, 5"], [29, "mov edi, eax"], [30, "call sub_4517D7"], [31, "or [rbp+var_C], eax"], [32, "mov rax, [rbp+var_18]"], [33, "mov rdi, rax"], [34, "call sub_4050C9"], [35, "cmp eax, 448h"], [36, "jnz short loc_469132"], [37, "mov rcx, [rbp+var_30]"], [38, "mov rdx, [rbp+var_28]"], [39, "mov esi, [rbp+var_4]"], [40, "mov rax, [rbp+var_18]"], [41, "mov rdi, rax"], [42, "call sub_4672B6"], [43, "jmp short loc_469149"], [44, "mov rcx, [rbp+var_30]"], [45, "mov rdx, [rbp+var_28]"], [46, "mov esi, [rbp+var_4]"], [47, "mov rax, [rbp+var_18]"], [48, "mov rdi, rax"], [49, "call sub_467570"], [50, "mov edx, [rbp+var_C]"], [51, "mov rax, [rbp+var_18]"], [52, "mov rsi, rdx"], [53, "mov rdi, rax"], [54, "call sub_405338"], [55, "mov rax, [rbp+var_18]"], [56, "mov rdi, rax"], [57, "call sub_4050C9"], [58, "sub eax, 44Bh"], [59, "cmp eax, 29h"], [60, "ja short def_469191"], [61, "mov eax, eax"], [62, "lea rdx, ds:0[rax*4]"], [63, "lea rax, jpt_469191"], [64, "mov eax, ds:(jpt_469191 - 511844h)[rdx+rax]"], [65, "cdqe"], [66, "lea rdx, jpt_469191"], [67, "add rax, rdx"], [68, "jmp rax"], [69, "mov eax, [rbp+var_8]"], [70, "shl eax, 2"], [71, "mov eax, eax"], [72, "and eax, 18h"], [73, "mov rdx, rax"], [74, "mov rax, [rbp+var_18]"], [75, "mov rsi, rdx"], [76, "mov rdi, rax"], [77, "call sub_405338"], [78, "jmp short loc_4691DA"], [79, "mov eax, [rbp+var_8]"], [80, "and eax, 1"], [81, "test eax, eax"], [82, "jz short loc_4691C3"], [83, "mov edx, 110h"], [84, "jmp short loc_4691C8"], [85, "mov edx, 108h"], [86, "mov rax, [rbp+var_18]"], [87, "mov rsi, rdx"], [88, "mov rdi, rax"], [89, "call sub_405338"], [90, "jmp short loc_4691DA"], [91, "nop"], [92, "mov eax, 3"], [93, "leave"], [94, "retn"]], "data_dep": [[7, 4], [10, 7], [12, 11], [13, 4], [16, 13], [18, 17], [19, 4], [22, 19], [24, 23], [25, 24], [26, 4], [29, 26], [31, 25], [31, 30], [32, 3], [33, 32], [35, 34], [36, 35], [37, 6], [38, 5], [39, 12], [40, 3], [41, 40], [44, 6], [45, 5], [46, 12], [47, 3], [48, 47], [50, 31], [51, 3], [52, 50], [53, 51], [55, 3], [56, 55], [58, 57], [59, 58], [60, 59], [61, 58], [62, 50], [63, 61], [66, 62], [67, 64], [67, 66], [68, 67], [69, 18], [70, 69], [71, 70], [72, 71], [73, 72], [74, 3], [75, 73], [76, 74], [79, 18], [80, 79], [81, 80], [82, 81], [86, 3], [87, 83], [87, 85], [88, 86], [94, 92]]}
static void ZSTDv05_copy4(void* dst, const void* src) { memcpy(dst, src, 4); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_431843", "function_addr": 4397123, "binary_name": "a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_10], rsi"], [4, "mov rax, [rbp+var_10]"], [5, "mov edx, [rax]"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rax], edx"], [8, "nop"], [9, "pop rbp"], [10, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 2], [7, 6], [7, 5], [9, 0], [10, 6]]}
int Stack_pop(Stack *stack, void *elem) { if (stack->nelems == 0) return 1; stack->nelems--; memcpy(elem, &((uint8_t *)(stack->data))[stack->nelems * stack->elem_size], stack->elem_size); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401287", "function_addr": 4199047, "binary_name": "67d5b516845f1a5189b619fa08251f200ed0c551fc567a5346241564c352debb.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+dest], rsi"], [5, "mov rax, [rbp+var_8]"], [6, "mov rax, [rax+8]"], [7, "test rax, rax"], [8, "jnz short loc_4012AB"], [9, "mov eax, 1"], [10, "jmp short locret_4012FA"], [11, "mov rax, [rbp+var_8]"], [12, "mov rax, [rax+8]"], [13, "lea rdx, [rax-1]"], [14, "mov rax, [rbp+var_8]"], [15, "mov [rax+8], rdx"], [16, "mov rax, [rbp+var_8]"], [17, "mov rdx, [rax+10h]"], [18, "mov rax, [rbp+var_8]"], [19, "mov rsi, [rax]"], [20, "mov rax, [rbp+var_8]"], [21, "mov rcx, [rax+8]"], [22, "mov rax, [rbp+var_8]"], [23, "mov rax, [rax+10h]"], [24, "imul rax, rcx"], [25, "lea rcx, [rsi+rax]"], [26, "mov rax, [rbp+dest]"], [27, "mov rsi, rcx"], [28, "mov rdi, rax"], [29, "call _memcpy"], [30, "mov eax, 0"], [31, "leave"], [32, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [11, 3], [12, 11], [13, 12], [14, 3], [15, 14], [15, 13], [16, 3], [17, 15], [17, 16], [18, 3], [19, 18], [19, 15], [20, 3], [21, 15], [21, 20], [22, 3], [23, 22], [23, 15], [24, 23], [24, 21], [25, 15], [25, 21], [25, 24], [26, 4], [27, 25], [28, 26], [32, 9], [32, 30]]}
int dm_msg_cache_deinit(void) { dm_msg_cache_ctx_t *ctx = _dm_msg_cache_get_ctx(); dm_msg_cache_node_t *node = NULL; dm_msg_cache_node_t *next = NULL; _dm_msg_cache_mutex_lock(); list_for_each_entry_safe(node, next, &ctx->dmc_list, linked_list, dm_msg_cache_node_t) { list_del(&node->linked_list); if (node->data) { DM_free(node->data); } DM_free(node); _dm_msg_cache_mutex_unlock(); } _dm_msg_cache_mutex_unlock(); if (ctx->mutex) { HAL_MutexDestroy(ctx->mutex); } return SUCCESS_RETURN; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "dm_msg_cache_deinit", "function_addr": 4335462, "binary_name": "9bbc9de5dd57f4f934e24f9b8a7ac1dacad3c7a25e14002cbd8d0494c83f5fb1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "call _dm_msg_cache_get_ctx"], [4, "mov [rbp+var_18], rax"], [5, "mov [rbp+var_8], 0"], [6, "mov [rbp+var_10], 0"], [7, "call sub_4226AB"], [8, "mov rax, [rbp+var_18]"], [9, "mov rax, [rax+18h]"], [10, "sub rax, 20h "], [11, "mov [rbp+var_8], rax"], [12, "mov rax, [rbp+var_8]"], [13, "mov rax, [rax+28h]"], [14, "sub rax, 20h "], [15, "mov [rbp+var_10], rax"], [16, "jmp loc_4228B5"], [17, "mov rax, [rbp+var_8]"], [18, "add rax, 20h "], [19, "mov rdi, rax"], [20, "call sub_422645"], [21, "mov rax, [rbp+var_8]"], [22, "mov rax, [rax+10h]"], [23, "test rax, rax"], [24, "jz short loc_42283C"], [25, "mov rax, [rbp+var_8]"], [26, "mov rax, [rax+10h]"], [27, "test rax, rax"], [28, "jnz short loc_422814"], [29, "sub rsp, 8"], [30, "push offset aNodeData"], [31, "mov r9d, offset aNodeData"], [32, "mov r8d, offset aSNullLiteFreeS_7"], [33, "mov ecx, 3"], [34, "mov edx, 3Ah "], [35, "mov esi, offset aDmMsgCacheDein_0"], [36, "mov edi, offset aUtils_8"], [37, "mov eax, 0"], [38, "call LITE_syslog"], [39, "add rsp, 10h"], [40, "jmp short loc_422830"], [41, "mov rax, [rbp+var_8]"], [42, "mov rax, [rax+10h]"], [43, "mov rdi, rax"], [44, "call LITE_free_internal"], [45, "mov rax, [rbp+var_8]"], [46, "mov qword ptr [rax+10h], 0"], [47, "mov rax, [rbp+var_8]"], [48, "mov qword ptr [rax+10h], 0"], [49, "cmp [rbp+var_8], 0"], [50, "jnz short loc_42287C"], [51, "sub rsp, 8"], [52, "push offset aNode_1"], [53, "mov r9d, offset aNode_1"], [54, "mov r8d, offset aSNullLiteFreeS_7"], [55, "mov ecx, 3"], [56, "mov edx, 3Ch "], [57, "mov esi, offset aDmMsgCacheDein_0"], [58, "mov edi, offset aUtils_8"], [59, "mov eax, 0"], [60, "call LITE_syslog"], [61, "add rsp, 10h"], [62, "jmp short loc_422890"], [63, "mov rax, [rbp+var_8]"], [64, "mov rdi, rax"], [65, "call LITE_free_internal"], [66, "mov [rbp+var_8], 0"], [67, "mov [rbp+var_8], 0"], [68, "call sub_4226DA"], [69, "mov rax, [rbp+var_10]"], [70, "mov [rbp+var_8], rax"], [71, "mov rax, [rbp+var_10]"], [72, "mov rax, [rax+28h]"], [73, "sub rax, 20h "], [74, "mov [rbp+var_10], rax"], [75, "mov rax, [rbp+var_8]"], [76, "lea rdx, [rax+20h]"], [77, "mov rax, [rbp+var_18]"], [78, "add rax, 10h"], [79, "cmp rdx, rax"], [80, "jnz loc_4227B1"], [81, "call sub_4226DA"], [82, "mov rax, [rbp+var_18]"], [83, "mov rax, [rax]"], [84, "test rax, rax"], [85, "jz short loc_4228EE"], [86, "mov rax, [rbp+var_18]"], [87, "mov rax, [rax]"], [88, "mov rdi, rax"], [89, "call HAL_MutexDestroy"], [90, "mov eax, 0"], [91, "leave"], [92, "retn"]], "data_dep": [[4, 3], [8, 4], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [14, 13], [15, 14], [17, 11], [17, 70], [18, 17], [19, 18], [21, 11], [21, 70], [22, 46], [22, 21], [22, 48], [23, 22], [24, 23], [25, 11], [25, 70], [26, 25], [26, 48], [26, 46], [27, 26], [28, 27], [29, 61], [29, 39], [29, 2], [39, 29], [41, 11], [41, 70], [42, 48], [42, 41], [42, 46], [43, 42], [45, 11], [45, 70], [46, 45], [47, 11], [47, 70], [48, 47], [49, 11], [49, 70], [50, 49], [51, 2], [51, 61], [51, 39], [61, 51], [63, 70], [63, 11], [64, 63], [69, 74], [69, 15], [70, 69], [71, 15], [71, 74], [72, 46], [72, 48], [72, 71], [73, 72], [74, 73], [75, 11], [75, 70], [76, 56], [76, 46], [76, 76], [76, 48], [76, 34], [76, 75], [77, 4], [78, 77], [79, 76], [79, 78], [80, 79], [82, 4], [83, 82], [83, 48], [83, 46], [84, 83], [85, 84], [86, 4], [87, 48], [87, 86], [87, 46], [88, 87], [92, 90]]}
static int check64_cb(struct dl_phdr_info* info, void* data, unsigned elf_flags) { const uint64_t v = *(const uint64_t*)data; for (size_t i = 0; i < info->dlpi_phnum; i++) { /* Look only in the actual binary, and not in libraries */ if (info->dlpi_name[0] != '\0') { continue; } if (info->dlpi_phdr[i].p_type != PT_LOAD) { continue; } if ((info->dlpi_phdr[i].p_flags & elf_flags) != elf_flags) { continue; } uint64_t* start = (uint64_t*)(info->dlpi_addr + info->dlpi_phdr[i].p_vaddr); uint64_t* end = (uint64_t*)(info->dlpi_addr + info->dlpi_phdr[i].p_vaddr + HF_MIN(info->dlpi_phdr[i].p_memsz, info->dlpi_phdr[i].p_filesz)); /* Assume that the 64bit value looked for is also 64bit aligned */ for (; start < end; start++) { if (*start == v) { return 1; } } } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407820", "function_addr": 4225056, "binary_name": "0dcdc633414e45d27b838a1fde0e9f4d9b83ef1ae00c4d7b391a0b48d531666e.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_34], edx"], [5, "mov rax, [rbp+var_30]"], [6, "mov rax, [rax]"], [7, "mov [rbp+var_18], rax"], [8, "mov [rbp+var_8], 0"], [9, "jmp loc_40798C"], [10, "mov rax, [rbp+var_28]"], [11, "mov rax, [rax+8]"], [12, "movzx eax, byte ptr [rax]"], [13, "test al, al"], [14, "jnz loc_407980"], [15, "mov rax, [rbp+var_28]"], [16, "mov rcx, [rax+10h]"], [17, "mov rdx, [rbp+var_8]"], [18, "mov rax, rdx"], [19, "shl rax, 3"], [20, "sub rax, rdx"], [21, "shl rax, 3"], [22, "add rax, rcx"], [23, "mov eax, [rax]"], [24, "cmp eax, 1"], [25, "jnz loc_407983"], [26, "mov rax, [rbp+var_28]"], [27, "mov rcx, [rax+10h]"], [28, "mov rdx, [rbp+var_8]"], [29, "mov rax, rdx"], [30, "shl rax, 3"], [31, "sub rax, rdx"], [32, "shl rax, 3"], [33, "add rax, rcx"], [34, "mov eax, [rax+4]"], [35, "and eax, [rbp+var_34]"], [36, "cmp [rbp+var_34], eax"], [37, "jnz loc_407986"], [38, "mov rax, [rbp+var_28]"], [39, "mov rcx, [rax]"], [40, "mov rax, [rbp+var_28]"], [41, "mov rsi, [rax+10h]"], [42, "mov rdx, [rbp+var_8]"], [43, "mov rax, rdx"], [44, "shl rax, 3"], [45, "sub rax, rdx"], [46, "shl rax, 3"], [47, "add rax, rsi"], [48, "mov rax, [rax+10h]"], [49, "add rax, rcx"], [50, "mov [rbp+var_10], rax"], [51, "mov rax, [rbp+var_28]"], [52, "mov rcx, [rax]"], [53, "mov rax, [rbp+var_28]"], [54, "mov rsi, [rax+10h]"], [55, "mov rdx, [rbp+var_8]"], [56, "mov rax, rdx"], [57, "shl rax, 3"], [58, "sub rax, rdx"], [59, "shl rax, 3"], [60, "add rax, rsi"], [61, "mov rax, [rax+10h]"], [62, "lea rdi, [rcx+rax]"], [63, "mov rax, [rbp+var_28]"], [64, "mov rcx, [rax+10h]"], [65, "mov rdx, [rbp+var_8]"], [66, "mov rax, rdx"], [67, "shl rax, 3"], [68, "sub rax, rdx"], [69, "shl rax, 3"], [70, "add rax, rcx"], [71, "mov rdx, [rax+20h]"], [72, "mov rax, [rbp+var_28]"], [73, "mov rsi, [rax+10h]"], [74, "mov rcx, [rbp+var_8]"], [75, "mov rax, rcx"], [76, "shl rax, 3"], [77, "sub rax, rcx"], [78, "shl rax, 3"], [79, "add rax, rsi"], [80, "mov rax, [rax+28h]"], [81, "cmp rdx, rax"], [82, "cmovbe rax, rdx"], [83, "add rax, rdi"], [84, "mov [rbp+var_20], rax"], [85, "jmp short loc_407974"], [86, "mov rax, [rbp+var_10]"], [87, "mov rax, [rax]"], [88, "cmp [rbp+var_18], rax"], [89, "jnz short loc_40796F"], [90, "mov eax, 1"], [91, "jmp short loc_4079A6"], [92, "add [rbp+var_10], 8"], [93, "mov rax, [rbp+var_10]"], [94, "cmp rax, [rbp+var_20]"], [95, "jb short loc_40795B"], [96, "jmp short loc_407987"], [97, "nop"], [98, "jmp short loc_407987"], [99, "nop"], [100, "jmp short loc_407987"], [101, "nop"], [102, "add [rbp+var_8], 1"], [103, "mov rax, [rbp+var_28]"], [104, "movzx eax, word ptr [rax+18h]"], [105, "movzx eax, ax"], [106, "cmp [rbp+var_8], rax"], [107, "jb loc_407847"], [108, "mov eax, 0"], [109, "pop rbp"], [110, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [10, 2], [11, 10], [12, 11], [13, 12], [14, 13], [15, 2], [16, 15], [17, 102], [17, 8], [18, 17], [19, 18], [20, 17], [20, 19], [21, 20], [22, 21], [22, 16], [23, 22], [24, 23], [25, 24], [26, 2], [27, 26], [28, 102], [28, 8], [29, 28], [30, 29], [31, 28], [31, 30], [32, 31], [33, 32], [33, 27], [34, 33], [35, 4], [35, 34], [36, 4], [36, 35], [37, 36], [38, 2], [39, 38], [40, 2], [41, 40], [42, 102], [42, 8], [43, 42], [44, 43], [45, 42], [45, 44], [46, 45], [47, 41], [47, 46], [48, 47], [49, 39], [49, 48], [50, 49], [51, 2], [52, 51], [53, 2], [54, 53], [55, 8], [55, 102], [56, 55], [57, 56], [58, 55], [58, 57], [59, 58], [60, 59], [60, 54], [61, 60], [62, 62], [62, 61], [63, 2], [64, 63], [65, 8], [65, 102], [66, 65], [67, 66], [68, 65], [68, 67], [69, 68], [70, 64], [70, 69], [71, 70], [72, 2], [73, 72], [74, 8], [74, 102], [75, 74], [76, 75], [77, 76], [77, 74], [78, 77], [79, 78], [79, 73], [80, 79], [81, 71], [81, 80], [82, 81], [82, 71], [83, 62], [83, 82], [84, 83], [86, 92], [86, 50], [87, 86], [88, 87], [88, 7], [89, 88], [92, 92], [92, 50], [93, 50], [93, 92], [94, 84], [94, 93], [95, 94], [102, 8], [102, 102], [103, 2], [104, 103], [105, 104], [106, 8], [106, 102], [106, 105], [107, 106], [109, 0], [110, 90], [110, 108]]}
static void addConstrChildIdxDeps(DumpableObject *dobj, const IndxInfo *refidx) { SimplePtrListCell *cell; Assert(dobj->objType == DO_FK_CONSTRAINT); for (cell = refidx->partattaches.head; cell; cell = cell->next) { IndexAttachInfo *attach = (IndexAttachInfo *) cell->ptr; addObjectDependency(dobj, attach->dobj.dumpId); if (attach->partitionIdx->partattaches.head != NULL) addConstrChildIdxDeps(dobj, attach->partitionIdx); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414F7C", "function_addr": 4280188, "binary_name": "c554d64d8507512ec7c5460397d7e8fd60edb662d620824236cdfae536ce1f50.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_20]"], [6, "mov rax, [rax+88h]"], [7, "mov [rbp+var_8], rax"], [8, "jmp short loc_414FF4"], [9, "mov rax, [rbp+var_8]"], [10, "mov rax, [rax+8]"], [11, "mov [rbp+var_10], rax"], [12, "mov rax, [rbp+var_10]"], [13, "mov edx, [rax+0Ch]"], [14, "mov rax, [rbp+var_18]"], [15, "mov esi, edx"], [16, "mov rdi, rax"], [17, "call sub_4324D6"], [18, "mov rax, [rbp+var_10]"], [19, "mov rax, [rax+48h]"], [20, "mov rax, [rax+88h]"], [21, "test rax, rax"], [22, "jz short loc_414FE9"], [23, "mov rax, [rbp+var_10]"], [24, "mov rdx, [rax+48h]"], [25, "mov rax, [rbp+var_18]"], [26, "mov rsi, rdx"], [27, "mov rdi, rax"], [28, "call sub_414F7C"], [29, "mov rax, [rbp+var_8]"], [30, "mov rax, [rax]"], [31, "mov [rbp+var_8], rax"], [32, "cmp [rbp+var_8], 0"], [33, "jnz short loc_414F9D"], [34, "nop"], [35, "nop"], [36, "leave"], [37, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [9, 7], [9, 31], [10, 9], [11, 10], [12, 11], [13, 12], [14, 3], [15, 13], [16, 14], [18, 11], [19, 18], [20, 19], [21, 20], [22, 21], [23, 11], [24, 23], [25, 3], [26, 24], [27, 25], [29, 7], [29, 31], [30, 29], [31, 30], [32, 31], [32, 7], [33, 32], [37, 6], [37, 30]]}
static int zrhhdr(char *hdr) { register int c; register unsigned short crc; register int n; if ((c = zgethex()) < 0) return c; Rxtype = c; crc = updcrc(c, 0); for (n=4; --n >= 0; ++hdr) { if ((c = zgethex()) < 0) return c; crc = updcrc(c, crc); *hdr = c; } if ((c = zgethex()) < 0) return c; crc = updcrc(c, crc); if ((c = zgethex()) < 0) return c; crc = updcrc(c, crc); if (crc & 0xFFFF) { zperr(badcrc); return ERROR; } switch ( c = READLINE_PF(1)) { case 0215: /* **** FALL THRU TO **** */ case 015: /* Throw away possible cr/lf */ READLINE_PF(1); break; } protocol = ZM_ZMODEM; zmodem_requested=TRUE; return Rxtype; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B396", "function_addr": 4240278, "binary_name": "d684d0e103b0580db997ecc931a42fce8955cefc27bedc1ac56a24d435bd8eaf.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r13"], [3, "push r12"], [4, "push rbx"], [5, "sub rsp, 18h"], [6, "mov [rbp+var_28], rdi"], [7, "call sub_4099CA"], [8, "mov ebx, eax"], [9, "test ebx, ebx"], [10, "jns short loc_40B3B9"], [11, "mov eax, ebx"], [12, "jmp loc_40B55E"], [13, "mov cs:dword_415304, ebx"], [14, "movzx eax, cs:word_412340"], [15, "mov edx, eax"], [16, "mov eax, ebx"], [17, "xor eax, edx"], [18, "mov r12d, eax"], [19, "mov r13d, 4"], [20, "jmp short loc_40B41F"], [21, "call sub_4099CA"], [22, "mov ebx, eax"], [23, "test ebx, ebx"], [24, "jns short loc_40B3E9"], [25, "mov eax, ebx"], [26, "jmp loc_40B55E"], [27, "mov eax, r12d"], [28, "shr ax, 8"], [29, "movzx eax, ax"], [30, "movzx eax, al"], [31, "cdqe"], [32, "movzx eax, word_412340[rax+rax]"], [33, "mov edx, eax"], [34, "movzx eax, r12w"], [35, "shl eax, 8"], [36, "xor eax, edx"], [37, "mov edx, ebx"], [38, "xor eax, edx"], [39, "mov r12d, eax"], [40, "mov edx, ebx"], [41, "mov rax, [rbp+var_28]"], [42, "mov [rax], dl"], [43, "add [rbp+var_28], 1"], [44, "sub r13d, 1"], [45, "test r13d, r13d"], [46, "jns short loc_40B3D7"], [47, "call sub_4099CA"], [48, "mov ebx, eax"], [49, "test ebx, ebx"], [50, "jns short loc_40B43A"], [51, "mov eax, ebx"], [52, "jmp loc_40B55E"], [53, "mov eax, r12d"], [54, "shr ax, 8"], [55, "movzx eax, ax"], [56, "movzx eax, al"], [57, "cdqe"], [58, "movzx eax, word_412340[rax+rax]"], [59, "mov edx, eax"], [60, "movzx eax, r12w"], [61, "shl eax, 8"], [62, "xor eax, edx"], [63, "mov edx, ebx"], [64, "xor eax, edx"], [65, "mov r12d, eax"], [66, "call sub_4099CA"], [67, "mov ebx, eax"], [68, "test ebx, ebx"], [69, "jns short loc_40B475"], [70, "mov eax, ebx"], [71, "jmp loc_40B55E"], [72, "mov eax, r12d"], [73, "shr ax, 8"], [74, "movzx eax, ax"], [75, "movzx eax, al"], [76, "cdqe"], [77, "movzx eax, word_412340[rax+rax]"], [78, "mov edx, eax"], [79, "movzx eax, r12w"], [80, "shl eax, 8"], [81, "xor eax, edx"], [82, "mov edx, ebx"], [83, "xor eax, edx"], [84, "mov r12d, eax"], [85, "test r12w, r12w"], [86, "jz short loc_40B4BD"], [87, "mov edi, offset aBadCrc"], [88, "mov eax, 0"], [89, "call sub_40B7FC"], [90, "mov eax, 0FFFFFFFFh"], [91, "jmp loc_40B55E"], [92, "mov eax, cs:dword_415480"], [93, "sub eax, 1"], [94, "mov cs:dword_415480, eax"], [95, "mov eax, cs:dword_415480"], [96, "test eax, eax"], [97, "js short loc_40B4F3"], [98, "mov rax, cs:qword_415488"], [99, "lea rdx, [rax+1]"], [100, "mov cs:qword_415488, rdx"], [101, "movzx eax, byte ptr [rax]"], [102, "movsx eax, al"], [103, "movzx eax, al"], [104, "jmp short loc_40B4FD"], [105, "mov edi, 1"], [106, "call sub_40BAEB"], [107, "mov ebx, eax"], [108, "cmp ebx, 0Dh"], [109, "jz short loc_40B50C"], [110, "cmp ebx, 8Dh"], [111, "jnz short loc_40B544"], [112, "mov eax, cs:dword_415480"], [113, "sub eax, 1"], [114, "mov cs:dword_415480, eax"], [115, "mov eax, cs:dword_415480"], [116, "test eax, eax"], [117, "js short loc_40B539"], [118, "mov rax, cs:qword_415488"], [119, "add rax, 1"], [120, "mov cs:qword_415488, rax"], [121, "jmp short loc_40B543"], [122, "mov edi, 1"], [123, "call sub_40BAEB"], [124, "nop"], [125, "mov cs:dword_412FF4, 2"], [126, "mov cs:dword_412FFC, 1"], [127, "mov eax, cs:dword_415304"], [128, "add rsp, 18h"], [129, "pop rbx"], [130, "pop r12"], [131, "pop r13"], [132, "pop rbp"], [133, "retn"]], "data_dep": [[8, 7], [9, 8], [10, 9], [11, 9], [13, 9], [15, 14], [16, 9], [17, 16], [17, 15], [18, 17], [22, 21], [23, 22], [24, 23], [25, 23], [27, 39], [27, 18], [28, 27], [29, 28], [30, 29], [33, 32], [34, 18], [34, 39], [35, 34], [36, 33], [36, 35], [37, 23], [38, 36], [38, 37], [39, 38], [40, 23], [41, 43], [41, 6], [42, 41], [42, 40], [43, 43], [43, 6], [44, 45], [44, 19], [45, 44], [46, 45], [48, 47], [49, 48], [50, 49], [51, 49], [53, 18], [53, 39], [54, 53], [55, 54], [56, 55], [59, 58], [60, 39], [60, 18], [61, 60], [62, 59], [62, 61], [63, 49], [64, 62], [64, 63], [65, 64], [67, 66], [68, 67], [69, 68], [70, 68], [72, 65], [73, 72], [74, 73], [75, 74], [78, 77], [79, 65], [80, 79], [81, 78], [81, 80], [82, 68], [83, 82], [83, 81], [84, 83], [85, 84], [86, 85], [93, 92], [94, 93], [95, 94], [96, 95], [97, 96], [99, 42], [99, 98], [99, 82], [100, 99], [101, 42], [101, 98], [102, 101], [103, 102], [107, 106], [107, 103], [108, 107], [109, 108], [110, 107], [111, 110], [112, 94], [113, 112], [114, 113], [115, 114], [116, 115], [117, 116], [118, 100], [119, 118], [120, 119], [127, 13], [128, 5], [129, 4], [130, 3], [131, 2], [132, 0], [133, 70], [133, 127], [133, 51], [133, 90], [133, 25], [133, 11]]}
int pmc_send_get_action(struct pmc *pmc, int id) { int datalen, pdulen; struct ptp_message *msg; struct management_tlv *mgt; struct tlv_extra *extra; msg = pmc_message(pmc, GET); if (!msg) { return -1; } mgt = (struct management_tlv *) msg->management.suffix; mgt->type = TLV_MANAGEMENT; datalen = pmc_tlv_datalen(pmc, id); mgt->length = 2 + datalen; mgt->id = id; pdulen = msg->header.messageLength + sizeof(*mgt) + datalen; msg->header.messageLength = pdulen; extra = tlv_extra_alloc(); if (!extra) { pr_err("failed to allocate TLV descriptor"); msg_put(msg); return -ENOMEM; } extra->tlv = (struct TLV *) msg->management.suffix; msg_tlv_attach(msg, extra); if (id == TLV_CLOCK_DESCRIPTION && !pmc->zero_length_gets) { /* * Make sure the tlv_extra pointers dereferenced in * mgt_pre_send() do point to something. */ struct mgmt_clock_description *cd = &extra->cd; uint8_t *buf = mgt->data; cd->clockType = (UInteger16 *) buf; buf += sizeof(*cd->clockType); cd->physicalLayerProtocol = (struct PTPText *) buf; buf += sizeof(struct PTPText) + cd->physicalLayerProtocol->length; cd->physicalAddress = (struct PhysicalAddress *) buf; buf += sizeof(struct PhysicalAddress) + 0; cd->protocolAddress = (struct PortAddress *) buf; } pmc_send(pmc, msg); msg_put(msg); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40A479", "function_addr": 4236409, "binary_name": "b881a36ac1042d08a153dc6d79e8af7857537b515a74f12df247ec16fc2fe0b7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_3C], esi"], [5, "mov rax, [rbp+var_38]"], [6, "mov esi, 0"], [7, "mov rdi, rax"], [8, "call sub_40A19E"], [9, "mov [rbp+var_8], rax"], [10, "cmp [rbp+var_8], 0"], [11, "jnz short loc_40A4AE"], [12, "mov eax, 0FFFFFFFFh"], [13, "jmp locret_40A60E"], [14, "mov rax, [rbp+var_8]"], [15, "add rax, 30h "], [16, "mov [rbp+var_10], rax"], [17, "mov rax, [rbp+var_10]"], [18, "mov word ptr [rax], 1"], [19, "mov edx, [rbp+var_3C]"], [20, "mov rax, [rbp+var_38]"], [21, "mov esi, edx"], [22, "mov rdi, rax"], [23, "call sub_40A303"], [24, "mov [rbp+var_14], eax"], [25, "mov eax, [rbp+var_14]"], [26, "lea edx, [rax+2]"], [27, "mov rax, [rbp+var_10]"], [28, "mov [rax+2], dx"], [29, "mov eax, [rbp+var_3C]"], [30, "mov edx, eax"], [31, "mov rax, [rbp+var_10]"], [32, "mov [rax+4], dx"], [33, "mov rax, [rbp+var_8]"], [34, "movzx eax, word ptr [rax+2]"], [35, "movzx edx, ax"], [36, "mov eax, [rbp+var_14]"], [37, "add eax, edx"], [38, "add eax, 6"], [39, "mov [rbp+var_18], eax"], [40, "mov eax, [rbp+var_18]"], [41, "mov edx, eax"], [42, "mov rax, [rbp+var_8]"], [43, "mov [rax+2], dx"], [44, "call sub_410BC5"], [45, "mov [rbp+var_20], rax"], [46, "cmp [rbp+var_20], 0"], [47, "jnz short loc_40A54F"], [48, "mov esi, offset aFailedToAlloca_2"], [49, "mov edi, 3"], [50, "mov eax, 0"], [51, "call sub_40B47F"], [52, "mov rax, [rbp+var_8]"], [53, "mov rdi, rax"], [54, "call sub_4092A7"], [55, "mov eax, 0FFFFFFF4h"], [56, "jmp locret_40A60E"], [57, "mov rax, [rbp+var_8]"], [58, "lea rdx, [rax+30h]"], [59, "mov rax, [rbp+var_20]"], [60, "mov [rax+10h], rdx"], [61, "mov rdx, [rbp+var_20]"], [62, "mov rax, [rbp+var_8]"], [63, "mov rsi, rdx"], [64, "mov rdi, rax"], [65, "call sub_409155"], [66, "cmp [rbp+var_3C], 1"], [67, "jnz short loc_40A5EA"], [68, "mov rax, [rbp+var_38]"], [69, "mov eax, [rax+5Ch]"], [70, "test eax, eax"], [71, "jnz short loc_40A5EA"], [72, "mov rax, [rbp+var_20]"], [73, "add rax, 18h"], [74, "mov [rbp+var_28], rax"], [75, "mov rax, [rbp+var_10]"], [76, "add rax, 6"], [77, "mov [rbp+var_30], rax"], [78, "mov rax, [rbp+var_28]"], [79, "mov rdx, [rbp+var_30]"], [80, "mov [rax], rdx"], [81, "add [rbp+var_30], 2"], [82, "mov rax, [rbp+var_28]"], [83, "mov rdx, [rbp+var_30]"], [84, "mov [rax+8], rdx"], [85, "mov rax, [rbp+var_28]"], [86, "mov rax, [rax+8]"], [87, "movzx eax, byte ptr [rax]"], [88, "movzx eax, al"], [89, "add rax, 1"], [90, "add [rbp+var_30], rax"], [91, "mov rax, [rbp+var_28]"], [92, "mov rdx, [rbp+var_30]"], [93, "mov [rax+10h], rdx"], [94, "add [rbp+var_30], 2"], [95, "mov rax, [rbp+var_28]"], [96, "mov rdx, [rbp+var_30]"], [97, "mov [rax+18h], rdx"], [98, "mov rdx, [rbp+var_8]"], [99, "mov rax, [rbp+var_38]"], [100, "mov rsi, rdx"], [101, "mov rdi, rax"], [102, "call sub_40A29D"], [103, "mov rax, [rbp+var_8]"], [104, "mov rdi, rax"], [105, "call sub_4092A7"], [106, "mov eax, 0"], [107, "leave"], [108, "retn"]], "data_dep": [[5, 3], [7, 5], [9, 8], [10, 9], [11, 10], [14, 9], [15, 14], [16, 15], [17, 16], [18, 17], [19, 4], [20, 3], [21, 19], [22, 20], [24, 23], [25, 24], [26, 25], [26, 18], [26, 19], [27, 16], [28, 27], [28, 26], [29, 4], [30, 29], [31, 16], [32, 30], [32, 31], [33, 9], [34, 28], [34, 32], [34, 33], [35, 34], [36, 24], [37, 35], [37, 36], [38, 37], [39, 38], [40, 39], [41, 40], [42, 9], [43, 41], [43, 42], [45, 44], [46, 45], [47, 46], [52, 9], [53, 52], [57, 9], [58, 28], [58, 60], [58, 32], [58, 18], [58, 57], [58, 41], [58, 43], [59, 45], [60, 59], [60, 58], [61, 45], [62, 9], [63, 61], [64, 62], [66, 4], [67, 66], [68, 3], [69, 60], [69, 28], [69, 32], [69, 18], [69, 68], [69, 43], [70, 69], [71, 70], [72, 45], [73, 72], [74, 73], [75, 16], [76, 75], [77, 76], [78, 74], [79, 77], [80, 78], [80, 79], [81, 77], [82, 74], [83, 81], [84, 83], [84, 82], [85, 74], [86, 85], [86, 84], [87, 80], [87, 84], [87, 86], [88, 87], [89, 88], [90, 81], [90, 89], [91, 74], [92, 90], [93, 92], [93, 91], [94, 90], [95, 74], [96, 94], [97, 95], [97, 96], [98, 9], [99, 3], [100, 98], [101, 99], [103, 9], [104, 103], [108, 106], [108, 12], [108, 55]]}
static int find_dominating_parents(pseudo_t pseudo, struct instruction *insn, struct basic_block *bb, unsigned long generation, struct pseudo_list **dominators, int local) { struct basic_block *parent; FOR_EACH_PTR(bb->parents, parent) { struct instruction *one; struct instruction *br; pseudo_t phi; FOR_EACH_PTR_REVERSE(parent->insns, one) { int dominance; if (!one->bb) continue; if (one == insn) goto no_dominance; dominance = dominates(pseudo, insn, one, local); if (dominance < 0) { if (one->opcode == OP_LOAD) continue; return 0; } if (!dominance) continue; goto found_dominator; } END_FOR_EACH_PTR_REVERSE(one); no_dominance: if (parent->generation == generation) continue; parent->generation = generation; if (!find_dominating_parents(pseudo, insn, parent, generation, dominators, local)) return 0; continue; found_dominator: br = delete_last_instruction(&parent->insns); phi = alloc_phi(parent, one->target, one->type); phi->ident = phi->ident ? : one->target->ident; add_instruction(&parent->insns, br); use_pseudo(insn, phi, add_pseudo(dominators, phi)); } END_FOR_EACH_PTR(parent); return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4449C3", "function_addr": 4475331, "binary_name": "3ab645463ad13ea30c238ceac9bf56691ea8cada0b7c92413fecc09c2d081d33.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 90h"], [3, "mov [rbp+var_68], rdi"], [4, "mov [rbp+var_70], rsi"], [5, "mov [rbp+var_78], rdx"], [6, "mov [rbp+var_80], rcx"], [7, "mov [rbp+var_88], r8"], [8, "mov [rbp+var_8C], r9d"], [9, "mov rax, [rbp+var_78]"], [10, "mov rax, [rax+20h]"], [11, "mov [rbp+var_28], rax"], [12, "mov rax, [rbp+var_28]"], [13, "mov [rbp+var_8], rax"], [14, "cmp [rbp+var_28], 0"], [15, "jz loc_444C67"], [16, "mov [rbp+var_C], 0"], [17, "jmp loc_444C38"], [18, "mov rax, [rbp+var_8]"], [19, "mov edx, [rbp+var_C]"], [20, "movsxd rdx, edx"], [21, "add rdx, 2"], [22, "mov rax, [rax+rdx*8+8]"], [23, "mov [rbp+var_30], rax"], [24, "mov rax, [rbp+var_8]"], [25, "movzx eax, byte ptr [rax+1]"], [26, "test al, al"], [27, "jz short loc_444A45"], [28, "cmp [rbp+var_30], 0"], [29, "jz loc_444C2D"], [30, "mov rax, [rbp+var_30]"], [31, "mov rax, [rax+30h]"], [32, "mov [rbp+var_38], rax"], [33, "mov rax, [rbp+var_38]"], [34, "mov [rbp+var_18], rax"], [35, "mov rax, [rbp+var_30]"], [36, "mov rax, [rax+30h]"], [37, "test rax, rax"], [38, "jz loc_444B2F"], [39, "mov rax, [rbp+var_18]"], [40, "mov rax, [rax+8]"], [41, "mov [rbp+var_18], rax"], [42, "mov rax, [rbp+var_18]"], [43, "movzx eax, byte ptr [rax]"], [44, "movsx eax, al"], [45, "mov [rbp+var_1C], eax"], [46, "jmp loc_444B11"], [47, "mov rax, [rbp+var_18]"], [48, "mov edx, [rbp+var_1C]"], [49, "movsxd rdx, edx"], [50, "add rdx, 2"], [51, "mov rax, [rax+rdx*8+8]"], [52, "mov [rbp+var_40], rax"], [53, "mov rax, [rbp+var_18]"], [54, "movzx eax, byte ptr [rax+1]"], [55, "test al, al"], [56, "jz short loc_444AB4"], [57, "cmp [rbp+var_40], 0"], [58, "jnz short loc_444AB4"], [59, "jmp short loc_444B11"], [60, "mov rax, [rbp+var_40]"], [61, "mov rax, [rax+8]"], [62, "test rax, rax"], [63, "jnz short loc_444AC3"], [64, "jmp short loc_444B11"], [65, "mov rax, [rbp+var_40]"], [66, "cmp rax, [rbp+var_70]"], [67, "jz short loc_444B32"], [68, "mov ecx, [rbp+var_8C]"], [69, "mov rdx, [rbp+var_40]"], [70, "mov rsi, [rbp+var_70]"], [71, "mov rax, [rbp+var_68]"], [72, "mov rdi, rax"], [73, "call sub_43E435"], [74, "mov [rbp+var_44], eax"], [75, "cmp [rbp+var_44], 0"], [76, "jns short loc_444B0A"], [77, "mov rax, [rbp+var_40]"], [78, "movzx eax, byte ptr [rax]"], [79, "and eax, 7Fh"], [80, "cmp al, 43h "], [81, "jnz short loc_444B00"], [82, "jmp short loc_444B11"], [83, "mov eax, 0"], [84, "jmp locret_444C6D"], [85, "cmp [rbp+var_44], 0"], [86, "jnz short loc_444B8F"], [87, "nop"], [88, "sub [rbp+var_1C], 1"], [89, "cmp [rbp+var_1C], 0"], [90, "jns loc_444A88"], [91, "mov rax, [rbp+var_18]"], [92, "cmp rax, [rbp+var_38]"], [93, "jnz loc_444A6A"], [94, "jmp short loc_444B33"], [95, "nop"], [96, "jmp short loc_444B33"], [97, "nop"], [98, "mov rax, [rbp+var_30]"], [99, "mov rax, [rax+8]"], [100, "cmp [rbp+var_80], rax"], [101, "jz loc_444C30"], [102, "mov rax, [rbp+var_30]"], [103, "mov rdx, [rbp+var_80]"], [104, "mov [rax+8], rdx"], [105, "mov r8d, [rbp+var_8C]"], [106, "mov rdi, [rbp+var_88]"], [107, "mov rcx, [rbp+var_80]"], [108, "mov rdx, [rbp+var_30]"], [109, "mov rsi, [rbp+var_70]"], [110, "mov rax, [rbp+var_68]"], [111, "mov r9d, r8d"], [112, "mov r8, rdi"], [113, "mov rdi, rax"], [114, "call sub_4449C3"], [115, "test eax, eax"], [116, "jnz loc_444C33"], [117, "mov eax, 0"], [118, "jmp locret_444C6D"], [119, "nop"], [120, "mov rax, [rbp+var_30]"], [121, "add rax, 30h "], [122, "mov rdi, rax"], [123, "call sub_44480A"], [124, "mov [rbp+var_50], rax"], [125, "mov rax, [rbp+var_40]"], [126, "mov rdx, [rax+18h]"], [127, "mov rax, [rbp+var_40]"], [128, "mov rcx, [rax+20h]"], [129, "mov rax, [rbp+var_30]"], [130, "mov rsi, rcx"], [131, "mov rdi, rax"], [132, "call sub_40BE1E"], [133, "mov [rbp+var_58], rax"], [134, "mov rax, [rbp+var_58]"], [135, "mov rax, [rax+10h]"], [136, "test rax, rax"], [137, "jnz short loc_444BE0"], [138, "mov rax, [rbp+var_40]"], [139, "mov rax, [rax+20h]"], [140, "mov rax, [rax+10h]"], [141, "mov rdx, [rbp+var_58]"], [142, "mov [rdx+10h], rax"], [143, "mov rax, [rbp+var_30]"], [144, "lea rdx, [rax+30h]"], [145, "mov rax, [rbp+var_50]"], [146, "mov rsi, rax"], [147, "mov rdi, rdx"], [148, "call sub_444824"], [149, "mov rdx, [rbp+var_58]"], [150, "mov rax, [rbp+var_88]"], [151, "mov rsi, rdx"], [152, "mov rdi, rax"], [153, "call sub_444852"], [154, "mov rdx, rax"], [155, "mov rcx, [rbp+var_58]"], [156, "mov rax, [rbp+var_70]"], [157, "mov rsi, rcx"], [158, "mov rdi, rax"], [159, "call sub_444928"], [160, "jmp short loc_444C34"], [161, "nop"], [162, "jmp short loc_444C34"], [163, "nop"], [164, "jmp short loc_444C34"], [165, "nop"], [166, "add [rbp+var_C], 1"], [167, "mov rax, [rbp+var_8]"], [168, "movzx eax, byte ptr [rax]"], [169, "movsx eax, al"], [170, "cmp [rbp+var_C], eax"], [171, "jl loc_444A17"], [172, "mov rax, [rbp+var_8]"], [173, "mov rax, [rax+10h]"], [174, "mov [rbp+var_8], rax"], [175, "mov rax, [rbp+var_8]"], [176, "cmp rax, [rbp+var_28]"], [177, "jnz loc_444A0B"], [178, "jmp short loc_444C68"], [179, "nop"], [180, "mov eax, 1"], [181, "leave"], [182, "retn"]], "data_dep": [[9, 5], [10, 9], [11, 10], [12, 11], [13, 12], [14, 11], [15, 14], [18, 174], [18, 13], [19, 166], [19, 16], [20, 19], [21, 20], [22, 142], [22, 18], [22, 104], [23, 22], [24, 174], [24, 13], [25, 104], [25, 24], [25, 142], [26, 25], [27, 26], [28, 23], [29, 28], [30, 23], [31, 104], [31, 30], [31, 142], [32, 31], [33, 32], [34, 33], [35, 23], [36, 104], [36, 35], [36, 142], [37, 36], [38, 37], [39, 41], [39, 34], [40, 104], [40, 142], [40, 39], [41, 40], [42, 41], [43, 142], [43, 104], [43, 42], [44, 43], [45, 44], [47, 41], [48, 88], [49, 48], [50, 49], [51, 47], [51, 104], [51, 142], [52, 51], [53, 41], [54, 104], [54, 142], [54, 53], [55, 54], [56, 55], [57, 52], [58, 57], [60, 52], [61, 104], [61, 60], [61, 142], [62, 61], [63, 62], [65, 52], [66, 4], [66, 65], [67, 66], [68, 8], [69, 52], [70, 4], [71, 3], [72, 71], [74, 73], [75, 74], [76, 75], [77, 52], [78, 77], [78, 104], [78, 142], [79, 78], [80, 79], [81, 80], [85, 74], [86, 85], [88, 45], [88, 88], [89, 88], [90, 89], [91, 41], [92, 32], [92, 91], [93, 92], [98, 23], [99, 104], [99, 142], [99, 98], [100, 6], [100, 99], [101, 100], [102, 23], [103, 6], [104, 102], [104, 103], [105, 8], [106, 7], [107, 6], [108, 23], [109, 4], [110, 3], [111, 105], [112, 106], [113, 110], [115, 114], [116, 115], [120, 23], [121, 120], [122, 121], [124, 123], [125, 52], [126, 142], [126, 125], [126, 104], [127, 52], [128, 142], [128, 127], [128, 104], [129, 23], [130, 128], [131, 129], [133, 132], [134, 133], [135, 104], [135, 142], [135, 134], [136, 135], [137, 136], [138, 52], [139, 142], [139, 138], [139, 104], [140, 139], [140, 104], [140, 142], [141, 133], [142, 141], [142, 136], [142, 140], [143, 23], [144, 141], [144, 143], [144, 142], [145, 124], [146, 145], [147, 144], [149, 133], [150, 7], [151, 149], [152, 150], [154, 153], [155, 133], [156, 4], [157, 155], [158, 156], [166, 16], [166, 166], [167, 13], [167, 174], [168, 104], [168, 142], [168, 167], [169, 168], [170, 169], [170, 16], [170, 166], [171, 170], [172, 13], [172, 174], [173, 104], [173, 142], [173, 172], [174, 173], [175, 174], [176, 11], [176, 175], [177, 176], [182, 83], [182, 117], [182, 180]]}
void display_icon ( ICON_ENTRY * icon ) { int bit; int display_width; const char * indent = " "; int index; int max_index; int x; int y; /* 0x20, 0x60, 0xC0, 0xFF, 0xFF, 0xC0, 0x60, 0x20, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00 ** ** ** ** ** ** ** ** ****** **** ** */ printf ("/*\r\n"); printf (" %s [%d, %d]\r\n", icon->name, icon->width, icon->height); printf ("\r\n"); if (DRAW_OUTLINE) { if (icon->width > 9) { printf ("%s ", indent); for (x = 1; x <= icon->width; x++) printf ("%c", (x % 10) ? ' ' : ('0' + (x / 10))); printf ("\r\n"); } printf ("%s ", indent); for (x = 1; x <= icon->width; x++) printf ("%d", x % 10); printf ("\r\n"); printf ("%s .", indent); for (x = 0; x < icon->width; x++) printf ("-"); printf (".\r\n"); } for (y = 0; y < icon->height; y++) { printf ("%s", indent); if (DRAW_OUTLINE) printf ("0x%02x|", 1 << (y & 7)); for (x = 0; x < icon->width; x++) { bit = icon->data[((y >> 3) * icon->bytes_wide) + x]; bit >>= y & 7; printf ("%c", (bit & 1) ? '*' : ' '); } if (DRAW_OUTLINE) printf ("|"); printf ("\r\n"); } if (DRAW_OUTLINE) { printf ("%s '", indent); for (x = 0; x < icon->width; x++) printf ("-"); printf ("'\r\n"); } printf ("*/\r\n"); printf ("\r\n"); // Display the symbols if requested if (DISPLAY_VARIABLES) { if (icon->height_name) printf ("const int %s = %d;\r\n", icon->height_name, icon->height); if (icon->width_name) printf ("const int %s = %d;\r\n", icon->width_name, icon->width); printf ("const uint8_t %s [] = {", icon->name); display_width = icon->bytes_wide; if (WRAP_AT_16 || (display_width > 20)) display_width = 16; max_index = icon->bytes_high * icon->bytes_wide; for (index = 0; index < max_index; index++) { if ((index % display_width) == 0) printf ("\r\n "); if (USE_UPPERCASE_A) printf (" 0x%02X", icon->data[index]); else printf (" 0x%02x", icon->data[index]); if (index != (max_index - 1)) printf (","); } if (ADD_TRAILING_COMMA) printf (","); printf ("\r\n"); printf ("};\r\n"); printf ("\r\n"); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40195B", "function_addr": 4200795, "binary_name": "d4df84ecafb323f6f0a346a3a103c7075467f09b9b7969f8c20d2b007e407a6c.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_18], offset asc_402044"], [5, "mov edi, offset s"], [6, "call _puts"], [7, "mov rax, [rbp+var_28]"], [8, "mov ecx, [rax+10h]"], [9, "mov rax, [rbp+var_28]"], [10, "mov edx, [rax+20h]"], [11, "mov rax, [rbp+var_28]"], [12, "mov rax, [rax+8]"], [13, "mov rsi, rax"], [14, "mov edi, offset format"], [15, "mov eax, 0"], [16, "call _printf"], [17, "mov edi, offset asc_402063"], [18, "call _puts"], [19, "mov rax, [rbp+var_28]"], [20, "mov eax, [rax+20h]"], [21, "cmp eax, 9"], [22, "jle loc_401A50"], [23, "mov rax, [rbp+var_18]"], [24, "mov rsi, rax"], [25, "mov edi, offset aS"], [26, "mov eax, 0"], [27, "call _printf"], [28, "mov [rbp+var_C], 1"], [29, "jmp short loc_401A3A"], [30, "mov ecx, [rbp+var_C]"], [31, "movsxd rax, ecx"], [32, "imul rax, 66666667h"], [33, "shr rax, 20h"], [34, "sar eax, 2"], [35, "mov esi, ecx"], [36, "sar esi, 1Fh"], [37, "sub eax, esi"], [38, "mov edx, eax"], [39, "mov eax, edx"], [40, "shl eax, 2"], [41, "add eax, edx"], [42, "add eax, eax"], [43, "sub ecx, eax"], [44, "mov edx, ecx"], [45, "test edx, edx"], [46, "jnz short loc_401A2A"], [47, "mov eax, [rbp+var_C]"], [48, "movsxd rdx, eax"], [49, "imul rdx, 66666667h"], [50, "shr rdx, 20h"], [51, "sar edx, 2"], [52, "sar eax, 1Fh"], [53, "mov ecx, eax"], [54, "mov eax, edx"], [55, "sub eax, ecx"], [56, "add eax, 30h "], [57, "jmp short loc_401A2F"], [58, "mov eax, 20h "], [59, "mov edi, eax"], [60, "call _putchar"], [61, "add [rbp+var_C], 1"], [62, "mov rax, [rbp+var_28]"], [63, "mov eax, [rax+20h]"], [64, "cmp [rbp+var_C], eax"], [65, "jle short loc_4019DA"], [66, "mov edi, offset asc_402063"], [67, "call _puts"], [68, "mov rax, [rbp+var_18]"], [69, "mov rsi, rax"], [70, "mov edi, offset aS"], [71, "mov eax, 0"], [72, "call _printf"], [73, "mov [rbp+var_C], 1"], [74, "jmp short loc_401AAE"], [75, "mov ecx, [rbp+var_C]"], [76, "movsxd rax, ecx"], [77, "imul rax, 66666667h"], [78, "shr rax, 20h"], [79, "sar eax, 2"], [80, "mov esi, ecx"], [81, "sar esi, 1Fh"], [82, "sub eax, esi"], [83, "mov edx, eax"], [84, "mov eax, edx"], [85, "shl eax, 2"], [86, "add eax, edx"], [87, "add eax, eax"], [88, "sub ecx, eax"], [89, "mov edx, ecx"], [90, "mov esi, edx"], [91, "mov edi, offset aD"], [92, "mov eax, 0"], [93, "call _printf"], [94, "add [rbp+var_C], 1"], [95, "mov rax, [rbp+var_28]"], [96, "mov eax, [rax+20h]"], [97, "cmp [rbp+var_C], eax"], [98, "jle short loc_401A6F"], [99, "mov edi, offset asc_402063"], [100, "call _puts"], [101, "mov rax, [rbp+var_18]"], [102, "mov rsi, rax"], [103, "mov edi, offset aS_0"], [104, "mov eax, 0"], [105, "call _printf"], [106, "mov [rbp+var_C], 0"], [107, "jmp short loc_401AF1"], [108, "mov edi, 2Dh "], [109, "call _putchar"], [110, "add [rbp+var_C], 1"], [111, "mov rax, [rbp+var_28]"], [112, "mov eax, [rax+20h]"], [113, "cmp [rbp+var_C], eax"], [114, "jl short loc_401AE3"], [115, "mov edi, offset asc_402075"], [116, "call _puts"], [117, "mov [rbp+var_10], 0"], [118, "jmp loc_401BCC"], [119, "mov rax, [rbp+var_18]"], [120, "mov rsi, rax"], [121, "mov edi, offset aS_1"], [122, "mov eax, 0"], [123, "call _printf"], [124, "mov eax, [rbp+var_10]"], [125, "and eax, 7"], [126, "mov edx, 1"], [127, "mov ecx, eax"], [128, "shl edx, cl"], [129, "mov eax, edx"], [130, "mov esi, eax"], [131, "mov edi, offset a0x02x"], [132, "mov eax, 0"], [133, "call _printf"], [134, "mov [rbp+var_C], 0"], [135, "jmp short loc_401BA8"], [136, "mov eax, [rbp+var_10]"], [137, "sar eax, 3"], [138, "mov edx, eax"], [139, "mov rax, [rbp+var_28]"], [140, "mov eax, [rax+34h]"], [141, "imul edx, eax"], [142, "mov eax, [rbp+var_C]"], [143, "add eax, edx"], [144, "mov rdx, [rbp+var_28]"], [145, "cdqe"], [146, "movzx eax, byte ptr [rdx+rax+38h]"], [147, "movzx eax, al"], [148, "mov [rbp+var_20], eax"], [149, "mov eax, [rbp+var_10]"], [150, "and eax, 7"], [151, "mov ecx, eax"], [152, "sar [rbp+var_20], cl"], [153, "mov eax, [rbp+var_20]"], [154, "and eax, 1"], [155, "test eax, eax"], [156, "jz short loc_401B98"], [157, "mov eax, 2Ah "], [158, "jmp short loc_401B9D"], [159, "mov eax, 20h "], [160, "mov edi, eax"], [161, "call _putchar"], [162, "add [rbp+var_C], 1"], [163, "mov rax, [rbp+var_28]"], [164, "mov eax, [rax+20h]"], [165, "cmp [rbp+var_C], eax"], [166, "jl short loc_401B54"], [167, "mov edi, 7Ch "], [168, "call _putchar"], [169, "mov edi, offset asc_402063"], [170, "call _puts"], [171, "add [rbp+var_10], 1"], [172, "mov rax, [rbp+var_28]"], [173, "mov eax, [rax+10h]"], [174, "cmp [rbp+var_10], eax"], [175, "jl loc_401B13"], [176, "mov rax, [rbp+var_18]"], [177, "mov rsi, rax"], [178, "mov edi, offset aS_2"], [179, "mov eax, 0"], [180, "call _printf"], [181, "mov [rbp+var_C], 0"], [182, "jmp short loc_401C09"], [183, "mov edi, 2Dh "], [184, "call _putchar"], [185, "add [rbp+var_C], 1"], [186, "mov rax, [rbp+var_28]"], [187, "mov eax, [rax+20h]"], [188, "cmp [rbp+var_C], eax"], [189, "jl short loc_401BFB"], [190, "mov edi, offset asc_40208B"], [191, "call _puts"], [192, "mov edi, offset asc_40208E"], [193, "call _puts"], [194, "mov edi, offset asc_402063"], [195, "call _puts"], [196, "mov rax, [rbp+var_28]"], [197, "mov rax, [rax+18h]"], [198, "test rax, rax"], [199, "jz short loc_401C61"], [200, "mov rax, [rbp+var_28]"], [201, "mov edx, [rax+10h]"], [202, "mov rax, [rbp+var_28]"], [203, "mov rax, [rax+18h]"], [204, "mov rsi, rax"], [205, "mov edi, offset aConstIntSD"], [206, "mov eax, 0"], [207, "call _printf"], [208, "mov rax, [rbp+var_28]"], [209, "mov rax, [rax+28h]"], [210, "test rax, rax"], [211, "jz short loc_401C8F"], [212, "mov rax, [rbp+var_28]"], [213, "mov edx, [rax+20h]"], [214, "mov rax, [rbp+var_28]"], [215, "mov rax, [rax+28h]"], [216, "mov rsi, rax"], [217, "mov edi, offset aConstIntSD"], [218, "mov eax, 0"], [219, "call _printf"], [220, "mov rax, [rbp+var_28]"], [221, "mov rax, [rax+8]"], [222, "mov rsi, rax"], [223, "mov edi, offset aConstUint8TS"], [224, "mov eax, 0"], [225, "call _printf"], [226, "mov rax, [rbp+var_28]"], [227, "mov eax, [rax+34h]"], [228, "mov [rbp+var_4], eax"], [229, "cmp [rbp+var_4], 14h"], [230, "jle short loc_401CC0"], [231, "mov [rbp+var_4], 10h"], [232, "mov rax, [rbp+var_28]"], [233, "mov edx, [rax+30h]"], [234, "mov rax, [rbp+var_28]"], [235, "mov eax, [rax+34h]"], [236, "imul eax, edx"], [237, "mov [rbp+var_1C], eax"], [238, "mov [rbp+var_8], 0"], [239, "jmp short loc_401D34"], [240, "mov eax, [rbp+var_8]"], [241, "cdq"], [242, "idiv [rbp+var_4]"], [243, "mov eax, edx"], [244, "test eax, eax"], [245, "jnz short loc_401CF9"], [246, "mov edi, offset asc_4020BF"], [247, "mov eax, 0"], [248, "call _printf"], [249, "mov rdx, [rbp+var_28]"], [250, "mov eax, [rbp+var_8]"], [251, "cdqe"], [252, "movzx eax, byte ptr [rdx+rax+38h]"], [253, "movzx eax, al"], [254, "mov esi, eax"], [255, "mov edi, offset a0x02x_0"], [256, "mov eax, 0"], [257, "call _printf"], [258, "mov eax, [rbp+var_1C]"], [259, "sub eax, 1"], [260, "cmp [rbp+var_8], eax"], [261, "jz short loc_401D30"], [262, "mov edi, 2Ch "], [263, "call _putchar"], [264, "add [rbp+var_8], 1"], [265, "mov eax, [rbp+var_8]"], [266, "cmp eax, [rbp+var_1C]"], [267, "jl short loc_401CDD"], [268, "mov edi, offset asc_402063"], [269, "call _puts"], [270, "mov edi, offset asc_4020CB"], [271, "call _puts"], [272, "mov edi, offset asc_402063"], [273, "call _puts"], [274, "nop"], [275, "leave"], [276, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 3], [10, 9], [11, 3], [12, 11], [13, 12], [19, 3], [20, 19], [21, 20], [22, 21], [23, 4], [24, 23], [30, 61], [30, 28], [31, 30], [32, 31], [33, 32], [34, 33], [35, 30], [36, 35], [37, 34], [37, 36], [38, 37], [39, 38], [40, 39], [41, 40], [41, 38], [42, 41], [43, 30], [43, 42], [44, 43], [45, 44], [46, 45], [47, 61], [47, 28], [48, 47], [49, 48], [50, 49], [51, 50], [52, 47], [53, 52], [54, 51], [55, 54], [55, 53], [56, 55], [59, 56], [59, 58], [61, 61], [61, 28], [62, 3], [63, 62], [64, 61], [64, 63], [64, 28], [65, 64], [68, 4], [69, 68], [75, 94], [75, 73], [76, 75], [77, 76], [78, 77], [79, 78], [80, 75], [81, 80], [82, 79], [82, 81], [83, 82], [84, 83], [85, 84], [86, 83], [86, 85], [87, 86], [88, 87], [88, 75], [89, 88], [90, 89], [94, 94], [94, 73], [95, 3], [96, 95], [97, 94], [97, 96], [97, 73], [98, 97], [101, 4], [102, 101], [110, 106], [110, 110], [111, 3], [112, 111], [113, 110], [113, 112], [113, 106], [114, 113], [119, 4], [120, 119], [124, 117], [124, 171], [125, 124], [127, 125], [128, 126], [128, 127], [129, 128], [130, 129], [136, 171], [136, 117], [137, 136], [138, 137], [139, 3], [140, 139], [141, 138], [141, 140], [142, 162], [142, 134], [143, 142], [143, 141], [144, 3], [146, 143], [147, 146], [148, 147], [149, 171], [149, 117], [150, 149], [151, 150], [152, 151], [152, 148], [153, 152], [154, 153], [155, 154], [156, 155], [160, 157], [160, 159], [162, 162], [162, 134], [163, 3], [164, 163], [165, 162], [165, 164], [165, 134], [166, 165], [171, 117], [171, 171], [172, 3], [173, 172], [174, 171], [174, 173], [174, 117], [175, 174], [176, 4], [177, 176], [185, 181], [185, 185], [186, 3], [187, 186], [188, 187], [188, 181], [188, 185], [189, 188], [196, 3], [197, 196], [198, 197], [199, 198], [200, 3], [201, 200], [202, 3], [203, 202], [204, 203], [208, 3], [209, 208], [210, 209], [211, 210], [212, 3], [213, 212], [214, 3], [215, 214], [216, 215], [220, 3], [221, 220], [222, 221], [226, 3], [227, 226], [228, 227], [229, 228], [230, 229], [232, 3], [233, 232], [234, 3], [235, 234], [236, 233], [236, 235], [237, 236], [240, 264], [240, 238], [242, 231], [242, 242], [242, 228], [243, 249], [243, 233], [244, 243], [245, 244], [249, 3], [250, 264], [250, 238], [252, 250], [253, 252], [254, 253], [258, 237], [259, 258], [260, 238], [260, 264], [260, 259], [261, 260], [264, 264], [264, 238], [265, 264], [265, 238], [266, 265], [266, 237], [267, 266], [276, 273]]}
void filtering_candidates_buffered_kmer_filter_retrieve_region( filtering_candidates_buffered_t* const filtering_candidates_buffered, filtering_candidates_t* const filtering_candidates, filtering_region_t* const filtering_region, pattern_t* const pattern, gpu_buffer_kmer_filter_t* const gpu_buffer_kmer_filter, uint64_t* const gpu_buffer_offset) { // Parameters alignment_t* const alignment = &filtering_region->alignment; pattern_tiled_t* const pattern_tiled = &pattern->pattern_tiled; const uint64_t max_error = pattern->max_effective_filtering_error; // Detect trimmed matches if (!pattern_tiled->kmer_filter_nway.enabled){ alignment->distance_min_bound = ALIGN_DISTANCE_UNKNOWN; vector_insert(filtering_candidates->filtering_regions,filtering_region,filtering_region_t*); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_ACCEPTED); return; } if (filtering_region->key_trimmed || pattern->key_length < FILTERING_CANDIDATES_KMER_FILTER_MIN_KEY_LENGTH) { alignment->distance_min_bound = ALIGN_DISTANCE_UNKNOWN; vector_insert(filtering_candidates->filtering_regions,filtering_region,filtering_region_t*); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_ACCEPTED); return; } // Detect exact-matches if (filtering_region->alignment.distance_min_bound == 0) { vector_insert(filtering_candidates->filtering_regions,filtering_region,filtering_region_t*); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_ACCEPTED); return; } // Retrieve min-bound uint64_t min_distance_bound; if (gpu_buffer_kmer_filter->kmer_filter_enabled) { min_distance_bound = gpu_buffer_kmer_filter_get_min_edit_bound( gpu_buffer_kmer_filter,*gpu_buffer_offset, pattern_tiled->kmer_filter_nway.num_tiles); *gpu_buffer_offset += pattern_tiled->kmer_filter_nway.num_tiles; // DEBUG #ifdef GPU_CHECK_KMER_FILTER const uint64_t min_distance_bound_check = filtering_candidates_buffered_kmer_filter_compute_alignment( filtering_candidates,filtering_region,pattern); if (min_distance_bound_check != min_distance_bound) { fprintf(stderr,"GPU.Kmer-Filter. Difference detected (CPU=%lu;GPU=%lu)\n", min_distance_bound_check,min_distance_bound); } #endif } else { min_distance_bound = 0; // Unknown // filtering_candidates_buffered_kmer_filter_compute_alignment( // filtering_candidates,filtering_region,pattern); } if (min_distance_bound <= max_error) { alignment->distance_min_bound = ALIGN_DISTANCE_UNKNOWN; vector_insert(filtering_candidates->filtering_regions,filtering_region,filtering_region_t*); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_ACCEPTED); } else { // Discarded candidate filtering_region->status = filtering_region_verified_discarded; alignment->distance_min_bound = ALIGN_DISTANCE_INF; // Add to discarded candidates (buffered) const uint64_t num_discarded_regions = filtering_candidates_buffered->num_discarded_regions; filtering_candidates_buffered->discarded_regions[num_discarded_regions] = filtering_region; ++(filtering_candidates_buffered->num_discarded_regions); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_DISCARDED); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42695B", "function_addr": 4352347, "binary_name": "2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.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 rax, [rbp+var_48]"], [10, "add rax, 0B0h"], [11, "mov [rbp+var_10], rax"], [12, "mov rax, [rbp+var_50]"], [13, "add rax, 68h "], [14, "mov [rbp+var_18], rax"], [15, "mov rax, [rbp+var_50]"], [16, "mov rax, [rax+50h]"], [17, "mov [rbp+var_20], rax"], [18, "mov rax, [rbp+var_18]"], [19, "movzx eax, byte ptr [rax+70h]"], [20, "xor eax, 1"], [21, "test al, al"], [22, "jz short loc_426A23"], [23, "mov rax, [rbp+var_10]"], [24, "mov esi, 0FFFFFFFEh"], [25, "mov [rax+8], rsi"], [26, "mov rax, [rbp+var_40]"], [27, "mov rax, [rax+18h]"], [28, "mov rax, [rax+8]"], [29, "lea rcx, [rax+1]"], [30, "mov rax, [rbp+var_40]"], [31, "mov rax, [rax+18h]"], [32, "mov edx, 0"], [33, "mov rsi, rcx"], [34, "mov rdi, rax"], [35, "call sub_47D500"], [36, "mov rax, [rbp+var_40]"], [37, "mov rax, [rax+18h]"], [38, "mov rdx, [rax]"], [39, "mov rax, [rbp+var_40]"], [40, "mov rax, [rax+18h]"], [41, "mov rax, [rax+8]"], [42, "shl rax, 3"], [43, "add rdx, rax"], [44, "mov rax, [rbp+var_48]"], [45, "mov [rdx], rax"], [46, "mov rax, [rbp+var_40]"], [47, "mov rax, [rax+18h]"], [48, "mov rdx, [rax+8]"], [49, "add rdx, 1"], [50, "mov [rax+8], rdx"], [51, "jmp locret_426C4F"], [52, "mov rax, [rbp+var_48]"], [53, "movzx eax, byte ptr [rax+0A8h]"], [54, "test al, al"], [55, "jnz short loc_426A42"], [56, "mov rax, [rbp+var_50]"], [57, "mov rax, [rax+10h]"], [58, "cmp rax, 3D08Fh"], [59, "ja short loc_426AB5"], [60, "mov rax, [rbp+var_10]"], [61, "mov edi, 0FFFFFFFEh"], [62, "mov [rax+8], rdi"], [63, "mov rax, [rbp+var_40]"], [64, "mov rax, [rax+18h]"], [65, "mov rax, [rax+8]"], [66, "lea rcx, [rax+1]"], [67, "mov rax, [rbp+var_40]"], [68, "mov rax, [rax+18h]"], [69, "mov edx, 0"], [70, "mov rsi, rcx"], [71, "mov rdi, rax"], [72, "call sub_47D500"], [73, "mov rax, [rbp+var_40]"], [74, "mov rax, [rax+18h]"], [75, "mov rdx, [rax]"], [76, "mov rax, [rbp+var_40]"], [77, "mov rax, [rax+18h]"], [78, "mov rax, [rax+8]"], [79, "shl rax, 3"], [80, "add rdx, rax"], [81, "mov rax, [rbp+var_48]"], [82, "mov [rdx], rax"], [83, "mov rax, [rbp+var_40]"], [84, "mov rax, [rax+18h]"], [85, "mov rdx, [rax+8]"], [86, "add rdx, 1"], [87, "mov [rax+8], rdx"], [88, "jmp locret_426C4F"], [89, "mov rax, [rbp+var_48]"], [90, "mov rax, [rax+0B8h]"], [91, "test rax, rax"], [92, "jnz short loc_426B2B"], [93, "mov rax, [rbp+var_40]"], [94, "mov rax, [rax+18h]"], [95, "mov rax, [rax+8]"], [96, "lea rcx, [rax+1]"], [97, "mov rax, [rbp+var_40]"], [98, "mov rax, [rax+18h]"], [99, "mov edx, 0"], [100, "mov rsi, rcx"], [101, "mov rdi, rax"], [102, "call sub_47D500"], [103, "mov rax, [rbp+var_40]"], [104, "mov rax, [rax+18h]"], [105, "mov rdx, [rax]"], [106, "mov rax, [rbp+var_40]"], [107, "mov rax, [rax+18h]"], [108, "mov rax, [rax+8]"], [109, "shl rax, 3"], [110, "add rdx, rax"], [111, "mov rax, [rbp+var_48]"], [112, "mov [rdx], rax"], [113, "mov rax, [rbp+var_40]"], [114, "mov rax, [rax+18h]"], [115, "mov rdx, [rax+8]"], [116, "add rdx, 1"], [117, "mov [rax+8], rdx"], [118, "jmp locret_426C4F"], [119, "mov rax, [rbp+var_58]"], [120, "movzx eax, byte ptr [rax+8]"], [121, "test al, al"], [122, "jz short loc_426B7C"], [123, "mov rax, [rbp+var_18]"], [124, "mov rdx, [rax+0A8h]"], [125, "mov rax, [rbp+var_60]"], [126, "mov rcx, [rax]"], [127, "mov rax, [rbp+var_58]"], [128, "mov rsi, rcx"], [129, "mov rdi, rax"], [130, "call sub_4320A2"], [131, "mov [rbp+var_8], rax"], [132, "mov rax, [rbp+var_60]"], [133, "mov rdx, [rax]"], [134, "mov rax, [rbp+var_18]"], [135, "mov rax, [rax+0A8h]"], [136, "add rdx, rax"], [137, "mov rax, [rbp+var_60]"], [138, "mov [rax], rdx"], [139, "jmp short loc_426B84"], [140, "mov [rbp+var_8], 0"], [141, "mov rax, [rbp+var_8]"], [142, "cmp rax, [rbp+var_20]"], [143, "ja short loc_426BFE"], [144, "mov rax, [rbp+var_10]"], [145, "mov esi, 0FFFFFFFEh"], [146, "mov [rax+8], rsi"], [147, "mov rax, [rbp+var_40]"], [148, "mov rax, [rax+18h]"], [149, "mov rax, [rax+8]"], [150, "lea rcx, [rax+1]"], [151, "mov rax, [rbp+var_40]"], [152, "mov rax, [rax+18h]"], [153, "mov edx, 0"], [154, "mov rsi, rcx"], [155, "mov rdi, rax"], [156, "call sub_47D500"], [157, "mov rax, [rbp+var_40]"], [158, "mov rax, [rax+18h]"], [159, "mov rdx, [rax]"], [160, "mov rax, [rbp+var_40]"], [161, "mov rax, [rax+18h]"], [162, "mov rax, [rax+8]"], [163, "shl rax, 3"], [164, "add rdx, rax"], [165, "mov rax, [rbp+var_48]"], [166, "mov [rdx], rax"], [167, "mov rax, [rbp+var_40]"], [168, "mov rax, [rax+18h]"], [169, "mov rdx, [rax+8]"], [170, "add rdx, 1"], [171, "mov [rax+8], rdx"], [172, "jmp short locret_426C4F"], [173, "mov rax, [rbp+var_48]"], [174, "mov dword ptr [rax], 2"], [175, "mov rax, [rbp+var_10]"], [176, "mov edi, 0FFFFFFFFh"], [177, "mov [rax+8], rdi"], [178, "mov rax, [rbp+var_38]"], [179, "mov rax, [rax+30h]"], [180, "mov [rbp+var_28], rax"], [181, "mov rax, [rbp+var_38]"], [182, "mov rdx, [rax+28h]"], [183, "mov rax, [rbp+var_28]"], [184, "shl rax, 3"], [185, "add rdx, rax"], [186, "mov rax, [rbp+var_48]"], [187, "mov [rdx], rax"], [188, "mov rax, [rbp+var_38]"], [189, "mov rax, [rax+30h]"], [190, "lea rdx, [rax+1]"], [191, "mov rax, [rbp+var_38]"], [192, "mov [rax+30h], rdx"], [193, "leave"], [194, "retn"]], "data_dep": [[9, 5], [10, 9], [11, 10], [12, 6], [13, 12], [14, 13], [15, 6], [16, 15], [17, 16], [18, 14], [19, 18], [20, 19], [21, 20], [22, 21], [23, 11], [25, 23], [25, 24], [26, 4], [27, 26], [27, 25], [28, 25], [28, 27], [29, 28], [29, 25], [30, 4], [31, 30], [31, 25], [33, 29], [34, 31], [36, 4], [37, 25], [37, 36], [38, 25], [38, 37], [39, 4], [40, 25], [40, 39], [41, 40], [41, 25], [42, 41], [43, 38], [43, 42], [44, 5], [45, 43], [45, 44], [46, 4], [47, 45], [47, 46], [48, 45], [48, 47], [48, 25], [49, 48], [50, 47], [50, 49], [52, 5], [53, 52], [54, 53], [55, 54], [56, 6], [57, 56], [58, 57], [59, 58], [60, 11], [62, 60], [62, 61], [63, 4], [64, 62], [64, 63], [65, 62], [65, 64], [66, 62], [66, 65], [67, 4], [68, 67], [68, 62], [70, 66], [71, 68], [73, 4], [74, 73], [74, 62], [75, 74], [75, 62], [76, 4], [77, 62], [77, 76], [78, 77], [78, 62], [79, 78], [80, 75], [80, 79], [81, 5], [82, 81], [82, 80], [83, 4], [84, 83], [84, 82], [85, 82], [85, 84], [85, 62], [86, 85], [87, 84], [87, 86], [89, 5], [90, 89], [91, 90], [92, 91], [93, 4], [94, 93], [95, 94], [96, 95], [97, 4], [98, 97], [100, 96], [101, 98], [103, 4], [104, 103], [105, 104], [106, 4], [107, 106], [108, 107], [109, 108], [110, 109], [110, 105], [111, 5], [112, 111], [112, 110], [113, 4], [114, 113], [114, 112], [115, 112], [115, 114], [116, 115], [117, 114], [117, 116], [119, 7], [120, 119], [121, 120], [122, 121], [123, 14], [124, 123], [125, 8], [126, 125], [127, 7], [128, 126], [129, 127], [133, 132], [135, 134], [136, 135], [136, 133], [138, 137], [138, 136], [141, 131], [141, 140], [142, 141], [142, 17], [143, 142], [144, 11], [146, 145], [146, 144], [147, 4], [148, 147], [148, 146], [149, 146], [149, 148], [150, 149], [150, 146], [151, 4], [152, 151], [152, 146], [154, 150], [155, 152], [157, 4], [158, 146], [158, 157], [159, 146], [159, 138], [159, 158], [160, 4], [161, 160], [161, 146], [162, 161], [162, 146], [163, 162], [164, 159], [164, 163], [165, 5], [166, 165], [166, 164], [167, 4], [168, 166], [168, 167], [169, 146], [169, 166], [169, 168], [170, 169], [171, 168], [171, 170], [173, 5], [174, 173], [175, 11], [177, 176], [177, 175], [178, 3], [179, 178], [179, 177], [180, 179], [181, 3], [182, 177], [182, 181], [183, 180], [184, 183], [185, 182], [185, 184], [186, 5], [187, 185], [187, 186], [188, 3], [189, 188], [189, 187], [190, 185], [190, 187], [190, 189], [191, 3], [192, 190], [192, 191], [194, 114], [194, 84], [194, 168], [194, 191], [194, 47]]}
long snum(int size) { register int i; register long x; pc += size; x = getc(dvifp); if (x & 0x80) x -= 0x100; for (i = size - 1; i > 0; i--) x = (x << 8) + (unsigned) getc(dvifp); return x; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402248", "function_addr": 4203080, "binary_name": "f8643e6b5b09093b12ae8fad3c4cdbf0b6ef786af63fd564d389e89ab3be0270.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 10h"], [5, "mov [rbp+var_14], edi"], [6, "mov eax, [rbp+var_14]"], [7, "movsxd rdx, eax"], [8, "mov rax, cs:qword_406108"], [9, "add rax, rdx"], [10, "mov cs:qword_406108, rax"], [11, "mov rax, cs:stream"], [12, "mov rdi, rax"], [13, "call _getc"], [14, "movsxd rbx, eax"], [15, "mov rax, rbx"], [16, "and eax, 80h"], [17, "test rax, rax"], [18, "jz short loc_402293"], [19, "sub rbx, 100h"], [20, "mov eax, [rbp+var_14]"], [21, "lea r12d, [rax-1]"], [22, "jmp short loc_4022B8"], [23, "shl rbx, 8"], [24, "mov rax, cs:stream"], [25, "mov rdi, rax"], [26, "call _getc"], [27, "mov eax, eax"], [28, "add rbx, rax"], [29, "sub r12d, 1"], [30, "test r12d, r12d"], [31, "jg short loc_40229C"], [32, "mov rax, rbx"], [33, "add rsp, 10h"], [34, "pop rbx"], [35, "pop r12"], [36, "pop rbp"], [37, "retn"]], "data_dep": [[6, 5], [7, 6], [9, 8], [9, 7], [10, 9], [12, 11], [14, 13], [15, 14], [16, 15], [17, 16], [18, 17], [19, 14], [20, 5], [21, 20], [23, 19], [23, 28], [23, 14], [25, 24], [27, 26], [28, 27], [28, 23], [29, 30], [30, 21], [30, 29], [31, 30], [32, 14], [32, 19], [32, 28], [33, 4], [34, 3], [35, 2], [36, 0], [37, 32]]}
static uint16_t handle_read_request2(att_connection_t * att_connection, uint8_t * response_buffer, uint16_t response_buffer_size, uint16_t handle){ log_info("ATT_READ_REQUEST: handle %04x", handle); uint8_t request_type = ATT_READ_REQUEST; att_iterator_t it; int ok = att_find_handle(&it, handle); if (!ok){ return setup_error_invalid_handle(response_buffer, request_type, handle); } // check if handle can be read if ((it.flags & ATT_PROPERTY_READ) == 0) { return setup_error_read_not_permitted(response_buffer, request_type, handle); } // check security requirements uint8_t error_code = att_validate_security(att_connection, ATT_READ, &it); if (error_code) { return setup_error(response_buffer, request_type, handle, error_code); } att_update_value_len(&it, att_connection->con_handle); #ifdef ENABLE_ATT_DELAYED_RESPONSE if (it.value_len == ATT_READ_RESPONSE_PENDING) return ATT_READ_RESPONSE_PENDING; #endif // store uint16_t offset = 1; uint16_t bytes_copied = att_copy_value(&it, 0, response_buffer + offset, response_buffer_size - offset, att_connection->con_handle); offset += bytes_copied; response_buffer[0] = ATT_READ_RESPONSE; return offset; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_437374", "function_addr": 4420468, "binary_name": "32e5bef9a534f6a023b94f0e20e0c28fed442ec28edeb1e289ac97b9496f472a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+var_50], rsi"], [5, "mov eax, ecx"], [6, "mov [rbp+var_54], dx"], [7, "mov [rbp+var_58], ax"], [8, "movzx eax, [rbp+var_58]"], [9, "mov r8d, eax"], [10, "mov ecx, 293h"], [11, "mov edx, offset aAttDbC"], [12, "mov esi, offset aSUAttReadReque"], [13, "mov edi, 1"], [14, "mov eax, 0"], [15, "call sub_41A13D"], [16, "mov [rbp+var_1], 0Ah"], [17, "movzx edx, [rbp+var_58]"], [18, "lea rax, [rbp+var_40]"], [19, "mov esi, edx"], [20, "mov rdi, rax"], [21, "call sub_43627A"], [22, "mov [rbp+var_8], eax"], [23, "cmp [rbp+var_8], 0"], [24, "jnz short loc_4373ED"], [25, "movzx edx, [rbp+var_58]"], [26, "movzx ecx, [rbp+var_1]"], [27, "mov rax, [rbp+var_50]"], [28, "mov esi, ecx"], [29, "mov rdi, rax"], [30, "call sub_43679D"], [31, "jmp locret_4374CD"], [32, "movzx eax, [rbp+var_36]"], [33, "movzx eax, ax"], [34, "and eax, 2"], [35, "test eax, eax"], [36, "jnz short loc_437416"], [37, "movzx edx, [rbp+var_58]"], [38, "movzx ecx, [rbp+var_1]"], [39, "mov rax, [rbp+var_50]"], [40, "mov esi, ecx"], [41, "mov rdi, rax"], [42, "call sub_4366FE"], [43, "jmp locret_4374CD"], [44, "lea rdx, [rbp+var_40]"], [45, "mov rax, [rbp+var_48]"], [46, "mov esi, 0"], [47, "mov rdi, rax"], [48, "call sub_436835"], [49, "mov [rbp+var_9], al"], [50, "cmp [rbp+var_9], 0"], [51, "jz short loc_43744E"], [52, "movzx ecx, [rbp+var_9]"], [53, "movzx edx, [rbp+var_58]"], [54, "movzx esi, [rbp+var_1]"], [55, "mov rax, [rbp+var_50]"], [56, "mov rdi, rax"], [57, "call sub_4366A0"], [58, "jmp short locret_4374CD"], [59, "mov rax, [rbp+var_48]"], [60, "movzx eax, word ptr [rax]"], [61, "movzx edx, ax"], [62, "lea rax, [rbp+var_40]"], [63, "mov esi, edx"], [64, "mov rdi, rax"], [65, "call sub_43633C"], [66, "movzx eax, [rbp+var_28]"], [67, "cmp ax, 0FFFFh"], [68, "jnz short loc_437477"], [69, "mov eax, 0FFFFFFFFh"], [70, "jmp short locret_4374CD"], [71, "mov [rbp+var_C], 1"], [72, "mov rax, [rbp+var_48]"], [73, "movzx eax, word ptr [rax]"], [74, "movzx ecx, ax"], [75, "movzx eax, [rbp+var_54]"], [76, "sub ax, [rbp+var_C]"], [77, "movzx edx, ax"], [78, "movzx esi, [rbp+var_C]"], [79, "mov rax, [rbp+var_50]"], [80, "add rsi, rax"], [81, "lea rax, [rbp+var_40]"], [82, "mov r8d, ecx"], [83, "mov ecx, edx"], [84, "mov rdx, rsi"], [85, "mov esi, 0"], [86, "mov rdi, rax"], [87, "call sub_43639A"], [88, "mov [rbp+var_E], ax"], [89, "movzx eax, [rbp+var_E]"], [90, "add [rbp+var_C], ax"], [91, "mov rax, [rbp+var_50]"], [92, "mov byte ptr [rax], 0Bh"], [93, "movzx eax, [rbp+var_C]"], [94, "leave"], [95, "retn"]], "data_dep": [[7, 5], [8, 7], [9, 8], [17, 7], [18, 15], [19, 17], [20, 18], [22, 21], [23, 22], [24, 23], [25, 7], [26, 16], [27, 4], [28, 26], [29, 27], [33, 32], [34, 33], [35, 34], [36, 35], [37, 7], [38, 16], [39, 4], [40, 38], [41, 39], [44, 17], [45, 3], [47, 45], [49, 48], [50, 49], [51, 50], [52, 49], [53, 7], [54, 16], [55, 4], [56, 55], [59, 3], [60, 59], [61, 60], [62, 60], [63, 61], [64, 62], [67, 66], [68, 67], [72, 3], [73, 72], [74, 73], [75, 6], [76, 75], [76, 71], [77, 76], [78, 71], [79, 4], [80, 79], [80, 78], [81, 79], [82, 74], [83, 77], [84, 80], [86, 81], [88, 87], [89, 88], [90, 71], [90, 89], [91, 4], [92, 91], [93, 90], [95, 69], [95, 57], [95, 93], [95, 30], [95, 42]]}
static void btstack_tlv_posix_append_tag(btstack_tlv_posix_t * self, uint32_t tag, const uint8_t * data, uint32_t data_size){ if (!self->file) return; log_info("append tag %04x, len %u", tag, data_size); uint8_t header[8]; big_endian_store_32(header, 0, tag); big_endian_store_32(header, 4, data_size); size_t written_header = fwrite(header, 1, sizeof(header), self->file); if (written_header != sizeof(header)) return; if (data_size > 0) { size_t written_value = fwrite(data, 1, data_size, self->file); if (written_value != data_size) return; } fflush(self->file); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403068", "function_addr": 4206696, "binary_name": "c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov dword ptr [rbp+n+4], esi"], [5, "mov [rbp+var_38], rdx"], [6, "mov dword ptr [rbp+n], ecx"], [7, "mov rax, [rbp+var_28]"], [8, "mov rax, [rax+10h]"], [9, "test rax, rax"], [10, "jnz short loc_403095"], [11, "mov eax, 1"], [12, "jmp locret_403165"], [13, "mov edx, dword ptr [rbp+n]"], [14, "mov eax, dword ptr [rbp+n+4]"], [15, "mov r9d, edx"], [16, "mov r8d, eax"], [17, "mov ecx, 4Ah "], [18, "mov edx, offset aBtstackTlvPosi"], [19, "mov esi, offset aSUAppendTag04x"], [20, "mov edi, 1"], [21, "mov eax, 0"], [22, "call sub_4122DA"], [23, "mov edx, dword ptr [rbp+n+4]"], [24, "lea rax, [rbp+ptr]"], [25, "mov esi, 0"], [26, "mov rdi, rax"], [27, "call sub_40845A"], [28, "mov edx, dword ptr [rbp+n]"], [29, "lea rax, [rbp+ptr]"], [30, "mov esi, 4"], [31, "mov rdi, rax"], [32, "call sub_40845A"], [33, "mov rax, [rbp+var_28]"], [34, "mov rdx, [rax+10h]"], [35, "lea rax, [rbp+ptr]"], [36, "mov rcx, rdx"], [37, "mov edx, 8"], [38, "mov esi, 1"], [39, "mov rdi, rax"], [40, "call _fwrite"], [41, "mov [rbp+var_8], rax"], [42, "cmp [rbp+var_8], 8"], [43, "jz short loc_40311A"], [44, "mov eax, 1"], [45, "jmp short locret_403165"], [46, "cmp dword ptr [rbp+n], 0"], [47, "jz short loc_403150"], [48, "mov rax, [rbp+var_28]"], [49, "mov rcx, [rax+10h]"], [50, "mov edx, dword ptr [rbp+n]"], [51, "mov rax, [rbp+var_38]"], [52, "mov esi, 1"], [53, "mov rdi, rax"], [54, "call _fwrite"], [55, "mov [rbp+var_10], rax"], [56, "mov eax, dword ptr [rbp+n]"], [57, "cmp [rbp+var_10], rax"], [58, "jz short loc_403150"], [59, "mov eax, 1"], [60, "jmp short locret_403165"], [61, "mov rax, [rbp+var_28]"], [62, "mov rax, [rax+10h]"], [63, "mov rdi, rax"], [64, "call _fflush"], [65, "mov eax, 1"], [66, "leave"], [67, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 8], [10, 9], [13, 6], [14, 4], [15, 13], [16, 14], [23, 4], [24, 22], [26, 24], [28, 6], [29, 27], [31, 29], [33, 3], [34, 33], [35, 33], [36, 34], [39, 35], [41, 40], [42, 41], [43, 42], [46, 6], [47, 46], [48, 3], [49, 48], [50, 6], [51, 5], [53, 51], [55, 54], [56, 6], [57, 56], [57, 55], [58, 57], [61, 3], [62, 61], [63, 62], [67, 65], [67, 59], [67, 11], [67, 44]]}
uint8_t gba_check_sram_flash (void) { uint16_t currAddr = 0x0000; uint16_t zeroTotal = 0; hasFlashSave = NOT_CHECKED; // Special check for certain games if (strncmp(gameTitle, "CHUCHU ROCKE", 12) == 0 || strncmp(gameTitle, "CHUCHUROCKET", 12) == 0) { // Chu-Chu Rocket! return SRAM_FLASH_512KBIT; } // Pre-read SRAM/Flash (if the cart has an EEPROM, sometimes D0-D7 come back with random data in the first 64 bytes read) set_number(currAddr, SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); com_read_stop(); // Test if SRAM is present, read 32 sections of RAM (64 bytes each) for (uint8_t x = 0; x < 32; x++) { set_number(currAddr, SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); com_read_stop(); // Check for 0x00 byte for (uint8_t c = 0; c < 64; c++) { if (readBuffer[c] == 0) { zeroTotal++; } } currAddr += 0x400; // Progress if (x % 10 == 0) { printf("."); } } if (zeroTotal >= 2000) { // Looks like no SRAM or Flash present, lets do a more thorough check // Set start and end address currAddr = 0x0000; endAddr = 32768; set_number(currAddr, SET_START_ADDRESS); set_mode(GBA_READ_SRAM); zeroTotal = 0; // Read data while (currAddr < endAddr) { com_read_bytes(READ_BUFFER, 64); currAddr += 64; // Check for 0x00 byte for (uint8_t c = 0; c < 64; c++) { if (readBuffer[c] == 0) { zeroTotal++; } } // Request 64 bytes more if (currAddr < endAddr) { com_read_cont(); } } com_read_stop(); if (zeroTotal == 32768) { return 0; } } // Calculate size by checking different addresses (Test 256Kbit or 512Kbit) uint16_t duplicateCount = 0; char firstBuffer[65]; char secondBuffer[65]; for (uint8_t x = 0; x < 32; x++) { set_number((uint32_t) (x * 0x400), SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); memcpy(&firstBuffer, readBuffer, 64); com_read_stop(); set_number((uint32_t) (x * 0x400) + 0x8000, SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); memcpy(&secondBuffer, readBuffer, 64); com_read_stop(); // Compare for (uint8_t x = 0; x < 64; x++) { if (firstBuffer[x] == secondBuffer[x]) { duplicateCount++; } } // Progress if (x % 10 == 0) { printf("."); } } if (duplicateCount >= 2000) { return SRAM_FLASH_256KBIT; } // Check if it's SRAM or Flash at this stage, maximum for SRAM is 512Kbit printf("\n"); hasFlashSave = gba_test_sram_flash_write(); if (hasFlashSave == NO_FLASH) { return SRAM_FLASH_512KBIT; } // Test 512Kbit or 1Mbit Flash, read first 64 bytes on bank 0 then bank 1 and compare else { duplicateCount = 0; printf("Testing for 512Kbit or 1Mbit Flash... "); for (uint8_t x = 0; x < 32; x++) { // Read bank 0 set_number((uint32_t) (x * 0x400), SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); memcpy(&firstBuffer, readBuffer, 64); com_read_stop(); // Read bank 1 set_number(1, GBA_FLASH_SET_BANK); // Set bank 1 set_number((uint32_t) (x * 0x400), SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); memcpy(&secondBuffer, readBuffer, 64); com_read_stop(); set_number(0, GBA_FLASH_SET_BANK); // Set back to bank 0 // Compare for (uint8_t x = 0; x < 64; x++) { if (firstBuffer[x] == secondBuffer[x]) { duplicateCount++; } } } // If bank 0 and 1 are duplicated, then it's 512Kbit Flash if (duplicateCount >= 2000) { printf("512Kbit\n"); return SRAM_FLASH_512KBIT; } else { printf("1Mbit\n"); return SRAM_FLASH_1MBIT; } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402E02", "function_addr": 4206082, "binary_name": "19d5318b349f2d5485888470c0f50eb4432edaf30b2bf3df0a433de4edc90d52.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0A0h"], [3, "mov [rbp+var_2], 0"], [4, "mov [rbp+var_4], 0"], [5, "mov cs:dword_408688, 0"], [6, "mov edx, 0Ch"], [7, "mov esi, offset s2"], [8, "mov edi, offset s1"], [9, "call _strncmp"], [10, "test eax, eax"], [11, "jz short loc_402E53"], [12, "mov edx, 0Ch"], [13, "mov esi, offset aChuchurocket"], [14, "mov edi, offset s1"], [15, "call _strncmp"], [16, "test eax, eax"], [17, "jnz short loc_402E5D"], [18, "mov eax, 2"], [19, "jmp locret_4032C7"], [20, "movzx eax, [rbp+var_2]"], [21, "mov esi, 41h "], [22, "mov edi, eax"], [23, "call sub_401EF9"], [24, "mov edi, 6Dh "], [25, "call sub_401EAE"], [26, "mov esi, 40h "], [27, "mov edi, 0"], [28, "call sub_401D36"], [29, "call sub_401C1D"], [30, "mov [rbp+var_5], 0"], [31, "jmp loc_402F44"], [32, "movzx eax, [rbp+var_2]"], [33, "mov esi, 41h "], [34, "mov edi, eax"], [35, "call sub_401EF9"], [36, "mov edi, 6Dh "], [37, "call sub_401EAE"], [38, "mov esi, 40h "], [39, "mov edi, 0"], [40, "call sub_401D36"], [41, "call sub_401C1D"], [42, "mov [rbp+var_6], 0"], [43, "jmp short loc_402EEE"], [44, "movzx eax, [rbp+var_6]"], [45, "cdqe"], [46, "movzx eax, byte ptr ds:qword_408420[rax]"], [47, "test al, al"], [48, "jnz short loc_402EE4"], [49, "movzx eax, [rbp+var_4]"], [50, "add eax, 1"], [51, "mov [rbp+var_4], ax"], [52, "movzx eax, [rbp+var_6]"], [53, "add eax, 1"], [54, "mov [rbp+var_6], al"], [55, "cmp [rbp+var_6], 3Fh "], [56, "jbe short loc_402EC8"], [57, "add [rbp+var_2], 400h"], [58, "movzx ecx, [rbp+var_5]"], [59, "movzx edx, cl"], [60, "mov eax, edx"], [61, "shl eax, 2"], [62, "add eax, edx"], [63, "shl eax, 3"], [64, "add eax, edx"], [65, "lea edx, ds:0[rax*4]"], [66, "add eax, edx"], [67, "shr ax, 8"], [68, "mov edx, eax"], [69, "shr dl, 3"], [70, "mov eax, edx"], [71, "shl eax, 2"], [72, "add eax, edx"], [73, "add eax, eax"], [74, "sub ecx, eax"], [75, "mov edx, ecx"], [76, "test dl, dl"], [77, "jnz short loc_402F3A"], [78, "mov edi, 2Eh "], [79, "call _putchar"], [80, "movzx eax, [rbp+var_5]"], [81, "add eax, 1"], [82, "mov [rbp+var_5], al"], [83, "cmp [rbp+var_5], 1Fh"], [84, "jbe loc_402E94"], [85, "cmp [rbp+var_4], 7CFh"], [86, "jbe loc_40300A"], [87, "mov [rbp+var_2], 0"], [88, "mov cs:dword_408168, 8000h"], [89, "movzx eax, [rbp+var_2]"], [90, "mov esi, 41h "], [91, "mov edi, eax"], [92, "call sub_401EF9"], [93, "mov edi, 6Dh "], [94, "call sub_401EAE"], [95, "mov [rbp+var_4], 0"], [96, "jmp short loc_402FE5"], [97, "mov esi, 40h "], [98, "mov edi, 0"], [99, "call sub_401D36"], [100, "add [rbp+var_2], 40h "], [101, "mov [rbp+var_7], 0"], [102, "jmp short loc_402FCC"], [103, "movzx eax, [rbp+var_7]"], [104, "cdqe"], [105, "movzx eax, byte ptr ds:qword_408420[rax]"], [106, "test al, al"], [107, "jnz short loc_402FC2"], [108, "movzx eax, [rbp+var_4]"], [109, "add eax, 1"], [110, "mov [rbp+var_4], ax"], [111, "movzx eax, [rbp+var_7]"], [112, "add eax, 1"], [113, "mov [rbp+var_7], al"], [114, "cmp [rbp+var_7], 3Fh "], [115, "jbe short loc_402FA6"], [116, "movzx edx, [rbp+var_2]"], [117, "mov eax, cs:dword_408168"], [118, "cmp edx, eax"], [119, "jnb short loc_402FE5"], [120, "call sub_401C43"], [121, "movzx edx, [rbp+var_2]"], [122, "mov eax, cs:dword_408168"], [123, "cmp edx, eax"], [124, "jb short loc_402F8C"], [125, "call sub_401C1D"], [126, "cmp [rbp+var_4], 8000h"], [127, "jnz short loc_40300A"], [128, "mov eax, 0"], [129, "jmp locret_4032C7"], [130, "mov [rbp+var_A], 0"], [131, "mov [rbp+var_B], 0"], [132, "jmp loc_403137"], [133, "movzx eax, [rbp+var_B]"], [134, "shl eax, 0Ah"], [135, "mov esi, 41h "], [136, "mov edi, eax"], [137, "call sub_401EF9"], [138, "mov edi, 6Dh "], [139, "call sub_401EAE"], [140, "mov esi, 40h "], [141, "mov edi, 0"], [142, "call sub_401D36"], [143, "lea rax, [rbp+dest]"], [144, "mov edx, 40h "], [145, "mov esi, offset qword_408420"], [146, "mov rdi, rax"], [147, "call _memcpy"], [148, "call sub_401C1D"], [149, "movzx eax, [rbp+var_B]"], [150, "shl eax, 0Ah"], [151, "add eax, 8000h"], [152, "mov esi, 41h "], [153, "mov edi, eax"], [154, "call sub_401EF9"], [155, "mov edi, 6Dh "], [156, "call sub_401EAE"], [157, "mov esi, 40h "], [158, "mov edi, 0"], [159, "call sub_401D36"], [160, "lea rax, [rbp+var_A0]"], [161, "mov edx, 40h "], [162, "mov esi, offset qword_408420"], [163, "mov rdi, rax"], [164, "call _memcpy"], [165, "call sub_401C1D"], [166, "mov [rbp+var_C], 0"], [167, "jmp short loc_4030E7"], [168, "movzx eax, [rbp+var_C]"], [169, "cdqe"], [170, "movzx edx, [rbp+rax+dest]"], [171, "movzx eax, [rbp+var_C]"], [172, "cdqe"], [173, "movzx eax, [rbp+rax+var_A0]"], [174, "cmp dl, al"], [175, "jnz short loc_4030DD"], [176, "movzx eax, [rbp+var_A]"], [177, "add eax, 1"], [178, "mov [rbp+var_A], ax"], [179, "movzx eax, [rbp+var_C]"], [180, "add eax, 1"], [181, "mov [rbp+var_C], al"], [182, "cmp [rbp+var_C], 3Fh "], [183, "jbe short loc_4030B5"], [184, "movzx ecx, [rbp+var_B]"], [185, "movzx edx, cl"], [186, "mov eax, edx"], [187, "shl eax, 2"], [188, "add eax, edx"], [189, "shl eax, 3"], [190, "add eax, edx"], [191, "lea edx, ds:0[rax*4]"], [192, "add eax, edx"], [193, "shr ax, 8"], [194, "mov edx, eax"], [195, "shr dl, 3"], [196, "mov eax, edx"], [197, "shl eax, 2"], [198, "add eax, edx"], [199, "add eax, eax"], [200, "sub ecx, eax"], [201, "mov edx, ecx"], [202, "test dl, dl"], [203, "jnz short loc_40312D"], [204, "mov edi, 2Eh "], [205, "call _putchar"], [206, "movzx eax, [rbp+var_B]"], [207, "add eax, 1"], [208, "mov [rbp+var_B], al"], [209, "cmp [rbp+var_B], 1Fh"], [210, "jbe loc_403019"], [211, "cmp [rbp+var_A], 7CFh"], [212, "jbe short loc_403153"], [213, "mov eax, 1"], [214, "jmp locret_4032C7"], [215, "mov edi, 0Ah"], [216, "call _putchar"], [217, "call sub_402942"], [218, "movzx eax, al"], [219, "mov cs:dword_408688, eax"], [220, "mov eax, cs:dword_408688"], [221, "cmp eax, 1"], [222, "jnz short loc_403180"], [223, "mov eax, 2"], [224, "jmp locret_4032C7"], [225, "mov [rbp+var_A], 0"], [226, "mov edi, offset aTestingFor512k"], [227, "mov eax, 0"], [228, "call _printf"], [229, "mov [rbp+var_D], 0"], [230, "jmp loc_403295"], [231, "movzx eax, [rbp+var_D]"], [232, "shl eax, 0Ah"], [233, "mov esi, 41h "], [234, "mov edi, eax"], [235, "call sub_401EF9"], [236, "mov edi, 6Dh "], [237, "call sub_401EAE"], [238, "mov esi, 40h "], [239, "mov edi, 0"], [240, "call sub_401D36"], [241, "lea rax, [rbp+dest]"], [242, "mov edx, 40h "], [243, "mov esi, offset qword_408420"], [244, "mov rdi, rax"], [245, "call _memcpy"], [246, "call sub_401C1D"], [247, "mov esi, 6Bh "], [248, "mov edi, 1"], [249, "call sub_401EF9"], [250, "movzx eax, [rbp+var_D]"], [251, "shl eax, 0Ah"], [252, "mov esi, 41h "], [253, "mov edi, eax"], [254, "call sub_401EF9"], [255, "mov edi, 6Dh "], [256, "call sub_401EAE"], [257, "mov esi, 40h "], [258, "mov edi, 0"], [259, "call sub_401D36"], [260, "lea rax, [rbp+var_A0]"], [261, "mov edx, 40h "], [262, "mov esi, offset qword_408420"], [263, "mov rdi, rax"], [264, "call _memcpy"], [265, "call sub_401C1D"], [266, "mov esi, 6Bh "], [267, "mov edi, 0"], [268, "call sub_401EF9"], [269, "mov [rbp+var_E], 0"], [270, "jmp short loc_403285"], [271, "movzx eax, [rbp+var_E]"], [272, "cdqe"], [273, "movzx edx, [rbp+rax+dest]"], [274, "movzx eax, [rbp+var_E]"], [275, "cdqe"], [276, "movzx eax, [rbp+rax+var_A0]"], [277, "cmp dl, al"], [278, "jnz short loc_40327B"], [279, "movzx eax, [rbp+var_A]"], [280, "add eax, 1"], [281, "mov [rbp+var_A], ax"], [282, "movzx eax, [rbp+var_E]"], [283, "add eax, 1"], [284, "mov [rbp+var_E], al"], [285, "cmp [rbp+var_E], 3Fh "], [286, "jbe short loc_403253"], [287, "movzx eax, [rbp+var_D]"], [288, "add eax, 1"], [289, "mov [rbp+var_D], al"], [290, "cmp [rbp+var_D], 1Fh"], [291, "jbe loc_40319E"], [292, "cmp [rbp+var_A], 7CFh"], [293, "jbe short loc_4032B8"], [294, "mov edi, offset a512kbit"], [295, "call _puts"], [296, "mov eax, 2"], [297, "jmp short locret_4032C7"], [298, "mov edi, offset a1mbit"], [299, "call _puts"], [300, "mov eax, 3"], [301, "leave"], [302, "retn"]], "data_dep": [[10, 9], [11, 10], [16, 15], [17, 16], [20, 3], [22, 20], [32, 3], [32, 57], [34, 32], [44, 54], [44, 42], [47, 46], [48, 47], [49, 4], [49, 51], [50, 49], [51, 50], [52, 42], [52, 54], [53, 52], [54, 53], [55, 54], [55, 42], [56, 55], [57, 57], [57, 3], [58, 30], [58, 82], [59, 58], [60, 59], [61, 60], [62, 59], [62, 61], [63, 62], [64, 59], [64, 63], [65, 59], [66, 64], [66, 65], [67, 66], [68, 67], [69, 68], [70, 69], [71, 70], [72, 69], [72, 71], [73, 72], [74, 73], [74, 58], [75, 74], [76, 75], [77, 76], [80, 30], [80, 82], [81, 80], [82, 81], [83, 30], [83, 82], [84, 83], [85, 4], [85, 51], [86, 85], [89, 87], [91, 89], [100, 87], [100, 100], [103, 113], [103, 101], [106, 105], [107, 106], [108, 95], [108, 110], [109, 108], [110, 109], [111, 101], [111, 113], [112, 111], [113, 112], [114, 113], [114, 101], [115, 114], [116, 100], [117, 88], [118, 117], [118, 116], [119, 118], [121, 87], [121, 100], [122, 88], [123, 121], [123, 122], [124, 123], [126, 110], [126, 95], [127, 126], [133, 131], [133, 208], [134, 133], [136, 134], [143, 142], [146, 143], [149, 208], [149, 131], [150, 149], [151, 150], [153, 151], [160, 159], [163, 160], [168, 166], [168, 181], [170, 168], [171, 181], [171, 166], [173, 171], [174, 173], [174, 170], [175, 174], [176, 178], [176, 130], [177, 176], [178, 177], [179, 181], [179, 166], [180, 179], [181, 180], [182, 181], [182, 166], [183, 182], [184, 131], [184, 208], [185, 184], [186, 185], [187, 186], [188, 187], [188, 185], [189, 188], [190, 185], [190, 189], [191, 185], [192, 190], [192, 191], [193, 192], [194, 193], [195, 194], [196, 195], [197, 196], [198, 195], [198, 197], [199, 198], [200, 199], [200, 184], [201, 200], [202, 201], [203, 202], [206, 131], [206, 208], [207, 206], [208, 207], [209, 131], [209, 208], [210, 209], [211, 130], [211, 178], [212, 211], [218, 217], [219, 218], [220, 219], [221, 220], [222, 221], [231, 289], [231, 229], [232, 231], [234, 232], [241, 240], [244, 241], [250, 289], [250, 229], [251, 250], [253, 251], [260, 259], [263, 260], [271, 269], [271, 284], [273, 271], [274, 269], [274, 284], [276, 274], [277, 276], [277, 273], [278, 277], [279, 281], [279, 225], [280, 279], [281, 280], [282, 269], [282, 284], [283, 282], [284, 283], [285, 269], [285, 284], [286, 285], [287, 289], [287, 229], [288, 287], [289, 288], [290, 289], [290, 229], [291, 290], [292, 225], [292, 281], [293, 292], [302, 128], [302, 18], [302, 223], [302, 296], [302, 300], [302, 213]]}
static int sm_passkey_entry(stk_generation_method_t method){ switch (method){ case PK_RESP_INPUT: case PK_INIT_INPUT: case PK_BOTH_INPUT: return 1; default: return 0; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4259DB", "function_addr": 4348379, "binary_name": "1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "mov eax, [rbp+var_4]"], [4, "sub eax, 1"], [5, "cmp eax, 2"], [6, "ja short loc_4259F4"], [7, "mov eax, 1"], [8, "jmp short loc_4259F9"], [9, "mov eax, 0"], [10, "pop rbp"], [11, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [10, 0], [11, 7], [11, 9]]}
static void increase_tima(GB_gameboy_t *gb) { gb->io_registers[GB_IO_TIMA]++; if (gb->io_registers[GB_IO_TIMA] == 0) { gb->io_registers[GB_IO_TIMA] = gb->io_registers[GB_IO_TMA]; gb->tima_reload_state = GB_TIMA_RELOADING; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43F156", "function_addr": 4452694, "binary_name": "276536b89cc3e58f9e6dd34cde9d9d4ba21328c5a859320d5e06460e1ec2c7de.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, "movzx eax, byte ptr [rax+19Ch]"], [5, "lea edx, [rax+1]"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rax+19Ch], dl"], [8, "mov rax, [rbp+var_8]"], [9, "movzx eax, byte ptr [rax+19Ch]"], [10, "test al, al"], [11, "jnz short loc_43F1A5"], [12, "mov rax, [rbp+var_8]"], [13, "movzx edx, byte ptr [rax+19Dh]"], [14, "mov rax, [rbp+var_8]"], [15, "mov [rax+19Ch], dl"], [16, "mov rax, [rbp+var_8]"], [17, "mov byte ptr [rax+22Ah], 1"], [18, "nop"], [19, "pop rbp"], [20, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 2], [7, 6], [7, 5], [8, 2], [9, 8], [9, 7], [10, 9], [11, 10], [12, 2], [13, 17], [13, 7], [13, 15], [13, 12], [14, 2], [15, 14], [15, 13], [16, 2], [17, 16], [19, 0], [20, 10], [20, 16]]}
void archive_search_se_new( search_parameters_t* const search_parameters, const bool buffered_search, archive_search_t** const archive_search) { // Prepare Search *archive_search = mm_alloc(archive_search_t); // Allocate handler archive_search_configure(*archive_search,search_parameters,buffered_search); archive_select_configure_se(*archive_search); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414651", "function_addr": 4277841, "binary_name": "2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.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, esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov [rbp+var_C], al"], [7, "mov ecx, 0"], [8, "mov edx, 0"], [9, "mov esi, 538h"], [10, "mov edi, 1"], [11, "call sub_44D294"], [12, "mov rdx, [rbp+var_18]"], [13, "mov [rdx], rax"], [14, "movzx edx, [rbp+var_C]"], [15, "mov rax, [rbp+var_18]"], [16, "mov rax, [rax]"], [17, "mov rcx, [rbp+var_8]"], [18, "mov rsi, rcx"], [19, "mov rdi, rax"], [20, "call sub_414600"], [21, "mov rax, [rbp+var_18]"], [22, "mov rax, [rax]"], [23, "mov rdi, rax"], [24, "call sub_417505"], [25, "nop"], [26, "leave"], [27, "retn"]], "data_dep": [[6, 4], [12, 5], [13, 12], [13, 11], [14, 6], [15, 5], [16, 13], [16, 15], [17, 3], [18, 17], [19, 16], [21, 5], [22, 21], [22, 13], [23, 22], [27, 24]]}
bool AL_HEVC_IsRASL(AL_ENut eNUT) { return eNUT == AL_HEVC_NUT_RASL_N || eNUT == AL_HEVC_NUT_RASL_R; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43876A", "function_addr": 4425578, "binary_name": "5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "cmp [rbp+var_4], 8"], [4, "jz short loc_43877D"], [5, "cmp [rbp+var_4], 9"], [6, "jnz short loc_438784"], [7, "mov eax, 1"], [8, "jmp short loc_438789"], [9, "mov eax, 0"], [10, "and eax, 1"], [11, "pop rbp"], [12, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 2], [6, 5], [10, 7], [10, 9], [11, 0], [12, 10]]}
int bf_pow(bf_t *r, const bf_t *x, const bf_t *y, limb_t prec, bf_flags_t flags) { bf_context_t *s = r->ctx; bf_t T_s, *T = &T_s; bf_t ytmp_s; BOOL y_is_int, y_is_odd; int r_sign, ret, rnd_mode; slimb_t y_emin; if (x->len == 0 || y->len == 0) { if (y->expn == BF_EXP_ZERO) { /* pow(x, 0) = 1 */ bf_set_ui(r, 1); } else if (x->expn == BF_EXP_NAN) { bf_set_nan(r); } else { int cmp_x_abs_1; bf_set_ui(r, 1); cmp_x_abs_1 = bf_cmpu(x, r); if (cmp_x_abs_1 == 0 && (flags & BF_POW_JS_QUICKS) && (y->expn >= BF_EXP_INF)) { bf_set_nan(r); } else if (cmp_x_abs_1 == 0 && (!x->sign || y->expn != BF_EXP_NAN)) { /* pow(1, y) = 1 even if y = NaN */ /* pow(-1, +/-inf) = 1 */ } else if (y->expn == BF_EXP_NAN) { bf_set_nan(r); } else if (y->expn == BF_EXP_INF) { if (y->sign == (cmp_x_abs_1 > 0)) { bf_set_zero(r, 0); } else { bf_set_inf(r, 0); } } else { y_emin = bf_get_exp_min(y); y_is_odd = (y_emin == 0); if (y->sign == (x->expn == BF_EXP_ZERO)) { bf_set_inf(r, y_is_odd & x->sign); if (y->sign) { /* pow(0, y) with y < 0 */ return BF_ST_DIVIDE_ZERO; } } else { bf_set_zero(r, y_is_odd & x->sign); } } } return 0; } bf_init(s, T); bf_set(T, x); y_emin = bf_get_exp_min(y); y_is_int = (y_emin >= 0); rnd_mode = flags & BF_RND_MASK; if (x->sign) { if (!y_is_int) { bf_set_nan(r); bf_delete(T); return BF_ST_INVALID_OP; } y_is_odd = (y_emin == 0); r_sign = y_is_odd; /* change the directed rounding mode if the sign of the result is changed */ if (r_sign && (rnd_mode == BF_RNDD || rnd_mode == BF_RNDU)) flags ^= 1; bf_neg(T); } else { r_sign = 0; } bf_set_ui(r, 1); if (bf_cmp_eq(T, r)) { /* abs(x) = 1: nothing more to do */ ret = 0; } else if (y_is_int) { slimb_t T_bits, e; int_pow: T_bits = T->expn - bf_get_exp_min(T); if (T_bits == 1) { /* pow(2^b, y) = 2^(b*y) */ bf_mul_si(T, y, T->expn - 1, LIMB_BITS, BF_RNDZ); bf_get_limb(&e, T, 0); bf_set_ui(r, 1); ret = bf_mul_2exp(r, e, prec, flags); } else if (prec == BF_PREC_INF) { slimb_t y1; /* specific case for infinite precision (integer case) */ bf_get_limb(&y1, y, 0); assert(!y->sign); /* x must be an integer, so abs(x) >= 2 */ if (y1 >= ((slimb_t)1 << BF_EXP_BITS_MAX)) { bf_delete(T); return bf_set_overflow(r, 0, BF_PREC_INF, flags); } ret = bf_pow_ui(r, T, y1, BF_PREC_INF, BF_RNDZ); } else { if (y->expn <= 31) { /* small enough power: use exponentiation in all cases */ } else if (y->sign) { /* cannot be exact */ goto general_case; } else { if (rnd_mode == BF_RNDF) goto general_case; /* no need to track exact results */ /* see if the result has a chance to be exact: if x=a*2^b (a odd), x^y=a^y*2^(b*y) x^y needs a precision of at least floor_log2(a)*y bits */ bf_mul_si(r, y, T_bits - 1, LIMB_BITS, BF_RNDZ); bf_get_limb(&e, r, 0); if (prec < e) goto general_case; } ret = bf_ziv_rounding(r, T, prec, flags, bf_pow_int, (void *)y); } } else { if (rnd_mode != BF_RNDF) { bf_t *y1; if (y_emin < 0 && check_exact_power2n(r, T, -y_emin)) { /* the problem is reduced to a power to an integer */ #if 0 printf("\nn=%ld\n", -y_emin); bf_print_str("T", T); bf_print_str("r", r); #endif bf_set(T, r); y1 = &ytmp_s; y1->tab = y->tab; y1->len = y->len; y1->sign = y->sign; y1->expn = y->expn - y_emin; y = y1; goto int_pow; } } general_case: ret = bf_ziv_rounding(r, T, prec, flags, bf_pow_generic, (void *)y); } bf_delete(T); r->sign = r_sign; return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4ACED0", "function_addr": 4902608, "binary_name": "14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 0E8h"], [4, "mov [rbp+var_C8], rdi"], [5, "mov [rbp+var_D0], rsi"], [6, "mov [rbp+var_D8], rdx"], [7, "mov [rbp+var_E0], rcx"], [8, "mov [rbp+var_E4], r8d"], [9, "mov rax, [rbp+var_C8]"], [10, "mov rax, [rax]"], [11, "mov [rbp+var_20], rax"], [12, "lea rax, [rbp+var_80]"], [13, "mov [rbp+var_28], rax"], [14, "mov rax, [rbp+var_D0]"], [15, "mov rax, [rax+18h]"], [16, "test rax, rax"], [17, "jz short loc_4ACF39"], [18, "mov rax, [rbp+var_D8]"], [19, "mov rax, [rax+18h]"], [20, "test rax, rax"], [21, "jnz loc_4AD187"], [22, "mov rax, [rbp+var_D8]"], [23, "mov rax, [rax+10h]"], [24, "mov rdx, 8000000000000000h"], [25, "cmp rax, rdx"], [26, "jnz short loc_4ACF6C"], [27, "mov rax, [rbp+var_C8]"], [28, "mov esi, 1"], [29, "mov rdi, rax"], [30, "call sub_4A2788"], [31, "jmp loc_4AD17D"], [32, "mov rax, [rbp+var_D0]"], [33, "mov rax, [rax+10h]"], [34, "mov rdx, 7FFFFFFFFFFFFFFFh"], [35, "cmp rax, rdx"], [36, "jnz short loc_4ACF9A"], [37, "mov rax, [rbp+var_C8]"], [38, "mov rdi, rax"], [39, "call sub_4A2872"], [40, "jmp loc_4AD17D"], [41, "mov rax, [rbp+var_C8]"], [42, "mov esi, 1"], [43, "mov rdi, rax"], [44, "call sub_4A2788"], [45, "mov rdx, [rbp+var_C8]"], [46, "mov rax, [rbp+var_D0]"], [47, "mov rsi, rdx"], [48, "mov rdi, rax"], [49, "call sub_4A381D"], [50, "mov [rbp+var_54], eax"], [51, "cmp [rbp+var_54], 0"], [52, "jnz short loc_4AD00D"], [53, "mov eax, [rbp+var_E4]"], [54, "and eax, 10000h"], [55, "test eax, eax"], [56, "jz short loc_4AD00D"], [57, "mov rax, [rbp+var_D8]"], [58, "mov rax, [rax+10h]"], [59, "mov rdx, 7FFFFFFFFFFFFFFDh"], [60, "cmp rax, rdx"], [61, "jle short loc_4AD00D"], [62, "mov rax, [rbp+var_C8]"], [63, "mov rdi, rax"], [64, "call sub_4A2872"], [65, "jmp loc_4AD17D"], [66, "cmp [rbp+var_54], 0"], [67, "jnz short loc_4AD043"], [68, "mov rax, [rbp+var_D0]"], [69, "mov eax, [rax+8]"], [70, "test eax, eax"], [71, "jz loc_4AD17C"], [72, "mov rax, [rbp+var_D8]"], [73, "mov rax, [rax+10h]"], [74, "mov rdx, 7FFFFFFFFFFFFFFFh"], [75, "cmp rax, rdx"], [76, "jnz loc_4AD17C"], [77, "mov rax, [rbp+var_D8]"], [78, "mov rax, [rax+10h]"], [79, "mov rdx, 7FFFFFFFFFFFFFFFh"], [80, "cmp rax, rdx"], [81, "jnz short loc_4AD071"], [82, "mov rax, [rbp+var_C8]"], [83, "mov rdi, rax"], [84, "call sub_4A2872"], [85, "jmp loc_4AD17D"], [86, "mov rax, [rbp+var_D8]"], [87, "mov rax, [rax+10h]"], [88, "mov rdx, 7FFFFFFFFFFFFFFEh"], [89, "cmp rax, rdx"], [90, "jnz short loc_4AD0D5"], [91, "mov rax, [rbp+var_D8]"], [92, "mov edx, [rax+8]"], [93, "cmp [rbp+var_54], 0"], [94, "setnle al"], [95, "movzx eax, al"], [96, "cmp edx, eax"], [97, "jnz short loc_4AD0BC"], [98, "mov rax, [rbp+var_C8]"], [99, "mov esi, 0"], [100, "mov rdi, rax"], [101, "call sub_4A28AF"], [102, "jmp loc_4AD17D"], [103, "mov rax, [rbp+var_C8]"], [104, "mov esi, 0"], [105, "mov rdi, rax"], [106, "call sub_4A28EE"], [107, "jmp loc_4AD17D"], [108, "mov rax, [rbp+var_D8]"], [109, "mov rdi, rax"], [110, "call sub_4A595B"], [111, "mov [rbp+var_30], rax"], [112, "cmp [rbp+var_30], 0"], [113, "setz al"], [114, "movzx eax, al"], [115, "mov [rbp+var_3C], eax"], [116, "mov rax, [rbp+var_D8]"], [117, "mov edx, [rax+8]"], [118, "mov rax, [rbp+var_D0]"], [119, "mov rax, [rax+10h]"], [120, "mov rcx, 8000000000000000h"], [121, "cmp rax, rcx"], [122, "setz al"], [123, "movzx eax, al"], [124, "cmp edx, eax"], [125, "jnz short loc_4AD15A"], [126, "mov rax, [rbp+var_D0]"], [127, "mov eax, [rax+8]"], [128, "and eax, [rbp+var_3C]"], [129, "mov edx, eax"], [130, "mov rax, [rbp+var_C8]"], [131, "mov esi, edx"], [132, "mov rdi, rax"], [133, "call sub_4A28EE"], [134, "mov rax, [rbp+var_D8]"], [135, "mov eax, [rax+8]"], [136, "test eax, eax"], [137, "jz short loc_4AD17D"], [138, "mov eax, 2"], [139, "jmp loc_4AD606"], [140, "mov rax, [rbp+var_D0]"], [141, "mov eax, [rax+8]"], [142, "and eax, [rbp+var_3C]"], [143, "mov edx, eax"], [144, "mov rax, [rbp+var_C8]"], [145, "mov esi, edx"], [146, "mov rdi, rax"], [147, "call sub_4A28AF"], [148, "jmp short loc_4AD17D"], [149, "nop"], [150, "mov eax, 0"], [151, "jmp loc_4AD606"], [152, "mov rdx, [rbp+var_28]"], [153, "mov rax, [rbp+var_20]"], [154, "mov rsi, rdx"], [155, "mov rdi, rax"], [156, "call sub_4A26DE"], [157, "mov rdx, [rbp+var_D0]"], [158, "mov rax, [rbp+var_28]"], [159, "mov rsi, rdx"], [160, "mov rdi, rax"], [161, "call sub_4A292D"], [162, "mov rax, [rbp+var_D8]"], [163, "mov rdi, rax"], [164, "call sub_4A595B"], [165, "mov [rbp+var_30], rax"], [166, "mov rax, [rbp+var_30]"], [167, "not rax"], [168, "shr rax, 3Fh"], [169, "movzx eax, al"], [170, "mov [rbp+var_34], eax"], [171, "mov eax, [rbp+var_E4]"], [172, "and eax, 7"], [173, "mov [rbp+var_38], eax"], [174, "mov rax, [rbp+var_D0]"], [175, "mov eax, [rax+8]"], [176, "test eax, eax"], [177, "jz short loc_4AD254"], [178, "cmp [rbp+var_34], 0"], [179, "jnz short loc_4AD219"], [180, "mov rax, [rbp+var_C8]"], [181, "mov rdi, rax"], [182, "call sub_4A2872"], [183, "mov rax, [rbp+var_28]"], [184, "mov rdi, rax"], [185, "call sub_4A2528"], [186, "mov eax, 1"], [187, "jmp loc_4AD606"], [188, "cmp [rbp+var_30], 0"], [189, "setz al"], [190, "movzx eax, al"], [191, "mov [rbp+var_3C], eax"], [192, "mov eax, [rbp+var_3C]"], [193, "mov [rbp+var_14], eax"], [194, "cmp [rbp+var_14], 0"], [195, "jz short loc_4AD246"], [196, "cmp [rbp+var_38], 2"], [197, "jz short loc_4AD23F"], [198, "cmp [rbp+var_38], 3"], [199, "jnz short loc_4AD246"], [200, "xor [rbp+var_E4], 1"], [201, "mov rax, [rbp+var_28]"], [202, "mov rdi, rax"], [203, "call sub_4A2565"], [204, "jmp short loc_4AD25B"], [205, "mov [rbp+var_14], 0"], [206, "mov rax, [rbp+var_C8]"], [207, "mov esi, 1"], [208, "mov rdi, rax"], [209, "call sub_4A2788"], [210, "mov rdx, [rbp+var_C8]"], [211, "mov rax, [rbp+var_28]"], [212, "mov rsi, rdx"], [213, "mov rdi, rax"], [214, "call sub_4A3B03"], [215, "test eax, eax"], [216, "jz short loc_4AD295"], [217, "mov [rbp+var_18], 0"], [218, "jmp loc_4AD5EA"], [219, "cmp [rbp+var_34], 0"], [220, "jz loc_4AD4EE"], [221, "nop"], [222, "mov rax, [rbp+var_28]"], [223, "mov rbx, [rax+10h]"], [224, "mov rax, [rbp+var_28]"], [225, "mov rdi, rax"], [226, "call sub_4A595B"], [227, "mov rdx, rax"], [228, "mov rax, rbx"], [229, "sub rax, rdx"], [230, "mov [rbp+var_50], rax"], [231, "cmp [rbp+var_50], 1"], [232, "jnz loc_4AD350"], [233, "mov rax, [rbp+var_28]"], [234, "mov rax, [rax+10h]"], [235, "lea rdx, [rax-1]"], [236, "mov rsi, [rbp+var_D8]"], [237, "mov rax, [rbp+var_28]"], [238, "mov r8d, 1"], [239, "mov ecx, 40h "], [240, "mov rdi, rax"], [241, "call sub_4A744F"], [242, "mov rcx, [rbp+var_28]"], [243, "lea rax, [rbp+var_B8]"], [244, "mov edx, 0"], [245, "mov rsi, rcx"], [246, "mov rdi, rax"], [247, "call sub_4A672D"], [248, "mov rax, [rbp+var_C8]"], [249, "mov esi, 1"], [250, "mov rdi, rax"], [251, "call sub_4A2788"], [252, "mov rsi, [rbp+var_B8]"], [253, "mov ecx, [rbp+var_E4]"], [254, "mov rdx, [rbp+var_E0]"], [255, "mov rax, [rbp+var_C8]"], [256, "mov rdi, rax"], [257, "call sub_4A5517"], [258, "mov [rbp+var_18], eax"], [259, "jmp loc_4AD5EA"], [260, "mov rax, 3FFFFFFFFFFFFFFFh"], [261, "cmp [rbp+var_E0], rax"], [262, "jnz loc_4AD42E"], [263, "mov rcx, [rbp+var_D8]"], [264, "lea rax, [rbp+var_C0]"], [265, "mov edx, 0"], [266, "mov rsi, rcx"], [267, "mov rdi, rax"], [268, "call sub_4A672D"], [269, "mov rax, [rbp+var_D8]"], [270, "mov eax, [rax+8]"], [271, "test eax, eax"], [272, "jz short loc_4AD3AC"], [273, "mov ecx, offset aBfPow"], [274, "mov edx, 1025h"], [275, "mov esi, offset aLibbfC"], [276, "mov edi, offset aYSign"], [277, "call ___assert_fail"], [278, "mov rax, [rbp+var_C0]"], [279, "mov rdx, 3FFFFFFFFFFFFFFFh"], [280, "cmp rax, rdx"], [281, "jle short loc_4AD3F9"], [282, "mov rax, [rbp+var_28]"], [283, "mov rdi, rax"], [284, "call sub_4A2528"], [285, "mov edx, [rbp+var_E4]"], [286, "mov rax, [rbp+var_C8]"], [287, "mov ecx, edx"], [288, "mov rdx, 3FFFFFFFFFFFFFFFh"], [289, "mov esi, 0"], [290, "mov rdi, rax"], [291, "call sub_4A2E02"], [292, "jmp loc_4AD606"], [293, "mov rax, [rbp+var_C0]"], [294, "mov rdx, rax"], [295, "mov rsi, [rbp+var_28]"], [296, "mov rax, [rbp+var_C8]"], [297, "mov r8d, 1"], [298, "mov rcx, 3FFFFFFFFFFFFFFFh"], [299, "mov rdi, rax"], [300, "call sub_4A753D"], [301, "mov [rbp+var_18], eax"], [302, "jmp loc_4AD5EA"], [303, "mov rax, [rbp+var_D8]"], [304, "mov rax, [rax+10h]"], [305, "cmp rax, 1Fh"], [306, "jle short loc_4AD4B6"], [307, "mov rax, [rbp+var_D8]"], [308, "mov eax, [rax+8]"], [309, "test eax, eax"], [310, "jnz loc_4AD5AD"], [311, "cmp [rbp+var_38], 6"], [312, "jz loc_4AD5B0"], [313, "mov rax, [rbp+var_50]"], [314, "lea rdx, [rax-1]"], [315, "mov rsi, [rbp+var_D8]"], [316, "mov rax, [rbp+var_C8]"], [317, "mov r8d, 1"], [318, "mov ecx, 40h "], [319, "mov rdi, rax"], [320, "call sub_4A744F"], [321, "mov rcx, [rbp+var_C8]"], [322, "lea rax, [rbp+var_B8]"], [323, "mov edx, 0"], [324, "mov rsi, rcx"], [325, "mov rdi, rax"], [326, "call sub_4A672D"], [327, "mov rax, [rbp+var_B8]"], [328, "cmp [rbp+var_E0], rax"], [329, "jb loc_4AD5B3"], [330, "mov rdi, [rbp+var_D8]"], [331, "mov ecx, [rbp+var_E4]"], [332, "mov rdx, [rbp+var_E0]"], [333, "mov rsi, [rbp+var_28]"], [334, "mov rax, [rbp+var_C8]"], [335, "mov r9, rdi"], [336, "mov r8d, offset sub_4ACC1B"], [337, "mov rdi, rax"], [338, "call sub_4ABD7C"], [339, "mov [rbp+var_18], eax"], [340, "jmp loc_4AD5EA"], [341, "cmp [rbp+var_38], 6"], [342, "jz loc_4AD5B6"], [343, "cmp [rbp+var_30], 0"], [344, "jns loc_4AD5B6"], [345, "mov rax, [rbp+var_30]"], [346, "neg rax"], [347, "mov rdx, rax"], [348, "mov rcx, [rbp+var_28]"], [349, "mov rax, [rbp+var_C8]"], [350, "mov rsi, rcx"], [351, "mov rdi, rax"], [352, "call sub_4ACD2D"], [353, "test eax, eax"], [354, "jz loc_4AD5B6"], [355, "mov rdx, [rbp+var_C8]"], [356, "mov rax, [rbp+var_28]"], [357, "mov rsi, rdx"], [358, "mov rdi, rax"], [359, "call sub_4A292D"], [360, "lea rax, [rbp+var_B0]"], [361, "mov [rbp+var_48], rax"], [362, "mov rax, [rbp+var_D8]"], [363, "mov rdx, [rax+20h]"], [364, "mov rax, [rbp+var_48]"], [365, "mov [rax+20h], rdx"], [366, "mov rax, [rbp+var_D8]"], [367, "mov rdx, [rax+18h]"], [368, "mov rax, [rbp+var_48]"], [369, "mov [rax+18h], rdx"], [370, "mov rax, [rbp+var_D8]"], [371, "mov edx, [rax+8]"], [372, "mov rax, [rbp+var_48]"], [373, "mov [rax+8], edx"], [374, "mov rax, [rbp+var_D8]"], [375, "mov rax, [rax+10h]"], [376, "sub rax, [rbp+var_30]"], [377, "mov rdx, rax"], [378, "mov rax, [rbp+var_48]"], [379, "mov [rax+10h], rdx"], [380, "mov rax, [rbp+var_48]"], [381, "mov [rbp+var_D8], rax"], [382, "jmp loc_4AD2A0"], [383, "nop"], [384, "jmp short loc_4AD5B7"], [385, "nop"], [386, "jmp short loc_4AD5B7"], [387, "nop"], [388, "jmp short loc_4AD5B7"], [389, "nop"], [390, "mov rdi, [rbp+var_D8]"], [391, "mov ecx, [rbp+var_E4]"], [392, "mov rdx, [rbp+var_E0]"], [393, "mov rsi, [rbp+var_28]"], [394, "mov rax, [rbp+var_C8]"], [395, "mov r9, rdi"], [396, "mov r8d, offset sub_4ACB66"], [397, "mov rdi, rax"], [398, "call sub_4ABD7C"], [399, "mov [rbp+var_18], eax"], [400, "mov rax, [rbp+var_28]"], [401, "mov rdi, rax"], [402, "call sub_4A2528"], [403, "mov rax, [rbp+var_C8]"], [404, "mov edx, [rbp+var_14]"], [405, "mov [rax+8], edx"], [406, "mov eax, [rbp+var_18]"], [407, "mov rbx, [rbp+var_8]"], [408, "leave"], [409, "retn"]], "data_dep": [[9, 4], [10, 9], [11, 10], [12, 10], [13, 12], [14, 5], [15, 14], [16, 15], [17, 16], [18, 6], [19, 18], [20, 19], [21, 20], [22, 6], [23, 22], [25, 24], [25, 23], [26, 25], [27, 4], [29, 27], [32, 5], [33, 32], [35, 34], [35, 33], [36, 35], [37, 4], [38, 37], [41, 4], [43, 41], [45, 4], [46, 5], [47, 45], [48, 46], [50, 49], [51, 50], [52, 51], [53, 8], [54, 53], [55, 54], [56, 55], [57, 6], [58, 57], [60, 59], [60, 58], [61, 60], [62, 4], [63, 62], [66, 50], [67, 66], [68, 5], [69, 68], [70, 69], [71, 70], [72, 6], [73, 72], [75, 74], [75, 73], [76, 75], [77, 6], [78, 77], [80, 79], [80, 78], [81, 80], [82, 4], [83, 82], [86, 6], [87, 86], [89, 88], [89, 87], [90, 89], [91, 6], [92, 91], [93, 50], [94, 91], [95, 94], [96, 95], [96, 92], [97, 96], [98, 4], [100, 98], [103, 4], [105, 103], [108, 6], [109, 108], [111, 110], [112, 111], [113, 112], [113, 110], [114, 113], [115, 114], [116, 6], [117, 116], [118, 5], [119, 118], [121, 119], [121, 120], [122, 119], [122, 121], [123, 122], [124, 123], [124, 117], [125, 124], [126, 5], [127, 126], [128, 115], [128, 127], [129, 128], [130, 4], [131, 129], [132, 130], [134, 6], [135, 134], [136, 135], [137, 136], [140, 5], [141, 140], [142, 115], [142, 141], [143, 142], [144, 4], [145, 143], [146, 144], [152, 13], [153, 11], [154, 152], [155, 153], [157, 5], [158, 13], [159, 157], [160, 158], [162, 6], [163, 162], [165, 164], [166, 165], [167, 166], [168, 167], [169, 168], [170, 169], [171, 8], [172, 171], [173, 172], [174, 5], [175, 174], [176, 175], [177, 176], [178, 170], [179, 178], [180, 4], [181, 180], [183, 13], [184, 183], [188, 165], [189, 176], [189, 188], [190, 189], [191, 190], [192, 191], [193, 192], [194, 193], [195, 194], [196, 173], [197, 196], [198, 173], [199, 198], [200, 8], [201, 13], [202, 201], [206, 4], [208, 206], [210, 4], [211, 13], [212, 210], [213, 211], [215, 214], [216, 215], [219, 170], [220, 219], [222, 13], [223, 222], [223, 379], [223, 365], [223, 369], [223, 373], [224, 13], [225, 224], [227, 226], [228, 223], [229, 228], [229, 227], [230, 229], [231, 230], [232, 231], [233, 13], [234, 379], [234, 365], [234, 369], [234, 373], [234, 233], [235, 373], [235, 227], [235, 379], [235, 365], [235, 369], [235, 234], [236, 6], [236, 381], [237, 13], [240, 237], [242, 13], [243, 241], [245, 242], [246, 243], [248, 4], [250, 248], [253, 8], [253, 200], [254, 7], [255, 4], [256, 255], [258, 257], [261, 7], [261, 260], [262, 261], [263, 6], [263, 381], [264, 260], [266, 263], [267, 264], [269, 6], [269, 381], [270, 269], [270, 379], [270, 365], [270, 369], [270, 373], [271, 270], [272, 271], [280, 278], [280, 279], [281, 280], [282, 13], [283, 282], [285, 200], [285, 8], [286, 4], [287, 285], [290, 286], [294, 293], [295, 13], [296, 4], [299, 296], [301, 300], [303, 6], [303, 381], [304, 379], [304, 365], [304, 369], [304, 303], [304, 373], [305, 304], [306, 305], [307, 6], [307, 381], [308, 379], [308, 365], [308, 369], [308, 307], [308, 373], [309, 308], [310, 309], [311, 173], [312, 311], [313, 230], [314, 373], [314, 227], [314, 379], [314, 365], [314, 369], [314, 313], [315, 6], [315, 381], [316, 4], [319, 316], [321, 4], [322, 320], [324, 321], [325, 322], [328, 327], [328, 7], [329, 328], [330, 381], [330, 6], [331, 200], [331, 8], [332, 7], [333, 13], [334, 4], [335, 330], [337, 334], [339, 338], [341, 173], [342, 341], [343, 165], [344, 343], [345, 165], [346, 345], [347, 346], [348, 13], [349, 4], [350, 348], [351, 349], [353, 352], [354, 353], [355, 4], [356, 13], [357, 355], [358, 356], [360, 359], [361, 360], [362, 6], [363, 362], [364, 361], [365, 364], [365, 363], [366, 6], [367, 365], [367, 366], [368, 361], [369, 368], [369, 367], [370, 6], [371, 370], [371, 369], [372, 361], [373, 371], [373, 372], [374, 6], [375, 374], [375, 373], [376, 165], [376, 375], [377, 376], [378, 361], [379, 377], [379, 378], [380, 361], [381, 380], [390, 381], [390, 6], [391, 200], [391, 8], [392, 7], [393, 13], [394, 4], [395, 390], [397, 394], [399, 398], [400, 13], [401, 400], [403, 4], [404, 205], [404, 193], [405, 403], [405, 404], [406, 301], [406, 399], [406, 217], [406, 258], [406, 339], [409, 186], [409, 291], [409, 138], [409, 150], [409, 406]]}
void config_set_uint64(config_file_t *conf, const char *key, uint64_t val) { char buf[32]; snprintf(buf, sizeof(buf), "%" PRIu64, val); config_set_string(conf, key, buf); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407796", "function_addr": 4224918, "binary_name": "2beab05072d063ded206a99a8794f868cc82b7f065265d1bfa006686c89bca5b.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 rdx, [rbp+var_38]"], [7, "lea rax, [rbp+s]"], [8, "mov rcx, rdx"], [9, "mov edx, offset aLu"], [10, "mov esi, 20h "], [11, "mov rdi, rax"], [12, "mov eax, 0"], [13, "call _snprintf"], [14, "lea rdx, [rbp+s]"], [15, "mov rcx, [rbp+var_30]"], [16, "mov rax, [rbp+var_28]"], [17, "mov rsi, rcx"], [18, "mov rdi, rax"], [19, "call sub_4071FB"], [20, "nop"], [21, "leave"], [22, "retn"]], "data_dep": [[6, 5], [8, 6], [11, 7], [14, 9], [15, 4], [16, 3], [17, 15], [18, 16], [22, 19]]}
void LDL_Stream_init(struct ldl_stream *self, void *buf, uint8_t size) { LDL_PEDANTIC(self != NULL) LDL_PEDANTIC((buf != NULL) || (size == 0U)) self->write = buf; self->read = buf; self->size = size; self->pos = 0U; self->error = false; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41699D", "function_addr": 4286877, "binary_name": "f2b2915e9e2d6729375d876f6c15174498b7f2f04b5b9bcc85cb7c605be4924f.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 eax, edx"], [6, "mov [rbp+var_14], al"], [7, "mov rax, cs:qword_437F80"], [8, "add rax, 1"], [9, "mov cs:qword_437F80, rax"], [10, "cmp [rbp+var_8], 0"], [11, "jnz short loc_4169F6"], [12, "mov rax, cs:qword_437F88"], [13, "add rax, 1"], [14, "mov cs:qword_437F88, rax"], [15, "mov ecx, offset aLdlStreamInit"], [16, "mov edx, 1Eh"], [17, "mov esi, offset aSrcLdlStreamC"], [18, "mov edi, offset aSelfVoid0_1"], [19, "call ___assert_fail"], [20, "cmp [rbp+var_10], 0"], [21, "jnz short loc_416A40"], [22, "mov rax, cs:qword_437F90"], [23, "add rax, 1"], [24, "mov cs:qword_437F90, rax"], [25, "cmp [rbp+var_14], 0"], [26, "jz short loc_416A40"], [27, "mov rax, cs:qword_437F98"], [28, "add rax, 1"], [29, "mov cs:qword_437F98, rax"], [30, "mov ecx, offset aLdlStreamInit"], [31, "mov edx, 1Fh"], [32, "mov esi, offset aSrcLdlStreamC"], [33, "mov edi, offset aBufVoid0Size0u"], [34, "call ___assert_fail"], [35, "mov rax, [rbp+var_8]"], [36, "mov rdx, [rbp+var_10]"], [37, "mov [rax], rdx"], [38, "mov rax, [rbp+var_8]"], [39, "mov rdx, [rbp+var_10]"], [40, "mov [rax+8], rdx"], [41, "mov rax, [rbp+var_8]"], [42, "movzx edx, [rbp+var_14]"], [43, "mov [rax+10h], dl"], [44, "mov rax, [rbp+var_8]"], [45, "mov byte ptr [rax+11h], 0"], [46, "mov rax, [rbp+var_8]"], [47, "mov byte ptr [rax+12h], 0"], [48, "nop"], [49, "leave"], [50, "retn"]], "data_dep": [[6, 5], [8, 7], [9, 8], [10, 3], [11, 10], [13, 12], [14, 13], [20, 4], [21, 20], [23, 22], [24, 23], [25, 6], [26, 25], [28, 27], [29, 28], [35, 3], [36, 4], [37, 36], [37, 35], [38, 3], [39, 4], [40, 38], [40, 39], [41, 3], [42, 6], [43, 42], [43, 41], [44, 3], [45, 44], [46, 3], [47, 46], [50, 46]]}
static void numtostr(js_State *J, const char *fmt, int w, double n) { /* buf needs to fit printf("%.20f", 1e20) */ char buf[50], *e; sprintf(buf, fmt, w, n); e = strchr(buf, 'e'); if (e) { int exp = atoi(e+1); sprintf(e, "e%+d", exp); } js_pushstring(J, buf); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_418515", "function_addr": 4293909, "binary_name": "e3c8c5c70ba394a96abdb474fdaf272392a22f0c576d50cae847e2e708e15611.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+format], rsi"], [5, "mov [rbp+var_54], edx"], [6, "movsd [rbp+var_60], xmm0"], [7, "mov rsi, [rbp+var_60]"], [8, "mov edx, [rbp+var_54]"], [9, "mov rcx, [rbp+format]"], [10, "lea rax, [rbp+s]"], [11, "movq xmm0, rsi"], [12, "mov rsi, rcx"], [13, "mov rdi, rax"], [14, "mov eax, 1"], [15, "call _sprintf"], [16, "lea rax, [rbp+s]"], [17, "mov esi, 65h "], [18, "mov rdi, rax"], [19, "call _strchr"], [20, "mov [rbp+var_8], rax"], [21, "cmp [rbp+var_8], 0"], [22, "jz short loc_418599"], [23, "mov rax, [rbp+var_8]"], [24, "add rax, 1"], [25, "mov rdi, rax"], [26, "call _atoi"], [27, "mov [rbp+var_C], eax"], [28, "mov edx, [rbp+var_C]"], [29, "mov rax, [rbp+var_8]"], [30, "mov esi, offset aED"], [31, "mov rdi, rax"], [32, "mov eax, 0"], [33, "call _sprintf"], [34, "lea rdx, [rbp+s]"], [35, "mov rax, [rbp+var_48]"], [36, "mov rsi, rdx"], [37, "mov rdi, rax"], [38, "call sub_424BAA"], [39, "nop"], [40, "leave"], [41, "retn"]], "data_dep": [[7, 6], [8, 5], [9, 4], [11, 7], [12, 9], [13, 10], [16, 15], [18, 16], [20, 19], [21, 20], [22, 21], [23, 20], [24, 23], [25, 24], [27, 26], [28, 27], [29, 20], [31, 29], [34, 28], [34, 8], [35, 3], [36, 34], [37, 35], [41, 38]]}
static int write_iops_log(struct thread_data *td, int try, bool unit_log) { int ret; if (per_unit_log(td->iops_log) != unit_log) return 0; ret = __write_log(td, td->iops_log, try); if (!ret) td->iops_log = NULL; return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_47CFAB", "function_addr": 4706219, "binary_name": "da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov eax, edx"], [6, "mov [rbp+var_20], al"], [7, "mov rax, [rbp+var_18]"], [8, "mov rax, [rax+2DB70h]"], [9, "mov rdi, rax"], [10, "call sub_478C66"], [11, "cmp [rbp+var_20], al"], [12, "jz short loc_47CFDE"], [13, "mov eax, 0"], [14, "jmp short locret_47D016"], [15, "mov rax, [rbp+var_18]"], [16, "mov rcx, [rax+2DB70h]"], [17, "mov edx, [rbp+var_1C]"], [18, "mov rax, [rbp+var_18]"], [19, "mov rsi, rcx"], [20, "mov rdi, rax"], [21, "call sub_47CF72"], [22, "mov [rbp+var_4], eax"], [23, "cmp [rbp+var_4], 0"], [24, "jnz short loc_47D013"], [25, "mov rax, [rbp+var_18]"], [26, "mov qword ptr [rax+2DB70h], 0"], [27, "mov eax, [rbp+var_4]"], [28, "leave"], [29, "retn"]], "data_dep": [[6, 5], [7, 3], [8, 7], [9, 8], [11, 10], [11, 6], [12, 11], [15, 3], [16, 15], [17, 4], [18, 3], [19, 16], [20, 18], [22, 21], [23, 22], [24, 23], [25, 3], [26, 25], [27, 22], [29, 13], [29, 27]]}
int bpf_program__set_prep(struct bpf_program *prog, int nr_instances, bpf_program_prep_t prep) { int *instances_fds; if (nr_instances <= 0 || !prep) return -EINVAL; if (prog->instances.nr > 0 || prog->instances.fds) { pr_warn("Can't set pre-processor after loading\n"); return -EINVAL; } instances_fds = malloc(sizeof(int) * nr_instances); if (!instances_fds) { pr_warn("alloc memory failed for fds\n"); return -ENOMEM; } /* fill all fd with -1 */ memset(instances_fds, -1, sizeof(int) * nr_instances); prog->instances.nr = nr_instances; prog->instances.fds = instances_fds; prog->preprocessor = prep; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "bpf_program__set_prep", "function_addr": 4299987, "binary_name": "c3029f1e790b5e1a59516e394f267d59ba9f8391e8c8f3441f155452ceddb393.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_28], rdx"], [6, "cmp [rbp+var_1C], 0"], [7, "jle short loc_419CF3"], [8, "cmp [rbp+var_28], 0"], [9, "jnz short loc_419CFD"], [10, "mov eax, 0FFFFFFEAh"], [11, "jmp locret_419DB0"], [12, "mov rax, [rbp+var_18]"], [13, "mov eax, [rax+60h]"], [14, "test eax, eax"], [15, "jg short loc_419D15"], [16, "mov rax, [rbp+var_18]"], [17, "mov rax, [rax+68h]"], [18, "test rax, rax"], [19, "jz short loc_419D32"], [20, "lea rsi, aLibbpfCanTSetP"], [21, "mov edi, 0"], [22, "mov eax, 0"], [23, "call sub_40A1AC"], [24, "mov eax, 0FFFFFFEAh"], [25, "jmp short locret_419DB0"], [26, "mov eax, [rbp+var_1C]"], [27, "cdqe"], [28, "shl rax, 2"], [29, "mov rdi, rax"], [30, "call _malloc"], [31, "mov [rbp+s], rax"], [32, "cmp [rbp+s], 0"], [33, "jnz short loc_419D6B"], [34, "lea rsi, aLibbpfAllocMem_0"], [35, "mov edi, 0"], [36, "mov eax, 0"], [37, "call sub_40A1AC"], [38, "mov eax, 0FFFFFFF4h"], [39, "jmp short locret_419DB0"], [40, "mov eax, [rbp+var_1C]"], [41, "cdqe"], [42, "lea rdx, ds:0[rax*4]"], [43, "mov rax, [rbp+s]"], [44, "mov esi, 0FFFFFFFFh"], [45, "mov rdi, rax"], [46, "call _memset"], [47, "mov rax, [rbp+var_18]"], [48, "mov edx, [rbp+var_1C]"], [49, "mov [rax+60h], edx"], [50, "mov rax, [rbp+var_18]"], [51, "mov rdx, [rbp+s]"], [52, "mov [rax+68h], rdx"], [53, "mov rax, [rbp+var_18]"], [54, "mov rdx, [rbp+var_28]"], [55, "mov [rax+70h], rdx"], [56, "mov eax, 0"], [57, "leave"], [58, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 5], [9, 8], [12, 3], [13, 12], [14, 13], [15, 14], [16, 3], [17, 16], [18, 17], [19, 18], [26, 4], [28, 26], [29, 28], [31, 30], [32, 31], [33, 32], [40, 4], [43, 31], [45, 43], [47, 3], [48, 4], [49, 47], [49, 48], [50, 3], [51, 31], [52, 51], [52, 50], [53, 3], [54, 5], [55, 53], [55, 54], [58, 56], [58, 10], [58, 24], [58, 38]]}
static uint32_t find_free_channel(void) { /* FIXME: this needs to actually find a free channel, not just fail to be unlucky */ return snis_randn(100000); /* simplest possible thing that might work. */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_484168", "function_addr": 4735336, "binary_name": "d20d5d136ed82a5a36fdeedd4c3a30a62ee46f8e0365a7e4e8f0c462411d4a2f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov edi, 186A0h"], [3, "call snis_randn"], [4, "pop rbp"], [5, "retn"]], "data_dep": [[4, 0], [5, 3]]}
unsigned OptJumpTarget3 (CodeSeg* S) /* Jumps to load instructions of a register, that do already have the matching ** register contents may skip the load instruction, since it's job is already ** done. */ { unsigned Changes = 0; unsigned I; /* Walk over the entries */ I = 0; while (I < CS_GetEntryCount (S)) { CodeEntry* N; /* Get next entry */ CodeEntry* E = CS_GetEntry (S, I); /* Check if this is a load insn with a label and the next insn is not ** a conditional branch that needs the flags from the load. */ if ((E->Info & OF_LOAD) != 0 && CE_IsConstImm (E) && CE_HasLabel (E) && (N = CS_GetNextEntry (S, I)) != 0 && !CE_UseLoadFlags (N)) { unsigned J; int K; /* New jump label */ CodeLabel* LN = 0; /* Walk over all insn that jump here */ for (J = 0; J < CE_GetLabelCount (E); ++J) { /* Get the label */ CodeLabel* L = CE_GetLabel (E, J); /* Loop over all insn that reference this label. Since we may ** eventually remove a reference in the loop, we must loop ** from end down to start. */ for (K = CL_GetRefCount (L) - 1; K >= 0; --K) { /* Get the entry that jumps here */ CodeEntry* Jump = CL_GetRef (L, K); /* Get the register info from this insn */ short Val = RegVal (E->Chg, &Jump->RI->Out2); /* Check if the outgoing value is the one thats's loaded */ if (Val == (unsigned char) E->Num) { /* OK, skip the insn. First, generate a label for the ** next insn after E. */ if (LN == 0) { LN = CS_GenLabel (S, N); } /* Change the jump target to point to this new label */ CS_MoveLabelRef (S, Jump, LN); /* Remember that we had changes */ ++Changes; } } } } /* Next entry */ ++I; } /* Return the number of changes made */ return Changes; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4455A7", "function_addr": 4478375, "binary_name": "1c9782cb95ac345a77465ba88b70eb8da93f650d1c8877cf5bb119d4d1bf0021.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+var_4], 0"], [5, "mov [rbp+var_8], 0"], [6, "jmp loc_44573E"], [7, "mov edx, [rbp+var_8]"], [8, "mov rax, [rbp+var_48]"], [9, "mov esi, edx"], [10, "mov rdi, rax"], [11, "call sub_44476C"], [12, "mov [rbp+var_20], rax"], [13, "mov rax, [rbp+var_20]"], [14, "movzx eax, word ptr [rax+18h]"], [15, "movzx eax, ax"], [16, "and eax, 40h"], [17, "test eax, eax"], [18, "jz loc_44573A"], [19, "mov rax, [rbp+var_20]"], [20, "mov rdi, rax"], [21, "call sub_407515"], [22, "test eax, eax"], [23, "jz loc_44573A"], [24, "mov rax, [rbp+var_20]"], [25, "mov rdi, rax"], [26, "call sub_4446E4"], [27, "test eax, eax"], [28, "jz loc_44573A"], [29, "mov edx, [rbp+var_8]"], [30, "mov rax, [rbp+var_48]"], [31, "mov esi, edx"], [32, "mov rdi, rax"], [33, "call sub_42FA40"], [34, "mov [rbp+var_28], rax"], [35, "cmp [rbp+var_28], 0"], [36, "jz loc_44573A"], [37, "mov rax, [rbp+var_28]"], [38, "mov rdi, rax"], [39, "call sub_407593"], [40, "test eax, eax"], [41, "jnz loc_44573A"], [42, "mov [rbp+var_18], 0"], [43, "mov [rbp+var_C], 0"], [44, "jmp loc_445725"], [45, "mov edx, [rbp+var_C]"], [46, "mov rax, [rbp+var_20]"], [47, "mov esi, edx"], [48, "mov rdi, rax"], [49, "call sub_444728"], [50, "mov [rbp+var_30], rax"], [51, "mov rax, [rbp+var_30]"], [52, "mov rdi, rax"], [53, "call sub_444687"], [54, "sub eax, 1"], [55, "mov [rbp+var_10], eax"], [56, "jmp loc_445717"], [57, "mov edx, [rbp+var_10]"], [58, "mov rax, [rbp+var_30]"], [59, "mov esi, edx"], [60, "mov rdi, rax"], [61, "call sub_4446A5"], [62, "mov [rbp+var_38], rax"], [63, "mov rax, [rbp+var_38]"], [64, "mov rax, [rax+40h]"], [65, "lea rdx, [rax+20h]"], [66, "mov rax, [rbp+var_20]"], [67, "movzx eax, word ptr [rax+1Ch]"], [68, "movzx eax, ax"], [69, "mov rsi, rdx"], [70, "mov edi, eax"], [71, "call sub_444AB1"], [72, "mov [rbp+var_3A], ax"], [73, "movsx edx, [rbp+var_3A]"], [74, "mov rax, [rbp+var_20]"], [75, "mov rax, [rax+10h]"], [76, "movzx eax, al"], [77, "cmp edx, eax"], [78, "jnz short loc_445713"], [79, "cmp [rbp+var_18], 0"], [80, "jnz short loc_4456F8"], [81, "mov rdx, [rbp+var_28]"], [82, "mov rax, [rbp+var_48]"], [83, "mov rsi, rdx"], [84, "mov rdi, rax"], [85, "call sub_42FCFF"], [86, "mov [rbp+var_18], rax"], [87, "mov rdx, [rbp+var_18]"], [88, "mov rcx, [rbp+var_38]"], [89, "mov rax, [rbp+var_48]"], [90, "mov rsi, rcx"], [91, "mov rdi, rax"], [92, "call sub_43019F"], [93, "add [rbp+var_4], 1"], [94, "sub [rbp+var_10], 1"], [95, "cmp [rbp+var_10], 0"], [96, "jns loc_44568D"], [97, "add [rbp+var_C], 1"], [98, "mov rax, [rbp+var_20]"], [99, "mov rdi, rax"], [100, "call sub_44470A"], [101, "cmp [rbp+var_C], eax"], [102, "jb loc_445661"], [103, "add [rbp+var_8], 1"], [104, "mov rax, [rbp+var_48]"], [105, "mov rdi, rax"], [106, "call sub_44474E"], [107, "cmp [rbp+var_8], eax"], [108, "jb loc_4455C6"], [109, "mov eax, [rbp+var_4]"], [110, "leave"], [111, "retn"]], "data_dep": [[7, 5], [7, 103], [8, 3], [9, 7], [10, 8], [12, 11], [13, 12], [14, 13], [15, 14], [16, 15], [17, 16], [18, 17], [19, 12], [20, 19], [22, 21], [23, 22], [24, 12], [25, 24], [27, 26], [28, 27], [29, 5], [29, 103], [30, 3], [31, 29], [32, 30], [34, 33], [35, 34], [36, 35], [37, 34], [38, 37], [40, 39], [41, 40], [45, 43], [45, 97], [46, 12], [47, 45], [48, 46], [50, 49], [51, 50], [52, 51], [54, 53], [55, 54], [57, 94], [57, 55], [58, 50], [59, 57], [60, 58], [62, 61], [63, 62], [64, 63], [65, 64], [65, 57], [66, 12], [67, 66], [68, 67], [69, 65], [70, 68], [72, 71], [73, 72], [74, 12], [75, 74], [76, 75], [77, 76], [77, 73], [78, 77], [79, 42], [79, 86], [80, 79], [81, 34], [82, 3], [83, 81], [84, 82], [86, 85], [87, 86], [87, 42], [88, 62], [89, 3], [90, 88], [91, 89], [93, 4], [93, 93], [94, 94], [94, 55], [95, 94], [95, 55], [96, 95], [97, 97], [97, 43], [98, 12], [99, 98], [101, 97], [101, 43], [101, 100], [102, 101], [103, 103], [103, 5], [104, 3], [105, 104], [107, 106], [107, 103], [107, 5], [108, 107], [109, 4], [109, 93], [111, 109]]}
void EA_DropItem(int client, char *it) { botimport.BotClientCommand(client, va("drop %s", it)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_498CD6", "function_addr": 4820182, "binary_name": "65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604.elf_extract.pkl\n"}, "code": [[0, "push rbx"], [1, "sub rsp, 10h"], [2, "mov [rsp+18h+var_C], edi"], [3, "mov [rsp+18h+var_18], rsi"], [4, "mov rbx, cs:qword_7BFB38"], [5, "mov rax, [rsp+18h+var_18]"], [6, "mov rsi, rax"], [7, "mov edi, offset aDropS"], [8, "mov eax, 0"], [9, "call sub_44691C"], [10, "mov rdx, rax"], [11, "mov eax, [rsp+18h+var_C]"], [12, "mov rsi, rdx"], [13, "mov edi, eax"], [14, "call rbx "], [15, "nop"], [16, "add rsp, 10h"], [17, "pop rbx"], [18, "retn"]], "data_dep": [[5, 3], [6, 5], [10, 9], [11, 2], [12, 10], [13, 11], [14, 4], [16, 1], [17, 0], [18, 14]]}
number_ptr mul_fr_fr(number_ptr x, number_ptr y){ number_ptr z = new_fr(); mpfr_mul(z->fr.fr, x->fr.fr, y->fr.fr, MPFR_RNDN); return z; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412054", "function_addr": 4268116, "binary_name": "3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406.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 eax, 0"], [6, "call sub_411B04"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_20]"], [9, "lea rdx, [rax+8]"], [10, "mov rax, [rbp+var_18]"], [11, "lea rsi, [rax+8]"], [12, "mov rax, [rbp+var_8]"], [13, "add rax, 8"], [14, "mov ecx, 0"], [15, "mov rdi, rax"], [16, "call _mpfr_mul"], [17, "mov rax, [rbp+var_8]"], [18, "leave"], [19, "retn"]], "data_dep": [[7, 6], [8, 4], [9, 8], [10, 3], [11, 10], [12, 7], [13, 12], [15, 13], [17, 7], [19, 17]]}
unsigned int findInTable(unsigned int *tab, unsigned wc) { int i; for (i = 0; i < 256; i++) { if (tab[i] == wc) break; } return i; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403198", "function_addr": 4207000, "binary_name": "b075dfd15a5f87f7bd9b7e1d96fde5cc5aceb552b90c5c42e9565c1e439733f4.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_4], 0"], [5, "jmp short loc_4031CB"], [6, "mov eax, [rbp+var_4]"], [7, "cdqe"], [8, "lea rdx, ds:0[rax*4]"], [9, "mov rax, [rbp+var_18]"], [10, "add rax, rdx"], [11, "mov eax, [rax]"], [12, "cmp [rbp+var_1C], eax"], [13, "jz short loc_4031D6"], [14, "add [rbp+var_4], 1"], [15, "cmp [rbp+var_4], 0FFh"], [16, "jle short loc_4031AC"], [17, "jmp short loc_4031D7"], [18, "nop"], [19, "mov eax, [rbp+var_4]"], [20, "pop rbp"], [21, "retn"]], "data_dep": [[6, 14], [6, 4], [8, 8], [9, 2], [10, 9], [10, 8], [11, 10], [12, 3], [12, 11], [13, 12], [14, 4], [14, 14], [15, 14], [15, 4], [16, 15], [19, 14], [19, 4], [20, 0], [21, 19]]}
size_t ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel) { return ZSTD_compressBegin_usingDict(cctx, NULL, 0, compressionLevel); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414C7B", "function_addr": 4279419, "binary_name": "0d5cc33be703a38c79bfdcda07108b6b035bbbdab3162c06b4fb671d7a57f5b7.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 edx, [rbp+var_C]"], [6, "mov rax, [rbp+var_8]"], [7, "mov ecx, edx"], [8, "mov edx, 0"], [9, "mov esi, 0"], [10, "mov rdi, rax"], [11, "call sub_414BB7"], [12, "leave"], [13, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 5], [10, 6], [13, 11]]}
ACPI_STATUS AcpiOsDeleteSemaphore ( ACPI_HANDLE Handle) { return (AE_OK); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4044E1", "function_addr": 4211937, "binary_name": "53081f683e097394c8bd35863853914f3d78f9fba127cafeea789f2252f98359.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov eax, 0"], [4, "pop rbp"], [5, "retn"]], "data_dep": [[4, 0], [5, 3]]}
xlEXPORT void xlStkOver(void) { xlFmtAbort("value stack overflow"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409478", "function_addr": 4232312, "binary_name": "616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov edi, offset aValueStackOver"], [3, "mov eax, 0"], [4, "call sub_40A8AC"]], "data_dep": []}
int read_from_filesystem_process(struct pipeline_element_t *e, struct audit_log_entry_t *audit_log) { int res = 0; struct read_from_filesystem_config_t *conf = e->payload; d("Starting batch operation at the directory: %s\n", conf->directory); res = open_directory_recursive(conf->directory, read_from_filesystem_call_entry_cb, conf); if (res) { res = -1; e("Failed to open the directory: '%s' or one of its sub-directories\n", conf->directory); goto failed_opening_directory; } failed_opening_directory: return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4017E6", "function_addr": 4200422, "binary_name": "5818f963fbe7ec3d7e2ec9a7a9898955e36502c12a2dfcf92867927ad35fca32.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_4], 0"], [6, "mov rax, [rbp+var_18]"], [7, "mov rax, [rax+8]"], [8, "mov [rbp+var_10], rax"], [9, "mov eax, cs:dword_418184"], [10, "test eax, eax"], [11, "jz short loc_40183B"], [12, "mov rax, [rbp+var_10]"], [13, "mov rax, [rax]"], [14, "mov r8, rax"], [15, "mov ecx, offset aReadFromFilesy"], [16, "mov edx, 2Fh "], [17, "mov esi, offset aInputElementsR"], [18, "mov edi, offset aSDSStartingBat"], [19, "mov eax, 0"], [20, "call _printf"], [21, "mov rax, [rbp+var_10]"], [22, "mov rax, [rax]"], [23, "mov rdx, [rbp+var_10]"], [24, "mov esi, offset sub_4016D7"], [25, "mov rdi, rax"], [26, "call sub_402C13"], [27, "mov [rbp+var_4], eax"], [28, "cmp [rbp+var_4], 0"], [29, "jz short loc_401898"], [30, "mov [rbp+var_4], 0FFFFFFFFh"], [31, "mov rax, [rbp+var_10]"], [32, "mov rdx, [rax]"], [33, "mov rax, cs:stderr"], [34, "mov r9, rdx"], [35, "mov r8d, offset aReadFromFilesy"], [36, "mov ecx, 37h "], [37, "mov edx, offset aInputElementsR"], [38, "mov esi, offset aSDSFailedToOpe"], [39, "mov rdi, rax"], [40, "mov eax, 0"], [41, "call _fprintf"], [42, "jmp short loc_401899"], [43, "nop"], [44, "mov eax, 0"], [45, "leave"], [46, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [10, 9], [11, 10], [12, 8], [13, 12], [14, 13], [21, 8], [22, 21], [23, 8], [25, 22], [27, 26], [28, 27], [29, 28], [31, 8], [32, 31], [34, 32], [39, 33], [46, 44]]}
static int firehose_write(struct qdl_device *qdl, xmlDoc *doc) { int saved_errno; xmlChar *s; int len; int ret; xmlDocDumpMemory(doc, &s, &len); for (;;) { if (qdl_debug) fprintf(stderr, "FIREHOSE WRITE: %s\n", s); ret = qdl_write(qdl, s, len); saved_errno = errno; /* * db410c sometimes sense a <response> followed by <log> * entries and won't accept write commands until these are * drained, so attempt to read any pending data and then retry * the write. */ if (ret < 0 && errno == ETIMEDOUT) { firehose_read(qdl, 100, firehose_generic_parser, NULL); } else { break; } } xmlFree(s); return ret < 0 ? -saved_errno : 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402A22", "function_addr": 4205090, "binary_name": "87d497476ce9b442dfc0f771c36a76215e7a33fb8f88d419a9455bf6dafcfb7d.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, "lea rdx, [rbp+var_14]"], [6, "lea rcx, [rbp+var_10]"], [7, "mov rax, [rbp+var_30]"], [8, "mov rsi, rcx"], [9, "mov rdi, rax"], [10, "call _xmlDocDumpMemory"], [11, "movzx eax, cs:byte_40B340"], [12, "test al, al"], [13, "jz short loc_402A71"], [14, "mov rdx, [rbp+var_10]"], [15, "mov rax, cs:stderr"], [16, "mov esi, offset aFirehoseWriteS"], [17, "mov rdi, rax"], [18, "mov eax, 0"], [19, "call _fprintf"], [20, "mov eax, [rbp+var_14]"], [21, "movsxd rdx, eax"], [22, "mov rcx, [rbp+var_10]"], [23, "mov rax, [rbp+var_28]"], [24, "mov rsi, rcx"], [25, "mov rdi, rax"], [26, "call sub_4048AE"], [27, "mov [rbp+var_4], eax"], [28, "call ___errno_location"], [29, "mov eax, [rax]"], [30, "mov [rbp+var_8], eax"], [31, "cmp [rbp+var_4], 0"], [32, "jns short loc_402AC6"], [33, "call ___errno_location"], [34, "mov eax, [rax]"], [35, "cmp eax, 6Eh "], [36, "jnz short loc_402AC6"], [37, "mov rax, [rbp+var_28]"], [38, "mov ecx, 0"], [39, "mov edx, offset sub_40272D"], [40, "mov esi, 64h "], [41, "mov rdi, rax"], [42, "call sub_4027AB"], [43, "jmp short loc_402A49"], [44, "mov rdx, cs:xmlFree"], [45, "mov rax, [rbp+var_10]"], [46, "mov rdi, rax"], [47, "call rdx "], [48, "cmp [rbp+var_4], 0"], [49, "jns short loc_402AE3"], [50, "mov eax, [rbp+var_8]"], [51, "neg eax"], [52, "jmp short locret_402AE8"], [53, "mov eax, 0"], [54, "leave"], [55, "retn"]], "data_dep": [[7, 4], [8, 6], [9, 7], [12, 11], [13, 12], [17, 15], [21, 20], [23, 3], [24, 22], [25, 23], [27, 26], [29, 28], [30, 29], [31, 27], [32, 31], [34, 33], [35, 34], [36, 35], [37, 3], [41, 37], [46, 45], [47, 44], [48, 27], [49, 48], [50, 30], [51, 50], [55, 53], [55, 51]]}
int vb2_safe_memcmp(const void *s1, const void *s2, size_t size) { const unsigned char *us1 = s1; const unsigned char *us2 = s2; int result = 0; if (0 == size) return 0; /* * Code snippet without data-dependent branch due to Nate Lawson * (nate@root.org) of Root Labs. */ while (size--) result |= *us1++ ^ *us2++; return result != 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40550F", "function_addr": 4216079, "binary_name": "a97a959f5a5bbcfbc13eaf601fe5a3d4d6f443efbaca9a1e6880d3b64fa82be1.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 rax, [rbp+var_28]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_30]"], [8, "mov [rbp+var_10], rax"], [9, "mov [rbp+var_14], 0"], [10, "cmp [rbp+var_38], 0"], [11, "jnz short loc_40556A"], [12, "mov eax, 0"], [13, "jmp short loc_405585"], [14, "mov rax, [rbp+var_8]"], [15, "lea rdx, [rax+1]"], [16, "mov [rbp+var_8], rdx"], [17, "movzx ecx, byte ptr [rax]"], [18, "mov rax, [rbp+var_10]"], [19, "lea rdx, [rax+1]"], [20, "mov [rbp+var_10], rdx"], [21, "movzx eax, byte ptr [rax]"], [22, "xor eax, ecx"], [23, "movzx eax, al"], [24, "or [rbp+var_14], eax"], [25, "mov rax, [rbp+var_38]"], [26, "lea rdx, [rax-1]"], [27, "mov [rbp+var_38], rdx"], [28, "test rax, rax"], [29, "jnz short loc_405544"], [30, "cmp [rbp+var_14], 0"], [31, "setnz al"], [32, "movzx eax, al"], [33, "pop rbp"], [34, "retn"]], "data_dep": [[5, 2], [6, 5], [7, 3], [8, 7], [10, 4], [11, 10], [14, 16], [14, 6], [15, 14], [15, 26], [16, 15], [17, 14], [18, 20], [18, 8], [19, 18], [19, 15], [20, 19], [21, 18], [22, 17], [22, 21], [23, 22], [24, 23], [24, 9], [24, 24], [25, 4], [25, 27], [26, 19], [26, 25], [27, 26], [28, 25], [29, 28], [30, 9], [30, 24], [31, 28], [31, 30], [32, 31], [33, 0], [34, 12], [34, 32]]}
static void flushbuffer(PrintfTarget *target) { size_t nc = target->bufptr - target->bufstart; /* * Don't write anything if we already failed; this is to ensure we * preserve the original failure's errno. */ if (!target->failed && nc > 0) { size_t written; written = fwrite(target->bufstart, 1, nc, target->stream); target->nchars += written; if (written != nc) target->failed = true; } target->bufptr = target->bufstart; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413780", "function_addr": 4274048, "binary_name": "40874554c46d15a39ce91c8819ccc126854a63e765dafd614f39346dbaf3dc95.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 rdx, [rax]"], [6, "mov rax, [rbp+var_18]"], [7, "mov rcx, [rax+8]"], [8, "mov rax, rdx"], [9, "sub rax, rcx"], [10, "mov [rbp+n], rax"], [11, "mov rax, [rbp+var_18]"], [12, "movzx eax, byte ptr [rax+24h]"], [13, "xor eax, 1"], [14, "test al, al"], [15, "jz short loc_41380A"], [16, "cmp [rbp+n], 0"], [17, "jz short loc_41380A"], [18, "mov rax, [rbp+var_18]"], [19, "mov rcx, [rax+18h]"], [20, "mov rax, [rbp+var_18]"], [21, "mov rax, [rax+8]"], [22, "mov rdx, [rbp+n]"], [23, "mov esi, 1"], [24, "mov rdi, rax"], [25, "call _fwrite"], [26, "mov [rbp+var_10], rax"], [27, "mov rax, [rbp+var_18]"], [28, "mov eax, [rax+20h]"], [29, "mov edx, eax"], [30, "mov rax, [rbp+var_10]"], [31, "add eax, edx"], [32, "mov edx, eax"], [33, "mov rax, [rbp+var_18]"], [34, "mov [rax+20h], edx"], [35, "mov rax, [rbp+var_10]"], [36, "cmp rax, [rbp+n]"], [37, "jz short loc_41380A"], [38, "mov rax, [rbp+var_18]"], [39, "mov byte ptr [rax+24h], 1"], [40, "mov rax, [rbp+var_18]"], [41, "mov rdx, [rax+8]"], [42, "mov rax, [rbp+var_18]"], [43, "mov [rax], rdx"], [44, "nop"], [45, "leave"], [46, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 5], [9, 8], [9, 7], [10, 9], [11, 3], [12, 11], [13, 12], [14, 13], [15, 14], [16, 10], [17, 16], [18, 3], [19, 18], [20, 3], [21, 20], [22, 10], [24, 21], [26, 25], [27, 3], [28, 27], [29, 28], [30, 26], [31, 29], [31, 30], [32, 31], [33, 3], [34, 33], [34, 32], [35, 26], [36, 10], [36, 35], [37, 36], [38, 3], [39, 38], [40, 3], [41, 40], [41, 43], [41, 39], [41, 34], [42, 3], [43, 42], [43, 41], [46, 42]]}
void writeout(void) { hword i; for(i = 0; i < itemp-1; i++){ writew(item[i], relfp); // printf("\t\tDUMP: %06o %06o\n", left(item[i]), right(item[i])); } //printf("\n"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40158E", "function_addr": 4199822, "binary_name": "29ea477980c0d8b0baee130da8b95a902e69458dd77b36fa27b9e48bd094f22d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], 0"], [4, "jmp short loc_4015C0"], [5, "mov rdx, cs:qword_40E870"], [6, "mov eax, [rbp+var_4]"], [7, "mov rax, ds:qword_435F80[rax*8]"], [8, "mov rsi, rdx"], [9, "mov rdi, rax"], [10, "call sub_405918"], [11, "add [rbp+var_4], 1"], [12, "mov eax, cs:dword_635F80"], [13, "sub eax, 1"], [14, "cmp [rbp+var_4], eax"], [15, "jb short loc_40159F"], [16, "nop"], [17, "nop"], [18, "leave"], [19, "retn"]], "data_dep": [[6, 11], [6, 3], [8, 5], [9, 7], [11, 3], [11, 11], [13, 12], [14, 13], [14, 3], [14, 11], [15, 14], [19, 13]]}
t_stat mt_detach (UNIT *uptr) { uptr->botf = uptr->eotf = 0; return sim_tape_detach (uptr); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40CE09", "function_addr": 4247049, "binary_name": "13f2671241114a962235990a8a53447d965ef69e183b81e214ebbded998f318a.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+60h], 0"], [6, "mov rax, [rbp+var_8]"], [7, "mov edx, [rax+60h]"], [8, "mov rax, [rbp+var_8]"], [9, "mov [rax+5Ch], edx"], [10, "mov rax, [rbp+var_8]"], [11, "mov rdi, rax"], [12, "call sub_46BFDD"], [13, "leave"], [14, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [7, 5], [8, 3], [9, 8], [9, 7], [10, 3], [11, 10], [14, 12]]}
static void perf_evlist__collapse_resort(struct perf_evlist *evlist) { struct perf_evsel *evsel; evlist__for_each(evlist, evsel) { struct hists *hists = &evsel->hists; hists__collapse_resort(hists, NULL); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_420563", "function_addr": 4326755, "binary_name": "decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_38], rdi"], [4, "mov rax, fs:28h"], [5, "mov [rbp+var_8], rax"], [6, "xor eax, eax"], [7, "mov rax, [rbp+var_38]"], [8, "mov rax, [rax]"], [9, "mov [rbp+var_20], rax"], [10, "mov rax, [rbp+var_20]"], [11, "mov [rbp+var_28], rax"], [12, "jmp short loc_4205C5"], [13, "mov rax, [rbp+var_28]"], [14, "add rax, 0A8h"], [15, "mov [rbp+var_18], rax"], [16, "mov rax, [rbp+var_18]"], [17, "mov esi, 0"], [18, "mov rdi, rax"], [19, "call hists__collapse_resort"], [20, "mov rax, [rbp+var_28]"], [21, "mov rax, [rax]"], [22, "mov [rbp+var_10], rax"], [23, "mov rax, [rbp+var_10]"], [24, "mov [rbp+var_28], rax"], [25, "mov rax, [rbp+var_28]"], [26, "cmp rax, [rbp+var_38]"], [27, "jnz short loc_420593"], [28, "nop"], [29, "mov rax, [rbp+var_8]"], [30, "sub rax, fs:28h"], [31, "jz short locret_4205E4"], [32, "call ___stack_chk_fail"], [33, "leave"], [34, "retn"]], "data_dep": [[5, 4], [7, 3], [8, 7], [9, 8], [10, 9], [11, 10], [13, 11], [13, 24], [14, 13], [15, 14], [16, 15], [18, 16], [20, 11], [20, 24], [21, 20], [22, 21], [23, 22], [24, 23], [25, 24], [25, 11], [26, 25], [26, 3], [27, 26], [29, 5], [30, 29], [31, 30], [34, 30]]}
int encode_mac( uint8_t * base, size_t * idx, const n2n_mac_t m ) { return encode_buf( base, idx, m, N2N_MAC_SIZE ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408C3E", "function_addr": 4230206, "binary_name": "e6347362ab4087e8b7809efee81b7765bd9154d476290188e08904771149bd36.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 rdx, [rbp+var_18]"], [7, "mov rsi, [rbp+var_10]"], [8, "mov rax, [rbp+var_8]"], [9, "mov ecx, 6"], [10, "mov rdi, rax"], [11, "call sub_408B67"], [12, "leave"], [13, "retn"]], "data_dep": [[6, 5], [7, 4], [8, 3], [10, 8], [13, 11]]}
bool_t xdr_qcsapi_wifi_wowlan_get_udp_port_rpcdata (XDR *xdrs, qcsapi_wifi_wowlan_get_udp_port_rpcdata *objp) { register int32_t *buf; if (!xdr_pointer (xdrs, (char **)&objp->ifname, sizeof (__rpc_string), (xdrproc_t) xdr___rpc_string)) return FALSE; if (!xdr_pointer (xdrs, (char **)&objp->p_value, sizeof (uint16_t), (xdrproc_t) xdr_uint16_t)) return FALSE; if (!xdr_pointer (xdrs, (char **)&objp->len, sizeof (uint32_t), (xdrproc_t) xdr_uint32_t)) return FALSE; if (!xdr_int (xdrs, &objp->return_code)) return FALSE; return TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4474E2", "function_addr": 4486370, "binary_name": "501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+xdrs], rdi"], [4, "mov [rbp+objpp], rsi"], [5, "mov rsi, [rbp+objpp]"], [6, "mov rax, [rbp+xdrs]"], [7, "mov rdx, offset xdr_obj"], [8, "mov rcx, rdx"], [9, "mov edx, 8"], [10, "mov rdi, rax"], [11, "call _xdr_pointer"], [12, "test eax, eax"], [13, "jnz short loc_44751F"], [14, "mov eax, 0"], [15, "jmp locret_4475A2"], [16, "mov rax, [rbp+objpp]"], [17, "lea rsi, [rax+8]"], [18, "mov rax, [rbp+xdrs]"], [19, "mov rdx, cs:xdr_uint16_t_ptr"], [20, "mov rcx, rdx"], [21, "mov edx, 2"], [22, "mov rdi, rax"], [23, "call _xdr_pointer"], [24, "test eax, eax"], [25, "jnz short loc_44754D"], [26, "mov eax, 0"], [27, "jmp short locret_4475A2"], [28, "mov rax, [rbp+objpp]"], [29, "lea rsi, [rax+10h]"], [30, "mov rax, [rbp+xdrs]"], [31, "mov rdx, cs:xdr_uint32_t_ptr"], [32, "mov rcx, rdx"], [33, "mov edx, 4"], [34, "mov rdi, rax"], [35, "call _xdr_pointer"], [36, "test eax, eax"], [37, "jnz short loc_44757B"], [38, "mov eax, 0"], [39, "jmp short locret_4475A2"], [40, "mov rax, [rbp+objpp]"], [41, "lea rdx, [rax+18h]"], [42, "mov rax, [rbp+xdrs]"], [43, "mov rsi, rdx"], [44, "mov rdi, rax"], [45, "call xdr_int"], [46, "test eax, eax"], [47, "jnz short loc_44759D"], [48, "mov eax, 0"], [49, "jmp short locret_4475A2"], [50, "mov eax, 1"], [51, "leave"], [52, "retn"]], "data_dep": [[5, 4], [6, 3], [8, 7], [10, 6], [12, 11], [13, 12], [16, 4], [17, 5], [17, 16], [18, 3], [20, 19], [22, 18], [24, 23], [25, 24], [28, 4], [29, 17], [29, 28], [30, 3], [32, 31], [34, 30], [36, 35], [37, 36], [40, 4], [41, 40], [41, 33], [42, 3], [43, 41], [44, 42], [46, 45], [47, 46], [52, 48], [52, 14], [52, 26], [52, 38], [52, 50]]}
static void checkSizes (lua_State *L, global_State *g) { if (!g->gcemergency) { if (g->strt.nuse < g->strt.size / 4) { /* string table too big? */ l_mem olddebt = g->GCdebt; luaS_resize(L, g->strt.size / 2); g->GCestimate += g->GCdebt - olddebt; /* correct estimate */ } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412463", "function_addr": 4269155, "binary_name": "5f497371fdbf8d52cca591742e35533ae1e7741c287028b049fcc36e4c4a61b4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_20]"], [6, "movzx eax, byte ptr [rax+67h]"], [7, "test al, al"], [8, "jnz short loc_4124E7"], [9, "mov rax, [rbp+var_20]"], [10, "mov edx, [rax+38h]"], [11, "mov rax, [rbp+var_20]"], [12, "mov eax, [rax+3Ch]"], [13, "lea ecx, [rax+3]"], [14, "test eax, eax"], [15, "cmovs eax, ecx"], [16, "sar eax, 2"], [17, "cmp edx, eax"], [18, "jge short loc_4124E7"], [19, "mov rax, [rbp+var_20]"], [20, "mov rax, [rax+18h]"], [21, "mov [rbp+var_8], rax"], [22, "mov rax, [rbp+var_20]"], [23, "mov eax, [rax+3Ch]"], [24, "mov edx, eax"], [25, "shr edx, 1Fh"], [26, "add eax, edx"], [27, "sar eax, 1"], [28, "mov edx, eax"], [29, "mov rax, [rbp+var_18]"], [30, "mov esi, edx"], [31, "mov rdi, rax"], [32, "call sub_41BC1B"], [33, "mov rax, [rbp+var_20]"], [34, "mov rdx, [rax+20h]"], [35, "mov rax, [rbp+var_20]"], [36, "mov rax, [rax+18h]"], [37, "sub rax, [rbp+var_8]"], [38, "add rdx, rax"], [39, "mov rax, [rbp+var_20]"], [40, "mov [rax+20h], rdx"], [41, "nop"], [42, "leave"], [43, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 4], [10, 9], [11, 4], [12, 11], [13, 12], [14, 12], [15, 14], [15, 13], [16, 15], [17, 10], [17, 16], [18, 17], [19, 4], [20, 19], [21, 20], [22, 4], [23, 22], [24, 23], [25, 24], [26, 23], [26, 25], [27, 26], [28, 27], [29, 3], [30, 28], [31, 29], [33, 4], [34, 33], [35, 4], [36, 35], [37, 21], [37, 36], [38, 37], [38, 34], [39, 4], [40, 38], [40, 39], [43, 39], [43, 7], [43, 16]]}
PJ_DEF(void) pjsip_endpt_resolve( pjsip_endpoint *endpt, pj_pool_t *pool, pjsip_host_info *target, void *token, pjsip_resolver_callback *cb) { pjsip_resolve( endpt->resolver, pool, target, token, cb); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_422F2B", "function_addr": 4337451, "binary_name": "0d02b74aea201d48cc3d38bf7d5dfeacbcaff9102bd8e2dbdd0b1813b49b64a0.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov [rbp+var_20], rcx"], [7, "mov [rbp+var_28], r8"], [8, "mov rax, [rbp+var_8]"], [9, "mov rax, [rax+48h]"], [10, "mov rdi, [rbp+var_28]"], [11, "mov rcx, [rbp+var_20]"], [12, "mov rdx, [rbp+var_18]"], [13, "mov rsi, [rbp+var_10]"], [14, "mov r8, rdi"], [15, "mov rdi, rax"], [16, "call sub_427464"], [17, "nop"], [18, "leave"], [19, "retn"]], "data_dep": [[8, 3], [9, 8], [10, 7], [11, 6], [12, 5], [13, 4], [14, 10], [15, 9], [19, 16]]}
unsigned short update_crc16( unsigned short crc, unsigned char c ) { unsigned short i, v, tcrc = 0; v = (crc ^ c) & 0xff; for (i = 0; i < 8; i++) { tcrc = ( (tcrc ^ v) & 1 ) ? ( tcrc >> 1 ) ^ 0x8408 : tcrc >> 1; v >>= 1; } return ((crc >> 8) ^ tcrc)&0xffff; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "update_crc16", "function_addr": 4325718, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, edi"], [3, "mov edx, esi"], [4, "mov [rbp+var_14], ax"], [5, "mov eax, edx"], [6, "mov [rbp+var_18], al"], [7, "mov [rbp+var_6], 0"], [8, "movzx eax, [rbp+var_18]"], [9, "xor ax, [rbp+var_14]"], [10, "and ax, 0FFh"], [11, "mov [rbp+var_4], ax"], [12, "mov [rbp+var_2], 0"], [13, "jmp short loc_4201BE"], [14, "movzx eax, [rbp+var_6]"], [15, "xor ax, [rbp+var_4]"], [16, "movzx eax, ax"], [17, "and eax, 1"], [18, "test eax, eax"], [19, "jz short loc_4201A4"], [20, "movzx eax, [rbp+var_6]"], [21, "shr ax, 1"], [22, "xor ax, 8408h"], [23, "jmp short loc_4201AB"], [24, "movzx eax, [rbp+var_6]"], [25, "shr ax, 1"], [26, "mov [rbp+var_6], ax"], [27, "shr [rbp+var_4], 1"], [28, "movzx eax, [rbp+var_2]"], [29, "add eax, 1"], [30, "mov [rbp+var_2], ax"], [31, "cmp [rbp+var_2], 7"], [32, "jbe short loc_420185"], [33, "movzx eax, [rbp+var_14]"], [34, "shr ax, 8"], [35, "xor ax, [rbp+var_6]"], [36, "pop rbp"], [37, "retn"]], "data_dep": [[4, 2], [5, 3], [6, 5], [8, 6], [9, 8], [9, 4], [10, 9], [11, 10], [14, 7], [14, 26], [15, 27], [15, 11], [15, 14], [16, 15], [17, 16], [18, 17], [19, 18], [20, 26], [20, 7], [21, 20], [22, 21], [24, 26], [24, 7], [25, 24], [26, 25], [26, 22], [27, 27], [27, 11], [28, 12], [28, 30], [29, 28], [30, 29], [31, 12], [31, 30], [32, 31], [33, 4], [34, 33], [35, 26], [35, 7], [35, 34], [36, 0], [37, 35]]}
static void hci_power_control_sleep(void){ log_info("hci_power_control_sleep"); #if 0 // don't close serial port during sleep // close low-level device hci_stack->hci_transport->close(hci_stack->config); #endif // sleep mode if (hci_stack->control && hci_stack->control->sleep){ (*hci_stack->control->sleep)(); } hci_stack->state = HCI_STATE_SLEEPING; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_416EE4", "function_addr": 4288228, "binary_name": "1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov ecx, 137Ah"], [3, "mov edx, offset aHciC"], [4, "mov esi, offset aSUHciPowerCont_2"], [5, "mov edi, 1"], [6, "mov eax, 0"], [7, "call sub_41DE87"], [8, "mov rax, cs:qword_488B70"], [9, "mov rax, [rax+20h]"], [10, "test rax, rax"], [11, "jz short loc_416F3B"], [12, "mov rax, cs:qword_488B70"], [13, "mov rax, [rax+20h]"], [14, "mov rax, [rax+18h]"], [15, "test rax, rax"], [16, "jz short loc_416F3B"], [17, "mov rax, cs:qword_488B70"], [18, "mov rax, [rax+20h]"], [19, "mov rax, [rax+18h]"], [20, "call rax"], [21, "mov rax, cs:qword_488B70"], [22, "mov dword ptr [rax+788h], 4"], [23, "nop"], [24, "pop rbp"], [25, "retn"]], "data_dep": [[9, 8], [10, 9], [11, 10], [13, 12], [14, 13], [15, 14], [16, 15], [18, 17], [19, 18], [20, 19], [22, 21], [24, 0], [25, 21]]}
int aes_setkey_dec( aes_context *ctx, const unsigned char *key, unsigned int keysize ) { int i, j, ret; aes_context cty; uint32_t *RK; uint32_t *SK; aes_init( &cty ); #if defined(POLARSSL_PADLOCK_C) && defined(PADLOCK_ALIGN16) if( aes_padlock_ace == -1 ) aes_padlock_ace = padlock_supports( PADLOCK_ACE ); if( aes_padlock_ace ) ctx->rk = RK = PADLOCK_ALIGN16( ctx->buf ); else #endif ctx->rk = RK = ctx->buf; /* Also checks keysize */ if( ( ret = aes_setkey_enc( &cty, key, keysize ) ) != 0 ) goto exit; ctx->nr = cty.nr; #if defined(POLARSSL_AESNI_C) && defined(POLARSSL_HAVE_X86_64) if( aesni_supports( POLARSSL_AESNI_AES ) ) { aesni_inverse_key( (unsigned char *) ctx->rk, (const unsigned char *) cty.rk, ctx->nr ); goto exit; } #endif SK = cty.rk + cty.nr * 4; *RK++ = *SK++; *RK++ = *SK++; *RK++ = *SK++; *RK++ = *SK++; for( i = ctx->nr - 1, SK -= 8; i > 0; i--, SK -= 8 ) { for( j = 0; j < 4; j++, SK++ ) { *RK++ = RT0[ FSb[ ( *SK ) & 0xFF ] ] ^ RT1[ FSb[ ( *SK >> 8 ) & 0xFF ] ] ^ RT2[ FSb[ ( *SK >> 16 ) & 0xFF ] ] ^ RT3[ FSb[ ( *SK >> 24 ) & 0xFF ] ]; } } *RK++ = *SK++; *RK++ = *SK++; *RK++ = *SK++; *RK++ = *SK++; exit: aes_free( &cty ); return( ret ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "aes_setkey_dec", "function_addr": 4600433, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 160h"], [3, "mov [rbp+var_148], rdi"], [4, "mov [rbp+var_150], rsi"], [5, "mov [rbp+var_154], edx"], [6, "lea rax, [rbp+var_140]"], [7, "mov rdi, rax"], [8, "call aes_init"], [9, "mov rax, [rbp+var_148]"], [10, "add rax, 10h"], [11, "mov [rbp+var_10], rax"], [12, "mov rax, [rbp+var_148]"], [13, "mov rdx, [rbp+var_10]"], [14, "mov [rax+8], rdx"], [15, "mov edx, [rbp+var_154]"], [16, "mov rcx, [rbp+var_150]"], [17, "lea rax, [rbp+var_140]"], [18, "mov rsi, rcx"], [19, "mov rdi, rax"], [20, "call aes_setkey_enc"], [21, "mov [rbp+var_1C], eax"], [22, "cmp [rbp+var_1C], 0"], [23, "jnz loc_4634D8"], [24, "mov edx, [rbp+var_140]"], [25, "mov rax, [rbp+var_148]"], [26, "mov [rax], edx"], [27, "mov rdx, [rbp+var_138]"], [28, "mov eax, [rbp+var_140]"], [29, "shl eax, 2"], [30, "cdqe"], [31, "shl rax, 2"], [32, "add rax, rdx"], [33, "mov [rbp+var_18], rax"], [34, "mov rdx, [rbp+var_18]"], [35, "lea rax, [rdx+4]"], [36, "mov [rbp+var_18], rax"], [37, "mov rax, [rbp+var_10]"], [38, "lea rcx, [rax+4]"], [39, "mov [rbp+var_10], rcx"], [40, "mov edx, [rdx]"], [41, "mov [rax], edx"], [42, "mov rdx, [rbp+var_18]"], [43, "lea rax, [rdx+4]"], [44, "mov [rbp+var_18], rax"], [45, "mov rax, [rbp+var_10]"], [46, "lea rcx, [rax+4]"], [47, "mov [rbp+var_10], rcx"], [48, "mov edx, [rdx]"], [49, "mov [rax], edx"], [50, "mov rdx, [rbp+var_18]"], [51, "lea rax, [rdx+4]"], [52, "mov [rbp+var_18], rax"], [53, "mov rax, [rbp+var_10]"], [54, "lea rcx, [rax+4]"], [55, "mov [rbp+var_10], rcx"], [56, "mov edx, [rdx]"], [57, "mov [rax], edx"], [58, "mov rdx, [rbp+var_18]"], [59, "lea rax, [rdx+4]"], [60, "mov [rbp+var_18], rax"], [61, "mov rax, [rbp+var_10]"], [62, "lea rcx, [rax+4]"], [63, "mov [rbp+var_10], rcx"], [64, "mov edx, [rdx]"], [65, "mov [rax], edx"], [66, "mov rax, [rbp+var_148]"], [67, "mov eax, [rax]"], [68, "sub eax, 1"], [69, "mov [rbp+var_4], eax"], [70, "sub [rbp+var_18], 20h "], [71, "jmp loc_46345C"], [72, "mov [rbp+var_8], 0"], [73, "jmp loc_463449"], [74, "mov rax, [rbp+var_18]"], [75, "mov eax, [rax]"], [76, "movzx eax, al"], [77, "mov eax, eax"], [78, "movzx eax, ds:byte_1A01260[rax]"], [79, "movzx eax, al"], [80, "cdqe"], [81, "mov edx, ds:dword_1A02460[rax*4]"], [82, "mov rax, [rbp+var_18]"], [83, "mov eax, [rax]"], [84, "shr eax, 8"], [85, "movzx eax, al"], [86, "mov eax, eax"], [87, "movzx eax, ds:byte_1A01260[rax]"], [88, "movzx eax, al"], [89, "cdqe"], [90, "mov eax, ds:dword_1A02860[rax*4]"], [91, "xor edx, eax"], [92, "mov rax, [rbp+var_18]"], [93, "mov eax, [rax]"], [94, "shr eax, 10h"], [95, "movzx eax, al"], [96, "mov eax, eax"], [97, "movzx eax, ds:byte_1A01260[rax]"], [98, "movzx eax, al"], [99, "cdqe"], [100, "mov eax, ds:dword_1A02C60[rax*4]"], [101, "mov esi, edx"], [102, "xor esi, eax"], [103, "mov rax, [rbp+var_18]"], [104, "mov eax, [rax]"], [105, "shr eax, 18h"], [106, "mov eax, eax"], [107, "movzx eax, ds:byte_1A01260[rax]"], [108, "movzx eax, al"], [109, "cdqe"], [110, "mov ecx, ds:dword_1A03060[rax*4]"], [111, "mov rax, [rbp+var_10]"], [112, "lea rdx, [rax+4]"], [113, "mov [rbp+var_10], rdx"], [114, "xor esi, ecx"], [115, "mov edx, esi"], [116, "mov [rax], edx"], [117, "add [rbp+var_8], 1"], [118, "add [rbp+var_18], 4"], [119, "cmp [rbp+var_8], 3"], [120, "jle loc_4633AA"], [121, "sub [rbp+var_4], 1"], [122, "sub [rbp+var_18], 20h "], [123, "cmp [rbp+var_4], 0"], [124, "jg loc_46339E"], [125, "mov rdx, [rbp+var_18]"], [126, "lea rax, [rdx+4]"], [127, "mov [rbp+var_18], rax"], [128, "mov rax, [rbp+var_10]"], [129, "lea rcx, [rax+4]"], [130, "mov [rbp+var_10], rcx"], [131, "mov edx, [rdx]"], [132, "mov [rax], edx"], [133, "mov rdx, [rbp+var_18]"], [134, "lea rax, [rdx+4]"], [135, "mov [rbp+var_18], rax"], [136, "mov rax, [rbp+var_10]"], [137, "lea rcx, [rax+4]"], [138, "mov [rbp+var_10], rcx"], [139, "mov edx, [rdx]"], [140, "mov [rax], edx"], [141, "mov rdx, [rbp+var_18]"], [142, "lea rax, [rdx+4]"], [143, "mov [rbp+var_18], rax"], [144, "mov rax, [rbp+var_10]"], [145, "lea rcx, [rax+4]"], [146, "mov [rbp+var_10], rcx"], [147, "mov edx, [rdx]"], [148, "mov [rax], edx"], [149, "mov rdx, [rbp+var_18]"], [150, "lea rax, [rdx+4]"], [151, "mov [rbp+var_18], rax"], [152, "mov rax, [rbp+var_10]"], [153, "lea rcx, [rax+4]"], [154, "mov [rbp+var_10], rcx"], [155, "mov edx, [rdx]"], [156, "mov [rax], edx"], [157, "jmp short loc_4634D9"], [158, "nop"], [159, "lea rax, [rbp+var_140]"], [160, "mov rdi, rax"], [161, "call aes_free"], [162, "mov eax, [rbp+var_1C]"], [163, "leave"], [164, "retn"]], "data_dep": [[7, 6], [9, 3], [10, 9], [11, 10], [12, 3], [13, 11], [14, 13], [14, 12], [15, 5], [16, 4], [17, 12], [18, 16], [19, 17], [21, 20], [22, 21], [23, 22], [25, 3], [26, 25], [26, 24], [29, 28], [31, 29], [32, 27], [32, 31], [33, 32], [34, 33], [35, 26], [35, 32], [35, 34], [36, 35], [37, 11], [38, 16], [38, 26], [38, 37], [39, 38], [40, 34], [40, 26], [41, 40], [41, 37], [42, 36], [43, 37], [43, 41], [43, 42], [44, 43], [45, 39], [46, 41], [46, 45], [46, 38], [47, 46], [48, 42], [48, 41], [49, 48], [49, 45], [50, 44], [51, 50], [51, 45], [51, 49], [52, 51], [53, 47], [54, 49], [54, 53], [54, 46], [55, 54], [56, 50], [56, 49], [57, 56], [57, 53], [58, 52], [59, 57], [59, 58], [59, 53], [60, 59], [61, 55], [62, 57], [62, 61], [62, 54], [63, 62], [64, 57], [64, 58], [65, 61], [65, 64], [66, 3], [67, 65], [67, 66], [68, 67], [69, 68], [70, 60], [74, 70], [74, 118], [74, 122], [75, 26], [75, 65], [75, 74], [75, 14], [75, 57], [75, 41], [75, 116], [75, 49], [76, 75], [77, 76], [79, 78], [82, 122], [82, 70], [82, 118], [83, 14], [83, 82], [83, 57], [83, 41], [83, 116], [83, 65], [83, 49], [83, 26], [84, 83], [85, 84], [86, 85], [88, 87], [91, 81], [91, 90], [92, 122], [92, 70], [92, 118], [93, 116], [93, 65], [93, 49], [93, 26], [93, 92], [93, 14], [93, 41], [93, 57], [94, 93], [95, 94], [96, 95], [98, 97], [101, 91], [102, 100], [102, 101], [103, 118], [103, 122], [103, 70], [104, 57], [104, 41], [104, 116], [104, 65], [104, 49], [104, 26], [104, 103], [104, 14], [105, 104], [106, 105], [108, 107], [111, 63], [111, 113], [112, 91], [112, 57], [112, 116], [112, 111], [112, 65], [112, 49], [112, 26], [112, 14], [112, 41], [113, 112], [114, 102], [114, 110], [115, 114], [116, 111], [116, 115], [117, 117], [117, 72], [118, 122], [118, 70], [118, 118], [119, 72], [119, 117], [120, 119], [121, 69], [121, 121], [122, 122], [122, 70], [122, 118], [123, 121], [123, 69], [124, 123], [125, 70], [125, 122], [126, 156], [126, 57], [126, 14], [126, 41], [126, 148], [126, 68], [126, 132], [126, 116], [126, 125], [126, 111], [126, 65], [126, 49], [126, 140], [126, 26], [127, 126], [128, 63], [128, 113], [129, 128], [129, 57], [129, 148], [129, 132], [129, 116], [129, 65], [129, 49], [129, 26], [129, 62], [129, 156], [129, 110], [129, 140], [129, 14], [129, 41], [130, 129], [131, 116], [131, 125], [131, 65], [131, 49], [131, 140], [131, 26], [131, 156], [131, 57], [131, 14], [131, 41], [131, 148], [131, 132], [132, 128], [132, 131], [133, 127], [134, 133], [134, 128], [134, 132], [135, 134], [136, 130], [137, 129], [137, 132], [137, 136], [138, 137], [139, 133], [139, 132], [140, 139], [140, 136], [141, 135], [142, 141], [142, 136], [142, 140], [143, 142], [144, 138], [145, 140], [145, 144], [145, 137], [146, 145], [147, 141], [147, 140], [148, 147], [148, 144], [149, 143], [150, 148], [150, 149], [150, 144], [151, 150], [152, 146], [153, 148], [153, 152], [153, 145], [154, 153], [155, 149], [155, 148], [156, 155], [156, 152], [159, 20], [159, 152], [160, 159], [162, 21], [164, 162]]}
ATCA_STATUS atcab_bin2hex(const uint8_t* binary, int bin_len, char* ascii_hex, int* ascii_hex_len) { return atcab_bin2hex_(binary, bin_len, ascii_hex, ascii_hex_len, true); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_411774", "function_addr": 4265844, "binary_name": "11d42d58f8783c9d414fd3ac05c1e7cfc511bc8aca265d5d1e3cf66df053dd09.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 [rbp+var_20], rcx"], [7, "mov rcx, [rbp+var_20]"], [8, "mov rdx, [rbp+var_18]"], [9, "mov esi, [rbp+var_C]"], [10, "mov rax, [rbp+var_8]"], [11, "mov r8d, 1"], [12, "mov rdi, rax"], [13, "call sub_4117AA"], [14, "leave"], [15, "retn"]], "data_dep": [[7, 6], [8, 5], [9, 4], [10, 3], [12, 10], [15, 13]]}
static agooText list_to_sdl(agooText text, gqlValue value, int indent, int depth) { int i = indent * depth; int i2 = i + indent; int d2 = depth + 1; gqlLink link; if (0 < indent) { i++; // for \n i2++; } if ((int)sizeof(spaces) <= i) { i2 = sizeof(spaces) - 1; i = i2 - indent; } text = agoo_text_append(text, "[", 1); for (link = value->members; NULL != link; link = link->next) { if (0 < i2) { text = agoo_text_append(text, spaces, i2); } text = link->value->type->to_sdl(text, link->value, indent, d2); if (NULL != link->next) { text = agoo_text_append(text, ",", 1); } } if (0 < indent) { text = agoo_text_append(text, spaces, i); } text = agoo_text_append(text, "]", 1); return text; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B1CF", "function_addr": 4239823, "binary_name": "e3cf12dc8282db536254dfd10adbf01691aabbcfd3b51354ea281f5b59a7391b.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_34], edx"], [6, "mov [rbp+var_38], ecx"], [7, "mov eax, [rbp+var_34]"], [8, "imul eax, [rbp+var_38]"], [9, "mov [rbp+var_4], eax"], [10, "mov edx, [rbp+var_4]"], [11, "mov eax, [rbp+var_34]"], [12, "add eax, edx"], [13, "mov [rbp+var_8], eax"], [14, "mov eax, [rbp+var_38]"], [15, "add eax, 1"], [16, "mov [rbp+var_14], eax"], [17, "cmp [rbp+var_34], 0"], [18, "jle short loc_40B211"], [19, "add [rbp+var_4], 1"], [20, "add [rbp+var_8], 1"], [21, "cmp [rbp+var_4], 0FFh"], [22, "jle short loc_40B22A"], [23, "mov [rbp+var_8], 0FFh"], [24, "mov eax, [rbp+var_8]"], [25, "sub eax, [rbp+var_34]"], [26, "mov [rbp+var_4], eax"], [27, "mov rax, [rbp+var_28]"], [28, "mov edx, 1"], [29, "mov esi, offset asc_42C2CB"], [30, "mov rdi, rax"], [31, "call sub_403862"], [32, "mov [rbp+var_28], rax"], [33, "mov rax, [rbp+var_30]"], [34, "mov rax, [rax+8]"], [35, "mov [rbp+var_10], rax"], [36, "jmp short loc_40B2CC"], [37, "cmp [rbp+var_8], 0"], [38, "jle short loc_40B270"], [39, "mov edx, [rbp+var_8]"], [40, "mov rax, [rbp+var_28]"], [41, "mov esi, offset unk_42C060"], [42, "mov rdi, rax"], [43, "call sub_403862"], [44, "mov [rbp+var_28], rax"], [45, "mov rax, [rbp+var_10]"], [46, "mov rax, [rax+10h]"], [47, "mov rax, [rax]"], [48, "mov r8, [rax+28h]"], [49, "mov rax, [rbp+var_10]"], [50, "mov rsi, [rax+10h]"], [51, "mov ecx, [rbp+var_14]"], [52, "mov edx, [rbp+var_34]"], [53, "mov rax, [rbp+var_28]"], [54, "mov rdi, rax"], [55, "call r8"], [56, "mov [rbp+var_28], rax"], [57, "mov rax, [rbp+var_10]"], [58, "mov rax, [rax]"], [59, "test rax, rax"], [60, "jz short loc_40B2C1"], [61, "mov rax, [rbp+var_28]"], [62, "mov edx, 1"], [63, "mov esi, offset asc_42C2CD"], [64, "mov rdi, rax"], [65, "call sub_403862"], [66, "mov [rbp+var_28], rax"], [67, "mov rax, [rbp+var_10]"], [68, "mov rax, [rax]"], [69, "mov [rbp+var_10], rax"], [70, "cmp [rbp+var_10], 0"], [71, "jnz loc_40B252"], [72, "cmp [rbp+var_34], 0"], [73, "jle short loc_40B2F5"], [74, "mov edx, [rbp+var_4]"], [75, "mov rax, [rbp+var_28]"], [76, "mov esi, offset unk_42C060"], [77, "mov rdi, rax"], [78, "call sub_403862"], [79, "mov [rbp+var_28], rax"], [80, "mov rax, [rbp+var_28]"], [81, "mov edx, 1"], [82, "mov esi, offset asc_42C2CF"], [83, "mov rdi, rax"], [84, "call sub_403862"], [85, "mov [rbp+var_28], rax"], [86, "mov rax, [rbp+var_28]"], [87, "leave"], [88, "retn"]], "data_dep": [[7, 5], [8, 6], [8, 7], [9, 8], [10, 9], [11, 5], [12, 10], [12, 11], [13, 12], [14, 6], [15, 14], [16, 15], [17, 5], [18, 17], [19, 9], [20, 13], [21, 9], [21, 19], [22, 21], [24, 23], [25, 24], [25, 5], [26, 25], [27, 3], [30, 27], [32, 31], [33, 4], [34, 33], [35, 34], [37, 23], [37, 20], [37, 13], [38, 37], [39, 23], [39, 20], [39, 13], [40, 56], [40, 32], [40, 66], [42, 40], [44, 43], [45, 69], [45, 35], [46, 45], [47, 46], [48, 47], [49, 35], [49, 69], [50, 49], [51, 16], [52, 5], [53, 32], [53, 66], [53, 56], [53, 44], [54, 53], [55, 48], [56, 55], [57, 35], [57, 69], [58, 57], [59, 58], [60, 59], [61, 56], [64, 61], [66, 65], [67, 35], [67, 69], [68, 67], [69, 68], [70, 35], [70, 69], [71, 70], [72, 5], [73, 72], [74, 9], [74, 26], [74, 19], [75, 32], [75, 66], [75, 56], [77, 75], [79, 78], [80, 56], [80, 32], [80, 66], [80, 79], [83, 80], [85, 84], [86, 85], [88, 86]]}
int smrlog_purge_after (smrLog * handle, long long seq) { int ret; long long target_seq; long long *dseqs = NULL; int dseqs_size = 0; long long *mseqs = NULL; int mseqs_size = 0; logDev *mem; logDev *disk; int i, j; int last_mem_idx, last_disk_idx; errno = 0; if (handle == NULL || seq < 0) { errno = EINVAL; return -1; } target_seq = seq_round_up (seq); mem = handle->mem; disk = handle->disk; if (mem != NULL) { ret = mem->get_seqs (mem, &mseqs, &mseqs_size); if (ret < 0) { ERRNO_POINT (); goto error; } } ret = disk->get_seqs (disk, &dseqs, &dseqs_size); if (ret < 0) { ERRNO_POINT (); goto error; } for (i = mseqs_size - 1, j = dseqs_size - 1; i >= 0; i--) { if (mseqs[i] < target_seq) { break; } /* * zig-zag purging to meet the constraints * we purge log in disk, mem order */ if (j >= 0 && dseqs[j] == mseqs[i]) { ret = disk->purge (disk, dseqs[j]); if (ret < 0) { ERRNO_POINT (); goto error; } j--; } ret = mem->purge (mem, mseqs[i]); if (ret < 0) { ERRNO_POINT (); goto error; } } last_mem_idx = i; for (i = j; i >= 0; i--) { if (dseqs[i] < target_seq) { break; } ret = disk->purge (disk, dseqs[i]); if (ret < 0) { ERRNO_POINT (); goto error; } } last_disk_idx = i; // truncate if (seq < target_seq) { long long base_seq = seq_round_down (seq); if (last_disk_idx >= 0 && dseqs[last_disk_idx] == base_seq) { ret = dev_truncate (disk, base_seq, seq); if (ret < 0) { if (errno != ERRNO_OFFSET_EXCEED) { ERRNO_POINT (); goto error; } } } if (last_mem_idx >= 0 && mseqs[last_mem_idx] == base_seq) { assert (mem != NULL); ret = dev_truncate (mem, base_seq, seq); if (ret < 0) { ERRNO_POINT (); goto error; } } } // sync needed if log resides only in disk if (last_disk_idx >= 0 && (mem != NULL && last_mem_idx < 0)) { smrLogAddr *src_addr = NULL; int src_off; smrLogAddr *dest_addr = NULL; src_addr = disk->get_mmap (disk, dseqs[last_disk_idx], 1, 0); if (src_addr == NULL) { ERRNO_POINT (); goto error; } src_off = addr_offset (src_addr); if (src_off < 0) { ERRNO_POINT (); goto error; } dest_addr = mem->get_mmap (mem, dseqs[last_disk_idx], 0, 1); if (dest_addr == NULL) { disk->munmap (disk, src_addr); ERRNO_POINT (); goto error; } ret = smrlog_sync_maps (handle, src_addr, src_off, dest_addr); disk->munmap (disk, src_addr); mem->munmap (mem, dest_addr); if (ret < 0) { ERRNO_POINT (); goto error; } } if (mseqs != NULL) { free (mseqs); } if (dseqs != NULL) { free (dseqs); } return 0; error: if (mseqs != NULL) { free (mseqs); } if (dseqs != NULL) { free (dseqs); } return -1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408977", "function_addr": 4229495, "binary_name": "5a5d0e7ab10776c2ee195a68f95eb1a59218e176cb1db1ee775d6cab0599c869.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 88h"], [4, "mov [rbp+var_88], rdi"], [5, "mov [rbp+var_90], rsi"], [6, "mov [rbp+var_68], 0"], [7, "mov [rbp+var_6C], 0"], [8, "mov [rbp+ptr], 0"], [9, "mov [rbp+var_7C], 0"], [10, "call ___errno_location"], [11, "mov dword ptr [rax], 0"], [12, "cmp [rbp+var_88], 0"], [13, "jz short loc_4089CE"], [14, "cmp [rbp+var_90], 0"], [15, "jns short loc_4089E3"], [16, "call ___errno_location"], [17, "mov dword ptr [rax], 16h"], [18, "mov eax, 0FFFFFFFFh"], [19, "jmp loc_40901D"], [20, "mov rax, [rbp+var_90]"], [21, "add rax, 4000000h"], [22, "and rax, 0FFFFFFFFFC000000h"], [23, "mov [rbp+var_20], rax"], [24, "mov rax, [rbp+var_88]"], [25, "mov rax, [rax+8]"], [26, "mov [rbp+var_28], rax"], [27, "mov rax, [rbp+var_88]"], [28, "mov rax, [rax+10h]"], [29, "mov [rbp+var_30], rax"], [30, "cmp [rbp+var_28], 0"], [31, "jz short loc_408A74"], [32, "mov rax, [rbp+var_28]"], [33, "mov r8, [rax]"], [34, "lea rdx, [rbp+var_7C]"], [35, "lea rcx, [rbp+ptr]"], [36, "mov rax, [rbp+var_28]"], [37, "mov rsi, rcx"], [38, "mov rdi, rax"], [39, "call r8"], [40, "mov [rbp+var_34], eax"], [41, "cmp [rbp+var_34], 0"], [42, "jns short loc_408A74"], [43, "call ___errno_location"], [44, "mov eax, [rax]"], [45, "test eax, eax"], [46, "jns short loc_408A58"], [47, "call ___errno_location"], [48, "mov ebx, [rax]"], [49, "jmp short loc_408A68"], [50, "call ___errno_location"], [51, "mov eax, [rax]"], [52, "mov edx, 0FE328360h"], [53, "mov ebx, edx"], [54, "sub ebx, eax"], [55, "call ___errno_location"], [56, "mov [rax], ebx"], [57, "jmp loc_408FEE"], [58, "mov rax, [rbp+var_30]"], [59, "mov r8, [rax]"], [60, "lea rdx, [rbp+var_6C]"], [61, "lea rcx, [rbp+var_68]"], [62, "mov rax, [rbp+var_30]"], [63, "mov rsi, rcx"], [64, "mov rdi, rax"], [65, "call r8"], [66, "mov [rbp+var_34], eax"], [67, "cmp [rbp+var_34], 0"], [68, "jns short loc_408AC9"], [69, "call ___errno_location"], [70, "mov eax, [rax]"], [71, "test eax, eax"], [72, "jns short loc_408AAD"], [73, "call ___errno_location"], [74, "mov ebx, [rax]"], [75, "jmp short loc_408ABD"], [76, "call ___errno_location"], [77, "mov eax, [rax]"], [78, "mov edx, 0FE326420h"], [79, "mov ebx, edx"], [80, "sub ebx, eax"], [81, "call ___errno_location"], [82, "mov [rax], ebx"], [83, "jmp loc_408FEE"], [84, "mov eax, [rbp+var_7C]"], [85, "sub eax, 1"], [86, "mov [rbp+var_14], eax"], [87, "mov eax, [rbp+var_6C]"], [88, "sub eax, 1"], [89, "mov [rbp+var_18], eax"], [90, "jmp loc_408BFA"], [91, "mov rdx, [rbp+ptr]"], [92, "mov eax, [rbp+var_14]"], [93, "cdqe"], [94, "shl rax, 3"], [95, "add rax, rdx"], [96, "mov rax, [rax]"], [97, "cmp [rbp+var_20], rax"], [98, "jg loc_408C06"], [99, "cmp [rbp+var_18], 0"], [100, "js loc_408B96"], [101, "mov rdx, [rbp+var_68]"], [102, "mov eax, [rbp+var_18]"], [103, "cdqe"], [104, "shl rax, 3"], [105, "add rax, rdx"], [106, "mov rdx, [rax]"], [107, "mov rcx, [rbp+ptr]"], [108, "mov eax, [rbp+var_14]"], [109, "cdqe"], [110, "shl rax, 3"], [111, "add rax, rcx"], [112, "mov rax, [rax]"], [113, "cmp rdx, rax"], [114, "jnz short loc_408B96"], [115, "mov rax, [rbp+var_30]"], [116, "mov rcx, [rax+18h]"], [117, "mov rdx, [rbp+var_68]"], [118, "mov eax, [rbp+var_18]"], [119, "cdqe"], [120, "shl rax, 3"], [121, "add rax, rdx"], [122, "mov rdx, [rax]"], [123, "mov rax, [rbp+var_30]"], [124, "mov rsi, rdx"], [125, "mov rdi, rax"], [126, "call rcx"], [127, "mov [rbp+var_34], eax"], [128, "cmp [rbp+var_34], 0"], [129, "jns short loc_408B92"], [130, "call ___errno_location"], [131, "mov eax, [rax]"], [132, "test eax, eax"], [133, "jns short loc_408B76"], [134, "call ___errno_location"], [135, "mov ebx, [rax]"], [136, "jmp short loc_408B86"], [137, "call ___errno_location"], [138, "mov eax, [rax]"], [139, "mov edx, 0FE321600h"], [140, "mov ebx, edx"], [141, "sub ebx, eax"], [142, "call ___errno_location"], [143, "mov [rax], ebx"], [144, "jmp loc_408FEE"], [145, "sub [rbp+var_18], 1"], [146, "mov rax, [rbp+var_28]"], [147, "mov rcx, [rax+18h]"], [148, "mov rdx, [rbp+ptr]"], [149, "mov eax, [rbp+var_14]"], [150, "cdqe"], [151, "shl rax, 3"], [152, "add rax, rdx"], [153, "mov rdx, [rax]"], [154, "mov rax, [rbp+var_28]"], [155, "mov rsi, rdx"], [156, "mov rdi, rax"], [157, "call rcx"], [158, "mov [rbp+var_34], eax"], [159, "cmp [rbp+var_34], 0"], [160, "jns short loc_408BF6"], [161, "call ___errno_location"], [162, "mov eax, [rax]"], [163, "test eax, eax"], [164, "jns short loc_408BDA"], [165, "call ___errno_location"], [166, "mov ebx, [rax]"], [167, "jmp short loc_408BEA"], [168, "call ___errno_location"], [169, "mov eax, [rax]"], [170, "mov edx, 0FE31F2D8h"], [171, "mov ebx, edx"], [172, "sub ebx, eax"], [173, "call ___errno_location"], [174, "mov [rax], ebx"], [175, "jmp loc_408FEE"], [176, "sub [rbp+var_14], 1"], [177, "cmp [rbp+var_14], 0"], [178, "jns loc_408AE0"], [179, "jmp short loc_408C07"], [180, "nop"], [181, "mov eax, [rbp+var_14]"], [182, "mov [rbp+var_38], eax"], [183, "mov eax, [rbp+var_18]"], [184, "mov [rbp+var_14], eax"], [185, "jmp short loc_408C92"], [186, "mov rdx, [rbp+var_68]"], [187, "mov eax, [rbp+var_14]"], [188, "cdqe"], [189, "shl rax, 3"], [190, "add rax, rdx"], [191, "mov rax, [rax]"], [192, "cmp [rbp+var_20], rax"], [193, "jg short loc_408C9E"], [194, "mov rax, [rbp+var_30]"], [195, "mov rcx, [rax+18h]"], [196, "mov rdx, [rbp+var_68]"], [197, "mov eax, [rbp+var_14]"], [198, "cdqe"], [199, "shl rax, 3"], [200, "add rax, rdx"], [201, "mov rdx, [rax]"], [202, "mov rax, [rbp+var_30]"], [203, "mov rsi, rdx"], [204, "mov rdi, rax"], [205, "call rcx"], [206, "mov [rbp+var_34], eax"], [207, "cmp [rbp+var_34], 0"], [208, "jns short loc_408C8E"], [209, "call ___errno_location"], [210, "mov eax, [rax]"], [211, "test eax, eax"], [212, "jns short loc_408C72"], [213, "call ___errno_location"], [214, "mov ebx, [rax]"], [215, "jmp short loc_408C82"], [216, "call ___errno_location"], [217, "mov eax, [rax]"], [218, "mov edx, 0FE31B840h"], [219, "mov ebx, edx"], [220, "sub ebx, eax"], [221, "call ___errno_location"], [222, "mov [rax], ebx"], [223, "jmp loc_408FEE"], [224, "sub [rbp+var_14], 1"], [225, "cmp [rbp+var_14], 0"], [226, "jns loc_408C15"], [227, "jmp short loc_408C9F"], [228, "nop"], [229, "mov eax, [rbp+var_14]"], [230, "mov [rbp+var_3C], eax"], [231, "mov rax, [rbp+var_90]"], [232, "cmp rax, [rbp+var_20]"], [233, "jge loc_408DDD"], [234, "mov rax, [rbp+var_90]"], [235, "and rax, 0FFFFFFFFFC000000h"], [236, "mov [rbp+var_48], rax"], [237, "cmp [rbp+var_3C], 0"], [238, "js short loc_408D47"], [239, "mov rdx, [rbp+var_68]"], [240, "mov eax, [rbp+var_3C]"], [241, "cdqe"], [242, "shl rax, 3"], [243, "add rax, rdx"], [244, "mov rax, [rax]"], [245, "cmp [rbp+var_48], rax"], [246, "jnz short loc_408D47"], [247, "mov rdx, [rbp+var_90]"], [248, "mov rcx, [rbp+var_48]"], [249, "mov rax, [rbp+var_30]"], [250, "mov rsi, rcx"], [251, "mov rdi, rax"], [252, "call sub_4060E2"], [253, "mov [rbp+var_34], eax"], [254, "cmp [rbp+var_34], 0"], [255, "jns short loc_408D47"], [256, "call ___errno_location"], [257, "mov eax, [rax]"], [258, "cmp eax, 0C4FDC0C8h"], [259, "jz short loc_408D47"], [260, "call ___errno_location"], [261, "mov eax, [rax]"], [262, "test eax, eax"], [263, "jns short loc_408D2B"], [264, "call ___errno_location"], [265, "mov ebx, [rax]"], [266, "jmp short loc_408D3B"], [267, "call ___errno_location"], [268, "mov eax, [rax]"], [269, "mov edx, 0FE3171F0h"], [270, "mov ebx, edx"], [271, "sub ebx, eax"], [272, "call ___errno_location"], [273, "mov [rax], ebx"], [274, "jmp loc_408FEE"], [275, "cmp [rbp+var_38], 0"], [276, "js loc_408DDD"], [277, "mov rdx, [rbp+ptr]"], [278, "mov eax, [rbp+var_38]"], [279, "cdqe"], [280, "shl rax, 3"], [281, "add rax, rdx"], [282, "mov rax, [rax]"], [283, "cmp [rbp+var_48], rax"], [284, "jnz short loc_408DDD"], [285, "cmp [rbp+var_28], 0"], [286, "jnz short loc_408D8A"], [287, "mov ecx, offset aSmrlogPurgeAft"], [288, "mov edx, 141h"], [289, "mov esi, offset aLogLogC"], [290, "mov edi, offset aMemNull"], [291, "call ___assert_fail"], [292, "mov rdx, [rbp+var_90]"], [293, "mov rcx, [rbp+var_48]"], [294, "mov rax, [rbp+var_28]"], [295, "mov rsi, rcx"], [296, "mov rdi, rax"], [297, "call sub_4060E2"], [298, "mov [rbp+var_34], eax"], [299, "cmp [rbp+var_34], 0"], [300, "jns short loc_408DDD"], [301, "call ___errno_location"], [302, "mov eax, [rax]"], [303, "test eax, eax"], [304, "jns short loc_408DC1"], [305, "call ___errno_location"], [306, "mov ebx, [rax]"], [307, "jmp short loc_408DD1"], [308, "call ___errno_location"], [309, "mov eax, [rax]"], [310, "mov edx, 0FE3146F8h"], [311, "mov ebx, edx"], [312, "sub ebx, eax"], [313, "call ___errno_location"], [314, "mov [rax], ebx"], [315, "jmp loc_408FEE"], [316, "cmp [rbp+var_3C], 0"], [317, "js loc_408FBD"], [318, "cmp [rbp+var_28], 0"], [319, "jz loc_408FBD"], [320, "cmp [rbp+var_38], 0"], [321, "jns loc_408FBD"], [322, "mov [rbp+var_50], 0"], [323, "mov [rbp+var_58], 0"], [324, "mov rax, [rbp+var_30]"], [325, "mov r8, [rax+28h]"], [326, "mov rdx, [rbp+var_68]"], [327, "mov eax, [rbp+var_3C]"], [328, "cdqe"], [329, "shl rax, 3"], [330, "add rax, rdx"], [331, "mov rsi, [rax]"], [332, "mov rax, [rbp+var_30]"], [333, "mov ecx, 0"], [334, "mov edx, 1"], [335, "mov rdi, rax"], [336, "call r8"], [337, "mov [rbp+var_50], rax"], [338, "cmp [rbp+var_50], 0"], [339, "jnz short loc_408E76"], [340, "call ___errno_location"], [341, "mov eax, [rax]"], [342, "test eax, eax"], [343, "jns short loc_408E5A"], [344, "call ___errno_location"], [345, "mov ebx, [rax]"], [346, "jmp short loc_408E6A"], [347, "call ___errno_location"], [348, "mov eax, [rax]"], [349, "mov edx, 0FE310878h"], [350, "mov ebx, edx"], [351, "sub ebx, eax"], [352, "call ___errno_location"], [353, "mov [rax], ebx"], [354, "jmp loc_408FEE"], [355, "mov rax, [rbp+var_50]"], [356, "mov rdi, rax"], [357, "call sub_405E3D"], [358, "mov [rbp+var_5C], eax"], [359, "cmp [rbp+var_5C], 0"], [360, "jns short loc_408EBB"], [361, "call ___errno_location"], [362, "mov eax, [rax]"], [363, "test eax, eax"], [364, "jns short loc_408E9F"], [365, "call ___errno_location"], [366, "mov ebx, [rax]"], [367, "jmp short loc_408EAF"], [368, "call ___errno_location"], [369, "mov eax, [rax]"], [370, "mov edx, 0FE30F108h"], [371, "mov ebx, edx"], [372, "sub ebx, eax"], [373, "call ___errno_location"], [374, "mov [rax], ebx"], [375, "jmp loc_408FEE"], [376, "mov rax, [rbp+var_28]"], [377, "mov r8, [rax+28h]"], [378, "mov rdx, [rbp+var_68]"], [379, "mov eax, [rbp+var_3C]"], [380, "cdqe"], [381, "shl rax, 3"], [382, "add rax, rdx"], [383, "mov rsi, [rax]"], [384, "mov rax, [rbp+var_28]"], [385, "mov ecx, 1"], [386, "mov edx, 0"], [387, "mov rdi, rax"], [388, "call r8"], [389, "mov [rbp+var_58], rax"], [390, "cmp [rbp+var_58], 0"], [391, "jnz short loc_408F3D"], [392, "mov rax, [rbp+var_30]"], [393, "mov rcx, [rax+30h]"], [394, "mov rdx, [rbp+var_50]"], [395, "mov rax, [rbp+var_30]"], [396, "mov rsi, rdx"], [397, "mov rdi, rax"], [398, "call rcx"], [399, "call ___errno_location"], [400, "mov eax, [rax]"], [401, "test eax, eax"], [402, "jns short loc_408F21"], [403, "call ___errno_location"], [404, "mov ebx, [rax]"], [405, "jmp short loc_408F31"], [406, "call ___errno_location"], [407, "mov eax, [rax]"], [408, "mov edx, 0FE30D5B0h"], [409, "mov ebx, edx"], [410, "sub ebx, eax"], [411, "call ___errno_location"], [412, "mov [rax], ebx"], [413, "jmp loc_408FEE"], [414, "mov rcx, [rbp+var_58]"], [415, "mov edx, [rbp+var_5C]"], [416, "mov rsi, [rbp+var_50]"], [417, "mov rax, [rbp+var_88]"], [418, "mov rdi, rax"], [419, "call sub_406279"], [420, "mov [rbp+var_34], eax"], [421, "mov rax, [rbp+var_30]"], [422, "mov rcx, [rax+30h]"], [423, "mov rdx, [rbp+var_50]"], [424, "mov rax, [rbp+var_30]"], [425, "mov rsi, rdx"], [426, "mov rdi, rax"], [427, "call rcx"], [428, "mov rax, [rbp+var_28]"], [429, "mov rcx, [rax+30h]"], [430, "mov rdx, [rbp+var_58]"], [431, "mov rax, [rbp+var_28]"], [432, "mov rsi, rdx"], [433, "mov rdi, rax"], [434, "call rcx"], [435, "cmp [rbp+var_34], 0"], [436, "jns short loc_408FBD"], [437, "call ___errno_location"], [438, "mov eax, [rax]"], [439, "test eax, eax"], [440, "jns short loc_408FA4"], [441, "call ___errno_location"], [442, "mov ebx, [rax]"], [443, "jmp short loc_408FB4"], [444, "call ___errno_location"], [445, "mov eax, [rax]"], [446, "mov edx, 0FE30B288h"], [447, "mov ebx, edx"], [448, "sub ebx, eax"], [449, "call ___errno_location"], [450, "mov [rax], ebx"], [451, "jmp short loc_408FEE"], [452, "mov rax, [rbp+ptr]"], [453, "test rax, rax"], [454, "jz short loc_408FD2"], [455, "mov rax, [rbp+ptr]"], [456, "mov rdi, rax"], [457, "call _free"], [458, "mov rax, [rbp+var_68]"], [459, "test rax, rax"], [460, "jz short loc_408FE7"], [461, "mov rax, [rbp+var_68]"], [462, "mov rdi, rax"], [463, "call _free"], [464, "mov eax, 0"], [465, "jmp short loc_40901D"], [466, "mov rax, [rbp+ptr]"], [467, "test rax, rax"], [468, "jz short loc_409003"], [469, "mov rax, [rbp+ptr]"], [470, "mov rdi, rax"], [471, "call _free"], [472, "mov rax, [rbp+var_68]"], [473, "test rax, rax"], [474, "jz short loc_409018"], [475, "mov rax, [rbp+var_68]"], [476, "mov rdi, rax"], [477, "call _free"], [478, "mov eax, 0FFFFFFFFh"], [479, "mov rbx, [rbp+var_8]"], [480, "leave"], [481, "retn"]], "data_dep": [[11, 10], [12, 4], [13, 12], [14, 5], [15, 14], [17, 16], [20, 5], [21, 20], [22, 21], [23, 22], [24, 4], [25, 11], [25, 24], [26, 25], [27, 4], [28, 27], [28, 11], [29, 28], [30, 26], [31, 30], [32, 26], [33, 32], [33, 11], [34, 9], [35, 8], [36, 26], [37, 35], [38, 36], [39, 33], [40, 39], [41, 40], [42, 41], [44, 11], [44, 43], [45, 44], [46, 45], [48, 11], [48, 47], [51, 50], [51, 11], [53, 52], [54, 51], [54, 53], [56, 48], [56, 55], [56, 54], [58, 29], [59, 11], [59, 58], [60, 7], [60, 34], [61, 6], [61, 35], [62, 29], [63, 61], [64, 62], [65, 59], [66, 65], [67, 66], [68, 67], [70, 11], [70, 69], [71, 70], [72, 71], [74, 73], [74, 11], [77, 76], [77, 11], [79, 78], [80, 79], [80, 77], [82, 74], [82, 81], [82, 80], [84, 9], [85, 84], [86, 85], [87, 7], [88, 87], [89, 88], [91, 8], [92, 176], [92, 86], [94, 92], [95, 91], [95, 94], [96, 95], [96, 11], [97, 23], [97, 96], [98, 97], [99, 89], [99, 145], [100, 99], [101, 6], [102, 145], [102, 89], [104, 102], [105, 104], [105, 101], [106, 105], [106, 11], [107, 8], [108, 176], [108, 86], [110, 108], [111, 110], [111, 107], [112, 111], [112, 11], [113, 112], [113, 106], [114, 113], [115, 29], [116, 11], [116, 115], [117, 6], [118, 89], [118, 145], [120, 118], [121, 117], [121, 120], [122, 11], [122, 121], [123, 29], [124, 122], [125, 123], [126, 116], [127, 126], [128, 127], [129, 128], [131, 130], [131, 11], [132, 131], [133, 132], [135, 11], [135, 134], [138, 137], [138, 11], [140, 139], [141, 138], [141, 140], [143, 141], [143, 135], [143, 142], [145, 89], [145, 145], [146, 26], [147, 146], [147, 11], [148, 8], [149, 86], [149, 176], [151, 149], [152, 151], [152, 148], [153, 152], [153, 11], [154, 26], [155, 153], [156, 154], [157, 147], [158, 157], [159, 158], [160, 159], [162, 161], [162, 11], [163, 162], [164, 163], [166, 165], [166, 11], [169, 11], [169, 168], [171, 170], [172, 171], [172, 169], [174, 166], [174, 173], [174, 172], [176, 86], [176, 176], [177, 176], [177, 86], [178, 177], [181, 176], [181, 86], [182, 181], [183, 89], [183, 145], [184, 183], [186, 6], [187, 184], [187, 224], [189, 187], [190, 189], [190, 186], [191, 190], [191, 11], [192, 191], [192, 23], [193, 192], [194, 29], [195, 11], [195, 194], [196, 6], [197, 224], [197, 184], [199, 197], [200, 196], [200, 199], [201, 11], [201, 200], [202, 29], [203, 201], [204, 202], [205, 195], [206, 205], [207, 206], [208, 207], [210, 209], [210, 11], [211, 210], [212, 211], [214, 11], [214, 213], [217, 216], [217, 11], [219, 218], [220, 217], [220, 219], [222, 214], [222, 221], [222, 220], [224, 224], [224, 184], [225, 184], [225, 224], [226, 225], [229, 184], [229, 224], [230, 229], [231, 5], [232, 23], [232, 231], [233, 232], [234, 5], [235, 234], [236, 235], [237, 230], [238, 237], [239, 6], [240, 230], [242, 240], [243, 242], [243, 239], [244, 11], [244, 243], [245, 236], [245, 244], [246, 245], [247, 5], [248, 236], [249, 29], [250, 248], [251, 249], [253, 252], [254, 253], [255, 254], [257, 256], [257, 11], [258, 257], [259, 258], [261, 11], [261, 260], [262, 261], [263, 262], [265, 264], [265, 11], [268, 11], [268, 267], [270, 269], [271, 270], [271, 268], [273, 265], [273, 272], [273, 271], [275, 182], [276, 275], [277, 8], [278, 182], [280, 278], [281, 277], [281, 280], [282, 281], [282, 11], [283, 282], [283, 236], [284, 283], [285, 26], [286, 285], [292, 5], [293, 236], [294, 26], [295, 293], [296, 294], [298, 297], [299, 298], [300, 299], [302, 301], [302, 11], [303, 302], [304, 303], [306, 305], [306, 11], [309, 308], [309, 11], [311, 310], [312, 309], [312, 311], [314, 306], [314, 313], [314, 312], [316, 230], [317, 316], [318, 26], [319, 318], [320, 182], [321, 320], [324, 29], [325, 324], [325, 11], [326, 6], [327, 230], [329, 327], [330, 329], [330, 326], [331, 330], [331, 11], [332, 29], [335, 332], [336, 325], [337, 336], [338, 337], [339, 338], [341, 11], [341, 340], [342, 341], [343, 342], [345, 11], [345, 344], [348, 11], [348, 347], [350, 349], [351, 348], [351, 350], [353, 351], [353, 345], [353, 352], [355, 337], [356, 355], [358, 357], [359, 358], [360, 359], [362, 361], [362, 11], [363, 362], [364, 363], [366, 11], [366, 365], [369, 368], [369, 11], [371, 370], [372, 369], [372, 371], [374, 372], [374, 366], [374, 373], [376, 26], [377, 376], [377, 11], [378, 6], [379, 230], [381, 379], [382, 381], [382, 378], [383, 11], [383, 382], [384, 26], [387, 384], [388, 377], [389, 388], [390, 389], [391, 390], [392, 29], [393, 11], [393, 392], [394, 337], [395, 29], [396, 394], [397, 395], [398, 393], [400, 11], [400, 399], [401, 400], [402, 401], [404, 403], [404, 11], [407, 11], [407, 406], [409, 408], [410, 409], [410, 407], [412, 410], [412, 404], [412, 411], [414, 389], [415, 358], [416, 337], [417, 4], [418, 417], [420, 419], [421, 29], [422, 421], [422, 11], [423, 337], [424, 29], [425, 423], [426, 424], [427, 422], [428, 26], [429, 11], [429, 428], [430, 389], [431, 26], [432, 430], [433, 431], [434, 429], [435, 420], [436, 435], [438, 11], [438, 437], [439, 438], [440, 439], [442, 441], [442, 11], [445, 444], [445, 11], [447, 446], [448, 447], [448, 445], [450, 442], [450, 449], [450, 448], [452, 8], [453, 452], [454, 453], [455, 8], [456, 455], [458, 6], [459, 458], [460, 459], [461, 6], [462, 461], [466, 8], [467, 466], [468, 467], [469, 8], [470, 469], [472, 6], [473, 472], [474, 473], [475, 6], [476, 475], [481, 478], [481, 464], [481, 18]]}
static void clear_ssh_config(struct ssh_config* c) { xfree(c->remoteshell); xfree(c->bindaddr); xfree(c->identityfile); xfree(c->username); xfree(c->remotecmd); memset(c, 0, sizeof(*c)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4059B6", "function_addr": 4217270, "binary_name": "087bbe3972e782e288aec06a0f3389386e1d59f87c2eec19767c14a9d8cb780e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+s], rdi"], [4, "mov rax, [rbp+s]"], [5, "mov rax, [rax]"], [6, "mov rdi, rax"], [7, "call sub_403BE9"], [8, "mov rax, [rbp+s]"], [9, "mov rax, [rax+10h]"], [10, "mov rdi, rax"], [11, "call sub_403BE9"], [12, "mov rax, [rbp+s]"], [13, "mov rax, [rax+18h]"], [14, "mov rdi, rax"], [15, "call sub_403BE9"], [16, "mov rax, [rbp+s]"], [17, "mov rax, [rax+20h]"], [18, "mov rdi, rax"], [19, "call sub_403BE9"], [20, "mov rax, [rbp+s]"], [21, "mov rax, [rax+28h]"], [22, "mov rdi, rax"], [23, "call sub_403BE9"], [24, "mov rax, [rbp+s]"], [25, "mov edx, 30h "], [26, "mov esi, 0"], [27, "mov rdi, rax"], [28, "call _memset"], [29, "nop"], [30, "leave"], [31, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [8, 3], [9, 8], [10, 9], [12, 3], [13, 12], [14, 13], [16, 3], [17, 16], [18, 17], [20, 3], [21, 20], [22, 21], [24, 3], [27, 24], [31, 28]]}
int open_volume_store(struct volume_store *volume_store, struct index_layout *layout, unsigned int reserved_buffers __maybe_unused, size_t bytes_per_page) { volume_store->vs_bytes_per_page = bytes_per_page; return open_uds_volume_region(layout, &volume_store->vs_region); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41C354", "function_addr": 4309844, "binary_name": "47dbb0334d900656507d737fe374672f3140f5fc6d4279824cf09bfea156759f.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 rdx, [rbp+var_20]"], [9, "mov [rax+8], rdx"], [10, "mov rdx, [rbp+var_8]"], [11, "mov rax, [rbp+var_10]"], [12, "mov rsi, rdx"], [13, "mov rdi, rax"], [14, "call sub_4124C3"], [15, "leave"], [16, "retn"]], "data_dep": [[7, 3], [8, 6], [9, 8], [9, 7], [10, 3], [11, 4], [12, 10], [13, 11], [16, 14]]}
uint64_t pagemap_get_entry(int fd, char *start) { const unsigned long pfn = (unsigned long)start / getpagesize(); uint64_t entry; int ret; ret = pread(fd, &entry, sizeof(entry), pfn * sizeof(entry)); if (ret != sizeof(entry)) ksft_exit_fail_msg("reading pagemap failed\n"); return entry; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40259B", "function_addr": 4203931, "binary_name": "16f03b83edab4eaa1574b91c8f0b2cbda38fe57c9e82234c8bacbf7561a64b53.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 38h"], [4, "mov [rbp+fd], edi"], [5, "mov [rbp+var_40], rsi"], [6, "mov rbx, [rbp+var_40]"], [7, "call _getpagesize"], [8, "movsxd rcx, eax"], [9, "mov rax, rbx"], [10, "mov edx, 0"], [11, "div rcx"], [12, "mov [rbp+var_18], rax"], [13, "mov rax, [rbp+var_18]"], [14, "shl rax, 3"], [15, "mov rdx, rax"], [16, "lea rsi, [rbp+buf]"], [17, "mov eax, [rbp+fd]"], [18, "mov rcx, rdx"], [19, "mov edx, 8"], [20, "mov edi, eax"], [21, "call _pread"], [22, "mov [rbp+var_1C], eax"], [23, "cmp [rbp+var_1C], 8"], [24, "jz short loc_4025FF"], [25, "mov edi, offset aReadingPagemap"], [26, "mov eax, 0"], [27, "call sub_4024C4"], [28, "mov rax, [rbp+buf]"], [29, "mov rbx, [rbp+var_8]"], [30, "leave"], [31, "retn"]], "data_dep": [[6, 5], [8, 7], [9, 6], [11, 8], [12, 9], [13, 12], [14, 13], [15, 14], [17, 4], [18, 15], [20, 17], [22, 21], [23, 22], [24, 23], [31, 28]]}
SQLITE_PRIVATE int sqlite3VdbeAddOp4Int( Vdbe *p, /* Add the opcode to this VM */ int op, /* The new opcode */ int p1, /* The P1 operand */ int p2, /* The P2 operand */ int p3, /* The P3 operand */ int p4 /* The P4 operand as an integer */ ){ int addr = sqlite3VdbeAddOp3(p, op, p1, p2, p3); sqlite3VdbeChangeP4(p, addr, SQLITE_INT_TO_PTR(p4), P4_INT32); return addr; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43D8E4", "function_addr": 4446436, "binary_name": "1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_20], edx"], [6, "mov [rbp+var_24], ecx"], [7, "mov [rbp+var_28], r8d"], [8, "mov [rbp+var_2C], r9d"], [9, "mov edi, [rbp+var_28]"], [10, "mov ecx, [rbp+var_24]"], [11, "mov edx, [rbp+var_20]"], [12, "mov esi, [rbp+var_1C]"], [13, "mov rax, [rbp+var_18]"], [14, "mov r8d, edi"], [15, "mov rdi, rax"], [16, "call sub_43D3C7"], [17, "mov [rbp+var_4], eax"], [18, "mov eax, [rbp+var_2C]"], [19, "cdqe"], [20, "mov rdx, rax"], [21, "mov esi, [rbp+var_4]"], [22, "mov rax, [rbp+var_18]"], [23, "mov ecx, 0FFFFFFF2h"], [24, "mov rdi, rax"], [25, "call sub_43E2A2"], [26, "mov eax, [rbp+var_4]"], [27, "leave"], [28, "retn"]], "data_dep": [[9, 7], [10, 6], [11, 5], [12, 4], [13, 3], [14, 9], [15, 13], [17, 16], [18, 8], [20, 18], [21, 17], [22, 3], [24, 22], [26, 17], [28, 26]]}
static void overlap_level2_up3_420(jxr_image_t image, int use_my, int ch) { int tx = 0; /* XXXX */ int top_my = use_my - 3; int idx; int ty = 0; assert(ch > 0 && image->use_clr_fmt == 1/*YUV420*/); assert(use_my >= 3); DEBUG("Overlap Level2 (YUV420) for row %d\n", top_my); /* Figure out which tile row the current strip of macroblocks belongs to. */ while(top_my > image->tile_row_position[ty]+image->tile_row_height[ty] - 1) ty++; for(tx = 0; tx < image->tile_columns; tx++) { /* Left edge */ if (tx == 0 || image->disableTileOverlapFlag) { int*dp = MACROBLK_UP3(image,ch,tx,0).data; _jxr_4OverlapFilter(R2B42(dp,0,2),R2B42(dp,0,3),R2B42(dp,0,4),R2B42(dp,0,5)); _jxr_4OverlapFilter(R2B42(dp,1,2),R2B42(dp,1,3),R2B42(dp,1,4),R2B42(dp,1,5)); } /* Right edge */ if(tx == image->tile_columns -1 || image->disableTileOverlapFlag){ int*dp = MACROBLK_UP3(image,ch,tx,image->tile_column_width[tx]-1).data; _jxr_4OverlapFilter(R2B42(dp,6,2),R2B42(dp,6,3),R2B42(dp,6,4),R2B42(dp,6,5)); _jxr_4OverlapFilter(R2B42(dp,7,2),R2B42(dp,7,3),R2B42(dp,7,4),R2B42(dp,7,5)); } /* Top edge */ if(top_my == 0 )/* || (image->disableTileOverlapFlag && TOP_Y(top_my) )) */ { /* If this is the very first strip of blocks, then process the first two scan lines with the smaller 4Overlap filter. */ for (idx = 0; idx < image->tile_column_width[tx] ; idx += 1) { int*dp = MACROBLK_UP3(image,ch,tx,idx).data; _jxr_4OverlapFilter(R2B42(dp, 2,0),R2B42(dp, 3,0),R2B42(dp, 4,0),R2B42(dp, 5,0)); _jxr_4OverlapFilter(R2B42(dp, 2,1),R2B42(dp, 3,1),R2B42(dp, 4,1),R2B42(dp, 5,1)); /* Top edge across */ if ( (image->tile_column_position[tx] + idx > 0 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !LEFT_X(idx))) { int*pp = MACROBLK_UP3(image,ch,tx,idx-1).data; _jxr_4OverlapFilter(R2B42(pp,6,0),R2B42(pp,7,0),R2B(dp,0,0),R2B42(dp,1,0)); _jxr_4OverlapFilter(R2B42(pp,6,1),R2B42(pp,7,1),R2B(dp,0,1),R2B42(dp,1,1)); } } /* Top left corner */ if(tx == 0 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP3(image,ch,tx,0).data; _jxr_4OverlapFilter(R2B42(dp, 0,0),R2B42(dp, 1, 0),R2B42(dp, 0 ,1),R2B42(dp, 1,1)); } /* Top right corner */ if(tx == image->tile_columns -1 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP3(image,ch,tx, image->tile_column_width[tx] - 1 ).data; _jxr_4OverlapFilter(R2B42(dp, 6,0),R2B42(dp, 7,0),R2B42(dp, 6,1),R2B42(dp, 7,1));; } } /* Bottom edge */ if ((top_my+1) == (int) EXTENDED_HEIGHT_BLOCKS(image) || (image->disableTileOverlapFlag && BOTTOM_Y(top_my))) { /* This is the last row, so there is no UP below TOP. finish up with 4Overlap filters. */ for (idx = 0; idx < image->tile_column_width[tx] ; idx += 1) { int*tp = MACROBLK_UP3(image,ch,tx,idx).data; _jxr_4OverlapFilter(R2B42(tp,2,6),R2B42(tp,3,6),R2B42(tp,4,6),R2B42(tp,5,6)); _jxr_4OverlapFilter(R2B42(tp,2,7),R2B42(tp,3,7),R2B42(tp,4,7),R2B42(tp,5,7)); /* Bottom edge across */ if ( (image->tile_column_position[tx] + idx > 0 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !LEFT_X(idx))) { int*tn = MACROBLK_UP3(image,ch,tx,idx-1).data; _jxr_4OverlapFilter(R2B42(tn,6,6),R2B42(tn,7,6),R2B42(tp,0,6),R2B42(tp,1,6)); _jxr_4OverlapFilter(R2B42(tn,6,7),R2B42(tn,7,7),R2B42(tp,0,7),R2B42(tp,1,7)); } } /* Bottom left corner */ if(tx == 0 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP3(image,ch,tx,0).data; _jxr_4OverlapFilter(R2B42(dp, 0,6),R2B42(dp, 1, 6),R2B42(dp, 0,7),R2B42(dp, 1, 7)); } /* Bottom right corner */ if(tx == image->tile_columns -1 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP3(image,ch,tx, image->tile_column_width[tx] - 1 ).data; _jxr_4OverlapFilter(R2B42(dp, 6, 6),R2B42(dp, 7, 6),R2B42(dp, 6, 7),R2B42(dp, 7, 7)); } if(image->disableTileOverlapFlag && BOTTOM_Y(top_my) && top_my <EXTENDED_HEIGHT_BLOCKS(image)-1) { /* Also process Top edge of next macroblock row */ /* In the case of YUV 420, the next row of macroblocks needs to be transformed */ /* before yuv420_to_yuv422 is called */ /* In the soft tile case the top 2 lines of the MB below are processed by the 2x2 operators spanning the MB below*/ /* In the case of hard tiles, if this is the bottom most row of MBs in the Hard Tile */ /* we need to process the top edge of the next hard tile */ /* Also see HARDTILE_NOTE in yuv420_to_yuv422() */ for (idx = 0; idx < image->tile_column_width[tx] ; idx += 1) { int*dp = MACROBLK_UP2(image,ch,tx,idx).data; _jxr_4OverlapFilter(R2B42(dp, 2,0),R2B42(dp, 3,0),R2B42(dp, 4,0),R2B42(dp, 5,0)); _jxr_4OverlapFilter(R2B42(dp, 2,1),R2B42(dp, 3,1),R2B42(dp, 4,1),R2B42(dp, 5,1)); /* Top edge across */ if ( (image->tile_column_position[tx] + idx > 0 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !LEFT_X(idx))) { int*pp = MACROBLK_UP2(image,ch,tx,idx-1).data; _jxr_4OverlapFilter(R2B42(pp,6,0),R2B42(pp,7,0),R2B(dp,0,0),R2B42(dp,1,0)); _jxr_4OverlapFilter(R2B42(pp,6,1),R2B42(pp,7,1),R2B(dp,0,1),R2B42(dp,1,1)); } } /* Top left corner */ if(tx == 0 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP2(image,ch,tx,0).data; _jxr_4OverlapFilter(R2B42(dp, 0,0),R2B42(dp, 1, 0),R2B42(dp, 0 ,1),R2B42(dp, 1,1)); } /* Top right corner */ if(tx == image->tile_columns -1 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP2(image,ch,tx, image->tile_column_width[tx] - 1 ).data; _jxr_4OverlapFilter(R2B42(dp, 6,0),R2B42(dp, 7,0),R2B42(dp, 6,1),R2B42(dp, 7,1));; } } } for (idx = 0 ; idx < image->tile_column_width[tx] ; idx += 1) { int*dp = MACROBLK_UP3(image,ch,tx,idx).data; int*up = MACROBLK_UP2(image,ch,tx,idx).data; /* Fully interior 4x4 filter blocks... */ _jxr_4x4OverlapFilter(R2B42(dp,2,2),R2B42(dp,3,2),R2B42(dp,4,2),R2B42(dp,5,2), R2B42(dp,2,3),R2B42(dp,3,3),R2B42(dp,4,3),R2B42(dp,5,3), R2B42(dp,2,4),R2B42(dp,3,4),R2B42(dp,4,4),R2B42(dp,5,4), R2B42(dp,2,5),R2B42(dp,3,5),R2B42(dp,4,5),R2B42(dp,5,5)); if ( (image->tile_column_position[tx] + idx < EXTENDED_WIDTH_BLOCKS(image)-1 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !RIGHT_X(idx))) { /* 4x4 at the right */ int*np = MACROBLK_UP3(image,ch,tx,idx+1).data; _jxr_4x4OverlapFilter(R2B42(dp,6,2),R2B42(dp,7,2),R2B42(np,0,2),R2B42(np,1,2), R2B42(dp,6,3),R2B42(dp,7,3),R2B42(np,0,3),R2B42(np,1,3), R2B42(dp,6,4),R2B42(dp,7,4),R2B42(np,0,4),R2B42(np,1,4), R2B42(dp,6,5),R2B42(dp,7,5),R2B42(np,0,5),R2B42(np,1,5)); } if ((top_my+1) < (int) EXTENDED_HEIGHT_BLOCKS(image)) { int*dp = MACROBLK_UP3(image,ch,tx,idx).data; int*up = MACROBLK_UP2(image,ch,tx,idx).data; if ((tx == 0 && idx==0 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && LEFT_X(idx) && !BOTTOM_Y(top_my))) { /* Across vertical blocks, left edge */ _jxr_4OverlapFilter(R2B42(dp,0,6),R2B42(dp,0,7),R2B42(up,0,0),R2B42(up,0,1)); _jxr_4OverlapFilter(R2B42(dp,1,6),R2B42(dp,1,7),R2B42(up,1,0),R2B42(up,1,1)); } if((!image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !BOTTOM_Y(top_my))) { /* 4x4 straddling lower MB */ _jxr_4x4OverlapFilter(R2B42(dp,2,6),R2B42(dp,3,6),R2B42(dp,4,6),R2B42(dp,5,6), R2B42(dp,2,7),R2B42(dp,3,7),R2B42(dp,4,7),R2B42(dp,5,7), R2B42(up,2,0),R2B42(up,3,0),R2B42(up,4,0),R2B42(up,5,0), R2B42(up,2,1),R2B42(up,3,1),R2B42(up,4,1),R2B42(up,5,1)); } if (((image->tile_column_position[tx] + idx < EXTENDED_WIDTH_BLOCKS(image)-1) && !image->disableTileOverlapFlag ) || ( image->disableTileOverlapFlag && !RIGHT_X(idx) && !BOTTOM_Y(top_my) ) ) { /* Blocks that span the MB to the right */ int*dn = MACROBLK_UP3(image,ch,tx,idx+1).data; int*un = MACROBLK_UP2(image,ch,tx,idx+1).data; /* 4x4 right, below, below-right */ _jxr_4x4OverlapFilter(R2B42(dp,6,6),R2B42(dp,7,6),R2B42(dn,0,6),R2B42(dn,1,6), R2B42(dp,6,7),R2B42(dp,7,7),R2B42(dn,0,7),R2B42(dn,1,7), R2B42(up,6,0),R2B42(up,7,0),R2B42(un,0,0),R2B42(un,1,0), R2B42(up,6,1),R2B42(up,7,1),R2B42(un,0,1),R2B42(un,1,1)); } if((image->tile_column_position[tx] + idx == (int) EXTENDED_WIDTH_BLOCKS(image)-1 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && RIGHT_X(idx) && !BOTTOM_Y(top_my))) { /* Across vertical blocks, right edge */ _jxr_4OverlapFilter(R2B42(dp,6,6),R2B42(dp,6,7),R2B42(up,6,0),R2B42(up,6,1)); _jxr_4OverlapFilter(R2B42(dp,7,6),R2B42(dp,7,7),R2B42(up,7,0),R2B42(up,7,1)); } } } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44404B", "function_addr": 4472907, "binary_name": "72303f375450332c393a8a753559999c0acc00cdc494ffcd4522a6d677c4ee69.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, 128h"], [8, "mov [rbp+var_F8], rdi"], [9, "mov [rbp+var_FC], esi"], [10, "mov [rbp+var_100], edx"], [11, "mov [rbp+var_34], 0"], [12, "mov eax, [rbp+var_FC]"], [13, "sub eax, 3"], [14, "mov [rbp+var_40], eax"], [15, "mov [rbp+var_3C], 0"], [16, "cmp [rbp+var_100], 0"], [17, "jle short loc_4440A4"], [18, "mov rax, [rbp+var_F8]"], [19, "movzx eax, byte ptr [rax+1Ch]"], [20, "cmp al, 1"], [21, "jz short loc_4440BD"], [22, "mov ecx, offset aOverlapLevel2U_1"], [23, "mov edx, 50Bh"], [24, "mov esi, offset aRStripC"], [25, "mov edi, offset aCh0ImageUseClr_1"], [26, "call ___assert_fail"], [27, "cmp [rbp+var_FC], 2"], [28, "jg short loc_4440E3"], [29, "mov ecx, offset aOverlapLevel2U_1"], [30, "mov edx, 50Ch"], [31, "mov esi, offset aRStripC"], [32, "mov edi, offset aUseMy3"], [33, "call ___assert_fail"], [34, "add [rbp+var_3C], 1"], [35, "mov rax, [rbp+var_F8]"], [36, "mov rdx, [rax+50h]"], [37, "mov eax, [rbp+var_3C]"], [38, "cdqe"], [39, "shl rax, 2"], [40, "add rax, rdx"], [41, "mov edx, [rax]"], [42, "mov rax, [rbp+var_F8]"], [43, "mov rcx, [rax+38h]"], [44, "mov eax, [rbp+var_3C]"], [45, "cdqe"], [46, "shl rax, 2"], [47, "add rax, rcx"], [48, "mov eax, [rax]"], [49, "add eax, edx"], [50, "lea edx, [rax-1]"], [51, "mov eax, [rbp+var_40]"], [52, "cmp edx, eax"], [53, "jb short loc_4440DF"], [54, "mov [rbp+var_34], 0"], [55, "jmp loc_446564"], [56, "cmp [rbp+var_34], 0"], [57, "jz short loc_444145"], [58, "mov rax, [rbp+var_F8]"], [59, "mov eax, [rax+2Ch]"], [60, "test eax, eax"], [61, "jz loc_444286"], [62, "mov rcx, [rbp+var_F8]"], [63, "mov eax, [rbp+var_100]"], [64, "movsxd rdx, eax"], [65, "mov rax, rdx"], [66, "shl rax, 3"], [67, "sub rax, rdx"], [68, "shl rax, 3"], [69, "add rax, rcx"], [70, "add rax, 88h"], [71, "mov rdx, [rax]"], [72, "mov rax, [rbp+var_F8]"], [73, "mov rcx, [rax+48h]"], [74, "mov eax, [rbp+var_34]"], [75, "cdqe"], [76, "shl rax, 2"], [77, "add rax, rcx"], [78, "mov eax, [rax]"], [79, "mov ecx, eax"], [80, "mov rax, rcx"], [81, "shl rax, 2"], [82, "add rax, rcx"], [83, "shl rax, 3"], [84, "add rax, rdx"], [85, "mov rax, [rax]"], [86, "mov [rbp+var_48], rax"], [87, "mov rax, [rbp+var_48]"], [88, "mov edx, 5"], [89, "mov esi, 0"], [90, "mov rdi, rax"], [91, "call sub_43E77A"], [92, "mov r13, rax"], [93, "mov rax, [rbp+var_48]"], [94, "mov edx, 4"], [95, "mov esi, 0"], [96, "mov rdi, rax"], [97, "call sub_43E77A"], [98, "mov r12, rax"], [99, "mov rax, [rbp+var_48]"], [100, "mov edx, 3"], [101, "mov esi, 0"], [102, "mov rdi, rax"], [103, "call sub_43E77A"], [104, "mov rbx, rax"], [105, "mov rax, [rbp+var_48]"], [106, "mov edx, 2"], [107, "mov esi, 0"], [108, "mov rdi, rax"], [109, "call sub_43E77A"], [110, "mov rcx, r13"], [111, "mov rdx, r12"], [112, "mov rsi, rbx"], [113, "mov rdi, rax"], [114, "call sub_43884F"], [115, "mov rax, [rbp+var_48]"], [116, "mov edx, 5"], [117, "mov esi, 1"], [118, "mov rdi, rax"], [119, "call sub_43E77A"], [120, "mov r13, rax"], [121, "mov rax, [rbp+var_48]"], [122, "mov edx, 4"], [123, "mov esi, 1"], [124, "mov rdi, rax"], [125, "call sub_43E77A"], [126, "mov r12, rax"], [127, "mov rax, [rbp+var_48]"], [128, "mov edx, 3"], [129, "mov esi, 1"], [130, "mov rdi, rax"], [131, "call sub_43E77A"], [132, "mov rbx, rax"], [133, "mov rax, [rbp+var_48]"], [134, "mov edx, 2"], [135, "mov esi, 1"], [136, "mov rdi, rax"], [137, "call sub_43E77A"], [138, "mov rcx, r13"], [139, "mov rdx, r12"], [140, "mov rsi, rbx"], [141, "mov rdi, rax"], [142, "call sub_43884F"], [143, "mov rax, [rbp+var_F8]"], [144, "mov eax, [rax+34h]"], [145, "lea edx, [rax-1]"], [146, "mov eax, [rbp+var_34]"], [147, "cmp edx, eax"], [148, "jz short loc_4442AC"], [149, "mov rax, [rbp+var_F8]"], [150, "mov eax, [rax+2Ch]"], [151, "test eax, eax"], [152, "jz loc_44440B"], [153, "mov rcx, [rbp+var_F8]"], [154, "mov eax, [rbp+var_100]"], [155, "movsxd rdx, eax"], [156, "mov rax, rdx"], [157, "shl rax, 3"], [158, "sub rax, rdx"], [159, "shl rax, 3"], [160, "add rax, rcx"], [161, "add rax, 88h"], [162, "mov rdx, [rax]"], [163, "mov rax, [rbp+var_F8]"], [164, "mov rcx, [rax+48h]"], [165, "mov eax, [rbp+var_34]"], [166, "cdqe"], [167, "shl rax, 2"], [168, "add rax, rcx"], [169, "mov ecx, [rax]"], [170, "mov rax, [rbp+var_F8]"], [171, "mov rsi, [rax+40h]"], [172, "mov eax, [rbp+var_34]"], [173, "cdqe"], [174, "shl rax, 2"], [175, "add rax, rsi"], [176, "mov eax, [rax]"], [177, "add eax, ecx"], [178, "sub eax, 1"], [179, "mov ecx, eax"], [180, "mov rax, rcx"], [181, "shl rax, 2"], [182, "add rax, rcx"], [183, "shl rax, 3"], [184, "add rax, rdx"], [185, "mov rax, [rax]"], [186, "mov [rbp+var_50], rax"], [187, "mov rax, [rbp+var_50]"], [188, "mov edx, 5"], [189, "mov esi, 6"], [190, "mov rdi, rax"], [191, "call sub_43E77A"], [192, "mov r13, rax"], [193, "mov rax, [rbp+var_50]"], [194, "mov edx, 4"], [195, "mov esi, 6"], [196, "mov rdi, rax"], [197, "call sub_43E77A"], [198, "mov r12, rax"], [199, "mov rax, [rbp+var_50]"], [200, "mov edx, 3"], [201, "mov esi, 6"], [202, "mov rdi, rax"], [203, "call sub_43E77A"], [204, "mov rbx, rax"], [205, "mov rax, [rbp+var_50]"], [206, "mov edx, 2"], [207, "mov esi, 6"], [208, "mov rdi, rax"], [209, "call sub_43E77A"], [210, "mov rcx, r13"], [211, "mov rdx, r12"], [212, "mov rsi, rbx"], [213, "mov rdi, rax"], [214, "call sub_43884F"], [215, "mov rax, [rbp+var_50]"], [216, "mov edx, 5"], [217, "mov esi, 7"], [218, "mov rdi, rax"], [219, "call sub_43E77A"], [220, "mov r13, rax"], [221, "mov rax, [rbp+var_50]"], [222, "mov edx, 4"], [223, "mov esi, 7"], [224, "mov rdi, rax"], [225, "call sub_43E77A"], [226, "mov r12, rax"], [227, "mov rax, [rbp+var_50]"], [228, "mov edx, 3"], [229, "mov esi, 7"], [230, "mov rdi, rax"], [231, "call sub_43E77A"], [232, "mov rbx, rax"], [233, "mov rax, [rbp+var_50]"], [234, "mov edx, 2"], [235, "mov esi, 7"], [236, "mov rdi, rax"], [237, "call sub_43E77A"], [238, "mov rcx, r13"], [239, "mov rdx, r12"], [240, "mov rsi, rbx"], [241, "mov rdi, rax"], [242, "call sub_43884F"], [243, "cmp [rbp+var_40], 0"], [244, "jnz loc_44491E"], [245, "mov [rbp+var_38], 0"], [246, "jmp loc_444700"], [247, "mov rcx, [rbp+var_F8]"], [248, "mov eax, [rbp+var_100]"], [249, "movsxd rdx, eax"], [250, "mov rax, rdx"], [251, "shl rax, 3"], [252, "sub rax, rdx"], [253, "shl rax, 3"], [254, "add rax, rcx"], [255, "add rax, 88h"], [256, "mov rdx, [rax]"], [257, "mov rax, [rbp+var_F8]"], [258, "mov rcx, [rax+48h]"], [259, "mov eax, [rbp+var_34]"], [260, "cdqe"], [261, "shl rax, 2"], [262, "add rax, rcx"], [263, "mov ecx, [rax]"], [264, "mov eax, [rbp+var_38]"], [265, "add eax, ecx"], [266, "mov ecx, eax"], [267, "mov rax, rcx"], [268, "shl rax, 2"], [269, "add rax, rcx"], [270, "shl rax, 3"], [271, "add rax, rdx"], [272, "mov rax, [rax]"], [273, "mov [rbp+var_68], rax"], [274, "mov rax, [rbp+var_68]"], [275, "mov edx, 0"], [276, "mov esi, 5"], [277, "mov rdi, rax"], [278, "call sub_43E77A"], [279, "mov r13, rax"], [280, "mov rax, [rbp+var_68]"], [281, "mov edx, 0"], [282, "mov esi, 4"], [283, "mov rdi, rax"], [284, "call sub_43E77A"], [285, "mov r12, rax"], [286, "mov rax, [rbp+var_68]"], [287, "mov edx, 0"], [288, "mov esi, 3"], [289, "mov rdi, rax"], [290, "call sub_43E77A"], [291, "mov rbx, rax"], [292, "mov rax, [rbp+var_68]"], [293, "mov edx, 0"], [294, "mov esi, 2"], [295, "mov rdi, rax"], [296, "call sub_43E77A"], [297, "mov rcx, r13"], [298, "mov rdx, r12"], [299, "mov rsi, rbx"], [300, "mov rdi, rax"], [301, "call sub_43884F"], [302, "mov rax, [rbp+var_68]"], [303, "mov edx, 1"], [304, "mov esi, 5"], [305, "mov rdi, rax"], [306, "call sub_43E77A"], [307, "mov r13, rax"], [308, "mov rax, [rbp+var_68]"], [309, "mov edx, 1"], [310, "mov esi, 4"], [311, "mov rdi, rax"], [312, "call sub_43E77A"], [313, "mov r12, rax"], [314, "mov rax, [rbp+var_68]"], [315, "mov edx, 1"], [316, "mov esi, 3"], [317, "mov rdi, rax"], [318, "call sub_43E77A"], [319, "mov rbx, rax"], [320, "mov rax, [rbp+var_68]"], [321, "mov edx, 1"], [322, "mov esi, 2"], [323, "mov rdi, rax"], [324, "call sub_43E77A"], [325, "mov rcx, r13"], [326, "mov rdx, r12"], [327, "mov rsi, rbx"], [328, "mov rdi, rax"], [329, "call sub_43884F"], [330, "mov rax, [rbp+var_F8]"], [331, "mov rdx, [rax+48h]"], [332, "mov eax, [rbp+var_34]"], [333, "cdqe"], [334, "shl rax, 2"], [335, "add rax, rdx"], [336, "mov edx, [rax]"], [337, "mov eax, [rbp+var_38]"], [338, "add eax, edx"], [339, "test eax, eax"], [340, "jz short loc_444597"], [341, "mov rax, [rbp+var_F8]"], [342, "mov eax, [rax+2Ch]"], [343, "test eax, eax"], [344, "jz short loc_4445B3"], [345, "mov rax, [rbp+var_F8]"], [346, "mov eax, [rax+2Ch]"], [347, "test eax, eax"], [348, "jz loc_4446FC"], [349, "cmp [rbp+var_38], 0"], [350, "jz loc_4446FC"], [351, "mov rcx, [rbp+var_F8]"], [352, "mov eax, [rbp+var_100]"], [353, "movsxd rdx, eax"], [354, "mov rax, rdx"], [355, "shl rax, 3"], [356, "sub rax, rdx"], [357, "shl rax, 3"], [358, "add rax, rcx"], [359, "add rax, 88h"], [360, "mov rdx, [rax]"], [361, "mov rax, [rbp+var_F8]"], [362, "mov rcx, [rax+48h]"], [363, "mov eax, [rbp+var_34]"], [364, "cdqe"], [365, "shl rax, 2"], [366, "add rax, rcx"], [367, "mov ecx, [rax]"], [368, "mov eax, [rbp+var_38]"], [369, "add eax, ecx"], [370, "sub eax, 1"], [371, "mov ecx, eax"], [372, "mov rax, rcx"], [373, "shl rax, 2"], [374, "add rax, rcx"], [375, "shl rax, 3"], [376, "add rax, rdx"], [377, "mov rax, [rax]"], [378, "mov [rbp+var_70], rax"], [379, "mov rax, [rbp+var_68]"], [380, "mov edx, 0"], [381, "mov esi, 1"], [382, "mov rdi, rax"], [383, "call sub_43E77A"], [384, "mov r13, rax"], [385, "mov rax, [rbp+var_68]"], [386, "mov edx, 0"], [387, "mov esi, 0"], [388, "mov rdi, rax"], [389, "call sub_43E6F5"], [390, "mov r12, rax"], [391, "mov rax, [rbp+var_70]"], [392, "mov edx, 0"], [393, "mov esi, 7"], [394, "mov rdi, rax"], [395, "call sub_43E77A"], [396, "mov rbx, rax"], [397, "mov rax, [rbp+var_70]"], [398, "mov edx, 0"], [399, "mov esi, 6"], [400, "mov rdi, rax"], [401, "call sub_43E77A"], [402, "mov rcx, r13"], [403, "mov rdx, r12"], [404, "mov rsi, rbx"], [405, "mov rdi, rax"], [406, "call sub_43884F"], [407, "mov rax, [rbp+var_68]"], [408, "mov edx, 1"], [409, "mov esi, 1"], [410, "mov rdi, rax"], [411, "call sub_43E77A"], [412, "mov r13, rax"], [413, "mov rax, [rbp+var_68]"], [414, "mov edx, 1"], [415, "mov esi, 0"], [416, "mov rdi, rax"], [417, "call sub_43E6F5"], [418, "mov r12, rax"], [419, "mov rax, [rbp+var_70]"], [420, "mov edx, 1"], [421, "mov esi, 7"], [422, "mov rdi, rax"], [423, "call sub_43E77A"], [424, "mov rbx, rax"], [425, "mov rax, [rbp+var_70]"], [426, "mov edx, 1"], [427, "mov esi, 6"], [428, "mov rdi, rax"], [429, "call sub_43E77A"], [430, "mov rcx, r13"], [431, "mov rdx, r12"], [432, "mov rsi, rbx"], [433, "mov rdi, rax"], [434, "call sub_43884F"], [435, "add [rbp+var_38], 1"], [436, "mov rax, [rbp+var_F8]"], [437, "mov rdx, [rax+40h]"], [438, "mov eax, [rbp+var_34]"], [439, "cdqe"], [440, "shl rax, 2"], [441, "add rax, rdx"], [442, "mov edx, [rax]"], [443, "mov eax, [rbp+var_38]"], [444, "cmp edx, eax"], [445, "ja loc_444421"], [446, "cmp [rbp+var_34], 0"], [447, "jz short loc_44473C"], [448, "mov rax, [rbp+var_F8]"], [449, "mov eax, [rax+2Ch]"], [450, "test eax, eax"], [451, "jz loc_44480B"], [452, "mov rcx, [rbp+var_F8]"], [453, "mov eax, [rbp+var_100]"], [454, "movsxd rdx, eax"], [455, "mov rax, rdx"], [456, "shl rax, 3"], [457, "sub rax, rdx"], [458, "shl rax, 3"], [459, "add rax, rcx"], [460, "add rax, 88h"], [461, "mov rdx, [rax]"], [462, "mov rax, [rbp+var_F8]"], [463, "mov rcx, [rax+48h]"], [464, "mov eax, [rbp+var_34]"], [465, "cdqe"], [466, "shl rax, 2"], [467, "add rax, rcx"], [468, "mov eax, [rax]"], [469, "mov ecx, eax"], [470, "mov rax, rcx"], [471, "shl rax, 2"], [472, "add rax, rcx"], [473, "shl rax, 3"], [474, "add rax, rdx"], [475, "mov rax, [rax]"], [476, "mov [rbp+var_58], rax"], [477, "mov rax, [rbp+var_58]"], [478, "mov edx, 1"], [479, "mov esi, 1"], [480, "mov rdi, rax"], [481, "call sub_43E77A"], [482, "mov r13, rax"], [483, "mov rax, [rbp+var_58]"], [484, "mov edx, 1"], [485, "mov esi, 0"], [486, "mov rdi, rax"], [487, "call sub_43E77A"], [488, "mov r12, rax"], [489, "mov rax, [rbp+var_58]"], [490, "mov edx, 0"], [491, "mov esi, 1"], [492, "mov rdi, rax"], [493, "call sub_43E77A"], [494, "mov rbx, rax"], [495, "mov rax, [rbp+var_58]"], [496, "mov edx, 0"], [497, "mov esi, 0"], [498, "mov rdi, rax"], [499, "call sub_43E77A"], [500, "mov rcx, r13"], [501, "mov rdx, r12"], [502, "mov rsi, rbx"], [503, "mov rdi, rax"], [504, "call sub_43884F"], [505, "mov rax, [rbp+var_F8]"], [506, "mov eax, [rax+34h]"], [507, "lea edx, [rax-1]"], [508, "mov eax, [rbp+var_34]"], [509, "cmp edx, eax"], [510, "jz short loc_444831"], [511, "mov rax, [rbp+var_F8]"], [512, "mov eax, [rax+2Ch]"], [513, "test eax, eax"], [514, "jz loc_44491E"], [515, "mov rcx, [rbp+var_F8]"], [516, "mov eax, [rbp+var_100]"], [517, "movsxd rdx, eax"], [518, "mov rax, rdx"], [519, "shl rax, 3"], [520, "sub rax, rdx"], [521, "shl rax, 3"], [522, "add rax, rcx"], [523, "add rax, 88h"], [524, "mov rdx, [rax]"], [525, "mov rax, [rbp+var_F8]"], [526, "mov rcx, [rax+48h]"], [527, "mov eax, [rbp+var_34]"], [528, "cdqe"], [529, "shl rax, 2"], [530, "add rax, rcx"], [531, "mov ecx, [rax]"], [532, "mov rax, [rbp+var_F8]"], [533, "mov rsi, [rax+40h]"], [534, "mov eax, [rbp+var_34]"], [535, "cdqe"], [536, "shl rax, 2"], [537, "add rax, rsi"], [538, "mov eax, [rax]"], [539, "add eax, ecx"], [540, "sub eax, 1"], [541, "mov ecx, eax"], [542, "mov rax, rcx"], [543, "shl rax, 2"], [544, "add rax, rcx"], [545, "shl rax, 3"], [546, "add rax, rdx"], [547, "mov rax, [rax]"], [548, "mov [rbp+var_60], rax"], [549, "mov rax, [rbp+var_60]"], [550, "mov edx, 1"], [551, "mov esi, 7"], [552, "mov rdi, rax"], [553, "call sub_43E77A"], [554, "mov r13, rax"], [555, "mov rax, [rbp+var_60]"], [556, "mov edx, 1"], [557, "mov esi, 6"], [558, "mov rdi, rax"], [559, "call sub_43E77A"], [560, "mov r12, rax"], [561, "mov rax, [rbp+var_60]"], [562, "mov edx, 0"], [563, "mov esi, 7"], [564, "mov rdi, rax"], [565, "call sub_43E77A"], [566, "mov rbx, rax"], [567, "mov rax, [rbp+var_60]"], [568, "mov edx, 0"], [569, "mov esi, 6"], [570, "mov rdi, rax"], [571, "call sub_43E77A"], [572, "mov rcx, r13"], [573, "mov rdx, r12"], [574, "mov rsi, rbx"], [575, "mov rdi, rax"], [576, "call sub_43884F"], [577, "mov eax, [rbp+var_40]"], [578, "lea edx, [rax+1]"], [579, "mov rax, [rbp+var_F8]"], [580, "mov eax, [rax+10h]"], [581, "shr eax, 4"], [582, "cmp edx, eax"], [583, "jz short loc_444989"], [584, "mov rax, [rbp+var_F8]"], [585, "mov eax, [rax+2Ch]"], [586, "test eax, eax"], [587, "jz loc_445494"], [588, "mov rax, [rbp+var_F8]"], [589, "mov rdx, [rax+50h]"], [590, "mov eax, [rbp+var_3C]"], [591, "cdqe"], [592, "shl rax, 2"], [593, "add rax, rdx"], [594, "mov edx, [rax]"], [595, "mov rax, [rbp+var_F8]"], [596, "mov rcx, [rax+38h]"], [597, "mov eax, [rbp+var_3C]"], [598, "cdqe"], [599, "shl rax, 2"], [600, "add rax, rcx"], [601, "mov eax, [rax]"], [602, "add eax, edx"], [603, "lea edx, [rax-1]"], [604, "mov eax, [rbp+var_40]"], [605, "cmp edx, eax"], [606, "jnz loc_445494"], [607, "mov [rbp+var_38], 0"], [608, "jmp loc_444CAA"], [609, "mov rcx, [rbp+var_F8]"], [610, "mov eax, [rbp+var_100]"], [611, "movsxd rdx, eax"], [612, "mov rax, rdx"], [613, "shl rax, 3"], [614, "sub rax, rdx"], [615, "shl rax, 3"], [616, "add rax, rcx"], [617, "add rax, 88h"], [618, "mov rdx, [rax]"], [619, "mov rax, [rbp+var_F8]"], [620, "mov rcx, [rax+48h]"], [621, "mov eax, [rbp+var_34]"], [622, "cdqe"], [623, "shl rax, 2"], [624, "add rax, rcx"], [625, "mov ecx, [rax]"], [626, "mov eax, [rbp+var_38]"], [627, "add eax, ecx"], [628, "mov ecx, eax"], [629, "mov rax, rcx"], [630, "shl rax, 2"], [631, "add rax, rcx"], [632, "shl rax, 3"], [633, "add rax, rdx"], [634, "mov rax, [rax]"], [635, "mov [rbp+var_A8], rax"], [636, "mov rax, [rbp+var_A8]"], [637, "mov edx, 6"], [638, "mov esi, 5"], [639, "mov rdi, rax"], [640, "call sub_43E77A"], [641, "mov r13, rax"], [642, "mov rax, [rbp+var_A8]"], [643, "mov edx, 6"], [644, "mov esi, 4"], [645, "mov rdi, rax"], [646, "call sub_43E77A"], [647, "mov r12, rax"], [648, "mov rax, [rbp+var_A8]"], [649, "mov edx, 6"], [650, "mov esi, 3"], [651, "mov rdi, rax"], [652, "call sub_43E77A"], [653, "mov rbx, rax"], [654, "mov rax, [rbp+var_A8]"], [655, "mov edx, 6"], [656, "mov esi, 2"], [657, "mov rdi, rax"], [658, "call sub_43E77A"], [659, "mov rcx, r13"], [660, "mov rdx, r12"], [661, "mov rsi, rbx"], [662, "mov rdi, rax"], [663, "call sub_43884F"], [664, "mov rax, [rbp+var_A8]"], [665, "mov edx, 7"], [666, "mov esi, 5"], [667, "mov rdi, rax"], [668, "call sub_43E77A"], [669, "mov r13, rax"], [670, "mov rax, [rbp+var_A8]"], [671, "mov edx, 7"], [672, "mov esi, 4"], [673, "mov rdi, rax"], [674, "call sub_43E77A"], [675, "mov r12, rax"], [676, "mov rax, [rbp+var_A8]"], [677, "mov edx, 7"], [678, "mov esi, 3"], [679, "mov rdi, rax"], [680, "call sub_43E77A"], [681, "mov rbx, rax"], [682, "mov rax, [rbp+var_A8]"], [683, "mov edx, 7"], [684, "mov esi, 2"], [685, "mov rdi, rax"], [686, "call sub_43E77A"], [687, "mov rcx, r13"], [688, "mov rdx, r12"], [689, "mov rsi, rbx"], [690, "mov rdi, rax"], [691, "call sub_43884F"], [692, "mov rax, [rbp+var_F8]"], [693, "mov rdx, [rax+48h]"], [694, "mov eax, [rbp+var_34]"], [695, "cdqe"], [696, "shl rax, 2"], [697, "add rax, rdx"], [698, "mov edx, [rax]"], [699, "mov eax, [rbp+var_38]"], [700, "add eax, edx"], [701, "test eax, eax"], [702, "jz short loc_444B26"], [703, "mov rax, [rbp+var_F8]"], [704, "mov eax, [rax+2Ch]"], [705, "test eax, eax"], [706, "jz short loc_444B42"], [707, "mov rax, [rbp+var_F8]"], [708, "mov eax, [rax+2Ch]"], [709, "test eax, eax"], [710, "jz loc_444CA6"], [711, "cmp [rbp+var_38], 0"], [712, "jz loc_444CA6"], [713, "mov rcx, [rbp+var_F8]"], [714, "mov eax, [rbp+var_100]"], [715, "movsxd rdx, eax"], [716, "mov rax, rdx"], [717, "shl rax, 3"], [718, "sub rax, rdx"], [719, "shl rax, 3"], [720, "add rax, rcx"], [721, "add rax, 88h"], [722, "mov rdx, [rax]"], [723, "mov rax, [rbp+var_F8]"], [724, "mov rcx, [rax+48h]"], [725, "mov eax, [rbp+var_34]"], [726, "cdqe"], [727, "shl rax, 2"], [728, "add rax, rcx"], [729, "mov ecx, [rax]"], [730, "mov eax, [rbp+var_38]"], [731, "add eax, ecx"], [732, "sub eax, 1"], [733, "mov ecx, eax"], [734, "mov rax, rcx"], [735, "shl rax, 2"], [736, "add rax, rcx"], [737, "shl rax, 3"], [738, "add rax, rdx"], [739, "mov rax, [rax]"], [740, "mov [rbp+var_B0], rax"], [741, "mov rax, [rbp+var_A8]"], [742, "mov edx, 6"], [743, "mov esi, 1"], [744, "mov rdi, rax"], [745, "call sub_43E77A"], [746, "mov r13, rax"], [747, "mov rax, [rbp+var_A8]"], [748, "mov edx, 6"], [749, "mov esi, 0"], [750, "mov rdi, rax"], [751, "call sub_43E77A"], [752, "mov r12, rax"], [753, "mov rax, [rbp+var_B0]"], [754, "mov edx, 6"], [755, "mov esi, 7"], [756, "mov rdi, rax"], [757, "call sub_43E77A"], [758, "mov rbx, rax"], [759, "mov rax, [rbp+var_B0]"], [760, "mov edx, 6"], [761, "mov esi, 6"], [762, "mov rdi, rax"], [763, "call sub_43E77A"], [764, "mov rcx, r13"], [765, "mov rdx, r12"], [766, "mov rsi, rbx"], [767, "mov rdi, rax"], [768, "call sub_43884F"], [769, "mov rax, [rbp+var_A8]"], [770, "mov edx, 7"], [771, "mov esi, 1"], [772, "mov rdi, rax"], [773, "call sub_43E77A"], [774, "mov r13, rax"], [775, "mov rax, [rbp+var_A8]"], [776, "mov edx, 7"], [777, "mov esi, 0"], [778, "mov rdi, rax"], [779, "call sub_43E77A"], [780, "mov r12, rax"], [781, "mov rax, [rbp+var_B0]"], [782, "mov edx, 7"], [783, "mov esi, 7"], [784, "mov rdi, rax"], [785, "call sub_43E77A"], [786, "mov rbx, rax"], [787, "mov rax, [rbp+var_B0]"], [788, "mov edx, 7"], [789, "mov esi, 6"], [790, "mov rdi, rax"], [791, "call sub_43E77A"], [792, "mov rcx, r13"], [793, "mov rdx, r12"], [794, "mov rsi, rbx"], [795, "mov rdi, rax"], [796, "call sub_43884F"], [797, "add [rbp+var_38], 1"], [798, "mov rax, [rbp+var_F8]"], [799, "mov rdx, [rax+40h]"], [800, "mov eax, [rbp+var_34]"], [801, "cdqe"], [802, "shl rax, 2"], [803, "add rax, rdx"], [804, "mov edx, [rax]"], [805, "mov eax, [rbp+var_38]"], [806, "cmp edx, eax"], [807, "ja loc_444995"], [808, "cmp [rbp+var_34], 0"], [809, "jz short loc_444CE6"], [810, "mov rax, [rbp+var_F8]"], [811, "mov eax, [rax+2Ch]"], [812, "test eax, eax"], [813, "jz loc_444DB5"], [814, "mov rcx, [rbp+var_F8]"], [815, "mov eax, [rbp+var_100]"], [816, "movsxd rdx, eax"], [817, "mov rax, rdx"], [818, "shl rax, 3"], [819, "sub rax, rdx"], [820, "shl rax, 3"], [821, "add rax, rcx"], [822, "add rax, 88h"], [823, "mov rdx, [rax]"], [824, "mov rax, [rbp+var_F8]"], [825, "mov rcx, [rax+48h]"], [826, "mov eax, [rbp+var_34]"], [827, "cdqe"], [828, "shl rax, 2"], [829, "add rax, rcx"], [830, "mov eax, [rax]"], [831, "mov ecx, eax"], [832, "mov rax, rcx"], [833, "shl rax, 2"], [834, "add rax, rcx"], [835, "shl rax, 3"], [836, "add rax, rdx"], [837, "mov rax, [rax]"], [838, "mov [rbp+var_78], rax"], [839, "mov rax, [rbp+var_78]"], [840, "mov edx, 7"], [841, "mov esi, 1"], [842, "mov rdi, rax"], [843, "call sub_43E77A"], [844, "mov r13, rax"], [845, "mov rax, [rbp+var_78]"], [846, "mov edx, 7"], [847, "mov esi, 0"], [848, "mov rdi, rax"], [849, "call sub_43E77A"], [850, "mov r12, rax"], [851, "mov rax, [rbp+var_78]"], [852, "mov edx, 6"], [853, "mov esi, 1"], [854, "mov rdi, rax"], [855, "call sub_43E77A"], [856, "mov rbx, rax"], [857, "mov rax, [rbp+var_78]"], [858, "mov edx, 6"], [859, "mov esi, 0"], [860, "mov rdi, rax"], [861, "call sub_43E77A"], [862, "mov rcx, r13"], [863, "mov rdx, r12"], [864, "mov rsi, rbx"], [865, "mov rdi, rax"], [866, "call sub_43884F"], [867, "mov rax, [rbp+var_F8]"], [868, "mov eax, [rax+34h]"], [869, "lea edx, [rax-1]"], [870, "mov eax, [rbp+var_34]"], [871, "cmp edx, eax"], [872, "jz short loc_444DDB"], [873, "mov rax, [rbp+var_F8]"], [874, "mov eax, [rax+2Ch]"], [875, "test eax, eax"], [876, "jz loc_444EC8"], [877, "mov rcx, [rbp+var_F8]"], [878, "mov eax, [rbp+var_100]"], [879, "movsxd rdx, eax"], [880, "mov rax, rdx"], [881, "shl rax, 3"], [882, "sub rax, rdx"], [883, "shl rax, 3"], [884, "add rax, rcx"], [885, "add rax, 88h"], [886, "mov rdx, [rax]"], [887, "mov rax, [rbp+var_F8]"], [888, "mov rcx, [rax+48h]"], [889, "mov eax, [rbp+var_34]"], [890, "cdqe"], [891, "shl rax, 2"], [892, "add rax, rcx"], [893, "mov ecx, [rax]"], [894, "mov rax, [rbp+var_F8]"], [895, "mov rsi, [rax+40h]"], [896, "mov eax, [rbp+var_34]"], [897, "cdqe"], [898, "shl rax, 2"], [899, "add rax, rsi"], [900, "mov eax, [rax]"], [901, "add eax, ecx"], [902, "sub eax, 1"], [903, "mov ecx, eax"], [904, "mov rax, rcx"], [905, "shl rax, 2"], [906, "add rax, rcx"], [907, "shl rax, 3"], [908, "add rax, rdx"], [909, "mov rax, [rax]"], [910, "mov [rbp+var_80], rax"], [911, "mov rax, [rbp+var_80]"], [912, "mov edx, 7"], [913, "mov esi, 7"], [914, "mov rdi, rax"], [915, "call sub_43E77A"], [916, "mov r13, rax"], [917, "mov rax, [rbp+var_80]"], [918, "mov edx, 7"], [919, "mov esi, 6"], [920, "mov rdi, rax"], [921, "call sub_43E77A"], [922, "mov r12, rax"], [923, "mov rax, [rbp+var_80]"], [924, "mov edx, 6"], [925, "mov esi, 7"], [926, "mov rdi, rax"], [927, "call sub_43E77A"], [928, "mov rbx, rax"], [929, "mov rax, [rbp+var_80]"], [930, "mov edx, 6"], [931, "mov esi, 6"], [932, "mov rdi, rax"], [933, "call sub_43E77A"], [934, "mov rcx, r13"], [935, "mov rdx, r12"], [936, "mov rsi, rbx"], [937, "mov rdi, rax"], [938, "call sub_43884F"], [939, "mov rax, [rbp+var_F8]"], [940, "mov eax, [rax+2Ch]"], [941, "test eax, eax"], [942, "jz loc_445494"], [943, "mov rax, [rbp+var_F8]"], [944, "mov rdx, [rax+50h]"], [945, "mov eax, [rbp+var_3C]"], [946, "cdqe"], [947, "shl rax, 2"], [948, "add rax, rdx"], [949, "mov edx, [rax]"], [950, "mov rax, [rbp+var_F8]"], [951, "mov rcx, [rax+38h]"], [952, "mov eax, [rbp+var_3C]"], [953, "cdqe"], [954, "shl rax, 2"], [955, "add rax, rcx"], [956, "mov eax, [rax]"], [957, "add eax, edx"], [958, "lea edx, [rax-1]"], [959, "mov eax, [rbp+var_40]"], [960, "cmp edx, eax"], [961, "jnz loc_445494"], [962, "mov rax, [rbp+var_F8]"], [963, "mov eax, [rax+10h]"], [964, "shr eax, 4"], [965, "lea edx, [rax-1]"], [966, "mov eax, [rbp+var_40]"], [967, "cmp edx, eax"], [968, "jbe loc_445494"], [969, "mov [rbp+var_38], 0"], [970, "jmp loc_445258"], [971, "mov rcx, [rbp+var_F8]"], [972, "mov eax, [rbp+var_100]"], [973, "movsxd rdx, eax"], [974, "mov rax, rdx"], [975, "shl rax, 3"], [976, "sub rax, rdx"], [977, "shl rax, 3"], [978, "add rax, rcx"], [979, "add rax, 90h"], [980, "mov rdx, [rax]"], [981, "mov rax, [rbp+var_F8]"], [982, "mov rcx, [rax+48h]"], [983, "mov eax, [rbp+var_34]"], [984, "cdqe"], [985, "shl rax, 2"], [986, "add rax, rcx"], [987, "mov ecx, [rax]"], [988, "mov eax, [rbp+var_38]"], [989, "add eax, ecx"], [990, "mov ecx, eax"], [991, "mov rax, rcx"], [992, "shl rax, 2"], [993, "add rax, rcx"], [994, "shl rax, 3"], [995, "add rax, rdx"], [996, "mov rax, [rax]"], [997, "mov [rbp+var_98], rax"], [998, "mov rax, [rbp+var_98]"], [999, "mov edx, 0"], [1000, "mov esi, 5"], [1001, "mov rdi, rax"], [1002, "call sub_43E77A"], [1003, "mov r13, rax"], [1004, "mov rax, [rbp+var_98]"], [1005, "mov edx, 0"], [1006, "mov esi, 4"], [1007, "mov rdi, rax"], [1008, "call sub_43E77A"], [1009, "mov r12, rax"], [1010, "mov rax, [rbp+var_98]"], [1011, "mov edx, 0"], [1012, "mov esi, 3"], [1013, "mov rdi, rax"], [1014, "call sub_43E77A"], [1015, "mov rbx, rax"], [1016, "mov rax, [rbp+var_98]"], [1017, "mov edx, 0"], [1018, "mov esi, 2"], [1019, "mov rdi, rax"], [1020, "call sub_43E77A"], [1021, "mov rcx, r13"], [1022, "mov rdx, r12"], [1023, "mov rsi, rbx"], [1024, "mov rdi, rax"], [1025, "call sub_43884F"], [1026, "mov rax, [rbp+var_98]"], [1027, "mov edx, 1"], [1028, "mov esi, 5"], [1029, "mov rdi, rax"], [1030, "call sub_43E77A"], [1031, "mov r13, rax"], [1032, "mov rax, [rbp+var_98]"], [1033, "mov edx, 1"], [1034, "mov esi, 4"], [1035, "mov rdi, rax"], [1036, "call sub_43E77A"], [1037, "mov r12, rax"], [1038, "mov rax, [rbp+var_98]"], [1039, "mov edx, 1"], [1040, "mov esi, 3"], [1041, "mov rdi, rax"], [1042, "call sub_43E77A"], [1043, "mov rbx, rax"], [1044, "mov rax, [rbp+var_98]"], [1045, "mov edx, 1"], [1046, "mov esi, 2"], [1047, "mov rdi, rax"], [1048, "call sub_43E77A"], [1049, "mov rcx, r13"], [1050, "mov rdx, r12"], [1051, "mov rsi, rbx"], [1052, "mov rdi, rax"], [1053, "call sub_43884F"], [1054, "mov rax, [rbp+var_F8]"], [1055, "mov rdx, [rax+48h]"], [1056, "mov eax, [rbp+var_34]"], [1057, "cdqe"], [1058, "shl rax, 2"], [1059, "add rax, rdx"], [1060, "mov edx, [rax]"], [1061, "mov eax, [rbp+var_38]"], [1062, "add eax, edx"], [1063, "test eax, eax"], [1064, "jz short loc_4450D4"], [1065, "mov rax, [rbp+var_F8]"], [1066, "mov eax, [rax+2Ch]"], [1067, "test eax, eax"], [1068, "jz short loc_4450F0"], [1069, "mov rax, [rbp+var_F8]"], [1070, "mov eax, [rax+2Ch]"], [1071, "test eax, eax"], [1072, "jz loc_445254"], [1073, "cmp [rbp+var_38], 0"], [1074, "jz loc_445254"], [1075, "mov rcx, [rbp+var_F8]"], [1076, "mov eax, [rbp+var_100]"], [1077, "movsxd rdx, eax"], [1078, "mov rax, rdx"], [1079, "shl rax, 3"], [1080, "sub rax, rdx"], [1081, "shl rax, 3"], [1082, "add rax, rcx"], [1083, "add rax, 90h"], [1084, "mov rdx, [rax]"], [1085, "mov rax, [rbp+var_F8]"], [1086, "mov rcx, [rax+48h]"], [1087, "mov eax, [rbp+var_34]"], [1088, "cdqe"], [1089, "shl rax, 2"], [1090, "add rax, rcx"], [1091, "mov ecx, [rax]"], [1092, "mov eax, [rbp+var_38]"], [1093, "add eax, ecx"], [1094, "sub eax, 1"], [1095, "mov ecx, eax"], [1096, "mov rax, rcx"], [1097, "shl rax, 2"], [1098, "add rax, rcx"], [1099, "shl rax, 3"], [1100, "add rax, rdx"], [1101, "mov rax, [rax]"], [1102, "mov [rbp+var_A0], rax"], [1103, "mov rax, [rbp+var_98]"], [1104, "mov edx, 0"], [1105, "mov esi, 1"], [1106, "mov rdi, rax"], [1107, "call sub_43E77A"], [1108, "mov r13, rax"], [1109, "mov rax, [rbp+var_98]"], [1110, "mov edx, 0"], [1111, "mov esi, 0"], [1112, "mov rdi, rax"], [1113, "call sub_43E6F5"], [1114, "mov r12, rax"], [1115, "mov rax, [rbp+var_A0]"], [1116, "mov edx, 0"], [1117, "mov esi, 7"], [1118, "mov rdi, rax"], [1119, "call sub_43E77A"], [1120, "mov rbx, rax"], [1121, "mov rax, [rbp+var_A0]"], [1122, "mov edx, 0"], [1123, "mov esi, 6"], [1124, "mov rdi, rax"], [1125, "call sub_43E77A"], [1126, "mov rcx, r13"], [1127, "mov rdx, r12"], [1128, "mov rsi, rbx"], [1129, "mov rdi, rax"], [1130, "call sub_43884F"], [1131, "mov rax, [rbp+var_98]"], [1132, "mov edx, 1"], [1133, "mov esi, 1"], [1134, "mov rdi, rax"], [1135, "call sub_43E77A"], [1136, "mov r13, rax"], [1137, "mov rax, [rbp+var_98]"], [1138, "mov edx, 1"], [1139, "mov esi, 0"], [1140, "mov rdi, rax"], [1141, "call sub_43E6F5"], [1142, "mov r12, rax"], [1143, "mov rax, [rbp+var_A0]"], [1144, "mov edx, 1"], [1145, "mov esi, 7"], [1146, "mov rdi, rax"], [1147, "call sub_43E77A"], [1148, "mov rbx, rax"], [1149, "mov rax, [rbp+var_A0]"], [1150, "mov edx, 1"], [1151, "mov esi, 6"], [1152, "mov rdi, rax"], [1153, "call sub_43E77A"], [1154, "mov rcx, r13"], [1155, "mov rdx, r12"], [1156, "mov rsi, rbx"], [1157, "mov rdi, rax"], [1158, "call sub_43884F"], [1159, "add [rbp+var_38], 1"], [1160, "mov rax, [rbp+var_F8]"], [1161, "mov rdx, [rax+40h]"], [1162, "mov eax, [rbp+var_34]"], [1163, "cdqe"], [1164, "shl rax, 2"], [1165, "add rax, rdx"], [1166, "mov edx, [rax]"], [1167, "mov eax, [rbp+var_38]"], [1168, "cmp edx, eax"], [1169, "ja loc_444F43"], [1170, "cmp [rbp+var_34], 0"], [1171, "jz short loc_445294"], [1172, "mov rax, [rbp+var_F8]"], [1173, "mov eax, [rax+2Ch]"], [1174, "test eax, eax"], [1175, "jz loc_445372"], [1176, "mov rcx, [rbp+var_F8]"], [1177, "mov eax, [rbp+var_100]"], [1178, "movsxd rdx, eax"], [1179, "mov rax, rdx"], [1180, "shl rax, 3"], [1181, "sub rax, rdx"], [1182, "shl rax, 3"], [1183, "add rax, rcx"], [1184, "add rax, 90h"], [1185, "mov rdx, [rax]"], [1186, "mov rax, [rbp+var_F8]"], [1187, "mov rcx, [rax+48h]"], [1188, "mov eax, [rbp+var_34]"], [1189, "cdqe"], [1190, "shl rax, 2"], [1191, "add rax, rcx"], [1192, "mov eax, [rax]"], [1193, "mov ecx, eax"], [1194, "mov rax, rcx"], [1195, "shl rax, 2"], [1196, "add rax, rcx"], [1197, "shl rax, 3"], [1198, "add rax, rdx"], [1199, "mov rax, [rax]"], [1200, "mov [rbp+var_88], rax"], [1201, "mov rax, [rbp+var_88]"], [1202, "mov edx, 1"], [1203, "mov esi, 1"], [1204, "mov rdi, rax"], [1205, "call sub_43E77A"], [1206, "mov r13, rax"], [1207, "mov rax, [rbp+var_88]"], [1208, "mov edx, 1"], [1209, "mov esi, 0"], [1210, "mov rdi, rax"], [1211, "call sub_43E77A"], [1212, "mov r12, rax"], [1213, "mov rax, [rbp+var_88]"], [1214, "mov edx, 0"], [1215, "mov esi, 1"], [1216, "mov rdi, rax"], [1217, "call sub_43E77A"], [1218, "mov rbx, rax"], [1219, "mov rax, [rbp+var_88]"], [1220, "mov edx, 0"], [1221, "mov esi, 0"], [1222, "mov rdi, rax"], [1223, "call sub_43E77A"], [1224, "mov rcx, r13"], [1225, "mov rdx, r12"], [1226, "mov rsi, rbx"], [1227, "mov rdi, rax"], [1228, "call sub_43884F"], [1229, "mov rax, [rbp+var_F8]"], [1230, "mov eax, [rax+34h]"], [1231, "lea edx, [rax-1]"], [1232, "mov eax, [rbp+var_34]"], [1233, "cmp edx, eax"], [1234, "jz short loc_445398"], [1235, "mov rax, [rbp+var_F8]"], [1236, "mov eax, [rax+2Ch]"], [1237, "test eax, eax"], [1238, "jz loc_445494"], [1239, "mov rcx, [rbp+var_F8]"], [1240, "mov eax, [rbp+var_100]"], [1241, "movsxd rdx, eax"], [1242, "mov rax, rdx"], [1243, "shl rax, 3"], [1244, "sub rax, rdx"], [1245, "shl rax, 3"], [1246, "add rax, rcx"], [1247, "add rax, 90h"], [1248, "mov rdx, [rax]"], [1249, "mov rax, [rbp+var_F8]"], [1250, "mov rcx, [rax+48h]"], [1251, "mov eax, [rbp+var_34]"], [1252, "cdqe"], [1253, "shl rax, 2"], [1254, "add rax, rcx"], [1255, "mov ecx, [rax]"], [1256, "mov rax, [rbp+var_F8]"], [1257, "mov rsi, [rax+40h]"], [1258, "mov eax, [rbp+var_34]"], [1259, "cdqe"], [1260, "shl rax, 2"], [1261, "add rax, rsi"], [1262, "mov eax, [rax]"], [1263, "add eax, ecx"], [1264, "sub eax, 1"], [1265, "mov ecx, eax"], [1266, "mov rax, rcx"], [1267, "shl rax, 2"], [1268, "add rax, rcx"], [1269, "shl rax, 3"], [1270, "add rax, rdx"], [1271, "mov rax, [rax]"], [1272, "mov [rbp+var_90], rax"], [1273, "mov rax, [rbp+var_90]"], [1274, "mov edx, 1"], [1275, "mov esi, 7"], [1276, "mov rdi, rax"], [1277, "call sub_43E77A"], [1278, "mov r13, rax"], [1279, "mov rax, [rbp+var_90]"], [1280, "mov edx, 1"], [1281, "mov esi, 6"], [1282, "mov rdi, rax"], [1283, "call sub_43E77A"], [1284, "mov r12, rax"], [1285, "mov rax, [rbp+var_90]"], [1286, "mov edx, 0"], [1287, "mov esi, 7"], [1288, "mov rdi, rax"], [1289, "call sub_43E77A"], [1290, "mov rbx, rax"], [1291, "mov rax, [rbp+var_90]"], [1292, "mov edx, 0"], [1293, "mov esi, 6"], [1294, "mov rdi, rax"], [1295, "call sub_43E77A"], [1296, "mov rcx, r13"], [1297, "mov rdx, r12"], [1298, "mov rsi, rbx"], [1299, "mov rdi, rax"], [1300, "call sub_43884F"], [1301, "mov [rbp+var_38], 0"], [1302, "jmp loc_44653C"], [1303, "mov rcx, [rbp+var_F8]"], [1304, "mov eax, [rbp+var_100]"], [1305, "movsxd rdx, eax"], [1306, "mov rax, rdx"], [1307, "shl rax, 3"], [1308, "sub rax, rdx"], [1309, "shl rax, 3"], [1310, "add rax, rcx"], [1311, "add rax, 88h"], [1312, "mov rdx, [rax]"], [1313, "mov rax, [rbp+var_F8]"], [1314, "mov rcx, [rax+48h]"], [1315, "mov eax, [rbp+var_34]"], [1316, "cdqe"], [1317, "shl rax, 2"], [1318, "add rax, rcx"], [1319, "mov ecx, [rax]"], [1320, "mov eax, [rbp+var_38]"], [1321, "add eax, ecx"], [1322, "mov ecx, eax"], [1323, "mov rax, rcx"], [1324, "shl rax, 2"], [1325, "add rax, rcx"], [1326, "shl rax, 3"], [1327, "add rax, rdx"], [1328, "mov rax, [rax]"], [1329, "mov [rbp+var_B8], rax"], [1330, "mov rcx, [rbp+var_F8]"], [1331, "mov eax, [rbp+var_100]"], [1332, "movsxd rdx, eax"], [1333, "mov rax, rdx"], [1334, "shl rax, 3"], [1335, "sub rax, rdx"], [1336, "shl rax, 3"], [1337, "add rax, rcx"], [1338, "add rax, 90h"], [1339, "mov rdx, [rax]"], [1340, "mov rax, [rbp+var_F8]"], [1341, "mov rcx, [rax+48h]"], [1342, "mov eax, [rbp+var_34]"], [1343, "cdqe"], [1344, "shl rax, 2"], [1345, "add rax, rcx"], [1346, "mov ecx, [rax]"], [1347, "mov eax, [rbp+var_38]"], [1348, "add eax, ecx"], [1349, "mov ecx, eax"], [1350, "mov rax, rcx"], [1351, "shl rax, 2"], [1352, "add rax, rcx"], [1353, "shl rax, 3"], [1354, "add rax, rdx"], [1355, "mov rax, [rax]"], [1356, "mov [rbp+var_C0], rax"], [1357, "mov rax, [rbp+var_B8]"], [1358, "mov edx, 5"], [1359, "mov esi, 5"], [1360, "mov rdi, rax"], [1361, "call sub_43E77A"], [1362, "mov r13, rax"], [1363, "mov rax, [rbp+var_B8]"], [1364, "mov edx, 5"], [1365, "mov esi, 4"], [1366, "mov rdi, rax"], [1367, "call sub_43E77A"], [1368, "mov [rbp+var_108], rax"], [1369, "mov rax, [rbp+var_B8]"], [1370, "mov edx, 5"], [1371, "mov esi, 3"], [1372, "mov rdi, rax"], [1373, "call sub_43E77A"], [1374, "mov [rbp+var_110], rax"], [1375, "mov rax, [rbp+var_B8]"], [1376, "mov edx, 5"], [1377, "mov esi, 2"], [1378, "mov rdi, rax"], [1379, "call sub_43E77A"], [1380, "mov [rbp+var_118], rax"], [1381, "mov rax, [rbp+var_B8]"], [1382, "mov edx, 4"], [1383, "mov esi, 5"], [1384, "mov rdi, rax"], [1385, "call sub_43E77A"], [1386, "mov [rbp+var_120], rax"], [1387, "mov rax, [rbp+var_B8]"], [1388, "mov edx, 4"], [1389, "mov esi, 4"], [1390, "mov rdi, rax"], [1391, "call sub_43E77A"], [1392, "mov [rbp+var_128], rax"], [1393, "mov rax, [rbp+var_B8]"], [1394, "mov edx, 4"], [1395, "mov esi, 3"], [1396, "mov rdi, rax"], [1397, "call sub_43E77A"], [1398, "mov [rbp+var_130], rax"], [1399, "mov rax, [rbp+var_B8]"], [1400, "mov edx, 4"], [1401, "mov esi, 2"], [1402, "mov rdi, rax"], [1403, "call sub_43E77A"], [1404, "mov [rbp+var_138], rax"], [1405, "mov rax, [rbp+var_B8]"], [1406, "mov edx, 3"], [1407, "mov esi, 5"], [1408, "mov rdi, rax"], [1409, "call sub_43E77A"], [1410, "mov r15, rax"], [1411, "mov rax, [rbp+var_B8]"], [1412, "mov edx, 3"], [1413, "mov esi, 4"], [1414, "mov rdi, rax"], [1415, "call sub_43E77A"], [1416, "mov r14, rax"], [1417, "mov rax, [rbp+var_B8]"], [1418, "mov edx, 3"], [1419, "mov esi, 3"], [1420, "mov rdi, rax"], [1421, "call sub_43E77A"], [1422, "mov [rbp+var_140], rax"], [1423, "mov rax, [rbp+var_B8]"], [1424, "mov edx, 3"], [1425, "mov esi, 2"], [1426, "mov rdi, rax"], [1427, "call sub_43E77A"], [1428, "mov [rbp+var_148], rax"], [1429, "mov rax, [rbp+var_B8]"], [1430, "mov edx, 2"], [1431, "mov esi, 5"], [1432, "mov rdi, rax"], [1433, "call sub_43E77A"], [1434, "mov [rbp+var_150], rax"], [1435, "mov rax, [rbp+var_B8]"], [1436, "mov edx, 2"], [1437, "mov esi, 4"], [1438, "mov rdi, rax"], [1439, "call sub_43E77A"], [1440, "mov r12, rax"], [1441, "mov rax, [rbp+var_B8]"], [1442, "mov edx, 2"], [1443, "mov esi, 3"], [1444, "mov rdi, rax"], [1445, "call sub_43E77A"], [1446, "mov rbx, rax"], [1447, "mov rax, [rbp+var_B8]"], [1448, "mov edx, 2"], [1449, "mov esi, 2"], [1450, "mov rdi, rax"], [1451, "call sub_43E77A"], [1452, "push r13"], [1453, "push [rbp+var_108]"], [1454, "push [rbp+var_110]"], [1455, "push [rbp+var_118]"], [1456, "push [rbp+var_120]"], [1457, "push [rbp+var_128]"], [1458, "push [rbp+var_130]"], [1459, "push [rbp+var_138]"], [1460, "push r15"], [1461, "push r14"], [1462, "mov r9, [rbp+var_140]"], [1463, "mov r8, [rbp+var_148]"], [1464, "mov rcx, [rbp+var_150]"], [1465, "mov rdx, r12"], [1466, "mov rsi, rbx"], [1467, "mov rdi, rax"], [1468, "call sub_4386A7"], [1469, "add rsp, 50h"], [1470, "mov rax, [rbp+var_F8]"], [1471, "mov rdx, [rax+48h]"], [1472, "mov eax, [rbp+var_34]"], [1473, "cdqe"], [1474, "shl rax, 2"], [1475, "add rax, rdx"], [1476, "mov edx, [rax]"], [1477, "mov eax, [rbp+var_38]"], [1478, "add edx, eax"], [1479, "mov rax, [rbp+var_F8]"], [1480, "mov eax, [rax+0Ch]"], [1481, "shr eax, 4"], [1482, "sub eax, 1"], [1483, "cmp edx, eax"], [1484, "jnb short loc_4457E6"], [1485, "mov rax, [rbp+var_F8]"], [1486, "mov eax, [rax+2Ch]"], [1487, "test eax, eax"], [1488, "jz short loc_44581F"], [1489, "mov rax, [rbp+var_F8]"], [1490, "mov eax, [rax+2Ch]"], [1491, "test eax, eax"], [1492, "jz loc_445AC3"], [1493, "mov rax, [rbp+var_F8]"], [1494, "mov rdx, [rax+40h]"], [1495, "mov eax, [rbp+var_34]"], [1496, "cdqe"], [1497, "shl rax, 2"], [1498, "add rax, rdx"], [1499, "mov eax, [rax]"], [1500, "lea edx, [rax-1]"], [1501, "mov eax, [rbp+var_38]"], [1502, "cmp edx, eax"], [1503, "jz loc_445AC3"], [1504, "mov rcx, [rbp+var_F8]"], [1505, "mov eax, [rbp+var_100]"], [1506, "movsxd rdx, eax"], [1507, "mov rax, rdx"], [1508, "shl rax, 3"], [1509, "sub rax, rdx"], [1510, "shl rax, 3"], [1511, "add rax, rcx"], [1512, "add rax, 88h"], [1513, "mov rdx, [rax]"], [1514, "mov rax, [rbp+var_F8]"], [1515, "mov rcx, [rax+48h]"], [1516, "mov eax, [rbp+var_34]"], [1517, "cdqe"], [1518, "shl rax, 2"], [1519, "add rax, rcx"], [1520, "mov ecx, [rax]"], [1521, "mov eax, [rbp+var_38]"], [1522, "add eax, ecx"], [1523, "add eax, 1"], [1524, "mov ecx, eax"], [1525, "mov rax, rcx"], [1526, "shl rax, 2"], [1527, "add rax, rcx"], [1528, "shl rax, 3"], [1529, "add rax, rdx"], [1530, "mov rax, [rax]"], [1531, "mov [rbp+var_C8], rax"], [1532, "mov rax, [rbp+var_C8]"], [1533, "mov edx, 5"], [1534, "mov esi, 1"], [1535, "mov rdi, rax"], [1536, "call sub_43E77A"], [1537, "mov r13, rax"], [1538, "mov rax, [rbp+var_C8]"], [1539, "mov edx, 5"], [1540, "mov esi, 0"], [1541, "mov rdi, rax"], [1542, "call sub_43E77A"], [1543, "mov [rbp+var_108], rax"], [1544, "mov rax, [rbp+var_B8]"], [1545, "mov edx, 5"], [1546, "mov esi, 7"], [1547, "mov rdi, rax"], [1548, "call sub_43E77A"], [1549, "mov [rbp+var_110], rax"], [1550, "mov rax, [rbp+var_B8]"], [1551, "mov edx, 5"], [1552, "mov esi, 6"], [1553, "mov rdi, rax"], [1554, "call sub_43E77A"], [1555, "mov [rbp+var_118], rax"], [1556, "mov rax, [rbp+var_C8]"], [1557, "mov edx, 4"], [1558, "mov esi, 1"], [1559, "mov rdi, rax"], [1560, "call sub_43E77A"], [1561, "mov [rbp+var_120], rax"], [1562, "mov rax, [rbp+var_C8]"], [1563, "mov edx, 4"], [1564, "mov esi, 0"], [1565, "mov rdi, rax"], [1566, "call sub_43E77A"], [1567, "mov [rbp+var_128], rax"], [1568, "mov rax, [rbp+var_B8]"], [1569, "mov edx, 4"], [1570, "mov esi, 7"], [1571, "mov rdi, rax"], [1572, "call sub_43E77A"], [1573, "mov [rbp+var_130], rax"], [1574, "mov rax, [rbp+var_B8]"], [1575, "mov edx, 4"], [1576, "mov esi, 6"], [1577, "mov rdi, rax"], [1578, "call sub_43E77A"], [1579, "mov [rbp+var_138], rax"], [1580, "mov rax, [rbp+var_C8]"], [1581, "mov edx, 3"], [1582, "mov esi, 1"], [1583, "mov rdi, rax"], [1584, "call sub_43E77A"], [1585, "mov r15, rax"], [1586, "mov rax, [rbp+var_C8]"], [1587, "mov edx, 3"], [1588, "mov esi, 0"], [1589, "mov rdi, rax"], [1590, "call sub_43E77A"], [1591, "mov r14, rax"], [1592, "mov rax, [rbp+var_B8]"], [1593, "mov edx, 3"], [1594, "mov esi, 7"], [1595, "mov rdi, rax"], [1596, "call sub_43E77A"], [1597, "mov [rbp+var_140], rax"], [1598, "mov rax, [rbp+var_B8]"], [1599, "mov edx, 3"], [1600, "mov esi, 6"], [1601, "mov rdi, rax"], [1602, "call sub_43E77A"], [1603, "mov [rbp+var_148], rax"], [1604, "mov rax, [rbp+var_C8]"], [1605, "mov edx, 2"], [1606, "mov esi, 1"], [1607, "mov rdi, rax"], [1608, "call sub_43E77A"], [1609, "mov [rbp+var_150], rax"], [1610, "mov rax, [rbp+var_C8]"], [1611, "mov edx, 2"], [1612, "mov esi, 0"], [1613, "mov rdi, rax"], [1614, "call sub_43E77A"], [1615, "mov r12, rax"], [1616, "mov rax, [rbp+var_B8]"], [1617, "mov edx, 2"], [1618, "mov esi, 7"], [1619, "mov rdi, rax"], [1620, "call sub_43E77A"], [1621, "mov rbx, rax"], [1622, "mov rax, [rbp+var_B8]"], [1623, "mov edx, 2"], [1624, "mov esi, 6"], [1625, "mov rdi, rax"], [1626, "call sub_43E77A"], [1627, "push r13"], [1628, "push [rbp+var_108]"], [1629, "push [rbp+var_110]"], [1630, "push [rbp+var_118]"], [1631, "push [rbp+var_120]"], [1632, "push [rbp+var_128]"], [1633, "push [rbp+var_130]"], [1634, "push [rbp+var_138]"], [1635, "push r15"], [1636, "push r14"], [1637, "mov r9, [rbp+var_140]"], [1638, "mov r8, [rbp+var_148]"], [1639, "mov rcx, [rbp+var_150]"], [1640, "mov rdx, r12"], [1641, "mov rsi, rbx"], [1642, "mov rdi, rax"], [1643, "call sub_4386A7"], [1644, "add rsp, 50h"], [1645, "mov eax, [rbp+var_40]"], [1646, "lea edx, [rax+1]"], [1647, "mov rax, [rbp+var_F8]"], [1648, "mov eax, [rax+10h]"], [1649, "shr eax, 4"], [1650, "cmp edx, eax"], [1651, "jge loc_446538"], [1652, "mov rcx, [rbp+var_F8]"], [1653, "mov eax, [rbp+var_100]"], [1654, "movsxd rdx, eax"], [1655, "mov rax, rdx"], [1656, "shl rax, 3"], [1657, "sub rax, rdx"], [1658, "shl rax, 3"], [1659, "add rax, rcx"], [1660, "add rax, 88h"], [1661, "mov rdx, [rax]"], [1662, "mov rax, [rbp+var_F8]"], [1663, "mov rcx, [rax+48h]"], [1664, "mov eax, [rbp+var_34]"], [1665, "cdqe"], [1666, "shl rax, 2"], [1667, "add rax, rcx"], [1668, "mov ecx, [rax]"], [1669, "mov eax, [rbp+var_38]"], [1670, "add eax, ecx"], [1671, "mov ecx, eax"], [1672, "mov rax, rcx"], [1673, "shl rax, 2"], [1674, "add rax, rcx"], [1675, "shl rax, 3"], [1676, "add rax, rdx"], [1677, "mov rax, [rax]"], [1678, "mov [rbp+var_D0], rax"], [1679, "mov rcx, [rbp+var_F8]"], [1680, "mov eax, [rbp+var_100]"], [1681, "movsxd rdx, eax"], [1682, "mov rax, rdx"], [1683, "shl rax, 3"], [1684, "sub rax, rdx"], [1685, "shl rax, 3"], [1686, "add rax, rcx"], [1687, "add rax, 90h"], [1688, "mov rdx, [rax]"], [1689, "mov rax, [rbp+var_F8]"], [1690, "mov rcx, [rax+48h]"], [1691, "mov eax, [rbp+var_34]"], [1692, "cdqe"], [1693, "shl rax, 2"], [1694, "add rax, rcx"], [1695, "mov ecx, [rax]"], [1696, "mov eax, [rbp+var_38]"], [1697, "add eax, ecx"], [1698, "mov ecx, eax"], [1699, "mov rax, rcx"], [1700, "shl rax, 2"], [1701, "add rax, rcx"], [1702, "shl rax, 3"], [1703, "add rax, rdx"], [1704, "mov rax, [rax]"], [1705, "mov [rbp+var_D8], rax"], [1706, "cmp [rbp+var_34], 0"], [1707, "jnz short loc_445BC2"], [1708, "cmp [rbp+var_38], 0"], [1709, "jnz short loc_445BC2"], [1710, "mov rax, [rbp+var_F8]"], [1711, "mov eax, [rax+2Ch]"], [1712, "test eax, eax"], [1713, "jz short loc_445C20"], [1714, "mov rax, [rbp+var_F8]"], [1715, "mov eax, [rax+2Ch]"], [1716, "test eax, eax"], [1717, "jz loc_445D1C"], [1718, "cmp [rbp+var_38], 0"], [1719, "jnz loc_445D1C"], [1720, "mov rax, [rbp+var_F8]"], [1721, "mov rdx, [rax+50h]"], [1722, "mov eax, [rbp+var_3C]"], [1723, "cdqe"], [1724, "shl rax, 2"], [1725, "add rax, rdx"], [1726, "mov edx, [rax]"], [1727, "mov rax, [rbp+var_F8]"], [1728, "mov rcx, [rax+38h]"], [1729, "mov eax, [rbp+var_3C]"], [1730, "cdqe"], [1731, "shl rax, 2"], [1732, "add rax, rcx"], [1733, "mov eax, [rax]"], [1734, "add eax, edx"], [1735, "lea edx, [rax-1]"], [1736, "mov eax, [rbp+var_40]"], [1737, "cmp edx, eax"], [1738, "jz loc_445D1C"], [1739, "mov rax, [rbp+var_D8]"], [1740, "mov edx, 1"], [1741, "mov esi, 0"], [1742, "mov rdi, rax"], [1743, "call sub_43E77A"], [1744, "mov r13, rax"], [1745, "mov rax, [rbp+var_D8]"], [1746, "mov edx, 0"], [1747, "mov esi, 0"], [1748, "mov rdi, rax"], [1749, "call sub_43E77A"], [1750, "mov r12, rax"], [1751, "mov rax, [rbp+var_D0]"], [1752, "mov edx, 7"], [1753, "mov esi, 0"], [1754, "mov rdi, rax"], [1755, "call sub_43E77A"], [1756, "mov rbx, rax"], [1757, "mov rax, [rbp+var_D0]"], [1758, "mov edx, 6"], [1759, "mov esi, 0"], [1760, "mov rdi, rax"], [1761, "call sub_43E77A"], [1762, "mov rcx, r13"], [1763, "mov rdx, r12"], [1764, "mov rsi, rbx"], [1765, "mov rdi, rax"], [1766, "call sub_43884F"], [1767, "mov rax, [rbp+var_D8]"], [1768, "mov edx, 1"], [1769, "mov esi, 1"], [1770, "mov rdi, rax"], [1771, "call sub_43E77A"], [1772, "mov r13, rax"], [1773, "mov rax, [rbp+var_D8]"], [1774, "mov edx, 0"], [1775, "mov esi, 1"], [1776, "mov rdi, rax"], [1777, "call sub_43E77A"], [1778, "mov r12, rax"], [1779, "mov rax, [rbp+var_D0]"], [1780, "mov edx, 7"], [1781, "mov esi, 1"], [1782, "mov rdi, rax"], [1783, "call sub_43E77A"], [1784, "mov rbx, rax"], [1785, "mov rax, [rbp+var_D0]"], [1786, "mov edx, 6"], [1787, "mov esi, 1"], [1788, "mov rdi, rax"], [1789, "call sub_43E77A"], [1790, "mov rcx, r13"], [1791, "mov rdx, r12"], [1792, "mov rsi, rbx"], [1793, "mov rdi, rax"], [1794, "call sub_43884F"], [1795, "mov rax, [rbp+var_F8]"], [1796, "mov eax, [rax+2Ch]"], [1797, "test eax, eax"], [1798, "jz short loc_445D7E"], [1799, "mov rax, [rbp+var_F8]"], [1800, "mov eax, [rax+2Ch]"], [1801, "test eax, eax"], [1802, "jz loc_445FBA"], [1803, "mov rax, [rbp+var_F8]"], [1804, "mov rdx, [rax+50h]"], [1805, "mov eax, [rbp+var_3C]"], [1806, "cdqe"], [1807, "shl rax, 2"], [1808, "add rax, rdx"], [1809, "mov edx, [rax]"], [1810, "mov rax, [rbp+var_F8]"], [1811, "mov rcx, [rax+38h]"], [1812, "mov eax, [rbp+var_3C]"], [1813, "cdqe"], [1814, "shl rax, 2"], [1815, "add rax, rcx"], [1816, "mov eax, [rax]"], [1817, "add eax, edx"], [1818, "lea edx, [rax-1]"], [1819, "mov eax, [rbp+var_40]"], [1820, "cmp edx, eax"], [1821, "jz loc_445FBA"], [1822, "mov rax, [rbp+var_D8]"], [1823, "mov edx, 1"], [1824, "mov esi, 5"], [1825, "mov rdi, rax"], [1826, "call sub_43E77A"], [1827, "mov r13, rax"], [1828, "mov rax, [rbp+var_D8]"], [1829, "mov edx, 1"], [1830, "mov esi, 4"], [1831, "mov rdi, rax"], [1832, "call sub_43E77A"], [1833, "mov [rbp+var_108], rax"], [1834, "mov rax, [rbp+var_D8]"], [1835, "mov edx, 1"], [1836, "mov esi, 3"], [1837, "mov rdi, rax"], [1838, "call sub_43E77A"], [1839, "mov [rbp+var_110], rax"], [1840, "mov rax, [rbp+var_D8]"], [1841, "mov edx, 1"], [1842, "mov esi, 2"], [1843, "mov rdi, rax"], [1844, "call sub_43E77A"], [1845, "mov [rbp+var_118], rax"], [1846, "mov rax, [rbp+var_D8]"], [1847, "mov edx, 0"], [1848, "mov esi, 5"], [1849, "mov rdi, rax"], [1850, "call sub_43E77A"], [1851, "mov [rbp+var_120], rax"], [1852, "mov rax, [rbp+var_D8]"], [1853, "mov edx, 0"], [1854, "mov esi, 4"], [1855, "mov rdi, rax"], [1856, "call sub_43E77A"], [1857, "mov [rbp+var_128], rax"], [1858, "mov rax, [rbp+var_D8]"], [1859, "mov edx, 0"], [1860, "mov esi, 3"], [1861, "mov rdi, rax"], [1862, "call sub_43E77A"], [1863, "mov [rbp+var_130], rax"], [1864, "mov rax, [rbp+var_D8]"], [1865, "mov edx, 0"], [1866, "mov esi, 2"], [1867, "mov rdi, rax"], [1868, "call sub_43E77A"], [1869, "mov [rbp+var_138], rax"], [1870, "mov rax, [rbp+var_D0]"], [1871, "mov edx, 7"], [1872, "mov esi, 5"], [1873, "mov rdi, rax"], [1874, "call sub_43E77A"], [1875, "mov r15, rax"], [1876, "mov rax, [rbp+var_D0]"], [1877, "mov edx, 7"], [1878, "mov esi, 4"], [1879, "mov rdi, rax"], [1880, "call sub_43E77A"], [1881, "mov r14, rax"], [1882, "mov rax, [rbp+var_D0]"], [1883, "mov edx, 7"], [1884, "mov esi, 3"], [1885, "mov rdi, rax"], [1886, "call sub_43E77A"], [1887, "mov [rbp+var_140], rax"], [1888, "mov rax, [rbp+var_D0]"], [1889, "mov edx, 7"], [1890, "mov esi, 2"], [1891, "mov rdi, rax"], [1892, "call sub_43E77A"], [1893, "mov [rbp+var_148], rax"], [1894, "mov rax, [rbp+var_D0]"], [1895, "mov edx, 6"], [1896, "mov esi, 5"], [1897, "mov rdi, rax"], [1898, "call sub_43E77A"], [1899, "mov [rbp+var_150], rax"], [1900, "mov rax, [rbp+var_D0]"], [1901, "mov edx, 6"], [1902, "mov esi, 4"], [1903, "mov rdi, rax"], [1904, "call sub_43E77A"], [1905, "mov r12, rax"], [1906, "mov rax, [rbp+var_D0]"], [1907, "mov edx, 6"], [1908, "mov esi, 3"], [1909, "mov rdi, rax"], [1910, "call sub_43E77A"], [1911, "mov rbx, rax"], [1912, "mov rax, [rbp+var_D0]"], [1913, "mov edx, 6"], [1914, "mov esi, 2"], [1915, "mov rdi, rax"], [1916, "call sub_43E77A"], [1917, "push r13"], [1918, "push [rbp+var_108]"], [1919, "push [rbp+var_110]"], [1920, "push [rbp+var_118]"], [1921, "push [rbp+var_120]"], [1922, "push [rbp+var_128]"], [1923, "push [rbp+var_130]"], [1924, "push [rbp+var_138]"], [1925, "push r15"], [1926, "push r14"], [1927, "mov r9, [rbp+var_140]"], [1928, "mov r8, [rbp+var_148]"], [1929, "mov rcx, [rbp+var_150]"], [1930, "mov rdx, r12"], [1931, "mov rsi, rbx"], [1932, "mov rdi, rax"], [1933, "call sub_4386A7"], [1934, "add rsp, 50h"], [1935, "mov rax, [rbp+var_F8]"], [1936, "mov rdx, [rax+48h]"], [1937, "mov eax, [rbp+var_34]"], [1938, "cdqe"], [1939, "shl rax, 2"], [1940, "add rax, rdx"], [1941, "mov edx, [rax]"], [1942, "mov eax, [rbp+var_38]"], [1943, "add edx, eax"], [1944, "mov rax, [rbp+var_F8]"], [1945, "mov eax, [rax+0Ch]"], [1946, "shr eax, 4"], [1947, "sub eax, 1"], [1948, "cmp edx, eax"], [1949, "jnb short loc_445FFA"], [1950, "mov rax, [rbp+var_F8]"], [1951, "mov eax, [rax+2Ch]"], [1952, "test eax, eax"], [1953, "jz short loc_446075"], [1954, "mov rax, [rbp+var_F8]"], [1955, "mov eax, [rax+2Ch]"], [1956, "test eax, eax"], [1957, "jz loc_446381"], [1958, "mov rax, [rbp+var_F8]"], [1959, "mov rdx, [rax+40h]"], [1960, "mov eax, [rbp+var_34]"], [1961, "cdqe"], [1962, "shl rax, 2"], [1963, "add rax, rdx"], [1964, "mov eax, [rax]"], [1965, "lea edx, [rax-1]"], [1966, "mov eax, [rbp+var_38]"], [1967, "cmp edx, eax"], [1968, "jz loc_446381"], [1969, "mov rax, [rbp+var_F8]"], [1970, "mov rdx, [rax+50h]"], [1971, "mov eax, [rbp+var_3C]"], [1972, "cdqe"], [1973, "shl rax, 2"], [1974, "add rax, rdx"], [1975, "mov edx, [rax]"], [1976, "mov rax, [rbp+var_F8]"], [1977, "mov rcx, [rax+38h]"], [1978, "mov eax, [rbp+var_3C]"], [1979, "cdqe"], [1980, "shl rax, 2"], [1981, "add rax, rcx"], [1982, "mov eax, [rax]"], [1983, "add eax, edx"], [1984, "lea edx, [rax-1]"], [1985, "mov eax, [rbp+var_40]"], [1986, "cmp edx, eax"], [1987, "jz loc_446381"], [1988, "mov rcx, [rbp+var_F8]"], [1989, "mov eax, [rbp+var_100]"], [1990, "movsxd rdx, eax"], [1991, "mov rax, rdx"], [1992, "shl rax, 3"], [1993, "sub rax, rdx"], [1994, "shl rax, 3"], [1995, "add rax, rcx"], [1996, "add rax, 88h"], [1997, "mov rdx, [rax]"], [1998, "mov rax, [rbp+var_F8]"], [1999, "mov rcx, [rax+48h]"], [2000, "mov eax, [rbp+var_34]"], [2001, "cdqe"], [2002, "shl rax, 2"], [2003, "add rax, rcx"], [2004, "mov ecx, [rax]"], [2005, "mov eax, [rbp+var_38]"], [2006, "add eax, ecx"], [2007, "add eax, 1"], [2008, "mov ecx, eax"], [2009, "mov rax, rcx"], [2010, "shl rax, 2"], [2011, "add rax, rcx"], [2012, "shl rax, 3"], [2013, "add rax, rdx"], [2014, "mov rax, [rax]"], [2015, "mov [rbp+var_E0], rax"], [2016, "mov rcx, [rbp+var_F8]"], [2017, "mov eax, [rbp+var_100]"], [2018, "movsxd rdx, eax"], [2019, "mov rax, rdx"], [2020, "shl rax, 3"], [2021, "sub rax, rdx"], [2022, "shl rax, 3"], [2023, "add rax, rcx"], [2024, "add rax, 90h"], [2025, "mov rdx, [rax]"], [2026, "mov rax, [rbp+var_F8]"], [2027, "mov rcx, [rax+48h]"], [2028, "mov eax, [rbp+var_34]"], [2029, "cdqe"], [2030, "shl rax, 2"], [2031, "add rax, rcx"], [2032, "mov ecx, [rax]"], [2033, "mov eax, [rbp+var_38]"], [2034, "add eax, ecx"], [2035, "add eax, 1"], [2036, "mov ecx, eax"], [2037, "mov rax, rcx"], [2038, "shl rax, 2"], [2039, "add rax, rcx"], [2040, "shl rax, 3"], [2041, "add rax, rdx"], [2042, "mov rax, [rax]"], [2043, "mov [rbp+var_E8], rax"], [2044, "mov rax, [rbp+var_E8]"], [2045, "mov edx, 1"], [2046, "mov esi, 1"], [2047, "mov rdi, rax"], [2048, "call sub_43E77A"], [2049, "mov r13, rax"], [2050, "mov rax, [rbp+var_E8]"], [2051, "mov edx, 1"], [2052, "mov esi, 0"], [2053, "mov rdi, rax"], [2054, "call sub_43E77A"], [2055, "mov [rbp+var_108], rax"], [2056, "mov rax, [rbp+var_D8]"], [2057, "mov edx, 1"], [2058, "mov esi, 7"], [2059, "mov rdi, rax"], [2060, "call sub_43E77A"], [2061, "mov [rbp+var_110], rax"], [2062, "mov rax, [rbp+var_D8]"], [2063, "mov edx, 1"], [2064, "mov esi, 6"], [2065, "mov rdi, rax"], [2066, "call sub_43E77A"], [2067, "mov [rbp+var_118], rax"], [2068, "mov rax, [rbp+var_E8]"], [2069, "mov edx, 0"], [2070, "mov esi, 1"], [2071, "mov rdi, rax"], [2072, "call sub_43E77A"], [2073, "mov [rbp+var_120], rax"], [2074, "mov rax, [rbp+var_E8]"], [2075, "mov edx, 0"], [2076, "mov esi, 0"], [2077, "mov rdi, rax"], [2078, "call sub_43E77A"], [2079, "mov [rbp+var_128], rax"], [2080, "mov rax, [rbp+var_D8]"], [2081, "mov edx, 0"], [2082, "mov esi, 7"], [2083, "mov rdi, rax"], [2084, "call sub_43E77A"], [2085, "mov [rbp+var_130], rax"], [2086, "mov rax, [rbp+var_D8]"], [2087, "mov edx, 0"], [2088, "mov esi, 6"], [2089, "mov rdi, rax"], [2090, "call sub_43E77A"], [2091, "mov [rbp+var_138], rax"], [2092, "mov rax, [rbp+var_E0]"], [2093, "mov edx, 7"], [2094, "mov esi, 1"], [2095, "mov rdi, rax"], [2096, "call sub_43E77A"], [2097, "mov r15, rax"], [2098, "mov rax, [rbp+var_E0]"], [2099, "mov edx, 7"], [2100, "mov esi, 0"], [2101, "mov rdi, rax"], [2102, "call sub_43E77A"], [2103, "mov r14, rax"], [2104, "mov rax, [rbp+var_D0]"], [2105, "mov edx, 7"], [2106, "mov esi, 7"], [2107, "mov rdi, rax"], [2108, "call sub_43E77A"], [2109, "mov [rbp+var_140], rax"], [2110, "mov rax, [rbp+var_D0]"], [2111, "mov edx, 7"], [2112, "mov esi, 6"], [2113, "mov rdi, rax"], [2114, "call sub_43E77A"], [2115, "mov [rbp+var_148], rax"], [2116, "mov rax, [rbp+var_E0]"], [2117, "mov edx, 6"], [2118, "mov esi, 1"], [2119, "mov rdi, rax"], [2120, "call sub_43E77A"], [2121, "mov [rbp+var_150], rax"], [2122, "mov rax, [rbp+var_E0]"], [2123, "mov edx, 6"], [2124, "mov esi, 0"], [2125, "mov rdi, rax"], [2126, "call sub_43E77A"], [2127, "mov r12, rax"], [2128, "mov rax, [rbp+var_D0]"], [2129, "mov edx, 6"], [2130, "mov esi, 7"], [2131, "mov rdi, rax"], [2132, "call sub_43E77A"], [2133, "mov rbx, rax"], [2134, "mov rax, [rbp+var_D0]"], [2135, "mov edx, 6"], [2136, "mov esi, 6"], [2137, "mov rdi, rax"], [2138, "call sub_43E77A"], [2139, "push r13"], [2140, "push [rbp+var_108]"], [2141, "push [rbp+var_110]"], [2142, "push [rbp+var_118]"], [2143, "push [rbp+var_120]"], [2144, "push [rbp+var_128]"], [2145, "push [rbp+var_130]"], [2146, "push [rbp+var_138]"], [2147, "push r15"], [2148, "push r14"], [2149, "mov r9, [rbp+var_140]"], [2150, "mov r8, [rbp+var_148]"], [2151, "mov rcx, [rbp+var_150]"], [2152, "mov rdx, r12"], [2153, "mov rsi, rbx"], [2154, "mov rdi, rax"], [2155, "call sub_4386A7"], [2156, "add rsp, 50h"]], "data_dep": [[12, 9], [13, 12], [14, 13], [16, 10], [17, 16], [18, 8], [19, 18], [20, 19], [21, 20], [27, 9], [28, 27], [34, 15], [34, 34], [35, 8], [36, 35], [37, 34], [37, 15], [39, 37], [40, 36], [40, 39], [41, 40], [42, 8], [43, 42], [44, 15], [44, 34], [46, 44], [47, 43], [47, 46], [48, 47], [49, 41], [49, 48], [50, 41], [50, 49], [51, 14], [52, 51], [52, 50], [53, 52], [57, 56], [59, 58], [60, 59], [61, 60], [64, 63], [65, 64], [66, 65], [67, 64], [67, 66], [68, 67], [69, 62], [69, 68], [70, 69], [71, 70], [73, 72], [76, 74], [77, 76], [77, 73], [78, 77], [79, 78], [80, 79], [81, 80], [82, 79], [82, 81], [83, 82], [84, 71], [84, 83], [85, 84], [86, 85], [87, 86], [90, 87], [92, 91], [93, 86], [96, 93], [98, 97], [99, 86], [102, 99], [104, 103], [105, 86], [108, 105], [110, 92], [111, 98], [112, 104], [113, 109], [115, 86], [118, 115], [120, 119], [121, 86], [124, 121], [126, 125], [127, 86], [130, 127], [132, 131], [133, 86], [136, 133], [138, 120], [139, 126], [140, 132], [141, 137], [144, 143], [145, 144], [145, 139], [147, 146], [147, 145], [148, 147], [150, 149], [151, 150], [152, 151], [155, 154], [156, 155], [157, 156], [158, 157], [158, 155], [159, 158], [160, 159], [160, 153], [161, 160], [162, 161], [164, 163], [167, 165], [168, 164], [168, 167], [169, 168], [171, 170], [174, 172], [175, 171], [175, 174], [176, 175], [177, 169], [177, 176], [178, 177], [179, 178], [180, 179], [181, 180], [182, 179], [182, 181], [183, 182], [184, 183], [184, 162], [185, 184], [186, 185], [187, 186], [190, 187], [192, 191], [193, 186], [196, 193], [198, 197], [199, 186], [202, 199], [204, 203], [205, 186], [208, 205], [210, 192], [211, 198], [212, 204], [213, 209], [215, 186], [218, 215], [220, 219], [221, 186], [224, 221], [226, 225], [227, 186], [230, 227], [232, 231], [233, 186], [236, 233], [238, 220], [239, 226], [240, 232], [241, 237], [244, 243], [249, 248], [250, 249], [251, 250], [252, 249], [252, 251], [253, 252], [254, 253], [254, 247], [255, 254], [256, 255], [258, 257], [261, 259], [262, 261], [262, 258], [263, 262], [264, 435], [264, 245], [265, 263], [265, 264], [266, 265], [267, 266], [268, 267], [269, 266], [269, 268], [270, 269], [271, 256], [271, 270], [272, 271], [273, 272], [274, 273], [277, 274], [279, 278], [280, 273], [283, 280], [285, 284], [286, 273], [289, 286], [291, 290], [292, 273], [295, 292], [297, 279], [298, 285], [299, 291], [300, 296], [302, 273], [305, 302], [307, 306], [308, 273], [311, 308], [313, 312], [314, 273], [317, 314], [319, 318], [320, 273], [323, 320], [325, 307], [326, 313], [327, 319], [328, 324], [331, 330], [334, 332], [335, 334], [335, 331], [336, 335], [337, 245], [337, 435], [338, 336], [338, 337], [339, 338], [340, 339], [342, 341], [343, 342], [344, 343], [346, 345], [347, 346], [348, 347], [349, 435], [349, 245], [350, 349], [353, 352], [354, 353], [355, 354], [356, 353], [356, 355], [357, 356], [358, 351], [358, 357], [359, 358], [360, 359], [362, 361], [365, 363], [366, 362], [366, 365], [367, 366], [368, 245], [368, 435], [369, 368], [369, 367], [370, 369], [371, 370], [372, 371], [373, 372], [374, 371], [374, 373], [375, 374], [376, 360], [376, 375], [377, 376], [378, 377], [379, 273], [382, 379], [384, 383], [385, 273], [388, 385], [390, 389], [391, 378], [394, 391], [396, 395], [397, 378], [400, 397], [402, 384], [403, 390], [404, 396], [405, 401], [407, 273], [410, 407], [412, 411], [413, 273], [416, 413], [418, 417], [419, 378], [422, 419], [424, 423], [425, 378], [428, 425], [430, 412], [431, 418], [432, 424], [433, 429], [435, 245], [435, 435], [437, 436], [440, 438], [441, 440], [441, 437], [442, 441], [443, 435], [443, 245], [444, 443], [444, 442], [445, 444], [447, 446], [449, 448], [450, 449], [451, 450], [454, 453], [455, 454], [456, 455], [457, 454], [457, 456], [458, 457], [459, 458], [459, 452], [460, 459], [461, 460], [463, 462], [466, 464], [467, 463], [467, 466], [468, 467], [469, 468], [470, 469], [471, 470], [472, 471], [472, 469], [473, 472], [474, 473], [474, 461], [475, 474], [476, 475], [477, 476], [480, 477], [482, 481], [483, 476], [486, 483], [488, 487], [489, 476], [492, 489], [494, 493], [495, 476], [498, 495], [500, 482], [501, 488], [502, 494], [503, 499], [506, 505], [507, 506], [507, 442], [507, 501], [509, 507], [509, 508], [510, 509], [512, 511], [513, 512], [514, 513], [517, 516], [518, 517], [519, 518], [520, 519], [520, 517], [521, 520], [522, 521], [522, 515], [523, 522], [524, 523], [526, 525], [529, 527], [530, 526], [530, 529], [531, 530], [533, 532], [536, 534], [537, 533], [537, 536], [538, 537], [539, 538], [539, 531], [540, 539], [541, 540], [542, 541], [543, 542], [544, 541], [544, 543], [545, 544], [546, 545], [546, 524], [547, 546], [548, 547], [549, 548], [552, 549], [554, 553], [555, 548], [558, 555], [560, 559], [561, 548], [564, 561], [566, 565], [567, 548], [570, 567], [572, 554], [573, 560], [574, 566], [575, 571], [578, 239], [578, 573], [578, 507], [578, 577], [578, 145], [580, 579], [581, 580], [582, 581], [582, 578], [583, 582], [585, 584], [586, 585], [587, 586], [589, 588], [592, 590], [593, 589], [593, 592], [594, 593], [596, 595], [599, 597], [600, 596], [600, 599], [601, 600], [602, 594], [602, 601], [603, 602], [603, 594], [605, 604], [605, 603], [606, 605], [611, 610], [612, 611], [613, 612], [614, 613], [614, 611], [615, 614], [616, 615], [616, 609], [617, 616], [618, 617], [620, 619], [623, 621], [624, 620], [624, 623], [625, 624], [626, 797], [626, 607], [627, 625], [627, 626], [628, 627], [629, 628], [630, 629], [631, 628], [631, 630], [632, 631], [633, 618], [633, 632], [634, 633], [635, 634], [636, 635], [639, 636], [641, 640], [642, 635], [645, 642], [647, 646], [648, 635], [651, 648], [653, 652], [654, 635], [657, 654], [659, 641], [660, 647], [661, 653], [662, 658], [664, 635], [667, 664], [669, 668], [670, 635], [673, 670], [675, 674], [676, 635], [679, 676], [681, 680], [682, 635], [685, 682], [687, 669], [688, 675], [689, 681], [690, 686], [693, 692], [696, 694], [697, 693], [697, 696], [698, 697], [699, 607], [699, 797], [700, 699], [700, 698], [701, 700], [702, 701], [704, 703], [705, 704], [706, 705], [708, 707], [709, 708], [710, 709], [711, 797], [711, 607], [712, 711], [715, 714], [716, 715], [717, 716], [718, 715], [718, 717], [719, 718], [720, 719], [720, 713], [721, 720], [722, 721], [724, 723], [727, 725], [728, 724], [728, 727], [729, 728], [730, 607], [730, 797], [731, 729], [731, 730], [732, 731], [733, 732], [734, 733], [735, 734], [736, 733], [736, 735], [737, 736], [738, 722], [738, 737], [739, 738], [740, 739], [741, 635], [744, 741], [746, 745], [747, 635], [750, 747], [752, 751], [753, 740], [756, 753], [758, 757], [759, 740], [762, 759], [764, 746], [765, 752], [766, 758], [767, 763], [769, 635], [772, 769], [774, 773], [775, 635], [778, 775], [780, 779], [781, 740], [784, 781], [786, 785], [787, 740], [790, 787], [792, 774], [793, 780], [794, 786], [795, 791], [797, 797], [797, 607], [799, 798], [802, 800], [803, 802], [803, 799], [804, 803], [805, 797], [805, 607], [806, 805], [806, 804], [807, 806], [809, 808], [811, 810], [812, 811], [813, 812], [816, 815], [817, 816], [818, 817], [819, 816], [819, 818], [820, 819], [821, 820], [821, 814], [822, 821], [823, 822], [825, 824], [828, 826], [829, 825], [829, 828], [830, 829], [831, 830], [832, 831], [833, 832], [834, 831], [834, 833], [835, 834], [836, 835], [836, 823], [837, 836], [838, 837], [839, 838], [842, 839], [844, 843], [845, 838], [848, 845], [850, 849], [851, 838], [854, 851], [856, 855], [857, 838], [860, 857], [862, 844], [863, 850], [864, 856], [865, 861], [868, 867], [869, 804], [869, 863], [869, 868], [871, 869], [871, 870], [872, 871], [874, 873], [875, 874], [876, 875], [879, 878], [880, 879], [881, 880], [882, 879], [882, 881], [883, 882], [884, 883], [884, 877], [885, 884], [886, 885], [888, 887], [891, 889], [892, 888], [892, 891], [893, 892], [895, 894], [898, 896], [899, 895], [899, 898], [900, 899], [901, 900], [901, 893], [902, 901], [903, 902], [904, 903], [905, 904], [906, 903], [906, 905], [907, 906], [908, 907], [908, 886], [909, 908], [910, 909], [911, 910], [914, 911], [916, 915], [917, 910], [920, 917], [922, 921], [923, 910], [926, 923], [928, 927], [929, 910], [932, 929], [934, 916], [935, 922], [936, 928], [937, 933], [940, 939], [941, 940], [942, 941], [944, 943], [947, 945], [948, 947], [948, 944], [949, 948], [951, 950], [954, 952], [955, 951], [955, 954], [956, 955], [957, 956], [957, 949], [958, 949], [958, 957], [960, 958], [960, 959], [961, 960], [963, 962], [964, 963], [965, 958], [965, 964], [967, 966], [967, 965], [968, 967], [973, 972], [974, 973], [975, 974], [976, 975], [976, 973], [977, 976], [978, 977], [978, 971], [979, 978], [980, 979], [982, 981], [985, 983], [986, 982], [986, 985], [987, 986], [988, 1159], [988, 969], [989, 987], [989, 988], [990, 989], [991, 990], [992, 991], [993, 990], [993, 992], [994, 993], [995, 980], [995, 994], [996, 995], [997, 996], [998, 997], [1001, 998], [1003, 1002], [1004, 997], [1007, 1004], [1009, 1008], [1010, 997], [1013, 1010], [1015, 1014], [1016, 997], [1019, 1016], [1021, 1003], [1022, 1009], [1023, 1015], [1024, 1020], [1026, 997], [1029, 1026], [1031, 1030], [1032, 997], [1035, 1032], [1037, 1036], [1038, 997], [1041, 1038], [1043, 1042], [1044, 997], [1047, 1044], [1049, 1031], [1050, 1037], [1051, 1043], [1052, 1048], [1055, 1054], [1058, 1056], [1059, 1055], [1059, 1058], [1060, 1059], [1061, 969], [1061, 1159], [1062, 1061], [1062, 1060], [1063, 1062], [1064, 1063], [1066, 1065], [1067, 1066], [1068, 1067], [1070, 1069], [1071, 1070], [1072, 1071], [1073, 969], [1073, 1159], [1074, 1073], [1077, 1076], [1078, 1077], [1079, 1078], [1080, 1077], [1080, 1079], [1081, 1080], [1082, 1081], [1082, 1075], [1083, 1082], [1084, 1083], [1086, 1085], [1089, 1087], [1090, 1086], [1090, 1089], [1091, 1090], [1092, 969], [1092, 1159], [1093, 1092], [1093, 1091], [1094, 1093], [1095, 1094], [1096, 1095], [1097, 1096], [1098, 1095], [1098, 1097], [1099, 1098], [1100, 1099], [1100, 1084], [1101, 1100], [1102, 1101], [1103, 997], [1106, 1103], [1108, 1107], [1109, 997], [1112, 1109], [1114, 1113], [1115, 1102], [1118, 1115], [1120, 1119], [1121, 1102], [1124, 1121], [1126, 1108], [1127, 1114], [1128, 1120], [1129, 1125], [1131, 997], [1134, 1131], [1136, 1135], [1137, 997], [1140, 1137], [1142, 1141], [1143, 1102], [1146, 1143], [1148, 1147], [1149, 1102], [1152, 1149], [1154, 1136], [1155, 1142], [1156, 1148], [1157, 1153], [1159, 1159], [1159, 969], [1161, 1160], [1164, 1162], [1165, 1161], [1165, 1164], [1166, 1165], [1167, 1159], [1167, 969], [1168, 1167], [1168, 1166], [1169, 1168], [1171, 1170], [1173, 1172], [1174, 1173], [1175, 1174], [1178, 1177], [1179, 1178], [1180, 1179], [1181, 1178], [1181, 1180], [1182, 1181], [1183, 1182], [1183, 1176], [1184, 1183], [1185, 1184], [1187, 1186], [1190, 1188], [1191, 1187], [1191, 1190], [1192, 1191], [1193, 1192], [1194, 1193], [1195, 1194], [1196, 1193], [1196, 1195], [1197, 1196], [1198, 1185], [1198, 1197], [1199, 1198], [1200, 1199], [1201, 1200], [1204, 1201], [1206, 1205], [1207, 1200], [1210, 1207], [1212, 1211], [1213, 1200], [1216, 1213], [1218, 1217], [1219, 1200], [1222, 1219], [1224, 1206], [1225, 1212], [1226, 1218], [1227, 1223], [1230, 1229], [1231, 1225], [1231, 1230], [1231, 1166], [1233, 1231], [1233, 1232], [1234, 1233], [1236, 1235], [1237, 1236], [1238, 1237], [1241, 1240], [1242, 1241], [1243, 1242], [1244, 1241], [1244, 1243], [1245, 1244], [1246, 1245], [1246, 1239], [1247, 1246], [1248, 1247], [1250, 1249], [1253, 1251], [1254, 1250], [1254, 1253], [1255, 1254], [1257, 1256], [1260, 1258], [1261, 1257], [1261, 1260], [1262, 1261], [1263, 1255], [1263, 1262], [1264, 1263], [1265, 1264], [1266, 1265], [1267, 1266], [1268, 1267], [1268, 1265], [1269, 1268], [1270, 1269], [1270, 1248], [1271, 1270], [1272, 1271], [1273, 1272], [1276, 1273], [1278, 1277], [1279, 1272], [1282, 1279], [1284, 1283], [1285, 1272], [1288, 1285], [1290, 1289], [1291, 1272], [1294, 1291], [1296, 1278], [1297, 1284], [1298, 1290], [1299, 1295], [1305, 1304], [1306, 1305], [1307, 1306], [1308, 1307], [1308, 1305], [1309, 1308], [1310, 1309], [1310, 1303], [1311, 1310], [1312, 1311], [1314, 1313], [1317, 1315], [1318, 1314], [1318, 1317], [1319, 1318], [1321, 1320], [1321, 1319], [1322, 1321], [1323, 1322], [1324, 1323], [1325, 1322], [1325, 1324], [1326, 1325], [1327, 1312], [1327, 1326], [1328, 1327], [1329, 1328], [1332, 1331], [1333, 1332], [1334, 1333], [1335, 1332], [1335, 1334], [1336, 1335], [1337, 1336], [1337, 1330], [1338, 1337], [1339, 1338], [1341, 1340], [1344, 1342], [1345, 1344], [1345, 1341], [1346, 1345], [1348, 1346], [1348, 1347], [1349, 1348], [1350, 1349], [1351, 1350], [1352, 1349], [1352, 1351], [1353, 1352], [1354, 1339], [1354, 1353], [1355, 1354], [1356, 1355], [1357, 1329], [1360, 1357], [1362, 1361], [1363, 1329], [1366, 1363], [1368, 1367], [1369, 1329], [1372, 1369], [1374, 1373], [1375, 1329], [1378, 1375], [1380, 1379], [1381, 1329], [1384, 1381], [1386, 1385], [1387, 1329], [1390, 1387], [1392, 1391], [1393, 1329], [1396, 1393], [1398, 1397], [1399, 1329], [1402, 1399], [1404, 1403], [1405, 1329], [1408, 1405], [1410, 1409], [1411, 1329], [1414, 1411], [1416, 1415], [1417, 1329], [1420, 1417], [1422, 1421], [1423, 1329], [1426, 1423], [1428, 1427], [1429, 1329], [1432, 1429], [1434, 1433], [1435, 1329], [1438, 1435], [1440, 1439], [1441, 1329], [1444, 1441], [1446, 1445], [1447, 1329], [1450, 1447], [1452, 1362], [1453, 1368], [1454, 1374], [1455, 1380], [1456, 1386], [1457, 1392], [1458, 1398], [1459, 1404], [1460, 1410], [1461, 1416], [1462, 1422], [1463, 1428], [1464, 1434], [1465, 1440], [1466, 1446], [1467, 1451], [1471, 1470], [1474, 1472], [1475, 1474], [1475, 1471], [1476, 1475], [1478, 1477], [1478, 1476], [1480, 1479], [1481, 1480], [1482, 1481], [1483, 1478], [1483, 1482], [1484, 1483], [1486, 1485], [1487, 1486], [1488, 1487], [1490, 1489], [1491, 1490], [1492, 1491], [1494, 1493], [1497, 1495], [1498, 1497], [1498, 1494], [1499, 1498], [1500, 1499], [1500, 1494], [1502, 1501], [1502, 1500], [1503, 1502], [1506, 1505], [1507, 1506], [1508, 1507], [1509, 1506], [1509, 1508], [1510, 1509], [1511, 1510], [1511, 1504], [1512, 1511], [1513, 1512], [1515, 1514], [1518, 1516], [1519, 1515], [1519, 1518], [1520, 1519], [1522, 1520], [1522, 1521], [1523, 1522], [1524, 1523], [1525, 1524], [1526, 1525], [1527, 1524], [1527, 1526], [1528, 1527], [1529, 1513], [1529, 1528], [1530, 1529], [1531, 1530], [1532, 1531], [1535, 1532], [1537, 1536], [1538, 1531], [1541, 1538], [1543, 1542], [1544, 1329], [1547, 1544], [1549, 1548], [1550, 1329], [1553, 1550], [1555, 1554], [1556, 1531], [1559, 1556], [1561, 1560], [1562, 1531], [1565, 1562], [1567, 1566], [1568, 1329], [1571, 1568], [1573, 1572], [1574, 1329], [1577, 1574], [1579, 1578], [1580, 1531], [1583, 1580], [1585, 1584], [1586, 1531], [1589, 1586], [1591, 1590], [1592, 1329], [1595, 1592], [1597, 1596], [1598, 1329], [1601, 1598], [1603, 1602], [1604, 1531], [1607, 1604], [1609, 1608], [1610, 1531], [1613, 1610], [1615, 1614], [1616, 1329], [1619, 1616], [1621, 1620], [1622, 1329], [1625, 1622], [1627, 1537], [1628, 1543], [1629, 1549], [1630, 1555], [1631, 1561], [1632, 1567], [1633, 1573], [1634, 1579], [1635, 1585], [1636, 1591], [1637, 1597], [1638, 1603], [1639, 1609], [1640, 1615], [1641, 1621], [1642, 1626], [1644, 1469], [1646, 1500], [1646, 1645], [1646, 1640], [1646, 1478], [1648, 1647], [1649, 1648], [1650, 1646], [1650, 1649], [1651, 1650], [1654, 1653], [1655, 1654], [1656, 1655], [1657, 1654], [1657, 1656], [1658, 1657], [1659, 1652], [1659, 1658], [1660, 1659], [1661, 1660], [1663, 1662], [1666, 1664], [1667, 1666], [1667, 1663], [1668, 1667], [1670, 1669], [1670, 1668], [1671, 1670], [1672, 1671], [1673, 1672], [1674, 1673], [1674, 1671], [1675, 1674], [1676, 1675], [1676, 1661], [1677, 1676], [1678, 1677], [1681, 1680], [1682, 1681], [1683, 1682], [1684, 1681], [1684, 1683], [1685, 1684], [1686, 1685], [1686, 1679], [1687, 1686], [1688, 1687], [1690, 1689], [1693, 1691], [1694, 1690], [1694, 1693], [1695, 1694], [1697, 1696], [1697, 1695], [1698, 1697], [1699, 1698], [1700, 1699], [1701, 1700], [1701, 1698], [1702, 1701], [1703, 1702], [1703, 1688], [1704, 1703], [1705, 1704], [1707, 1706], [1709, 1708], [1711, 1710], [1712, 1711], [1713, 1712], [1715, 1714], [1716, 1715], [1717, 1716], [1719, 1718], [1721, 1720], [1724, 1722], [1725, 1721], [1725, 1724], [1726, 1725], [1728, 1727], [1731, 1729], [1732, 1731], [1732, 1728], [1733, 1732], [1734, 1733], [1734, 1726], [1735, 1734], [1735, 1726], [1737, 1736], [1737, 1735], [1738, 1737], [1739, 1705], [1742, 1739], [1744, 1743], [1745, 1705], [1748, 1745], [1750, 1749], [1751, 1678], [1754, 1751], [1756, 1755], [1757, 1678], [1760, 1757], [1762, 1744], [1763, 1750], [1764, 1756], [1765, 1761], [1767, 1705], [1770, 1767], [1772, 1771], [1773, 1705], [1776, 1773], [1778, 1777], [1779, 1678], [1782, 1779], [1784, 1783], [1785, 1678], [1788, 1785], [1790, 1772], [1791, 1778], [1792, 1784], [1793, 1789], [1796, 1795], [1797, 1796], [1798, 1797], [1800, 1799], [1801, 1800], [1802, 1801], [1804, 1803], [1807, 1805], [1808, 1804], [1808, 1807], [1809, 1808], [1811, 1810], [1814, 1812], [1815, 1811], [1815, 1814], [1816, 1815], [1817, 1816], [1817, 1809], [1818, 1817], [1818, 1809], [1820, 1818], [1820, 1819], [1821, 1820], [1822, 1705], [1825, 1822], [1827, 1826], [1828, 1705], [1831, 1828], [1833, 1832], [1834, 1705], [1837, 1834], [1839, 1838], [1840, 1705], [1843, 1840], [1845, 1844], [1846, 1705], [1849, 1846], [1851, 1850], [1852, 1705], [1855, 1852], [1857, 1856], [1858, 1705], [1861, 1858], [1863, 1862], [1864, 1705], [1867, 1864], [1869, 1868], [1870, 1678], [1873, 1870], [1875, 1874], [1876, 1678], [1879, 1876], [1881, 1880], [1882, 1678], [1885, 1882], [1887, 1886], [1888, 1678], [1891, 1888], [1893, 1892], [1894, 1678], [1897, 1894], [1899, 1898], [1900, 1678], [1903, 1900], [1905, 1904], [1906, 1678], [1909, 1906], [1911, 1910], [1912, 1678], [1915, 1912], [1917, 1827], [1918, 1833], [1919, 1839], [1920, 1845], [1921, 1851], [1922, 1857], [1923, 1863], [1924, 1869], [1925, 1875], [1926, 1881], [1927, 1887], [1928, 1893], [1929, 1899], [1930, 1905], [1931, 1911], [1932, 1916], [1934, 1469], [1934, 1644], [1936, 1935], [1939, 1937], [1940, 1936], [1940, 1939], [1941, 1940], [1943, 1942], [1943, 1941], [1945, 1944], [1946, 1945], [1947, 1946], [1948, 1943], [1948, 1947], [1949, 1948], [1951, 1950], [1952, 1951], [1953, 1952], [1955, 1954], [1956, 1955], [1957, 1956], [1959, 1958], [1962, 1960], [1963, 1959], [1963, 1962], [1964, 1963], [1965, 1959], [1965, 1964], [1967, 1966], [1967, 1965], [1968, 1967], [1970, 1969], [1973, 1971], [1974, 1970], [1974, 1973], [1975, 1974], [1977, 1976], [1980, 1978], [1981, 1977], [1981, 1980], [1982, 1981], [1983, 1982], [1983, 1975], [1984, 1983], [1984, 1975], [1986, 1984], [1986, 1985], [1987, 1986], [1990, 1989], [1991, 1990], [1992, 1991], [1993, 1990], [1993, 1992], [1994, 1993], [1995, 1988], [1995, 1994], [1996, 1995], [1997, 1996], [1999, 1998], [2002, 2000], [2003, 2002], [2003, 1999], [2004, 2003], [2006, 2004], [2006, 2005], [2007, 2006], [2008, 2007], [2009, 2008], [2010, 2009], [2011, 2008], [2011, 2010], [2012, 2011], [2013, 2012], [2013, 1997], [2014, 2013], [2015, 2014], [2018, 2017], [2019, 2018], [2020, 2019], [2021, 2018], [2021, 2020], [2022, 2021], [2023, 2016], [2023, 2022], [2024, 2023], [2025, 2024], [2027, 2026], [2030, 2028], [2031, 2027], [2031, 2030], [2032, 2031], [2034, 2033], [2034, 2032], [2035, 2034], [2036, 2035], [2037, 2036], [2038, 2037], [2039, 2038], [2039, 2036], [2040, 2039], [2041, 2040], [2041, 2025], [2042, 2041], [2043, 2042], [2044, 2043], [2047, 2044], [2049, 2048], [2050, 2043], [2053, 2050], [2055, 2054], [2056, 1705], [2059, 2056], [2061, 2060], [2062, 1705], [2065, 2062], [2067, 2066], [2068, 2043], [2071, 2068], [2073, 2072], [2074, 2043], [2077, 2074], [2079, 2078], [2080, 1705], [2083, 2080], [2085, 2084], [2086, 1705], [2089, 2086], [2091, 2090], [2092, 2015], [2095, 2092], [2097, 2096], [2098, 2015], [2101, 2098], [2103, 2102], [2104, 1678], [2107, 2104], [2109, 2108], [2110, 1678], [2113, 2110], [2115, 2114], [2116, 2015], [2119, 2116], [2121, 2120], [2122, 2015], [2125, 2122], [2127, 2126], [2128, 1678], [2131, 2128], [2133, 2132], [2134, 1678], [2137, 2134], [2139, 2049], [2140, 2055], [2141, 2061], [2142, 2067], [2143, 2073], [2144, 2079], [2145, 2085], [2146, 2091], [2147, 2097], [2148, 2103], [2149, 2109], [2150, 2115], [2151, 2121], [2152, 2127], [2153, 2133], [2154, 2138], [2156, 1644], [2156, 1469], [2156, 1934]]}
err_t rfcomm_input(void *arg, l2cap_pcb_t *l2cappcb, struct bt_pbuf_t *p, err_t err) { rfcomm_hdr_t rfcommhdr; rfcomm_pcb_t *pcb, *tpcb; rfcomm_pcb_listen_t *lpcb; int16_t len = 0; uint8_t hdrlen; uint8_t fcs; struct bt_pbuf_t *q; err_t ret = BT_ERR_OK; BT_UNUSED_ARG(ret); rfcommhdr.addr = *((uint8_t *)p->payload); rfcommhdr.ctrl = ((uint8_t *)p->payload)[1]; /* Find PCB with matching server channel number and bluetooth address */ pcb = rfcomm_get_active_pcb((rfcommhdr.addr >> 3), &l2cappcb->remote_bdaddr); if(pcb == NULL && rfcommhdr.ctrl != RFCOMM_SABM) { /* Channel does not exist */ if(rfcommhdr.ctrl != RFCOMM_DM_PF && rfcommhdr.ctrl != RFCOMM_DM) { /* Send a DM response */ BT_RFCOMM_TRACE_DEBUG("Send a DM response to CN %d rfcomm.ctrl == 0x%x\n", (rfcommhdr.addr >> 3), rfcommhdr.ctrl); rfcomm_dm(l2cappcb, &rfcommhdr); } /* else silently discard packet */ bt_pbuf_free(p); return BT_ERR_OK; } /* Check if length field is 1 or 2 bytes long and remove EA bit */ if((((uint8_t *)p->payload)[2] & 0x01) == 1) { hdrlen = RFCOMM_HDR_LEN_1; rfcommhdr.len = (((uint8_t *)p->payload)[2] >> 1) & 0x007F; } else { hdrlen = RFCOMM_HDR_LEN_2; rfcommhdr.len = (((uint16_t *)p->payload)[1] >> 1) & 0x7FFF; } if(rfcommhdr.ctrl == RFCOMM_UIH_PF) { if(pcb->cl == 0xF) { rfcommhdr.k = ((uint8_t *)p->payload)[hdrlen++]; } } /* Frame check */ for(q = p; q != NULL; q = q->next) { len += q->len; if(len > (rfcommhdr.len + hdrlen)) { len -= q->len; len = rfcommhdr.len - len; len += hdrlen; break; } } fcs = ((uint8_t *)q->payload)[len]; if(rfcommhdr.ctrl == RFCOMM_UIH) { if(pcb->cn == 0) { if(fcs != pcb->uih0_in_fcs) /* Check against the precalculated fcs */ { //if(fcs8_crc_check(p, RFCOMM_UIHCRC_CHECK_LEN, fcs) != 0) { /* Packet discarded due to failing frame check sequence */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: UIH packet discarded due to failing frame check sequence\n"); bt_pbuf_free(p); return BT_ERR_OK; } } } else if(rfcommhdr.ctrl == RFCOMM_UIH_PF) { if(fcs != pcb->uihpf_in_fcs) /* Check against the precalculated fcs */ { //if(fcs8_crc_check(p, RFCOMM_UIHCRC_CHECK_LEN, fcs) != 0) { /* Packet discarded due to failing frame check sequence */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: UIH_PF packet discarded due to failing frame check sequence RFCS = 0x%x LFCS = 0x%x\n", fcs, pcb->uihpf_in_fcs); bt_pbuf_free(p); return BT_ERR_OK; } } else { if(fcs8_crc_check(p, hdrlen, fcs) != 0) { /* Packet discarded due to failing frame check sequence */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Packet discarded due to failing frame check sequence\n"); bt_pbuf_free(p); return BT_ERR_OK; } } bt_pbuf_header(p, -hdrlen); /* Adjust information pointer */ bt_pbuf_realloc(p, rfcommhdr.len); /* Remove fcs from packet */ switch(rfcommhdr.ctrl) { case RFCOMM_SABM: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_SABM\n"); if(pcb == NULL) { /* Check if the server channel exists */ lpcb = NULL; if(rfcommhdr.addr >> 3 == 0) { /* Only the multiplexer channel can be connected without first configuring it */ for(lpcb = rfcomm_listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { if(lpcb->cn == (rfcommhdr.addr >> 3)) { break; } } } if(lpcb != NULL) { /* Found a listening pcb with a matching server channel number, now initiate a new active PCB with default configuration */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Allocate RFCOMM PCB for CN %d******************************\n", lpcb->cn); if((pcb = rfcomm_new(l2cappcb)) == NULL) { /* No memory to allocate PCB. Refuse connection attempt */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: No memory to allocate PCB. Refuse connection attempt CN %d******************************\n", lpcb->cn); rfcomm_dm(l2cappcb, &rfcommhdr); bt_pbuf_free(p); return BT_ERR_OK; } pcb->cn = lpcb->cn; pcb->callback_arg = lpcb->callback_arg; pcb->accept = lpcb->accept; RFCOMM_REG(&rfcomm_active_pcbs, pcb); } else { /* Channel does not exist or multiplexer is not connected, refuse connection with DM frame */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Channel does not exist, refuse connection with DM frame CN %d\n", (rfcommhdr.addr >> 3)); rfcomm_dm(l2cappcb, &rfcommhdr); bt_pbuf_free(p); break; } } /* Set role to responder */ pcb->rfcommcfg &= ~RFCOMM_CFG_IR; /* Send UA frame as response to SABM frame */ rfcomm_ua(l2cappcb, &rfcommhdr); /* FCS precalculation for UIH frames */ bt_pbuf_header(p, hdrlen); /* Reuse the buffer for the current header */ /* Change header values to refelct an UIH frame sent to the initiator */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0. We are the responder */ *((uint8_t *)p->payload) &= 0xFD; /* Set C/R bit to 0. We are the responder */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); ((uint8_t *)p->payload)[1] = RFCOMM_UIH_PF; pcb->uihpf_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* Change header values to refelct an UIH frame from to the initiator */ //*((uint8_t *)p->payload) |= 0x04; /* Set direction bit to 1. We are the responder */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0. We are the responder */ *((uint8_t *)p->payload) |= 0x02; /* Set C/R bit to 1. We are the responder */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); ((uint8_t *)p->payload)[1] = RFCOMM_UIH_PF; pcb->uihpf_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* UIH frame received on the control channel */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0 */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih0_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* Change header values to reflect an UIH frame sent on the control channel */ *((uint8_t *)p->payload) &= 0xF9; /* Set C/R bit and direction bit to 0 */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih0_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); bt_pbuf_free(p); break; case RFCOMM_UA: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_UA\n"); pcb->to = 0; if(pcb->state == W4_RFCOMM_SABM_RSP) { pcb->state = RFCOMM_CFG; /* FCS precalculation for UIH frames */ bt_pbuf_header(p, hdrlen); /* Reuse the buffer for the current header */ /* Change header values to refelct an UIH frame sent to the responder */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0. We are the initiator */ *((uint8_t *)p->payload) |= 0x02; /* Set C/R bit to 1. We are the intitiator */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); ((uint8_t *)p->payload)[1]= RFCOMM_UIH_PF; pcb->uihpf_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* Change header values to reflect an UIH frame sent to the responder */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0. We are the intitiator */ *((uint8_t *)p->payload) &= 0xFD; /* Set C/R bit to 0. We are the initiator */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); ((uint8_t *)p->payload)[1] = RFCOMM_UIH_PF; pcb->uihpf_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* UIH frame sent on the control channel */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0 */ *((uint8_t *)p->payload) |= 0x02; /* Set C/R bit to 1. We are the intitiator */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih0_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* Change header values to reflect an UIH frame received on the control channel */ *((uint8_t *)p->payload) &= 0xF9; /* Set C/R bit and direction bit to 0 */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih0_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); if(pcb->cn == 0) { for(tpcb = rfcomm_active_pcbs; tpcb != NULL; tpcb = tpcb->next) { if(bd_addr_cmp(&(tpcb->l2cappcb->remote_bdaddr), &(pcb->l2cappcb->remote_bdaddr)) && tpcb->state == W4_RFCOMM_MULTIPLEXER) { rfcomm_pn(tpcb, NULL); /* Send a parameter negotiation command to negotiate the connection settings for a channel that waits for the multiplexer connection to be established */ break; } } } else { rfcomm_msc(pcb, 0, NULL); /* Send a modem status command to set V.24 control signals for the RFCOMM connection */ } } else if (pcb->state == W4_RFCOMM_DISC_RSP) { //RFCOMM_RMV(&rfcomm_active_pcbs, pcb); pcb->state = RFCOMM_CLOSED; RFCOMM_EVENT_DISCONNECTED(pcb,BT_ERR_OK); } else { /* A response without an outstanding request is silently discarded */ } bt_pbuf_free(p); break; case RFCOMM_DM_PF: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_DM_PF\n"); case RFCOMM_DM: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_DM\n"); pcb->to = 0; //RFCOMM_RMV(&rfcomm_active_pcbs, pcb); if(pcb->state == W4_RFCOMM_SABM_RSP) { pcb->state = RFCOMM_CLOSED; RFCOMM_EVENT_CONNECTED(pcb,BT_ERR_CONN); } else { pcb->state = RFCOMM_CLOSED; RFCOMM_EVENT_DISCONNECTED(pcb,BT_ERR_CONN); } bt_pbuf_free(p); break; case RFCOMM_DISC: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_DISC\n"); //RFCOMM_RMV(&rfcomm_active_pcbs, pcb); /* Send UA frame as response to DISC frame */ ret = rfcomm_ua(l2cappcb, &rfcommhdr); pcb->state = RFCOMM_CLOSED; RFCOMM_EVENT_DISCONNECTED(pcb,BT_ERR_OK); bt_pbuf_free(p); break; case RFCOMM_UIH_PF: if((rfcommhdr.addr >> 3) == 0) { /* Process multiplexer command/response */ rfcomm_process_msg(pcb, &rfcommhdr, l2cappcb, p); bt_pbuf_free(p); } else if(pcb->cl == 0xF) { /* Process credit based frame */ if(pcb->rk != 0 && rfcommhdr.len > 0) { --pcb->rk; /* Decrease remote credits */ } BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Received local credits: %d Existing local credits: %d\n", rfcommhdr.k, pcb->k); BT_RFCOMM_TRACE_DEBUG("rfcomm_input: remote credits %d\n", pcb->rk); if(pcb->rk <= RFCOMM_RK_MIN) { rfcomm_issue_credits(pcb,RFCOMM_RK_MAX-pcb->rk); } if((pcb->k + rfcommhdr.k) < 255) { pcb->k += rfcommhdr.k; /* Increase local credits */ #if RFCOMM_FLOW_QUEUEING /* Queued packet present? */ if (pcb->buf != NULL) { /* NULL attached buffer immediately */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: sending queued packet.\n"); /* Send the queued packet */ rfcomm_uih(pcb, pcb->cn, pcb->buf); /* Free the queued packet */ bt_pbuf_free(pcb->buf); pcb->buf = NULL; } #endif /* RFCOMM_FLOW_QUEUEING */ } else { pcb->k = 255; } BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Forward RFCOMM_UIH_PF credit packet to higher layer\n"); RFCOMM_EVENT_RECV(pcb,BT_ERR_OK,p); /* Process information. Application must free bt_pbuf_t */ } else { BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Forward RFCOMM_UIH_PF non credit packet to higher layer\n"); RFCOMM_EVENT_RECV(pcb,BT_ERR_OK,p); /* Process information. Application must free bt_pbuf_t */ } break; case RFCOMM_UIH: if((rfcommhdr.addr >> 3) == 0) { /* Process multiplexer command/response */ rfcomm_process_msg(pcb, &rfcommhdr, l2cappcb, p); bt_pbuf_free(p); } else { if(pcb->rk != 0) { --pcb->rk; /* Decrease remote credits */ } if(pcb->rk <= RFCOMM_RK_MIN) { rfcomm_issue_credits(pcb,RFCOMM_RK_MAX-pcb->rk); } BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Forward RFCOMM_UIH packet to higher layer\n"); BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Rremote credit %d\n",pcb->rk); RFCOMM_EVENT_RECV(pcb,BT_ERR_OK,p); /* Process information. Application must free bt_pbuf_t */ } break; default: /* Unknown or illegal frame type. Throw it away! */ bt_pbuf_free(p); break; } return BT_ERR_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41F700", "function_addr": 4323072, "binary_name": "9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.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_48], rdx"], [6, "mov eax, ecx"], [7, "mov [rbp+var_4C], al"], [8, "mov [rbp+var_A], 0"], [9, "mov [rbp+var_29], 0"], [10, "mov rax, [rbp+var_48]"], [11, "mov rax, [rax+8]"], [12, "movzx eax, byte ptr [rax]"], [13, "mov [rbp+var_2F], al"], [14, "mov rax, [rbp+var_48]"], [15, "mov rax, [rax+8]"], [16, "movzx eax, byte ptr [rax+1]"], [17, "mov [rbp+var_2E], al"], [18, "mov rax, [rbp+var_40]"], [19, "lea rdx, [rax+30h]"], [20, "movzx eax, [rbp+var_2F]"], [21, "shr al, 3"], [22, "movzx eax, al"], [23, "mov rsi, rdx"], [24, "mov edi, eax"], [25, "call sub_41DA49"], [26, "mov [rbp+var_20], rax"], [27, "cmp [rbp+var_20], 0"], [28, "jnz short loc_41F7A8"], [29, "movzx eax, [rbp+var_2E]"], [30, "cmp al, 3Fh "], [31, "jz short loc_41F7A8"], [32, "movzx eax, [rbp+var_2E]"], [33, "cmp al, 1Fh"], [34, "jz short loc_41F792"], [35, "movzx eax, [rbp+var_2E]"], [36, "cmp al, 0Fh"], [37, "jz short loc_41F792"], [38, "lea rdx, [rbp+var_2F]"], [39, "mov rax, [rbp+var_40]"], [40, "mov rsi, rdx"], [41, "mov rdi, rax"], [42, "call sub_41DB25"], [43, "mov rax, [rbp+var_48]"], [44, "mov rdi, rax"], [45, "call sub_412805"], [46, "mov eax, 0"], [47, "jmp locret_4203A4"], [48, "mov rax, [rbp+var_48]"], [49, "mov rax, [rax+8]"], [50, "add rax, 2"], [51, "movzx eax, byte ptr [rax]"], [52, "movzx eax, al"], [53, "and eax, 1"], [54, "test eax, eax"], [55, "jz short loc_41F7E2"], [56, "mov [rbp+var_B], 3"], [57, "mov rax, [rbp+var_48]"], [58, "mov rax, [rax+8]"], [59, "add rax, 2"], [60, "movzx eax, byte ptr [rax]"], [61, "shr al, 1"], [62, "movzx eax, al"], [63, "and eax, 7Fh"], [64, "mov [rbp+var_2D], ax"], [65, "jmp short loc_41F7FC"], [66, "mov [rbp+var_B], 4"], [67, "mov rax, [rbp+var_48]"], [68, "mov rax, [rax+8]"], [69, "add rax, 2"], [70, "movzx eax, word ptr [rax]"], [71, "shr ax, 1"], [72, "mov [rbp+var_2D], ax"], [73, "movzx eax, [rbp+var_2E]"], [74, "cmp al, 0FFh"], [75, "jnz short loc_41F82E"], [76, "mov rax, [rbp+var_20]"], [77, "movzx eax, byte ptr [rax+19h]"], [78, "cmp al, 0Fh"], [79, "jnz short loc_41F82E"], [80, "mov rax, [rbp+var_48]"], [81, "mov rcx, [rax+8]"], [82, "movzx eax, [rbp+var_B]"], [83, "lea edx, [rax+1]"], [84, "mov [rbp+var_B], dl"], [85, "movzx eax, al"], [86, "add rax, rcx"], [87, "movzx eax, byte ptr [rax]"], [88, "mov [rbp+var_2B], al"], [89, "mov rax, [rbp+var_48]"], [90, "mov [rbp+var_8], rax"], [91, "jmp short loc_41F89C"], [92, "mov rax, [rbp+var_8]"], [93, "movzx edx, word ptr [rax+12h]"], [94, "movzx eax, [rbp+var_A]"], [95, "add eax, edx"], [96, "mov [rbp+var_A], ax"], [97, "movsx eax, [rbp+var_A]"], [98, "movzx edx, [rbp+var_2D]"], [99, "movzx ecx, dx"], [100, "movzx edx, [rbp+var_B]"], [101, "add edx, ecx"], [102, "cmp eax, edx"], [103, "jle short loc_41F891"], [104, "movzx edx, [rbp+var_A]"], [105, "mov rax, [rbp+var_8]"], [106, "movzx ecx, word ptr [rax+12h]"], [107, "mov eax, edx"], [108, "sub eax, ecx"], [109, "mov [rbp+var_A], ax"], [110, "movzx eax, [rbp+var_2D]"], [111, "movzx edx, [rbp+var_A]"], [112, "sub eax, edx"], [113, "mov [rbp+var_A], ax"], [114, "movzx edx, [rbp+var_B]"], [115, "movzx eax, [rbp+var_A]"], [116, "add eax, edx"], [117, "mov [rbp+var_A], ax"], [118, "jmp short loc_41F8A3"], [119, "mov rax, [rbp+var_8]"], [120, "mov rax, [rax]"], [121, "mov [rbp+var_8], rax"], [122, "cmp [rbp+var_8], 0"], [123, "jnz short loc_41F838"], [124, "mov rax, [rbp+var_8]"], [125, "mov rdx, [rax+8]"], [126, "movsx rax, [rbp+var_A]"], [127, "add rax, rdx"], [128, "movzx eax, byte ptr [rax]"], [129, "mov [rbp+var_2A], al"], [130, "movzx eax, [rbp+var_2E]"], [131, "cmp al, 0EFh"], [132, "jnz short loc_41F8F0"], [133, "mov rax, [rbp+var_20]"], [134, "movzx eax, byte ptr [rax+18h]"], [135, "test al, al"], [136, "jnz short loc_41F94B"], [137, "mov rax, [rbp+var_20]"], [138, "movzx eax, byte ptr [rax+28h]"], [139, "cmp [rbp+var_2A], al"], [140, "jz short loc_41F94B"], [141, "mov rax, [rbp+var_48]"], [142, "mov rdi, rax"], [143, "call sub_412805"], [144, "mov eax, 0"], [145, "jmp locret_4203A4"], [146, "movzx eax, [rbp+var_2E]"], [147, "cmp al, 0FFh"], [148, "jnz short loc_41F91B"], [149, "mov rax, [rbp+var_20]"], [150, "movzx eax, byte ptr [rax+25h]"], [151, "cmp [rbp+var_2A], al"], [152, "jz short loc_41F94B"], [153, "mov rax, [rbp+var_48]"], [154, "mov rdi, rax"], [155, "call sub_412805"], [156, "mov eax, 0"], [157, "jmp locret_4203A4"], [158, "movzx edx, [rbp+var_2A]"], [159, "movzx ecx, [rbp+var_B]"], [160, "mov rax, [rbp+var_48]"], [161, "mov esi, ecx"], [162, "mov rdi, rax"], [163, "call sub_415227"], [164, "test al, al"], [165, "jz short loc_41F94B"], [166, "mov rax, [rbp+var_48]"], [167, "mov rdi, rax"], [168, "call sub_412805"], [169, "mov eax, 0"], [170, "jmp locret_4203A4"], [171, "movzx eax, [rbp+var_B]"], [172, "neg eax"], [173, "movsx edx, ax"], [174, "mov rax, [rbp+var_48]"], [175, "mov esi, edx"], [176, "mov rdi, rax"], [177, "call sub_4127DA"], [178, "movzx eax, [rbp+var_2D]"], [179, "movzx edx, ax"], [180, "mov rax, [rbp+var_48]"], [181, "mov esi, edx"], [182, "mov rdi, rax"], [183, "call sub_41253F"], [184, "movzx eax, [rbp+var_2E]"], [185, "movzx eax, al"], [186, "cmp eax, 0FFh"], [187, "jz loc_42012D"], [188, "cmp eax, 0FFh"], [189, "jg loc_420392"], [190, "cmp eax, 0EFh"], [191, "jz loc_4202D4"], [192, "cmp eax, 0EFh"], [193, "jg loc_420392"], [194, "cmp eax, 73h "], [195, "jz loc_41FCC3"], [196, "cmp eax, 73h "], [197, "jg loc_420392"], [198, "cmp eax, 53h "], [199, "jz loc_4200BE"], [200, "cmp eax, 53h "], [201, "jg loc_420392"], [202, "cmp eax, 3Fh "], [203, "jz short loc_41F9F3"], [204, "cmp eax, 3Fh "], [205, "jg loc_420392"], [206, "cmp eax, 0Fh"], [207, "jz loc_420013"], [208, "cmp eax, 1Fh"], [209, "jz loc_420013"], [210, "jmp loc_420392"], [211, "cmp [rbp+var_20], 0"], [212, "jnz loc_41FAFF"], [213, "mov [rbp+var_18], 0"], [214, "movzx eax, [rbp+var_2F]"], [215, "shr al, 3"], [216, "test al, al"], [217, "jnz short loc_41FA46"], [218, "mov rax, cs:qword_464F60"], [219, "mov [rbp+var_18], rax"], [220, "jmp short loc_41FA3C"], [221, "mov rax, [rbp+var_18]"], [222, "movzx eax, byte ptr [rax+0Ch]"], [223, "movzx edx, [rbp+var_2F]"], [224, "shr dl, 3"], [225, "cmp al, dl"], [226, "jz short loc_41FA45"], [227, "mov rax, [rbp+var_18]"], [228, "mov rax, [rax]"], [229, "mov [rbp+var_18], rax"], [230, "cmp [rbp+var_18], 0"], [231, "jnz short loc_41FA1E"], [232, "jmp short loc_41FA46"], [233, "nop"], [234, "cmp [rbp+var_18], 0"], [235, "jz loc_41FADB"], [236, "mov rax, [rbp+var_40]"], [237, "mov rdi, rax"], [238, "call sub_41D7C8"], [239, "mov [rbp+var_20], rax"], [240, "cmp [rbp+var_20], 0"], [241, "jnz short loc_41FA91"], [242, "lea rdx, [rbp+var_2F]"], [243, "mov rax, [rbp+var_40]"], [244, "mov rsi, rdx"], [245, "mov rdi, rax"], [246, "call sub_41DB25"], [247, "mov rax, [rbp+var_48]"], [248, "mov rdi, rax"], [249, "call sub_412805"], [250, "mov eax, 0"], [251, "jmp locret_4203A4"], [252, "mov rax, [rbp+var_18]"], [253, "movzx edx, byte ptr [rax+0Ch]"], [254, "mov rax, [rbp+var_20]"], [255, "mov [rax+18h], dl"], [256, "mov rax, [rbp+var_18]"], [257, "mov rdx, [rax+10h]"], [258, "mov rax, [rbp+var_20]"], [259, "mov [rax+38h], rdx"], [260, "mov rax, [rbp+var_18]"], [261, "mov rdx, [rax+18h]"], [262, "mov rax, [rbp+var_20]"], [263, "mov [rax+48h], rdx"], [264, "mov rdx, cs:qword_464F68"], [265, "mov rax, [rbp+var_20]"], [266, "mov [rax], rdx"], [267, "mov rax, [rbp+var_20]"], [268, "mov cs:qword_464F68, rax"], [269, "jmp short loc_41FAFF"], [270, "lea rdx, [rbp+var_2F]"], [271, "mov rax, [rbp+var_40]"], [272, "mov rsi, rdx"], [273, "mov rdi, rax"], [274, "call sub_41DB25"], [275, "mov rax, [rbp+var_48]"], [276, "mov rdi, rax"], [277, "call sub_412805"], [278, "jmp loc_42039F"], [279, "mov rax, [rbp+var_20]"], [280, "movzx eax, byte ptr [rax+20h]"], [281, "and eax, 0FFFFFFFEh"], [282, "mov edx, eax"], [283, "mov rax, [rbp+var_20]"], [284, "mov [rax+20h], dl"], [285, "lea rdx, [rbp+var_2F]"], [286, "mov rax, [rbp+var_40]"], [287, "mov rsi, rdx"], [288, "mov rdi, rax"], [289, "call sub_41DECF"], [290, "movzx edx, [rbp+var_B]"], [291, "mov rax, [rbp+var_48]"], [292, "mov esi, edx"], [293, "mov rdi, rax"], [294, "call sub_4127DA"], [295, "mov rax, [rbp+var_48]"], [296, "mov rax, [rax+8]"], [297, "movzx edx, byte ptr [rax]"], [298, "mov rax, [rbp+var_48]"], [299, "mov rax, [rax+8]"], [300, "and edx, 0FFFFFFFBh"], [301, "mov [rax], dl"], [302, "mov rax, [rbp+var_48]"], [303, "mov rax, [rax+8]"], [304, "movzx edx, byte ptr [rax]"], [305, "mov rax, [rbp+var_48]"], [306, "mov rax, [rax+8]"], [307, "and edx, 0FFFFFFFDh"], [308, "mov [rax], dl"], [309, "mov rax, [rbp+var_48]"], [310, "mov rax, [rax+8]"], [311, "add rax, 1"], [312, "mov byte ptr [rax], 0EFh"], [313, "mov rax, [rbp+var_48]"], [314, "mov esi, 2"], [315, "mov rdi, rax"], [316, "call sub_415286"], [317, "mov rdx, [rbp+var_20]"], [318, "mov [rdx+26h], al"], [319, "mov rax, [rbp+var_48]"], [320, "mov rax, [rax+8]"], [321, "add rax, 1"], [322, "mov byte ptr [rax], 0FFh"], [323, "mov rax, [rbp+var_48]"], [324, "mov esi, 2"], [325, "mov rdi, rax"], [326, "call sub_415286"], [327, "mov rdx, [rbp+var_20]"], [328, "mov [rdx+27h], al"], [329, "mov rax, [rbp+var_48]"], [330, "mov rax, [rax+8]"], [331, "movzx edx, byte ptr [rax]"], [332, "mov rax, [rbp+var_48]"], [333, "mov rax, [rax+8]"], [334, "and edx, 0FFFFFFFBh"], [335, "mov [rax], dl"], [336, "mov rax, [rbp+var_48]"], [337, "mov rax, [rax+8]"], [338, "movzx edx, byte ptr [rax]"], [339, "mov rax, [rbp+var_48]"], [340, "mov rax, [rax+8]"], [341, "or edx, 2"], [342, "mov [rax], dl"], [343, "mov rax, [rbp+var_48]"], [344, "mov rax, [rax+8]"], [345, "add rax, 1"], [346, "mov byte ptr [rax], 0EFh"], [347, "mov rax, [rbp+var_48]"], [348, "mov esi, 2"], [349, "mov rdi, rax"], [350, "call sub_415286"], [351, "mov rdx, [rbp+var_20]"], [352, "mov [rdx+24h], al"], [353, "mov rax, [rbp+var_48]"], [354, "mov rax, [rax+8]"], [355, "add rax, 1"], [356, "mov byte ptr [rax], 0FFh"], [357, "mov rax, [rbp+var_48]"], [358, "mov esi, 2"], [359, "mov rdi, rax"], [360, "call sub_415286"], [361, "mov rdx, [rbp+var_20]"], [362, "mov [rdx+25h], al"], [363, "mov rax, [rbp+var_48]"], [364, "mov rax, [rax+8]"], [365, "movzx edx, byte ptr [rax]"], [366, "mov rax, [rbp+var_48]"], [367, "mov rax, [rax+8]"], [368, "and edx, 0FFFFFFFBh"], [369, "mov [rax], dl"], [370, "mov rax, [rbp+var_48]"], [371, "mov rax, [rax+8]"], [372, "add rax, 1"], [373, "mov byte ptr [rax], 0EFh"], [374, "mov rax, [rbp+var_48]"], [375, "mov esi, 2"], [376, "mov rdi, rax"], [377, "call sub_415286"], [378, "mov rdx, [rbp+var_20]"], [379, "mov [rdx+28h], al"], [380, "mov rax, [rbp+var_48]"], [381, "mov rax, [rax+8]"], [382, "movzx edx, byte ptr [rax]"], [383, "mov rax, [rbp+var_48]"], [384, "mov rax, [rax+8]"], [385, "and edx, 0FFFFFFF9h"], [386, "mov [rax], dl"], [387, "mov rax, [rbp+var_48]"], [388, "mov rax, [rax+8]"], [389, "add rax, 1"], [390, "mov byte ptr [rax], 0EFh"], [391, "mov rax, [rbp+var_48]"], [392, "mov esi, 2"], [393, "mov rdi, rax"], [394, "call sub_415286"], [395, "mov rdx, [rbp+var_20]"], [396, "mov [rdx+29h], al"], [397, "mov rax, [rbp+var_48]"], [398, "mov rdi, rax"], [399, "call sub_412805"], [400, "jmp loc_42039F"], [401, "mov rax, [rbp+var_20]"], [402, "mov word ptr [rax+22h], 0"], [403, "mov rax, [rbp+var_20]"], [404, "mov eax, [rax+8]"], [405, "cmp eax, 3"], [406, "jnz loc_41FFAE"], [407, "mov rax, [rbp+var_20]"], [408, "mov dword ptr [rax+8], 4"], [409, "movzx edx, [rbp+var_B]"], [410, "mov rax, [rbp+var_48]"], [411, "mov esi, edx"], [412, "mov rdi, rax"], [413, "call sub_4127DA"], [414, "mov rax, [rbp+var_48]"], [415, "mov rax, [rax+8]"], [416, "movzx edx, byte ptr [rax]"], [417, "mov rax, [rbp+var_48]"], [418, "mov rax, [rax+8]"], [419, "and edx, 0FFFFFFFBh"], [420, "mov [rax], dl"], [421, "mov rax, [rbp+var_48]"], [422, "mov rax, [rax+8]"], [423, "movzx edx, byte ptr [rax]"], [424, "mov rax, [rbp+var_48]"], [425, "mov rax, [rax+8]"], [426, "or edx, 2"], [427, "mov [rax], dl"], [428, "mov rax, [rbp+var_48]"], [429, "mov rax, [rax+8]"], [430, "add rax, 1"], [431, "mov byte ptr [rax], 0EFh"], [432, "mov rax, [rbp+var_48]"], [433, "mov esi, 2"], [434, "mov rdi, rax"], [435, "call sub_415286"], [436, "mov rdx, [rbp+var_20]"], [437, "mov [rdx+26h], al"], [438, "mov rax, [rbp+var_48]"], [439, "mov rax, [rax+8]"], [440, "add rax, 1"], [441, "mov byte ptr [rax], 0FFh"], [442, "mov rax, [rbp+var_48]"], [443, "mov esi, 2"], [444, "mov rdi, rax"], [445, "call sub_415286"], [446, "mov rdx, [rbp+var_20]"], [447, "mov [rdx+27h], al"], [448, "mov rax, [rbp+var_48]"], [449, "mov rax, [rax+8]"], [450, "movzx edx, byte ptr [rax]"], [451, "mov rax, [rbp+var_48]"], [452, "mov rax, [rax+8]"], [453, "and edx, 0FFFFFFFBh"], [454, "mov [rax], dl"], [455, "mov rax, [rbp+var_48]"], [456, "mov rax, [rax+8]"], [457, "movzx edx, byte ptr [rax]"], [458, "mov rax, [rbp+var_48]"], [459, "mov rax, [rax+8]"], [460, "and edx, 0FFFFFFFDh"], [461, "mov [rax], dl"], [462, "mov rax, [rbp+var_48]"], [463, "mov rax, [rax+8]"], [464, "add rax, 1"], [465, "mov byte ptr [rax], 0EFh"], [466, "mov rax, [rbp+var_48]"], [467, "mov esi, 2"], [468, "mov rdi, rax"], [469, "call sub_415286"], [470, "mov rdx, [rbp+var_20]"], [471, "mov [rdx+24h], al"], [472, "mov rax, [rbp+var_48]"], [473, "mov rax, [rax+8]"], [474, "add rax, 1"], [475, "mov byte ptr [rax], 0FFh"], [476, "mov rax, [rbp+var_48]"], [477, "mov esi, 2"], [478, "mov rdi, rax"], [479, "call sub_415286"], [480, "mov rdx, [rbp+var_20]"], [481, "mov [rdx+25h], al"], [482, "mov rax, [rbp+var_48]"], [483, "mov rax, [rax+8]"], [484, "movzx edx, byte ptr [rax]"], [485, "mov rax, [rbp+var_48]"], [486, "mov rax, [rax+8]"], [487, "and edx, 0FFFFFFFBh"], [488, "mov [rax], dl"], [489, "mov rax, [rbp+var_48]"], [490, "mov rax, [rax+8]"], [491, "movzx edx, byte ptr [rax]"], [492, "mov rax, [rbp+var_48]"], [493, "mov rax, [rax+8]"], [494, "or edx, 2"], [495, "mov [rax], dl"], [496, "mov rax, [rbp+var_48]"], [497, "mov rax, [rax+8]"], [498, "add rax, 1"], [499, "mov byte ptr [rax], 0EFh"], [500, "mov rax, [rbp+var_48]"], [501, "mov esi, 2"], [502, "mov rdi, rax"], [503, "call sub_415286"], [504, "mov rdx, [rbp+var_20]"], [505, "mov [rdx+29h], al"], [506, "mov rax, [rbp+var_48]"], [507, "mov rax, [rax+8]"], [508, "movzx edx, byte ptr [rax]"], [509, "mov rax, [rbp+var_48]"], [510, "mov rax, [rax+8]"], [511, "and edx, 0FFFFFFF9h"], [512, "mov [rax], dl"], [513, "mov rax, [rbp+var_48]"], [514, "mov rax, [rax+8]"], [515, "add rax, 1"], [516, "mov byte ptr [rax], 0EFh"], [517, "mov rax, [rbp+var_48]"], [518, "mov esi, 2"], [519, "mov rdi, rax"], [520, "call sub_415286"], [521, "mov rdx, [rbp+var_20]"], [522, "mov [rdx+28h], al"], [523, "mov rax, [rbp+var_20]"], [524, "movzx eax, byte ptr [rax+18h]"], [525, "test al, al"], [526, "jnz loc_41FF96"], [527, "mov rax, cs:qword_464F68"], [528, "mov [rbp+var_28], rax"], [529, "jmp loc_41FF89"], [530, "mov rax, [rbp+var_28]"], [531, "mov rax, [rax+10h]"], [532, "movzx edx, byte ptr [rax+30h]"], [533, "mov rax, [rbp+var_20]"], [534, "mov rax, [rax+10h]"], [535, "movzx eax, byte ptr [rax+30h]"], [536, "cmp dl, al"], [537, "jnz loc_41FF7E"], [538, "mov rax, [rbp+var_28]"], [539, "mov rax, [rax+10h]"], [540, "movzx edx, byte ptr [rax+31h]"], [541, "mov rax, [rbp+var_20]"], [542, "mov rax, [rax+10h]"], [543, "movzx eax, byte ptr [rax+31h]"], [544, "cmp dl, al"], [545, "jnz loc_41FF7E"], [546, "mov rax, [rbp+var_28]"], [547, "mov rax, [rax+10h]"], [548, "movzx edx, byte ptr [rax+32h]"], [549, "mov rax, [rbp+var_20]"], [550, "mov rax, [rax+10h]"], [551, "movzx eax, byte ptr [rax+32h]"], [552, "cmp dl, al"], [553, "jnz short loc_41FF7E"], [554, "mov rax, [rbp+var_28]"], [555, "mov rax, [rax+10h]"], [556, "movzx edx, byte ptr [rax+33h]"], [557, "mov rax, [rbp+var_20]"], [558, "mov rax, [rax+10h]"], [559, "movzx eax, byte ptr [rax+33h]"], [560, "cmp dl, al"], [561, "jnz short loc_41FF7E"], [562, "mov rax, [rbp+var_28]"], [563, "mov rax, [rax+10h]"], [564, "movzx edx, byte ptr [rax+34h]"], [565, "mov rax, [rbp+var_20]"], [566, "mov rax, [rax+10h]"], [567, "movzx eax, byte ptr [rax+34h]"], [568, "cmp dl, al"], [569, "jnz short loc_41FF7E"], [570, "mov rax, [rbp+var_28]"], [571, "mov rax, [rax+10h]"], [572, "movzx edx, byte ptr [rax+35h]"], [573, "mov rax, [rbp+var_20]"], [574, "mov rax, [rax+10h]"], [575, "movzx eax, byte ptr [rax+35h]"], [576, "cmp dl, al"], [577, "jnz short loc_41FF7E"], [578, "mov rax, [rbp+var_28]"], [579, "mov eax, [rax+8]"], [580, "cmp eax, 2"], [581, "jnz short loc_41FF7E"], [582, "mov rax, [rbp+var_28]"], [583, "mov esi, 0"], [584, "mov rdi, rax"], [585, "call sub_41DF81"], [586, "jmp loc_420002"], [587, "mov rax, [rbp+var_28]"], [588, "mov rax, [rax]"], [589, "mov [rbp+var_28], rax"], [590, "cmp [rbp+var_28], 0"], [591, "jnz loc_41FEAC"], [592, "jmp short loc_420002"], [593, "mov rax, [rbp+var_20]"], [594, "mov edx, 0"], [595, "mov esi, 0"], [596, "mov rdi, rax"], [597, "call sub_41E162"], [598, "jmp short loc_420002"], [599, "mov rax, [rbp+var_20]"], [600, "mov eax, [rax+8]"], [601, "cmp eax, 6"], [602, "jnz short loc_420002"], [603, "mov rax, [rbp+var_20]"], [604, "mov dword ptr [rax+8], 0"], [605, "mov rax, [rbp+var_20]"], [606, "mov rax, [rax+50h]"], [607, "test rax, rax"], [608, "jz short loc_41FFF6"], [609, "mov rax, [rbp+var_20]"], [610, "mov r8, [rax+50h]"], [611, "mov rax, [rbp+var_20]"], [612, "mov rax, [rax+38h]"], [613, "mov rcx, [rbp+var_20]"], [614, "mov edx, 0"], [615, "mov rsi, rcx"], [616, "mov rdi, rax"], [617, "call r8"], [618, "jmp short loc_420002"], [619, "mov rax, [rbp+var_20]"], [620, "mov rdi, rax"], [621, "call sub_41D835"], [622, "mov rax, [rbp+var_48]"], [623, "mov rdi, rax"], [624, "call sub_412805"], [625, "jmp loc_42039F"], [626, "mov rax, [rbp+var_20]"], [627, "mov word ptr [rax+22h], 0"], [628, "mov rax, [rbp+var_20]"], [629, "mov eax, [rax+8]"], [630, "cmp eax, 3"], [631, "jnz short loc_420065"], [632, "mov rax, [rbp+var_20]"], [633, "mov dword ptr [rax+8], 0"], [634, "mov rax, [rbp+var_20]"], [635, "mov rax, [rax+40h]"], [636, "test rax, rax"], [637, "jz short loc_4200AD"], [638, "mov rax, [rbp+var_20]"], [639, "mov r8, [rax+40h]"], [640, "mov rax, [rbp+var_20]"], [641, "mov rax, [rax+38h]"], [642, "mov rcx, [rbp+var_20]"], [643, "mov edx, 0FFFFFFF5h"], [644, "mov rsi, rcx"], [645, "mov rdi, rax"], [646, "call r8"], [647, "jmp short loc_4200AD"], [648, "mov rax, [rbp+var_20]"], [649, "mov dword ptr [rax+8], 0"], [650, "mov rax, [rbp+var_20]"], [651, "mov rax, [rax+50h]"], [652, "test rax, rax"], [653, "jz short loc_4200A1"], [654, "mov rax, [rbp+var_20]"], [655, "mov r8, [rax+50h]"], [656, "mov rax, [rbp+var_20]"], [657, "mov rax, [rax+38h]"], [658, "mov rcx, [rbp+var_20]"], [659, "mov edx, 0FFFFFFF5h"], [660, "mov rsi, rcx"], [661, "mov rdi, rax"], [662, "call r8"], [663, "jmp short loc_4200AD"], [664, "mov rax, [rbp+var_20]"], [665, "mov rdi, rax"], [666, "call sub_41D835"], [667, "mov rax, [rbp+var_48]"], [668, "mov rdi, rax"], [669, "call sub_412805"], [670, "jmp loc_42039F"], [671, "lea rdx, [rbp+var_2F]"], [672, "mov rax, [rbp+var_40]"], [673, "mov rsi, rdx"], [674, "mov rdi, rax"], [675, "call sub_41DECF"], [676, "mov [rbp+var_29], al"], [677, "mov rax, [rbp+var_20]"], [678, "mov dword ptr [rax+8], 0"], [679, "mov rax, [rbp+var_20]"], [680, "mov rax, [rax+50h]"], [681, "test rax, rax"], [682, "jz short loc_420110"], [683, "mov rax, [rbp+var_20]"], [684, "mov r8, [rax+50h]"], [685, "mov rax, [rbp+var_20]"], [686, "mov rax, [rax+38h]"], [687, "mov rcx, [rbp+var_20]"], [688, "mov edx, 0"], [689, "mov rsi, rcx"], [690, "mov rdi, rax"], [691, "call r8"], [692, "jmp short loc_42011C"], [693, "mov rax, [rbp+var_20]"], [694, "mov rdi, rax"], [695, "call sub_41D835"], [696, "mov rax, [rbp+var_48]"], [697, "mov rdi, rax"], [698, "call sub_412805"], [699, "jmp loc_42039F"], [700, "movzx eax, [rbp+var_2F]"], [701, "shr al, 3"], [702, "test al, al"], [703, "jnz short loc_420161"], [704, "mov rcx, [rbp+var_48]"], [705, "mov rdx, [rbp+var_40]"], [706, "lea rsi, [rbp+var_2F]"], [707, "mov rax, [rbp+var_20]"], [708, "mov rdi, rax"], [709, "call sub_41EAE7"], [710, "mov rax, [rbp+var_48]"], [711, "mov rdi, rax"], [712, "call sub_412805"], [713, "jmp loc_42039F"], [714, "mov rax, [rbp+var_20]"], [715, "movzx eax, byte ptr [rax+19h]"], [716, "cmp al, 0Fh"], [717, "jnz loc_42028E"], [718, "mov rax, [rbp+var_20]"], [719, "movzx eax, byte ptr [rax+1Fh]"], [720, "test al, al"], [721, "jz short loc_420198"], [722, "movzx eax, [rbp+var_2D]"], [723, "test ax, ax"], [724, "jz short loc_420198"], [725, "mov rax, [rbp+var_20]"], [726, "movzx eax, byte ptr [rax+1Fh]"], [727, "lea edx, [rax-1]"], [728, "mov rax, [rbp+var_20]"], [729, "mov [rax+1Fh], dl"], [730, "mov rax, [rbp+var_20]"], [731, "movzx eax, byte ptr [rax+1Fh]"], [732, "cmp al, 4"], [733, "ja short loc_4201C4"], [734, "mov rax, [rbp+var_20]"], [735, "movzx edx, byte ptr [rax+1Fh]"], [736, "mov eax, 0Ah"], [737, "sub eax, edx"], [738, "movzx edx, al"], [739, "mov rax, [rbp+var_20]"], [740, "mov esi, edx"], [741, "mov rdi, rax"], [742, "call sub_41E9AA"], [743, "mov rax, [rbp+var_20]"], [744, "movzx eax, byte ptr [rax+1Eh]"], [745, "movzx edx, al"], [746, "movzx eax, [rbp+var_2B]"], [747, "movzx eax, al"], [748, "add eax, edx"], [749, "cmp eax, 0FEh"], [750, "jg short loc_420240"], [751, "mov rax, [rbp+var_20]"], [752, "movzx edx, byte ptr [rax+1Eh]"], [753, "movzx eax, [rbp+var_2B]"], [754, "add edx, eax"], [755, "mov rax, [rbp+var_20]"], [756, "mov [rax+1Eh], dl"], [757, "mov rax, [rbp+var_20]"], [758, "mov rax, [rax+30h]"], [759, "test rax, rax"], [760, "jz short loc_420248"], [761, "mov rax, [rbp+var_20]"], [762, "mov rdx, [rax+30h]"], [763, "mov rax, [rbp+var_20]"], [764, "movzx eax, byte ptr [rax+18h]"], [765, "movzx ecx, al"], [766, "mov rax, [rbp+var_20]"], [767, "mov esi, ecx"], [768, "mov rdi, rax"], [769, "call sub_41E370"], [770, "mov rax, [rbp+var_20]"], [771, "mov rax, [rax+30h]"], [772, "mov rdi, rax"], [773, "call sub_412805"], [774, "mov rax, [rbp+var_20]"], [775, "mov qword ptr [rax+30h], 0"], [776, "jmp short loc_420248"], [777, "mov rax, [rbp+var_20]"], [778, "mov byte ptr [rax+1Eh], 0FFh"], [779, "mov rax, [rbp+var_20]"], [780, "mov rax, [rax+78h]"], [781, "test rax, rax"], [782, "jz short loc_42027D"], [783, "mov rax, [rbp+var_20]"], [784, "mov r8, [rax+78h]"], [785, "mov rax, [rbp+var_20]"], [786, "mov rax, [rax+38h]"], [787, "mov rdx, [rbp+var_48]"], [788, "mov rsi, [rbp+var_20]"], [789, "mov ecx, 0"], [790, "mov rdi, rax"], [791, "call r8"], [792, "jmp loc_42039F"], [793, "mov rax, [rbp+var_48]"], [794, "mov rdi, rax"], [795, "call sub_412805"], [796, "jmp loc_42039F"], [797, "mov rax, [rbp+var_20]"], [798, "mov rax, [rax+78h]"], [799, "test rax, rax"], [800, "jz short loc_4202C3"], [801, "mov rax, [rbp+var_20]"], [802, "mov r8, [rax+78h]"], [803, "mov rax, [rbp+var_20]"], [804, "mov rax, [rax+38h]"], [805, "mov rdx, [rbp+var_48]"], [806, "mov rsi, [rbp+var_20]"], [807, "mov ecx, 0"], [808, "mov rdi, rax"], [809, "call r8"], [810, "jmp loc_42039F"], [811, "mov rax, [rbp+var_48]"], [812, "mov rdi, rax"], [813, "call sub_412805"], [814, "jmp loc_42039F"], [815, "movzx eax, [rbp+var_2F]"], [816, "shr al, 3"], [817, "test al, al"], [818, "jnz short loc_420308"], [819, "mov rcx, [rbp+var_48]"], [820, "mov rdx, [rbp+var_40]"], [821, "lea rsi, [rbp+var_2F]"], [822, "mov rax, [rbp+var_20]"], [823, "mov rdi, rax"], [824, "call sub_41EAE7"], [825, "mov rax, [rbp+var_48]"], [826, "mov rdi, rax"], [827, "call sub_412805"], [828, "jmp loc_42039F"], [829, "mov rax, [rbp+var_20]"], [830, "movzx eax, byte ptr [rax+1Fh]"], [831, "test al, al"], [832, "jz short loc_420326"], [833, "mov rax, [rbp+var_20]"], [834, "movzx eax, byte ptr [rax+1Fh]"], [835, "lea edx, [rax-1]"], [836, "mov rax, [rbp+var_20]"], [837, "mov [rax+1Fh], dl"], [838, "mov rax, [rbp+var_20]"], [839, "movzx eax, byte ptr [rax+1Fh]"], [840, "cmp al, 4"], [841, "ja short loc_420352"], [842, "mov rax, [rbp+var_20]"], [843, "movzx edx, byte ptr [rax+1Fh]"], [844, "mov eax, 0Ah"], [845, "sub eax, edx"], [846, "movzx edx, al"], [847, "mov rax, [rbp+var_20]"], [848, "mov esi, edx"], [849, "mov rdi, rax"], [850, "call sub_41E9AA"], [851, "mov rax, [rbp+var_20]"], [852, "mov rax, [rax+78h]"], [853, "test rax, rax"], [854, "jz short loc_420384"], [855, "mov rax, [rbp+var_20]"], [856, "mov r8, [rax+78h]"], [857, "mov rax, [rbp+var_20]"], [858, "mov rax, [rax+38h]"], [859, "mov rdx, [rbp+var_48]"], [860, "mov rsi, [rbp+var_20]"], [861, "mov ecx, 0"], [862, "mov rdi, rax"], [863, "call r8"], [864, "jmp short loc_42039F"], [865, "mov rax, [rbp+var_48]"], [866, "mov rdi, rax"], [867, "call sub_412805"], [868, "jmp short loc_42039F"], [869, "mov rax, [rbp+var_48]"], [870, "mov rdi, rax"], [871, "call sub_412805"], [872, "nop"], [873, "mov eax, 0"], [874, "leave"], [875, "retn"]], "data_dep": [[7, 6], [10, 5], [11, 10], [12, 11], [13, 12], [14, 5], [15, 14], [16, 15], [17, 16], [18, 4], [19, 18], [20, 13], [21, 20], [22, 21], [23, 19], [24, 22], [26, 25], [27, 26], [28, 27], [29, 17], [30, 29], [31, 30], [32, 17], [33, 32], [34, 33], [35, 17], [36, 35], [37, 36], [38, 13], [38, 19], [39, 4], [40, 38], [41, 39], [43, 5], [44, 43], [48, 5], [49, 48], [50, 49], [51, 50], [52, 51], [53, 52], [54, 53], [55, 54], [57, 5], [58, 57], [59, 58], [60, 59], [61, 60], [62, 61], [63, 62], [64, 63], [67, 5], [68, 67], [69, 68], [70, 69], [71, 70], [72, 71], [73, 17], [74, 73], [75, 74], [76, 26], [77, 76], [78, 77], [79, 78], [80, 5], [81, 80], [82, 66], [82, 56], [83, 19], [83, 82], [84, 83], [85, 82], [86, 81], [86, 85], [87, 86], [88, 87], [89, 5], [90, 89], [92, 90], [92, 121], [93, 92], [94, 8], [94, 96], [95, 94], [95, 93], [96, 95], [97, 96], [98, 72], [98, 64], [99, 98], [100, 84], [100, 66], [100, 56], [101, 99], [101, 100], [102, 97], [102, 101], [103, 102], [104, 96], [105, 121], [105, 90], [106, 105], [107, 104], [108, 106], [108, 107], [109, 108], [110, 64], [110, 72], [111, 109], [112, 111], [112, 110], [113, 112], [114, 84], [114, 66], [114, 56], [115, 113], [116, 114], [116, 115], [117, 116], [119, 121], [119, 90], [120, 119], [121, 120], [122, 121], [122, 90], [123, 122], [124, 121], [124, 90], [125, 124], [126, 117], [126, 8], [126, 96], [127, 126], [127, 125], [128, 127], [129, 128], [130, 17], [131, 130], [132, 131], [133, 26], [134, 133], [135, 134], [136, 135], [137, 26], [138, 137], [139, 138], [139, 129], [140, 139], [141, 5], [142, 141], [146, 17], [147, 146], [148, 147], [149, 26], [150, 149], [151, 150], [151, 129], [152, 151], [153, 5], [154, 153], [158, 129], [159, 66], [159, 56], [159, 84], [160, 5], [161, 159], [162, 160], [164, 163], [165, 164], [166, 5], [167, 166], [171, 66], [171, 56], [171, 84], [172, 171], [173, 172], [174, 5], [175, 173], [176, 174], [178, 72], [178, 64], [179, 178], [180, 5], [181, 179], [182, 180], [184, 17], [185, 184], [186, 185], [187, 186], [188, 185], [189, 188], [190, 185], [191, 190], [192, 185], [193, 192], [194, 185], [195, 194], [196, 185], [197, 196], [198, 185], [199, 198], [200, 185], [201, 200], [202, 185], [203, 202], [204, 185], [205, 204], [206, 185], [207, 206], [208, 185], [209, 208], [211, 26], [212, 211], [214, 13], [215, 214], [216, 215], [217, 216], [219, 218], [221, 229], [221, 219], [222, 221], [223, 13], [224, 223], [225, 222], [225, 224], [226, 225], [227, 229], [227, 219], [228, 227], [229, 228], [230, 229], [230, 219], [231, 230], [234, 229], [234, 219], [234, 213], [235, 234], [236, 4], [237, 236], [239, 238], [240, 239], [241, 240], [242, 13], [242, 179], [242, 224], [243, 4], [244, 242], [245, 243], [247, 5], [248, 247], [252, 229], [252, 219], [252, 213], [253, 252], [254, 239], [255, 253], [255, 254], [256, 219], [256, 213], [256, 229], [257, 255], [257, 256], [258, 239], [259, 258], [259, 257], [260, 213], [260, 229], [260, 219], [261, 260], [261, 259], [261, 255], [262, 239], [263, 261], [263, 262], [265, 239], [266, 265], [266, 264], [267, 239], [268, 267], [270, 13], [270, 179], [270, 224], [271, 4], [272, 270], [273, 271], [275, 5], [276, 275], [279, 239], [279, 26], [280, 301], [280, 255], [280, 379], [280, 356], [280, 369], [280, 346], [280, 335], [280, 390], [280, 259], [280, 284], [280, 362], [280, 263], [280, 328], [280, 318], [280, 308], [280, 396], [280, 373], [280, 386], [280, 352], [280, 342], [280, 322], [280, 312], [280, 266], [280, 279], [281, 280], [282, 281], [283, 26], [283, 239], [284, 283], [284, 282], [285, 282], [285, 13], [286, 4], [287, 285], [288, 286], [290, 66], [290, 56], [290, 84], [291, 5], [292, 290], [293, 291], [295, 5], [296, 284], [296, 295], [297, 284], [297, 296], [297, 266], [298, 5], [299, 284], [299, 298], [300, 297], [301, 300], [301, 299], [302, 5], [303, 301], [303, 302], [304, 301], [304, 303], [305, 5], [306, 301], [306, 305], [307, 304], [308, 307], [308, 306], [309, 5], [310, 309], [310, 308], [311, 310], [312, 311], [313, 5], [315, 313], [317, 26], [317, 239], [318, 317], [318, 316], [319, 5], [320, 319], [320, 318], [321, 320], [322, 321], [323, 5], [325, 323], [327, 26], [327, 239], [328, 326], [328, 327], [329, 5], [330, 328], [330, 329], [331, 328], [331, 330], [331, 322], [332, 5], [333, 328], [333, 332], [334, 331], [335, 334], [335, 333], [336, 5], [337, 335], [337, 336], [338, 335], [338, 337], [339, 5], [340, 335], [340, 339], [341, 338], [342, 341], [342, 340], [343, 5], [344, 343], [344, 342], [345, 344], [346, 345], [347, 5], [349, 347], [351, 239], [351, 26], [352, 351], [352, 350], [353, 5], [354, 352], [354, 353], [355, 354], [356, 355], [357, 5], [359, 357], [361, 26], [361, 239], [362, 361], [362, 360], [363, 5], [364, 362], [364, 363], [365, 362], [365, 364], [365, 356], [366, 5], [367, 362], [367, 366], [368, 365], [369, 368], [369, 367], [370, 5], [371, 369], [371, 370], [372, 371], [373, 372], [374, 5], [376, 374], [378, 26], [378, 239], [379, 377], [379, 378], [380, 5], [381, 379], [381, 380], [382, 379], [382, 381], [382, 373], [383, 5], [384, 383], [384, 379], [385, 382], [386, 385], [386, 384], [387, 5], [388, 387], [388, 386], [389, 388], [390, 389], [391, 5], [393, 391], [395, 26], [395, 239], [396, 394], [396, 395], [397, 5], [398, 397], [401, 26], [402, 401], [403, 26], [404, 402], [404, 403], [405, 404], [406, 405], [407, 26], [408, 407], [409, 84], [409, 66], [409, 56], [410, 5], [411, 409], [412, 410], [414, 5], [415, 414], [415, 408], [416, 415], [416, 408], [417, 5], [418, 408], [418, 417], [419, 416], [420, 418], [420, 419], [421, 5], [422, 408], [422, 420], [422, 421], [423, 422], [423, 420], [424, 5], [425, 408], [425, 420], [425, 424], [426, 423], [427, 425], [427, 426], [428, 5], [429, 427], [429, 428], [429, 408], [430, 429], [431, 430], [432, 5], [434, 432], [436, 26], [437, 436], [437, 435], [438, 5], [439, 438], [439, 408], [439, 437], [440, 439], [441, 440], [442, 5], [444, 442], [446, 26], [447, 446], [447, 445], [448, 5], [449, 408], [449, 448], [449, 447], [450, 447], [450, 449], [450, 441], [451, 5], [452, 451], [452, 408], [452, 447], [453, 450], [454, 453], [454, 452], [455, 5], [456, 408], [456, 455], [456, 454], [457, 454], [457, 456], [458, 5], [459, 458], [459, 408], [459, 454], [460, 457], [461, 460], [461, 459], [462, 5], [463, 462], [463, 461], [463, 408], [464, 463], [465, 464], [466, 5], [468, 466], [470, 26], [471, 470], [471, 469], [472, 5], [473, 472], [473, 471], [473, 408], [474, 473], [475, 474], [476, 5], [478, 476], [480, 26], [481, 479], [481, 480], [482, 5], [483, 482], [483, 408], [483, 481], [484, 481], [484, 483], [484, 475], [485, 5], [486, 408], [486, 485], [486, 481], [487, 484], [488, 486], [488, 487], [489, 5], [490, 488], [490, 489], [490, 408], [491, 488], [491, 490], [492, 5], [493, 492], [493, 408], [493, 488], [494, 491], [495, 493], [495, 494], [496, 5], [497, 408], [497, 496], [497, 495], [498, 497], [499, 498], [500, 5], [502, 500], [504, 26], [505, 504], [505, 503], [506, 5], [507, 408], [507, 506], [507, 505], [508, 507], [508, 499], [508, 505], [509, 5], [510, 505], [510, 408], [510, 509], [511, 508], [512, 510], [512, 511], [513, 5], [514, 513], [514, 408], [514, 512], [515, 514], [516, 515], [517, 5], [519, 517], [521, 26], [522, 521], [522, 520], [523, 26], [524, 523], [524, 522], [525, 524], [526, 525], [528, 527], [530, 528], [530, 589], [531, 481], [531, 471], [531, 402], [531, 516], [531, 447], [531, 437], [531, 427], [531, 505], [531, 495], [531, 461], [531, 441], [531, 431], [531, 408], [531, 420], [531, 475], [531, 488], [531, 465], [531, 530], [531, 454], [531, 522], [531, 499], [531, 512], [532, 516], [532, 447], [532, 437], [532, 427], [532, 505], [532, 495], [532, 461], [532, 441], [532, 431], [532, 408], [532, 420], [532, 531], [532, 475], [532, 488], [532, 465], [532, 454], [532, 522], [532, 499], [532, 512], [532, 481], [532, 471], [532, 402], [533, 26], [534, 481], [534, 471], [534, 516], [534, 437], [534, 427], [534, 505], [534, 495], [534, 461], [534, 441], [534, 431], [534, 408], [534, 420], [534, 475], [534, 488], [534, 465], [534, 533], [534, 402], [534, 454], [534, 447], [534, 522], [534, 499], [534, 512], [535, 471], [535, 461], [535, 441], [535, 431], [535, 516], [535, 408], [535, 420], [535, 475], [535, 488], [535, 465], [535, 454], [535, 522], [535, 499], [535, 512], [535, 534], [535, 481], [535, 402], [535, 447], [535, 437], [535, 427], [535, 505], [535, 495], [536, 532], [536, 535], [537, 536], [538, 589], [538, 528], [539, 454], [539, 522], [539, 499], [539, 512], [539, 481], [539, 402], [539, 447], [539, 437], [539, 427], [539, 538], [539, 505], [539, 495], [539, 471], [539, 461], [539, 441], [539, 431], [539, 516], [539, 408], [539, 420], [539, 475], [539, 488], [539, 465], [540, 461], [540, 441], [540, 454], [540, 539], [540, 431], [540, 408], [540, 499], [540, 420], [540, 475], [540, 488], [540, 465], [540, 402], [540, 447], [540, 522], [540, 512], [540, 481], [540, 471], [540, 516], [540, 437], [540, 427], [540, 505], [540, 495], [541, 26], [542, 454], [542, 522], [542, 499], [542, 512], [542, 481], [542, 471], [542, 402], [542, 516], [542, 447], [542, 437], [542, 427], [542, 505], [542, 495], [542, 461], [542, 441], [542, 431], [542, 408], [542, 420], [542, 541], [542, 475], [542, 488], [542, 465], [543, 475], [543, 488], [543, 465], [543, 454], [543, 522], [543, 499], [543, 512], [543, 481], [543, 471], [543, 402], [543, 516], [543, 447], [543, 437], [543, 427], [543, 505], [543, 495], [543, 461], [543, 441], [543, 431], [543, 408], [543, 542], [543, 420], [544, 540], [544, 543], [545, 544], [546, 589], [546, 528], [547, 481], [547, 471], [547, 546], [547, 402], [547, 516], [547, 447], [547, 437], [547, 427], [547, 505], [547, 495], [547, 461], [547, 441], [547, 431], [547, 408], [547, 420], [547, 475], [547, 488], [547, 465], [547, 454], [547, 522], [547, 499], [547, 512], [548, 488], [548, 465], [548, 402], [548, 447], [548, 437], [548, 522], [548, 512], [548, 547], [548, 481], [548, 471], [548, 461], [548, 516], [548, 427], [548, 505], [548, 495], [548, 475], [548, 441], [548, 454], [548, 431], [548, 408], [548, 499], [548, 420], [549, 26], [550, 481], [550, 471], [550, 549], [550, 516], [550, 437], [550, 427], [550, 505], [550, 495], [550, 461], [550, 441], [550, 454], [550, 431], [550, 408], [550, 499], [550, 420], [550, 475], [550, 488], [550, 465], [550, 402], [550, 447], [550, 522], [550, 512], [551, 461], [551, 441], [551, 431], [551, 408], [551, 420], [551, 475], [551, 488], [551, 465], [551, 454], [551, 522], [551, 499], [551, 512], [551, 481], [551, 471], [551, 402], [551, 516], [551, 447], [551, 437], [551, 427], [551, 505], [551, 495], [551, 550], [552, 548], [552, 551], [553, 552], [554, 589], [554, 528], [555, 505], [555, 495], [555, 461], [555, 441], [555, 454], [555, 431], [555, 408], [555, 499], [555, 420], [555, 554], [555, 475], [555, 488], [555, 465], [555, 402], [555, 447], [555, 522], [555, 512], [555, 481], [555, 471], [555, 516], [555, 437], [555, 427], [556, 488], [556, 465], [556, 454], [556, 555], [556, 522], [556, 499], [556, 512], [556, 481], [556, 471], [556, 402], [556, 516], [556, 447], [556, 437], [556, 427], [556, 505], [556, 495], [556, 461], [556, 441], [556, 431], [556, 408], [556, 420], [556, 475], [557, 26], [558, 454], [558, 522], [558, 499], [558, 512], [558, 557], [558, 481], [558, 471], [558, 402], [558, 516], [558, 447], [558, 437], [558, 427], [558, 505], [558, 495], [558, 461], [558, 441], [558, 431], [558, 408], [558, 420], [558, 475], [558, 488], [558, 465], [559, 475], [559, 488], [559, 465], [559, 402], [559, 454], [559, 447], [559, 522], [559, 499], [559, 512], [559, 481], [559, 471], [559, 516], [559, 437], [559, 558], [559, 427], [559, 505], [559, 495], [559, 461], [559, 441], [559, 431], [559, 408], [559, 420], [560, 556], [560, 559], [561, 560], [562, 589], [562, 528], [563, 481], [563, 471], [563, 402], [563, 516], [563, 447], [563, 437], [563, 427], [563, 505], [563, 495], [563, 461], [563, 441], [563, 562], [563, 431], [563, 408], [563, 420], [563, 475], [563, 488], [563, 465], [563, 454], [563, 522], [563, 499], [563, 512], [564, 481], [564, 471], [564, 516], [564, 437], [564, 427], [564, 505], [564, 495], [564, 461], [564, 441], [564, 431], [564, 408], [564, 420], [564, 475], [564, 488], [564, 465], [564, 563], [564, 402], [564, 454], [564, 447], [564, 522], [564, 499], [564, 512], [565, 26], [566, 481], [566, 471], [566, 461], [566, 516], [566, 437], [566, 427], [566, 505], [566, 495], [566, 441], [566, 454], [566, 431], [566, 408], [566, 499], [566, 420], [566, 475], [566, 488], [566, 465], [566, 402], [566, 565], [566, 447], [566, 522], [566, 512], [567, 481], [567, 471], [567, 461], [567, 516], [567, 437], [567, 427], [567, 505], [567, 495], [567, 441], [567, 454], [567, 431], [567, 408], [567, 499], [567, 420], [567, 475], [567, 488], [567, 465], [567, 566], [567, 402], [567, 447], [567, 522], [567, 512], [568, 564], [568, 567], [569, 568], [570, 589], [570, 528], [571, 495], [571, 441], [571, 454], [571, 431], [571, 408], [571, 499], [571, 420], [571, 475], [571, 488], [571, 465], [571, 402], [571, 447], [571, 522], [571, 512], [571, 570], [571, 481], [571, 471], [571, 461], [571, 516], [571, 437], [571, 427], [571, 505], [572, 437], [572, 571], [572, 427], [572, 505], [572, 495], [572, 441], [572, 454], [572, 431], [572, 408], [572, 499], [572, 420], [572, 475], [572, 488], [572, 465], [572, 402], [572, 447], [572, 522], [572, 512], [572, 481], [572, 471], [572, 461], [572, 516], [573, 26], [574, 505], [574, 495], [574, 475], [574, 573], [574, 441], [574, 454], [574, 431], [574, 408], [574, 499], [574, 420], [574, 488], [574, 465], [574, 402], [574, 447], [574, 437], [574, 522], [574, 512], [574, 481], [574, 471], [574, 461], [574, 516], [574, 427], [575, 465], [575, 402], [575, 447], [575, 522], [575, 512], [575, 481], [575, 471], [575, 516], [575, 437], [575, 427], [575, 505], [575, 495], [575, 461], [575, 441], [575, 454], [575, 431], [575, 408], [575, 499], [575, 574], [575, 420], [575, 475], [575, 488], [576, 572], [576, 575], [577, 576], [578, 589], [578, 528], [579, 499], [579, 420], [579, 488], [579, 465], [579, 402], [579, 578], [579, 447], [579, 437], [579, 522], [579, 512], [579, 481], [579, 471], [579, 461], [579, 516], [579, 427], [579, 505], [579, 495], [579, 475], [579, 441], [579, 454], [579, 431], [579, 408], [580, 579], [581, 580], [582, 528], [582, 589], [584, 582], [587, 589], [587, 528], [588, 505], [588, 495], [588, 475], [588, 441], [588, 454], [588, 431], [588, 408], [588, 499], [588, 587], [588, 420], [588, 488], [588, 465], [588, 402], [588, 447], [588, 522], [588, 512], [588, 481], [588, 471], [588, 461], [588, 516], [588, 437], [588, 427], [589, 588], [590, 589], [590, 528], [591, 590], [593, 26], [596, 593], [599, 26], [600, 599], [600, 402], [601, 600], [602, 601], [603, 26], [604, 603], [605, 26], [606, 604], [606, 605], [607, 606], [608, 607], [609, 26], [610, 604], [610, 609], [610, 402], [611, 26], [612, 402], [612, 611], [612, 604], [613, 26], [615, 613], [616, 612], [617, 610], [619, 26], [620, 619], [622, 5], [623, 622], [626, 26], [627, 626], [628, 26], [629, 627], [629, 628], [630, 629], [631, 630], [632, 26], [633, 632], [634, 26], [635, 634], [635, 633], [636, 635], [637, 636], [638, 26], [639, 633], [639, 627], [639, 638], [640, 26], [641, 633], [641, 627], [641, 640], [642, 26], [644, 642], [645, 641], [646, 639], [648, 26], [649, 648], [650, 26], [651, 649], [651, 650], [652, 651], [653, 652], [654, 26], [655, 627], [655, 649], [655, 654], [656, 26], [657, 627], [657, 649], [657, 656], [658, 26], [660, 658], [661, 657], [662, 655], [664, 26], [665, 664], [667, 5], [668, 667], [671, 13], [671, 179], [672, 4], [673, 671], [674, 672], [676, 675], [677, 26], [678, 677], [679, 26], [680, 679], [680, 678], [681, 680], [682, 681], [683, 26], [684, 678], [684, 683], [685, 26], [686, 685], [686, 678], [687, 26], [689, 687], [690, 686], [691, 684], [693, 26], [694, 693], [696, 5], [697, 696], [700, 13], [701, 700], [702, 701], [703, 702], [704, 5], [705, 4], [706, 13], [706, 181], [707, 26], [708, 707], [710, 5], [711, 710], [714, 26], [715, 714], [716, 715], [717, 716], [718, 26], [719, 718], [720, 719], [721, 720], [722, 72], [722, 64], [723, 722], [724, 723], [725, 26], [726, 725], [727, 726], [727, 179], [728, 26], [729, 728], [729, 727], [730, 26], [731, 729], [731, 730], [732, 731], [733, 732], [734, 26], [735, 729], [735, 734], [737, 736], [737, 735], [738, 737], [739, 26], [740, 738], [741, 739], [743, 26], [744, 729], [744, 743], [745, 744], [746, 88], [747, 746], [748, 745], [748, 747], [749, 748], [750, 749], [751, 26], [752, 751], [752, 729], [752, 756], [753, 88], [754, 753], [754, 752], [755, 26], [756, 754], [756, 755], [757, 26], [758, 756], [758, 757], [759, 758], [760, 759], [761, 26], [762, 761], [762, 775], [762, 729], [762, 756], [763, 26], [764, 763], [764, 775], [764, 729], [764, 756], [765, 764], [766, 26], [767, 765], [768, 766], [770, 26], [771, 770], [771, 729], [771, 775], [771, 756], [772, 771], [774, 26], [775, 774], [777, 26], [778, 777], [779, 26], [780, 779], [780, 756], [780, 778], [780, 775], [780, 729], [781, 780], [782, 781], [783, 26], [784, 783], [784, 775], [784, 729], [784, 756], [784, 778], [785, 26], [786, 729], [786, 785], [786, 775], [786, 756], [786, 778], [787, 5], [788, 26], [790, 786], [791, 784], [793, 5], [794, 793], [797, 26], [798, 797], [799, 798], [800, 799], [801, 26], [802, 801], [803, 26], [804, 803], [805, 5], [806, 26], [808, 804], [809, 802], [811, 5], [812, 811], [815, 13], [816, 815], [817, 816], [818, 817], [819, 5], [820, 4], [821, 13], [821, 181], [822, 26], [823, 822], [825, 5], [826, 825], [829, 26], [830, 829], [831, 830], [832, 831], [833, 26], [834, 833], [835, 179], [835, 834], [836, 26], [837, 836], [837, 835], [838, 26], [839, 838], [839, 837], [840, 839], [841, 840], [842, 26], [843, 842], [843, 837], [845, 844], [845, 843], [846, 845], [847, 26], [848, 846], [849, 847], [851, 26], [852, 851], [852, 837], [853, 852], [854, 853], [855, 26], [856, 837], [856, 855], [857, 26], [858, 857], [858, 837], [859, 5], [860, 26], [862, 858], [863, 856], [865, 5], [866, 865], [869, 5], [870, 869], [875, 873], [875, 156], [875, 169], [875, 250], [875, 46], [875, 144]]}
void nmi6502(void) { push16(pc); push8(status); status |= FLAG_INTERRUPT; pc = (uint16_t) read6502(0xFFFA) | ((uint16_t) read6502(0xFFFB) << 8); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40402A", "function_addr": 4210730, "binary_name": "ad53b6f5cb35c1dcf9535ae307e35d6a13e2e7044d1355942584a180e2db9333.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 8"], [4, "movzx eax, cs:word_48A610"], [5, "movzx eax, ax"], [6, "mov edi, eax"], [7, "call sub_401E23"], [8, "movzx eax, cs:byte_48A616"], [9, "movzx eax, al"], [10, "mov edi, eax"], [11, "call sub_401E90"], [12, "movzx eax, cs:byte_48A616"], [13, "or eax, 4"], [14, "mov cs:byte_48A616, al"], [15, "mov edi, 0FFFAh"], [16, "call sub_401905"], [17, "movzx ebx, al"], [18, "mov edi, 0FFFBh"], [19, "call sub_401905"], [20, "movzx eax, al"], [21, "shl eax, 8"], [22, "or eax, ebx"], [23, "mov cs:word_48A610, ax"], [24, "nop"], [25, "mov rbx, [rbp+var_8]"], [26, "leave"], [27, "retn"]], "data_dep": [[5, 4], [6, 5], [9, 8], [10, 9], [13, 12], [14, 13], [17, 16], [20, 19], [21, 20], [22, 21], [22, 17], [23, 22], [27, 22]]}
bool pixie_delete_mutex(void *p_mutex) { #if defined(WIN32) CloseHandle((HANDLE)p_mutex); return true; #else int res; res = pthread_mutex_destroy(p_mutex); free(p_mutex); return res == 0; #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4279A4", "function_addr": 4356516, "binary_name": "5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+mutex], rdi"], [4, "mov rax, [rbp+mutex]"], [5, "mov rdi, rax"], [6, "call _pthread_mutex_destroy"], [7, "mov [rbp+var_4], eax"], [8, "mov rax, [rbp+mutex]"], [9, "mov rdi, rax"], [10, "call _free"], [11, "cmp [rbp+var_4], 0"], [12, "setz al"], [13, "leave"], [14, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [8, 3], [9, 8], [11, 7], [12, 10], [12, 11], [14, 12]]}
int mg_get_context_info(const struct mg_context *ctx, char *buffer, int buflen) { #if defined(USE_SERVER_STATS) if ((buffer == NULL) || (buflen < 1)) { return mg_get_context_info_impl(ctx, NULL, 0); } else { /* Reset buffer, so we can always use strcat. */ buffer[0] = 0; return mg_get_context_info_impl(ctx, buffer, buflen); } #else (void)ctx; if ((buffer != NULL) && (buflen > 0)) { buffer[0] = 0; } return 0; #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41FFA3", "function_addr": 4325283, "binary_name": "7be234ff1bf913b18e7f3dc63277693fbaa1a69ce49eeb885aa12327d52c2d59.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 [rbp+var_14], edx"], [5, "cmp [rbp+var_10], 0"], [6, "jz short loc_41FFC6"], [7, "cmp [rbp+var_14], 0"], [8, "jle short loc_41FFC6"], [9, "mov rax, [rbp+var_10]"], [10, "mov byte ptr [rax], 0"], [11, "mov eax, 0"], [12, "pop rbp"], [13, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 4], [8, 7], [9, 3], [10, 9], [12, 0], [13, 11]]}
int sd_get_cid(struct sd_state *state, uint8_t *cid) { int ret; bzero(cid, 16); ret = send_cmd(state, CMD10, 0); if (ret) return ret; return !rcvr_datablock(state, cid, 16); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404A11", "function_addr": 4213265, "binary_name": "a2460b8f783498371f2bba9d16c5d85a8b8d9490a9973b0156d824eb54dd785f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_20]"], [6, "mov qword ptr [rax], 0"], [7, "mov qword ptr [rax+8], 0"], [8, "mov rax, [rbp+var_18]"], [9, "mov edx, 0"], [10, "mov esi, 0Ah"], [11, "mov rdi, rax"], [12, "call sub_403F17"], [13, "movzx eax, al"], [14, "mov [rbp+var_4], eax"], [15, "cmp [rbp+var_4], 0"], [16, "jz short loc_404A5B"], [17, "mov eax, [rbp+var_4]"], [18, "jmp short locret_404A7B"], [19, "mov rcx, [rbp+var_20]"], [20, "mov rax, [rbp+var_18]"], [21, "mov edx, 10h"], [22, "mov rsi, rcx"], [23, "mov rdi, rax"], [24, "call sub_403DC7"], [25, "test eax, eax"], [26, "setz al"], [27, "movzx eax, al"], [28, "leave"], [29, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 5], [8, 3], [11, 8], [13, 12], [14, 13], [15, 14], [16, 15], [17, 14], [19, 4], [20, 3], [22, 19], [23, 20], [25, 24], [26, 25], [27, 26], [29, 17], [29, 27]]}
static int math_random (lua_State *L) { /* the `%' avoids the (rare) case of r==1, and is needed also because on some systems (SunOS!) `rand()' may return a value larger than RAND_MAX */ lua_Number r = (lua_Number)(rand()%RAND_MAX) / (lua_Number)RAND_MAX; switch (lua_gettop(L)) { /* check number of arguments */ case 0: { /* no arguments */ lua_pushnumber(L, r); /* Number between 0 and 1 */ break; } case 1: { /* only upper limit */ lua_Number u = luaL_checknumber(L, 1); luaL_argcheck(L, (lua_Number)1.0 <= u, 1, "interval is empty"); lua_pushnumber(L, l_mathop(floor)(r*u) + (lua_Number)(1.0)); /* [1, u] */ break; } case 2: { /* lower and upper limits */ lua_Number l = luaL_checknumber(L, 1); lua_Number u = luaL_checknumber(L, 2); luaL_argcheck(L, l <= u, 2, "interval is empty"); lua_pushnumber(L, l_mathop(floor)(r*(u-l+1)) + l); /* [l, u] */ break; } default: return luaL_error(L, "wrong number of arguments"); } return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4917D2", "function_addr": 4790226, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "call _rand"], [5, "movsxd rcx, eax"], [6, "mov rdx, rcx"], [7, "shl rdx, 1Eh"], [8, "add rdx, rcx"], [9, "shr rdx, 20h"], [10, "sar edx, 1Dh"], [11, "mov esi, eax"], [12, "sar esi, 1Fh"], [13, "mov ecx, edx"], [14, "sub ecx, esi"], [15, "mov edx, ecx"], [16, "shl edx, 1Fh"], [17, "sub edx, ecx"], [18, "sub eax, edx"], [19, "mov ecx, eax"], [20, "pxor xmm0, xmm0"], [21, "cvtsi2sd xmm0, ecx"], [22, "movsd xmm1, cs:qword_4C6320"], [23, "divsd xmm0, xmm1"], [24, "movsd [rbp+var_8], xmm0"], [25, "mov rax, [rbp+var_28]"], [26, "mov rdi, rax"], [27, "call lua_gettop"], [28, "cmp eax, 2"], [29, "jz loc_4918F0"], [30, "cmp eax, 2"], [31, "jg loc_49199E"], [32, "test eax, eax"], [33, "jz short loc_491850"], [34, "cmp eax, 1"], [35, "jz short loc_49186A"], [36, "jmp loc_49199E"], [37, "mov rdx, [rbp+var_8]"], [38, "mov rax, [rbp+var_28]"], [39, "movq xmm0, rdx"], [40, "mov rdi, rax"], [41, "call lua_pushnumber"], [42, "jmp loc_4919B6"], [43, "mov rax, [rbp+var_28]"], [44, "mov esi, 1"], [45, "mov rdi, rax"], [46, "call luaL_checknumber"], [47, "movq rax, xmm0"], [48, "mov [rbp+var_20], rax"], [49, "movsd xmm0, [rbp+var_20]"], [50, "movsd xmm1, cs:qword_4C6328"], [51, "comisd xmm0, xmm1"], [52, "jnb short loc_4918AF"], [53, "mov rax, [rbp+var_28]"], [54, "mov edx, offset aIntervalIsEmpt"], [55, "mov esi, 1"], [56, "mov rdi, rax"], [57, "call luaL_argerror"], [58, "test eax, eax"], [59, "nop"], [60, "movsd xmm0, [rbp+var_8]"], [61, "mulsd xmm0, [rbp+var_20]"], [62, "movq rax, xmm0"], [63, "movq xmm0, rax"], [64, "call _floor"], [65, "movsd xmm1, cs:qword_4C6328"], [66, "addsd xmm0, xmm1"], [67, "movq rdx, xmm0"], [68, "mov rax, [rbp+var_28]"], [69, "movq xmm0, rdx"], [70, "mov rdi, rax"], [71, "call lua_pushnumber"], [72, "jmp loc_4919B6"], [73, "mov rax, [rbp+var_28]"], [74, "mov esi, 1"], [75, "mov rdi, rax"], [76, "call luaL_checknumber"], [77, "movq rax, xmm0"], [78, "mov [rbp+var_10], rax"], [79, "mov rax, [rbp+var_28]"], [80, "mov esi, 2"], [81, "mov rdi, rax"], [82, "call luaL_checknumber"], [83, "movq rax, xmm0"], [84, "mov [rbp+var_18], rax"], [85, "movsd xmm0, [rbp+var_18]"], [86, "comisd xmm0, [rbp+var_10]"], [87, "jnb short loc_491948"], [88, "mov rax, [rbp+var_28]"], [89, "mov edx, offset aIntervalIsEmpt"], [90, "mov esi, 2"], [91, "mov rdi, rax"], [92, "call luaL_argerror"], [93, "test eax, eax"], [94, "nop"], [95, "movsd xmm0, [rbp+var_18]"], [96, "movapd xmm1, xmm0"], [97, "subsd xmm1, [rbp+var_10]"], [98, "movsd xmm0, cs:qword_4C6328"], [99, "addsd xmm0, xmm1"], [100, "mulsd xmm0, [rbp+var_8]"], [101, "movq rax, xmm0"], [102, "movq xmm0, rax"], [103, "call _floor"], [104, "movq rax, xmm0"], [105, "movq xmm2, rax"], [106, "addsd xmm2, [rbp+var_10]"], [107, "movq rdx, xmm2"], [108, "mov rax, [rbp+var_28]"], [109, "movq xmm0, rdx"], [110, "mov rdi, rax"], [111, "call lua_pushnumber"], [112, "jmp short loc_4919B6"], [113, "mov rax, [rbp+var_28]"], [114, "mov esi, offset aWrongNumberOfA"], [115, "mov rdi, rax"], [116, "mov eax, 0"], [117, "call luaL_error"], [118, "jmp short locret_4919BB"], [119, "mov eax, 1"], [120, "leave"], [121, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 5], [8, 7], [9, 8], [10, 9], [11, 4], [12, 11], [13, 10], [14, 13], [14, 12], [15, 14], [16, 15], [17, 14], [17, 16], [18, 17], [18, 4], [19, 18], [21, 20], [21, 19], [23, 22], [23, 21], [24, 23], [25, 3], [26, 25], [28, 27], [29, 28], [30, 27], [31, 30], [32, 27], [33, 32], [34, 32], [35, 34], [37, 24], [38, 3], [39, 37], [40, 38], [43, 3], [45, 43], [47, 23], [48, 47], [49, 48], [51, 50], [51, 49], [52, 34], [53, 3], [56, 53], [60, 24], [61, 60], [61, 48], [62, 61], [63, 62], [66, 63], [66, 65], [67, 66], [68, 3], [69, 67], [70, 68], [73, 3], [75, 73], [77, 23], [78, 77], [79, 3], [81, 79], [83, 23], [84, 83], [85, 84], [86, 85], [86, 78], [87, 28], [88, 3], [91, 88], [95, 84], [96, 95], [97, 78], [97, 96], [99, 97], [99, 98], [100, 24], [100, 99], [101, 100], [102, 101], [104, 102], [105, 104], [106, 78], [106, 105], [107, 106], [108, 3], [109, 107], [110, 108], [113, 3], [115, 113], [121, 119]]}
static unsigned long long imsm_dev_size(struct imsm_dev *dev) { if (dev == NULL) return 0; return join_u32(dev->size_low, dev->size_high); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4173A8", "function_addr": 4289448, "binary_name": "13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 8"], [3, "mov [rbp+var_8], rdi"], [4, "cmp [rbp+var_8], 0"], [5, "jnz short loc_4173C2"], [6, "mov eax, 0"], [7, "jmp short locret_4173D9"], [8, "mov rax, [rbp+var_8]"], [9, "mov edx, [rax+14h]"], [10, "mov rax, [rbp+var_8]"], [11, "mov eax, [rax+10h]"], [12, "mov esi, edx"], [13, "mov edi, eax"], [14, "call sub_4172C4"], [15, "leave"], [16, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 3], [9, 8], [10, 3], [11, 10], [12, 9], [13, 11], [16, 6], [16, 14]]}
void dummy(int pkg, int core, int cpu) { return; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403819", "function_addr": 4208665, "binary_name": "c5e9cf92e4627933b8d7ceb1d7c1dee5bf50f8ecea4d40106532c0dd6767106a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "mov [rbp+var_8], esi"], [4, "mov [rbp+var_C], edx"], [5, "nop"], [6, "pop rbp"], [7, "retn"]], "data_dep": [[6, 0]]}
ssize_t hpeek(hFILE *fp, void *buffer, size_t nbytes) { size_t n = fp->end - fp->begin; while (n < nbytes) { ssize_t ret = refill_buffer(fp); if (ret < 0) return ret; else if (ret == 0) break; else n += ret; } if (n > nbytes) n = nbytes; memcpy(buffer, fp->begin, n); return n; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4567A4", "function_addr": 4548516, "binary_name": "2caebfd0ee800d381f130da1ff10e10e2428563dc4c26171a2343037a6a7bf2a.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+dest], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, [rbp+var_18]"], [7, "mov rdx, [rax+10h]"], [8, "mov rax, [rbp+var_18]"], [9, "mov rcx, [rax+8]"], [10, "mov rax, rdx"], [11, "sub rax, rcx"], [12, "mov [rbp+n], rax"], [13, "jmp short loc_456800"], [14, "mov rax, [rbp+var_18]"], [15, "mov rdi, rax"], [16, "call sub_456397"], [17, "mov [rbp+var_10], rax"], [18, "cmp [rbp+var_10], 0"], [19, "jns short loc_4567F1"], [20, "mov rax, [rbp+var_10]"], [21, "jmp short locret_45683E"], [22, "cmp [rbp+var_10], 0"], [23, "jz short loc_45680C"], [24, "mov rax, [rbp+var_10]"], [25, "add [rbp+n], rax"], [26, "mov rax, [rbp+n]"], [27, "cmp rax, [rbp+var_28]"], [28, "jb short loc_4567D4"], [29, "jmp short loc_45680D"], [30, "nop"], [31, "mov rax, [rbp+n]"], [32, "cmp rax, [rbp+var_28]"], [33, "jbe short loc_45681F"], [34, "mov rax, [rbp+var_28]"], [35, "mov [rbp+n], rax"], [36, "mov rax, [rbp+var_18]"], [37, "mov rcx, [rax+8]"], [38, "mov rdx, [rbp+n]"], [39, "mov rax, [rbp+dest]"], [40, "mov rsi, rcx"], [41, "mov rdi, rax"], [42, "call _memcpy"], [43, "mov rax, [rbp+n]"], [44, "leave"], [45, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 3], [9, 8], [10, 7], [11, 10], [11, 9], [12, 11], [14, 3], [15, 14], [17, 16], [18, 17], [19, 18], [20, 17], [22, 17], [23, 22], [24, 17], [25, 25], [25, 12], [25, 24], [26, 12], [26, 25], [27, 5], [27, 26], [28, 27], [31, 25], [31, 12], [32, 31], [32, 5], [33, 32], [34, 5], [35, 34], [36, 3], [37, 36], [38, 35], [38, 25], [38, 12], [39, 4], [40, 37], [41, 39], [43, 12], [43, 35], [43, 25], [45, 43], [45, 20]]}
static void cmd_seek_complete(struct ide_taskfile *tf) { struct ide_drive *d = tf->drive; if (d->failed) drive_failed(tf); d->offset = xlate_block(tf); if (d->offset == -1 || lseek(d->fd, 512 * d->offset, SEEK_SET) == -1) { tf->status &= ~ST_DSC; tf->status |= ST_ERR; tf->error |= ERR_IDNF; } tf->status |= ST_DSC; completed(tf); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40474A", "function_addr": 4212554, "binary_name": "b2470140fe241e0bd4ba7a04cd28e0632bafc1f756ae7bfe0f121c1e0a915f61.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+10h]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_8]"], [8, "movzx eax, byte ptr [rax+20h]"], [9, "and eax, 4"], [10, "test al, al"], [11, "jz short loc_40477D"], [12, "mov rax, [rbp+var_18]"], [13, "mov rdi, rax"], [14, "call sub_403F9E"], [15, "mov rax, [rbp+var_18]"], [16, "mov rdi, rax"], [17, "call sub_403DB4"], [18, "mov rdx, [rbp+var_8]"], [19, "mov [rdx+438h], rax"], [20, "mov rax, [rbp+var_8]"], [21, "mov rax, [rax+438h]"], [22, "cmp rax, 0FFFFFFFFFFFFFFFFh"], [23, "jz short loc_4047D6"], [24, "mov rax, [rbp+var_8]"], [25, "mov rax, [rax+438h]"], [26, "shl rax, 9"], [27, "mov rcx, rax"], [28, "mov rax, [rbp+var_8]"], [29, "mov eax, [rax+434h]"], [30, "mov edx, 0"], [31, "mov rsi, rcx"], [32, "mov edi, eax"], [33, "call _lseek"], [34, "cmp rax, 0FFFFFFFFFFFFFFFFh"], [35, "jnz short loc_404812"], [36, "mov rax, [rbp+var_18]"], [37, "movzx eax, byte ptr [rax+9]"], [38, "and eax, 0FFFFFFEFh"], [39, "mov edx, eax"], [40, "mov rax, [rbp+var_18]"], [41, "mov [rax+9], dl"], [42, "mov rax, [rbp+var_18]"], [43, "movzx eax, byte ptr [rax+9]"], [44, "or eax, 1"], [45, "mov edx, eax"], [46, "mov rax, [rbp+var_18]"], [47, "mov [rax+9], dl"], [48, "mov rax, [rbp+var_18]"], [49, "movzx eax, byte ptr [rax+2]"], [50, "or eax, 10h"], [51, "mov edx, eax"], [52, "mov rax, [rbp+var_18]"], [53, "mov [rax+2], dl"], [54, "mov rax, [rbp+var_18]"], [55, "movzx eax, byte ptr [rax+9]"], [56, "or eax, 10h"], [57, "mov edx, eax"], [58, "mov rax, [rbp+var_18]"], [59, "mov [rax+9], dl"], [60, "mov rax, [rbp+var_18]"], [61, "mov rdi, rax"], [62, "call sub_403F71"], [63, "nop"], [64, "leave"], [65, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 3], [13, 12], [15, 3], [16, 15], [18, 6], [19, 18], [19, 17], [20, 6], [21, 19], [21, 20], [22, 21], [23, 22], [24, 6], [25, 19], [25, 24], [26, 25], [27, 26], [28, 6], [29, 19], [29, 28], [31, 27], [32, 29], [34, 33], [35, 34], [36, 3], [37, 36], [37, 41], [37, 47], [37, 53], [37, 19], [38, 37], [39, 38], [40, 3], [41, 40], [41, 39], [42, 3], [43, 42], [43, 41], [44, 43], [45, 44], [46, 3], [47, 46], [47, 45], [48, 3], [49, 47], [49, 48], [50, 49], [51, 50], [52, 3], [53, 52], [53, 51], [54, 3], [55, 41], [55, 47], [55, 53], [55, 59], [55, 19], [55, 54], [56, 55], [57, 56], [58, 3], [59, 58], [59, 57], [60, 3], [61, 60], [65, 62]]}
static void load_hfile_plugins() { static const struct hFILE_scheme_handler data = { hopen_mem, hfile_always_local, "built-in", 80 }, file = { hopen_fd_fileuri, hfile_always_local, "built-in", 80 }, preload = { hopen_preload, is_preload_url_remote, "built-in", 80 }; schemes = kh_init(scheme_string); if (schemes == NULL) abort(); hfile_add_scheme_handler("data", &data); hfile_add_scheme_handler("file", &file); hfile_add_scheme_handler("preload", &preload); init_add_plugin(NULL, hfile_plugin_init_net, "knetfile"); init_add_plugin(NULL, hfile_plugin_init_mem, "mem"); #ifdef ENABLE_PLUGINS struct hts_path_itr path; const char *pluginname; hts_path_itr_setup(&path, NULL, NULL, "hfile_", 6, NULL, 0); while ((pluginname = hts_path_itr_next(&path)) != NULL) { void *obj; int (*init)(struct hFILE_plugin *) = (int (*)(struct hFILE_plugin *)) load_plugin(&obj, pluginname, "hfile_plugin_init"); if (init) { if (init_add_plugin(obj, init, pluginname) != 0) close_plugin(obj); } } #else #ifdef HAVE_LIBCURL init_add_plugin(NULL, hfile_plugin_init_libcurl, "libcurl"); #endif #ifdef ENABLE_GCS init_add_plugin(NULL, hfile_plugin_init_gcs, "gcs"); #endif #ifdef ENABLE_S3 init_add_plugin(NULL, hfile_plugin_init_s3, "s3"); init_add_plugin(NULL, hfile_plugin_init_s3_write, "s3w"); #endif #endif // In the unlikely event atexit() fails, it's better to succeed here and // carry on; then eventually when the program exits, we'll merely close // down the plugins uncleanly, as if we had aborted. (void) atexit(hfile_exit); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45D69F", "function_addr": 4576927, "binary_name": "362955a1d3230a4d03d634c3e5bff13ca4ae6a5e24e02b2cad6e9251388f57a8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "call sub_45C91B"], [3, "mov cs:qword_52FA80, rax"], [4, "mov rax, cs:qword_52FA80"], [5, "test rax, rax"], [6, "jnz short loc_45D6C0"], [7, "call _abort"], [8, "mov esi, offset off_505AA0"], [9, "mov edi, offset aData"], [10, "call sub_45D4E0"], [11, "mov esi, offset off_505AE0"], [12, "mov edi, offset aFile_2"], [13, "call sub_45D4E0"], [14, "mov esi, offset off_505B20"], [15, "mov edi, offset aPreload"], [16, "call sub_45D4E0"], [17, "mov edx, offset aKnetfile"], [18, "mov esi, offset sub_45DDA0"], [19, "mov edi, 0"], [20, "call sub_45D5B5"], [21, "mov edx, offset aMem"], [22, "mov esi, offset sub_45C89C"], [23, "mov edi, 0"], [24, "call sub_45D5B5"], [25, "mov edx, offset aLibcurl"], [26, "mov esi, offset sub_4D1867"], [27, "mov edi, 0"], [28, "call sub_45D5B5"], [29, "mov edi, offset sub_45D415"], [30, "call sub_4F01A0"], [31, "nop"], [32, "pop rbp"], [33, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [32, 0], [33, 30]]}
static void show_usage(const char *progname) { fprintf(stderr, "USAGE: %s <abs path to .config>\n", progname); exit(1); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401264", "function_addr": 4199012, "binary_name": "324255e342ab386d5011960097aa1e5afa371890f958bd53f318c77b18b87e95.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, cs:stderr"], [5, "mov rdx, [rbp+var_8]"], [6, "mov esi, offset aUsageSAbsPathT"], [7, "mov rdi, rax"], [8, "mov eax, 0"], [9, "call _fprintf"], [10, "mov edi, 1"], [11, "call _exit"]], "data_dep": [[5, 3], [7, 4]]}
void avr_raise_irq( avr_irq_t * irq, uint32_t value) { avr_raise_irq_float(irq, value, !!(irq->flags & IRQ_FLAG_FLOATING)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40BB3A", "function_addr": 4242234, "binary_name": "9ea08141baa4d7c67ddd3c8678f9c67d2e3343bdfb4dce942c017e2db4e99fb3.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, "movzx eax, byte ptr [rax+18h]"], [7, "movzx eax, al"], [8, "and eax, 10h"], [9, "test eax, eax"], [10, "setnz al"], [11, "movzx edx, al"], [12, "mov ecx, [rbp+var_C]"], [13, "mov rax, [rbp+var_8]"], [14, "mov esi, ecx"], [15, "mov rdi, rax"], [16, "call sub_40B9D8"], [17, "nop"], [18, "leave"], [19, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 4], [13, 3], [14, 12], [15, 13], [19, 16]]}
END_OF_STATIC_FUNCTION(serial_time_out_handler) void start_serial_timer(int delay) { stop_serial_timer(); install_int_ex(serial_time_out_handler, MSEC_TO_TIMER(delay)); // install the timer serial_time_out = FALSE; serial_timer_running = TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404664", "function_addr": 4212324, "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 eax, 0"], [5, "call sub_4046A9"], [6, "mov eax, [rbp+var_4]"], [7, "cdqe"], [8, "imul rax, 4A9h"], [9, "mov rsi, rax"], [10, "mov edi, offset sub_404649"], [11, "call _install_int_ex"], [12, "mov cs:dword_41BB20, 0"], [13, "mov cs:dword_41BB24, 0FFFFFFFFh"], [14, "nop"], [15, "leave"], [16, "retn"]], "data_dep": [[6, 3], [8, 6], [9, 8], [16, 11]]}
int mdm_parse_data(modem_config *cfg, char *data, int len) { int i; int ch; if (cfg->cmd_mode == TRUE) { for (i = 0; i < len; i++) { mdm_handle_char(cfg, data[i]); } } else { line_write(cfg, data, len); if (cfg->pre_break_delay == TRUE) { for (i = 0; i < len; i++) { ch = data[i]; if (cfg->parity) ch &= 0x7f; if (ch == (char) cfg->s[SRegisterBreak]) { LOG(LOG_DEBUG, "Break character received"); cfg->break_len++; if (cfg->break_len > 3) { // more than 3, considered invalid cfg->pre_break_delay = FALSE; cfg->break_len = 0; } } else { LOG(LOG_ALL, "Found non-break character, cancelling break"); // chars past +++ mdm_clear_break(cfg); } } } } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408324", "function_addr": 4227876, "binary_name": "1c57951629eaf9c2a56a3776346f70122e53a2482ca8c37826f2035344e94b48.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_18]"], [7, "mov eax, [rax+11BCh]"], [8, "cmp eax, 1"], [9, "jnz short loc_408381"], [10, "mov [rbp+var_4], 0"], [11, "jmp short loc_408374"], [12, "mov eax, [rbp+var_4]"], [13, "movsxd rdx, eax"], [14, "mov rax, [rbp+var_20]"], [15, "add rax, rdx"], [16, "movzx eax, byte ptr [rax]"], [17, "movsx edx, al"], [18, "mov rax, [rbp+var_18]"], [19, "mov esi, edx"], [20, "mov rdi, rax"], [21, "call sub_407FA4"], [22, "add [rbp+var_4], 1"], [23, "mov eax, [rbp+var_4]"], [24, "cmp eax, [rbp+var_24]"], [25, "jl short loc_40834F"], [26, "jmp loc_4084CE"], [27, "mov edx, [rbp+var_24]"], [28, "mov rcx, [rbp+var_20]"], [29, "mov rax, [rbp+var_18]"], [30, "mov rsi, rcx"], [31, "mov rdi, rax"], [32, "call sub_40B864"], [33, "mov rax, [rbp+var_18]"], [34, "mov eax, [rax+11B0h]"], [35, "cmp eax, 1"], [36, "jnz loc_4084CE"], [37, "mov [rbp+var_4], 0"], [38, "jmp loc_4084C2"], [39, "mov eax, [rbp+var_4]"], [40, "movsxd rdx, eax"], [41, "mov rax, [rbp+var_20]"], [42, "add rax, rdx"], [43, "movzx eax, byte ptr [rax]"], [44, "movsx eax, al"], [45, "mov [rbp+var_8], eax"], [46, "mov rax, [rbp+var_18]"], [47, "mov eax, [rax+1D7Ch]"], [48, "test eax, eax"], [49, "jz short loc_4083DE"], [50, "and [rbp+var_8], 7Fh"], [51, "mov rax, [rbp+var_18]"], [52, "mov eax, [rax+1BE8h]"], [53, "movsx eax, al"], [54, "cmp [rbp+var_8], eax"], [55, "jnz loc_408475"], [56, "mov eax, cs:dword_411280"], [57, "cmp eax, 4"], [58, "jle short loc_408431"], [59, "mov edi, 5"], [60, "call sub_404547"], [61, "mov rax, cs:stream"], [62, "mov rcx, rax"], [63, "mov edx, 18h"], [64, "mov esi, 1"], [65, "mov edi, offset aBreakCharacter"], [66, "call _fwrite"], [67, "mov eax, 0"], [68, "call sub_4045DF"], [69, "mov rax, [rbp+var_18]"], [70, "mov eax, [rax+1D70h]"], [71, "lea edx, [rax+1]"], [72, "mov rax, [rbp+var_18]"], [73, "mov [rax+1D70h], edx"], [74, "mov rax, [rbp+var_18]"], [75, "mov eax, [rax+1D70h]"], [76, "cmp eax, 3"], [77, "jle short loc_4084BE"], [78, "mov rax, [rbp+var_18]"], [79, "mov dword ptr [rax+11B0h], 0"], [80, "mov rax, [rbp+var_18]"], [81, "mov dword ptr [rax+1D70h], 0"], [82, "jmp short loc_4084BE"], [83, "mov eax, cs:dword_411280"], [84, "cmp eax, 6"], [85, "jle short loc_4084B2"], [86, "mov edi, 7"], [87, "call sub_404547"], [88, "mov rax, cs:stream"], [89, "mov rcx, rax"], [90, "mov edx, 2Bh "], [91, "mov esi, 1"], [92, "mov edi, offset aFoundNonBreakC"], [93, "call _fwrite"], [94, "mov eax, 0"], [95, "call sub_4045DF"], [96, "mov rax, [rbp+var_18]"], [97, "mov rdi, rax"], [98, "call sub_4082F9"], [99, "add [rbp+var_4], 1"], [100, "mov eax, [rbp+var_4]"], [101, "cmp eax, [rbp+var_24]"], [102, "jl loc_4083B6"], [103, "mov eax, 0"], [104, "leave"], [105, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 8], [12, 22], [12, 10], [13, 12], [14, 4], [15, 14], [15, 13], [16, 15], [17, 16], [18, 3], [19, 17], [20, 18], [22, 10], [22, 22], [23, 22], [23, 10], [24, 5], [24, 23], [25, 24], [27, 5], [28, 4], [29, 3], [30, 28], [31, 29], [33, 3], [34, 33], [35, 34], [36, 35], [39, 99], [39, 37], [40, 39], [41, 4], [42, 41], [42, 40], [43, 73], [43, 79], [43, 42], [43, 81], [44, 43], [45, 44], [46, 3], [47, 73], [47, 79], [47, 81], [47, 46], [48, 47], [49, 48], [50, 45], [51, 3], [52, 79], [52, 51], [52, 81], [52, 73], [53, 52], [54, 53], [54, 50], [54, 45], [55, 54], [57, 56], [58, 57], [62, 61], [69, 3], [70, 73], [70, 79], [70, 81], [70, 69], [71, 40], [71, 79], [71, 81], [71, 73], [71, 70], [71, 63], [72, 3], [73, 71], [73, 72], [74, 3], [75, 74], [75, 73], [76, 75], [77, 76], [78, 3], [79, 78], [80, 3], [81, 80], [84, 83], [85, 84], [89, 88], [96, 3], [97, 96], [99, 99], [99, 37], [100, 37], [100, 99], [101, 5], [101, 100], [102, 101], [105, 103]]}
bool_t add(hashtable_t * ht, const lkey_t key, const val_t val) { unsigned int i; node_t node; bool_t ret = false; node_t tmp; int try = 10; lock(ht->mtx); if (find_op(ht, key) == true) { unlock(ht->mtx); return false; } set_node(&node, key, val, OCC); retry: for (i = 0; i < ht->table_size; i++) { if ((ret = swap_node(ht, 1, node, &tmp)) == true) { ht->setSize++; break; } else if ((ret = swap_node(ht, 2, tmp, &node)) == true) { ht->setSize++; break; } } if (ret == false && try-- > 0) { resize(ht); printf ("Resized\n"); goto retry; } unlock(ht->mtx); return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402211", "function_addr": 4203025, "binary_name": "4c47fa8bd4f1d3e494b1410a2ca0474c88b5c23bf23ff4084890f8b56ce9d202.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_68], rdx"], [6, "mov [rbp+var_5], 0"], [7, "mov [rbp+var_C], 0Ah"], [8, "mov rax, [rbp+var_58]"], [9, "add rax, 38h "], [10, "mov rdi, rax"], [11, "call _pthread_mutex_lock"], [12, "mov rdx, [rbp+var_60]"], [13, "mov rax, [rbp+var_58]"], [14, "mov rsi, rdx"], [15, "mov rdi, rax"], [16, "call sub_40245F"], [17, "cmp al, 1"], [18, "jnz short loc_402271"], [19, "mov rax, [rbp+var_58]"], [20, "add rax, 38h "], [21, "mov rdi, rax"], [22, "call _pthread_mutex_unlock"], [23, "mov eax, 0"], [24, "jmp locret_402372"], [25, "mov rdx, [rbp+var_68]"], [26, "mov rsi, [rbp+var_60]"], [27, "lea rax, [rbp+var_30]"], [28, "mov ecx, 2"], [29, "mov rdi, rax"], [30, "call sub_4020CE"], [31, "mov [rbp+var_4], 0"], [32, "jmp loc_402320"], [33, "lea rdx, [rbp+var_50]"], [34, "mov rax, [rbp+var_58]"], [35, "sub rsp, 8"], [36, "push [rbp+var_20]"], [37, "push [rbp+var_28]"], [38, "push [rbp+var_30]"], [39, "mov esi, 1"], [40, "mov rdi, rax"], [41, "call sub_402105"], [42, "add rsp, 20h"], [43, "mov [rbp+var_5], al"], [44, "cmp [rbp+var_5], 1"], [45, "jnz short loc_4022D9"], [46, "mov rax, [rbp+var_58]"], [47, "mov rax, [rax]"], [48, "lea rdx, [rax+1]"], [49, "mov rax, [rbp+var_58]"], [50, "mov [rax], rdx"], [51, "jmp short loc_402330"], [52, "lea rdx, [rbp+var_30]"], [53, "mov rax, [rbp+var_58]"], [54, "sub rsp, 8"], [55, "push [rbp+var_40]"], [56, "push [rbp+var_48]"], [57, "push [rbp+var_50]"], [58, "mov esi, 2"], [59, "mov rdi, rax"], [60, "call sub_402105"], [61, "add rsp, 20h"], [62, "mov [rbp+var_5], al"], [63, "cmp [rbp+var_5], 1"], [64, "jnz short loc_40231C"], [65, "mov rax, [rbp+var_58]"], [66, "mov rax, [rax]"], [67, "lea rdx, [rax+1]"], [68, "mov rax, [rbp+var_58]"], [69, "mov [rax], rdx"], [70, "jmp short loc_402330"], [71, "add [rbp+var_4], 1"], [72, "mov rax, [rbp+var_58]"], [73, "mov eax, [rax+18h]"], [74, "cmp [rbp+var_4], eax"], [75, "jb loc_402296"], [76, "cmp [rbp+var_5], 0"], [77, "jnz short loc_40235E"], [78, "mov eax, [rbp+var_C]"], [79, "lea edx, [rax-1]"], [80, "mov [rbp+var_C], edx"], [81, "test eax, eax"], [82, "jle short loc_40235E"], [83, "mov rax, [rbp+var_58]"], [84, "mov rdi, rax"], [85, "call sub_40283E"], [86, "mov edi, offset s"], [87, "call _puts"], [88, "jmp loc_40228A"], [89, "mov rax, [rbp+var_58]"], [90, "add rax, 38h "], [91, "mov rdi, rax"], [92, "call _pthread_mutex_unlock"], [93, "movzx eax, [rbp+var_5]"], [94, "leave"], [95, "retn"]], "data_dep": [[8, 3], [9, 8], [10, 9], [12, 4], [13, 3], [14, 12], [15, 13], [17, 16], [18, 17], [19, 3], [20, 19], [21, 20], [25, 5], [26, 4], [27, 16], [29, 27], [33, 79], [33, 25], [33, 52], [34, 3], [35, 42], [35, 2], [35, 61], [40, 34], [42, 35], [43, 41], [44, 43], [45, 44], [46, 3], [47, 50], [47, 46], [47, 69], [48, 47], [48, 33], [48, 69], [48, 50], [49, 3], [50, 49], [50, 48], [52, 33], [53, 3], [54, 42], [59, 53], [61, 54], [62, 60], [63, 62], [64, 63], [65, 3], [66, 69], [66, 50], [66, 65], [67, 52], [67, 69], [67, 66], [67, 50], [68, 3], [69, 67], [69, 68], [71, 31], [71, 71], [72, 3], [73, 69], [73, 50], [73, 72], [74, 73], [74, 31], [74, 71], [75, 74], [76, 43], [76, 6], [76, 62], [77, 76], [78, 7], [78, 80], [79, 67], [79, 69], [79, 78], [79, 25], [79, 48], [79, 50], [79, 52], [79, 79], [80, 79], [81, 78], [82, 81], [83, 3], [84, 83], [89, 3], [90, 89], [91, 90], [93, 6], [93, 62], [93, 43], [95, 93], [95, 23]]}
void imported_imported_duplicated_package_message_encode_repeated_inner( struct pbtools_encoder_t *encoder_p, int field_number, struct imported_imported_duplicated_package_message_repeated_t *repeated_p) { pbtools_encode_repeated_inner( encoder_p, field_number, (struct pbtools_repeated_message_t *)repeated_p, sizeof(struct imported_imported_duplicated_package_message_t), (pbtools_message_encode_inner_t)imported_imported_duplicated_package_message_encode_inner); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43EA89", "function_addr": 4450953, "binary_name": "c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705.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_4F2060"], [7, "add rax, 1"], [8, "mov cs:qword_4F2060, rax"], [9, "mov rdx, [rbp+var_18]"], [10, "mov esi, [rbp+var_C]"], [11, "mov rax, [rbp+var_8]"], [12, "mov r8d, offset sub_43E7B2"], [13, "mov ecx, 10h"], [14, "mov rdi, rax"], [15, "call sub_415FFD"], [16, "mov rax, cs:qword_4F2068"], [17, "add rax, 1"], [18, "mov cs:qword_4F2068, rax"], [19, "nop"], [20, "leave"], [21, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 5], [10, 4], [11, 3], [14, 11], [17, 16], [18, 17], [21, 17]]}
void free_smtrdns_get_host_ip ( struct_smtrdns_get_host_ip **params) { mem_free ((*params)-> host_name); mem_free (*params); *params = NULL; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4393B8", "function_addr": 4428728, "binary_name": "09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rax, [rax]"], [6, "mov rax, [rax]"], [7, "mov edx, 0"], [8, "mov esi, 0"], [9, "mov rdi, rax"], [10, "call sub_462B45"], [11, "mov rax, [rbp+var_8]"], [12, "mov rax, [rax]"], [13, "mov edx, 0"], [14, "mov esi, 0"], [15, "mov rdi, rax"], [16, "call sub_462B45"], [17, "mov rax, [rbp+var_8]"], [18, "mov qword ptr [rax], 0"], [19, "nop"], [20, "leave"], [21, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [9, 6], [11, 3], [12, 11], [15, 12], [17, 3], [18, 17], [21, 17]]}
static void executor_finish_job(btmesh_conf_executor_t *const self, btmesh_conf_job_result_t job_result, btmesh_conf_notification_status_t notification_status) { // The configuration executor shall transition to idle state before it notifies // the configuration distributor in order to make it possible to start a new // configuration job. Configuration distributor assumes if the job execution // is ended then it is able to schedule new configuration job. btmesh_conf_job_t *finished_job = self->current_job; self->current_job->result = job_result; self->current_job = NULL; self->local_retry_counter = 0; self->communication_retry_counter = 0; executor_state_transition(self, BTMESH_CONF_EXEC_STATE_IDLE); if (BTMESH_CONF_NOTIFICATION_ENABLE == notification_status) { btmesh_conf_distributor_on_job_notification(self->parent, self, finished_job); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41FAF3", "function_addr": 4324083, "binary_name": "d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.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 rax, [rbp+var_18]"], [7, "mov rax, [rax+8]"], [8, "mov [rbp+var_8], rax"], [9, "mov rax, [rbp+var_18]"], [10, "mov rax, [rax+8]"], [11, "mov edx, [rbp+var_1C]"], [12, "mov [rax+24h], edx"], [13, "mov rax, [rbp+var_18]"], [14, "mov qword ptr [rax+8], 0"], [15, "mov rax, [rbp+var_18]"], [16, "mov word ptr [rax+1Ah], 0"], [17, "mov rax, [rbp+var_18]"], [18, "mov word ptr [rax+1Eh], 0"], [19, "mov rax, [rbp+var_18]"], [20, "mov esi, 0"], [21, "mov rdi, rax"], [22, "call sub_41FB73"], [23, "cmp [rbp+var_20], 0"], [24, "jnz short loc_41FB70"], [25, "mov rax, [rbp+var_18]"], [26, "mov rax, [rax]"], [27, "mov rdx, [rbp+var_8]"], [28, "mov rcx, [rbp+var_18]"], [29, "mov rsi, rcx"], [30, "mov rdi, rax"], [31, "call sub_41E547"], [32, "nop"], [33, "leave"], [34, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 3], [10, 9], [11, 4], [12, 10], [12, 11], [13, 3], [14, 13], [15, 3], [16, 15], [17, 3], [18, 17], [19, 3], [21, 19], [23, 5], [24, 23], [25, 3], [26, 12], [26, 14], [26, 16], [26, 25], [26, 18], [27, 8], [28, 3], [29, 28], [30, 26], [34, 22], [34, 31]]}
int encode_context_unsigned( uint8_t * apdu, uint8_t tag_number, uint32_t value) { int len = 0; /* length of unsigned is variable, as per 20.2.4 */ if (value < 0x100) { len = 1; } else if (value < 0x10000) { len = 2; } else if (value < 0x1000000) { len = 3; } else { len = 4; } len = encode_tag(&apdu[0], tag_number, true, (uint32_t) len); len += encode_bacnet_unsigned(&apdu[len], value); return len; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408721", "function_addr": 4228897, "binary_name": "e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011.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_20], edx"], [6, "mov [rbp+var_1C], al"], [7, "mov [rbp+var_4], 0"], [8, "cmp [rbp+var_20], 0FFh"], [9, "ja short loc_40874E"], [10, "mov [rbp+var_4], 1"], [11, "jmp short loc_408779"], [12, "cmp [rbp+var_20], 0FFFFh"], [13, "ja short loc_408760"], [14, "mov [rbp+var_4], 2"], [15, "jmp short loc_408779"], [16, "cmp [rbp+var_20], 0FFFFFFh"], [17, "ja short loc_408772"], [18, "mov [rbp+var_4], 3"], [19, "jmp short loc_408779"], [20, "mov [rbp+var_4], 4"], [21, "mov edx, [rbp+var_4]"], [22, "movzx esi, [rbp+var_1C]"], [23, "mov rax, [rbp+var_18]"], [24, "mov ecx, edx"], [25, "mov edx, 1"], [26, "mov rdi, rax"], [27, "call sub_406FFE"], [28, "mov [rbp+var_4], eax"], [29, "mov eax, [rbp+var_4]"], [30, "movsxd rdx, eax"], [31, "mov rax, [rbp+var_18]"], [32, "add rdx, rax"], [33, "mov eax, [rbp+var_20]"], [34, "mov esi, eax"], [35, "mov rdi, rdx"], [36, "call sub_408694"], [37, "add [rbp+var_4], eax"], [38, "mov eax, [rbp+var_4]"], [39, "leave"], [40, "retn"]], "data_dep": [[6, 4], [8, 5], [9, 8], [12, 5], [13, 12], [16, 5], [17, 16], [21, 10], [21, 18], [21, 14], [21, 20], [22, 6], [23, 3], [24, 21], [26, 23], [28, 27], [29, 28], [30, 29], [31, 3], [32, 31], [32, 30], [33, 5], [34, 33], [35, 32], [37, 36], [37, 28], [38, 37], [40, 38]]}
int kgetline(kstring_t *s, kgets_func *fgets_fn, void *fp) { size_t l0 = s->l; while (s->l == l0 || s->s[s->l-1] != '\n') { if (s->m - s->l < 200) ks_reserve(s, s->m + 200); if (fgets_fn(s->s + s->l, s->m - s->l, fp) == NULL) break; s->l += strlen(s->s + s->l); } if (s->l == l0) return EOF; if (s->l > l0 && s->s[s->l-1] == '\n') { s->l--; if (s->l > l0 && s->s[s->l-1] == '\r') s->l--; } s->s[s->l] = '\0'; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413123", "function_addr": 4272419, "binary_name": "2e41131efdc31893b1e9cfe634b3497205fe890eb5cb06161fcc58fe784adeba.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 38h"], [4, "mov [rbp+var_28], rdi"], [5, "mov [rbp+var_30], rsi"], [6, "mov [rbp+var_38], rdx"], [7, "mov rax, [rbp+var_28]"], [8, "mov rax, [rax]"], [9, "mov [rbp+var_18], rax"], [10, "jmp loc_4131ED"], [11, "mov rax, [rbp+var_28]"], [12, "mov rdx, [rax+8]"], [13, "mov rax, [rbp+var_28]"], [14, "mov rcx, [rax]"], [15, "mov rax, rdx"], [16, "sub rax, rcx"], [17, "cmp rax, 0C7h"], [18, "ja short loc_413183"], [19, "mov rax, [rbp+var_28]"], [20, "mov rax, [rax+8]"], [21, "lea rdx, [rax+0C8h]"], [22, "mov rax, [rbp+var_28]"], [23, "mov rsi, rdx"], [24, "mov rdi, rax"], [25, "call sub_41262A"], [26, "mov rax, [rbp+var_28]"], [27, "mov rax, [rax+8]"], [28, "mov edx, eax"], [29, "mov rax, [rbp+var_28]"], [30, "mov rax, [rax]"], [31, "mov ecx, eax"], [32, "mov eax, edx"], [33, "sub eax, ecx"], [34, "mov esi, eax"], [35, "mov rax, [rbp+var_28]"], [36, "mov rdx, [rax+10h]"], [37, "mov rax, [rbp+var_28]"], [38, "mov rax, [rax]"], [39, "lea rdi, [rdx+rax]"], [40, "mov rax, [rbp+var_38]"], [41, "mov rcx, [rbp+var_30]"], [42, "mov rdx, rax"], [43, "call rcx"], [44, "test rax, rax"], [45, "jz short loc_413221"], [46, "mov rax, [rbp+var_28]"], [47, "mov rbx, [rax]"], [48, "mov rax, [rbp+var_28]"], [49, "mov rdx, [rax+10h]"], [50, "mov rax, [rbp+var_28]"], [51, "mov rax, [rax]"], [52, "add rax, rdx"], [53, "mov rdi, rax"], [54, "call _strlen"], [55, "lea rdx, [rbx+rax]"], [56, "mov rax, [rbp+var_28]"], [57, "mov [rax], rdx"], [58, "mov rax, [rbp+var_28]"], [59, "mov rax, [rax]"], [60, "cmp [rbp+var_18], rax"], [61, "jz loc_413148"], [62, "mov rax, [rbp+var_28]"], [63, "mov rdx, [rax+10h]"], [64, "mov rax, [rbp+var_28]"], [65, "mov rax, [rax]"], [66, "sub rax, 1"], [67, "add rax, rdx"], [68, "movzx eax, byte ptr [rax]"], [69, "cmp al, 0Ah"], [70, "jnz loc_413148"], [71, "jmp short loc_413222"], [72, "nop"], [73, "mov rax, [rbp+var_28]"], [74, "mov rax, [rax]"], [75, "cmp [rbp+var_18], rax"], [76, "jnz short loc_413239"], [77, "mov eax, 0FFFFFFFFh"], [78, "jmp loc_4132CB"], [79, "mov rax, [rbp+var_28]"], [80, "mov rax, [rax]"], [81, "cmp [rbp+var_18], rax"], [82, "jnb short loc_4132B1"], [83, "mov rax, [rbp+var_28]"], [84, "mov rdx, [rax+10h]"], [85, "mov rax, [rbp+var_28]"], [86, "mov rax, [rax]"], [87, "sub rax, 1"], [88, "add rax, rdx"], [89, "movzx eax, byte ptr [rax]"], [90, "cmp al, 0Ah"], [91, "jnz short loc_4132B1"], [92, "mov rax, [rbp+var_28]"], [93, "mov rax, [rax]"], [94, "lea rdx, [rax-1]"], [95, "mov rax, [rbp+var_28]"], [96, "mov [rax], rdx"], [97, "mov rax, [rbp+var_28]"], [98, "mov rax, [rax]"], [99, "cmp [rbp+var_18], rax"], [100, "jnb short loc_4132B1"], [101, "mov rax, [rbp+var_28]"], [102, "mov rdx, [rax+10h]"], [103, "mov rax, [rbp+var_28]"], [104, "mov rax, [rax]"], [105, "sub rax, 1"], [106, "add rax, rdx"], [107, "movzx eax, byte ptr [rax]"], [108, "cmp al, 0Dh"], [109, "jnz short loc_4132B1"], [110, "mov rax, [rbp+var_28]"], [111, "mov rax, [rax]"], [112, "lea rdx, [rax-1]"], [113, "mov rax, [rbp+var_28]"], [114, "mov [rax], rdx"], [115, "mov rax, [rbp+var_28]"], [116, "mov rdx, [rax+10h]"], [117, "mov rax, [rbp+var_28]"], [118, "mov rax, [rax]"], [119, "add rax, rdx"], [120, "mov byte ptr [rax], 0"], [121, "mov eax, 0"], [122, "mov rbx, [rbp+var_8]"], [123, "leave"], [124, "retn"]], "data_dep": [[7, 4], [8, 7], [9, 8], [11, 4], [12, 57], [12, 11], [13, 4], [14, 13], [14, 57], [15, 12], [16, 15], [16, 14], [17, 16], [18, 17], [19, 4], [20, 19], [20, 57], [21, 57], [21, 20], [21, 12], [22, 4], [23, 21], [24, 22], [26, 4], [27, 26], [27, 57], [28, 27], [29, 4], [30, 57], [30, 29], [31, 30], [32, 28], [33, 31], [33, 32], [34, 33], [35, 4], [36, 57], [36, 35], [37, 4], [38, 57], [38, 37], [39, 24], [39, 53], [39, 57], [39, 38], [40, 6], [41, 5], [42, 40], [43, 41], [44, 43], [45, 44], [46, 4], [47, 57], [47, 46], [48, 4], [49, 48], [49, 57], [50, 4], [51, 57], [51, 50], [52, 49], [52, 51], [53, 52], [55, 57], [55, 54], [55, 49], [56, 4], [57, 56], [57, 55], [58, 4], [59, 57], [59, 58], [60, 9], [60, 59], [61, 60], [62, 4], [63, 62], [63, 57], [64, 4], [65, 64], [65, 57], [66, 65], [67, 63], [67, 66], [68, 57], [68, 67], [69, 68], [70, 69], [73, 4], [74, 73], [74, 57], [75, 74], [75, 9], [76, 75], [79, 4], [80, 57], [80, 79], [81, 80], [81, 9], [82, 81], [83, 4], [84, 83], [84, 57], [85, 4], [86, 85], [86, 57], [87, 86], [88, 87], [88, 84], [89, 88], [89, 57], [90, 89], [91, 90], [92, 4], [93, 92], [93, 96], [93, 57], [94, 96], [94, 57], [94, 84], [94, 93], [95, 4], [96, 95], [96, 94], [97, 4], [98, 96], [98, 97], [99, 98], [99, 9], [100, 99], [101, 4], [102, 57], [102, 101], [102, 96], [103, 4], [104, 96], [104, 57], [104, 103], [105, 104], [106, 102], [106, 105], [107, 106], [107, 96], [107, 57], [108, 107], [109, 108], [110, 4], [111, 110], [111, 96], [111, 57], [111, 114], [112, 57], [112, 114], [112, 102], [112, 111], [112, 96], [113, 4], [114, 113], [114, 112], [115, 4], [116, 120], [116, 115], [116, 96], [116, 57], [116, 114], [117, 4], [118, 117], [118, 96], [118, 57], [118, 114], [118, 120], [119, 116], [119, 118], [120, 119], [124, 121], [124, 77]]}
static int js_method_set_properties(JSContext *ctx, JSValueConst func_obj, JSAtom name, int flags, JSValueConst home_obj) { JSValue name_str; name_str = js_get_function_name(ctx, name); if (flags & JS_PROP_HAS_GET) { name_str = JS_ConcatString3(ctx, "get ", name_str, ""); } else if (flags & JS_PROP_HAS_SET) { name_str = JS_ConcatString3(ctx, "set ", name_str, ""); } if (JS_IsException(name_str)) return -1; if (JS_DefinePropertyValue(ctx, func_obj, JS_ATOM_name, name_str, JS_PROP_CONFIGURABLE) < 0) return -1; js_method_set_home_object(ctx, func_obj, home_obj); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41233A", "function_addr": 4268858, "binary_name": "14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, rsi"], [5, "mov rsi, rdx"], [6, "mov rdx, rsi"], [7, "mov [rbp+var_30], rax"], [8, "mov [rbp+var_28], rdx"], [9, "mov [rbp+var_1C], ecx"], [10, "mov [rbp+var_20], r8d"], [11, "mov edx, [rbp+var_1C]"], [12, "mov rax, [rbp+var_18]"], [13, "mov esi, edx"], [14, "mov rdi, rax"], [15, "call sub_4122C9"], [16, "mov [rbp+var_10], rax"], [17, "mov [rbp+var_8], rdx"], [18, "mov eax, [rbp+var_20]"], [19, "and eax, 800h"], [20, "test eax, eax"], [21, "jz short loc_4123AF"], [22, "mov rax, [rbp+var_10]"], [23, "mov rdx, [rbp+var_8]"], [24, "mov rdi, [rbp+var_18]"], [25, "mov r8d, offset unk_4B3E48"], [26, "mov rcx, rdx"], [27, "mov rdx, rax"], [28, "mov esi, offset aGet"], [29, "call sub_40FAA9"], [30, "mov [rbp+var_10], rax"], [31, "mov [rbp+var_8], rdx"], [32, "jmp short loc_4123E5"], [33, "mov eax, [rbp+var_20]"], [34, "and eax, 1000h"], [35, "test eax, eax"], [36, "jz short loc_4123E5"], [37, "mov rax, [rbp+var_10]"], [38, "mov rdx, [rbp+var_8]"], [39, "mov rdi, [rbp+var_18]"], [40, "mov r8d, offset unk_4B3E48"], [41, "mov rcx, rdx"], [42, "mov rdx, rax"], [43, "mov esi, offset aSet"], [44, "call sub_40FAA9"], [45, "mov [rbp+var_10], rax"], [46, "mov [rbp+var_8], rdx"], [47, "mov rdx, [rbp+var_10]"], [48, "mov rax, [rbp+var_8]"], [49, "mov rdi, rdx"], [50, "mov rsi, rax"], [51, "call sub_409EFF"], [52, "test eax, eax"], [53, "jz short loc_412403"], [54, "mov eax, 0FFFFFFFFh"], [55, "jmp short locret_412463"], [56, "mov rax, [rbp+var_10]"], [57, "mov rdx, [rbp+var_8]"], [58, "mov rsi, [rbp+var_30]"], [59, "mov r10, [rbp+var_28]"], [60, "mov rdi, [rbp+var_18]"], [61, "sub rsp, 8"], [62, "push 1"], [63, "mov r8, rax"], [64, "mov r9, rdx"], [65, "mov ecx, 35h "], [66, "mov rdx, r10"], [67, "call sub_41E3DD"], [68, "add rsp, 10h"], [69, "test eax, eax"], [70, "jns short loc_41243F"], [71, "mov eax, 0FFFFFFFFh"], [72, "jmp short locret_412463"], [73, "mov rcx, [rbp+arg_0]"], [74, "mov rdi, [rbp+arg_8]"], [75, "mov rsi, [rbp+var_30]"], [76, "mov rdx, [rbp+var_28]"], [77, "mov rax, [rbp+var_18]"], [78, "mov r8, rdi"], [79, "mov rdi, rax"], [80, "call sub_4121C8"], [81, "mov eax, 0"], [82, "leave"], [83, "retn"]], "data_dep": [[6, 5], [7, 4], [8, 6], [11, 9], [12, 3], [13, 11], [14, 12], [16, 15], [17, 11], [18, 10], [19, 18], [20, 19], [21, 20], [22, 16], [23, 17], [24, 3], [26, 23], [27, 22], [30, 29], [31, 27], [33, 10], [34, 33], [35, 34], [36, 35], [37, 16], [38, 17], [39, 3], [41, 38], [42, 37], [45, 44], [46, 42], [47, 16], [47, 30], [47, 45], [48, 17], [48, 31], [48, 46], [49, 47], [50, 48], [52, 51], [53, 52], [56, 16], [56, 30], [56, 45], [57, 17], [57, 31], [57, 46], [58, 7], [59, 8], [60, 3], [61, 2], [63, 56], [64, 57], [66, 59], [68, 61], [69, 67], [70, 69], [74, 46], [74, 31], [74, 17], [75, 7], [76, 8], [77, 3], [78, 74], [79, 77], [83, 54], [83, 81], [83, 71]]}
UG_S16 UG_WindowGetYEnd( UG_WINDOW* wnd ) { UG_S16 ye = -1; if ( (wnd != NULL) && (wnd->state & WND_STATE_VALID) ) { ye = wnd->ye; } return ye; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4064CA", "function_addr": 4220106, "binary_name": "3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_2], 0FFFFh"], [4, "cmp [rbp+var_18], 0"], [5, "jz short loc_4064FD"], [6, "mov rax, [rbp+var_18]"], [7, "movzx eax, byte ptr [rax+10h]"], [8, "movzx eax, al"], [9, "and eax, 2"], [10, "test eax, eax"], [11, "jz short loc_4064FD"], [12, "mov rax, [rbp+var_18]"], [13, "movzx eax, word ptr [rax+22h]"], [14, "mov [rbp+var_2], ax"], [15, "movzx eax, [rbp+var_2]"], [16, "pop rbp"], [17, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 2], [13, 12], [14, 13], [15, 14], [15, 3], [16, 0], [17, 15]]}
static void mesh_transport_key_and_virtual_address_iterator_next(mesh_transport_key_and_virtual_address_iterator_t * it){ if (mesh_network_address_virtual(it->dst)) { it->address = mesh_virtual_address_iterator_get_next(&it->address_it); } else { it->key = mesh_transport_key_aid_iterator_get_next(&it->key_it); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44EF9A", "function_addr": 4517786, "binary_name": "0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "movzx eax, word ptr [rax+60h]"], [6, "movzx eax, ax"], [7, "mov edi, eax"], [8, "call sub_44AAD6"], [9, "test eax, eax"], [10, "jz short loc_44EFD6"], [11, "mov rax, [rbp+var_8]"], [12, "add rax, 28h "], [13, "mov rdi, rax"], [14, "call sub_451F1B"], [15, "mov rdx, [rbp+var_8]"], [16, "mov [rdx+58h], rax"], [17, "jmp short loc_44EFEA"], [18, "mov rax, [rbp+var_8]"], [19, "mov rdi, rax"], [20, "call sub_448953"], [21, "mov rdx, [rbp+var_8]"], [22, "mov [rdx+50h], rax"], [23, "nop"], [24, "leave"], [25, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [9, 8], [10, 9], [11, 3], [12, 11], [13, 12], [15, 3], [16, 15], [16, 14], [18, 3], [19, 18], [21, 3], [22, 20], [22, 21], [25, 14], [25, 20]]}
void u8g_page_Init(u8g_page_t *p, u8g_uint_t page_height, u8g_uint_t total_height ) { p->page_height = page_height; p->total_height = total_height; p->page = 0; u8g_page_First(p); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40AA2F", "function_addr": 4237871, "binary_name": "afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov ecx, esi"], [5, "mov eax, edx"], [6, "mov edx, ecx"], [7, "mov [rbp+var_C], dx"], [8, "mov [rbp+var_10], ax"], [9, "mov rax, [rbp+var_8]"], [10, "movzx edx, [rbp+var_C]"], [11, "mov [rax], dx"], [12, "mov rax, [rbp+var_8]"], [13, "movzx edx, [rbp+var_10]"], [14, "mov [rax+2], dx"], [15, "mov rax, [rbp+var_8]"], [16, "mov byte ptr [rax+8], 0"], [17, "mov rax, [rbp+var_8]"], [18, "mov rdi, rax"], [19, "call sub_40AA77"], [20, "nop"], [21, "leave"], [22, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 5], [9, 3], [10, 7], [11, 10], [11, 9], [12, 3], [13, 8], [14, 13], [14, 12], [15, 3], [16, 15], [17, 3], [18, 17], [22, 19]]}
static int block_is_last(const block_header_t * block) { return block_size(block) == 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_472BDE", "function_addr": 4664286, "binary_name": "53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 8"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rdi, rax"], [6, "call sub_472B7E"], [7, "test rax, rax"], [8, "setz al"], [9, "movzx eax, al"], [10, "leave"], [11, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [8, 7], [9, 8], [11, 9]]}
bool InDataContainer ( // return true, if ptr is in old_container const DataContainer_t *dc, // NULL or valid old_container const void *ptr // NULL or pointer to test ) { return dc && ptr && (u8*)ptr >= dc->data && (u8*)ptr <= dc->data + dc->size; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4981F0", "function_addr": 4817392, "binary_name": "76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60.elf_extract.pkl\n"}, "code": [[0, "mov [rsp+var_8], rdi"], [1, "mov [rsp+var_10], rsi"], [2, "cmp [rsp+var_8], 0"], [3, "jz short loc_49823D"], [4, "cmp [rsp+var_10], 0"], [5, "jz short loc_49823D"], [6, "mov rax, [rsp+var_8]"], [7, "mov rax, [rax+10h]"], [8, "cmp [rsp+var_10], rax"], [9, "jb short loc_49823D"], [10, "mov rax, [rsp+var_8]"], [11, "mov rdx, [rax+10h]"], [12, "mov rax, [rsp+var_8]"], [13, "mov eax, [rax+18h]"], [14, "mov eax, eax"], [15, "add rax, rdx"], [16, "cmp [rsp+var_10], rax"], [17, "ja short loc_49823D"], [18, "mov eax, 1"], [19, "retn"], [20, "mov eax, 0"], [21, "retn"]], "data_dep": [[2, 0], [3, 2], [4, 1], [5, 4], [6, 0], [7, 6], [8, 1], [8, 7], [9, 8], [10, 0], [11, 10], [12, 0], [13, 12], [14, 13], [15, 11], [15, 14], [16, 1], [16, 15], [17, 16], [19, 18], [21, 20]]}
void InitDocTable() { int a, i; double doc_len_pow = 0; double d1, power = 0.75; doc_table = (int *) malloc(table_size * sizeof(int)); for (a = 0; a < corpus_size; a++) doc_len_pow += pow(docs[a], power); i = 0; d1 = pow(docs[i], power) / doc_len_pow; for (a = 0; a < table_size; a++) { doc_table[a] = i; if (a / (double) table_size > d1) { i++; d1 += pow(docs[i], power) / doc_len_pow; } if (i >= corpus_size) i = corpus_size - 1; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4018DC", "function_addr": 4200668, "binary_name": "aff58d7b8484487fd4852231b7744c25c222df9168e8589bdf48b63944abe6b0.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "pxor xmm0, xmm0"], [4, "movsd [rbp+var_10], xmm0"], [5, "movsd xmm0, cs:qword_408F88"], [6, "movsd [rbp+y], xmm0"], [7, "mov eax, 5F5E100h"], [8, "cdqe"], [9, "shl rax, 2"], [10, "mov rdi, rax"], [11, "call _malloc"], [12, "mov cs:qword_40B828, rax"], [13, "mov [rbp+var_4], 0"], [14, "jmp short loc_401964"], [15, "mov rdx, cs:qword_40B7A0"], [16, "mov eax, [rbp+var_4]"], [17, "cdqe"], [18, "shl rax, 2"], [19, "add rax, rdx"], [20, "mov eax, [rax]"], [21, "pxor xmm2, xmm2"], [22, "cvtsi2sd xmm2, eax"], [23, "movq rax, xmm2"], [24, "movsd xmm0, [rbp+y]"], [25, "movapd xmm1, xmm0"], [26, "movq xmm0, rax"], [27, "call _pow"], [28, "movsd xmm1, [rbp+var_10]"], [29, "addsd xmm0, xmm1"], [30, "movsd [rbp+var_10], xmm0"], [31, "add [rbp+var_4], 1"], [32, "mov eax, [rbp+var_4]"], [33, "movsxd rdx, eax"], [34, "mov rax, cs:qword_40B7B8"], [35, "cmp rdx, rax"], [36, "jl short loc_40191D"], [37, "mov [rbp+var_8], 0"], [38, "mov rdx, cs:qword_40B7A0"], [39, "mov eax, [rbp+var_8]"], [40, "cdqe"], [41, "shl rax, 2"], [42, "add rax, rdx"], [43, "mov eax, [rax]"], [44, "pxor xmm3, xmm3"], [45, "cvtsi2sd xmm3, eax"], [46, "movq rax, xmm3"], [47, "movsd xmm0, [rbp+y]"], [48, "movapd xmm1, xmm0"], [49, "movq xmm0, rax"], [50, "call _pow"], [51, "movq rax, xmm0"], [52, "movq xmm0, rax"], [53, "divsd xmm0, [rbp+var_10]"], [54, "movsd [rbp+var_18], xmm0"], [55, "mov [rbp+var_4], 0"], [56, "jmp loc_401A84"], [57, "mov rdx, cs:qword_40B828"], [58, "mov eax, [rbp+var_4]"], [59, "cdqe"], [60, "shl rax, 2"], [61, "add rdx, rax"], [62, "mov eax, [rbp+var_8]"], [63, "mov [rdx], eax"], [64, "pxor xmm0, xmm0"], [65, "cvtsi2sd xmm0, [rbp+var_4]"], [66, "mov eax, 5F5E100h"], [67, "pxor xmm1, xmm1"], [68, "cvtsi2sd xmm1, eax"], [69, "divsd xmm0, xmm1"], [70, "comisd xmm0, [rbp+var_18]"], [71, "jbe short loc_401A61"], [72, "add [rbp+var_8], 1"], [73, "mov rdx, cs:qword_40B7A0"], [74, "mov eax, [rbp+var_8]"], [75, "cdqe"], [76, "shl rax, 2"], [77, "add rax, rdx"], [78, "mov eax, [rax]"], [79, "pxor xmm4, xmm4"], [80, "cvtsi2sd xmm4, eax"], [81, "movq rax, xmm4"], [82, "movsd xmm0, [rbp+y]"], [83, "movapd xmm1, xmm0"], [84, "movq xmm0, rax"], [85, "call _pow"], [86, "movq rax, xmm0"], [87, "movq xmm0, rax"], [88, "divsd xmm0, [rbp+var_10]"], [89, "movsd xmm1, [rbp+var_18]"], [90, "addsd xmm0, xmm1"], [91, "movsd [rbp+var_18], xmm0"], [92, "mov eax, [rbp+var_8]"], [93, "movsxd rdx, eax"], [94, "mov rax, cs:qword_40B7B8"], [95, "cmp rdx, rax"], [96, "jl short loc_401A80"], [97, "mov rax, cs:qword_40B7B8"], [98, "sub eax, 1"], [99, "mov [rbp+var_8], eax"], [100, "add [rbp+var_4], 1"], [101, "mov eax, 5F5E100h"], [102, "cmp [rbp+var_4], eax"], [103, "jl loc_4019D2"], [104, "nop"], [105, "nop"], [106, "leave"], [107, "retn"]], "data_dep": [[4, 3], [6, 5], [9, 7], [10, 9], [12, 11], [16, 13], [16, 31], [18, 16], [19, 18], [19, 15], [20, 19], [22, 21], [22, 20], [23, 22], [24, 6], [25, 24], [26, 23], [28, 30], [28, 4], [29, 26], [29, 28], [30, 29], [31, 31], [31, 13], [32, 13], [32, 31], [33, 32], [35, 33], [35, 34], [36, 35], [39, 37], [41, 39], [42, 41], [42, 38], [43, 42], [45, 43], [45, 44], [46, 45], [47, 6], [48, 47], [49, 46], [51, 49], [52, 51], [53, 4], [53, 52], [53, 30], [54, 53], [57, 12], [58, 55], [58, 100], [60, 58], [61, 60], [61, 57], [62, 72], [62, 99], [62, 37], [63, 61], [63, 62], [65, 100], [65, 55], [65, 64], [68, 66], [68, 67], [69, 65], [69, 68], [70, 91], [70, 54], [70, 69], [71, 61], [72, 72], [72, 99], [72, 37], [74, 72], [76, 74], [77, 76], [77, 73], [78, 77], [78, 63], [80, 78], [80, 79], [81, 80], [82, 6], [83, 82], [84, 81], [86, 84], [87, 86], [88, 30], [88, 87], [88, 4], [89, 54], [89, 91], [90, 88], [90, 89], [91, 90], [92, 72], [92, 99], [92, 37], [93, 92], [95, 93], [95, 94], [96, 95], [98, 97], [99, 98], [100, 55], [100, 100], [102, 100], [102, 101], [102, 55], [103, 102], [107, 101]]}
static int port_is_ieee8021as(struct port *p) { if (p->asCapable == ALWAYS_CAPABLE) { return 0; } return p->follow_up_info ? 1 : 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_410195", "function_addr": 4260245, "binary_name": "7af1f850afc1c3e89c40b08da14a93ca4e7a54739e2c3e87f7b06a31ef70aec1.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 eax, [rax+158h]"], [5, "cmp eax, 2"], [6, "jnz short loc_4101B3"], [7, "mov eax, 0"], [8, "jmp short loc_4101C5"], [9, "mov rax, [rbp+var_8]"], [10, "mov eax, [rax+180h]"], [11, "test eax, eax"], [12, "setnz al"], [13, "movzx eax, al"], [14, "pop rbp"], [15, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [9, 2], [10, 9], [11, 10], [12, 11], [13, 12], [14, 0], [15, 7], [15, 13]]}
static int _demultiplex_slip(FILE *stream, int iface_fd, int out_fd) { FILE *target; int escaped = 0; int byte; if ((byte = fgetc(stream)) == EOF) { _flush_stream(stream); return -1; } if (byte == SLIP_START_STDIO) { if ((byte = fgetc(stream)) == EOF) { _flush_stream(stream); return -1; } target = fdopen(dup(out_fd), "w"); /* don't print initial new line */ } else { switch (byte & SLIP_START_NET_MASK) { case SLIP_START_NET_IPV4: case SLIP_START_NET_IPV6: target = fdopen(dup(iface_fd), "w"); break; default: fprintf(stderr, "Unknown packet type 0x%02x\n", byte); _flush_stream(stream); return 0; } } while (byte != SLIP_END) { switch ((uint8_t)byte) { case SLIP_ESC: escaped = 1; break; case SLIP_END: fflush(target); fclose(target); return 0; case SLIP_END_ESC: if (escaped) { byte = SLIP_END; escaped = 0; } /* Intentionally falls through */ /* to default when !escaped */ case SLIP_ESC_ESC: if (escaped) { byte = SLIP_ESC; escaped = 0; } /* Intentionally falls through */ default: fputc(byte, target); break; } if ((byte = fgetc(stream)) == EOF) { _flush_stream(stream); fclose(target); return -1; } } fclose(target); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401CE3", "function_addr": 4201699, "binary_name": "bd407020cf86f8891a14dc104920383db86c7b2a8a3a061bcc932ec6d7ac3596.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+stream], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+fd], edx"], [6, "mov [rbp+var_C], 0"], [7, "mov rax, [rbp+stream]"], [8, "mov rdi, rax"], [9, "call _fgetc"], [10, "mov [rbp+c], eax"], [11, "cmp [rbp+c], 0FFFFFFFFh"], [12, "jnz short loc_401D27"], [13, "mov rax, [rbp+stream]"], [14, "mov rdi, rax"], [15, "call sub_401C93"], [16, "mov eax, 0FFFFFFFFh"], [17, "jmp locret_401EC3"], [18, "cmp [rbp+c], 0Ah"], [19, "jnz short loc_401D77"], [20, "mov rax, [rbp+stream]"], [21, "mov rdi, rax"], [22, "call _fgetc"], [23, "mov [rbp+c], eax"], [24, "cmp [rbp+c], 0FFFFFFFFh"], [25, "jnz short loc_401D58"], [26, "mov rax, [rbp+stream]"], [27, "mov rdi, rax"], [28, "call sub_401C93"], [29, "mov eax, 0FFFFFFFFh"], [30, "jmp locret_401EC3"], [31, "mov eax, [rbp+fd]"], [32, "mov edi, eax"], [33, "call _dup"], [34, "mov esi, offset modes"], [35, "mov edi, eax"], [36, "call _fdopen"], [37, "mov [rbp+var_8], rax"], [38, "jmp loc_401EA5"], [39, "mov eax, [rbp+c]"], [40, "and eax, 0F0h"], [41, "cmp eax, 40h "], [42, "jz short loc_401D89"], [43, "cmp eax, 60h "], [44, "jnz short loc_401DA5"], [45, "mov eax, [rbp+var_1C]"], [46, "mov edi, eax"], [47, "call _dup"], [48, "mov esi, offset modes"], [49, "mov edi, eax"], [50, "call _fdopen"], [51, "mov [rbp+var_8], rax"], [52, "jmp short loc_401DD7"], [53, "mov rax, cs:stderr"], [54, "mov edx, [rbp+c]"], [55, "mov esi, offset aUnknownPacketT"], [56, "mov rdi, rax"], [57, "mov eax, 0"], [58, "call _fprintf"], [59, "mov rax, [rbp+stream]"], [60, "mov rdi, rax"], [61, "call sub_401C93"], [62, "mov eax, 0"], [63, "jmp locret_401EC3"], [64, "jmp loc_401EA5"], [65, "mov eax, [rbp+c]"], [66, "movzx eax, al"], [67, "cmp eax, 0DDh"], [68, "jz short loc_401E4B"], [69, "cmp eax, 0DDh"], [70, "jg short loc_401E5F"], [71, "cmp eax, 0DCh"], [72, "jz short loc_401E37"], [73, "cmp eax, 0DCh"], [74, "jg short loc_401E5F"], [75, "cmp eax, 0C0h"], [76, "jz short loc_401E15"], [77, "cmp eax, 0DBh"], [78, "jnz short loc_401E5F"], [79, "mov [rbp+var_C], 1"], [80, "jmp short loc_401E71"], [81, "mov rax, [rbp+var_8]"], [82, "mov rdi, rax"], [83, "call _fflush"], [84, "mov rax, [rbp+var_8]"], [85, "mov rdi, rax"], [86, "call _fclose"], [87, "mov eax, 0"], [88, "jmp locret_401EC3"], [89, "cmp [rbp+var_C], 0"], [90, "jz short loc_401E4B"], [91, "mov [rbp+c], 0C0h"], [92, "mov [rbp+var_C], 0"], [93, "cmp [rbp+var_C], 0"], [94, "jz short loc_401E5F"], [95, "mov [rbp+c], 0DBh"], [96, "mov [rbp+var_C], 0"], [97, "mov rdx, [rbp+var_8]"], [98, "mov eax, [rbp+c]"], [99, "mov rsi, rdx"], [100, "mov edi, eax"], [101, "call _fputc"], [102, "nop"], [103, "mov rax, [rbp+stream]"], [104, "mov rdi, rax"], [105, "call _fgetc"], [106, "mov [rbp+c], eax"], [107, "cmp [rbp+c], 0FFFFFFFFh"], [108, "jnz short loc_401EA5"], [109, "mov rax, [rbp+stream]"], [110, "mov rdi, rax"], [111, "call sub_401C93"], [112, "mov rax, [rbp+var_8]"], [113, "mov rdi, rax"], [114, "call _fclose"], [115, "mov eax, 0FFFFFFFFh"], [116, "jmp short locret_401EC3"], [117, "cmp [rbp+c], 0C0h"], [118, "jnz loc_401DDC"], [119, "mov rax, [rbp+var_8]"], [120, "mov rdi, rax"], [121, "call _fclose"], [122, "mov eax, 0"], [123, "leave"], [124, "retn"]], "data_dep": [[7, 3], [8, 7], [10, 9], [11, 10], [12, 11], [13, 3], [14, 13], [18, 10], [19, 18], [20, 3], [21, 20], [23, 22], [24, 23], [25, 24], [26, 3], [27, 26], [31, 5], [32, 31], [35, 33], [37, 36], [39, 10], [40, 39], [41, 40], [42, 41], [43, 40], [44, 43], [45, 4], [46, 45], [49, 47], [51, 50], [54, 10], [56, 53], [59, 3], [60, 59], [65, 106], [65, 10], [65, 23], [66, 65], [67, 66], [68, 67], [69, 66], [70, 69], [71, 66], [72, 71], [73, 66], [74, 73], [75, 66], [76, 75], [77, 66], [78, 77], [81, 51], [81, 37], [82, 81], [84, 51], [84, 37], [85, 84], [89, 6], [89, 79], [89, 92], [89, 96], [90, 89], [93, 6], [93, 79], [93, 92], [93, 96], [94, 93], [97, 51], [97, 37], [98, 23], [98, 91], [98, 10], [98, 95], [98, 106], [99, 97], [100, 98], [103, 3], [104, 103], [106, 105], [107, 106], [108, 107], [109, 3], [110, 109], [112, 51], [112, 37], [113, 112], [117, 23], [117, 10], [117, 106], [118, 117], [119, 51], [119, 37], [120, 119], [124, 122], [124, 115], [124, 62], [124, 87], [124, 16], [124, 29]]}
int bam_name2id(bam_hdr_t *h, const char *ref) { sdict_t *d = (sdict_t*)h->sdict; khint_t k; if (h->sdict == 0) { int i, absent; d = kh_init(s2i); for (i = 0; i < h->n_targets; ++i) { k = kh_put(s2i, d, h->target_name[i], &absent); kh_val(d, k) = i; } h->sdict = d; } k = kh_get(s2i, d, ref); return k == kh_end(d)? -1 : kh_val(d, k); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4148D7", "function_addr": 4278487, "binary_name": "46189af39af10ccaca23eefe30c687d1c137b2067e20bf73f79a757c1f387e60.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rax, [rbp+var_28]"], [6, "mov rax, [rax+30h]"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_28]"], [9, "mov rax, [rax+30h]"], [10, "test rax, rax"], [11, "jnz short loc_414974"], [12, "call sub_4087B9"], [13, "mov [rbp+var_8], rax"], [14, "mov [rbp+var_C], 0"], [15, "jmp short loc_41495D"], [16, "mov rax, [rbp+var_28]"], [17, "mov rdx, [rax+20h]"], [18, "mov eax, [rbp+var_C]"], [19, "cdqe"], [20, "shl rax, 3"], [21, "add rax, rdx"], [22, "mov rcx, [rax]"], [23, "lea rdx, [rbp+var_14]"], [24, "mov rax, [rbp+var_8]"], [25, "mov rsi, rcx"], [26, "mov rdi, rax"], [27, "call sub_408F51"], [28, "mov [rbp+var_10], eax"], [29, "mov rax, [rbp+var_8]"], [30, "mov rdx, [rax+20h]"], [31, "mov eax, [rbp+var_10]"], [32, "shl rax, 3"], [33, "add rdx, rax"], [34, "mov eax, [rbp+var_C]"], [35, "cdqe"], [36, "mov [rdx], rax"], [37, "add [rbp+var_C], 1"], [38, "mov rax, [rbp+var_28]"], [39, "mov eax, [rax]"], [40, "cmp [rbp+var_C], eax"], [41, "jl short loc_414912"], [42, "mov rax, [rbp+var_28]"], [43, "mov rdx, [rbp+var_8]"], [44, "mov [rax+30h], rdx"], [45, "mov rdx, [rbp+var_30]"], [46, "mov rax, [rbp+var_8]"], [47, "mov rsi, rdx"], [48, "mov rdi, rax"], [49, "call sub_408896"], [50, "mov [rbp+var_10], eax"], [51, "mov rax, [rbp+var_8]"], [52, "mov eax, [rax]"], [53, "cmp [rbp+var_10], eax"], [54, "jz short loc_4149AC"], [55, "mov rax, [rbp+var_8]"], [56, "mov rdx, [rax+20h]"], [57, "mov eax, [rbp+var_10]"], [58, "shl rax, 3"], [59, "add rax, rdx"], [60, "mov rax, [rax]"], [61, "jmp short locret_4149B1"], [62, "mov eax, 0FFFFFFFFh"], [63, "leave"], [64, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 3], [9, 8], [10, 9], [11, 10], [13, 12], [16, 3], [17, 36], [17, 16], [18, 37], [18, 14], [20, 18], [21, 17], [21, 20], [22, 21], [22, 36], [23, 17], [24, 13], [25, 22], [26, 24], [28, 27], [29, 13], [30, 36], [30, 29], [31, 28], [32, 31], [33, 32], [33, 30], [34, 37], [34, 14], [36, 34], [36, 33], [37, 14], [37, 37], [38, 3], [39, 36], [39, 38], [40, 14], [40, 37], [40, 39], [41, 40], [42, 3], [43, 13], [44, 42], [44, 43], [45, 4], [46, 7], [46, 13], [47, 45], [48, 46], [50, 49], [51, 13], [51, 7], [52, 36], [52, 51], [52, 44], [53, 50], [53, 52], [54, 53], [55, 7], [55, 13], [56, 55], [56, 36], [56, 44], [57, 50], [58, 57], [59, 58], [59, 56], [60, 59], [60, 36], [60, 44], [64, 62], [64, 60]]}
static noinline void check_multi_find(struct xarray *xa) { #ifdef CONFIG_XARRAY_MULTI unsigned long index; xa_store_order(xa, 12, 2, xa_mk_value(12), GFP_KERNEL); XA_BUG_ON(xa, xa_store_index(xa, 16, GFP_KERNEL) != NULL); index = 0; XA_BUG_ON(xa, xa_find(xa, &index, ULONG_MAX, XA_PRESENT) != xa_mk_value(12)); XA_BUG_ON(xa, index != 12); index = 13; XA_BUG_ON(xa, xa_find(xa, &index, ULONG_MAX, XA_PRESENT) != xa_mk_value(12)); XA_BUG_ON(xa, (index < 12) || (index >= 16)); XA_BUG_ON(xa, xa_find_after(xa, &index, ULONG_MAX, XA_PRESENT) != xa_mk_value(16)); XA_BUG_ON(xa, index != 16); xa_erase_index(xa, 12); xa_erase_index(xa, 16); XA_BUG_ON(xa, !xa_empty(xa)); #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_426F3F", "function_addr": 4353855, "binary_name": "34629fd5d60499507e6ea5e743f406ca8f0a51fe149882f737b67e5850456490.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, 58h"], [8, "mov [rbp+var_78], rdi"], [9, "lea r12, [rbp+var_70]"], [10, "mov r15, r12"], [11, "cmp cs:__asan_option_detect_stack_use_after_return, 0"], [12, "jz short loc_426F76"], [13, "mov edi, 40h "], [14, "call ___asan_stack_malloc_0"], [15, "test rax, rax"], [16, "jz short loc_426F76"], [17, "mov r12, rax"], [18, "lea rax, [r12+40h]"], [19, "mov rbx, rax"], [20, "mov qword ptr [r12], 41B58AB3h"], [21, "mov qword ptr [r12+8], offset a13289Index719"], [22, "mov qword ptr [r12+10h], offset sub_426F3F"], [23, "mov r13, r12"], [24, "shr r13, 3"], [25, "mov dword ptr [r13+7FFF8000h], 0F1F1F1F1h"], [26, "mov dword ptr [r13+7FFF8004h], 0F3F3F300h"], [27, "mov edi, 0Ch"], [28, "call sub_40A0C7"], [29, "mov rdx, rax"], [30, "mov rax, [rbp+var_78]"], [31, "mov r8d, 24000C0h"], [32, "mov rcx, rdx"], [33, "mov edx, 2"], [34, "mov esi, 0Ch"], [35, "mov rdi, rax"], [36, "call sub_41DD69"], [37, "mov eax, cs:dword_4ADCE0"], [38, "add eax, 1"], [39, "mov cs:dword_4ADCE0, eax"], [40, "mov rax, [rbp+var_78]"], [41, "mov edx, 24000C0h"], [42, "mov esi, 10h"], [43, "mov rdi, rax"], [44, "call sub_41D9F5"], [45, "test rax, rax"], [46, "jz short loc_42704E"], [47, "mov edx, 2D2h"], [48, "mov esi, offset aCheckMultiFind"], [49, "mov edi, offset aBugAtSD"], [50, "mov eax, 0"], [51, "call _printf"], [52, "mov rax, [rbp+var_78]"], [53, "mov rdi, rax"], [54, "call sub_41D7AC"], [55, "call ___asan_handle_no_return"], [56, "mov ecx, offset aCheckMultiFind_0"], [57, "mov edx, 2D2h"], [58, "mov esi, offset aLibTestXarrayC"], [59, "mov edi, offset a0"], [60, "call ___assert_fail"], [61, "mov eax, cs:dword_4ADD20"], [62, "add eax, 1"], [63, "mov cs:dword_4ADD20, eax"], [64, "lea rax, [rbx-20h]"], [65, "mov rdx, rax"], [66, "shr rdx, 3"], [67, "add rdx, 7FFF8000h"], [68, "movzx edx, byte ptr [rdx]"], [69, "test dl, dl"], [70, "jz short loc_42707E"], [71, "mov rdi, rax"], [72, "call ___asan_report_store8"], [73, "mov qword ptr [rbx-20h], 0"], [74, "mov eax, cs:dword_4ADCE0"], [75, "add eax, 1"], [76, "mov cs:dword_4ADCE0, eax"], [77, "lea rsi, [rbx-20h]"], [78, "mov rax, [rbp+var_78]"], [79, "mov ecx, 8"], [80, "mov rdx, 0FFFFFFFFFFFFFFFFh"], [81, "mov rdi, rax"], [82, "call sub_41BA6B"], [83, "mov r14, rax"], [84, "mov edi, 0Ch"], [85, "call sub_40A0C7"], [86, "cmp r14, rax"], [87, "jz short loc_427106"], [88, "mov edx, 2D5h"], [89, "mov esi, offset aCheckMultiFind"], [90, "mov edi, offset aBugAtSD"], [91, "mov eax, 0"], [92, "call _printf"], [93, "mov rax, [rbp+var_78]"], [94, "mov rdi, rax"], [95, "call sub_41D7AC"], [96, "call ___asan_handle_no_return"], [97, "mov ecx, offset aCheckMultiFind_0"], [98, "mov edx, 2D5h"], [99, "mov esi, offset aLibTestXarrayC"], [100, "mov edi, offset a0"], [101, "call ___assert_fail"], [102, "mov eax, cs:dword_4ADD20"], [103, "add eax, 1"], [104, "mov cs:dword_4ADD20, eax"], [105, "mov eax, cs:dword_4ADCE0"], [106, "add eax, 1"], [107, "mov cs:dword_4ADCE0, eax"], [108, "lea rax, [rbx-20h]"], [109, "mov rdx, rax"], [110, "shr rdx, 3"], [111, "add rdx, 7FFF8000h"], [112, "movzx edx, byte ptr [rdx]"], [113, "test dl, dl"], [114, "jz short loc_427145"], [115, "mov rdi, rax"], [116, "call ___asan_report_load8"], [117, "mov rax, [rbx-20h]"], [118, "cmp rax, 0Ch"], [119, "jz short loc_427192"], [120, "mov edx, 2D7h"], [121, "mov esi, offset aCheckMultiFind"], [122, "mov edi, offset aBugAtSD"], [123, "mov eax, 0"], [124, "call _printf"], [125, "mov rax, [rbp+var_78]"], [126, "mov rdi, rax"], [127, "call sub_41D7AC"], [128, "call ___asan_handle_no_return"], [129, "mov ecx, offset aCheckMultiFind_0"], [130, "mov edx, 2D7h"], [131, "mov esi, offset aLibTestXarrayC"], [132, "mov edi, offset a0"], [133, "call ___assert_fail"], [134, "mov eax, cs:dword_4ADD20"], [135, "add eax, 1"], [136, "mov cs:dword_4ADD20, eax"], [137, "lea rax, [rbx-20h]"], [138, "mov rdx, rax"], [139, "shr rdx, 3"], [140, "add rdx, 7FFF8000h"], [141, "movzx edx, byte ptr [rdx]"], [142, "test dl, dl"], [143, "jz short loc_4271C2"], [144, "mov rdi, rax"], [145, "call ___asan_report_store8"], [146, "mov qword ptr [rbx-20h], 0Dh"], [147, "mov eax, cs:dword_4ADCE0"], [148, "add eax, 1"], [149, "mov cs:dword_4ADCE0, eax"], [150, "lea rsi, [rbx-20h]"], [151, "mov rax, [rbp+var_78]"], [152, "mov ecx, 8"], [153, "mov rdx, 0FFFFFFFFFFFFFFFFh"], [154, "mov rdi, rax"], [155, "call sub_41BA6B"], [156, "mov r14, rax"], [157, "mov edi, 0Ch"], [158, "call sub_40A0C7"], [159, "cmp r14, rax"], [160, "jz short loc_42724A"], [161, "mov edx, 2D9h"], [162, "mov esi, offset aCheckMultiFind"], [163, "mov edi, offset aBugAtSD"], [164, "mov eax, 0"], [165, "call _printf"], [166, "mov rax, [rbp+var_78]"], [167, "mov rdi, rax"], [168, "call sub_41D7AC"], [169, "call ___asan_handle_no_return"], [170, "mov ecx, offset aCheckMultiFind_0"], [171, "mov edx, 2D9h"], [172, "mov esi, offset aLibTestXarrayC"], [173, "mov edi, offset a0"], [174, "call ___assert_fail"], [175, "mov eax, cs:dword_4ADD20"], [176, "add eax, 1"], [177, "mov cs:dword_4ADD20, eax"], [178, "mov eax, cs:dword_4ADCE0"], [179, "add eax, 1"], [180, "mov cs:dword_4ADCE0, eax"], [181, "lea rax, [rbx-20h]"], [182, "mov rdx, rax"], [183, "shr rdx, 3"], [184, "add rdx, 7FFF8000h"], [185, "movzx edx, byte ptr [rdx]"], [186, "test dl, dl"], [187, "jz short loc_427289"], [188, "mov rdi, rax"], [189, "call ___asan_report_load8"], [190, "mov rax, [rbx-20h]"], [191, "cmp rax, 0Bh"], [192, "jbe short loc_42729D"], [193, "mov rax, [rbx-20h]"], [194, "cmp rax, 0Fh"], [195, "jbe short loc_4272E0"], [196, "mov edx, 2DBh"], [197, "mov esi, offset aCheckMultiFind"], [198, "mov edi, offset aBugAtSD"], [199, "mov eax, 0"], [200, "call _printf"], [201, "mov rax, [rbp+var_78]"], [202, "mov rdi, rax"], [203, "call sub_41D7AC"], [204, "call ___asan_handle_no_return"], [205, "mov ecx, offset aCheckMultiFind_0"], [206, "mov edx, 2DBh"], [207, "mov esi, offset aLibTestXarrayC"], [208, "mov edi, offset a0"], [209, "call ___assert_fail"], [210, "mov eax, cs:dword_4ADD20"], [211, "add eax, 1"], [212, "mov cs:dword_4ADD20, eax"], [213, "mov eax, cs:dword_4ADCE0"], [214, "add eax, 1"], [215, "mov cs:dword_4ADCE0, eax"], [216, "lea rsi, [rbx-20h]"], [217, "mov rax, [rbp+var_78]"], [218, "mov ecx, 8"], [219, "mov rdx, 0FFFFFFFFFFFFFFFFh"], [220, "mov rdi, rax"], [221, "call sub_41BE91"], [222, "mov r14, rax"], [223, "mov edi, 10h"], [224, "call sub_40A0C7"], [225, "cmp r14, rax"], [226, "jz short loc_42736F"], [227, "mov edx, 2DCh"], [228, "mov esi, offset aCheckMultiFind"], [229, "mov edi, offset aBugAtSD"], [230, "mov eax, 0"], [231, "call _printf"], [232, "mov rax, [rbp+var_78]"], [233, "mov rdi, rax"], [234, "call sub_41D7AC"], [235, "call ___asan_handle_no_return"], [236, "mov ecx, offset aCheckMultiFind_0"], [237, "mov edx, 2DCh"], [238, "mov esi, offset aLibTestXarrayC"], [239, "mov edi, offset a0"], [240, "call ___assert_fail"], [241, "mov eax, cs:dword_4ADD20"], [242, "add eax, 1"], [243, "mov cs:dword_4ADD20, eax"], [244, "mov eax, cs:dword_4ADCE0"], [245, "add eax, 1"], [246, "mov cs:dword_4ADCE0, eax"], [247, "lea rax, [rbx-20h]"], [248, "mov rdx, rax"], [249, "shr rdx, 3"], [250, "add rdx, 7FFF8000h"], [251, "movzx edx, byte ptr [rdx]"], [252, "test dl, dl"], [253, "jz short loc_4273AE"], [254, "mov rdi, rax"], [255, "call ___asan_report_load8"], [256, "mov rax, [rbx-20h]"], [257, "cmp rax, 10h"], [258, "jz short loc_4273FB"], [259, "mov edx, 2DEh"], [260, "mov esi, offset aCheckMultiFind"], [261, "mov edi, offset aBugAtSD"], [262, "mov eax, 0"], [263, "call _printf"], [264, "mov rax, [rbp+var_78]"], [265, "mov rdi, rax"], [266, "call sub_41D7AC"], [267, "call ___asan_handle_no_return"], [268, "mov ecx, offset aCheckMultiFind_0"], [269, "mov edx, 2DEh"], [270, "mov esi, offset aLibTestXarrayC"], [271, "mov edi, offset a0"], [272, "call ___assert_fail"], [273, "mov eax, cs:dword_4ADD20"], [274, "add eax, 1"], [275, "mov cs:dword_4ADD20, eax"], [276, "mov rax, [rbp+var_78]"], [277, "mov esi, 0Ch"], [278, "mov rdi, rax"], [279, "call sub_41DC50"], [280, "mov rax, [rbp+var_78]"], [281, "mov esi, 10h"], [282, "mov rdi, rax"], [283, "call sub_41DC50"], [284, "mov eax, cs:dword_4ADCE0"], [285, "add eax, 1"], [286, "mov cs:dword_4ADCE0, eax"], [287, "mov rax, [rbp+var_78]"], [288, "mov rdi, rax"], [289, "call sub_40A23B"], [290, "xor eax, 1"], [291, "test al, al"], [292, "jz short loc_427491"], [293, "mov edx, 2E2h"], [294, "mov esi, offset aCheckMultiFind"], [295, "mov edi, offset aBugAtSD"], [296, "mov eax, 0"], [297, "call _printf"], [298, "mov rax, [rbp+var_78]"], [299, "mov rdi, rax"], [300, "call sub_41D7AC"], [301, "call ___asan_handle_no_return"], [302, "mov ecx, offset aCheckMultiFind_0"], [303, "mov edx, 2E2h"], [304, "mov esi, offset aLibTestXarrayC"], [305, "mov edi, offset a0"], [306, "call ___assert_fail"], [307, "mov eax, cs:dword_4ADD20"], [308, "add eax, 1"], [309, "mov cs:dword_4ADD20, eax"], [310, "nop"], [311, "cmp r15, r12"], [312, "jz short loc_4274C9"], [313, "mov qword ptr [r12], 45E0360Eh"], [314, "mov rax, 0F5F5F5F5F5F5F5F5h"], [315, "mov [r13+7FFF8000h], rax"], [316, "mov rax, [r12+38h]"], [317, "mov byte ptr [rax], 0"], [318, "jmp short loc_4274D4"], [319, "mov qword ptr [r13+7FFF8000h], 0"], [320, "add rsp, 58h"], [321, "pop rbx"], [322, "pop r12"], [323, "pop r13"], [324, "pop r14"], [325, "pop r15"], [326, "pop rbp"], [327, "retn"]], "data_dep": [[10, 9], [12, 11], [15, 14], [16, 15], [17, 15], [18, 17], [18, 9], [18, 15], [19, 18], [20, 17], [20, 9], [21, 9], [21, 17], [22, 17], [22, 9], [23, 17], [23, 9], [24, 23], [25, 24], [26, 24], [29, 28], [30, 8], [32, 29], [35, 30], [38, 37], [39, 38], [40, 8], [43, 40], [45, 44], [46, 45], [52, 8], [53, 52], [62, 61], [63, 62], [64, 62], [64, 25], [64, 20], [64, 22], [64, 26], [64, 19], [64, 21], [65, 64], [66, 65], [67, 66], [68, 20], [68, 22], [68, 26], [68, 67], [68, 21], [68, 25], [69, 68], [70, 69], [71, 64], [73, 19], [74, 39], [75, 74], [76, 75], [77, 19], [77, 73], [77, 42], [78, 8], [81, 78], [83, 82], [86, 83], [86, 85], [87, 86], [93, 8], [94, 93], [102, 63], [103, 102], [104, 103], [105, 76], [106, 105], [107, 106], [108, 20], [108, 22], [108, 106], [108, 26], [108, 19], [108, 21], [108, 25], [108, 73], [109, 108], [110, 109], [111, 110], [112, 20], [112, 22], [112, 111], [112, 26], [112, 21], [112, 25], [112, 73], [113, 112], [114, 113], [115, 108], [117, 26], [117, 19], [117, 21], [117, 25], [117, 73], [117, 20], [117, 22], [118, 117], [119, 118], [125, 8], [126, 125], [134, 104], [135, 134], [136, 135], [137, 26], [137, 19], [137, 21], [137, 135], [137, 25], [137, 73], [137, 20], [137, 22], [138, 137], [139, 138], [140, 139], [141, 140], [141, 26], [141, 21], [141, 25], [141, 73], [141, 20], [141, 22], [142, 141], [143, 142], [144, 137], [146, 19], [147, 107], [148, 147], [149, 148], [150, 77], [150, 19], [150, 146], [151, 8], [154, 151], [156, 155], [159, 156], [159, 158], [160, 159], [166, 8], [167, 166], [175, 136], [176, 175], [177, 176], [178, 149], [179, 178], [180, 179], [181, 73], [181, 25], [181, 146], [181, 20], [181, 22], [181, 26], [181, 19], [181, 21], [181, 179], [182, 181], [183, 182], [184, 183], [185, 25], [185, 73], [185, 146], [185, 20], [185, 22], [185, 26], [185, 184], [185, 21], [186, 185], [187, 186], [188, 181], [190, 19], [190, 21], [190, 25], [190, 73], [190, 146], [190, 20], [190, 22], [190, 26], [191, 190], [192, 191], [193, 146], [193, 20], [193, 22], [193, 26], [193, 19], [193, 21], [193, 73], [193, 25], [194, 193], [195, 194], [201, 8], [202, 201], [210, 177], [211, 210], [212, 211], [213, 180], [214, 213], [215, 214], [216, 20], [216, 22], [216, 150], [216, 26], [216, 19], [216, 21], [216, 25], [216, 73], [216, 146], [217, 8], [220, 217], [222, 221], [225, 224], [225, 222], [226, 225], [232, 8], [233, 232], [241, 212], [242, 241], [243, 242], [244, 215], [245, 244], [246, 245], [247, 26], [247, 19], [247, 21], [247, 245], [247, 73], [247, 25], [247, 146], [247, 20], [247, 22], [248, 247], [249, 248], [250, 249], [251, 25], [251, 73], [251, 146], [251, 20], [251, 22], [251, 26], [251, 250], [251, 21], [252, 251], [253, 252], [254, 247], [256, 19], [256, 21], [256, 73], [256, 146], [256, 25], [256, 20], [256, 22], [256, 26], [257, 256], [258, 257], [264, 8], [265, 264], [273, 243], [274, 273], [275, 274], [276, 8], [278, 276], [280, 8], [282, 280], [284, 246], [285, 284], [286, 285], [287, 8], [288, 287], [290, 289], [291, 290], [292, 291], [298, 8], [299, 298], [307, 275], [308, 307], [309, 308], [311, 10], [311, 9], [311, 17], [312, 311], [313, 17], [313, 9], [315, 314], [315, 24], [316, 17], [316, 9], [316, 315], [317, 316], [319, 24], [320, 7], [321, 6], [322, 5], [323, 4], [324, 3], [325, 2], [326, 0], [327, 308], [327, 316]]}
static void wpa_supplicant_event_assoc_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data) { wpa_dbg(wpa_s, MSG_DEBUG, "Connection authorized by device, previous state %d", wpa_s->wpa_state); wpa_supplicant_event_port_authorized(wpa_s); wpa_s->last_eapol_matches_bssid = 1; wpa_sm_set_rx_replay_ctr(wpa_s->wpa, data->assoc_info.key_replay_ctr); wpa_sm_set_ptk_kck_kek(wpa_s->wpa, data->assoc_info.ptk_kck, data->assoc_info.ptk_kck_len, data->assoc_info.ptk_kek, data->assoc_info.ptk_kek_len); #ifdef CONFIG_FILS if (wpa_s->auth_alg == WPA_AUTH_ALG_FILS) { struct wpa_bss *bss = wpa_bss_get_bssid(wpa_s, wpa_s->bssid); const u8 *fils_cache_id = wpa_bss_get_fils_cache_id(bss); /* Update ERP next sequence number */ eapol_sm_update_erp_next_seq_num( wpa_s->eapol, data->assoc_info.fils_erp_next_seq_num); if (data->assoc_info.fils_pmk && data->assoc_info.fils_pmkid) { /* Add the new PMK and PMKID to the PMKSA cache */ wpa_sm_pmksa_cache_add(wpa_s->wpa, data->assoc_info.fils_pmk, data->assoc_info.fils_pmk_len, data->assoc_info.fils_pmkid, wpa_s->bssid, fils_cache_id); } else if (data->assoc_info.fils_pmkid) { /* Update the current PMKSA used for this connection */ pmksa_cache_set_current(wpa_s->wpa, data->assoc_info.fils_pmkid, NULL, NULL, 0, NULL, 0); } } #endif /* CONFIG_FILS */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41BF21", "function_addr": 4308769, "binary_name": "a00a174460e27c0a15353e4aa238c55e049e0606a381405d5b36ad737c184769.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 edx, [rax+2B8h]"], [7, "mov rax, [rbp+var_8]"], [8, "mov ecx, edx"], [9, "mov edx, offset aConnectionAuth"], [10, "mov esi, 2"], [11, "mov rdi, rax"], [12, "mov eax, 0"], [13, "call sub_48E100"], [14, "mov rax, [rbp+var_8]"], [15, "mov rdi, rax"], [16, "call sub_41BD55"], [17, "mov rax, [rbp+var_8]"], [18, "movzx edx, byte ptr [rax+4F4h]"], [19, "or edx, 1"], [20, "mov [rax+4F4h], dl"], [21, "mov rax, [rbp+var_10]"], [22, "mov rdx, [rax+60h]"], [23, "mov rax, [rbp+var_8]"], [24, "mov rax, [rax+298h]"], [25, "mov rsi, rdx"], [26, "mov rdi, rax"], [27, "call sub_476482"], [28, "mov rax, [rbp+var_10]"], [29, "mov rdi, [rax+88h]"], [30, "mov rax, [rbp+var_10]"], [31, "mov rcx, [rax+80h]"], [32, "mov rax, [rbp+var_10]"], [33, "mov rdx, [rax+78h]"], [34, "mov rax, [rbp+var_10]"], [35, "mov rsi, [rax+70h]"], [36, "mov rax, [rbp+var_8]"], [37, "mov rax, [rax+298h]"], [38, "mov r8, rdi"], [39, "mov rdi, rax"], [40, "call sub_4764D5"], [41, "nop"], [42, "leave"], [43, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 3], [8, 6], [11, 7], [14, 3], [15, 14], [17, 3], [18, 17], [19, 18], [20, 17], [20, 19], [21, 4], [22, 20], [22, 21], [23, 3], [24, 23], [24, 20], [25, 22], [26, 24], [28, 4], [29, 20], [29, 28], [30, 4], [31, 20], [31, 30], [32, 4], [33, 20], [33, 32], [34, 4], [35, 20], [35, 34], [36, 3], [37, 36], [37, 20], [38, 29], [39, 37], [43, 40]]}
int priority(char c) { if (c == '$') return (0); if (c == '(') return (1); if (c == '+' || c == '-') return (2); if (c == '*' || c == '/' || c == '&' || c == '|' || c == '^') return (3); display_error(error = 'C'); /* invalid operator on stack */ return (9); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4058D5", "function_addr": 4217045, "binary_name": "7280a4108d82fc89adb2cb979f89410f94f1c2eeb75386c11f5f5de76191facb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov eax, edi"], [4, "mov [rbp+var_4], al"], [5, "cmp [rbp+var_4], 24h "], [6, "jnz short loc_4058EF"], [7, "mov eax, 0"], [8, "jmp short locret_40594A"], [9, "cmp [rbp+var_4], 28h "], [10, "jnz short loc_4058FC"], [11, "mov eax, 1"], [12, "jmp short locret_40594A"], [13, "cmp [rbp+var_4], 2Bh "], [14, "jz short loc_405908"], [15, "cmp [rbp+var_4], 2Dh "], [16, "jnz short loc_40590F"], [17, "mov eax, 2"], [18, "jmp short locret_40594A"], [19, "cmp [rbp+var_4], 2Ah "], [20, "jz short loc_40592D"], [21, "cmp [rbp+var_4], 2Fh "], [22, "jz short loc_40592D"], [23, "cmp [rbp+var_4], 26h "], [24, "jz short loc_40592D"], [25, "cmp [rbp+var_4], 7Ch "], [26, "jz short loc_40592D"], [27, "cmp [rbp+var_4], 5Eh "], [28, "jnz short loc_405934"], [29, "mov eax, 3"], [30, "jmp short locret_40594A"], [31, "mov cs:byte_40F964, 43h "], [32, "mov edi, 43h "], [33, "call sub_402176"], [34, "mov eax, 9"], [35, "leave"], [36, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [9, 4], [10, 9], [13, 4], [14, 13], [15, 4], [16, 15], [19, 4], [20, 19], [21, 4], [22, 21], [23, 4], [24, 23], [25, 4], [26, 25], [27, 4], [28, 27], [36, 7], [36, 34], [36, 11], [36, 17], [36, 29]]}
void readmem_4712(void) { int temp; printf("Printing SDRAM\n"); temp = ejtag_read(0x18006f98); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006f98); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006f98);; printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006004); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x1800601c); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006034); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006038); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x1800603c); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006008); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006010); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401F94", "function_addr": 4202388, "binary_name": "904dfaf7c433ee86240d6b972758094a56fa491e52baa69854549f18822904f6.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov edi, offset aPrintingSdram"], [4, "call _puts"], [5, "mov edi, 18006F98h"], [6, "call sub_401838"], [7, "mov [rbp+var_4], eax"], [8, "mov eax, [rbp+var_4]"], [9, "mov esi, eax"], [10, "mov edi, offset aSdram0x08x"], [11, "mov eax, 0"], [12, "call _printf"], [13, "mov edi, 18006F98h"], [14, "call sub_401838"], [15, "mov [rbp+var_4], eax"], [16, "mov eax, [rbp+var_4]"], [17, "mov esi, eax"], [18, "mov edi, offset aSdram0x08x"], [19, "mov eax, 0"], [20, "call _printf"], [21, "mov edi, 18006F98h"], [22, "call sub_401838"], [23, "mov [rbp+var_4], eax"], [24, "mov eax, [rbp+var_4]"], [25, "mov esi, eax"], [26, "mov edi, offset aSdram0x08x"], [27, "mov eax, 0"], [28, "call _printf"], [29, "mov edi, 18006004h"], [30, "call sub_401838"], [31, "mov [rbp+var_4], eax"], [32, "mov eax, [rbp+var_4]"], [33, "mov esi, eax"], [34, "mov edi, offset aSdram0x08x"], [35, "mov eax, 0"], [36, "call _printf"], [37, "mov edi, 1800601Ch"], [38, "call sub_401838"], [39, "mov [rbp+var_4], eax"], [40, "mov eax, [rbp+var_4]"], [41, "mov esi, eax"], [42, "mov edi, offset aSdram0x08x"], [43, "mov eax, 0"], [44, "call _printf"], [45, "mov edi, 18006034h"], [46, "call sub_401838"], [47, "mov [rbp+var_4], eax"], [48, "mov eax, [rbp+var_4]"], [49, "mov esi, eax"], [50, "mov edi, offset aSdram0x08x"], [51, "mov eax, 0"], [52, "call _printf"], [53, "mov edi, 18006038h"], [54, "call sub_401838"], [55, "mov [rbp+var_4], eax"], [56, "mov eax, [rbp+var_4]"], [57, "mov esi, eax"], [58, "mov edi, offset aSdram0x08x"], [59, "mov eax, 0"], [60, "call _printf"], [61, "mov edi, 1800603Ch"], [62, "call sub_401838"], [63, "mov [rbp+var_4], eax"], [64, "mov eax, [rbp+var_4]"], [65, "mov esi, eax"], [66, "mov edi, offset aSdram0x08x"], [67, "mov eax, 0"], [68, "call _printf"], [69, "mov edi, 18006000h"], [70, "call sub_401838"], [71, "mov [rbp+var_4], eax"], [72, "mov eax, [rbp+var_4]"], [73, "mov esi, eax"], [74, "mov edi, offset aSdram0x08x"], [75, "mov eax, 0"], [76, "call _printf"], [77, "mov edi, 18006000h"], [78, "call sub_401838"], [79, "mov [rbp+var_4], eax"], [80, "mov eax, [rbp+var_4]"], [81, "mov esi, eax"], [82, "mov edi, offset aSdram0x08x"], [83, "mov eax, 0"], [84, "call _printf"], [85, "mov edi, 18006000h"], [86, "call sub_401838"], [87, "mov [rbp+var_4], eax"], [88, "mov eax, [rbp+var_4]"], [89, "mov esi, eax"], [90, "mov edi, offset aSdram0x08x"], [91, "mov eax, 0"], [92, "call _printf"], [93, "mov edi, 18006000h"], [94, "call sub_401838"], [95, "mov [rbp+var_4], eax"], [96, "mov eax, [rbp+var_4]"], [97, "mov esi, eax"], [98, "mov edi, offset aSdram0x08x"], [99, "mov eax, 0"], [100, "call _printf"], [101, "mov edi, 18006000h"], [102, "call sub_401838"], [103, "mov [rbp+var_4], eax"], [104, "mov eax, [rbp+var_4]"], [105, "mov esi, eax"], [106, "mov edi, offset aSdram0x08x"], [107, "mov eax, 0"], [108, "call _printf"], [109, "mov edi, 18006000h"], [110, "call sub_401838"], [111, "mov [rbp+var_4], eax"], [112, "mov eax, [rbp+var_4]"], [113, "mov esi, eax"], [114, "mov edi, offset aSdram0x08x"], [115, "mov eax, 0"], [116, "call _printf"], [117, "mov edi, 18006000h"], [118, "call sub_401838"], [119, "mov [rbp+var_4], eax"], [120, "mov eax, [rbp+var_4]"], [121, "mov esi, eax"], [122, "mov edi, offset aSdram0x08x"], [123, "mov eax, 0"], [124, "call _printf"], [125, "mov edi, 18006000h"], [126, "call sub_401838"], [127, "mov [rbp+var_4], eax"], [128, "mov eax, [rbp+var_4]"], [129, "mov esi, eax"], [130, "mov edi, offset aSdram0x08x"], [131, "mov eax, 0"], [132, "call _printf"], [133, "mov edi, 18006000h"], [134, "call sub_401838"], [135, "mov [rbp+var_4], eax"], [136, "mov eax, [rbp+var_4]"], [137, "mov esi, eax"], [138, "mov edi, offset aSdram0x08x"], [139, "mov eax, 0"], [140, "call _printf"], [141, "mov edi, 18006000h"], [142, "call sub_401838"], [143, "mov [rbp+var_4], eax"], [144, "mov eax, [rbp+var_4]"], [145, "mov esi, eax"], [146, "mov edi, offset aSdram0x08x"], [147, "mov eax, 0"], [148, "call _printf"], [149, "mov edi, 18006008h"], [150, "call sub_401838"], [151, "mov [rbp+var_4], eax"], [152, "mov eax, [rbp+var_4]"], [153, "mov esi, eax"], [154, "mov edi, offset aSdram0x08x"], [155, "mov eax, 0"], [156, "call _printf"], [157, "mov edi, 18006010h"], [158, "call sub_401838"], [159, "mov [rbp+var_4], eax"], [160, "mov eax, [rbp+var_4]"], [161, "mov esi, eax"], [162, "mov edi, offset aSdram0x08x"], [163, "mov eax, 0"], [164, "call _printf"], [165, "mov edi, 18006000h"], [166, "call sub_401838"], [167, "mov [rbp+var_4], eax"], [168, "mov eax, [rbp+var_4]"], [169, "mov esi, eax"], [170, "mov edi, offset aSdram0x08x"], [171, "mov eax, 0"], [172, "call _printf"], [173, "mov edi, 18006000h"], [174, "call sub_401838"], [175, "mov [rbp+var_4], eax"], [176, "mov eax, [rbp+var_4]"], [177, "mov esi, eax"], [178, "mov edi, offset aSdram0x08x"], [179, "mov eax, 0"], [180, "call _printf"], [181, "nop"], [182, "leave"], [183, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [15, 14], [16, 15], [17, 16], [23, 22], [24, 23], [25, 24], [31, 30], [32, 31], [33, 32], [39, 38], [40, 39], [41, 40], [47, 46], [48, 47], [49, 48], [55, 54], [56, 55], [57, 56], [63, 62], [64, 63], [65, 64], [71, 70], [72, 71], [73, 72], [79, 78], [80, 79], [81, 80], [87, 86], [88, 87], [89, 88], [95, 94], [96, 95], [97, 96], [103, 102], [104, 103], [105, 104], [111, 110], [112, 111], [113, 112], [119, 118], [120, 119], [121, 120], [127, 126], [128, 127], [129, 128], [135, 134], [136, 135], [137, 136], [143, 142], [144, 143], [145, 144], [151, 150], [152, 151], [153, 152], [159, 158], [160, 159], [161, 160], [167, 166], [168, 167], [169, 168], [175, 174], [176, 175], [177, 176], [183, 180]]}
as_status as_lookup_host(as_address_iterator* iter, as_error* err, const char* hostname, uint16_t port) { iter->hostname_is_alias = true; struct addrinfo hints; memset(&hints, 0, sizeof(hints)); hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; // Check if hostname is really an IPv4 address. struct in_addr ipv4; if (inet_pton(AF_INET, hostname, &ipv4) == 1) { hints.ai_family = AF_INET; hints.ai_flags = AI_NUMERICHOST; iter->hostname_is_alias = false; } else { // Check if hostname is really an IPv6 address. struct in6_addr ipv6; if (inet_pton(AF_INET6, hostname, &ipv6) == 1) { hints.ai_family = AF_INET6; hints.ai_flags = AI_NUMERICHOST; iter->hostname_is_alias = false; } } int ret = getaddrinfo(hostname, NULL, &hints, &iter->addresses); if (ret) { return as_error_update(err, AEROSPIKE_ERR_INVALID_HOST, "Invalid hostname %s: %s", hostname, gai_strerror(ret)); } iter->current = iter->addresses; iter->port_be = cf_swap_to_be16(port); return AEROSPIKE_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42EE4F", "function_addr": 4386383, "binary_name": "f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "add rsp, 0FFFFFFFFFFFFFF80h"], [3, "mov [rbp+pai], rdi"], [4, "mov [rbp+var_70], rsi"], [5, "mov [rbp+cp], rdx"], [6, "mov eax, ecx"], [7, "mov [rbp+var_7C], ax"], [8, "mov rax, [rbp+pai]"], [9, "mov byte ptr [rax+12h], 1"], [10, "lea rax, [rbp+s]"], [11, "mov edx, 30h "], [12, "mov esi, 0"], [13, "mov rdi, rax"], [14, "call _memset"], [15, "mov [rbp+var_38], 1"], [16, "mov [rbp+var_34], 6"], [17, "lea rdx, [rbp+buf]"], [18, "mov rax, [rbp+cp]"], [19, "mov rsi, rax"], [20, "mov edi, 2"], [21, "call _inet_pton"], [22, "cmp eax, 1"], [23, "jnz short loc_42EEC7"], [24, "mov [rbp+var_3C], 2"], [25, "mov [rbp+s], 4"], [26, "mov rax, [rbp+pai]"], [27, "mov byte ptr [rax+12h], 0"], [28, "jmp short loc_42EEF7"], [29, "lea rdx, [rbp+var_60]"], [30, "mov rax, [rbp+cp]"], [31, "mov rsi, rax"], [32, "mov edi, 0Ah"], [33, "call _inet_pton"], [34, "cmp eax, 1"], [35, "jnz short loc_42EEF7"], [36, "mov [rbp+var_3C], 0Ah"], [37, "mov [rbp+s], 4"], [38, "mov rax, [rbp+pai]"], [39, "mov byte ptr [rax+12h], 0"], [40, "mov rcx, [rbp+pai]"], [41, "lea rdx, [rbp+s]"], [42, "mov rax, [rbp+cp]"], [43, "mov esi, 0"], [44, "mov rdi, rax"], [45, "call _getaddrinfo"], [46, "mov [rbp+ecode], eax"], [47, "cmp [rbp+ecode], 0"], [48, "jz short loc_42EF61"], [49, "mov eax, [rbp+ecode]"], [50, "mov edi, eax"], [51, "call _gai_strerror"], [52, "mov rdx, rax"], [53, "mov rax, [rbp+var_70]"], [54, "push rdx"], [55, "push [rbp+cp]"], [56, "lea r9, aInvalidHostnam"], [57, "mov r8d, 101h"], [58, "lea rcx, aSrcMainAerospi_10"], [59, "lea rdx, aAsLookupHost"], [60, "mov esi, 0FFFFFFFCh"], [61, "mov rdi, rax"], [62, "mov eax, 0"], [63, "call sub_42E23F"], [64, "add rsp, 10h"], [65, "jmp short locret_42EF88"], [66, "mov rax, [rbp+pai]"], [67, "mov rdx, [rax]"], [68, "mov rax, [rbp+pai]"], [69, "mov [rax+8], rdx"], [70, "movzx eax, [rbp+var_7C]"], [71, "mov edi, eax"], [72, "call sub_42E142"], [73, "mov rdx, [rbp+pai]"], [74, "mov [rdx+10h], ax"], [75, "mov eax, 0"], [76, "leave"], [77, "retn"]], "data_dep": [[7, 6], [8, 3], [9, 8], [10, 8], [13, 10], [17, 11], [18, 5], [19, 18], [22, 21], [23, 22], [26, 3], [27, 26], [29, 17], [30, 5], [31, 30], [34, 33], [35, 34], [38, 3], [39, 38], [40, 3], [41, 17], [41, 29], [41, 25], [41, 37], [42, 5], [44, 42], [46, 45], [47, 46], [48, 47], [49, 46], [50, 49], [52, 51], [53, 4], [54, 52], [55, 5], [58, 40], [59, 52], [61, 53], [64, 2], [66, 3], [67, 74], [67, 9], [67, 27], [67, 39], [67, 66], [67, 69], [68, 3], [69, 68], [69, 67], [70, 7], [71, 70], [73, 3], [74, 73], [74, 72], [77, 63], [77, 75]]}
uint8_t bnep_lwip_connect(bd_addr_t addr, uint16_t l2cap_psm, uint16_t uuid_src, uint16_t uuid_dest){ int status = bnep_connect(packet_handler, addr, l2cap_psm, uuid_src, uuid_dest); if (status != 0){ return ERROR_CODE_UNSPECIFIED_ERROR; } else { return ERROR_CODE_SUCCESS; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45CDDA", "function_addr": 4574682, "binary_name": "1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.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, ecx"], [5, "mov ecx, esi"], [6, "mov [rbp+var_1C], cx"], [7, "mov [rbp+var_20], dx"], [8, "mov [rbp+var_24], ax"], [9, "movzx esi, [rbp+var_24]"], [10, "movzx ecx, [rbp+var_20]"], [11, "movzx edx, [rbp+var_1C]"], [12, "mov rax, [rbp+var_18]"], [13, "mov r8d, esi"], [14, "mov rsi, rax"], [15, "mov edi, offset sub_45CBE2"], [16, "call sub_441625"], [17, "mov [rbp+var_4], eax"], [18, "cmp [rbp+var_4], 0"], [19, "jz short loc_45CE26"], [20, "mov eax, 1Fh"], [21, "jmp short locret_45CE2B"], [22, "mov eax, 0"], [23, "leave"], [24, "retn"]], "data_dep": [[6, 5], [8, 4], [9, 8], [10, 7], [11, 6], [12, 3], [13, 9], [14, 12], [17, 16], [18, 17], [19, 18], [24, 20], [24, 22]]}
void selnormalize(void) { int i; if (sel.type == SEL_REGULAR && sel.ob.y != sel.oe.y) { sel.nb.x = sel.ob.y < sel.oe.y ? sel.ob.x : sel.oe.x; sel.ne.x = sel.ob.y < sel.oe.y ? sel.oe.x : sel.ob.x; } else { sel.nb.x = MIN(sel.ob.x, sel.oe.x); sel.ne.x = MAX(sel.ob.x, sel.oe.x); } sel.nb.y = MIN(sel.ob.y, sel.oe.y); sel.ne.y = MAX(sel.ob.y, sel.oe.y); selsnap(&sel.nb.x, &sel.nb.y, -1); selsnap(&sel.ne.x, &sel.ne.y, +1); /* expand selection over line breaks */ if (sel.type == SEL_RECTANGULAR) return; i = tlinelen(sel.nb.y); if (i < sel.nb.x) sel.nb.x = i; if (tlinelen(sel.ne.y) <= sel.ne.x) sel.ne.x = term.col - 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404289", "function_addr": 4211337, "binary_name": "e30d6763cdc6cdc20034427c41a837eef5f47659480b5b33e20ed62e8d2f6e3d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov eax, cs:dword_417E44"], [4, "cmp eax, 1"], [5, "jnz short loc_4042F6"], [6, "mov edx, cs:dword_417E60"], [7, "mov eax, cs:dword_417E68"], [8, "cmp edx, eax"], [9, "jz short loc_4042F6"], [10, "mov edx, cs:dword_417E60"], [11, "mov eax, cs:dword_417E68"], [12, "cmp edx, eax"], [13, "jge short loc_4042C4"], [14, "mov eax, cs:dword_417E5C"], [15, "jmp short loc_4042CA"], [16, "mov eax, cs:dword_417E64"], [17, "mov cs:dword_417E4C, eax"], [18, "mov edx, cs:dword_417E60"], [19, "mov eax, cs:dword_417E68"], [20, "cmp edx, eax"], [21, "jge short loc_4042E8"], [22, "mov eax, cs:dword_417E64"], [23, "jmp short loc_4042EE"], [24, "mov eax, cs:dword_417E5C"], [25, "mov cs:dword_417E54, eax"], [26, "jmp short loc_404324"], [27, "mov edx, cs:dword_417E64"], [28, "mov eax, cs:dword_417E5C"], [29, "cmp edx, eax"], [30, "cmovle eax, edx"], [31, "mov cs:dword_417E4C, eax"], [32, "mov edx, cs:dword_417E5C"], [33, "mov eax, cs:dword_417E64"], [34, "cmp edx, eax"], [35, "cmovge eax, edx"], [36, "mov cs:dword_417E54, eax"], [37, "mov edx, cs:dword_417E68"], [38, "mov eax, cs:dword_417E60"], [39, "cmp edx, eax"], [40, "cmovle eax, edx"], [41, "mov cs:dword_417E50, eax"], [42, "mov edx, cs:dword_417E60"], [43, "mov eax, cs:dword_417E68"], [44, "cmp edx, eax"], [45, "cmovge eax, edx"], [46, "mov cs:dword_417E58, eax"], [47, "mov edx, 0FFFFFFFFh"], [48, "mov esi, offset dword_417E50"], [49, "mov edi, offset dword_417E4C"], [50, "call sub_4044AE"], [51, "mov edx, 1"], [52, "mov esi, offset dword_417E58"], [53, "mov edi, offset dword_417E54"], [54, "call sub_4044AE"], [55, "mov eax, cs:dword_417E44"], [56, "cmp eax, 2"], [57, "jz short loc_4043D1"], [58, "mov eax, cs:dword_417E50"], [59, "mov edi, eax"], [60, "call sub_404065"], [61, "mov [rbp+var_4], eax"], [62, "mov eax, cs:dword_417E4C"], [63, "cmp [rbp+var_4], eax"], [64, "jge short loc_4043A9"], [65, "mov eax, [rbp+var_4]"], [66, "mov cs:dword_417E4C, eax"], [67, "mov eax, cs:dword_417E58"], [68, "mov edi, eax"], [69, "call sub_404065"], [70, "mov edx, cs:dword_417E54"], [71, "cmp eax, edx"], [72, "jg short locret_4043D2"], [73, "mov eax, cs:dword_41A204"], [74, "sub eax, 1"], [75, "mov cs:dword_417E54, eax"], [76, "jmp short locret_4043D2"], [77, "nop"], [78, "leave"], [79, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 6], [8, 7], [9, 8], [12, 10], [12, 11], [13, 12], [17, 14], [17, 16], [20, 19], [20, 18], [21, 20], [25, 22], [25, 24], [29, 28], [29, 27], [30, 27], [31, 30], [34, 33], [34, 32], [35, 32], [35, 34], [36, 35], [39, 38], [39, 37], [40, 37], [41, 40], [44, 42], [44, 43], [45, 42], [45, 44], [46, 45], [56, 55], [57, 56], [58, 41], [59, 58], [61, 60], [62, 17], [62, 31], [63, 61], [63, 62], [64, 63], [65, 61], [66, 65], [67, 46], [68, 67], [70, 36], [70, 25], [71, 70], [71, 69], [72, 71], [74, 73], [75, 74], [79, 69], [79, 74], [79, 55]]}
static void rtrim(char * str, const char * trim_str, size_t min) { size_t len = strlen(str); while (len > min && strchr(trim_str, str[len - 1])) str[--len] = '\0'; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_421A2E", "function_addr": 4332078, "binary_name": "e6951f37e53aa26b8cc1158f7a801b19b5050181eb2932e812d0435a1aa23f66.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+s], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, [rbp+s]"], [7, "mov rdi, rax"], [8, "call _strlen"], [9, "mov [rbp+var_8], rax"], [10, "jmp short loc_421A67"], [11, "sub [rbp+var_8], 1"], [12, "mov rdx, [rbp+s]"], [13, "mov rax, [rbp+var_8]"], [14, "add rax, rdx"], [15, "mov byte ptr [rax], 0"], [16, "mov rax, [rbp+var_8]"], [17, "cmp rax, [rbp+var_28]"], [18, "jbe short loc_421A99"], [19, "mov rax, [rbp+var_8]"], [20, "lea rdx, [rax-1]"], [21, "mov rax, [rbp+s]"], [22, "add rax, rdx"], [23, "movzx eax, byte ptr [rax]"], [24, "movsx edx, al"], [25, "mov rax, [rbp+var_20]"], [26, "mov esi, edx"], [27, "mov rdi, rax"], [28, "call _strchr"], [29, "test rax, rax"], [30, "jnz short loc_421A54"], [31, "nop"], [32, "leave"], [33, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 8], [11, 11], [11, 9], [12, 3], [13, 11], [14, 13], [14, 12], [15, 14], [16, 9], [16, 11], [17, 5], [17, 16], [18, 17], [19, 9], [19, 11], [20, 19], [20, 12], [20, 15], [21, 3], [22, 20], [22, 21], [23, 22], [23, 15], [24, 23], [25, 4], [26, 24], [27, 25], [29, 28], [30, 29], [33, 29], [33, 16]]}
int qcsapi_wifi_get_regulatory_tx_power(const char * ifname, const qcsapi_unsigned_int the_channel, const char * region_by_name, int * p_tx_power) { int retries = 0; int ret; CLIENT *clnt = qcsapi_adapter_get_client(); enum clnt_stat __rpcret; struct qcsapi_wifi_get_regulatory_tx_power_rpcdata __req; struct qcsapi_wifi_get_regulatory_tx_power_rpcdata __resp; memset(&__req, 0, sizeof(__req)); memset(&__resp, 0, sizeof(__resp)); __rpc_string __rpcifname = {(char *)ifname}; __rpc_string *p__rpcifname = (ifname) ? &__rpcifname : NULL; __req.ifname = p__rpcifname; __req.the_channel = (unsigned int)the_channel; __rpc_string __rpcregion_by_name = {(char *)region_by_name}; __rpc_string *p__rpcregion_by_name = (region_by_name) ? &__rpcregion_by_name : NULL; __req.region_by_name = p__rpcregion_by_name; __req.p_tx_power = (int *)p_tx_power; if (debug) { fprintf(stderr, "%s:%d %s pre\n", __FILE__, __LINE__, __FUNCTION__); } client_qcsapi_pre(); while (1) { __rpcret = clnt_call(clnt, QCSAPI_WIFI_GET_REGULATORY_TX_POWER_REMOTE, (xdrproc_t)xdr_qcsapi_wifi_get_regulatory_tx_power_rpcdata, (caddr_t)&__req, (xdrproc_t)xdr_qcsapi_wifi_get_regulatory_tx_power_rpcdata, (caddr_t)&__resp, __timeout); if (__rpcret == RPC_SUCCESS) { client_qcsapi_post(0); break; } else { clnt_perror (clnt, "qcsapi_wifi_get_regulatory_tx_power call failed"); clnt_perrno (__rpcret); if (retries >= retries_limit) { client_qcsapi_post(1); xdr_free((xdrproc_t)xdr_qcsapi_wifi_get_regulatory_tx_power_rpcdata, (caddr_t)&__resp); return -ENOLINK; } retries++; client_qcsapi_reconnect(); } } if (__resp.return_code >= 0) { if (p_tx_power) *p_tx_power = *__resp.p_tx_power; } if (debug) { fprintf(stderr, "%s:%d %s post\n", __FILE__, __LINE__, __FUNCTION__); } ret = __resp.return_code; xdr_free((xdrproc_t)xdr_qcsapi_wifi_get_regulatory_tx_power_rpcdata, (caddr_t)&__resp); return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_47B09A", "function_addr": 4698266, "binary_name": "501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0B0h"], [3, "mov [rbp+var_98], rdi"], [4, "mov [rbp+var_9C], esi"], [5, "mov [rbp+var_A8], rdx"], [6, "mov [rbp+var_B0], rcx"], [7, "mov [rbp+var_4], 0"], [8, "call sub_447E6C"], [9, "mov [rbp+clnt], rax"], [10, "lea rax, [rbp+s]"], [11, "mov edx, 28h "], [12, "mov esi, 0"], [13, "mov rdi, rax"], [14, "call _memset"], [15, "lea rax, [rbp+objp]"], [16, "mov edx, 28h "], [17, "mov esi, 0"], [18, "mov rdi, rax"], [19, "call _memset"], [20, "mov rax, [rbp+var_98]"], [21, "mov [rbp+var_88], rax"], [22, "cmp [rbp+var_98], 0"], [23, "jz short loc_47B11D"], [24, "lea rax, [rbp+var_88]"], [25, "jmp short loc_47B122"], [26, "mov eax, 0"], [27, "mov [rbp+var_18], rax"], [28, "mov rax, [rbp+var_18]"], [29, "mov [rbp+s], rax"], [30, "mov eax, [rbp+var_9C]"], [31, "mov [rbp+var_48], eax"], [32, "mov rax, [rbp+var_A8]"], [33, "mov [rbp+var_90], rax"], [34, "cmp [rbp+var_A8], 0"], [35, "jz short loc_47B158"], [36, "lea rax, [rbp+var_90]"], [37, "jmp short loc_47B15D"], [38, "mov eax, 0"], [39, "mov [rbp+var_20], rax"], [40, "mov rax, [rbp+var_20]"], [41, "mov [rbp+var_40], rax"], [42, "mov rax, [rbp+var_B0]"], [43, "mov [rbp+var_38], rax"], [44, "mov eax, 0"], [45, "test eax, eax"], [46, "jz short loc_47B1AE"], [47, "mov rax, cs:stderr_ptr"], [48, "mov rax, [rax]"], [49, "lea r8, aQcsapiWifiGetR_17"], [50, "mov ecx, 4E6Ch"], [51, "lea rdx, aQcsapiRpcGener"], [52, "lea rsi, aSDSPre"], [53, "mov rdi, rax"], [54, "mov eax, 0"], [55, "call _fprintf"], [56, "lea rdi, aQcsapiWifiGetR_17"], [57, "call sub_447EFE"], [58, "mov rax, [rbp+clnt]"], [59, "mov rax, [rax+8]"], [60, "mov r10, [rax]"], [61, "lea rcx, [rbp+objp]"], [62, "lea rdx, [rbp+s]"], [63, "mov rax, [rbp+clnt]"], [64, "push cs:qword_4BF588"], [65, "push cs:qword_4BF580"], [66, "mov r9, rcx"], [67, "mov rcx, offset sub_4422E9"], [68, "mov r8, rcx"], [69, "mov rcx, rdx"], [70, "mov rdx, offset sub_4422E9"], [71, "mov esi, 0C3Bh"], [72, "mov rdi, rax"], [73, "call r10"], [74, "add rsp, 10h"], [75, "mov [rbp+num], eax"], [76, "cmp [rbp+num], 0"], [77, "jnz short loc_47B22B"], [78, "mov esi, 0"], [79, "lea rdi, aQcsapiWifiGetR_17"], [80, "call sub_447F29"], [81, "nop"], [82, "mov eax, [rbp+var_60]"], [83, "test eax, eax"], [84, "js loc_47B2B2"], [85, "jmp short loc_47B299"], [86, "mov rax, [rbp+clnt]"], [87, "lea rsi, aQcsapiWifiGetR_18"], [88, "mov rdi, rax"], [89, "call _clnt_perror"], [90, "mov eax, [rbp+num]"], [91, "mov edi, eax"], [92, "call _clnt_perrno"], [93, "mov eax, cs:dword_4BF570"], [94, "cmp [rbp+var_4], eax"], [95, "jl short loc_47B284"], [96, "mov esi, 1"], [97, "lea rdi, aQcsapiWifiGetR_17"], [98, "call sub_447F29"], [99, "lea rax, [rbp+objp]"], [100, "mov rsi, rax"], [101, "mov rax, offset sub_4422E9"], [102, "mov rdi, rax"], [103, "call _xdr_free"], [104, "mov eax, 0FFFFFFBDh"], [105, "jmp locret_47B30B"], [106, "add [rbp+var_4], 1"], [107, "lea rdi, aQcsapiWifiGetR_17"], [108, "call sub_447F5C"], [109, "jmp loc_47B1BA"], [110, "cmp [rbp+var_B0], 0"], [111, "jz short loc_47B2B2"], [112, "mov rax, [rbp+var_68]"], [113, "mov edx, [rax]"], [114, "mov rax, [rbp+var_B0]"], [115, "mov [rax], edx"], [116, "mov eax, 0"], [117, "test eax, eax"], [118, "jz short loc_47B2EC"], [119, "mov rax, cs:stderr_ptr"], [120, "mov rax, [rax]"], [121, "lea r8, aQcsapiWifiGetR_17"], [122, "mov ecx, 4E88h"], [123, "lea rdx, aQcsapiRpcGener"], [124, "lea rsi, aSDSPost"], [125, "mov rdi, rax"], [126, "mov eax, 0"], [127, "call _fprintf"], [128, "mov eax, [rbp+var_60]"], [129, "mov [rbp+var_28], eax"], [130, "lea rax, [rbp+objp]"], [131, "mov rsi, rax"], [132, "mov rax, offset sub_4422E9"], [133, "mov rdi, rax"], [134, "call _xdr_free"], [135, "mov eax, [rbp+var_28]"], [136, "leave"], [137, "retn"]], "data_dep": [[9, 8], [10, 8], [13, 10], [15, 14], [18, 15], [20, 3], [21, 20], [22, 3], [23, 22], [24, 21], [24, 20], [27, 24], [27, 26], [28, 27], [29, 28], [30, 4], [31, 30], [32, 5], [33, 32], [34, 5], [35, 34], [36, 33], [36, 32], [39, 36], [39, 38], [40, 39], [41, 40], [42, 6], [43, 42], [45, 44], [46, 45], [48, 47], [51, 16], [52, 17], [53, 48], [56, 53], [56, 18], [58, 9], [59, 58], [60, 59], [61, 69], [61, 50], [62, 16], [62, 70], [62, 29], [62, 51], [63, 9], [66, 61], [68, 67], [69, 62], [72, 63], [73, 60], [74, 2], [74, 74], [75, 73], [76, 75], [77, 76], [79, 72], [83, 82], [84, 83], [86, 9], [87, 71], [88, 86], [90, 75], [91, 90], [94, 7], [94, 93], [94, 106], [95, 94], [97, 91], [99, 98], [100, 99], [102, 101], [106, 106], [106, 7], [107, 91], [110, 6], [111, 110], [113, 112], [114, 6], [115, 114], [115, 113], [117, 116], [118, 117], [120, 115], [120, 119], [121, 68], [123, 70], [123, 113], [124, 78], [125, 120], [129, 128], [130, 128], [131, 130], [133, 132], [135, 129], [137, 104], [137, 135]]}
static void _printn(int n) { int rem; if (n < 0) { _putchar('-'); n = -n; } rem = __mod(n, 10); if (rem != n) { _printn(__div(n, 10)); } _putchar('0' + rem); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401361", "function_addr": 4199265, "binary_name": "a7d77ac171dfefbf3fe06cbb3af3b1aa79916d6c960f658aabb50f3c3f1d79eb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_14], edi"], [4, "cmp [rbp+var_14], 0"], [5, "jns short loc_40137F"], [6, "mov edi, 2Dh "], [7, "call sub_4016A6"], [8, "neg [rbp+var_14]"], [9, "mov eax, [rbp+var_14]"], [10, "mov esi, 0Ah"], [11, "mov edi, eax"], [12, "call sub_401342"], [13, "mov [rbp+var_4], eax"], [14, "mov eax, [rbp+var_4]"], [15, "cmp eax, [rbp+var_14]"], [16, "jz short loc_4013AF"], [17, "mov eax, [rbp+var_14]"], [18, "mov esi, 0Ah"], [19, "mov edi, eax"], [20, "call sub_401318"], [21, "mov edi, eax"], [22, "call sub_401361"], [23, "mov eax, [rbp+var_4]"], [24, "add eax, 30h "], [25, "movsx eax, al"], [26, "mov edi, eax"], [27, "call sub_4016A6"], [28, "nop"], [29, "leave"], [30, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 3], [9, 8], [9, 3], [11, 9], [13, 12], [14, 13], [15, 8], [15, 14], [15, 3], [16, 15], [17, 3], [17, 8], [19, 17], [21, 20], [23, 13], [24, 23], [25, 24], [26, 25], [30, 27]]}