[*] Binary protection state of tc.iproute2
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function system tear down of tc.iproute2
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/tc.iproute2 @ 0x11208 */
| #include <stdint.h>
|
; (fcn) fcn.00011208 () | void fcn_00011208 () {
0x00011208 lui gp, 7 |
0x0001120c addiu gp, gp, -0xa78 |
0x00011210 addu gp, gp, t9 | gp += t9;
0x00011214 addiu sp, sp, -0xf8 |
0x00011218 lhu a3, (a1) | a3 = *(a1);
0x0001121c sw fp, 0xf0(sp) | *(var_f0h) = fp;
0x00011220 lw fp, -0x7a1c(gp) | fp = *((gp - 7815));
0x00011224 sw s1, 0xd4(sp) | *(var_d4h) = s1;
0x00011228 lw s1, -0x7e0c(gp) | s1 = *(gp);
0x0001122c lw v0, (fp) | v0 = *(fp);
0x00011230 lw t9, -0x7f4c(gp) | t9 = sym.parse_rtattr;
0x00011234 sw s0, 0xd0(sp) | *(var_d0h) = s0;
0x00011238 addiu s0, sp, 0x48 | s0 = sp + 0x48;
0x0001123c sw gp, 0x18(sp) | *(var_18h) = gp;
0x00011240 addiu a2, a1, 4 | a2 = a1 + 4;
0x00011244 sw s2, 0xd8(sp) | *(var_d8h) = s2;
0x00011248 sw ra, 0xf4(sp) | *(var_f4h) = ra;
0x0001124c sw s7, 0xec(sp) | *(var_ech) = s7;
0x00011250 sw s6, 0xe8(sp) | *(var_e8h) = s6;
0x00011254 sw s5, 0xe4(sp) | *(var_e4h) = s5;
0x00011258 sw s4, 0xe0(sp) | *(var_e0h) = s4;
0x0001125c sw s3, 0xdc(sp) | *(var_dch) = s3;
0x00011260 move s2, a0 | s2 = a0;
0x00011264 addiu a3, a3, -4 | a3 += -4;
0x00011268 addiu a1, zero, 0x20 | a1 = 0x20;
0x0001126c move a0, s0 | a0 = s0;
0x00011270 sw v0, 0xcc(sp) | *(var_cch) = v0;
0x00011274 jalr t9 | t9 ();
0x00011278 nop |
0x0001127c lw v0, (s1) | v0 = *(s1);
0x00011280 lw gp, 0x18(sp) | gp = *(var_18h);
0x00011284 lw a2, 0x48(sp) | a2 = *(var_48h);
| if (v0 != 0) {
0x00011288 beqz v0, 0x1129c |
0x0001128c lw v0, 0x4c(sp) | v0 = *(var_4ch);
| if (a2 == 0) {
0x00011290 beqz a2, 0x1129c | goto label_5;
| }
| if (v0 == 0) {
0x00011294 beql v0, zero, 0x11450 | goto label_6;
| }
0x00011298 lhu a3, (a2) | a3 = *(a2);
| }
| label_5:
0x0001129c lw s3, -0x7fdc(gp) | s3 = *(gp);
0x000112a0 lw s4, -0x7ef4(gp) | s4 = *(gp);
0x000112a4 lw s5, -0x7fdc(gp) | s5 = *(gp);
0x000112a8 lw s6, -0x7fdc(gp) | s6 = *(gp);
0x000112ac lw s7, -0x7fdc(gp) | s7 = *(gp);
0x000112b0 move s1, zero | s1 = 0;
| /* str._n_taction_order__d:_ */
0x000112b4 addiu s3, s3, 0x74b8 | s3 += 0x74b8;
| /* fcn.00010b80 */
0x000112b8 addiu s4, s4, 0xb80 | s4 += 0xb80;
| /* str._tAction_statistics:_n */
0x000112bc addiu s5, s5, 0x74cc | s5 += 0x74cc;
0x000112c0 b 0x1133c | goto label_7;
| label_1:
0x000112c4 lw v0, -0x7f84(gp) | v0 = *(gp);
0x000112c8 lw v0, (v0) | v0 = *(v0);
| if (v0 == 0) {
0x000112cc beql v0, zero, 0x1132c | goto label_8;
| }
0x000112d0 addiu s1, s1, 1 | s1++;
0x000112d4 lw v0, 0x30(sp) | v0 = *(var_30h);
0x000112d8 lw t9, -0x7a7c(gp) | t9 = sym.imp.fwrite;
| if (v0 == 0) {
0x000112dc beqz v0, 0x11328 | goto label_0;
| }
0x000112e0 move a3, s2 | a3 = s2;
0x000112e4 addiu a2, zero, 0x14 | a2 = 0x14;
0x000112e8 addiu a1, zero, 1 | a1 = 1;
0x000112ec move a0, s5 | a0 = s5;
0x000112f0 jalr t9 | t9 ();
0x000112f4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000112f8 lw a1, 0x30(sp) | a1 = *(var_30h);
0x000112fc move a3, zero | a3 = 0;
0x00011300 lw t9, -0x7e68(gp) | t9 = sym.print_tcstats2_attr;
0x00011304 addiu a2, s7, 0x74e4 | a2 = s7 + 0x74e4;
0x00011308 move a0, s2 | a0 = s2;
0x0001130c bal 0xe8b0 | sym_print_tcstats2_attr ();
0x00011310 lw gp, 0x18(sp) | gp = *(var_18h);
0x00011314 move a1, s2 | a1 = s2;
0x00011318 lw t9, -0x7b60(gp) | t9 = sym.imp.fputc;
0x0001131c addiu a0, zero, 0xa | a0 = 0xa;
0x00011320 jalr t9 | t9 ();
0x00011324 lw gp, 0x18(sp) | gp = *(var_18h);
| do {
| label_0:
0x00011328 addiu s1, s1, 1 | s1++;
| label_8:
0x0001132c addiu v0, zero, 0x20 | v0 = 0x20;
0x00011330 addiu s0, s0, 4 | s0 += 4;
| if (s1 == v0) {
0x00011334 beq s1, v0, 0x113e8 | goto label_9;
| }
| label_2:
0x00011338 lw a2, (s0) | a2 = *(s0);
| label_7:
0x0001133c lw t9, -0x7b90(gp) | t9 = sym.imp.__fprintf_chk;
0x00011340 beqz a2, 0x11328 |
| } while (a2 == 0);
0x00011344 move a2, s3 | a2 = s3;
0x00011348 move a3, s1 | a3 = s1;
0x0001134c addiu a1, zero, 1 | a1 = 1;
0x00011350 move a0, s2 | a0 = s2;
0x00011354 jalr t9 | t9 ();
0x00011358 lw a2, (s0) | a2 = *(s0);
0x0001135c lw gp, 0x18(sp) | gp = *(var_18h);
| if (a2 == 0) {
0x00011360 beqz a2, 0x113bc | goto label_3;
| }
0x00011364 lhu a3, (a2) | a3 = *(a2);
0x00011368 lw t9, -0x7f4c(gp) | t9 = sym.parse_rtattr;
0x0001136c addiu a0, sp, 0x20 | a0 = sp + 0x20;
0x00011370 addiu a3, a3, -4 | a3 += -4;
0x00011374 addiu a2, a2, 4 | a2 += 4;
0x00011378 addiu a1, zero, 6 | a1 = 6;
0x0001137c jalr t9 | t9 ();
0x00011380 lw a0, 0x24(sp) | a0 = *(var_24h);
0x00011384 lw gp, 0x18(sp) | gp = *(var_18h);
| if (a0 == 0) {
0x00011388 beqz a0, 0x11428 | goto label_10;
| }
0x0001138c move t9, s4 | t9 = s4;
0x00011390 addiu a0, a0, 4 | a0 += 4;
0x00011394 bal 0x10b80 | fcn_00010b80 ();
0x00011398 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x0001139c beqz v0, 0x11328 | goto label_0;
| }
0x000113a0 lw t9, 0x18(v0) | t9 = *((v0 + 6));
0x000113a4 lw a2, 0x28(sp) | a2 = *(var_28h);
0x000113a8 move a1, s2 | a1 = s2;
0x000113ac move a0, v0 | a0 = v0;
0x000113b0 jalr t9 | t9 ();
0x000113b4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 >= 0) {
0x000113b8 bgez v0, 0x112c4 | goto label_1;
| }
| label_3:
0x000113bc lw t9, -0x7a7c(gp) | t9 = sym.imp.fwrite;
0x000113c0 move a3, s2 | a3 = s2;
0x000113c4 addiu a2, zero, 0x16 | a2 = 0x16;
0x000113c8 addiu a1, zero, 1 | a1 = 1;
| /* str.Error_printing_action_n */
0x000113cc addiu a0, s6, 0x74e8 | a0 = s6 + 0x74e8;
0x000113d0 jalr t9 | t9 ();
0x000113d4 addiu s1, s1, 1 | s1++;
0x000113d8 addiu v0, zero, 0x20 | v0 = 0x20;
0x000113dc lw gp, 0x18(sp) | gp = *(var_18h);
0x000113e0 addiu s0, s0, 4 | s0 += 4;
| if (s1 != v0) {
0x000113e4 bne s1, v0, 0x11338 | goto label_2;
| }
| do {
| label_9:
0x000113e8 move v0, zero | v0 = 0;
| label_4:
0x000113ec lw a0, 0xcc(sp) | a0 = *(var_cch);
0x000113f0 lw v1, (fp) | v1 = *(fp);
0x000113f4 lw ra, 0xf4(sp) | ra = *(var_f4h);
| if (a0 != v1) {
0x000113f8 bne a0, v1, 0x114c4 | goto label_11;
| }
0x000113fc lw fp, 0xf0(sp) | fp = *(var_f0h);
0x00011400 lw s7, 0xec(sp) | s7 = *(var_ech);
0x00011404 lw s6, 0xe8(sp) | s6 = *(var_e8h);
0x00011408 lw s5, 0xe4(sp) | s5 = *(var_e4h);
0x0001140c lw s4, 0xe0(sp) | s4 = *(var_e0h);
0x00011410 lw s3, 0xdc(sp) | s3 = *(var_dch);
0x00011414 lw s2, 0xd8(sp) | s2 = *(var_d8h);
0x00011418 lw s1, 0xd4(sp) | s1 = *(var_d4h);
0x0001141c lw s0, 0xd0(sp) | s0 = *(var_d0h);
0x00011420 addiu sp, sp, 0xf8 |
0x00011424 jr ra | return v0;
| label_10:
0x00011428 lw v0, -0x79fc(gp) | v0 = *((gp - 7807));
0x0001142c lw a0, -0x7fdc(gp) | a0 = *(gp);
0x00011430 lw t9, -0x7a7c(gp) | t9 = sym.imp.fwrite;
0x00011434 lw a3, (v0) | a3 = *(v0);
0x00011438 addiu a2, zero, 0xd | a2 = 0xd;
0x0001143c addiu a1, zero, 1 | a1 = 1;
| /* str.NULL_Action__n */
0x00011440 addiu a0, a0, 0x7494 | a0 += 0x7494;
0x00011444 jalr t9 | t9 ();
0x00011448 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001144c b 0x113bc | goto label_3;
| label_6:
0x00011450 lw t9, -0x7f4c(gp) | t9 = sym.parse_rtattr;
0x00011454 addiu a0, sp, 0x20 | a0 = sp + 0x20;
0x00011458 addiu a3, a3, -4 | a3 += -4;
0x0001145c addiu a2, a2, 4 | a2 += 4;
0x00011460 addiu a1, zero, 9 | a1 = 9;
0x00011464 jalr t9 | t9 ();
0x00011468 lw a0, 0x24(sp) | a0 = *(var_24h);
0x0001146c lw gp, 0x18(sp) | gp = *(var_18h);
| if (a0 == 0) {
0x00011470 beqz a0, 0x114d0 | goto label_12;
| }
0x00011474 lw t9, -0x7ef4(gp) | t9 = *(gp);
| /* fcn.00010b80 */
0x00011478 addiu t9, t9, 0xb80 | t9 += 0xb80;
0x0001147c addiu a0, a0, 4 | a0 += 4;
0x00011480 bal 0x10b80 | fcn_00010b80 ();
0x00011484 lw gp, 0x18(sp) | gp = *(var_18h);
0x00011488 beqz v0, 0x113e8 |
| } while (v0 == 0);
0x0001148c lw v1, 0x38(sp) | v1 = *(var_38h);
0x00011490 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00011494 lw t9, -0x7b90(gp) | t9 = sym.imp.__fprintf_chk;
0x00011498 lw v1, 4(v1) | v1 = *((v1 + 1));
0x0001149c addiu a3, v0, 4 | a3 = v0 + 4;
0x000114a0 sw v1, 0x10(sp) | *(var_10h) = v1;
| /* str.__s___d_entries__n */
0x000114a4 addiu a2, a2, 0x74a4 | a2 += 0x74a4;
0x000114a8 addiu a1, zero, 1 | a1 = 1;
0x000114ac move a0, s2 | a0 = s2;
0x000114b0 jalr t9 | t9 ();
0x000114b4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000114b8 sw zero, (s1) | *(s1) = 0;
0x000114bc move v0, zero | v0 = 0;
0x000114c0 b 0x113ec | goto label_4;
| label_11:
0x000114c4 lw t9, -0x7a48(gp) | t9 = sym.imp.__stack_chk_fail;
0x000114c8 jalr t9 | t9 ();
0x000114cc nop |
| label_12:
0x000114d0 lw v0, -0x79fc(gp) | v0 = *((gp - 7807));
0x000114d4 lw a0, -0x7fdc(gp) | a0 = *(gp);
0x000114d8 lw t9, -0x7a7c(gp) | t9 = sym.imp.fwrite;
0x000114dc lw a3, (v0) | a3 = *(v0);
0x000114e0 addiu a2, zero, 0xd | a2 = 0xd;
0x000114e4 addiu a1, zero, 1 | a1 = 1;
| /* str.NULL_Action__n */
0x000114e8 addiu a0, a0, 0x7494 | a0 += 0x7494;
0x000114ec jalr t9 | t9 ();
0x000114f0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000114f4 addiu v0, zero, -1 | v0 = -1;
0x000114f8 b 0x113ec | goto label_4;
| }
[*] Function system used 1 times tc.iproute2