Function at 0x140019c80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x68], 0
lea rax, [0x1401dd5c0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0xc]
add eax, 0x30
mov dword [rsp + 0x54], eax
cmp qword [rsp + 0xf0], 0
jne 0x140019d3f
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0x54]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14001a100
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0xc]
add eax, 0x10
mov eax, eax
mov rcx, qword [rsp + 0x78]
add rcx, 0x20
mov r8d, eax
mov rdx, qword [rsp + 0xe8]
call fcn.140161160
mov eax, dword [rsp + 0x54]
mov r8d, 4
mov edx, eax
lea rcx, [rsp + 0x80]
call fcn.140013230
test eax, eax
je 0x14001a0f5
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x54]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x80]
call fcn.140012b10
test eax, eax
je 0x14001a0e8
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 8]
mov eax, dword [rax]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 1
je 0x140019dff
cmp dword [rsp + 0x60], 3
je 0x140019f29
jmp 0x140019fb9
cmp dword [0x1401ddebc], 5
jbe 0x140019e95
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x140019e93
mov qword [rsp + 0x58], 0
mov edx, dword [rsp + 0x64]
lea rcx, str.ERROR_kull_m_remotelib_create___RtlCreateUserThread__0x_08x__n
call fcn.140013fd0
jmp 0x140019efd
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0xe0]
mov r9, qword [rcx]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140019efd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_remotelib_create___CreateRemoteThread__0x_08x__n
call fcn.140013fd0
cmp qword [rsp + 0x58], 0
je 0x140019f24
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x50], eax
jmp 0x140019fb9
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x98], rax
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
lea rcx, str.Th____p_nDa____p_n
call fcn.140013fd0
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 8]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x90]
mov edx, 0x22c1c3
mov rcx, qword [rax]
call fcn.140010930
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140019fb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_remotelib_create___kull_m_kernel_ioctl_handle__0x_08x__n
call fcn.140013fd0
cmp dword [rsp + 0x50], 0
je 0x14001a0e8
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rax
mov r8d, Ordinal_36
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x68]
call fcn.140012b10
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14001a0e8
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x14001a0e8
lea rax, [rsp + 0xb0]
cmp qword [rsp + 0xf0], rax
je 0x14001a0db
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x10], 0
je 0x14001a0c5
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x10]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14001a0c5
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x10]
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.140012b10
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14001a0ba
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x18], rcx
jmp 0x14001a0c5
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x50], 0
jne 0x14001a0db
mov rax, qword [rsp + 0xf0]
mov dword [rax + 0x10], 0
lea rcx, [rsp + 0xa0]
call fcn.140013360
lea rcx, [rsp + 0x80]
call fcn.140013360
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x50]
add rsp, 0xd8
ret