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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400520c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r8d, 0x400
xor edx, edx
lea rcx, [0x14005af90]
call fcn.14003b3a0
mov r8d, 0x400
xor edx, edx
lea rcx, [0x14005b390]
call fcn.14003b3a0
mov r8d, 0x7a00
xor edx, edx
lea rcx, [0x140053590]
call fcn.14003b3a0
mov r8d, 0x7a00
xor edx, edx
lea rcx, [0x14005b790]
call fcn.14003b3a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140005731
mov eax, 1
jmp 0x140005a10
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [0x14005af90]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x14005af9c], 0
mov edx, 0x400
lea rcx, [0x14005af90]
call fcn.140009b10
mov dword [rsp + 0x4c], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [0x14005b390]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x14005b39c], 0
cmp dword [rsp + 0x48], 0x400
je 0x1400057fa
lea rcx, str.ERROR2_n
call fcn.14000e0e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140005a10
mov edx, 0x400
lea rcx, [0x14005b390]
call fcn.140009b10
mov dword [rsp + 0x50], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 0x7a00
lea rdx, [0x140053590]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x14005359c], 0
cmp dword [rsp + 0x48], 0x7a00
je 0x140005880
lea rcx, str.ERROR3_n
call fcn.14000e0e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140005a10
mov edx, 0x7a00
lea rcx, [0x140053590]
call fcn.140009b10
mov dword [rsp + 0x54], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8200
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 0x7a00
lea rdx, [0x14005b790]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x14005b79c], 0
cmp dword [rsp + 0x48], 0x7a00
je 0x140005906
lea rcx, str.ERROR4_n
call fcn.14000e0e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140005a10
mov edx, 0x7a00
lea rcx, [0x14005b790]
call fcn.140009b10
mov dword [rsp + 0x58], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x820c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400127c0
add rsp, 0x78
ret