[*] Binary protection state of systemlogd
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function strcpy tear down of systemlogd
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/systemlogd @ 0x4704 */
| #include <stdint.h>
|
; (fcn) fcn.00004704 () | void fcn_00004704 () {
0x00004704 lui gp, 2 |
0x00004708 addiu gp, gp, -0x36f4 |
0x0000470c addu gp, gp, t9 | gp += t9;
0x00004710 addiu sp, sp, -0x20 |
0x00004714 lw t9, -0x7cb4(gp) | t9 = sym.imp.g_free;
0x00004718 sw s0, 0x18(sp) | *(var_18h) = s0;
0x0000471c move s0, a0 | s0 = a0;
0x00004720 lw a0, 4(a0) | a0 = *((a0 + 1));
0x00004724 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00004728 sw ra, 0x1c(sp) | *(var_1ch) = ra;
0x0000472c jalr t9 | t9 ();
0x00004730 nop |
0x00004734 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004738 lw t9, -0x7cb4(gp) | t9 = sym.imp.g_free;
0x0000473c lw a0, 8(s0) | a0 = *((s0 + 2));
0x00004740 jalr t9 | t9 ();
0x00004744 lw a0, 0x14(s0) | a0 = *((s0 + 5));
0x00004748 lw gp, 0x10(sp) | gp = *(var_10h);
0x0000474c bnez a0, 0x4834 |
| while (1) {
0x00004750 lw a0, 0xc(s0) | a0 = *((s0 + 3));
0x00004754 lw t9, -0x7ec4(gp) | t9 = sym.imp.g_io_channel_unref;
| if (a0 != 0) {
0x00004758 beqz a0, 0x4768 |
0x0000475c jalr t9 | t9 ();
0x00004760 nop |
0x00004764 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00004768 lw a0, 0x10(s0) | a0 = *((s0 + 4));
0x0000476c lw t9, -0x7d00(gp) | t9 = sym.imp.g_variant_builder_end;
| if (a0 != 0) {
0x00004770 beqz a0, 0x4780 |
0x00004774 jalr t9 | t9 ();
0x00004778 nop |
0x0000477c lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00004780 lw a0, 0x20(s0) | a0 = *((s0 + 8));
0x00004784 lw t9, -0x7e4c(gp) | t9 = sym.imp.g_source_remove;
| if (a0 != 0) {
0x00004788 bnez a0, 0x4870 | goto label_3;
| }
| label_2:
0x0000478c lw a0, 0x1c(s0) | a0 = *((s0 + 7));
0x00004790 lw t9, -0x7ec4(gp) | t9 = sym.imp.g_io_channel_unref;
| if (a0 != 0) {
0x00004794 beqz a0, 0x47a4 |
0x00004798 jalr t9 | t9 ();
0x0000479c nop |
0x000047a0 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x000047a4 lw v0, 0x24(s0) | v0 = *((s0 + 9));
0x000047a8 lw a0, 0x18(s0) | a0 = *((s0 + 6));
| if (v0 != 0) {
0x000047ac bnez v0, 0x4858 | goto label_4;
| }
| label_1:
0x000047b0 lw t9, -0x7d00(gp) | t9 = sym.imp.g_variant_builder_end;
| if (a0 != 0) {
0x000047b4 beqz a0, 0x47c4 |
0x000047b8 jalr t9 | t9 ();
0x000047bc nop |
0x000047c0 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x000047c4 lw a0, 0x30(s0) | a0 = *((s0 + 12));
0x000047c8 lw t9, -0x7e4c(gp) | t9 = sym.imp.g_source_remove;
| if (a0 != 0) {
0x000047cc bnez a0, 0x4848 | goto label_5;
| }
| label_0:
0x000047d0 lw a0, 0x2c(s0) | a0 = *((s0 + 11));
0x000047d4 lw t9, -0x7ec4(gp) | t9 = sym.imp.g_io_channel_unref;
| if (a0 != 0) {
0x000047d8 beqz a0, 0x47e8 |
0x000047dc jalr t9 | t9 ();
0x000047e0 nop |
0x000047e4 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x000047e8 lw a0, 0x28(s0) | a0 = *((s0 + 10));
0x000047ec lw t9, -0x7e90(gp) | t9 = sym.imp.g_io_error_quark;
| if (a0 != 0) {
0x000047f0 beqz a0, 0x4800 |
0x000047f4 jalr t9 | t9 ();
0x000047f8 nop |
0x000047fc lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00004800 lw a0, 0x34(s0) | a0 = *((s0 + 13));
0x00004804 lw t9, -0x7db8(gp) | t9 = sym.imp.g_string_free;
| if (a0 != 0) {
0x00004808 beqz a0, 0x4818 |
0x0000480c addiu a1, zero, 1 | a1 = 1;
0x00004810 jalr t9 | t9 ();
0x00004814 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00004818 lw ra, 0x1c(sp) | ra = *(var_1ch);
0x0000481c move a1, s0 | a1 = s0;
0x00004820 lw t9, -0x7f48(gp) | t9 = sym.imp.g_slice_free1;
0x00004824 lw s0, 0x18(sp) | s0 = *(var_18h);
0x00004828 addiu a0, zero, 0x38 | a0 = 0x38;
0x0000482c addiu sp, sp, 0x20 |
0x00004830 jr t9 | t9 ();
0x00004834 lw t9, -0x7e4c(gp) | t9 = sym.imp.g_source_remove;
0x00004838 jalr t9 | t9 ();
0x0000483c nop |
0x00004840 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004844 b 0x4750 |
| }
| label_5:
0x00004848 jalr t9 | t9 ();
0x0000484c nop |
0x00004850 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004854 b 0x47d0 | goto label_0;
| label_4:
0x00004858 lw t9, -0x7f30(gp) | t9 = sym.imp.g_dbus_gvariant_to_gvalue;
0x0000485c jalr t9 | t9 ();
0x00004860 nop |
0x00004864 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004868 lw a0, 0x18(s0) | a0 = *((s0 + 6));
0x0000486c b 0x47b0 | goto label_1;
| label_3:
0x00004870 jalr t9 | t9 ();
0x00004874 nop |
0x00004878 lw gp, 0x10(sp) | gp = *(var_10h);
0x0000487c b 0x478c | goto label_2;
| }
[*] Function strcpy used 1 times systemlogd