[*] Binary protection state of com.axis.CaptureMode1
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of com.axis.CaptureMode1
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/com.axis.CaptureMode1 @ 0x5ff0 */
| #include <stdint.h>
|
; (fcn) fcn.00005ff0 () | void fcn_00005ff0 () {
0x00005ff0 lui gp, 2 |
0x00005ff4 addiu gp, gp, 0x4070 |
0x00005ff8 addu gp, gp, t9 | gp += t9;
0x00005ffc addiu sp, sp, -0x60 |
0x00006000 lw t9, -0x7ca4(gp) | t9 = sym.imp.std2parser_new;
0x00006004 sw s0, 0x38(sp) | *(var_38h) = s0;
0x00006008 lw s0, -0x7fdc(gp) | s0 = sym.imp.g_variant_new_boolean;
0x0000600c sw gp, 0x18(sp) | *(var_18h) = gp;
0x00006010 sw ra, 0x5c(sp) | *(var_5ch) = ra;
0x00006014 sw s6, 0x50(sp) | *(var_50h) = s6;
0x00006018 sw s3, 0x44(sp) | *(var_44h) = s3;
0x0000601c sw a1, 0x30(sp) | *(var_30h) = a1;
0x00006020 sw fp, 0x58(sp) | *(var_58h) = fp;
0x00006024 sw s7, 0x54(sp) | *(var_54h) = s7;
0x00006028 sw s5, 0x4c(sp) | *(var_4ch) = s5;
0x0000602c sw s4, 0x48(sp) | *(var_48h) = s4;
0x00006030 sw s2, 0x40(sp) | *(var_40h) = s2;
0x00006034 sw s1, 0x3c(sp) | *(var_3ch) = s1;
0x00006038 sw s0, 0x2c(sp) | *(var_2ch) = s0;
0x0000603c move s6, a0 | s6 = a0;
0x00006040 jalr t9 | t9 ();
0x00006044 lw gp, 0x18(sp) | gp = *(var_18h);
| /* str._etc_sysconfig_image_source.conf */
0x00006048 addiu a1, s0, 0xd1c | a1 = s0 + 0xd1c;
0x0000604c move a0, v0 | a0 = v0;
0x00006050 lw t9, -0x7c40(gp) | t9 = sym.imp.std2parser_load_cfg;
0x00006054 move s3, v0 | s3 = v0;
0x00006058 jalr t9 | t9 ();
0x0000605c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00006060 beqz v0, 0x630c | goto label_4;
| }
0x00006064 lw v0, -0x7fdc(gp) | v0 = sym.imp.g_variant_new_boolean;
0x00006068 lw t9, -0x7bdc(gp) | t9 = sym.imp.g_strdup;
0x0000606c addiu a0, v0, 0xc60 | a0 = v0 + 0xc60;
0x00006070 sw v0, 0x34(sp) | *(var_34h) = v0;
0x00006074 jalr t9 | t9 ();
0x00006078 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000607c move s0, v0 | s0 = v0;
0x00006080 move a0, s3 | a0 = s3;
0x00006084 lw v0, -0x7fdc(gp) | v0 = sym.imp.g_variant_new_boolean;
0x00006088 lw t9, -0x7c98(gp) | t9 = sym.imp.std2parser_get_next_cfg;
0x0000608c sw v0, 0x24(sp) | *(var_24h) = v0;
0x00006090 lw v0, -0x7fc4(gp) | v0 = *((gp - 8177));
0x00006094 lw s7, -0x7fdc(gp) | s7 = sym.imp.g_variant_new_boolean;
0x00006098 addiu v0, v0, 0x5be4 | v0 += 0x5be4;
0x0000609c lw s5, -0x7fc4(gp) | s5 = *((gp - 8177));
0x000060a0 lw s4, -0x7fdc(gp) | s4 = sym.imp.g_variant_new_boolean;
0x000060a4 sw v0, 0x28(sp) | *(var_28h) = v0;
0x000060a8 jalr t9 | t9 ();
0x000060ac move s2, zero | s2 = 0;
0x000060b0 addiu s7, s7, 0xd54 | s7 += 0xd54;
0x000060b4 addiu s5, s5, 0x5b2c | s5 += fcn.00005b2c;
0x000060b8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000060bc move s1, v0 | s1 = v0;
| if (v0 == 0) {
0x000060c0 beqz v0, 0x6214 | goto label_5;
| }
| do {
0x000060c4 lw t9, -0x7bd4(gp) | t9 = sym.imp.g_strcmp0;
0x000060c8 lw a1, (s1) | a1 = *(s1);
0x000060cc move a0, s2 | a0 = s2;
0x000060d0 jalr t9 | t9 ();
0x000060d4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x000060d8 beqz v0, 0x6168 |
0x000060dc lw t9, -0x7c00(gp) | t9 = sym.imp.g_strconcat;
| if (s2 != 0) {
0x000060e0 beqz s2, 0x610c |
0x000060e4 move a0, s0 | a0 = s0;
0x000060e8 move a2, zero | a2 = 0;
0x000060ec addiu a1, s4, 0xd4c | a1 = s4 + 0xd4c;
0x000060f0 jalr t9 | t9 ();
0x000060f4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000060f8 move a0, s0 | a0 = s0;
0x000060fc lw t9, -0x7b40(gp) | t9 = sym.imp.g_free;
0x00006100 move s0, v0 | s0 = v0;
0x00006104 jalr t9 | t9 ();
0x00006108 lw gp, 0x18(sp) | gp = *(var_18h);
| }
0x0000610c lw v0, 0x24(sp) | v0 = *(var_24h);
0x00006110 lw a2, (s1) | a2 = *(s1);
0x00006114 lw t9, -0x7c00(gp) | t9 = sym.imp.g_strconcat;
0x00006118 addiu a3, v0, 0xd50 | a3 = v0 + 0xd50;
0x0000611c move a1, s7 | a1 = s7;
0x00006120 move a0, s0 | a0 = s0;
0x00006124 sw zero, 0x10(sp) | *(var_10h) = 0;
0x00006128 jalr t9 | t9 ();
0x0000612c lw gp, 0x18(sp) | gp = *(var_18h);
0x00006130 move a0, s0 | a0 = s0;
0x00006134 lw t9, -0x7b40(gp) | t9 = sym.imp.g_free;
0x00006138 move s0, v0 | s0 = v0;
0x0000613c jalr t9 | t9 ();
0x00006140 lw gp, 0x18(sp) | gp = *(var_18h);
0x00006144 lw t9, -0x7b40(gp) | t9 = sym.imp.g_free;
0x00006148 move a0, s2 | a0 = s2;
0x0000614c jalr t9 | t9 ();
0x00006150 lw gp, 0x18(sp) | gp = *(var_18h);
0x00006154 lw t9, -0x7bdc(gp) | t9 = sym.imp.g_strdup;
0x00006158 lw a0, (s1) | a0 = *(s1);
0x0000615c jalr t9 | t9 ();
0x00006160 lw gp, 0x18(sp) | gp = *(var_18h);
0x00006164 move s2, v0 | s2 = v0;
| }
0x00006168 lw t9, -0x7bd4(gp) | t9 = sym.imp.g_strcmp0;
0x0000616c lw a1, (s1) | a1 = *(s1);
0x00006170 move a0, s6 | a0 = s6;
0x00006174 jalr t9 | t9 ();
0x00006178 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x0000617c beqz v0, 0x62c0 | goto label_6;
| }
0x00006180 lw fp, 8(s1) | fp = *((s1 + 2));
| label_0:
0x00006184 move t9, s5 | t9 = s5;
0x00006188 move a0, fp | a0 = fp;
0x0000618c bal 0x5b2c | fcn_00005b2c ();
0x00006190 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00006194 beqz v0, 0x62f4 | goto label_7;
| }
| label_1:
0x00006198 lw t9, 0x28(sp) | t9 = *(var_28h);
0x0000619c move a0, fp | a0 = fp;
0x000061a0 jalr t9 | t9 ();
0x000061a4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000061a8 move fp, v0 | fp = v0;
| label_2:
0x000061ac lw a2, -0x7fdc(gp) | a2 = sym.imp.g_variant_new_boolean;
0x000061b0 lw a1, 4(s1) | a1 = *((s1 + 1));
0x000061b4 lw t9, -0x7c00(gp) | t9 = sym.imp.g_strconcat;
0x000061b8 addiu v0, s4, 0xd4c | v0 = s4 + 0xd4c;
0x000061bc move a3, fp | a3 = fp;
0x000061c0 addiu a2, a2, 0xd64 | a2 += 0xd64;
0x000061c4 move a0, s0 | a0 = s0;
0x000061c8 sw zero, 0x14(sp) | *(var_14h) = 0;
0x000061cc sw v0, 0x10(sp) | *(var_10h) = v0;
0x000061d0 jalr t9 | t9 ();
0x000061d4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000061d8 move a0, s0 | a0 = s0;
0x000061dc lw t9, -0x7b40(gp) | t9 = sym.imp.g_free;
0x000061e0 move s0, v0 | s0 = v0;
0x000061e4 jalr t9 | t9 ();
0x000061e8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000061ec lw t9, -0x7b40(gp) | t9 = sym.imp.g_free;
0x000061f0 move a0, fp | a0 = fp;
0x000061f4 jalr t9 | t9 ();
0x000061f8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000061fc lw t9, -0x7c98(gp) | t9 = sym.imp.std2parser_get_next_cfg;
0x00006200 move a0, s3 | a0 = s3;
0x00006204 jalr t9 | t9 ();
0x00006208 move s1, v0 | s1 = v0;
0x0000620c lw gp, 0x18(sp) | gp = *(var_18h);
0x00006210 bnez v0, 0x60c4 |
| } while (v0 != 0);
| label_5:
0x00006214 lw t9, -0x7b40(gp) | t9 = sym.imp.g_free;
0x00006218 move a0, s2 | a0 = s2;
0x0000621c jalr t9 | t9 ();
0x00006220 lw gp, 0x18(sp) | gp = *(var_18h);
0x00006224 lw t9, -0x7df8(gp) | t9 = sym.imp.std2parser_free;
0x00006228 move a0, s3 | a0 = s3;
0x0000622c jalr t9 | t9 ();
0x00006230 lw gp, 0x18(sp) | gp = *(var_18h);
0x00006234 lw v0, 0x2c(sp) | v0 = *(var_2ch);
0x00006238 lw a1, -0x7fdc(gp) | a1 = sym.imp.g_variant_new_boolean;
0x0000623c lw t9, -0x7da0(gp) | t9 = sym.imp.fopen;
| /* esilref: 'w+' */
0x00006240 addiu a1, a1, 0xd68 | a1 += 0xd68;
0x00006244 addiu a0, v0, 0xd1c | a0 = v0 + 0xd1c;
0x00006248 jalr t9 | t9 ();
0x0000624c move s1, v0 | s1 = v0;
0x00006250 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00006254 beqz v0, 0x6398 | goto label_8;
| }
0x00006258 lw a2, -0x7fdc(gp) | a2 = sym.imp.g_variant_new_boolean;
0x0000625c lw t9, -0x7bb4(gp) | t9 = sym.imp.__fprintf_chk
0x00006260 move a3, s0 | a3 = s0;
| /* esilref: '&s' */
0x00006264 addiu a2, a2, 0xb58 | a2 += 0xb58;
0x00006268 addiu a1, zero, 1 | a1 = 1;
0x0000626c move a0, v0 | a0 = v0;
0x00006270 jalr t9 | t9 ();
0x00006274 lw gp, 0x18(sp) | gp = *(var_18h);
0x00006278 lw t9, -0x7cc4(gp) | t9 = sym.imp.fclose;
0x0000627c move a0, s1 | a0 = s1;
0x00006280 jalr t9 | t9 ();
0x00006284 lw gp, 0x18(sp) | gp = *(var_18h);
| label_3:
0x00006288 lw ra, 0x5c(sp) | ra = *(var_5ch);
0x0000628c lw fp, 0x58(sp) | fp = *(var_58h);
0x00006290 lw s7, 0x54(sp) | s7 = *(var_54h);
0x00006294 lw s6, 0x50(sp) | s6 = *(var_50h);
0x00006298 lw s5, 0x4c(sp) | s5 = *(var_4ch);
0x0000629c lw s4, 0x48(sp) | s4 = *(var_48h);
0x000062a0 lw s3, 0x44(sp) | s3 = *(var_44h);
0x000062a4 lw s2, 0x40(sp) | s2 = *(var_40h);
0x000062a8 lw s1, 0x3c(sp) | s1 = *(var_3ch);
0x000062ac move a0, s0 | a0 = s0;
0x000062b0 lw t9, -0x7b40(gp) | t9 = sym.imp.g_free;
0x000062b4 lw s0, 0x38(sp) | s0 = *(var_38h);
0x000062b8 addiu sp, sp, 0x60 |
0x000062bc jr t9 | t9 ();
| label_6:
0x000062c0 lw a0, -0x7fdc(gp) | a0 = sym.imp.g_variant_new_boolean;
0x000062c4 lw t9, -0x7bd4(gp) | t9 = sym.imp.g_strcmp0;
0x000062c8 lw a1, 4(s1) | a1 = *((s1 + 1));
| /* str.CaptureMode */
0x000062cc addiu a0, a0, 0xd58 | a0 += 0xd58;
0x000062d0 jalr t9 | t9 ();
0x000062d4 lw fp, 8(s1) | fp = *((s1 + 2));
| if (v0 == 0) {
0x000062d8 bnel v0, zero, 0x6184 | goto label_0;
| }
0x000062dc lw fp, 0x30(sp) | fp = *(var_30h);
0x000062e0 move t9, s5 | t9 = s5;
0x000062e4 move a0, fp | a0 = fp;
0x000062e8 bal 0x5b2c | fcn_00005b2c ();
0x000062ec lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x000062f0 bnez v0, 0x6198 | goto label_1;
| }
| label_7:
0x000062f4 lw t9, -0x7bdc(gp) | t9 = sym.imp.g_strdup;
0x000062f8 move a0, fp | a0 = fp;
0x000062fc jalr t9 | t9 ();
0x00006300 move fp, v0 | fp = v0;
0x00006304 lw gp, 0x18(sp) | gp = *(var_18h);
0x00006308 b 0x61ac | goto label_2;
| label_4:
0x0000630c lw t9, -0x7b3c(gp) | t9 = sym.imp.__errno_location;
0x00006310 jalr t9 | t9 ();
0x00006314 nop |
0x00006318 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000631c lw t9, -0x7b64(gp) | t9 = sym.imp.strerror;
0x00006320 lw a0, (v0) | a0 = *(v0);
0x00006324 jalr t9 | t9 ();
0x00006328 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000632c lw v1, 0x2c(sp) | v1 = *(var_2ch);
0x00006330 move a0, zero | a0 = 0;
0x00006334 lw a3, -0x7fdc(gp) | a3 = sym.imp.g_variant_new_boolean;
0x00006338 lw a2, -0x7fdc(gp) | a2 = sym.imp.g_variant_new_boolean;
0x0000633c lw t9, -0x7e80(gp) | t9 = sym.imp.g_log;
0x00006340 addiu v1, v1, 0xd1c | v1 += 0xd1c;
0x00006344 sw v0, 0x14(sp) | *(var_14h) = v0;
0x00006348 sw v1, 0x10(sp) | *(var_10h) = v1;
0x0000634c addiu a3, a3, 0xc60 | a3 += 0xc60;
| /* str._s_s:__s */
0x00006350 addiu a2, a2, 0xd40 | a2 += 0xd40;
0x00006354 addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x00006358 jalr t9 | t9 ();
0x0000635c lw gp, 0x18(sp) | gp = *(var_18h);
0x00006360 lw ra, 0x5c(sp) | ra = *(var_5ch);
0x00006364 lw fp, 0x58(sp) | fp = *(var_58h);
0x00006368 lw s7, 0x54(sp) | s7 = *(var_54h);
0x0000636c lw s6, 0x50(sp) | s6 = *(var_50h);
0x00006370 lw s5, 0x4c(sp) | s5 = *(var_4ch);
0x00006374 lw s4, 0x48(sp) | s4 = *(var_48h);
0x00006378 lw s2, 0x40(sp) | s2 = *(var_40h);
0x0000637c lw s1, 0x3c(sp) | s1 = *(var_3ch);
0x00006380 lw s0, 0x38(sp) | s0 = *(var_38h);
0x00006384 move a0, s3 | a0 = s3;
0x00006388 lw t9, -0x7df8(gp) | t9 = sym.imp.std2parser_free;
0x0000638c lw s3, 0x44(sp) | s3 = *(var_44h);
0x00006390 addiu sp, sp, 0x60 |
0x00006394 jr t9 | t9 ();
| label_8:
0x00006398 lw t9, -0x7b3c(gp) | t9 = sym.imp.__errno_location;
0x0000639c jalr t9 | t9 ();
0x000063a0 nop |
0x000063a4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000063a8 lw t9, -0x7b64(gp) | t9 = sym.imp.strerror;
0x000063ac lw a0, (v0) | a0 = *(v0);
0x000063b0 jalr t9 | t9 ();
0x000063b4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000063b8 lw v1, 0x2c(sp) | v1 = *(var_2ch);
0x000063bc sw v0, 0x14(sp) | *(var_14h) = v0;
0x000063c0 lw a2, -0x7fdc(gp) | a2 = sym.imp.g_variant_new_boolean;
0x000063c4 lw v0, 0x34(sp) | v0 = *(var_34h);
0x000063c8 addiu v1, v1, 0xd1c | v1 += 0xd1c;
0x000063cc lw t9, -0x7e80(gp) | t9 = sym.imp.g_log;
0x000063d0 sw v1, 0x10(sp) | *(var_10h) = v1;
0x000063d4 addiu a3, v0, 0xc60 | a3 = v0 + 0xc60;
| /* str._sFailed_to_write_conf_file__s:__s */
0x000063d8 addiu a2, a2, 0xd6c | a2 += 0xd6c;
0x000063dc addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x000063e0 move a0, zero | a0 = 0;
0x000063e4 jalr t9 | t9 ();
0x000063e8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000063ec b 0x6288 | goto label_3;
| }
[*] Function fprintf used 2 times com.axis.CaptureMode1