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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14002c068]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r8d, 0x400
xor edx, edx
lea rcx, [0x140034650]
call fcn.140003b10
mov r8d, 0x400
xor edx, edx
lea rcx, [0x140034a50]
call fcn.140003b10
mov r8d, 0x7a00
xor edx, edx
lea rcx, [0x14002cc50]
call fcn.140003b10
mov r8d, 0x7a00
xor edx, edx
lea rcx, [0x140034e50]
call fcn.140003b10
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 0x1400010b1
mov eax, 1
jmp 0x140001390
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, [0x140034650]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x14003465c], 0
mov edx, 0x400
lea rcx, [0x140034650]
call fcn.140001880
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, [0x140034a50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x140034a5c], 0
cmp dword [rsp + 0x48], 0x400
je 0x14000117a
lea rcx, str.ERROR2_n
call fcn.1400025b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001390
mov edx, 0x400
lea rcx, [0x140034a50]
call fcn.140001880
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, [0x14002cc50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x14002cc5c], 0
cmp dword [rsp + 0x48], 0x7a00
je 0x140001200
lea rcx, str.ERROR3_n
call fcn.1400025b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001390
mov edx, 0x7a00
lea rcx, [0x14002cc50]
call fcn.140001880
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, [0x140034e50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x140034e5c], 0
cmp dword [rsp + 0x48], 0x7a00
je 0x140001286
lea rcx, str.ERROR4_n
call fcn.1400025b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001390
mov edx, 0x7a00
lea rcx, [0x140034e50]
call fcn.140001880
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.140002750
add rsp, 0x78
ret