[*] Binary protection state of depd
Full RELRO Canary found NX enabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of depd
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/bin/depd @ 0x297c */
| #include <stdint.h>
|
; (fcn) fcn.0000297c () | void fcn_0000297c (int16_t arg1) {
| r0 = arg1;
0x0000297c stmibvs r3, {r3, r8, sl, ip, sp, pc} ^ | __asm ("stmibvs r3, {r3, r8, sl, ip, sp, pc} ^");
0x00002980 cmp r3, 2 |
| if (r3 == 2) {
0x00002982 beq 0x29ac | goto label_1;
| }
0x00002984 cmp r3, 3 |
| if (r3 == 3) {
0x00002986 beq 0x29ba | goto label_2;
| }
0x00002988 cmp r3, 1 |
| if (r3 != 1) {
0x0000298a beq 0x299a |
0x0000298c ldr r2, [r0, 8] | r2 = *((r0 + 8));
0x0000298e ldr r1, [r0] | r1 = *(r0);
0x00002990 ldr r0, [pc, 0x38] |
0x00002992 add r0, pc | r0 = 0x5362;
0x00002994 blx 0x1650 | g_strdup_printf ()
0x00002998 b 0x29a6 |
| } else {
0x0000299a ldr r2, [r0, 0xc] | r2 = *((r0 + 0xc));
0x0000299c ldr r1, [r0] | r1 = *(r0);
0x0000299e ldr r0, [pc, 0x30] |
0x000029a0 add r0, pc | r0 = 0x5376;
0x000029a2 blx 0x1650 | g_strdup_printf ()
| }
| do {
| label_0:
0x000029a6 blx 0x14a0 | g_free ();
0x000029aa pop {r3, pc} |
| label_1:
0x000029ac ldr r2, [r0, 0x18] | r2 = *((r0 + 0x18));
0x000029ae ldr r1, [r0] | r1 = *(r0);
0x000029b0 ldr r0, [pc, 0x20] |
0x000029b2 add r0, pc | r0 = 0x538a;
0x000029b4 blx 0x1650 | g_strdup_printf ()
0x000029b8 b 0x29a6 |
| } while (1);
| label_2:
0x000029ba ldrd r2, r3, [r0, 0x10] | __asm ("ldrd r2, r3, [r0, 0x10]");
0x000029be ldr r1, [r0] | r1 = *(r0);
0x000029c0 ldr r0, [pc, 0x14] |
0x000029c2 add r0, pc | r0 = 0x539e;
0x000029c4 blx 0x1650 | g_strdup_printf ()
0x000029c8 b 0x29a6 | goto label_0;
| }
[*] Function printf used 5 times depd