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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov rsi, rcx
mov rcx, qword [rcx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x1400047f6
xor r12d, r12d
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x20], r12
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
lea r13, [0x140000000]
nop word [rax + rax]
movzx eax, byte [rsp + 0x34]
cmp eax, 0xc
ja case.default.0x140003fc9
mov ecx, dword [r13 + rax*4 + 0x488c]
add rcx, r13
jmp rcx
mov rcx, qword [rsi + 0x28]
lea rdx, [rsi + 0x230]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r12
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rcx, rsi
call fcn.140001980
mov rcx, qword [rsi + 0x28]
lea r9, [rbp - 0x38]
mov r8d, 4
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x50], r12d
je case.default.0x140003fc9
mov eax, r12d
lea r9, [rbp - 0x38]
cmp qword [rsi + 0x258], rax
lea rdx, [rsp + 0x50]
mov r8d, 4
setne al
mov dword [rsp + 0x50], eax
jmp 0x1400047c0
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp case.default.0x140003fc9
mov rcx, qword [rsi + 0x250]
test rcx, rcx
je case.default.0x140003fc9
mov dword [rsp + 0x38], r12d
lea rdx, [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0xd0]
test eax, eax
jne 0x1400041d9
mov rcx, qword [rbp - 0x50]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x48], r12d
mov rax, qword [rcx]
call qword [rax + 0x30]
mov ecx, dword [rsp + 0x40]
shl rcx, 3
call fcn.140012410
mov rcx, qword [rbp - 0x50]
lea r9, [rsp + 0x40]
mov edx, dword [rsp + 0x40]
mov r8, rax
mov r14, rax
mov r10, qword [rcx]
call qword [r10 + 0x38]
mov ecx, dword [rsp + 0x40]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x38], ecx
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 0x28]
mov r8d, 4
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, r12d
cmp dword [rsp + 0x40], r12d
jbe 0x1400041bd
nop dword [rax]
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x54]
mov eax, edi
lea rdx, [rbp - 0x80]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rbx, [r14 + rax*8]
mov rax, qword [r14 + rax*8]
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x48], r12d
lea r9, [rbp + 0x60]
mov rcx, qword [rbx]
lea r8, [rsp + 0x48]
mov edx, 0xff
mov rax, qword [rcx]
call qword [rax + 0x98]
mov eax, dword [rsp + 0x48]
lea r9, [rsp + 0x54]
mov rcx, qword [rsi + 0x28]
lea rdx, [rsp + 0x48]
add eax, eax
mov qword [rsp + 0x20], r12
mov r8d, 4
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x54]
mov rcx, qword [rsi + 0x28]
lea rdx, [rbp + 0x60]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, dword [rsp + 0x40]
jb 0x140004120
test r14, r14
je 0x1400041ca
mov rcx, r14
call fcn.140012164
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp case.default.0x140003fc9
lea r9, [rsp + 0x54]
mov r8d, 4
lea rdx, [rsp + 0x38]
jmp 0x1400047c0
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rdx, qword [rbp - 0x10]
mov rcx, rsi
call fcn.1400020f0
jmp case.default.0x140003fc9
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rdx, qword [rbp - 8]
mov rcx, rsi
call fcn.140002570
jmp case.default.0x140003fc9
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rcx, qword [rbp]
lea r8, [rbp - 0x30]
mov edx, dword [rbp - 0x70]
mov qword [rbp - 0x80], r12
mov dword [rsp + 0x38], r12d
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
jne 0x14000439b
mov rcx, qword [rbp - 0x30]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], r12
lea rdx, [0x14001f8e0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jne 0x140004391
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140004391
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x70], r12
mov rax, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea edx, [r9 + 0x12]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140004386
mov qword [rsp + 0x48], r12
lea rdx, [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
jne 0x140004386
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140004386
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
call qword [rax + 0x20]
test eax, eax
jne 0x14000437b
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000437b
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rbp - 0x80]
lea r9, [rbp - 0x1c]
mov rcx, qword [rsi + 0x28]
lea rdx, [rsp + 0x70]
mov r8d, 8
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000486b
mov eax, dword [rsp + 0x38]
lea r9, [rbp - 0x20]
mov rcx, qword [rsi + 0x28]
lea rdx, [rsp + 0x48]
mov r8d, 4
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000482f
jmp case.default.0x140003fc9
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 0x6c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov r9d, dword [rbp - 0x6c]
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 8]
call fcn.140002fa0
cmp qword [rbp + 0x50], r12
jne 0x140004499
cmp qword [rbp + 0x58], r12
jne 0x140004499
mov rcx, qword [rsi + 0x28]
lea r9, [rbp + 0x30]
mov r8d, 4
mov dword [rsp + 0x38], 0xffffffff
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000484d
jmp case.default.0x140003fc9
movaps xmm0, xmmword [rbp + 0x50]
lea rdx, [rbp - 0x80]
mov rcx, rsi
movdqa xmmword [rbp - 0x80], xmm0
call fcn.140003210
jmp case.default.0x140003fc9
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov r8d, dword [rbp - 0x68]
mov rcx, rsi
mov rdx, qword [rbp + 0x10]
call fcn.140002b80
jmp case.default.0x140003fc9
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov r8d, dword [rbp - 0x64]
mov rcx, rsi
mov rdx, qword [rbp + 0x18]
call fcn.140002800
jmp case.default.0x140003fc9
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400047f6
mov rcx, qword [rsi + 0x258]
mov r14d, r12d
mov rdi, qword [rbp + 0x20]
mov qword [rsp + 0x58], r12
test rcx, rcx
je 0x140004689
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
call qword [rax + 0x20]
test eax, eax
jne 0x140004689
nop dword [rax]
mov rcx, qword [rbp - 0x28]
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x60]
mov edx, 0x10
mov rax, qword [rcx]
call qword [rax + 0x38]
mov r9d, dword [rbp - 0x60]
mov edx, r12d
mov r15d, eax
test r9d, r9d
je 0x140004668
nop word [rax + rax]
mov eax, edx
shl rax, 5
mov ebx, edx
mov r8, qword [rbp + rax + 0x60]
cmp rdi, r8
jb 0x14000461f
mov rcx, qword [rbp + rax + 0x68]
add rcx, r8
cmp rdi, rcx
jb 0x140004628
inc edx
cmp edx, r9d
jb 0x140004600
jmp 0x140004668
mov rcx, qword [rsi + 0x28]
lea r9, [rbp - 0x5c]
mov qword [rsp + 0x58], r8
lea rdx, [rsp + 0x58]
mov r14d, 1
mov qword [rsp + 0x20], r12
lea r8d, [r14 + 7]
call qword [sym.imp.KERNEL32.dll_WriteFile]
shl rbx, 5
lea rdx, [rbp - 0x80]
mov rcx, rsi
movups xmm0, xmmword [rbp + rbx + 0x70]
movaps xmmword [rbp - 0x80], xmm0
call fcn.140003210
test r15d, r15d
jne 0x140004676
test r14d, r14d
je 0x1400045d0
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
call qword [rax + 0x10]
test r14d, r14d
jne case.default.0x140003fc9
lea r9, [rbp - 0x5c]
lea rdx, [rsp + 0x58]
jmp 0x1400047ba
mov rcx, rsi
call fcn.140003be0
jmp case.default.0x140003fc9
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.default.0x140003fc9
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.default.0x140003fc9
mov r9d, dword [rbp - 0x58]
lea rdx, [rbp + 0x38]
mov r8, qword [rbp + 0x28]
call fcn.140002fa0
cmp qword [rbp + 0x38], r12
jne 0x140004711
cmp qword [rbp + 0x40], r12
je 0x1400047ae
mov rcx, qword [rsi + 0x258]
test rcx, rcx
je 0x1400047ae
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x20]
test eax, eax
jne 0x1400047ae
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x60]
mov edx, 0x20
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
jne 0x1400047ae
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x140004730
mov ebx, r12d
nop dword [rax + rax]
mov eax, ebx
shl rax, 5
mov rcx, qword [rbp + rax + 0x70]
cmp qword [rbp + 0x38], rcx
jne 0x1400047a6
mov rcx, qword [rbp + rax + 0x78]
cmp qword [rbp + 0x40], rcx
jne 0x1400047a6
mov rcx, qword [rbp + rax + 0x60]
lea r9, [rbp - 0x54]
mov qword [rbp - 0x40], rcx
lea rdx, [rbp - 0x40]
mov rcx, qword [rsi + 0x28]
mov r8d, 8
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x68]
inc ebx
cmp ebx, edx
jb 0x140004760
jmp 0x140004730
mov qword [rbp - 0x40], r12
lea r9, [rbp - 0x54]
lea rdx, [rbp - 0x40]
mov r8d, 8
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 1
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003fb0
mov eax, 1
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.140005550
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor eax, eax
jmp 0x1400047fb
lea rax, str.Write_Error
lea rdx, [0x14002a408]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140006e78
int3
lea rax, str.Write_Error
lea rdx, [0x14002a408]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140006e78
int3
lea rax, str.Write_Error
lea rdx, [0x14002a408]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140006e78
int3