[*] Binary protection state of cryptsetup-reencrypt
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function strcat tear down of cryptsetup-reencrypt
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/cryptsetup-reencrypt @ 0x73d0 */
| #include <stdint.h>
|
; (fcn) sym.clogger () | void clogger () {
0x000073d0 lui gp, 3 |
0x000073d4 addiu gp, gp, -0x5bd0 |
0x000073d8 addu gp, gp, t9 | gp += t9;
0x000073dc addiu sp, sp, -0x1048 |
0x000073e0 addiu v0, sp, 0x105c | v0 = sp + 0x105c;
0x000073e4 sw s0, 0x1034(sp) | *(var_1034h) = s0;
0x000073e8 lw s0, -0x7cdc(gp) | s0 = *((gp - 7991));
0x000073ec sw v0, 0x24(sp) | *(var_24h) = v0;
0x000073f0 lw t9, -0x7d8c(gp) | t9 = sym.imp.__vsnprintf_chk;
0x000073f4 lw v1, (s0) | v1 = *(s0);
0x000073f8 sw v0, 0x14(sp) | *(var_14h) = v0;
0x000073fc lw v0, 0x1058(sp) | v0 = *(arg_1058h);
0x00007400 sw s1, 0x1038(sp) | *(var_1038h) = s1;
0x00007404 addiu s1, sp, 0x28 | s1 = sp + 0x28;
0x00007408 sw gp, 0x18(sp) | *(var_18h) = gp;
0x0000740c sw s3, 0x1040(sp) | *(var_1040h) = s3;
0x00007410 sw s2, 0x103c(sp) | *(var_103ch) = s2;
0x00007414 sw ra, 0x1044(sp) | *(var_1044h) = ra;
0x00007418 move s3, a0 | s3 = a0;
0x0000741c move s2, a1 | s2 = a1;
0x00007420 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00007424 addiu a3, zero, 0x1002 | a3 = 0x1002;
0x00007428 addiu a2, zero, 1 | a2 = 1;
0x0000742c addiu a1, zero, 0x1000 | a1 = 0x1000;
0x00007430 move a0, s1 | a0 = s1;
0x00007434 sw v1, 0x102c(sp) | *(var_102ch) = v1;
0x00007438 jalr t9 | t9 ();
0x0000743c nop |
0x00007440 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 <= 0) {
0x00007444 blez v0, 0x7478 | goto label_0;
| }
0x00007448 addiu v0, s2, -1 | v0 = s2 + -1;
0x0000744c sltiu v0, v0, 2 | v0 = (v0 < 2) ? 1 : 0;
0x00007450 addiu v0, s2, 2 | v0 = s2 + 2;
| if (v0 != 0) {
0x00007454 bnez v0, 0x74a0 | goto label_1;
| }
0x00007458 sltiu v0, v0, 2 | v0 = (v0 < 2) ? 1 : 0;
0x0000745c lw t9, -0x7eb8(gp) | t9 = sym.imp.crypt_log;
| if (v0 != 0) {
0x00007460 bnez v0, 0x74a0 | goto label_1;
| }
0x00007464 move a2, s1 | a2 = s1;
0x00007468 move a1, s2 | a1 = s2;
0x0000746c move a0, s3 | a0 = s3;
0x00007470 jalr t9 | t9 ();
0x00007474 lw gp, 0x18(sp) | gp = *(var_18h);
| do {
| label_0:
0x00007478 lw v1, 0x102c(sp) | v1 = *(var_102ch);
0x0000747c lw v0, (s0) | v0 = *(s0);
0x00007480 lw ra, 0x1044(sp) | ra = *(var_1044h);
| if (v1 != v0) {
0x00007484 bne v1, v0, 0x74d8 | goto label_2;
| }
0x00007488 lw s3, 0x1040(sp) | s3 = *(var_1040h);
0x0000748c lw s2, 0x103c(sp) | s2 = *(var_103ch);
0x00007490 lw s1, 0x1038(sp) | s1 = *(var_1038h);
0x00007494 lw s0, 0x1034(sp) | s0 = *(var_1034h);
0x00007498 addiu sp, sp, 0x1048 |
0x0000749c jr ra | return v1;
| label_1:
0x000074a0 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x000074a4 lw t9, -0x7dbc(gp) | t9 = sym.imp.__strcat_chk
0x000074a8 addiu a2, zero, 0x1002 | a2 = 0x1002;
0x000074ac addiu a1, a1, 0x1020 | a1 += 0x1020;
0x000074b0 move a0, s1 | a0 = s1;
0x000074b4 jalr t9 | t9 ();
0x000074b8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000074bc move a2, s1 | a2 = s1;
0x000074c0 move a1, s2 | a1 = s2;
0x000074c4 lw t9, -0x7eb8(gp) | t9 = sym.imp.crypt_log;
0x000074c8 move a0, s3 | a0 = s3;
0x000074cc jalr t9 | t9 ();
0x000074d0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000074d4 b 0x7478 |
| } while (1);
| label_2:
0x000074d8 lw t9, -0x7dec(gp) | t9 = sym.imp.__stack_chk_fail;
0x000074dc jalr t9 | t9 ();
0x000074e0 nop |
| }
[*] Function strcat used 2 times cryptsetup-reencrypt