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

Disassembly:
push rbp
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
movsd qword [rbp + 0x108], xmm1
movsd qword [rbp + 0x110], xmm2
mov qword [rbp + 0x118], r9
mov qword [rbp + 0xd0], 0
mov dword [rbp + 0xcc], 0
pxor xmm0, xmm0
movsd qword [rbp + 0xc0], xmm0
mov dword [rbp + 0xbc], 0
mov dword [rbp + 0xb8], 0
mov dword [rbp + 0xb4], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x38], 0
cmp qword [rbp + 0x100], 0
jne 0x14000c141
lea r8, str.filepath___NULL
lea rax, str.encryption_Intermittent
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
jmp 0x14000c600
mov rax, qword [rbp + 0x100]
lea rdx, [0x140016227]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xa0], rax
cmp qword [rbp + 0xa0], 0
jne 0x14000c297
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 0x14000c207
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 + 0xd0], 0
je 0x14000c5ff
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xd0], 0
jmp 0x14000c5ff
cmp qword [rbp + 0xd0], 0
je 0x14000c22b
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xd0], 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], 0x1c7
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 0x14000c600
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.ftell
mov dword [rbp + 0xcc], eax
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov rcx, rax
call sym.rewind
pxor xmm0, xmm0
cvtsi2sd xmm0, dword [rbp + 0xcc]
movsd xmm1, qword [rbp + 0x108]
mulsd xmm0, xmm1
movsd qword [rbp + 0xc0], xmm0
movsd xmm1, qword [rbp + 0x110]
movsd xmm0, qword [0x1400162e8]
mulsd xmm1, xmm0
movsd xmm0, qword [rbp + 0xc0]
divsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [rbp + 0xbc], eax
mov eax, dword [rbp + 0xbc]
shl eax, 3
pxor xmm1, xmm1
cvtsi2sd xmm1, eax
movsd xmm0, qword [rbp + 0xc0]
divsd xmm0, xmm1
cvttsd2si eax, xmm0
shl eax, 3
mov dword [rbp + 0xb8], eax
mov eax, dword [rbp + 0xbc]
imul eax, dword [rbp + 0xb8]
mov edx, dword [rbp + 0xcc]
sub edx, eax
mov eax, dword [rbp + 0xbc]
lea ecx, [rax - 1]
mov eax, edx
cdq
idiv ecx
mov dword [rbp + 0xb4], eax
mov eax, dword [rbp + 0xb8]
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 + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0xb8]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x7c], eax
mov rax, qword [0x14001a200]
mov qword [rbp + 0x70], rax
mov eax, dword [0x14001a208]
mov dword [rbp + 0x6c], eax
cmp qword [rbp + 0x70], 0
je 0x14000c405
mov eax, dword [rbp + 0x6c]
movsxd rdx, eax
mov rax, qword [rbp + 0x70]
mov rcx, rax
call sym._vala_array_dup13
jmp 0x14000c409
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x60], rax
mov eax, dword [rbp + 0x6c]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x28], rax
mov eax, dword [rbp + 0x5c]
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x58], eax
mov dword [rbp + 0xdc], 0
mov dword [rbp + 0xdc], 0
mov dword [rbp + 0xd8], 0
mov dword [rbp + 0xd8], 1
cmp dword [rbp + 0xd8], 0
jne 0x14000c468
add dword [rbp + 0xdc], 1
mov eax, dword [rbp + 0xdc]
mov dword [rbp + 0x54], eax
mov dword [rbp + 0xd8], 0
mov eax, dword [rbp + 0xdc]
cmp eax, dword [rbp + 0xbc]
jge 0x14000c591
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x40], rax
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
movsxd rdx, eax
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x40]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [0x14001a1f0]
mov qword [rbp + 0x30], rax
mov eax, dword [0x14001a1f8]
mov dword [rbp + 0x2c], eax
mov r9d, dword [rbp + 0x2c]
mov r8, qword [rbp + 0x30]
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 + 0x7c], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x58], eax
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x20], rax
mov eax, dword [rbp + 0xb8]
neg eax
mov edx, eax
mov rax, qword [rbp + 0x20]
mov r8d, 1
mov rcx, rax
call sym.fseek
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x10], rax
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
movsxd rdx, eax
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0xd0]
mov qword [rbp], rax
mov edx, dword [rbp + 0xb4]
mov rax, qword [rbp]
mov r8d, 1
mov rcx, rax
call sym.fseek
jmp 0x14000c44f
nop
mov rax, qword [rbp + 0xd0]
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
cmp qword [rbp + 0xd0], 0
je 0x14000c600
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xd0], 0
jmp 0x14000c600
nop
add rsp, 0x168
pop rbx
pop rbp
ret