[*] Binary protection state of e2undo
Full RELRO Canary found NX enabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of e2undo
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/e2undo @ 0x1b74 */
| #include <stdint.h>
|
; (fcn) fcn.00001b74 () | void fcn_00001b74 () {
0x00001b74 push {r3, lr} |
0x00001b76 movs r1, 1 | r1 = 1;
0x00001b78 ldr r3, [pc, 0x20] |
0x00001b7a ldr.w ip, [pc, 0x24] | ip = *(0x1ba2);
0x00001b7e add r3, pc | r3 = 0x371e;
0x00001b80 ldr r0, [pc, 0x20] |
0x00001b82 ldr r2, [pc, 0x24] |
0x00001b84 ldr.w r4, [r3, ip] | r4 = *(0x371e);
0x00001b88 add r0, pc | r0 = 0x3730;
0x00001b8a ldr r3, [r0] | r3 = *(0x3730);
0x00001b8c add r2, pc | r2 = 0x373a;
0x00001b8e ldr r0, [r4] | r0 = *(0x371e);
0x00001b90 blx 0xc20 | fprintf_chk ()
0x00001b94 movs r0, 1 | r0 = 1;
0x00001b96 blx 0xb84 | exit (r0);
0x00001b9a nop |
0x00001b9c asrs r6, r3, 0xe | r6 = r3 >> 0xe;
0x00001b9e movs r1, r0 | r1 = r0;
0x00001ba0 lsls r0, r0, 3 | r0 <<= 3;
0x00001ba2 movs r0, r0 |
0x00001ba4 asrs r0, r0, 0x12 | r0 >>= 0x12;
0x00001ba6 movs r1, r0 | r1 = r0;
0x00001ba8 lsls r0, r0, 0xd | r0 <<= 0xd;
0x00001baa movs r0, r0 |
0x00001bac movs r0, r0 |
0x00001bae movs r0, r0 |
| }
[*] Function fprintf used 2 times e2undo