Function at 0x18000ff00
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x5d8
mov qword [rsp + 0x50], 0
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.180024170
cmp qword [rsp + 0x5f8], 0
jne 0x18000ff67
lea rcx, [rsp + 0xa8]
call fcn.18000ef10
test eax, eax
je 0x18000ff67
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x5f8], rax
call fcn.18000fa60
mov eax, dword [rsp + 0x600]
mov rcx, qword [rsp + 0x620]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x618]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x610]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x608]
mov r8d, eax
mov rdx, qword [rsp + 0x5f8]
mov rcx, qword [rsp + 0x5f0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180010454
movzx eax, byte [rsp + 0x628]
test eax, eax
jne 0x180010454
xor edx, edx
lea rcx, [0x180032b78]
call fcn.18000c340
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180010454
mov qword [rsp + 0x80], 0
cmp qword [rsp + 0x5f8], 0
je 0x180010024
mov rax, qword [rsp + 0x5f8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
cmp dword [rsp + 0x600], 0
je 0x18001006a
mov eax, dword [rsp + 0x618]
and eax, 0x10000
test eax, eax
je 0x18001005e
mov eax, dword [rsp + 0x600]
mov qword [rsp + 0x70], rax
jmp 0x18001006a
mov eax, dword [rsp + 0x600]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x5f0]
call fcn.18000d3d0
test eax, eax
je 0x180010299
xor edx, edx
lea rcx, [0x180032a68]
call fcn.18000c280
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x180010210
lea rax, [rsp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x610]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x5f0]
call qword [rsp + 0x68]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x18001020b
mov dword [rsp + 0x130], 0x100003
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1800101ca
mov rax, qword [rsp + 0x198]
sub rax, 0x30
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x608]
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x610]
mov qword [rsp + 0x188], rax
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1800101a1
mov eax, dword [rsp + 0x618]
and eax, 4
test eax, eax
jne 0x18001019f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1800101c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], 0
jmp 0x1800101f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x620]
mov eax, dword [rsp + rax + 0x98]
mov dword [rcx], eax
jmp 0x180010294
lea rax, [rsp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x610]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x608]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x5f0]
call qword [rsp + 0x68]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x180010294
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x620]
mov eax, dword [rsp + rax + 0x98]
mov dword [rcx], eax
jmp 0x180010454
mov ecx, 0xc
call fcn.1800190a0
mov r8, rax
mov rdx, qword [rsp + 0x5f0]
mov ecx, 0x25
call fcn.18000c6c0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180010363
lea rax, [rsp + 0xc0]
lea rcx, [0x180032b10]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x25
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x608]
mov dword [rsp + 0xc5], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0xd5], eax
mov rcx, qword [rsp + 0x5f0]
call fcn.18000e360
movzx eax, al
test eax, eax
je 0x180010348
mov eax, 8
imul rax, rax, 0xe
lea rcx, [0x18004cc60]
mov eax, dword [rcx + rax]
mov dword [rsp + 0xda], eax
mov eax, 8
imul rax, rax, 1
lea rcx, [0x18004cc60]
mov eax, dword [rcx + rax]
mov dword [rsp + 0xdf], eax
jmp 0x180010363
mov rdx, qword [rsp + 0x5f0]
mov rcx, qword [rsp + 0x58]
call fcn.18000c9a0
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x58], 0
je 0x180010454
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9d, 0x25
lea r8, [rsp + 0xc0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x5f0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18001044e
mov eax, dword [rsp + 0x618]
and eax, 4
mov eax, eax
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x610]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x5f0]
call qword [rsp + 0x68]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jl 0x18001043a
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x620]
mov eax, dword [rsp + rax + 0xf0]
mov dword [rcx], eax
jmp 0x18001044c
mov rdx, qword [rsp + 0x5f0]
mov rcx, qword [rsp + 0x58]
call fcn.18000c9a0
jmp 0x180010454
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rsp + 0xb0], 0
je 0x180010478
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0xb0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x50]
add rsp, 0x5d8
pop rdi
pop rsi
ret