[*] Binary protection state of libssl.so.1.0.0
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function printf tear down of libssl.so.1.0.0
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/2097216-5451840.squashfs_v4_le_extract/thirdlib/libssl.so.1.0.0 @ 0x12180 */
| #include <stdint.h>
|
; (fcn) sym.ssl2_enc_init () | void ssl2_enc_init () {
0x00012180 lui gp, 6 |
0x00012184 addiu gp, gp, -0x5210 |
0x00012188 addu gp, gp, t9 | gp += t9;
0x0001218c addiu sp, sp, -0x40 |
0x00012190 lw t9, -0x7fa8(gp) | t9 = *((gp - 8170));
0x00012194 sw s0, 0x28(sp) | *(var_28h) = s0;
0x00012198 move s0, a0 | s0 = a0;
0x0001219c lw a0, 0xc0(a0) | a0 = *((a0 + 48));
0x000121a0 sw gp, 0x18(sp) | *(var_18h) = gp;
0x000121a4 sw s4, 0x38(sp) | *(var_38h) = s4;
0x000121a8 sw ra, 0x3c(sp) | *(var_3ch) = ra;
0x000121ac sw s3, 0x34(sp) | *(var_34h) = s3;
0x000121b0 sw s2, 0x30(sp) | *(var_30h) = s2;
0x000121b4 sw s1, 0x2c(sp) | *(var_2ch) = s1;
0x000121b8 move s4, a1 | s4 = a1;
0x000121bc sw zero, 0x10(sp) | *(var_10h) = 0;
0x000121c0 sw zero, 0x14(sp) | *(var_14h) = 0;
0x000121c4 addiu a1, sp, 0x24 | a1 = sp + 0x24;
0x000121c8 addiu a2, sp, 0x20 | a2 = sp + 0x20;
0x000121cc move a3, zero | a3 = 0;
0x000121d0 jalr t9 | t9 ();
0x000121d4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000121d8 beqz v0, 0x12308 | goto label_6;
| }
0x000121dc lw t9, -0x7f3c(gp) | t9 = *((gp - 8143));
0x000121e0 lw a1, 0x20(sp) | a1 = *(var_20h);
0x000121e4 addiu a0, s0, 0x84 | a0 = s0 + 0x84;
0x000121e8 jalr t9 | t9 ();
0x000121ec lw gp, 0x18(sp) | gp = *(var_18h);
0x000121f0 lw a1, 0x20(sp) | a1 = *(var_20h);
0x000121f4 lw t9, -0x7f3c(gp) | t9 = *((gp - 8143));
0x000121f8 addiu a0, s0, 0x90 | a0 = s0 + 0x90;
0x000121fc jalr t9 | t9 ();
0x00012200 lw s1, 0x80(s0) | s1 = *((s0 + 32));
0x00012204 lw gp, 0x18(sp) | gp = *(var_18h);
| if (s1 == 0) {
0x00012208 beqz s1, 0x12444 | goto label_7;
| }
| label_2:
0x0001220c lw t9, -0x77a0(gp) | t9 = *((gp - 7656));
0x00012210 move a0, s1 | a0 = s1;
0x00012214 jalr t9 | t9 ();
0x00012218 lw s2, 0x8c(s0) | s2 = *((s0 + 35));
0x0001221c lw gp, 0x18(sp) | gp = *(var_18h);
| if (s2 == 0) {
0x00012220 beqz s2, 0x12494 | goto label_8;
| }
| label_4:
0x00012224 lw t9, -0x77a0(gp) | t9 = *((gp - 7656));
0x00012228 move a0, s2 | a0 = s2;
0x0001222c jalr t9 | t9 ();
0x00012230 lw v0, 0x24(sp) | v0 = *(var_24h);
0x00012234 lw a0, 0x54(s0) | a0 = *((s0 + 21));
0x00012238 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001223c lw s3, 8(v0) | s3 = *((v0 + 2));
0x00012240 sll v0, s3, 1 | v0 = s3 << 1;
0x00012244 sltiu v1, v0, 0x31 | v1 = (v0 < 0x31) ? 1 : 0;
0x00012248 sw v0, 0x9c(a0) | *((a0 + 39)) = v0;
| if (v1 == 0) {
0x0001224c beqz v1, 0x123c8 | goto label_9;
| }
0x00012250 lw t9, -0x7f38(gp) | t9 = *((gp - 8142));
0x00012254 move a0, s0 | a0 = s0;
0x00012258 bal 0x11da0 | sym_ssl2_generate_key_material ();
0x0001225c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 <= 0) {
0x00012260 blez v0, 0x123fc | goto label_10;
| }
| label_0:
0x00012264 lw a1, 0x24(sp) | a1 = *(var_24h);
0x00012268 lw v1, 0xc(a1) | v1 = *((a1 + 3));
0x0001226c slti v1, v1, 9 | v1 = (v1 < 9) ? 1 : 0;
0x00012270 lw a0, -0x7fe4(gp) | a0 = *((gp - 8185));
| if (v1 == 0) {
0x00012274 beqz v1, 0x12420 | goto label_11;
| }
| label_1:
0x00012278 lw a3, 0x54(s0) | a3 = *((s0 + 21));
| if (s4 == 0) {
0x0001227c beqz s4, 0x12364 | goto label_12;
| }
0x00012280 lw v1, 0xc0(s0) | v1 = *((s0 + 48));
0x00012284 lw t9, -0x7944(gp) | t9 = *((gp - 7761));
0x00012288 addiu s4, s3, 0xa0 | s4 = s3 + 0xa0;
0x0001228c addiu v1, v1, 8 | v1 += 8;
0x00012290 sw v1, 0x10(sp) | *(var_10h) = v1;
0x00012294 move a0, s2 | a0 = s2;
0x00012298 move a2, zero | a2 = 0;
0x0001229c addu a3, a3, s4 | a3 += s4;
0x000122a0 jalr t9 | t9 ();
0x000122a4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000122a8 lw v0, 0xc0(s0) | v0 = *((s0 + 48));
0x000122ac lw a3, 0x54(s0) | a3 = *((s0 + 21));
0x000122b0 lw a1, 0x24(sp) | a1 = *(var_24h);
0x000122b4 lw t9, -0x7610(gp) | t9 = *((gp - 7556));
0x000122b8 addiu v0, v0, 8 | v0 += 8;
0x000122bc sw v0, 0x10(sp) | *(var_10h) = v0;
0x000122c0 move a0, s1 | a0 = s1;
0x000122c4 move a2, zero | a2 = 0;
0x000122c8 addiu a3, a3, 0xa0 | a3 += 0xa0;
0x000122cc jalr t9 | t9 ();
0x000122d0 lw v0, 0x54(s0) | v0 = *((s0 + 21));
0x000122d4 addiu v1, v0, 0xa0 | v1 = v0 + 0xa0;
0x000122d8 sw v1, 0x5c(v0) | *((v0 + 23)) = v1;
| do {
0x000122dc addu s4, v0, s4 | s4 = v0 + s4;
0x000122e0 sw s4, 0x60(v0) | *((v0 + 24)) = s4;
0x000122e4 addiu v0, zero, 1 | v0 = 1;
| label_3:
0x000122e8 lw ra, 0x3c(sp) | ra = *(var_3ch);
0x000122ec lw s4, 0x38(sp) | s4 = *(var_38h);
0x000122f0 lw s3, 0x34(sp) | s3 = *(var_34h);
0x000122f4 lw s2, 0x30(sp) | s2 = *(var_30h);
0x000122f8 lw s1, 0x2c(sp) | s1 = *(var_2ch);
0x000122fc lw s0, 0x28(sp) | s0 = *(var_28h);
0x00012300 addiu sp, sp, 0x40 |
0x00012304 jr ra | return v0;
| label_6:
0x00012308 lw t9, -0x7fac(gp) | t9 = *((gp - 8171));
0x0001230c move a0, s0 | a0 = s0;
0x00012310 addiu a1, zero, 1 | a1 = 1;
0x00012314 bal 0x1213c | sym_ssl2_return_error ();
0x00012318 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001231c addiu v0, zero, 0x49 | v0 = 0x49;
0x00012320 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00012324 lw a3, -0x7fe4(gp) | a3 = *((gp - 8185));
0x00012328 lw t9, -0x793c(gp) | t9 = *((gp - 7759));
0x0001232c addiu a0, zero, 0x14 | a0 = 0x14;
0x00012330 addiu a1, zero, 0x7c | a1 = 0x7c;
0x00012334 addiu a2, zero, 0xce | a2 = 0xce;
0x00012338 addiu a3, a3, -0x7a90 | a3 += -0x7a90;
0x0001233c jalr t9 | t9 ();
0x00012340 lw ra, 0x3c(sp) | ra = *(var_3ch);
0x00012344 lw s4, 0x38(sp) | s4 = *(var_38h);
0x00012348 lw s3, 0x34(sp) | s3 = *(var_34h);
0x0001234c lw s2, 0x30(sp) | s2 = *(var_30h);
0x00012350 lw s1, 0x2c(sp) | s1 = *(var_2ch);
0x00012354 lw s0, 0x28(sp) | s0 = *(var_28h);
0x00012358 move v0, zero | v0 = 0;
0x0001235c addiu sp, sp, 0x40 |
0x00012360 jr ra | return v0;
| label_12:
0x00012364 lw v1, 0xc0(s0) | v1 = *((s0 + 48));
0x00012368 lw t9, -0x7944(gp) | t9 = *((gp - 7761));
0x0001236c move a0, s2 | a0 = s2;
0x00012370 addiu v1, v1, 8 | v1 += 8;
0x00012374 move a2, zero | a2 = 0;
0x00012378 addiu a3, a3, 0xa0 | a3 += 0xa0;
0x0001237c sw v1, 0x10(sp) | *(var_10h) = v1;
0x00012380 jalr t9 | t9 ();
0x00012384 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012388 lw v0, 0xc0(s0) | v0 = *((s0 + 48));
0x0001238c lw a3, 0x54(s0) | a3 = *((s0 + 21));
0x00012390 lw a1, 0x24(sp) | a1 = *(var_24h);
0x00012394 lw t9, -0x7610(gp) | t9 = *((gp - 7556));
0x00012398 addiu s3, s3, 0xa0 | s3 += 0xa0;
0x0001239c addiu v0, v0, 8 | v0 += 8;
0x000123a0 addu a3, a3, s3 | a3 += s3;
0x000123a4 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000123a8 move a0, s1 | a0 = s1;
0x000123ac move a2, zero | a2 = 0;
0x000123b0 jalr t9 | t9 ();
0x000123b4 lw v0, 0x54(s0) | v0 = *((s0 + 21));
0x000123b8 addiu s4, zero, 0xa0 | s4 = 0xa0;
0x000123bc addu s3, v0, s3 | s3 = v0 + s3;
0x000123c0 sw s3, 0x5c(v0) | *((v0 + 23)) = s3;
0x000123c4 b 0x122dc |
| } while (1);
| label_9:
0x000123c8 lw a0, -0x7fe4(gp) | a0 = *((gp - 8185));
0x000123cc lw a2, -0x7fe4(gp) | a2 = *((gp - 8185));
0x000123d0 lw t9, -0x76cc(gp) | t9 = *((gp - 7603));
0x000123d4 addiu a0, a0, -0x7a90 | a0 += -0x7a90;
0x000123d8 addiu a1, zero, 0x66 | a1 = 0x66;
0x000123dc addiu a2, a2, -0x7a84 | a2 += -0x7a84;
0x000123e0 jalr t9 | t9 ();
0x000123e4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000123e8 lw t9, -0x7f38(gp) | t9 = *((gp - 8142));
0x000123ec move a0, s0 | a0 = s0;
0x000123f0 bal 0x11da0 | sym_ssl2_generate_key_material ();
0x000123f4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 > 0) {
0x000123f8 bgtz v0, 0x12264 | goto label_0;
| }
| label_10:
0x000123fc lw ra, 0x3c(sp) | ra = *(var_3ch);
0x00012400 lw s4, 0x38(sp) | s4 = *(var_38h);
0x00012404 lw s3, 0x34(sp) | s3 = *(var_34h);
0x00012408 lw s2, 0x30(sp) | s2 = *(var_30h);
0x0001240c lw s1, 0x2c(sp) | s1 = *(var_2ch);
0x00012410 lw s0, 0x28(sp) | s0 = *(var_28h);
0x00012414 move v0, zero | v0 = 0;
0x00012418 addiu sp, sp, 0x40 |
0x0001241c jr ra | return v0;
| label_11:
0x00012420 lw a2, -0x7fe4(gp) | a2 = *((gp - 8185));
0x00012424 lw t9, -0x76cc(gp) | t9 = *((gp - 7603));
0x00012428 addiu a1, zero, 0x6b | a1 = 0x6b;
0x0001242c addiu a0, a0, -0x7a90 | a0 += -0x7a90;
0x00012430 addiu a2, a2, -0x7a48 | a2 += -0x7a48;
0x00012434 jalr t9 | t9 ();
0x00012438 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001243c lw a1, 0x24(sp) | a1 = *(var_24h);
0x00012440 b 0x12278 | goto label_1;
| label_7:
0x00012444 lw s3, -0x7fe4(gp) | s3 = *((gp - 8185));
0x00012448 lw t9, -0x7a24(gp) | t9 = *((gp - 7817));
0x0001244c addiu a0, zero, 0x8c | a0 = 0x8c;
0x00012450 addiu a1, s3, -0x7a90 | a1 = s3 + -0x7a90;
0x00012454 addiu a2, zero, 0x50 | a2 = 0x50;
0x00012458 jalr t9 | t9 ();
0x0001245c move s1, v0 | s1 = v0;
0x00012460 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012464 sw v0, 0x80(s0) | *((s0 + 32)) = v0;
| if (v0 != 0) {
0x00012468 bnez v0, 0x1220c | goto label_2;
| }
0x0001246c lw t9, -0x793c(gp) | t9 = *((gp - 7759));
| label_5:
0x00012470 addiu v0, zero, 0x76 | v0 = 0x76;
0x00012474 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00012478 addiu a0, zero, 0x14 | a0 = 0x14;
0x0001247c addiu a1, zero, 0x7c | a1 = 0x7c;
0x00012480 addiu a2, zero, 0x41 | a2 = 0x41;
0x00012484 addiu a3, s3, -0x7a90 | a3 = s3 + -0x7a90;
0x00012488 jalr t9 | t9 ();
0x0001248c move v0, zero | v0 = 0;
0x00012490 b 0x122e8 | goto label_3;
| label_8:
0x00012494 lw s3, -0x7fe4(gp) | s3 = *((gp - 8185));
0x00012498 lw t9, -0x7a24(gp) | t9 = *((gp - 7817));
0x0001249c addiu a0, zero, 0x8c | a0 = 0x8c;
0x000124a0 addiu a1, s3, -0x7a90 | a1 = s3 + -0x7a90;
0x000124a4 addiu a2, zero, 0x5d | a2 = 0x5d;
0x000124a8 jalr t9 | t9 ();
0x000124ac move s2, v0 | s2 = v0;
0x000124b0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000124b4 sw v0, 0x8c(s0) | *((s0 + 35)) = v0;
| if (v0 != 0) {
0x000124b8 bnez v0, 0x12224 | goto label_4;
| }
0x000124bc lw t9, -0x793c(gp) | t9 = *((gp - 7759));
0x000124c0 b 0x12470 | goto label_5;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/2097216-5451840.squashfs_v4_le_extract/thirdlib/libssl.so.1.0.0 @ 0x124c4 */
| #include <stdint.h>
|
; (fcn) sym.ssl2_enc () | void ssl2_enc () {
0x000124c4 lui gp, 6 |
0x000124c8 addiu gp, gp, -0x5554 |
0x000124cc addu gp, gp, t9 | gp += t9;
0x000124d0 lw v0, 0x54(a0) | v0 = *((a0 + 21));
| if (a1 == 0) {
0x000124d4 beqz a1, 0x12524 | goto label_1;
| }
0x000124d8 lw a0, 0x8c(a0) | a0 = *((a0 + 35));
0x000124dc lw a3, 0x48(v0) | a3 = *((v0 + 18));
| if (a0 == 0) {
0x000124e0 beqz a0, 0x12530 | goto label_2;
| }
| do {
0x000124e4 lw v1, (a0) | v1 = *(a0);
0x000124e8 addiu sp, sp, -0x20 |
0x000124ec sw gp, 0x10(sp) | *(var_10h) = gp;
0x000124f0 lw a1, 4(v1) | a1 = *((v1 + 1));
0x000124f4 addiu v1, zero, 8 | v1 = 8;
0x000124f8 sw ra, 0x1c(sp) | *(var_1ch) = ra;
| if (a1 == v1) {
0x000124fc beq a1, v1, 0x12538 | goto label_3;
| }
0x00012500 nop |
| label_0:
0x00012504 lw a1, 0x58(v0) | a1 = *((v0 + 22));
0x00012508 lw t9, -0x7800(gp) | t9 = *((gp - 7680));
0x0001250c move a2, a1 | a2 = a1;
0x00012510 jalr t9 | t9 ();
0x00012514 lw ra, 0x1c(sp) | ra = *(var_1ch);
0x00012518 slt v0, zero, v0 | v0 = (0 < v0) ? 1 : 0;
0x0001251c addiu sp, sp, 0x20 |
0x00012520 jr ra | return v0;
| label_1:
0x00012524 lw a0, 0x80(a0) | a0 = *((a0 + 32));
0x00012528 lw a3, 0x40(v0) | a3 = *((v0 + 16));
0x0001252c bnez a0, 0x124e4 |
| } while (a0 != 0);
| label_2:
0x00012530 addiu v0, zero, 1 | v0 = 1;
0x00012534 jr ra | return v0;
| label_3:
0x00012538 addiu a3, a3, 7 | a3 += 7;
0x0001253c srl a3, a3, 3 | a3 >>= 3;
0x00012540 sll a3, a3, 3 | a3 <<= 3;
0x00012544 b 0x12504 | goto label_0;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/2097216-5451840.squashfs_v4_le_extract/thirdlib/libssl.so.1.0.0 @ 0x22fd4 */
| #include <stdint.h>
|
; (fcn) sym.ssl3_enc () | void ssl3_enc () {
0x00022fd4 lui gp, 5 |
0x00022fd8 addiu gp, gp, -0x6064 |
0x00022fdc addu gp, gp, t9 | gp += t9;
0x00022fe0 addiu sp, sp, -0x38 |
0x00022fe4 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00022fe8 sw s3, 0x24(sp) | *(var_24h) = s3;
0x00022fec sw s2, 0x20(sp) | *(var_20h) = s2;
0x00022ff0 sw s0, 0x18(sp) | *(var_18h) = s0;
0x00022ff4 sw ra, 0x34(sp) | *(var_34h) = ra;
0x00022ff8 sw s6, 0x30(sp) | *(var_30h) = s6;
0x00022ffc sw s5, 0x2c(sp) | *(var_2ch) = s5;
0x00023000 sw s4, 0x28(sp) | *(var_28h) = s4;
0x00023004 sw s1, 0x1c(sp) | *(var_1ch) = s1;
0x00023008 move s3, a1 | s3 = a1;
0x0002300c move s2, a0 | s2 = a0;
0x00023010 lw s0, 0x58(a0) | s0 = *((a0 + 22));
| if (a1 == 0) {
0x00023014 beqz a1, 0x23118 | goto label_5;
| }
0x00023018 lw s1, 0x8c(a0) | s1 = *((a0 + 35));
0x0002301c addiu s0, s0, 0x130 | s0 += aav.0x00000130;
| if (s1 == 0) {
0x00023020 beqz s1, 0x23124 | goto label_6;
| }
| do {
0x00023024 lw t9, -0x766c(gp) | t9 = *((gp - 7579));
0x00023028 move a0, s1 | a0 = s1;
0x0002302c jalr t9 | t9 ();
0x00023030 lw v1, 0xc0(s2) | v1 = *((s2 + 48));
0x00023034 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v1 == 0) {
0x00023038 beqz v1, 0x23124 | goto label_6;
| }
0x0002303c lw t9, -0x78bc(gp) | t9 = *((gp - 7727));
| if (v0 == 0) {
0x00023040 beqz v0, 0x23124 | goto label_6;
| }
0x00023044 lw a0, (s1) | a0 = *(s1);
0x00023048 lw s5, 4(s0) | s5 = *((s0 + 1));
0x0002304c jalr t9 | t9 ();
0x00023050 move s4, v0 | s4 = v0;
0x00023054 addiu v0, zero, 1 | v0 = 1;
0x00023058 lw gp, 0x10(sp) | gp = *(var_10h);
| if (s4 == v0) {
0x0002305c beq s4, v0, 0x23194 | goto label_7;
| }
0x00023060 lw t9, -0x7524(gp) | t9 = *((gp - 7497));
| if (s3 != 0) {
0x00023064 bnez s3, 0x231a4 | goto label_8;
| }
| label_0:
0x00023068 lw ra, 0x34(sp) | ra = *(var_34h);
| if (s5 == 0) {
0x0002306c beqz s5, 0x2316c | goto label_9;
| }
0x00023070 divu zero, s5, s4 | __asm ("divu zero, s5, s4");
0x00023074 teq s4, zero, 7 | __asm ("teq s4, zero, 7");
0x00023078 mfhi v0 | __asm ("mfhi v0");
0x0002307c lw s6, 0x30(sp) | s6 = *(var_30h);
| if (v0 != 0) {
0x00023080 bnez v0, 0x23170 | goto label_10;
| }
| label_2:
0x00023084 lw t9, -0x7800(gp) | t9 = *((gp - 7680));
0x00023088 lw a1, 0xc(s0) | a1 = *((s0 + 3));
| label_1:
0x0002308c lw a2, 0x10(s0) | a2 = *((s0 + 4));
0x00023090 move a0, s1 | a0 = s1;
0x00023094 move a3, s5 | a3 = s5;
0x00023098 jalr t9 | t9 ();
0x0002309c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 <= 0) {
0x000230a0 blez v0, 0x23230 | goto label_11;
| }
0x000230a4 lw t9, -0x7460(gp) | t9 = *((gp - 7448));
0x000230a8 lw a0, 0x84(s2) | a0 = *((s2 + 33));
0x000230ac jalr t9 | t9 ();
0x000230b0 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x000230b4 beqz v0, 0x23228 | goto label_12;
| }
0x000230b8 lw t9, -0x7460(gp) | t9 = *((gp - 7448));
0x000230bc lw a0, 0x84(s2) | a0 = *((s2 + 33));
0x000230c0 jalr t9 | t9 ();
0x000230c4 lw gp, 0x10(sp) | gp = *(var_10h);
0x000230c8 lw t9, -0x7838(gp) | t9 = *((gp - 7694));
0x000230cc move a0, v0 | a0 = v0;
0x000230d0 jalr t9 | t9 ();
0x000230d4 lw gp, 0x10(sp) | gp = *(var_10h);
0x000230d8 move a3, v0 | a3 = v0;
| label_3:
0x000230dc addiu v1, zero, 1 | v1 = 1;
0x000230e0 addiu v0, zero, 1 | v0 = 1;
| if (s4 != v1) {
0x000230e4 beq s4, v1, 0x230f0 |
0x000230e8 lw ra, 0x34(sp) | ra = *(var_34h);
| if (s3 == 0) {
0x000230ec beqz s3, 0x231f4 | goto label_13;
| }
| }
| label_4:
0x000230f0 lw ra, 0x34(sp) | ra = *(var_34h);
0x000230f4 lw s6, 0x30(sp) | s6 = *(var_30h);
0x000230f8 lw s5, 0x2c(sp) | s5 = *(var_2ch);
0x000230fc lw s4, 0x28(sp) | s4 = *(var_28h);
0x00023100 lw s3, 0x24(sp) | s3 = *(var_24h);
0x00023104 lw s2, 0x20(sp) | s2 = *(var_20h);
0x00023108 lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x0002310c lw s0, 0x18(sp) | s0 = *(var_18h);
0x00023110 addiu sp, sp, 0x38 |
0x00023114 jr ra | return v0;
| label_5:
0x00023118 lw s1, 0x80(a0) | s1 = *((a0 + 32));
0x0002311c addiu s0, s0, 0x10c | s0 += segment.DYNAMIC;
0x00023120 bnez s1, 0x23024 |
| } while (s1 != 0);
| label_6:
0x00023124 lw t9, -0x7554(gp) | t9 = *((gp - 7509));
0x00023128 lw a0, 0xc(s0) | a0 = *((s0 + 3));
0x0002312c lw a1, 0x10(s0) | a1 = *((s0 + 4));
0x00023130 lw a2, 4(s0) | a2 = *((s0 + 1));
0x00023134 jalr t9 | t9 ();
0x00023138 lw v1, 0xc(s0) | v1 = *((s0 + 3));
0x0002313c lw ra, 0x34(sp) | ra = *(var_34h);
0x00023140 lw s6, 0x30(sp) | s6 = *(var_30h);
0x00023144 sw v1, 0x10(s0) | *((s0 + 4)) = v1;
0x00023148 lw s5, 0x2c(sp) | s5 = *(var_2ch);
0x0002314c lw s4, 0x28(sp) | s4 = *(var_28h);
0x00023150 lw s3, 0x24(sp) | s3 = *(var_24h);
0x00023154 lw s2, 0x20(sp) | s2 = *(var_20h);
0x00023158 lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x0002315c lw s0, 0x18(sp) | s0 = *(var_18h);
0x00023160 addiu v0, zero, 1 | v0 = 1;
0x00023164 addiu sp, sp, 0x38 |
0x00023168 jr ra | return v0;
| label_9:
0x0002316c lw s6, 0x30(sp) | s6 = *(var_30h);
| label_10:
0x00023170 lw s5, 0x2c(sp) | s5 = *(var_2ch);
0x00023174 lw s4, 0x28(sp) | s4 = *(var_28h);
0x00023178 lw s3, 0x24(sp) | s3 = *(var_24h);
0x0002317c lw s2, 0x20(sp) | s2 = *(var_20h);
0x00023180 lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x00023184 lw s0, 0x18(sp) | s0 = *(var_18h);
0x00023188 move v0, zero | v0 = 0;
0x0002318c addiu sp, sp, 0x38 |
0x00023190 jr ra | return v0;
| label_7:
0x00023194 lw t9, -0x7800(gp) | t9 = *((gp - 7680));
| if (s3 == 0) {
0x00023198 beqz s3, 0x23068 | goto label_0;
| }
0x0002319c lw a1, 0xc(s0) | a1 = *((s0 + 3));
0x000231a0 b 0x2308c | goto label_1;
| label_8:
0x000231a4 div zero, s5, s4 | __asm ("div zero, s5, s4");
0x000231a8 teq s4, zero, 7 | __asm ("teq s4, zero, 7");
0x000231ac lw a0, 0x10(s0) | a0 = *((s0 + 4));
0x000231b0 lw v0, 4(s0) | v0 = *((s0 + 1));
0x000231b4 move a1, zero | a1 = 0;
0x000231b8 addu a0, a0, v0 | a0 += v0;
0x000231bc mfhi s6 | __asm ("mfhi s6");
0x000231c0 subu s6, s4, s6 | __asm ("subu s6, s4, s6");
0x000231c4 move a2, s6 | a2 = s6;
0x000231c8 jalr t9 | t9 ();
0x000231cc lw v1, 4(s0) | v1 = *((s0 + 1));
0x000231d0 lw v0, 0x10(s0) | v0 = *((s0 + 4));
0x000231d4 addu s5, s5, s6 | s5 += s6;
0x000231d8 addu v1, v1, s6 | v1 += s6;
0x000231dc addu v0, v0, s5 | v0 += s5;
0x000231e0 addiu s6, s6, -1 | s6 += -1;
0x000231e4 lw gp, 0x10(sp) | gp = *(var_10h);
0x000231e8 sw v1, 4(s0) | *((s0 + 1)) = v1;
0x000231ec sb s6, -1(v0) | *((v0 - 1)) = s6;
0x000231f0 b 0x23084 | goto label_2;
| label_13:
0x000231f4 lw s6, 0x30(sp) | s6 = *(var_30h);
0x000231f8 lw s5, 0x2c(sp) | s5 = *(var_2ch);
0x000231fc lw s3, 0x24(sp) | s3 = *(var_24h);
0x00023200 lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x00023204 move a0, s2 | a0 = s2;
0x00023208 move a1, s0 | a1 = s0;
0x0002320c lw s2, 0x20(sp) | s2 = *(var_20h);
0x00023210 lw s0, 0x18(sp) | s0 = *(var_18h);
0x00023214 move a2, s4 | a2 = s4;
0x00023218 lw t9, -0x7d58(gp) | t9 = *((gp - 8022));
0x0002321c lw s4, 0x28(sp) | s4 = *(var_28h);
0x00023220 addiu sp, sp, 0x38 |
0x00023224 b 0x27f94 | void (*0x27f94)() ();
| label_12:
0x00023228 move a3, zero | a3 = 0;
0x0002322c b 0x230dc | goto label_3;
| label_11:
0x00023230 addiu v0, zero, -1 | v0 = -1;
0x00023234 b 0x230f0 | goto label_4;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/2097216-5451840.squashfs_v4_le_extract/thirdlib/libssl.so.1.0.0 @ 0x33e60 */
| #include <stdint.h>
|
; (fcn) sym.tls1_enc () | void tls1_enc () {
0x00033e60 lui gp, 4 |
0x00033e64 addiu gp, gp, -0x6ef0 |
0x00033e68 addu gp, gp, t9 | gp += t9;
0x00033e6c addiu sp, sp, -0x60 |
0x00033e70 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00033e74 sw s4, 0x4c(sp) | *(var_4ch) = s4;
0x00033e78 sw s1, 0x40(sp) | *(var_40h) = s1;
0x00033e7c sw ra, 0x5c(sp) | *(var_5ch) = ra;
0x00033e80 sw s7, 0x58(sp) | *(var_58h) = s7;
0x00033e84 sw s6, 0x54(sp) | *(var_54h) = s6;
0x00033e88 sw s5, 0x50(sp) | *(var_50h) = s5;
0x00033e8c sw s3, 0x48(sp) | *(var_48h) = s3;
0x00033e90 sw s2, 0x44(sp) | *(var_44h) = s2;
0x00033e94 sw s0, 0x3c(sp) | *(var_3ch) = s0;
0x00033e98 move s4, a1 | s4 = a1;
0x00033e9c move s1, a0 | s1 = a0;
0x00033ea0 lw t9, -0x7460(gp) | t9 = *((gp - 7448));
| if (a1 != 0) {
0x00033ea4 beqz a1, 0x33f8c |
0x00033ea8 lw a0, 0x90(a0) | a0 = *((a0 + 36));
0x00033eac jalr t9 | t9 ();
0x00033eb0 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00033eb4 beqz v0, 0x33edc |
0x00033eb8 lw t9, -0x7460(gp) | t9 = *((gp - 7448));
0x00033ebc lw a0, 0x90(s1) | a0 = *((s1 + 36));
0x00033ec0 jalr t9 | t9 ();
0x00033ec4 lw gp, 0x10(sp) | gp = *(var_10h);
0x00033ec8 lw t9, -0x7838(gp) | t9 = *((gp - 7694));
0x00033ecc move a0, v0 | a0 = v0;
0x00033ed0 jalr t9 | t9 ();
0x00033ed4 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 < 0) {
0x00033ed8 bltz v0, 0x343e4 | goto label_13;
| }
| }
| label_9:
0x00033edc lw s3, 0x58(s1) | s3 = *((s1 + 22));
0x00033ee0 lw s2, 0x8c(s1) | s2 = *((s1 + 35));
0x00033ee4 addiu s0, s3, 0x130 | s0 = s3 + aav.0x00000130;
| if (s2 == 0) {
0x00033ee8 beqz s2, 0x341f4 | goto label_14;
| }
0x00033eec lw t9, -0x766c(gp) | t9 = *((gp - 7579));
0x00033ef0 move a0, s2 | a0 = s2;
0x00033ef4 jalr t9 | t9 ();
0x00033ef8 lw v1, 8(s1) | v1 = *((s1 + 2));
0x00033efc move s6, v0 | s6 = v0;
0x00033f00 lw v0, 0x64(v1) | v0 = *((v1 + 25));
0x00033f04 lw v0, 0x38(v0) | v0 = *((v0 + 14));
0x00033f08 andi v0, v0, 1 | v0 &= 1;
0x00033f0c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00033f10 beqz v0, 0x33fe4 | goto label_11;
| }
0x00033f14 lw t9, -0x792c(gp) | t9 = *((gp - 7755));
0x00033f18 move a0, s6 | a0 = s6;
0x00033f1c jalr t9 | t9 ();
0x00033f20 lui v1, 0xf | v1 = 0xf0007;
0x00033f24 addiu v1, v1, 7 |
0x00033f28 and v0, v0, v1 | v0 &= v1;
0x00033f2c addiu a0, zero, 2 | a0 = 2;
0x00033f30 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != a0) {
0x00033f34 bne v0, a0, 0x33fe4 | goto label_11;
| }
0x00033f38 lw t9, -0x7474(gp) | t9 = *((gp - 7453));
0x00033f3c move a0, s6 | a0 = s6;
0x00033f40 jalr t9 | t9 ();
0x00033f44 move a1, v0 | a1 = v0;
0x00033f48 slti v0, v0, 2 | v0 = (v0 < 2) ? 1 : 0;
0x00033f4c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00033f50 bnez v0, 0x33fe4 | goto label_11;
| }
0x00033f54 lw a0, 0x13c(s3) | a0 = *(s3);
0x00033f58 lw v1, 0x140(s3) | v1 = *(s3);
0x00033f5c lw v0, -0x745c(gp) | v0 = *((gp - 7447));
| if (a0 == v1) {
0x00033f60 beq a0, v1, 0x3442c | goto label_15;
| }
0x00033f64 lw a1, -0x7fe4(gp) | a1 = *((gp - 8185));
0x00033f68 lw a2, -0x7fe4(gp) | a2 = *((gp - 8185));
0x00033f6c lw t9, -0x7770(gp) | t9 = *((gp - 7644));
0x00033f70 lw a0, (v0) | a0 = *(v0);
0x00033f74 addiu a1, a1, -0x654c | a1 += -0x654c;
0x00033f78 addiu a2, a2, -0x65b0 | a2 += -0x65b0;
0x00033f7c addiu a3, zero, 0x311 | a3 = 0x311;
0x00033f80 jalr t9 | t9 ();
0x00033f84 lw gp, 0x10(sp) | gp = *(var_10h);
0x00033f88 b 0x33fe4 |
| } else {
0x00033f8c lw a0, 0x84(a0) | a0 = *((a0 + 33));
0x00033f90 jalr t9 | t9 ();
0x00033f94 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00033f98 beqz v0, 0x33fc0 |
0x00033f9c lw t9, -0x7460(gp) | t9 = *((gp - 7448));
0x00033fa0 lw a0, 0x84(s1) | a0 = *((s1 + 33));
0x00033fa4 jalr t9 | t9 ();
0x00033fa8 lw gp, 0x10(sp) | gp = *(var_10h);
0x00033fac lw t9, -0x7838(gp) | t9 = *((gp - 7694));
0x00033fb0 move a0, v0 | a0 = v0;
0x00033fb4 jalr t9 | t9 ();
0x00033fb8 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 < 0) {
0x00033fbc bltz v0, 0x34408 | goto label_16;
| }
| }
| label_10:
0x00033fc0 lw s0, 0x58(s1) | s0 = *((s1 + 22));
0x00033fc4 lw s2, 0x80(s1) | s2 = *((s1 + 32));
0x00033fc8 addiu s0, s0, 0x10c | s0 += segment.DYNAMIC;
| if (s2 == 0) {
0x00033fcc beqz s2, 0x341f4 | goto label_14;
| }
0x00033fd0 lw t9, -0x766c(gp) | t9 = *((gp - 7579));
0x00033fd4 move a0, s2 | a0 = s2;
0x00033fd8 jalr t9 | t9 ();
0x00033fdc lw gp, 0x10(sp) | gp = *(var_10h);
0x00033fe0 move s6, v0 | s6 = v0;
| }
| label_11:
0x00033fe4 lw v0, 0xc0(s1) | v0 = *((s1 + 48));
0x00033fe8 lw t9, -0x7554(gp) | t9 = *((gp - 7509));
| if (v0 == 0) {
0x00033fec beqz v0, 0x341f8 | goto label_17;
| }
0x00033ff0 lw t9, -0x78bc(gp) | t9 = *((gp - 7727));
| if (s6 == 0) {
0x00033ff4 beqz s6, 0x341f4 | goto label_14;
| }
0x00033ff8 lw a0, (s2) | a0 = *(s2);
0x00033ffc lw s3, 4(s0) | s3 = *((s0 + 1));
0x00034000 jalr t9 | t9 ();
0x00034004 lw gp, 0x10(sp) | gp = *(var_10h);
0x00034008 lw a0, (s2) | a0 = *(s2);
0x0003400c lw t9, -0x792c(gp) | t9 = *((gp - 7755));
0x00034010 move s5, v0 | s5 = v0;
0x00034014 jalr t9 | t9 ();
0x00034018 ext v0, v0, 0x15, 1 | __asm ("ext v0, v0, 0x15, 1");
0x0003401c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00034020 beqz v0, 0x34240 | goto label_18;
| }
0x00034024 lw v1, 8(s1) | v1 = *((s1 + 2));
0x00034028 lw v0, 0x58(s1) | v0 = *((s1 + 22));
0x0003402c lw v1, 0x64(v1) | v1 = *((v1 + 25));
| if (s4 != 0) {
0x00034030 bnez s4, 0x342ac | goto label_19;
| }
0x00034034 lw v1, 0x38(v1) | v1 = *((v1 + 14));
0x00034038 andi v1, v1, 8 | v1 &= 8;
0x0003403c addiu v0, v0, 8 | v0 += 8;
| if (v1 == 0) {
0x00034040 beqz v1, 0x342ec | goto label_20;
| }
0x00034044 lw v1, 0x5c(s1) | v1 = *((s1 + 23));
0x00034048 lhu v1, 0x208(v1) | v1 = *(v1);
0x0003404c srl a0, v1, 8 | a0 = v1 >> 8;
| label_2:
0x00034050 sb a0, 0x28(sp) | *(var_28h) = a0;
0x00034054 sb v1, 0x29(sp) | *(var_29h) = v1;
0x00034058 addiu v0, v0, 2 | v0 += 2;
0x0003405c lwl v1, 3(v0) | __asm ("lwl v1, 3(v0)");
0x00034060 lwr v1, (v0) | __asm ("lwr v1, (v0)");
0x00034064 swl v1, 0x2d(sp) | __asm ("swl v1, (var_2dh)");
0x00034068 swr v1, 0x2a(sp) | __asm ("swr v1, (var_2ah)");
0x0003406c lbu v1, 4(v0) | v1 = *((v0 + 4));
0x00034070 sb v1, 0x2e(sp) | *(var_2eh) = v1;
0x00034074 lbu v0, 5(v0) | v0 = *((v0 + 5));
0x00034078 lw v1, 0x28(sp) | v1 = *(var_28h);
0x0003407c sb v0, 0x2f(sp) | *(var_2fh) = v0;
0x00034080 lw v0, 0x2c(sp) | v0 = *(var_2ch);
0x00034084 sw v1, 0x18(sp) | *(var_18h) = v1;
0x00034088 sw v0, 0x1c(sp) | *(var_1ch) = v0;
| label_6:
0x0003408c lw v0, (s1) | v0 = *(s1);
0x00034090 lw a0, (s0) | a0 = *(s0);
0x00034094 lw t9, -0x7704(gp) | t9 = *((gp - 7617));
0x00034098 sra v1, v0, 8 | v1 = v0 >> 8;
0x0003409c sb a0, 0x20(sp) | *(var_20h) = a0;
0x000340a0 sb v1, 0x21(sp) | *(var_21h) = v1;
0x000340a4 sb v0, 0x22(sp) | *(var_22h) = v0;
0x000340a8 lw v0, 4(s0) | v0 = *((s0 + 1));
0x000340ac move a0, s2 | a0 = s2;
0x000340b0 addiu a1, zero, 0x16 | a1 = 0x16;
0x000340b4 srl v1, v0, 8 | v1 = v0 >> 8;
0x000340b8 addiu a2, zero, 0xd | a2 = 0xd;
0x000340bc addiu a3, sp, 0x18 | a3 = sp + 0x18;
0x000340c0 sb v1, 0x23(sp) | *(var_23h) = v1;
0x000340c4 sb v0, 0x24(sp) | *(var_24h) = v0;
0x000340c8 jalr t9 | t9 ();
0x000340cc move s7, v0 | s7 = v0;
0x000340d0 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 <= 0) {
0x000340d4 blez v0, 0x34440 | goto label_21;
| }
| if (s4 == 0) {
0x000340d8 beqz s4, 0x340f8 | goto label_0;
| }
0x000340dc nop |
0x000340e0 lw v0, 4(s0) | v0 = *((s0 + 1));
0x000340e4 addu s3, s3, s7 | s3 += s7;
0x000340e8 addu v0, v0, s7 | v0 += s7;
0x000340ec sw v0, 4(s0) | *((s0 + 1)) = v0;
| do {
0x000340f0 lw t9, -0x7800(gp) | t9 = *((gp - 7680));
| if (s4 == 0) {
0x000340f4 bnez s4, 0x34118 |
| label_0:
0x000340f8 move v0, zero | v0 = 0;
| if (s3 == 0) {
0x000340fc beqz s3, 0x34214 | goto label_12;
| }
0x00034100 divu zero, s3, s5 | __asm ("divu zero, s3, s5");
0x00034104 teq s5, zero, 7 | __asm ("teq s5, zero, 7");
0x00034108 mfhi v1 | __asm ("mfhi v1");
0x0003410c lw ra, 0x5c(sp) | ra = *(var_5ch);
| if (v1 != 0) {
0x00034110 bnez v1, 0x34218 | goto label_3;
| }
| label_1:
0x00034114 lw t9, -0x7800(gp) | t9 = *((gp - 7680));
| }
0x00034118 lw a1, 0xc(s0) | a1 = *((s0 + 3));
0x0003411c lw a2, 0x10(s0) | a2 = *((s0 + 4));
0x00034120 move a0, s2 | a0 = s2;
0x00034124 move a3, s3 | a3 = s3;
0x00034128 jalr t9 | t9 ();
0x0003412c lw gp, 0x10(sp) | gp = *(var_10h);
0x00034130 lw a0, (s2) | a0 = *(s2);
0x00034134 lw t9, -0x792c(gp) | t9 = *((gp - 7755));
0x00034138 move s2, v0 | s2 = v0;
0x0003413c jalr t9 | t9 ();
0x00034140 ext v0, v0, 0x14, 1 | __asm ("ext v0, v0, 0x14, 1");
0x00034144 srl v1, s2, 0x1f | v1 = s2 >> 0x1f;
0x00034148 sltiu s2, s2, 1 | s2 = (s2 < 1) ? 1 : 0;
| if (v0 != 0) {
0x0003414c movz v1, s2, v0 | v1 = s2;
| }
0x00034150 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v1 != 0) {
0x00034154 bnez v1, 0x34440 | goto label_21;
| }
0x00034158 lw t9, -0x792c(gp) | t9 = *((gp - 7755));
0x0003415c move a0, s6 | a0 = s6;
0x00034160 jalr t9 | t9 ();
0x00034164 lui v1, 0xf | v1 = 0xf0007;
0x00034168 addiu v1, v1, 7 |
0x0003416c and v0, v0, v1 | v0 &= v1;
0x00034170 addiu a0, zero, 6 | a0 = 6;
0x00034174 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == a0) {
0x00034178 beq v0, a0, 0x343a0 | goto label_22;
| }
0x0003417c lw t9, -0x7460(gp) | t9 = *((gp - 7448));
| label_7:
0x00034180 lw a0, 0x84(s1) | a0 = *((s1 + 33));
0x00034184 jalr t9 | t9 ();
0x00034188 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x0003418c beqz v0, 0x342e4 | goto label_23;
| }
0x00034190 lw t9, -0x7460(gp) | t9 = *((gp - 7448));
0x00034194 lw a0, 0x84(s1) | a0 = *((s1 + 33));
0x00034198 jalr t9 | t9 ();
0x0003419c lw gp, 0x10(sp) | gp = *(var_10h);
0x000341a0 lw t9, -0x7838(gp) | t9 = *((gp - 7694));
0x000341a4 move a0, v0 | a0 = v0;
0x000341a8 jalr t9 | t9 ();
0x000341ac lw gp, 0x10(sp) | gp = *(var_10h);
0x000341b0 move a3, v0 | a3 = v0;
| label_5:
0x000341b4 addiu v1, zero, 1 | v1 = 1;
0x000341b8 addiu v0, zero, 1 | v0 = 1;
| if (s5 == v1) {
0x000341bc beq s5, v1, 0x342cc | goto label_24;
| }
0x000341c0 lw ra, 0x5c(sp) | ra = *(var_5ch);
| if (s4 == 0) {
0x000341c4 bnez s4, 0x34218 |
0x000341c8 lw t9, -0x7c5c(gp) | t9 = *((gp - 7959));
0x000341cc move a0, s1 | a0 = s1;
0x000341d0 move a1, s0 | a1 = s0;
0x000341d4 move a2, s5 | a2 = s5;
0x000341d8 bal 0x28020 | sym_tls1_cbc_remove_padding ();
0x000341dc lw ra, 0x5c(sp) | ra = *(var_5ch);
| if (s7 == 0) {
0x000341e0 beqz s7, 0x34218 | goto label_3;
| }
0x000341e4 lw v1, 4(s0) | v1 = *((s0 + 1));
| label_4:
0x000341e8 subu s7, v1, s7 | __asm ("subu s7, v1, s7");
0x000341ec sw s7, 4(s0) | *((s0 + 1)) = s7;
0x000341f0 b 0x34214 | goto label_12;
| label_14:
0x000341f4 lw t9, -0x7554(gp) | t9 = *((gp - 7509));
| label_17:
0x000341f8 lw a0, 0xc(s0) | a0 = *((s0 + 3));
0x000341fc lw a1, 0x10(s0) | a1 = *((s0 + 4));
0x00034200 lw a2, 4(s0) | a2 = *((s0 + 1));
0x00034204 jalr t9 | t9 ();
0x00034208 lw v1, 0xc(s0) | v1 = *((s0 + 3));
0x0003420c addiu v0, zero, 1 | v0 = 1;
0x00034210 sw v1, 0x10(s0) | *((s0 + 4)) = v1;
| label_12:
0x00034214 lw ra, 0x5c(sp) | ra = *(var_5ch);
| }
| label_3:
0x00034218 lw s7, 0x58(sp) | s7 = *(var_58h);
0x0003421c lw s6, 0x54(sp) | s6 = *(var_54h);
0x00034220 lw s5, 0x50(sp) | s5 = *(var_50h);
0x00034224 lw s4, 0x4c(sp) | s4 = *(var_4ch);
0x00034228 lw s3, 0x48(sp) | s3 = *(var_48h);
0x0003422c lw s2, 0x44(sp) | s2 = *(var_44h);
0x00034230 lw s1, 0x40(sp) | s1 = *(var_40h);
0x00034234 lw s0, 0x3c(sp) | s0 = *(var_3ch);
0x00034238 addiu sp, sp, 0x60 |
0x0003423c jr ra | return v0;
| label_18:
0x00034240 addiu v0, zero, 1 | v0 = 1;
0x00034244 move s7, zero | s7 = 0;
0x00034248 beq s5, v0, 0x340f0 |
| } while (s5 == v0);
0x0003424c move v1, s3 | v1 = s3;
| if (s4 == 0) {
0x00034250 beqz s4, 0x340f8 | goto label_0;
| }
0x00034254 div zero, s3, s5 | __asm ("div zero, s3, s5");
0x00034258 teq s5, zero, 7 | __asm ("teq s5, zero, 7");
0x0003425c lw v0, 0x100(s1) | v0 = *(s1);
0x00034260 andi v0, v0, 0x200 | v0 &= aav.0x00000200;
0x00034264 mfhi a1 | __asm ("mfhi a1");
0x00034268 subu a1, s5, a1 | __asm ("subu a1, s5, a1");
0x0003426c addiu a0, a1, -1 | a0 = a1 + -1;
| if (v0 != 0) {
0x00034270 bnez v0, 0x343d0 | goto label_25;
| }
| label_8:
0x00034274 addu s3, s3, a1 | s3 += a1;
0x00034278 slt v0, v1, s3 | v0 = (v1 < s3) ? 1 : 0;
| if (v0 == 0) {
0x0003427c beqz v0, 0x34298 | goto label_26;
| }
0x00034280 nop |
| do {
0x00034284 lw v0, 0x10(s0) | v0 = *((s0 + 4));
0x00034288 addu v0, v0, v1 | v0 += v1;
0x0003428c addiu v1, v1, 1 | v1++;
0x00034290 sb a0, (v0) | *(v0) = a0;
0x00034294 bne v1, s3, 0x34284 |
| } while (v1 != s3);
| label_26:
0x00034298 lw v0, 4(s0) | v0 = *((s0 + 1));
0x0003429c move s7, zero | s7 = 0;
0x000342a0 addu a1, v0, a1 | a1 = v0 + a1;
0x000342a4 sw a1, 4(s0) | *((s0 + 1)) = a1;
0x000342a8 b 0x34114 | goto label_1;
| label_19:
0x000342ac lw v1, 0x38(v1) | v1 = *((v1 + 14));
0x000342b0 andi v1, v1, 8 | v1 &= 8;
0x000342b4 addiu v0, v0, 0x54 | v0 += 0x54;
| if (v1 == 0) {
0x000342b8 beqz v1, 0x342ec | goto label_20;
| }
0x000342bc lw v1, 0x5c(s1) | v1 = *((s1 + 23));
0x000342c0 lhu v1, 0x20a(v1) | v1 = *((v1 + 261));
0x000342c4 srl a0, v1, 8 | a0 = v1 >> 8;
0x000342c8 b 0x34050 | goto label_2;
| label_24:
0x000342cc lw ra, 0x5c(sp) | ra = *(var_5ch);
| if (s7 == 0) {
0x000342d0 beqz s7, 0x34218 | goto label_3;
| }
| if (s4 != 0) {
0x000342d4 bnez s4, 0x34218 | goto label_3;
| }
0x000342d8 nop |
0x000342dc lw v1, 4(s0) | v1 = *((s0 + 1));
0x000342e0 b 0x341e8 | goto label_4;
| label_23:
0x000342e4 move a3, zero | a3 = 0;
0x000342e8 b 0x341b4 | goto label_5;
| label_20:
0x000342ec lwl a0, 3(v0) | __asm ("lwl a0, 3(v0)");
0x000342f0 lwl v1, 7(v0) | __asm ("lwl v1, 7(v0)");
0x000342f4 lwr a0, (v0) | __asm ("lwr a0, (v0)");
0x000342f8 lwr v1, 4(v0) | __asm ("lwr v1, 4(v0)");
0x000342fc sw a0, 0x18(sp) | *(var_18h) = a0;
0x00034300 sw v1, 0x1c(sp) | *(var_1ch) = v1;
0x00034304 lbu v1, 7(v0) | v1 = *((v0 + 7));
0x00034308 addiu v1, v1, 1 | v1++;
0x0003430c andi v1, v1, 0xff | v1 &= 0xff;
0x00034310 sb v1, 7(v0) | *((v0 + 7)) = v1;
| if (v1 != 0) {
0x00034314 bnez v1, 0x3408c | goto label_6;
| }
0x00034318 lbu v1, 6(v0) | v1 = *((v0 + 6));
0x0003431c addiu v1, v1, 1 | v1++;
0x00034320 andi v1, v1, 0xff | v1 &= 0xff;
0x00034324 sb v1, 6(v0) | *((v0 + 6)) = v1;
| if (v1 != 0) {
0x00034328 bnez v1, 0x3408c | goto label_6;
| }
0x0003432c lbu v1, 5(v0) | v1 = *((v0 + 5));
0x00034330 addiu v1, v1, 1 | v1++;
0x00034334 andi v1, v1, 0xff | v1 &= 0xff;
0x00034338 sb v1, 5(v0) | *((v0 + 5)) = v1;
| if (v1 != 0) {
0x0003433c bnez v1, 0x3408c | goto label_6;
| }
0x00034340 lbu v1, 4(v0) | v1 = *((v0 + 4));
0x00034344 addiu v1, v1, 1 | v1++;
0x00034348 andi v1, v1, 0xff | v1 &= 0xff;
0x0003434c sb v1, 4(v0) | *((v0 + 4)) = v1;
| if (v1 != 0) {
0x00034350 bnez v1, 0x3408c | goto label_6;
| }
0x00034354 lbu v1, 3(v0) | v1 = *((v0 + 3));
0x00034358 addiu v1, v1, 1 | v1++;
0x0003435c andi v1, v1, 0xff | v1 &= 0xff;
0x00034360 sb v1, 3(v0) | *((v0 + 3)) = v1;
| if (v1 != 0) {
0x00034364 bnez v1, 0x3408c | goto label_6;
| }
0x00034368 lbu v1, 2(v0) | v1 = *((v0 + 2));
0x0003436c addiu v1, v1, 1 | v1++;
0x00034370 andi v1, v1, 0xff | v1 &= 0xff;
0x00034374 sb v1, 2(v0) | *((v0 + 2)) = v1;
| if (v1 != 0) {
0x00034378 bnez v1, 0x3408c | goto label_6;
| }
0x0003437c lbu v1, 1(v0) | v1 = *((v0 + 1));
0x00034380 addiu v1, v1, 1 | v1++;
0x00034384 andi v1, v1, 0xff | v1 &= 0xff;
0x00034388 sb v1, 1(v0) | *((v0 + 1)) = v1;
| if (v1 != 0) {
0x0003438c bnez v1, 0x3408c | goto label_6;
| }
0x00034390 lbu v1, (v0) | v1 = *(v0);
0x00034394 addiu v1, v1, 1 | v1++;
0x00034398 sb v1, (v0) | *(v0) = v1;
0x0003439c b 0x3408c | goto label_6;
| label_22:
0x000343a0 lw t9, -0x7460(gp) | t9 = *((gp - 7448));
| if (s4 != 0) {
0x000343a4 bnez s4, 0x34180 | goto label_7;
| }
0x000343a8 lw a0, 0xc(s0) | a0 = *((s0 + 3));
0x000343ac lw v1, 0x10(s0) | v1 = *((s0 + 4));
0x000343b0 lw v0, 4(s0) | v0 = *((s0 + 1));
0x000343b4 addiu a0, a0, 8 | a0 += 8;
0x000343b8 addiu v1, v1, 8 | v1 += 8;
0x000343bc addiu v0, v0, -8 | v0 += -8;
0x000343c0 sw a0, 0xc(s0) | *((s0 + 3)) = a0;
0x000343c4 sw v1, 0x10(s0) | *((s0 + 4)) = v1;
0x000343c8 sw v0, 4(s0) | *((s0 + 1)) = v0;
0x000343cc b 0x34180 | goto label_7;
| label_25:
0x000343d0 lw v0, 0x58(s1) | v0 = *((s1 + 22));
0x000343d4 lw v0, (v0) | v0 = *(v0);
0x000343d8 andi v0, v0, 8 | v0 &= 8;
| if (v0 == 0) {
0x000343dc movn a0, a1, v0 | a0 = a1;
| }
0x000343e0 b 0x34274 | goto label_8;
| label_13:
0x000343e4 lw a0, -0x7fe4(gp) | a0 = *((gp - 8185));
0x000343e8 lw a2, -0x7fe4(gp) | a2 = *((gp - 8185));
0x000343ec lw t9, -0x76cc(gp) | t9 = *((gp - 7603));
0x000343f0 addiu a0, a0, -0x65b0 | a0 += -0x65b0;
0x000343f4 addiu a1, zero, 0x2fa | a1 = 0x2fa;
0x000343f8 addiu a2, a2, -0x6554 | a2 += -0x6554;
0x000343fc jalr t9 | t9 ();
0x00034400 lw gp, 0x10(sp) | gp = *(var_10h);
0x00034404 b 0x33edc | goto label_9;
| label_16:
0x00034408 lw a0, -0x7fe4(gp) | a0 = *((gp - 8185));
0x0003440c lw a2, -0x7fe4(gp) | a2 = *((gp - 8185));
0x00034410 lw t9, -0x76cc(gp) | t9 = *((gp - 7603));
0x00034414 addiu a0, a0, -0x65b0 | a0 += -0x65b0;
0x00034418 addiu a1, zero, 0x319 | a1 = 0x319;
0x0003441c addiu a2, a2, -0x6554 | a2 += -0x6554;
0x00034420 jalr t9 | t9 ();
0x00034424 lw gp, 0x10(sp) | gp = *(var_10h);
0x00034428 b 0x33fc0 | goto label_10;
| label_15:
0x0003442c lw t9, -0x74dc(gp) | t9 = *((gp - 7479));
0x00034430 jalr t9 | t9 ();
0x00034434 nop |
0x00034438 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 > 0) {
0x0003443c bgtz v0, 0x33fe4 | goto label_11;
| }
| label_21:
0x00034440 addiu v0, zero, -1 | v0 = -1;
0x00034444 b 0x34214 | goto label_12;
| }
[*] Function printf used 1 times libssl.so.1.0.0