[*] 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-50593792.squashfs_v4_le_extract/usr/bin/depd @ 0x28e4 */
| #include <stdint.h>
|
; (fcn) fcn.000028e4 () | void fcn_000028e4 (int16_t arg1) {
| r0 = arg1;
0x000028e4 stmibvs r3, {r3, r8, sl, ip, sp, pc} ^ | __asm ("stmibvs r3, {r3, r8, sl, ip, sp, pc} ^");
0x000028e8 cmp r3, 2 |
| if (r3 == 2) {
0x000028ea beq 0x2914 | goto label_1;
| }
0x000028ec cmp r3, 3 |
| if (r3 == 3) {
0x000028ee beq 0x2922 | goto label_2;
| }
0x000028f0 cmp r3, 1 |
| if (r3 != 1) {
0x000028f2 beq 0x2902 |
0x000028f4 ldr r2, [r0, 8] | r2 = *((r0 + 8));
0x000028f6 ldr r1, [r0] | r1 = *(r0);
0x000028f8 ldr r0, [pc, 0x38] |
0x000028fa add r0, pc | r0 = 0x5232;
0x000028fc blx 0x15c8 | g_strdup_printf ()
0x00002900 b 0x290e |
| } else {
0x00002902 ldr r2, [r0, 0xc] | r2 = *((r0 + 0xc));
0x00002904 ldr r1, [r0] | r1 = *(r0);
0x00002906 ldr r0, [pc, 0x30] |
0x00002908 add r0, pc | r0 = 0x5246;
0x0000290a blx 0x15c8 | g_strdup_printf ()
| }
| do {
| label_0:
0x0000290e blx 0x1418 | g_free ();
0x00002912 pop {r3, pc} |
| label_1:
0x00002914 ldr r2, [r0, 0x18] | r2 = *((r0 + 0x18));
0x00002916 ldr r1, [r0] | r1 = *(r0);
0x00002918 ldr r0, [pc, 0x20] |
0x0000291a add r0, pc | r0 = 0x525a;
0x0000291c blx 0x15c8 | g_strdup_printf ()
0x00002920 b 0x290e |
| } while (1);
| label_2:
0x00002922 ldrd r2, r3, [r0, 0x10] | __asm ("ldrd r2, r3, [r0, 0x10]");
0x00002926 ldr r1, [r0] | r1 = *(r0);
0x00002928 ldr r0, [pc, 0x14] |
0x0000292a add r0, pc | r0 = 0x526e;
0x0000292c blx 0x15c8 | g_strdup_printf ()
0x00002930 b 0x290e | goto label_0;
| }
[*] Function printf used 5 times depd