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

Disassembly:
push rbp
mov eax, 0x1080
call fcn.140004090
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1010], rcx
mov dword [rbp + 0x1018], edx
mov dword [rbp + 0xfc4], 0
mov qword [rbp + 0xff8], 0
mov qword [rbp + 0xff0], 0
mov dword [rbp + 0xfec], 0
mov dword [rbp - 0x44], 0
mov qword [rbp + 0xfe0], 0
mov rax, qword [rbp + 0x1010]
mov eax, dword [rax + 0x10]
test eax, eax
jne 0x140002373
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0x1010]
mov dword [rax + 0x10], 0
mov rax, qword [rbp + 0x1010]
mov eax, dword [rax + 0xc]
test eax, eax
je 0x140002399
mov eax, 1
jmp 0x1400026b1
lea rax, [rbp + 0xfd0]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov word [rbp + 0xfd0], 5
mov byte [rbp + 0xfd2], 0
mov byte [rbp + 0xfd3], 3
mov dword [rbp + 0xfd4], 0x10
mov rax, qword [rbp + 0x1010]
mov eax, dword [rax + 0x814]
add eax, 0x18
mov word [rbp + 0xfd8], ax
mov word [rbp + 0xfda], 0
mov rax, qword [rbp + 0x1010]
mov eax, dword [rax + 8]
mov dword [rbp + 0xfdc], eax
lea rax, [rbp + 0xfc8]
mov r8d, 8
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp + 0xfc8], 0
mov word [rbp + 0xfcc], 0
mov eax, dword [rbp + 0x1018]
mov word [rbp + 0xfce], ax
mov rax, qword [rbp + 0x1010]
mov rax, qword [rax]
lea rcx, [rbp + 0xfc4]
lea rdx, [rbp + 0xfd0]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
sete al
test al, al
je 0x140002487
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0x1010]
mov rax, qword [rax]
lea rcx, [rbp + 0xfc4]
lea rdx, [rbp + 0xfc8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
sete al
test al, al
je 0x1400024d0
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0x1010]
mov ecx, dword [rax + 0x814]
mov rax, qword [rbp + 0x1010]
lea rdx, [rax + 0x14]
mov rax, qword [rbp + 0x1010]
mov rax, qword [rax]
lea r8, [rbp + 0xfc4]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
sete al
test al, al
je 0x140002527
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0x1010]
mov eax, dword [rax + 8]
lea edx, [rax + 1]
mov rax, qword [rbp + 0x1010]
mov dword [rax + 8], edx
lea rax, [rbp - 0x40]
mov r8d, 0x1000
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x1010]
mov rax, qword [rax]
lea rcx, [rbp - 0x44]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
sete al
test al, al
je 0x140002598
mov eax, 1
jmp 0x1400026b1
lea rax, [rbp - 0x40]
mov qword [rbp + 0xff8], rax
mov rax, qword [rbp + 0xff8]
movzx eax, word [rax]
cmp ax, 5
je 0x1400025bd
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0xff8]
movzx eax, byte [rax + 2]
cmp al, 2
je 0x1400025d6
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0xff8]
movzx eax, byte [rax + 3]
cmp al, 3
je 0x1400025ef
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0xff8]
movzx eax, word [rax + 8]
movzx edx, ax
mov eax, dword [rbp - 0x44]
cmp edx, eax
je 0x14000260e
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0xff8]
add rax, 0x10
mov qword [rbp + 0xff0], rax
mov rax, qword [rbp + 0xff0]
movzx eax, word [rax + 4]
test ax, ax
je 0x140002637
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0xff8]
movzx eax, word [rax + 8]
movzx eax, ax
sub eax, 0x18
mov dword [rbp + 0xfec], eax
cmp dword [rbp + 0xfec], 0x800
jbe 0x140002661
mov eax, 1
jmp 0x1400026b1
mov rax, qword [rbp + 0xff0]
add rax, 8
mov qword [rbp + 0xfe0], rax
mov edx, dword [rbp + 0xfec]
mov rax, qword [rbp + 0x1010]
lea rcx, [rax + 0x818]
mov rax, qword [rbp + 0xfe0]
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x1010]
mov edx, dword [rbp + 0xfec]
mov dword [rax + 0x1018], edx
mov eax, 0
add rsp, 0x1080
pop rbp
ret