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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xe8
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
mov ecx, 0x1083
call fcn.140003424
mov ecx, 0x101d
call fcn.140003424
mov rdx, qword [rdi + 0x10]
lea rcx, [rsp + 0x38]
and qword [rsp + 0x30], 0
xor esi, esi
and qword [rbp + 0x7f], rsi
mov qword [rbp + 0x77], rsi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
and dword [rsp + 0x28], esi
lea rax, [rsp + 0x38]
and qword [rbp - 0x49], rsi
lea r14d, [rsi + 0x30]
xorps xmm0, xmm0
mov qword [rbp - 0x41], rax
lea r15d, [rsi + 3]
mov dword [rbp - 0x51], r14d
lea r9, [rbp - 0x71]
mov dword [rbp - 0x39], 0x40
lea r8, [rbp - 0x51]
mov dword [rsp + 0x20], r15d
mov edx, 0x80000000
lea rcx, [rbp + 0x7f]
movdqu xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x71], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140001d38
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x77]
call fcn.1400039e4
mov rsi, qword [rbp + 0x77]
mov ebx, eax
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140001d4d
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x140001da0
mov eax, dword [rsi]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x10]
mov dword [rdi + 0x18], eax
call fcn.140003654
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
js 0x140001d77
mov eax, dword [rcx + 0x14]
xor ebx, ebx
mov dword [rdi + 0x1c], eax
test rcx, rcx
je 0x140001da0
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rsi, qword [rbp + 0x77]
test rsi, rsi
je 0x140001dc4
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp + 0x77]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test ebx, ebx
jns 0x140001dec
mov ecx, 0x1082
call fcn.140003424
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400034a0
jmp 0x140002075
cmp dword [rdi + 0x18], 0
je 0x140001e03
mov ecx, 0x1084
call fcn.140003424
xor eax, eax
jmp 0x140002081
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp - 0x61]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
and qword [rbp - 0x19], 0
lea rax, [rbp - 0x61]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x2a
lea r9, [rbp + 0xf]
mov qword [rbp - 0x11], rax
lea r8, [rbp - 0x21]
mov dword [rbp - 0x21], r14d
mov edx, 0xc0100080
mov dword [rbp - 9], 0x40
lea rcx, [rbp + 0x6f]
mov dword [rsp + 0x20], 7
movdqu xmmword [rbp - 1], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140001e8e
mov ecx, 0x1086
call fcn.140003424
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400034a0
jmp 0x14000207f
mov edi, dword [rdi + 0x1c]
mov eax, 0x200
cmp edi, eax
jb 0x140001ea2
test edi, 0x1ff
je 0x140001ea4
mov edi, eax
mov rcx, qword gs:[0x60]
lea r8d, [rdi + rdi]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x140001edf
mov ecx, 0x1085
call fcn.140003424
mov ebx, 0xc000009a
jmp 0x140002047
xor edx, edx
mov ecx, edi
div rcx
test edx, edx
je 0x140001ef3
mov esi, edi
sub esi, edx
add rsi, r14
jmp 0x140001ef6
mov rsi, r14
mov rcx, qword [rbp + 0x6f]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140001f1d
mov ecx, 0x1087
jmp 0x14000202a
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp + 0x67]
and qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x140002025
cmp dword [rbp + 0x67], edi
jne 0x140002025
mov rax, qword [0x1400131b0]
mov rcx, rsi
mov edx, 0x80
mov rax, qword [rax + 0x18]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, rdx
movups xmm1, xmmword [rax + 0x70]
add rax, rdx
movups xmmword [rcx - 0x10], xmm1
sub r15, 1
jne 0x140001f61
movups xmm0, xmmword [rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x30], rax
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140001f13
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp + 0x67]
and qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x14000201e
cmp dword [rbp + 0x67], edi
jne 0x14000201e
mov ecx, 0x108a
call fcn.140003424
jmp 0x140002047
mov ecx, 0x1089
jmp 0x14000202a
mov ecx, 0x1088
call fcn.140003424
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400034a0
mov ebx, 0xc0000001
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov ecx, 0x101d
call fcn.140003424
mov eax, ebx
add rsp, 0xe8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret