Function at 0x18003fe60
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, 0x5e8
mov qword [rsp + 0x50], 0
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.180056c20
cmp qword [rsp + 0x608], 0
jne 0x18003fec7
lea rcx, [rsp + 0xb0]
call fcn.18003f800
test eax, eax
je 0x18003fec7
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x608], rax
call fcn.180040bd0
mov eax, dword [rsp + 0x610]
mov rcx, qword [rsp + 0x630]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x628]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x620]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x618]
mov r8d, eax
mov rdx, qword [rsp + 0x608]
mov rcx, qword [rsp + 0x600]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1800403e0
movzx eax, byte [rsp + 0x638]
test eax, eax
jne 0x1800403e0
xor edx, edx
lea rcx, [0x18007c648]
call fcn.18004a600
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1800403e0
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x608], 0
je 0x18003ff84
mov rax, qword [rsp + 0x608]
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
cmp dword [rsp + 0x610], 0
je 0x18003ffca
mov eax, dword [rsp + 0x628]
and eax, 0x10000
test eax, eax
je 0x18003ffbe
mov eax, dword [rsp + 0x610]
mov qword [rsp + 0x78], rax
jmp 0x18003ffca
mov eax, dword [rsp + 0x610]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x600]
call fcn.1800416b0
test eax, eax
je 0x1800401f9
xor edx, edx
lea rcx, [0x18007c870]
call fcn.18004a430
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x180040170
lea rax, [rsp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x620]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x600]
call qword [rsp + 0x80]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x18004016b
mov dword [rsp + 0x140], 0x100003
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18004012a
mov rax, qword [rsp + 0x1a8]
sub rax, 0x30
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x618]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x620]
mov qword [rsp + 0x198], rax
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180040101
mov eax, dword [rsp + 0x628]
and eax, 4
test eax, eax
jne 0x1800400ff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180040128
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 0x180040151
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 + 0x630]
mov eax, dword [rsp + rax + 0x98]
mov dword [rcx], eax
jmp 0x1800401f4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x620]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x618]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x600]
call qword [rsp + 0x80]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x1800401f4
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x630]
mov eax, dword [rsp + rax + 0x98]
mov dword [rcx], eax
jmp 0x1800403e0
mov ecx, 0xc
call fcn.1800419a0
mov r8, rax
mov rdx, qword [rsp + 0x600]
mov ecx, 0x25
call fcn.180041270
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1800402c3
lea rax, [rsp + 0xc8]
lea rcx, [0x18007c5e0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x25
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x618]
mov dword [rsp + 0xcd], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0xdd], eax
mov rcx, qword [rsp + 0x600]
call fcn.18003fa90
movzx eax, al
test eax, eax
je 0x1800402a8
mov eax, 8
imul rax, rax, 0xe
lea rcx, [0x1800a5290]
mov eax, dword [rcx + rax]
mov dword [rsp + 0xe2], eax
mov eax, 8
imul rax, rax, 1
lea rcx, [0x1800a5290]
mov eax, dword [rcx + rax]
mov dword [rsp + 0xe7], eax
jmp 0x1800402c3
mov rdx, qword [rsp + 0x600]
mov rcx, qword [rsp + 0x58]
call fcn.180041570
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x58], 0
je 0x1800403e0
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 0x25
lea r8, [rsp + 0xc8]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x600]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800403da
mov eax, dword [rsp + 0x628]
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 + 0x620]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x600]
call qword [rsp + 0x80]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jl 0x1800403c6
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x630]
mov eax, dword [rsp + rax + 0xf0]
mov dword [rcx], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
mov r8d, 0x25
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x600]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x1800403d8
mov rdx, qword [rsp + 0x600]
mov rcx, qword [rsp + 0x58]
call fcn.180041570
jmp 0x1800403e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rsp + 0xb8], 0
je 0x180040404
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0xb8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x50]
add rsp, 0x5e8
pop rdi
pop rsi
ret