Function at 0x1800ca530
Capabilities:
Write file on windows

Disassembly:
cmp dword [r8 + 0x110], 0
mov rax, qword [rsp + 0x38]
jne 0x1800cbea0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
jmp 0x1800cb9d0
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x50
mov rax, qword [rsp + 0xa8]
xor r15d, r15d
mov qword [rdx + 0x78], r15
xorps xmm0, xmm0
mov qword [rdx + 0x70], rax
mov rbx, r8
mov qword [rdx + 0x80], rbx
mov r12, r9
mov dword [rdx + 0x88], r15d
mov rdi, rdx
mov qword [rdx + 0xa0], r15
mov rsi, rcx
mov dword [rdx + 8], 3
mov qword [rdx + 0xa8], 0xffffffffffffffff
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
test dword [r8 + 0x58], 0x180000
je 0x1800cba63
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0xa0], rax
test rax, rax
je 0x1800cbe72
or rax, 1
mov qword [rdi + 0x58], rax
movups xmm0, xmmword [0x180346c38]
mov qword [rsp + 0x88], rbp
mov rbp, qword [rsp + 0xa0]
mov qword [rsp + 0x90], r13
mov r13d, 0xffffffff
mov qword [rsp + 0x98], r14
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rdi + 0x90], xmm0
test rbp, rbp
je 0x1800cbbfa
cmp rbp, 1
jne 0x1800cbabf
cmp dword [rsp + 0xb0], r15d
jne 0x1800cbabf
movups xmm0, xmmword [r12]
jmp 0x1800cbbf5
mov rsi, r15
mov ecx, r15d
test rbp, rbp
je 0x1800cbaf2
mov rax, r15
nop dword [rax]
add rax, rax
inc ecx
mov eax, dword [r12 + rax*8]
add rsi, rax
mov eax, ecx
cmp rax, rbp
jb 0x1800cbad0
cmp rsi, r13
jbe 0x1800cbaf2
mov eax, 0x2747
jmp 0x1800cbd2b
lea rcx, [rsi + 0xb8]
call fcn.1800987b0
mov r13, rax
test rax, rax
jne 0x1800cbb0f
lea eax, [r13 + 8]
jmp 0x1800cbd2b
movups xmm0, xmmword [rdi]
mov r14d, 0xb8
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rax + 0x60], xmm0
movups xmm0, xmmword [rdi + 0x70]
movups xmmword [rax + 0x70], xmm0
movups xmm1, xmmword [rdi + 0x80]
movups xmmword [rax + 0x80], xmm1
movups xmm0, xmmword [rdi + 0x90]
movups xmmword [rax + 0x90], xmm0
movups xmm1, xmmword [rdi + 0xa0]
mov qword [rax + 0xb0], rdi
movups xmmword [rax + 0xa0], xmm1
mov dword [rax + 0x88], 1
add rax, r14
test rbp, rbp
je 0x1800cbbce
xor edi, edi
nop dword [rax + rax]
add rdi, rdi
lea rcx, [r14 + r13]
mov r8d, dword [r12 + rdi*8]
mov rdx, qword [r12 + rdi*8 + 8]
call fcn.180282cf0
mov eax, dword [r12 + rdi*8]
inc r15d
add r14, rax
mov edi, r15d
cmp rdi, rbp
jb 0x1800cbba0
lea rax, [r13 + 0xb8]
mov r8d, esi
lea rcx, [rsp + 0x40]
mov rdx, rax
mov rdi, r13
call fcn.180098520
mov rsi, qword [rsp + 0x80]
xor r15d, r15d
mov r13d, 0xffffffff
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
mov ecx, dword [rbx + 0x58]
mov eax, ecx
and eax, 0x1100000
cmp eax, 0x1100000
jne 0x1800cbc95
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0xa8]
movd r8d, xmm0
psrldq xmm0, 8
movq rdx, xmm0
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800cbe67
mov qword [rdi + 0x60], r15
mov ecx, dword [rbx + 0x7c]
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x1800cbc69
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x1800cbc69
or eax, 4
mov dword [rbx + 0x58], eax
test al, 8
je 0x1800cbc69
mov rax, qword [rbx + 8]
inc dword [rax + 8]
inc dword [rsi + 0x20]
lea r9, [rdi + 0x40]
inc dword [rbx + 0x78]
xor r8d, r8d
inc dword [rbx + 0x100]
xor edx, edx
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x1800cbe87
jmp 0x1800cbd29
bt ecx, 0x18
jae 0x1800cbd4f
movups xmmword [rdi + 0x90], xmm0
mov qword [rdi + 0x68], r15
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x1800cbccb
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rbx + 0x208]
mov qword [rax + 0x68], rdi
jmp 0x1800cbccf
mov qword [rdi + 0x68], rdi
mov qword [rbx + 0x208], rdi
cmp dword [rbx + 0x100], 0
jne 0x1800cbcec
mov rcx, rbx
call fcn.1800cb960
movups xmm0, xmmword [rsp + 0x30]
movd ecx, xmm0
mov qword [rdi + 0x60], rcx
add qword [rbx + 0x60], rcx
mov ecx, dword [rbx + 0x7c]
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x1800cbd1d
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x1800cbd1d
or eax, 4
mov dword [rbx + 0x58], eax
test al, 8
je 0x1800cbd1d
mov rax, qword [rbx + 8]
inc dword [rax + 8]
inc dword [rsi + 0x20]
inc dword [rbx + 0x78]
inc dword [rbx + 0x100]
xor eax, eax
mov r13, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov r14, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r10, qword [rbx + 0x118]
lea rax, [rdi + 0x40]
movd r14d, xmm0
xor r9d, r9d
psrldq xmm0, 8
bt ecx, 0x14
mov qword [rsp + 0x20], rax
movq rdx, xmm0
mov r8d, r14d
mov rcx, r10
jae 0x1800cbdf9
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test eax, eax
jne 0x1800cbd96
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1800cbdd6
test ebp, ebp
je 0x1800cbdb7
mov qword [rdi + 0x60], r15
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xa0], r15
jmp 0x1800cbcf8
mov eax, r14d
mov edx, r13d
mov qword [rdi + 0x60], rax
add qword [rbx + 0x60], rax
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800cbd9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0xa0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov qword [rdi + 0xa0], r15
jmp 0x1800cbd2b
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test eax, eax
jne 0x1800cbe12
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1800cbe67
test ebp, ebp
je 0x1800cbe1c
mov qword [rdi + 0x60], r15
jmp 0x1800cbe27
mov eax, r14d
mov qword [rdi + 0x60], rax
add qword [rbx + 0x60], rax
test dword [rbx + 0x58], 0x80000
je 0x1800cbcf8
mov rdx, qword [rdi + 0xa0]
lea rcx, [rdi + 0xa8]
mov dword [rsp + 0x28], 4
lea r8, [0x1800aad10]
mov r9, rdi
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1800cbcf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800cbd2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.1800d1ec0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x1803ca6a8]
call fcn.1800d1ec0
int3
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x378
mov rax, qword [0x180428208]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rsi, qword [rsp + 0x3d0]
xor r15d, r15d
mov r12, qword [rsp + 0x3d8]
mov rdi, r9
mov qword [rsp + 0x48], rdx
mov r13, r8
mov qword [rsp + 0x50], rcx
mov ebx, r15d
mov dword [rsp + 0x40], r15d
test rsi, rsi
je 0x1800cbf23
mov rcx, r9
mov rdx, rsi
nop dword [rax]
mov eax, dword [rcx]
lea rcx, [rcx + 0x10]
add rbx, rax
sub rdx, 1
jne 0x1800cbf00
mov ecx, 0xffffffff
cmp rbx, rcx
jbe 0x1800cbf23
mov eax, 0x2747
jmp 0x1800cc0dd
mov qword [rsp + 0x370], r14
test r12, r12
je 0x1800cbfa6
cmp dword [r12 + 0x10], 0xc
je 0x1800cbf42
mov eax, 0x32
jmp 0x1800cc0d5
cmp dword [r8 + 0x1e0], r15d
jne 0x1800cbf82
mov rcx, qword [r8 + 0x118]
lea rdx, [r8 + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetNamedPipeClientProcessId]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [r13 + 0x1e0], eax
jne 0x1800cbf82
mov rcx, qword [r13 + 0x118]
lea rdx, [r13 + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetNamedPipeServerProcessId]
mov edx, dword [r13 + 0x1e0]
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x40]
mov rcx, r12
call fcn.1800aa8f0
test eax, eax
jne 0x1800cc0d5
test r12, r12
mov qword [rsp + 0x3c8], rbp
lea r14, [rsi + 1]
setne r15b
add r14, r15
cmp r14, 6
jae 0x1800cc00b
lea rbp, [rsp + 0x300]
xorps xmm0, xmm0
lea rdx, [rsp + 0x68]
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x68], xmm0
call fcn.180098520
movups xmm0, xmmword [rax]
mov eax, 1
movups xmmword [rbp], xmm0
test r12, r12
je 0x1800cc051
mov ecx, dword [rsp + 0x40]
sub ecx, eax
je 0x1800cc028
cmp ecx, eax
jne 0x1800cc02d
or dword [rsp + 0x68], 2
jmp 0x1800cc02d
mov edx, reloc.WS2_32.dll_recv
mov rcx, r14
call fcn.1800987a0
mov rbp, rax
test rax, rax
jne 0x1800cbfca
lea eax, [rbp + 8]
jmp 0x1800cc0cd
or dword [rsp + 0x68], 6
mov r8d, 0x278
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.180098520
movups xmm0, xmmword [rax]
mov eax, 2
movups xmmword [rbp + 0x10], xmm0
test rbx, rbx
je 0x1800cc085
or dword [rsp + 0x68], 1
mov dword [rsp + 0x70], ebx
test rsi, rsi
je 0x1800cc085
shl rax, 4
add rax, rbp
nop dword [rax + rax]
lea rax, [rax + 0x10]
movups xmm0, xmmword [rdi]
lea rdi, [rdi + 0x10]
movups xmmword [rax - 0x10], xmm0
sub rsi, 1
jne 0x1800cc070
mov rax, qword [rsp + 0x3e0]
mov r9, rbp
mov rdx, qword [rsp + 0x48]
mov r8, r13
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call 0x1800cb9d0
mov ebx, eax
lea rax, [rsp + 0x300]
cmp rbp, rax
je 0x1800cc0cb
mov rcx, rbp
call fcn.1800987c0
mov eax, ebx
mov rbp, qword [rsp + 0x3c8]
mov r14, qword [rsp + 0x370]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1800a5910
add rsp, 0x378
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret