[*] Binary protection state of libsysutils.so

  
  	No RELRO       No Canary found   NX disabled  DSO          No RPATH     No RUNPATH   Symbols


[*] Function fprintf tear down of libsysutils.so

    ; assembly                               | /* r2dec pseudo code output */
                                             | /* /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/lib/libsysutils.so @ 0x1020 */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) sym.__do_global_dtors_aux ()     | void do_global_dtors_aux () {
    0x00001020 lui gp, 2                     |     
    0x00001024 addiu gp, gp, -0x2000         |     
    0x00001028 addu gp, gp, t9               |     gp += t9;
    0x0000102c addiu sp, sp, -0x30           |     
    0x00001030 sw s3, 0x28(sp)               |     *(var_28h) = s3;
    0x00001034 lw s3, -0x7fe4(gp)            |     s3 = *((gp - 8185));
    0x00001038 sw gp, 0x10(sp)               |     *(var_10h) = gp;
    0x0000103c sw ra, 0x2c(sp)               |     *(var_2ch) = ra;
    0x00001040 lbu v0, 0x7130(s3)            |     v0 = *((s3 + 28976));
    0x00001044 sw s2, 0x24(sp)               |     *(var_24h) = s2;
    0x00001048 sw s1, 0x20(sp)               |     *(var_20h) = s1;
    0x0000104c sw s0, 0x1c(sp)               |     *(var_1ch) = s0;
    0x00001050 lw v0, -0x7f18(gp)            |     v0 = *((gp - 8134));
                                             |     if (v0 != 0) {
    0x00001054 bnez v0, 0x110c               |         goto label_1;
                                             |     }
    0x00001058 lw v0, -0x7fe0(gp)            |     v0 = *(gp);
                                             |     if (v0 != 0) {
    0x0000105c beqz v0, 0x1070               |         
    0x00001060 lw t9, -0x7f18(gp)            |         t9 = *((gp - 8134));
    0x00001064 lw a0, (v0)                   |         a0 = *(v0);
    0x00001068 jalr t9                       |         t9 ();
    0x0000106c lw gp, 0x10(sp)               |         gp = *(var_10h);
                                             |     }
    0x00001070 lw s2, -0x7fe4(gp)            |     s2 = *((gp - 8185));
    0x00001074 lw s0, -0x7fe4(gp)            |     s0 = *((gp - 8185));
    0x00001078 lw s1, -0x7fdc(gp)            |     s1 = *(gp);
                                             |     /* obj.__DTOR_LIST__ */
    0x0000107c addiu s2, s2, 0x7008          |     s2 += 0x7008;
    0x00001080 lw v0, 0x7134(s0)             |     v0 = *((s0 + 7245));
    0x00001084 subu s1, s1, s2               |     __asm ("subu s1, s1, s2");
    0x00001088 sra s1, s1, 2                 |     s1 >>= 2;
    0x0000108c addiu s1, s1, -1              |     s1 += -1;
    0x00001090 sltu v1, v0, s1               |     v1 = (v0 < s1) ? 1 : 0;
    0x00001094 lw t9, -0x7fd8(gp)            |     t9 = *((gp - 8182));
                                             |     if (v1 == 0) {
    0x00001098 beqz v1, 0x10c8               |         goto label_2;
                                             |     }
                                             |     do {
    0x0000109c addiu v0, v0, 1               |         v0++;
    0x000010a0 sll v1, v0, 2                 |         v1 = v0 << 2;
    0x000010a4 addu v1, s2, v1               |         v1 = s2 + v1;
    0x000010a8 lw t9, (v1)                   |         t9 = *(v1);
    0x000010ac sw v0, 0x7134(s0)             |         *((s0 + 7245)) = v0;
    0x000010b0 jalr t9                       |         t9 ();
    0x000010b4 lw v0, 0x7134(s0)             |         v0 = *((s0 + 7245));
    0x000010b8 sltu v1, v0, s1               |         v1 = (v0 < s1) ? 1 : 0;
    0x000010bc lw gp, 0x10(sp)               |         gp = *(var_10h);
    0x000010c0 bnez v1, 0x109c               |         
                                             |     } while (v1 != 0);
    0x000010c4 lw t9, -0x7fd8(gp)            |     t9 = *((gp - 8182));
                                             | label_2:
    0x000010c8 addiu t9, t9, 0xf90           |     t9 += entry0;
    0x000010cc bal 0xf90                     |     entry0 ();
    0x000010d0 nop                           |     
    0x000010d4 lw gp, 0x10(sp)               |     gp = *(var_10h);
    0x000010d8 lw v0, -0x7f70(gp)            |     v0 = *((gp - 8156));
    0x000010dc lw a0, -0x7f84(gp)            |     a0 = *((gp - 8161));
                                             |     if (v0 == 0) {
    0x000010e0 beqz v0, 0x1128               |         goto label_3;
                                             |     }
    0x000010e4 lw v0, -0x7f4c(gp)            |     v0 = *((gp - 8147));
                                             |     if (a0 == 0) {
    0x000010e8 beqz a0, 0x112c               |         goto label_4;
                                             |     }
    0x000010ec lb v0, (a0)                   |     v0 = *(a0);
    0x000010f0 slti v0, v0, 2                |     v0 = (v0 < 2) ? 1 : 0;
    0x000010f4 lw t9, -0x7f4c(gp)            |     t9 = *((gp - 8147));
                                             |     if (v0 != 0) {
    0x000010f8 bnez v0, 0x1128               |         goto label_3;
                                             |     }
    0x000010fc jalr t9                       |     t9 ();
    0x00001100 nop                           |     
                                             |     do {
    0x00001104 addiu v0, zero, 1             |         v0 = 1;
                                             | label_0:
    0x00001108 sb v0, 0x7130(s3)             |         *((s3 + 28976)) = v0;
                                             | label_1:
    0x0000110c lw ra, 0x2c(sp)               |         ra = *(var_2ch);
    0x00001110 lw s3, 0x28(sp)               |         s3 = *(var_28h);
    0x00001114 lw s2, 0x24(sp)               |         s2 = *(var_24h);
    0x00001118 lw s1, 0x20(sp)               |         s1 = *(var_20h);
    0x0000111c lw s0, 0x1c(sp)               |         s0 = *(var_1ch);
    0x00001120 addiu sp, sp, 0x30            |         
    0x00001124 jr ra                         |         return v0;
                                             | label_3:
    0x00001128 lw v0, -0x7f4c(gp)            |         v0 = *((gp - 8147));
                                             | label_4:
    0x0000112c lw a0, -0x7fd8(gp)            |         a0 = *((gp - 8182));
    0x00001130 beqz v0, 0x1104               |         
                                             |     } while (v0 == 0);
    0x00001134 lw t9, -0x7f4c(gp)            |     t9 = *((gp - 8147));
    0x00001138 addiu a0, a0, 0x69d0          |     a0 += obj.__EH_FRAME_BEGIN__;
    0x0000113c jalr t9                       |     t9 ();
    0x00001140 addiu v0, zero, 1             |     v0 = 1;
    0x00001144 b 0x1108                      |     goto label_0;
                                             | }

[*] Function fprintf used 1 times libsysutils.so