Function at 0x140001a6c
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.140003208
mov ecx, 0x101d
call fcn.140003208
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp - 0x71]
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]
and qword [rbp - 0x49], rsi
lea rax, [rbp - 0x71]
mov qword [rbp - 0x41], rax
lea r14d, [rsi + 0x30]
xor eax, eax
mov dword [rbp - 0x51], r14d
and dword [rsp + 0x28], eax
lea r15d, [rsi + 3]
xorps xmm0, xmm0
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x38]
mov dword [rbp - 0x39], 0x40
lea r8, [rbp - 0x51]
mov qword [rsp + 0x38], rax
mov edx, 0x80000000
mov qword [rbp - 0x79], rax
lea rcx, [rbp + 0x7f]
movdqu xmmword [rbp - 0x31], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
test eax, eax
js 0x140001b26
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x77]
call fcn.140003604
mov rsi, qword [rbp + 0x77]
mov ebx, eax
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140001b35
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140001b82
mov eax, dword [rsi]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x10]
mov dword [rdi + 0x18], eax
call fcn.1400032d8
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
js 0x140001b5f
mov eax, dword [rcx + 0x14]
xor ebx, ebx
mov dword [rdi + 0x1c], eax
test rcx, rcx
je 0x140001b82
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]
mov rsi, qword [rbp + 0x77]
test rsi, rsi
je 0x140001ba0
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]
test ebx, ebx
jns 0x140001bc2
mov ecx, 0x1082
call fcn.140003208
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140003280
jmp 0x140001e09
cmp dword [rdi + 0x18], 0
je 0x140001bd9
mov ecx, 0x1084
call fcn.140003208
xor eax, eax
jmp 0x140001e15
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp - 0x61]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
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]
mov ebx, eax
test eax, eax
jns 0x140001c52
mov ecx, 0x1086
call fcn.140003208
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140003280
jmp 0x140001e13
mov edi, dword [rdi + 0x1c]
mov eax, 0x200
cmp edi, eax
jb 0x140001c66
test edi, 0x1ff
je 0x140001c68
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]
mov r14, rax
test rax, rax
jne 0x140001c9d
mov ecx, 0x1085
call fcn.140003208
mov ebx, 0xc000009a
jmp 0x140001de7
xor edx, edx
mov ecx, edi
div rcx
test edx, edx
je 0x140001cb1
mov esi, edi
sub esi, edx
add rsi, r14
jmp 0x140001cb4
mov rsi, r14
mov rcx, qword [rbp + 0x6f]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140001cd5
mov ecx, 0x1087
jmp 0x140001dd0
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp + 0x67]
and qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001dcb
cmp dword [rbp + 0x67], edi
jne 0x140001dcb
mov rax, qword [0x1400161b0]
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 0x140001d13
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.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140001ccb
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp + 0x67]
and qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001dc4
cmp dword [rbp + 0x67], edi
jne 0x140001dc4
mov ecx, 0x108a
call fcn.140003208
jmp 0x140001de7
mov ecx, 0x1089
jmp 0x140001dd0
mov ecx, 0x1088
call fcn.140003208
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140003280
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]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_NtClose]
mov ecx, 0x101d
call fcn.140003208
mov eax, ebx
add rsp, 0xe8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret