[*] Binary protection state of libnl-genl-3.so.200.21.0
No RELRO No Canary found NX disabled DSO RPATH No RUNPATH No Symbols
[*] Function strcat tear down of libnl-genl-3.so.200.21.0
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/2097216-5451840.squashfs_v4_le_extract/thirdlib/libnl-genl-3.so.200.21.0 @ 0x1580 */
| #include <stdint.h>
|
; (fcn) fcn.00001580 () | void fcn_00001580 () {
0x00001580 lui gp, 2 |
0x00001584 addiu gp, gp, -0x3900 |
0x00001588 addu gp, gp, t9 | gp += t9;
0x0000158c addiu sp, sp, -0x30 |
0x00001590 sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001594 lw s3, -0x7fe4(gp) | s3 = *((gp - 8185));
0x00001598 sw gp, 0x10(sp) | *(var_10h) = gp;
0x0000159c sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x000015a0 lbu v0, 0x5e30(s3) | v0 = *((s3 + 24112));
0x000015a4 sw s2, 0x24(sp) | *(var_24h) = s2;
0x000015a8 sw s1, 0x20(sp) | *(var_20h) = s1;
0x000015ac sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x000015b0 lw v0, -0x7ea0(gp) | v0 = *((gp - 8104));
| if (v0 != 0) {
0x000015b4 bnez v0, 0x166c | goto label_1;
| }
0x000015b8 lw v0, -0x7fe0(gp) | v0 = *((gp - 8184));
| if (v0 != 0) {
0x000015bc beqz v0, 0x15d0 |
0x000015c0 lw t9, -0x7ea0(gp) | t9 = *((gp - 8104));
0x000015c4 lw a0, (v0) | a0 = *(v0);
0x000015c8 jalr t9 | t9 ();
0x000015cc lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x000015d0 lw s2, -0x7fe4(gp) | s2 = *((gp - 8185));
0x000015d4 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x000015d8 lw s1, -0x7fdc(gp) | s1 = *((gp - 8183));
0x000015dc addiu s2, s2, 0x5ab0 | s2 += 0x5ab0;
0x000015e0 lw v0, 0x5e34(s0) | v0 = *((s0 + 6029));
0x000015e4 subu s1, s1, s2 | __asm ("subu s1, s1, s2");
0x000015e8 sra s1, s1, 2 | s1 >>= 2;
0x000015ec addiu s1, s1, -1 | s1 += -1;
0x000015f0 sltu v1, v0, s1 | v1 = (v0 < s1) ? 1 : 0;
0x000015f4 lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
| if (v1 == 0) {
0x000015f8 beqz v1, 0x1628 | goto label_2;
| }
| do {
0x000015fc addiu v0, v0, 1 | v0++;
0x00001600 sll v1, v0, 2 | v1 = v0 << 2;
0x00001604 addu v1, s2, v1 | v1 = s2 + v1;
0x00001608 lw t9, (v1) | t9 = *(v1);
0x0000160c sw v0, 0x5e34(s0) | *((s0 + 6029)) = v0;
0x00001610 jalr t9 | t9 ();
0x00001614 lw v0, 0x5e34(s0) | v0 = *((s0 + 6029));
0x00001618 sltu v1, v0, s1 | v1 = (v0 < s1) ? 1 : 0;
0x0000161c lw gp, 0x10(sp) | gp = *(var_10h);
0x00001620 bnez v1, 0x15fc |
| } while (v1 != 0);
0x00001624 lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
| label_2:
0x00001628 addiu t9, t9, 0x14f0 | t9 += entry0;
0x0000162c bal 0x14f0 | entry0 ();
0x00001630 nop |
0x00001634 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001638 lw v0, -0x7f28(gp) | v0 = *((gp - 8138));
0x0000163c lw a0, -0x7f3c(gp) | a0 = *((gp - 8143));
| if (v0 == 0) {
0x00001640 beqz v0, 0x1688 | goto label_3;
| }
0x00001644 lw v0, -0x7f08(gp) | v0 = *((gp - 8130));
| if (a0 == 0) {
0x00001648 beqz a0, 0x168c | goto label_4;
| }
0x0000164c lb v0, (a0) | v0 = *(a0);
0x00001650 slti v0, v0, 2 | v0 = (v0 < 2) ? 1 : 0;
0x00001654 lw t9, -0x7f08(gp) | t9 = *((gp - 8130));
| if (v0 != 0) {
0x00001658 bnez v0, 0x1688 | goto label_3;
| }
0x0000165c jalr t9 | t9 ();
0x00001660 nop |
| do {
0x00001664 addiu v0, zero, 1 | v0 = 1;
| label_0:
0x00001668 sb v0, 0x5e30(s3) | *((s3 + 24112)) = v0;
| label_1:
0x0000166c lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001670 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00001674 lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001678 lw s1, 0x20(sp) | s1 = *(var_20h);
0x0000167c lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001680 addiu sp, sp, 0x30 |
0x00001684 jr ra | return v0;
| label_3:
0x00001688 lw v0, -0x7f08(gp) | v0 = *((gp - 8130));
| label_4:
0x0000168c lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00001690 beqz v0, 0x1664 |
| } while (v0 == 0);
0x00001694 lw t9, -0x7f08(gp) | t9 = *((gp - 8130));
0x00001698 addiu a0, a0, 0x5aa0 | a0 += section..eh_frame;
0x0000169c jalr t9 | t9 ();
0x000016a0 addiu v0, zero, 1 | v0 = 1;
0x000016a4 b 0x1668 | goto label_0;
| }
[*] Function strcat used 1 times libnl-genl-3.so.200.21.0