[*] Binary protection state of xtables-legacy-multi

  
  	Full RELRO     Canary found      NX disabled  PIE enabled  No RPATH     No RUNPATH   No Symbols


[*] Function system tear down of xtables-legacy-multi

    ; assembly                               | /* r2dec pseudo code output */
                                             | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/xtables-legacy-multi @ 0xda64 */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) sym.xs_init_target ()            | void xs_init_target () {
    0x0000da64 lui gp, 2                     |     
    0x0000da68 addiu gp, gp, -0x4f4          |     
    0x0000da6c addu gp, gp, t9               |     gp += t9;
    0x0000da70 addiu sp, sp, -0x20           |     
    0x0000da74 lw v0, 0x4c(a0)               |     v0 = *((a0 + 19));
    0x0000da78 sw gp, 0x10(sp)               |     *(var_10h) = gp;
    0x0000da7c sw s0, 0x18(sp)               |     *(var_18h) = s0;
    0x0000da80 sw ra, 0x1c(sp)               |     *(var_1ch) = ra;
    0x0000da84 move s0, a0                   |     s0 = a0;
    0x0000da88 bnez v0, 0xdaa8               |     
                                             |     while (v0 != 0) {
    0x0000da8c lw t9, 0x20(s0)               |         t9 = *((s0 + 8));
    0x0000da90 lw ra, 0x1c(sp)               |         ra = *(var_1ch);
                                             |         if (t9 == 0) {
    0x0000da94 beqz t9, 0xdae4               |             goto label_0;
                                             |         }
    0x0000da98 lw a0, 0x58(s0)               |         a0 = *((s0 + 22));
    0x0000da9c lw s0, 0x18(sp)               |         s0 = *(var_18h);
    0x0000daa0 addiu sp, sp, 0x20            |         
    0x0000daa4 jr t9                         |         t9 ();
    0x0000daa8 lw t9, -0x7cd8(gp)            |         t9 = sym.imp.free;
    0x0000daac lw a0, 0x50(a0)               |         a0 = *((a0 + 20));
    0x0000dab0 jalr t9                       |         t9 ();
    0x0000dab4 lw gp, 0x10(sp)               |         gp = *(var_10h);
    0x0000dab8 lw a1, 0x4c(s0)               |         a1 = *((s0 + 19));
    0x0000dabc lw t9, -0x7ee8(gp)            |         t9 = sym.imp.calloc;
    0x0000dac0 addiu a0, zero, 1             |         a0 = 1;
    0x0000dac4 jalr t9                       |         t9 ();
    0x0000dac8 lw gp, 0x10(sp)               |         gp = *(var_10h);
    0x0000dacc sw v0, 0x50(s0)               |         *((s0 + 20)) = v0;
    0x0000dad0 bnez v0, 0xda8c               |         
                                             |     }
    0x0000dad4 lw t9, -0x7fc8(gp)            |     t9 = *(gp);
    0x0000dad8 addiu t9, t9, -0x2a90         |     t9 += -0x2a90;
    0x0000dadc bal 0xd570                    |     fcn_0000d570 ();
    0x0000dae0 nop                           |     
                                             | label_0:
    0x0000dae4 lw s0, 0x18(sp)               |     s0 = *(var_18h);
    0x0000dae8 addiu sp, sp, 0x20            |     
    0x0000daec jr ra                         |     return v0;
                                             | }

[*] Function system used 1 times xtables-legacy-multi