[*] Binary protection state of apidiscovery.cgi
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of apidiscovery.cgi
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/apidiscovery.cgi @ 0x1400 */
| #include <stdint.h>
|
; (fcn) fcn.00001400 () | void fcn_00001400 () {
0x00001400 lui gp, 2 |
0x00001404 addiu gp, gp, -0x53d0 |
0x00001408 addu gp, gp, t9 | gp += t9;
0x0000140c addiu sp, sp, -0x28 |
0x00001410 lw t9, -0x7f40(gp) | t9 = sym.imp.g_strdup_printf
0x00001414 sw ra, 0x24(sp) | *(var_24h) = ra;
0x00001418 sw s2, 0x20(sp) | *(var_20h) = s2;
0x0000141c sw s1, 0x1c(sp) | *(var_1ch) = s1;
0x00001420 sw s0, 0x18(sp) | *(var_18h) = s0;
0x00001424 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001428 move s2, a3 | s2 = a3;
0x0000142c jalr t9 | t9 ();
0x00001430 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001434 addiu a0, zero, 0xc | a0 = 0xc;
0x00001438 lw t9, -0x7f74(gp) | t9 = sym.imp.g_malloc0;
0x0000143c move s1, v0 | s1 = v0;
0x00001440 jalr t9 | t9 ();
0x00001444 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001448 lw a0, 0x38(sp) | a0 = *(arg_38h);
0x0000144c sw s2, 4(v0) | *((v0 + 1)) = s2;
0x00001450 lw t9, -0x7f94(gp) | t9 = sym.imp.g_strndup;
0x00001454 sw s1, 8(v0) | *((v0 + 2)) = s1;
0x00001458 addiu a1, zero, 0x400 | a1 = 0x400;
0x0000145c move s0, v0 | s0 = v0;
0x00001460 jalr t9 | t9 ();
0x00001464 lw ra, 0x24(sp) | ra = *(var_24h);
0x00001468 sw v0, (s0) | *(s0) = v0;
0x0000146c lw s2, 0x20(sp) | s2 = *(var_20h);
0x00001470 move v0, s0 | v0 = s0;
0x00001474 lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x00001478 lw s0, 0x18(sp) | s0 = *(var_18h);
0x0000147c addiu sp, sp, 0x28 |
0x00001480 jr ra | return v0;
| }
[*] Function printf used 2 times apidiscovery.cgi