[*] Binary protection state of busybox.nosuid
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function system tear down of busybox.nosuid
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/busybox.nosuid @ 0x1c1b4 */
| #include <stdint.h>
|
; (fcn) fcn.0001c1b4 () | void fcn_0001c1b4 () {
0x0001c1b4 lw t9, -0x7d90(gp) | t9 = *(gp);
0x0001c1b8 sw s0, 0x20(sp) | *(arg_20h) = s0;
0x0001c1bc lw s0, -0x74a4(gp) | s0 = *((gp - 7465));
0x0001c1c0 sw s1, 0x24(sp) | *(arg_24h) = s1;
0x0001c1c4 move s1, a0 | s1 = a0;
0x0001c1c8 lw v0, (s0) | v0 = *(s0);
0x0001c1cc lw a0, -0x7f90(gp) | a0 = *(gp);
0x0001c1d0 sw gp, 0x10(sp) | *(arg_10h) = gp;
0x0001c1d4 sw s2, 0x28(sp) | *(arg_28h) = s2;
| /* str.local */
0x0001c1d8 addiu a0, a0, -0xa0 | a0 += -0xa0;
0x0001c1dc sw ra, 0x2c(sp) | *(arg_2ch) = ra;
0x0001c1e0 sw v0, 0x1c(sp) | *(arg_1ch) = v0;
0x0001c1e4 move s2, a1 | s2 = a1;
0x0001c1e8 bal 0x8124 | fcn_00008124 ();
0x0001c1ec andi v0, v0, 0xff | v0 &= 0xff;
0x0001c1f0 addiu v1, v0, 1 | v1 = v0 + 1;
0x0001c1f4 andi v1, v1, 0xff | v1 &= 0xff;
0x0001c1f8 addiu a0, zero, 1 | a0 = 1;
0x0001c1fc lw gp, 0x10(sp) | gp = *(arg_10h);
| if (v1 != a0) {
0x0001c200 bne v1, a0, 0x1c238 | goto label_3;
| }
0x0001c204 addiu v0, zero, 2 | v0 = 2;
| do {
| label_0:
0x0001c208 sw v0, (s1) | *(s1) = v0;
| label_2:
0x0001c20c move v1, zero | v1 = 0;
| label_1:
0x0001c210 lw a1, 0x1c(sp) | a1 = *(arg_1ch);
0x0001c214 lw a0, (s0) | a0 = *(s0);
0x0001c218 move v0, v1 | v0 = v1;
| if (a1 != a0) {
0x0001c21c bne a1, a0, 0x1c2f0 | goto label_4;
| }
0x0001c220 lw ra, 0x2c(sp) | ra = *(arg_2ch);
0x0001c224 lw s2, 0x28(sp) | s2 = *(arg_28h);
0x0001c228 lw s1, 0x24(sp) | s1 = *(arg_24h);
0x0001c22c lw s0, 0x20(sp) | s0 = *(arg_20h);
0x0001c230 addiu sp, sp, 0x30 |
0x0001c234 jr ra | return v0;
| label_3:
0x0001c238 addiu a0, zero, 2 | a0 = 2;
0x0001c23c addiu v0, v0, -2 | v0 += -2;
| if (v1 == a0) {
0x0001c240 bnel v1, a0, 0x1c24c | goto label_5;
| }
0x0001c244 addiu v0, zero, 0xa | v0 = 0xa;
0x0001c248 b 0x1c208 |
| } while (1);
| label_5:
0x0001c24c sltiu v0, v0, 2 | v0 = (v0 < 2) ? 1 : 0;
0x0001c250 addiu v0, zero, 3 | v0 = 3;
| if (v0 != 0) {
0x0001c254 bnez v0, 0x1c208 | goto label_0;
| }
0x0001c258 addiu v0, zero, 5 | v0 = 5;
0x0001c25c addiu v0, zero, 4 | v0 = 4;
| if (v1 == v0) {
0x0001c260 beq v1, v0, 0x1c208 | goto label_0;
| }
0x0001c264 addiu v0, zero, 6 | v0 = 6;
0x0001c268 addiu v0, zero, 5 | v0 = 5;
| if (v1 == v0) {
0x0001c26c beq v1, v0, 0x1c208 | goto label_0;
| }
0x0001c270 addiu v0, zero, 7 | v0 = 7;
0x0001c274 addiu v0, zero, 8 | v0 = 8;
| if (v1 == v0) {
0x0001c278 beq v1, v0, 0x1c208 | goto label_0;
| }
0x0001c27c addiu v0, zero, 7 | v0 = 7;
| if (v1 == v0) {
0x0001c280 beq v1, v0, 0x1c208 | goto label_0;
| }
0x0001c284 addiu v0, zero, 9 | v0 = 9;
0x0001c288 addiu v0, zero, 6 | v0 = 6;
| if (v1 == v0) {
0x0001c28c beq v1, v0, 0x1c208 | goto label_0;
| }
0x0001c290 addiu v0, zero, 0xa | v0 = 0xa;
0x0001c294 addiu v0, zero, 0xb | v0 = 0xb;
| if (v1 == v0) {
0x0001c298 beq v1, v0, 0x1c208 | goto label_0;
| }
0x0001c29c addiu v0, zero, 1 | v0 = 1;
| if (v1 == v0) {
0x0001c2a0 beq v1, v0, 0x1c208 | goto label_0;
| }
0x0001c2a4 addiu v0, zero, 0xc | v0 = 0xc;
0x0001c2a8 addiu v0, zero, 9 | v0 = 9;
| if (v1 == v0) {
0x0001c2ac beq v1, v0, 0x1c208 | goto label_0;
| }
0x0001c2b0 lw t9, -0x7630(gp) | t9 = sym.imp.strtoul;
0x0001c2b4 move a0, s2 | a0 = s2;
0x0001c2b8 move a2, zero | a2 = 0;
0x0001c2bc addiu a1, sp, 0x18 | a1 = sp + 0x18;
0x0001c2c0 jalr t9 | t9 ();
0x0001c2c4 lw a0, 0x18(sp) | a0 = *(arg_18h);
0x0001c2c8 lw gp, 0x10(sp) | gp = *(arg_10h);
0x0001c2cc addiu v1, zero, -1 | v1 = -1;
| if (a0 == s2) {
0x0001c2d0 beq a0, s2, 0x1c210 | goto label_1;
| }
0x0001c2d4 lbu a0, (a0) | a0 = *(a0);
0x0001c2d8 sltiu a0, v0, 0x100 | a0 = (v0 < aav.0x00000100) ? 1 : 0;
| if (a0 != 0) {
0x0001c2dc bnez a0, 0x1c210 | goto label_1;
| }
| if (a0 == 0) {
0x0001c2e0 beqz a0, 0x1c210 | goto label_1;
| }
0x0001c2e4 nop |
0x0001c2e8 sw v0, (s1) | *(s1) = v0;
0x0001c2ec b 0x1c20c | goto label_2;
| label_4:
0x0001c2f0 lw t9, -0x750c(gp) | t9 = sym.imp.__stack_chk_fail;
0x0001c2f4 jalr t9 | t9 ();
0x0001c2f8 nop |
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/busybox.nosuid @ 0x21f80 */
| #include <stdint.h>
|
; (fcn) fcn.00021f80 () | void fcn_00021f80 () {
0x00021f80 lui gp, 8 |
0x00021f84 addiu gp, gp, -0x7e50 |
0x00021f88 addu gp, gp, t9 | gp += t9;
0x00021f8c lw v0, -0x74a4(gp) | v0 = *((gp - 7465));
0x00021f90 addiu sp, sp, -0x60 |
0x00021f94 sw s4, 0x48(sp) | *(var_48h) = s4;
0x00021f98 sw v0, 0x1c(sp) | *(var_1ch) = v0;
0x00021f9c lw s4, 4(a1) | s4 = *((a1 + 1));
0x00021fa0 lw v0, (v0) | v0 = *(v0);
0x00021fa4 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00021fa8 sw ra, 0x5c(sp) | *(var_5ch) = ra;
0x00021fac sw fp, 0x58(sp) | *(var_58h) = fp;
0x00021fb0 sw s7, 0x54(sp) | *(var_54h) = s7;
0x00021fb4 sw s6, 0x50(sp) | *(var_50h) = s6;
0x00021fb8 sw s5, 0x4c(sp) | *(var_4ch) = s5;
0x00021fbc sw s3, 0x44(sp) | *(var_44h) = s3;
0x00021fc0 sw s2, 0x40(sp) | *(var_40h) = s2;
0x00021fc4 sw s1, 0x3c(sp) | *(var_3ch) = s1;
0x00021fc8 sw s0, 0x38(sp) | *(var_38h) = s0;
0x00021fcc sw v0, 0x34(sp) | *(var_34h) = v0;
0x00021fd0 lw t9, -0x75a4(gp) | t9 = sym.imp.getpid;
| if (s4 != 0) {
0x00021fd4 bnez s4, 0x22040 | goto label_20;
| }
0x00021fd8 jalr t9 | t9 ();
0x00021fdc nop |
0x00021fe0 lw gp, 0x10(sp) | gp = *(var_10h);
| label_0:
0x00021fe4 lw a0, -0x7f90(gp) | a0 = *(gp);
0x00021fe8 lw t9, -0x7e70(gp) | t9 = *(gp);
| /* str.you_need_to_specify_whom_to_kill */
0x00021fec addiu a0, a0, -0x656c | a0 += -aav.0x0000656c;
0x00021ff0 bal 0x87e0 | fcn_000087e0 ();
0x00021ff4 lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x00021ff8 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00021ffc addiu s0, zero, 1 | s0 = 1;
0x00022000 lw v1, (v0) | v1 = *(v0);
0x00022004 lw gp, 0x10(sp) | gp = *(var_10h);
0x00022008 move v0, s0 | v0 = s0;
| if (a0 != v1) {
0x0002200c bne a0, v1, 0x22330 | goto label_21;
| }
| do {
| label_2:
0x00022010 lw ra, 0x5c(sp) | ra = *(var_5ch);
0x00022014 lw fp, 0x58(sp) | fp = *(var_58h);
0x00022018 lw s7, 0x54(sp) | s7 = *(var_54h);
0x0002201c lw s6, 0x50(sp) | s6 = *(var_50h);
0x00022020 lw s5, 0x4c(sp) | s5 = *(var_4ch);
0x00022024 lw s4, 0x48(sp) | s4 = *(var_48h);
0x00022028 lw s3, 0x44(sp) | s3 = *(var_44h);
0x0002202c lw s2, 0x40(sp) | s2 = *(var_40h);
0x00022030 lw s1, 0x3c(sp) | s1 = *(var_3ch);
0x00022034 lw s0, 0x38(sp) | s0 = *(var_38h);
0x00022038 addiu sp, sp, 0x60 |
0x0002203c jr ra | return v0;
| label_20:
0x00022040 lw s1, (a1) | s1 = *(a1);
0x00022044 lw t9, -0x7644(gp) | t9 = sym.imp.strlen;
0x00022048 move a0, s1 | a0 = s1;
0x0002204c move s0, a1 | s0 = a1;
0x00022050 jalr t9 | t9 ();
0x00022054 addu v0, s1, v0 | v0 = s1 + v0;
0x00022058 lbu a0, (s4) | a0 = *(s4);
0x0002205c addiu a1, zero, 0x2d | a1 = 0x2d;
0x00022060 lw gp, 0x10(sp) | gp = *(var_10h);
0x00022064 lbu s5, -3(v0) | s5 = *((v0 - 3));
0x00022068 addiu s1, s0, 4 | s1 = s0 + 4;
| if (a0 != a1) {
0x0002206c beq a0, a1, 0x22078 |
0x00022070 move s3, zero | s3 = 0;
0x00022074 b 0x22484 | goto label_22;
| }
0x00022078 lbu v0, 1(s4) | v0 = *((s4 + 1));
0x0002207c addiu a1, zero, 0x6c | a1 = 0x6c;
0x00022080 addiu a1, zero, 0x61 | a1 = 0x61;
| if (v0 == a1) {
0x00022084 bnel v0, a1, 0x22120 | goto label_23;
| }
0x00022088 lbu v0, 2(s4) | v0 = *((s4 + 2));
0x0002208c lw t9, -0x7bd0(gp) | t9 = *(gp);
| if (v0 != 0) {
0x00022090 bnez v0, 0x22450 | goto label_24;
| }
0x00022094 lw s1, 8(s0) | s1 = *((s0 + 2));
0x00022098 lw s6, -0x7f90(gp) | s6 = *(gp);
| if (s1 == 0) {
0x0002209c beqz s1, 0x22534 | goto label_25;
| }
0x000220a0 lw s5, -0x7bd0(gp) | s5 = *(gp);
0x000220a4 lw s3, -0x7d7c(gp) | s3 = *(gp);
0x000220a8 lw s2, -0x7f80(gp) | s2 = *((gp - 8160));
0x000220ac addiu s0, s0, 8 | s0 += 8;
| /* esilref: '&d
' */
0x000220b0 addiu s6, s6, -0x6588 | s6 += -0x6588;
| label_17:
0x000220b4 lbu v0, (s1) | v0 = *(s1);
0x000220b8 addiu v0, v0, -0x30 | v0 += -0x30;
0x000220bc sltiu v0, v0, 0xa | v0 = (v0 < 0xa) ? 1 : 0;
0x000220c0 addiu a2, zero, 0xa | a2 = 0xa;
| if (v0 == 0) {
0x000220c4 beqz v0, 0x224a8 | goto label_26;
| }
0x000220c8 move a1, zero | a1 = 0;
0x000220cc move t9, s3 | t9 = s3;
0x000220d0 move a0, s1 | a0 = s1;
0x000220d4 bal 0xdc70 | fcn_0000dc70 ();
0x000220d8 lw v1, (s2) | v1 = *(s2);
0x000220dc lw v1, (v1) | v1 = *(v1);
0x000220e0 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v1 == 0) {
0x000220e4 beqz v1, 0x22500 | goto label_27;
| }
| label_16:
0x000220e8 lw a0, -0x7f90(gp) | a0 = *(gp);
0x000220ec lw t9, -0x7e70(gp) | t9 = *(gp);
| /* str.unknown_signal__s */
0x000220f0 addiu a0, a0, -0x659c | a0 += -0x659c;
0x000220f4 move a1, s1 | a1 = s1;
0x000220f8 bal 0x87e0 | fcn_000087e0 ();
0x000220fc lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x00022100 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00022104 addiu s0, zero, 1 | s0 = 1;
0x00022108 lw v1, (v0) | v1 = *(v0);
0x0002210c lw gp, 0x10(sp) | gp = *(var_10h);
0x00022110 move v0, s0 | v0 = s0;
0x00022114 beq a0, v1, 0x22010 |
| } while (a0 == v1);
0x00022118 lw t9, -0x750c(gp) | t9 = sym.imp.__stack_chk_fail;
0x0002211c b 0x22334 | goto label_18;
| label_23:
0x00022120 addiu a1, zero, 0x71 | a1 = 0x71;
| if (s5 == a1) {
0x00022124 beq s5, a1, 0x22428 | goto label_28;
| }
0x00022128 move s3, zero | s3 = 0;
| label_13:
0x0002212c addiu a0, zero, 0x2d | a0 = 0x2d;
0x00022130 addiu s0, s4, 1 | s0 = s4 + 1;
| if (v0 != a0) {
0x00022134 bne v0, a0, 0x221fc | goto label_29;
| }
0x00022138 lbu v0, 2(s4) | v0 = *((s4 + 2));
0x0002213c addiu s2, zero, 0xf | s2 = 0xf;
| if (v0 != 0) {
0x00022140 bnez v0, 0x22224 | goto label_30;
| }
| label_3:
0x00022144 lw t9, -0x75a4(gp) | t9 = sym.imp.getpid;
0x00022148 lw s4, 4(s1) | s4 = *((s1 + 1));
0x0002214c jalr t9 | t9 ();
0x00022150 move fp, v0 | fp = v0;
0x00022154 lw gp, 0x10(sp) | gp = *(var_10h);
| if (s4 == 0) {
0x00022158 beqz s4, 0x21fe4 | goto label_0;
| }
0x0002215c addiu s1, s1, 4 | s1 += 4;
| label_15:
0x00022160 addiu v0, zero, 0x61 | v0 = 0x61;
0x00022164 lw v0, -0x7bcc(gp) | v0 = *((gp - 7923));
| if (s5 != v0) {
0x00022168 bne s5, v0, 0x22274 | goto label_31;
| }
0x0002216c lw s6, -0x7f90(gp) | s6 = *(gp);
0x00022170 sw v0, 0x18(sp) | *(var_18h) = v0;
0x00022174 lw s5, -0x7f90(gp) | s5 = *(gp);
0x00022178 lw v0, -0x7efc(gp) | v0 = *(gp);
0x0002217c move s0, zero | s0 = 0;
0x00022180 sw v0, 0x20(sp) | *(var_20h) = v0;
| /* str.cant_kill_pid__d */
0x00022184 addiu s6, s6, -0x6530 | s6 += -0x6530;
| /* str._s:_no_process_killed */
0x00022188 addiu s5, s5, -0x6548 | s5 += -0x6548;
| label_1:
0x0002218c lw t9, 0x18(sp) | t9 = *(var_18h);
0x00022190 move a0, s4 | a0 = s4;
0x00022194 jalr t9 | t9 ();
0x00022198 lw a0, (v0) | a0 = *(v0);
0x0002219c lw gp, 0x10(sp) | gp = *(var_10h);
0x000221a0 move s7, v0 | s7 = v0;
| if (a0 == 0) {
0x000221a4 beqz a0, 0x223e8 | goto label_32;
| }
0x000221a8 move s4, v0 | s4 = v0;
| do {
| label_9:
0x000221ac lw t9, -0x7600(gp) | t9 = sym.imp.kill;
| if (a0 != fp) {
0x000221b0 bne a0, fp, 0x223a8 | goto label_33;
| }
| label_8:
0x000221b4 addiu s4, s4, 4 | s4 += 4;
0x000221b8 lw a0, (s4) | a0 = *(s4);
0x000221bc bnez a0, 0x221ac |
| } while (a0 != 0);
0x000221c0 nop |
| label_11:
0x000221c4 lw t9, -0x7490(gp) | t9 = *((gp - 7460));
| label_10:
0x000221c8 addiu s1, s1, 4 | s1 += 4;
0x000221cc move a0, s7 | a0 = s7;
0x000221d0 jalr t9 | t9 ();
0x000221d4 lw s4, (s1) | s4 = *(s1);
0x000221d8 lw gp, 0x10(sp) | gp = *(var_10h);
| if (s4 != 0) {
0x000221dc bnez s4, 0x2218c | goto label_1;
| }
0x000221e0 lw v0, 0x1c(sp) | v0 = *(var_1ch);
| label_12:
0x000221e4 lw a0, 0x34(sp) | a0 = *(var_34h);
0x000221e8 lw v1, (v0) | v1 = *(v0);
0x000221ec move v0, s0 | v0 = s0;
| if (a0 == v1) {
0x000221f0 beq a0, v1, 0x22010 | goto label_2;
| }
0x000221f4 lw t9, -0x750c(gp) | t9 = sym.imp.__stack_chk_fail;
0x000221f8 b 0x22334 | goto label_18;
| label_29:
0x000221fc lw a0, 4(s1) | a0 = *((s1 + 1));
0x00022200 addiu a1, zero, 0x73 | a1 = 0x73;
| if (a0 != 0) {
0x00022204 beqz a0, 0x22224 |
0x00022208 lw t9, -0x7bd0(gp) | t9 = *(gp);
| if (v0 != a1) {
0x0002220c bne v0, a1, 0x22228 | goto label_34;
| }
0x00022210 lbu v0, 2(s4) | v0 = *((s4 + 2));
| if (v0 != 0) {
0x00022214 bnez v0, 0x22228 | goto label_34;
| }
0x00022218 nop |
0x0002221c addiu s1, s1, 4 | s1 += 4;
0x00022220 move s0, a0 | s0 = a0;
| }
| label_30:
0x00022224 lw t9, -0x7bd0(gp) | t9 = *(gp);
| label_34:
0x00022228 move a0, s0 | a0 = s0;
0x0002222c jalr t9 | t9 ();
0x00022230 move s2, v0 | s2 = v0;
0x00022234 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 >= 0) {
0x00022238 bgez v0, 0x22144 | goto label_3;
| }
0x0002223c lw a0, -0x7f90(gp) | a0 = *(gp);
| label_14:
0x00022240 lw t9, -0x7e70(gp) | t9 = *(gp);
0x00022244 move a1, s0 | a1 = s0;
| /* str.bad_signal_name__s */
0x00022248 addiu a0, a0, -0x6584 | a0 += -0x6584;
0x0002224c bal 0x87e0 | fcn_000087e0 ();
0x00022250 lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x00022254 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00022258 addiu s0, zero, 1 | s0 = 1;
0x0002225c lw v1, (v0) | v1 = *(v0);
0x00022260 lw gp, 0x10(sp) | gp = *(var_10h);
0x00022264 move v0, s0 | v0 = s0;
| if (a0 == v1) {
0x00022268 beq a0, v1, 0x22010 | goto label_2;
| }
0x0002226c lw t9, -0x750c(gp) | t9 = sym.imp.__stack_chk_fail;
0x00022270 b 0x22334 | goto label_18;
| label_31:
0x00022274 lw v0, -0x7f80(gp) | v0 = *((gp - 8160));
0x00022278 lw s3, -0x7f90(gp) | s3 = *(gp);
0x0002227c sw v0, 0x24(sp) | *(var_24h) = v0;
0x00022280 lw v0, -0x7fcc(gp) | v0 = *(gp);
0x00022284 move s0, zero | s0 = 0;
| /* str.invalid_number__s */
0x00022288 addiu v0, v0, 0x77d4 | v0 += 0x77d4;
| /* str.cant_kill_pid__d */
0x0002228c addiu s3, s3, -0x6530 | s3 += -0x6530;
0x00022290 sw v0, 0x28(sp) | *(var_28h) = v0;
0x00022294 lbu v0, (s4) | v0 = *(s4);
| do {
| label_7:
0x00022298 lw v1, 0x24(sp) | v1 = *(var_24h);
| if (v0 != 0) {
0x0002229c beqz v0, 0x2230c |
0x000222a0 addiu s6, sp, 0x30 | s6 = sp + 0x30;
0x000222a4 addiu s5, zero, 0x20 | s5 = 0x20;
0x000222a8 lw fp, (v1) | fp = *(v1);
0x000222ac lw v1, -0x7eac(gp) | v1 = *(gp);
0x000222b0 addiu s7, zero, 0x16 | s7 = 0x16;
0x000222b4 sw v1, 0x18(sp) | *(var_18h) = v1;
0x000222b8 lw v1, -0x7efc(gp) | v1 = *(gp);
0x000222bc sw v1, 0x20(sp) | *(var_20h) = v1;
| if (v0 != s5) {
| label_5:
0x000222c0 beql v0, s5, 0x222c8 |
0x000222c4 addiu s4, s4, 1 | s4++;
| }
0x000222c8 lw t9, 0x18(sp) | t9 = *(var_18h);
0x000222cc addiu a2, zero, 0xa | a2 = 0xa;
0x000222d0 move a0, s4 | a0 = s4;
0x000222d4 move a1, s6 | a1 = s6;
0x000222d8 jalr t9 | t9 ();
0x000222dc lw a0, (fp) | a0 = *(fp);
0x000222e0 lw gp, 0x10(sp) | gp = *(var_10h);
0x000222e4 move a2, v0 | a2 = v0;
| if (a0 == 0) {
0x000222e8 beqz a0, 0x22348 | goto label_35;
| }
0x000222ec lw v0, 0x30(sp) | v0 = *(var_30h);
| if (a0 == s7) {
0x000222f0 beq a0, s7, 0x2233c | goto label_36;
| }
0x000222f4 lw t9, -0x7e70(gp) | t9 = *(gp);
| label_4:
0x000222f8 lw a0, 0x28(sp) | a0 = *(var_28h);
0x000222fc move a1, s4 | a1 = s4;
0x00022300 bal 0x87e0 | fcn_000087e0 ();
0x00022304 lw gp, 0x10(sp) | gp = *(var_10h);
0x00022308 addiu s0, s0, 1 | s0++;
| }
0x0002230c addiu s1, s1, 4 | s1 += 4;
0x00022310 lw s4, (s1) | s4 = *(s1);
0x00022314 lbu v0, (s4) | v0 = *(s4);
0x00022318 bnel s4, zero, 0x22298 |
| } while (s4 == 0);
0x0002231c lw v0, 0x1c(sp) | v0 = *(var_1ch);
| label_6:
0x00022320 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00022324 lw v1, (v0) | v1 = *(v0);
0x00022328 move v0, s0 | v0 = s0;
| if (a0 == v1) {
0x0002232c beq a0, v1, 0x22010 | goto label_2;
| }
| label_21:
0x00022330 lw t9, -0x750c(gp) | t9 = sym.imp.__stack_chk_fail;
| label_18:
0x00022334 jalr t9 | t9 ();
0x00022338 nop |
| label_36:
0x0002233c lbu v0, (v0) | v0 = *(v0);
0x00022340 lw t9, -0x7e70(gp) | t9 = *(gp);
| if (v0 != s5) {
0x00022344 bne v0, s5, 0x222f8 | goto label_4;
| }
| label_35:
0x00022348 lw t9, -0x7600(gp) | t9 = sym.imp.kill;
0x0002234c move a1, s2 | a1 = s2;
0x00022350 move a0, a2 | a0 = a2;
0x00022354 sw a2, 0x2c(sp) | *(var_2ch) = a2;
0x00022358 jalr t9 | t9 ();
0x0002235c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00022360 beqz v0, 0x22380 |
0x00022364 lw a2, 0x2c(sp) | a2 = *(var_2ch);
0x00022368 lw t9, 0x20(sp) | t9 = *(var_20h);
0x0002236c move a1, a2 | a1 = a2;
0x00022370 move a0, s3 | a0 = s3;
0x00022374 jalr t9 | t9 ();
0x00022378 lw gp, 0x10(sp) | gp = *(var_10h);
0x0002237c addiu s0, s0, 1 | s0++;
| }
0x00022380 lw s4, 0x30(sp) | s4 = *(var_30h);
0x00022384 lbu v0, (s4) | v0 = *(s4);
| if (v0 != 0) {
0x00022388 bnez v0, 0x222c0 | goto label_5;
| }
0x0002238c nop |
0x00022390 addiu s1, s1, 4 | s1 += 4;
0x00022394 lw s4, (s1) | s4 = *(s1);
| if (s4 == 0) {
0x00022398 beql s4, zero, 0x22320 | goto label_6;
| }
0x0002239c lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x000223a0 lbu v0, (s4) | v0 = *(s4);
0x000223a4 b 0x22298 | goto label_7;
| label_33:
0x000223a8 move a1, s2 | a1 = s2;
0x000223ac jalr t9 | t9 ();
0x000223b0 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x000223b4 beqz v0, 0x221b4 | goto label_8;
| }
0x000223b8 addiu s0, s0, 1 | s0++;
| if (s3 != 0) {
0x000223bc bnez s3, 0x221b4 | goto label_8;
| }
0x000223c0 lw a1, (s4) | a1 = *(s4);
0x000223c4 lw t9, 0x20(sp) | t9 = *(var_20h);
0x000223c8 addiu s4, s4, 4 | s4 += 4;
0x000223cc move a0, s6 | a0 = s6;
0x000223d0 jalr t9 | t9 ();
0x000223d4 lw a0, (s4) | a0 = *(s4);
0x000223d8 lw gp, 0x10(sp) | gp = *(var_10h);
| if (a0 != 0) {
0x000223dc bnez a0, 0x221ac | goto label_9;
| }
0x000223e0 lw t9, -0x7490(gp) | t9 = *((gp - 7460));
0x000223e4 b 0x221c8 | goto label_10;
| label_32:
0x000223e8 addiu s0, s0, 1 | s0++;
| if (s3 != 0) {
0x000223ec bnez s3, 0x221c4 | goto label_11;
| }
0x000223f0 lw t9, -0x7e70(gp) | t9 = *(gp);
0x000223f4 move a1, s4 | a1 = s4;
0x000223f8 move a0, s5 | a0 = s5;
0x000223fc bal 0x87e0 | fcn_000087e0 ();
0x00022400 lw gp, 0x10(sp) | gp = *(var_10h);
0x00022404 addiu s1, s1, 4 | s1 += 4;
0x00022408 lw t9, -0x7490(gp) | t9 = *((gp - 7460));
0x0002240c move a0, s7 | a0 = s7;
0x00022410 jalr t9 | t9 ();
0x00022414 lw s4, (s1) | s4 = *(s1);
0x00022418 lw gp, 0x10(sp) | gp = *(var_10h);
| if (s4 != 0) {
0x0002241c bnez s4, 0x2218c | goto label_1;
| }
0x00022420 lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x00022424 b 0x221e4 | goto label_12;
| label_28:
0x00022428 move s3, zero | s3 = 0;
| if (v0 != a1) {
0x0002242c bne v0, a1, 0x2212c | goto label_13;
| }
0x00022430 lbu v0, 2(s4) | v0 = *((s4 + 2));
0x00022434 lw t9, -0x7bd0(gp) | t9 = *(gp);
| if (v0 == 0) {
0x00022438 bnez v0, 0x22450 |
0x0002243c lw s4, 8(s0) | s4 = *((s0 + 2));
0x00022440 lw t9, -0x7ec0(gp) | t9 = *(gp);
| if (s4 != 0) {
0x00022444 bnez s4, 0x22474 | goto label_37;
| }
0x00022448 bal 0x7920 | fcn_00007920 ();
0x0002244c nop |
| }
| label_24:
0x00022450 addiu s0, s4, 1 | s0 = s4 + 1;
0x00022454 move a0, s0 | a0 = s0;
0x00022458 jalr t9 | t9 ();
0x0002245c move s3, zero | s3 = 0;
0x00022460 lw gp, 0x10(sp) | gp = *(var_10h);
0x00022464 move s2, v0 | s2 = v0;
| if (v0 >= 0) {
0x00022468 bgez v0, 0x22144 | goto label_3;
| }
0x0002246c lw a0, -0x7f90(gp) | a0 = *(gp);
0x00022470 b 0x22240 | goto label_14;
| label_37:
0x00022474 lbu v0, (s4) | v0 = *(s4);
0x00022478 addiu s1, s0, 8 | s1 = s0 + 8;
| if (v0 != a0) {
0x0002247c beq v0, a0, 0x2249c |
0x00022480 addiu s3, zero, 1 | s3 = 1;
| label_22:
0x00022484 lw t9, -0x75a4(gp) | t9 = sym.imp.getpid;
0x00022488 addiu s2, zero, 0xf | s2 = 0xf;
0x0002248c jalr t9 | t9 ();
0x00022490 move fp, v0 | fp = v0;
0x00022494 lw gp, 0x10(sp) | gp = *(var_10h);
0x00022498 b 0x22160 | goto label_15;
| }
0x0002249c lbu v0, 1(s4) | v0 = *((s4 + 1));
0x000224a0 addiu s3, zero, 1 | s3 = 1;
0x000224a4 b 0x2212c | goto label_13;
| label_26:
0x000224a8 move t9, s5 | t9 = s5;
0x000224ac move a0, s1 | a0 = s1;
0x000224b0 jalr t9 | t9 ();
0x000224b4 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 < 0) {
0x000224b8 bltz v0, 0x220e8 | goto label_16;
| }
0x000224bc lw t9, -0x7708(gp) | t9 = sym.imp.__printf_chk;
0x000224c0 addiu s0, s0, 4 | s0 += 4;
0x000224c4 move a2, v0 | a2 = v0;
0x000224c8 move a1, s6 | a1 = s6;
0x000224cc addiu a0, zero, 1 | a0 = 1;
0x000224d0 jalr t9 | t9 ();
0x000224d4 lw s1, (s0) | s1 = *(s0);
0x000224d8 lw gp, 0x10(sp) | gp = *(var_10h);
| if (s1 != 0) {
0x000224dc bnez s1, 0x220b4 | goto label_17;
| }
0x000224e0 lw v0, 0x1c(sp) | v0 = *(var_1ch);
| label_19:
0x000224e4 lw a0, 0x34(sp) | a0 = *(var_34h);
0x000224e8 move s0, zero | s0 = 0;
0x000224ec lw v1, (v0) | v1 = *(v0);
0x000224f0 move v0, s0 | v0 = s0;
| if (a0 == v1) {
0x000224f4 beq a0, v1, 0x22010 | goto label_2;
| }
0x000224f8 lw t9, -0x750c(gp) | t9 = sym.imp.__stack_chk_fail;
0x000224fc b 0x22334 | goto label_18;
| label_27:
0x00022500 lw t9, -0x7bc8(gp) | t9 = *(gp);
0x00022504 andi a0, v0, 0x7f | a0 = v0 & 0x7f;
0x00022508 jalr t9 | t9 ();
0x0002250c lw gp, 0x10(sp) | gp = *(var_10h);
0x00022510 addiu s0, s0, 4 | s0 += 4;
0x00022514 lw t9, -0x75d8(gp) | t9 = sym.imp.puts;
0x00022518 move a0, v0 | a0 = v0;
0x0002251c jalr t9 | t9 ();
0x00022520 lw s1, (s0) | s1 = *(s0);
0x00022524 lw gp, 0x10(sp) | gp = *(var_10h);
| if (s1 != 0) {
0x00022528 bnez s1, 0x220b4 | goto label_17;
| }
0x0002252c lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x00022530 b 0x224e4 | goto label_19;
| label_25:
0x00022534 lw t9, -0x7bc4(gp) | t9 = *(gp);
0x00022538 move s0, zero | s0 = 0;
0x0002253c jalr t9 | t9 ();
0x00022540 lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x00022544 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00022548 lw gp, 0x10(sp) | gp = *(var_10h);
0x0002254c lw v1, (v0) | v1 = *(v0);
0x00022550 move v0, s0 | v0 = s0;
| if (a0 == v1) {
0x00022554 beq a0, v1, 0x22010 | goto label_2;
| }
0x00022558 lw t9, -0x750c(gp) | t9 = sym.imp.__stack_chk_fail;
0x0002255c b 0x22334 | goto label_18;
| }
[*] Function system used 1 times busybox.nosuid