Function at 0x14000c672
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x178
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0x118], rdx
mov qword [rbp + 0xe8], 0
mov dword [rbp + 0xe4], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x28], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp - 0x38], 0
cmp qword [rbp + 0x110], 0
jne 0x14000c702
lea r8, str.filepath___NULL
lea rax, str.encryption_Full
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
jmp 0x14000cba6
mov rax, qword [rbp + 0x110]
lea rdx, [0x140016227]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xc0], 0
jne 0x14000c858
call sym.error_type_quark
lea r8, str.File_not_found
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_error_new_literal]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov ebx, dword [rax]
call sym.error_type_quark
cmp ebx, eax
jne 0x14000c7c8
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp + 0x118]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_propagate_error]
call rax
cmp qword [rbp + 0xe8], 0
je 0x14000cba5
mov rax, qword [rbp + 0xe8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xe8], 0
jmp 0x14000cba5
cmp qword [rbp + 0xe8], 0
je 0x14000c7ec
mov rax, qword [rbp + 0xe8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xe8], 0
mov rax, qword [rbp - 0x38]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x38]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_quark_to_string]
call rax
mov rdx, qword [rbp - 0x38]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x254
lea r9, str.C:_msys64_home_poco_encryption.vala.c
lea r8, str.file__s:_line__d:_uncaught_error:__s___s___d_
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_log]
call rax
lea rax, [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x14000cba6
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sym.ftell
mov dword [rbp + 0xe4], eax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.rewind
mov edx, 1
mov ecx, 0x1000
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_malloc0_n]
call rax
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xd8], rax
mov dword [rbp + 0x9c], 0x1000
mov eax, dword [rbp + 0x9c]
mov dword [rbp + 0x98], eax
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x1c], 0
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x94], eax
mov rax, qword [0x14001a200]
mov qword [rbp + 0x88], rax
mov eax, dword [0x14001a208]
mov dword [rbp + 0x84], eax
cmp qword [rbp + 0x88], 0
je 0x14000c954
mov eax, dword [rbp + 0x84]
movsxd rdx, eax
mov rax, qword [rbp + 0x88]
mov rcx, rax
call sym._vala_array_dup14
jmp 0x14000c95b
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x78], rax
mov eax, dword [rbp + 0x84]
mov dword [rbp + 0x74], eax
mov rax, qword [rbp + 0x78]
mov qword [rbp - 0x28], rax
mov eax, dword [rbp + 0x74]
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x70], eax
mov qword [rbp + 0xd0], 0
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov rcx, rax
call sym.ftell
cmp dword [rbp + 0xe4], eax
jle 0x14000cb19
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x9c]
mov dword [rbp + 0x54], eax
mov eax, dword [rbp + 0x54]
movsxd rdx, eax
mov rcx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x58]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 0x9c]
mov dword [rbp + 0x44], eax
cmp qword [rbp + 0x48], 0
je 0x14000ca24
mov rax, qword [rbp + 0xd0]
movsxd rdx, eax
mov rax, qword [rbp + 0x48]
mov rcx, rax
call sym._vala_array_dup15
jmp 0x14000ca28
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0xd0]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp - 0x18], 0
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x34]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x94], eax
mov rax, qword [0x14001a1f0]
mov qword [rbp + 0x28], rax
mov eax, dword [0x14001a1f8]
mov dword [rbp + 0x24], eax
mov r9d, dword [rbp + 0x24]
mov r8, qword [rbp + 0x28]
lea rdx, [rbp - 0x1c]
lea rax, [rbp - 0x18]
lea rcx, [rbp - 0x2c]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call sym.encryption_OFB_Encrypt
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x94], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x70], eax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0xd0]
neg eax
mov edx, eax
mov rax, qword [rbp + 0x18]
mov r8d, 1
mov rcx, rax
call sym.fseek
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp + 8], rax
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
movsxd rdx, eax
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 8]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
jmp 0x14000c987
nop
mov rax, qword [rbp + 0xe8]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fflush
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp - 0x18], 0
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xd8], 0
cmp qword [rbp + 0xe8], 0
je 0x14000cba6
mov rax, qword [rbp + 0xe8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xe8], 0
jmp 0x14000cba6
nop
add rsp, 0x178
pop rbx
pop rbp
ret