Function at 0x140001c68
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.140003408
mov ecx, 0x101d
call fcn.140003408
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 0x140001d28
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x77]
call fcn.1400039c8
mov rsi, qword [rbp + 0x77]
mov ebx, eax
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140001d3d
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x140001d90
mov eax, dword [rsi]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x10]
mov dword [rdi + 0x18], eax
call fcn.140003638
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
js 0x140001d67
mov eax, dword [rcx + 0x14]
xor ebx, ebx
mov dword [rdi + 0x1c], eax
test rcx, rcx
je 0x140001d90
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 0x140001db4
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 0x140001ddc
mov ecx, 0x1082
call fcn.140003408
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140003484
jmp 0x140002065
cmp dword [rdi + 0x18], 0
je 0x140001df3
mov ecx, 0x1084
call fcn.140003408
xor eax, eax
jmp 0x140002071
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 0x140001e7e
mov ecx, 0x1086
call fcn.140003408
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140003484
jmp 0x14000206f
mov edi, dword [rdi + 0x1c]
mov eax, 0x200
cmp edi, eax
jb 0x140001e92
test edi, 0x1ff
je 0x140001e94
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 0x140001ecf
mov ecx, 0x1085
call fcn.140003408
mov ebx, 0xc000009a
jmp 0x140002037
xor edx, edx
mov ecx, edi
div rcx
test edx, edx
je 0x140001ee3
mov esi, edi
sub esi, edx
add rsi, r14
jmp 0x140001ee6
mov rsi, r14
mov rcx, qword [rbp + 0x6f]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140001f0d
mov ecx, 0x1087
jmp 0x14000201a
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]
nop dword [rax + rax]
test eax, eax
je 0x140002015
cmp dword [rbp + 0x67], edi
jne 0x140002015
mov rax, qword [0x1400171b0]
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 0x140001f51
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]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140001f03
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]
nop dword [rax + rax]
test eax, eax
je 0x14000200e
cmp dword [rbp + 0x67], edi
jne 0x14000200e
mov ecx, 0x108a
call fcn.140003408
jmp 0x140002037
mov ecx, 0x1089
jmp 0x14000201a
mov ecx, 0x1088
call fcn.140003408
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140003484
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.140003408
mov eax, ebx
add rsp, 0xe8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret