[*] Binary protection state of fsck.util-linux
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function sprintf tear down of fsck.util-linux
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/fsck.util-linux @ 0x2668 */
| #include <stdint.h>
|
; (fcn) fcn.00002668 () | void fcn_00002668 () {
0x00002668 lui gp, 2 |
0x0000266c addiu gp, gp, 0x29c8 |
0x00002670 addu gp, gp, t9 | gp += t9;
0x00002674 addiu sp, sp, -0x28 |
0x00002678 addiu v0, sp, 0x30 | v0 = sp + 0x30;
0x0000267c sw s0, 0x20(sp) | *(var_20h) = s0;
0x00002680 lw s0, -0x7dcc(gp) | s0 = *((gp - 8051));
0x00002684 lw t9, -0x7e84(gp) | t9 = sym.imp.__vasprintf_chk
0x00002688 sw gp, 0x10(sp) | *(var_10h) = gp;
0x0000268c lw v1, (s0) | v1 = *(s0);
0x00002690 sw ra, 0x24(sp) | *(var_24h) = ra;
0x00002694 sw a2, 0x30(sp) | *(arg_30h) = a2;
0x00002698 sw a3, 0x34(sp) | *(arg_34h) = a3;
0x0000269c move a2, a1 | a2 = a1;
0x000026a0 sw v0, 0x18(sp) | *(var_18h) = v0;
0x000026a4 move a3, v0 | a3 = v0;
0x000026a8 addiu a1, zero, 1 | a1 = 1;
0x000026ac sw v1, 0x1c(sp) | *(var_1ch) = v1;
0x000026b0 jalr t9 | t9 ();
0x000026b4 nop |
0x000026b8 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 >= 0) {
0x000026bc bltz v0, 0x26dc |
0x000026c0 lw a0, 0x1c(sp) | a0 = *(var_1ch);
0x000026c4 lw v1, (s0) | v1 = *(s0);
0x000026c8 lw ra, 0x24(sp) | ra = *(var_24h);
| if (a0 != v1) {
0x000026cc bne a0, v1, 0x26f0 | goto label_0;
| }
0x000026d0 lw s0, 0x20(sp) | s0 = *(var_20h);
0x000026d4 addiu sp, sp, 0x28 |
0x000026d8 jr ra | return v1;
| }
0x000026dc lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x000026e0 lw t9, -0x7e04(gp) | t9 = sym.imp.err;
0x000026e4 addiu a1, a1, -0x4544 | a1 += -0x4544;
0x000026e8 addiu a0, zero, 8 | a0 = 8;
0x000026ec jalr t9 | t9 ();
| label_0:
0x000026f0 lw t9, -0x7dec(gp) | t9 = sym.imp.__stack_chk_fail;
0x000026f4 jalr t9 | t9 ();
0x000026f8 nop |
| }
[*] Function sprintf used 2 times fsck.util-linux