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

Disassembly:
push rbp
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], rcx
mov dword [rbp + 0xc8], edx
mov qword [rbp + 0xd0], r8
mov qword [rbp + 0x98], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x88], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x38], 0
cmp qword [rbp + 0xc0], 0
jne 0x14000bccc
lea r8, str.filepath___NULL
lea rax, str.encryption_Fast
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
jmp 0x14000c04f
mov rax, qword [rbp + 0xc0]
lea rdx, [0x140016227]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
jne 0x14000be1c
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 0x14000bd8c
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_propagate_error]
call rax
cmp qword [rbp + 0x98], 0
je 0x14000c04e
mov rax, qword [rbp + 0x98]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x98], 0
jmp 0x14000c04e
cmp qword [rbp + 0x98], 0
je 0x14000bdb0
mov rax, qword [rbp + 0x98]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x98], 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], 0x167
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 0x14000c04f
mov eax, dword [rbp + 0xc8]
cdqe
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_malloc0_n]
call rax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x90], rax
mov eax, dword [rbp + 0xc8]
mov dword [rbp + 0x6c], eax
mov eax, dword [rbp + 0x6c]
mov dword [rbp + 0x68], eax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x60], rax
mov eax, dword [rbp + 0x6c]
movsxd rdx, eax
mov rcx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x90]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x90], 0
je 0x14000beae
mov rax, qword [rbp + 0x88]
movsxd rdx, eax
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym._vala_array_dup11
jmp 0x14000beb5
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x88]
mov dword [rbp + 0x54], eax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x54]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x50], eax
mov rax, qword [0x14001a200]
mov qword [rbp + 0x48], rax
mov eax, dword [0x14001a208]
mov dword [rbp + 0x44], eax
cmp qword [rbp + 0x48], 0
je 0x14000bf06
mov eax, dword [rbp + 0x44]
movsxd rdx, eax
mov rax, qword [rbp + 0x48]
mov rcx, rax
call sym._vala_array_dup12
jmp 0x14000bf0a
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x38], rax
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x28], rax
mov eax, dword [rbp + 0x34]
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x30], 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 + 0x50], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x30], eax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.rewind
mov rax, qword [rbp + 0x98]
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
mov rax, qword [rbp + 0x98]
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 + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x90], 0
cmp qword [rbp + 0x98], 0
je 0x14000c04f
mov rax, qword [rbp + 0x98]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x98], 0
jmp 0x14000c04f
nop
add rsp, 0x128
pop rbx
pop rbp
ret