[*] Binary protection state of libmbedx509.so.0
No RELRO No Canary found NX disabled DSO RPATH No RUNPATH Symbols
[*] Function popen tear down of libmbedx509.so.0
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/2097216-5451840.squashfs_v4_le_extract/thirdlib/libmbedx509.so.0 @ 0x2d60 */
| #include <stdint.h>
|
; (fcn) sym.__do_global_dtors_aux () | void do_global_dtors_aux () {
0x00002d60 lui gp, 3 |
0x00002d64 addiu gp, gp, -0x25f0 |
0x00002d68 addu gp, gp, t9 | gp += t9;
0x00002d6c addiu sp, sp, -0x30 |
0x00002d70 sw s3, 0x28(sp) | *(var_28h) = s3;
0x00002d74 lw s3, -0x7fe4(gp) | s3 = *((gp - 8185));
0x00002d78 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00002d7c sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00002d80 lbu v0, -0x7640(s3) | v0 = *((s3 - 30272));
0x00002d84 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00002d88 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00002d8c sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00002d90 lw v0, -0x7e44(gp) | v0 = *((gp - 8081));
| if (v0 != 0) {
0x00002d94 bnez v0, 0x2e4c | goto label_1;
| }
0x00002d98 lw v0, -0x7fe0(gp) | v0 = *(gp);
| if (v0 != 0) {
0x00002d9c beqz v0, 0x2db0 |
0x00002da0 lw t9, -0x7e44(gp) | t9 = *((gp - 8081));
0x00002da4 lw a0, (v0) | a0 = *(v0);
0x00002da8 jalr t9 | t9 ();
0x00002dac lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00002db0 lw s2, -0x7fe4(gp) | s2 = *((gp - 8185));
0x00002db4 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00002db8 lw s1, -0x7fdc(gp) | s1 = *(gp);
| /* obj.__DTOR_LIST__ */
0x00002dbc addiu s2, s2, -0x7ac4 | s2 += -0x7ac4;
0x00002dc0 lw v0, -0x763c(s0) | v0 = *((s0 - 7567));
0x00002dc4 subu s1, s1, s2 | __asm ("subu s1, s1, s2");
0x00002dc8 sra s1, s1, 2 | s1 >>= 2;
0x00002dcc addiu s1, s1, -1 | s1 += -1;
0x00002dd0 sltu v1, v0, s1 | v1 = (v0 < s1) ? 1 : 0;
0x00002dd4 lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
| if (v1 == 0) {
0x00002dd8 beqz v1, 0x2e08 | goto label_2;
| }
| do {
0x00002ddc addiu v0, v0, 1 | v0++;
0x00002de0 sll v1, v0, 2 | v1 = v0 << 2;
0x00002de4 addu v1, s2, v1 | v1 = s2 + v1;
0x00002de8 lw t9, (v1) | t9 = *(v1);
0x00002dec sw v0, -0x763c(s0) | *((s0 - 7567)) = v0;
0x00002df0 jalr t9 | t9 ();
0x00002df4 lw v0, -0x763c(s0) | v0 = *((s0 - 7567));
0x00002df8 sltu v1, v0, s1 | v1 = (v0 < s1) ? 1 : 0;
0x00002dfc lw gp, 0x10(sp) | gp = *(var_10h);
0x00002e00 bnez v1, 0x2ddc |
| } while (v1 != 0);
0x00002e04 lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
| label_2:
0x00002e08 addiu t9, t9, 0x2cd0 | t9 += entry0;
0x00002e0c bal 0x2cd0 | entry0 ();
0x00002e10 nop |
0x00002e14 lw gp, 0x10(sp) | gp = *(var_10h);
0x00002e18 lw v0, -0x7efc(gp) | v0 = *((gp - 8127));
0x00002e1c lw a0, -0x7f24(gp) | a0 = *((gp - 8137));
| if (v0 == 0) {
0x00002e20 beqz v0, 0x2e68 | goto label_3;
| }
0x00002e24 lw v0, -0x7ec4(gp) | v0 = *((gp - 8113));
| if (a0 == 0) {
0x00002e28 beqz a0, 0x2e6c | goto label_4;
| }
0x00002e2c lb v0, (a0) | v0 = *(a0);
0x00002e30 slti v0, v0, 2 | v0 = (v0 < 2) ? 1 : 0;
0x00002e34 lw t9, -0x7ec4(gp) | t9 = *((gp - 8113));
| if (v0 != 0) {
0x00002e38 bnez v0, 0x2e68 | goto label_3;
| }
0x00002e3c jalr t9 | t9 ();
0x00002e40 nop |
| do {
0x00002e44 addiu v0, zero, 1 | v0 = 1;
| label_0:
0x00002e48 sb v0, -0x7640(s3) | *((s3 - 30272)) = v0;
| label_1:
0x00002e4c lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00002e50 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00002e54 lw s2, 0x24(sp) | s2 = *(var_24h);
0x00002e58 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00002e5c lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00002e60 addiu sp, sp, 0x30 |
0x00002e64 jr ra | return v0;
| label_3:
0x00002e68 lw v0, -0x7ec4(gp) | v0 = *((gp - 8113));
| label_4:
0x00002e6c lw a0, -0x7fd4(gp) | a0 = *((gp - 8181));
0x00002e70 beqz v0, 0x2e44 |
| } while (v0 == 0);
0x00002e74 lw t9, -0x7ec4(gp) | t9 = *((gp - 8113));
| /* obj.__EH_FRAME_BEGIN__ */
0x00002e78 addiu a0, a0, -0x7ad0 | a0 += -0x7ad0;
0x00002e7c jalr t9 | t9 ();
0x00002e80 addiu v0, zero, 1 | v0 = 1;
0x00002e84 b 0x2e48 | goto label_0;
| }
[*] Function popen used 1 times libmbedx509.so.0