[*] Binary protection state of eventproducerd
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of eventproducerd
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/eventproducerd @ 0x531c */
| #include <stdint.h>
|
; (fcn) fcn.0000531c () | void fcn_0000531c () {
0x0000531c lui gp, 2 |
0x00005320 addiu gp, gp, -0x330c |
0x00005324 addu gp, gp, t9 | gp += t9;
0x00005328 addiu sp, sp, -0x38 |
0x0000532c sw s0, 0x28(sp) | *(var_28h) = s0;
0x00005330 lw s0, -0x7e60(gp) | s0 = *((gp - 8088));
0x00005334 sw gp, 0x18(sp) | *(var_18h) = gp;
0x00005338 sw ra, 0x34(sp) | *(var_34h) = ra;
0x0000533c lw v0, (s0) | v0 = *(s0);
0x00005340 sw s2, 0x30(sp) | *(var_30h) = s2;
0x00005344 sw s1, 0x2c(sp) | *(var_2ch) = s1;
0x00005348 sw v0, 0x24(sp) | *(var_24h) = v0;
0x0000534c sw zero, 0x20(sp) | *(var_20h) = 0;
| if (a0 != 0) {
0x00005350 beqz a0, 0x5414 |
0x00005354 lw v0, -0x7fd4(gp) | v0 = *((gp - 8181));
| if (a1 == 0) {
0x00005358 beqz a1, 0x543c | goto label_0;
| }
0x0000535c move s1, a0 | s1 = a0;
| if (a2 == 0) {
0x00005360 beqz a2, 0x5464 | goto label_1;
| }
0x00005364 lw a0, -0x7fd4(gp) | a0 = *((gp - 8181));
0x00005368 lw t9, -0x7dfc(gp) | t9 = sym.imp.g_strdup_printf
0x0000536c addiu a0, a0, -0x6e88 | a0 += -0x6e88;
0x00005370 jalr t9 | t9 ();
0x00005374 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005378 move a0, s1 | a0 = s1;
0x0000537c addiu a2, sp, 0x20 | a2 = sp + 0x20;
0x00005380 lw t9, -0x7df0(gp) | t9 = sym.imp.apac_check_auth;
0x00005384 move a1, v0 | a1 = v0;
0x00005388 move s2, v0 | s2 = v0;
0x0000538c jalr t9 | t9 ();
0x00005390 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005394 move a0, s2 | a0 = s2;
0x00005398 lw t9, -0x7d20(gp) | t9 = *((gp - 8008));
0x0000539c move s1, v0 | s1 = v0;
0x000053a0 jalr t9 | t9 ();
0x000053a4 lw v1, 0x20(sp) | v1 = *(var_20h);
0x000053a8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v1 != 0) {
0x000053ac beqz v1, 0x53ec |
0x000053b0 lw v0, 8(v1) | v0 = *((v1 + 2));
0x000053b4 lw a3, -0x7fd4(gp) | a3 = *((gp - 8181));
0x000053b8 lw a2, -0x7fd4(gp) | a2 = *((gp - 8181));
0x000053bc lw t9, -0x7f5c(gp) | t9 = sym.imp.g_log;
0x000053c0 addiu a3, a3, -0x71c0 | a3 += -0x71c0;
0x000053c4 addiu a2, a2, -0x6e80 | a2 += -0x6e80;
0x000053c8 addiu a1, zero, 0x10 | a1 = 0x10;
0x000053cc move a0, zero | a0 = 0;
0x000053d0 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000053d4 jalr t9 | t9 ();
0x000053d8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000053dc lw t9, -0x7f10(gp) | t9 = sym.imp.g_error_free;
0x000053e0 lw a0, 0x20(sp) | a0 = *(var_20h);
0x000053e4 jalr t9 | t9 ();
0x000053e8 lw gp, 0x18(sp) | gp = *(var_18h);
| }
0x000053ec lw a0, 0x24(sp) | a0 = *(var_24h);
0x000053f0 lw v1, (s0) | v1 = *(s0);
0x000053f4 move v0, s1 | v0 = s1;
| if (a0 != v1) {
0x000053f8 bne a0, v1, 0x5490 | goto label_2;
| }
0x000053fc lw ra, 0x34(sp) | ra = *(var_34h);
0x00005400 lw s2, 0x30(sp) | s2 = *(var_30h);
0x00005404 lw s1, 0x2c(sp) | s1 = *(var_2ch);
0x00005408 lw s0, 0x28(sp) | s0 = *(var_28h);
0x0000540c addiu sp, sp, 0x38 |
0x00005410 jr ra | return v0;
| }
0x00005414 lw v0, -0x7fd4(gp) | v0 = *((gp - 8181));
0x00005418 lw a3, -0x7fd4(gp) | a3 = *((gp - 8181));
0x0000541c lw a1, -0x7fd4(gp) | a1 = *((gp - 8181));
0x00005420 addiu v0, v0, -0x6ec4 | v0 += -0x6ec4;
0x00005424 lw t9, -0x7de4(gp) | t9 = sym.imp.g_assertion_message_expr;
0x00005428 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0000542c addiu a3, a3, -0x67f0 | a3 += -0x67f0;
0x00005430 addiu a2, zero, 0x1f6 | a2 = 0x1f6;
0x00005434 addiu a1, a1, -0x6ed8 | a1 += -0x6ed8;
0x00005438 jalr t9 | t9 ();
| label_0:
0x0000543c lw a3, -0x7fd4(gp) | a3 = *((gp - 8181));
0x00005440 lw a1, -0x7fd4(gp) | a1 = *((gp - 8181));
0x00005444 addiu v0, v0, -0x6eb4 | v0 += -0x6eb4;
0x00005448 lw t9, -0x7de4(gp) | t9 = sym.imp.g_assertion_message_expr;
0x0000544c sw v0, 0x10(sp) | *(var_10h) = v0;
0x00005450 addiu a3, a3, -0x67f0 | a3 += -0x67f0;
0x00005454 addiu a2, zero, 0x1f7 | a2 = 0x1f7;
0x00005458 addiu a1, a1, -0x6ed8 | a1 += -0x6ed8;
0x0000545c move a0, zero | a0 = 0;
0x00005460 jalr t9 | t9 ();
| label_1:
0x00005464 lw v0, -0x7fd4(gp) | v0 = *((gp - 8181));
0x00005468 lw a3, -0x7fd4(gp) | a3 = *((gp - 8181));
0x0000546c lw a1, -0x7fd4(gp) | a1 = *((gp - 8181));
0x00005470 addiu v0, v0, -0x6e9c | v0 += -0x6e9c;
0x00005474 lw t9, -0x7de4(gp) | t9 = sym.imp.g_assertion_message_expr;
0x00005478 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0000547c addiu a3, a3, -0x67f0 | a3 += -0x67f0;
0x00005480 addiu a2, zero, 0x1f8 | a2 = segment.DYNAMIC;
0x00005484 addiu a1, a1, -0x6ed8 | a1 += -0x6ed8;
0x00005488 move a0, zero | a0 = 0;
0x0000548c jalr t9 | t9 ();
| label_2:
0x00005490 lw t9, -0x7ea0(gp) | t9 = sym.imp.__stack_chk_fail;
0x00005494 jalr t9 | t9 ();
0x00005498 nop |
0x0000549c lui gp, 2 |
0x000054a0 addiu gp, gp, -0x348c |
0x000054a4 addu gp, gp, t9 | gp += t9;
0x000054a8 lw t9, -0x7f50(gp) | t9 = sym.imp.g_slice_free1;
0x000054ac move a1, a0 | a1 = a0;
0x000054b0 addiu a0, zero, 0x10 | a0 = 0x10;
0x000054b4 jr t9 | return t9 ();
| }
[*] Function printf used 2 times eventproducerd