Function at 0x14000f540
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xb0
mov rax, qword [rcx + 8]
xor r14d, r14d
mov rsi, rcx
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x50], rax
lea rax, [0x140140240]
mov qword [rsp + 0x50], r14
mov qword [r11 - 0x80], rax
mov rax, qword [rcx]
mov qword [r11 - 0x68], rax
mov eax, dword [rdx + 0xc]
lea rdi, [r11 - 0x48]
add eax, 0x30
mov r13, rdx
cmp r8, r14
lea ecx, [r14 + 0x40]
mov edx, eax
mov ebx, r14d
mov qword [r11 - 0x78], r14
mov qword [r11 - 0x58], r14
mov qword [r11 - 0x60], r14
cmovne rdi, r8
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
cmp rax, r14
je 0x14000f82a
mov r8d, dword [r13 + 0xc]
lea rcx, [rax + 0x20]
mov rdx, r13
add r8d, 0x10
call sub.msvcrt.dll_memcpy
lea r8d, [r14 + 4]
lea rcx, [rsp + 0x60]
mov rdx, rbp
call fcn.14000bab0
cmp eax, r14d
je 0x14000f821
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
mov r8, rbp
mov qword [rsp + 0x50], r12
call fcn.14000b6d8
cmp eax, r14d
je 0x14000f817
mov rdx, qword [rsi + 8]
mov ecx, dword [rdx]
sub ecx, 1
je 0x14000f68e
cmp ecx, 2
jne 0x14000f817
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
lea rcx, str.Th____p_nDa____p_n
mov qword [rsp + 0x78], r8
call fcn.14000c030
mov r11, qword [rsi + 8]
mov rcx, qword [r11 + 8]
mov dword [rsp + 0x30], r14d
lea r9d, [r14 + 0x10]
mov rcx, qword [rcx]
lea r8, [rsp + 0x70]
mov edx, 0x22c1c3
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call fcn.14000a448
mov ebx, eax
cmp eax, r14d
jne 0x14000f766
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PA7LB_kull_m_remotelib_create___kull_m_kernel_ioctl_handle__0x_08x__n
mov edx, eax
call fcn.14000c030
jmp 0x14000f75d
mov rcx, qword [rdx + 8]
xor edx, edx
cmp dword [0x140140848], 5
mov rcx, qword [rcx]
jbe 0x14000f6ef
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call sub.ntdll.dll_RtlCreateUserThread
cmp eax, r14d
jge 0x14000f730
mov qword [rsp + 0xe0], r14
lea rcx, str.PA7LB_kull_m_remotelib_create___RtlCreateUserThread__0x_08x__n
jmp 0x14000f729
mov rax, qword [rsp + 0x60]
mov r9, qword [rsi]
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0xe0], rax
cmp rax, r14
jne 0x14000f741
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PA7LB_kull_m_remotelib_create___CreateRemoteThread__0x_08x__n
mov edx, eax
call fcn.14000c030
mov rax, qword [rsp + 0xe0]
cmp rax, r14
je 0x14000f817
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
cmp ebx, r14d
je 0x14000f817
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov r8d, 0x20
mov qword [rsp + 0x50], rdi
call fcn.14000b6d8
mov ebx, eax
cmp eax, r14d
je 0x14000f817
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x80], rax
cmp rax, r14
je 0x14000f817
lea rax, [rsp + 0x90]
cmp rdi, rax
je 0x14000f80a
mov ebx, r14d
mov qword [rdi + 0x18], r14
cmp dword [rdi + 0x10], r14d
je 0x14000f806
mov edx, dword [rdi + 0x10]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
cmp rax, r14
je 0x14000f806
mov r8d, dword [rdi + 0x10]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.14000b6d8
mov ebx, eax
cmp eax, r14d
je 0x14000f7f6
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x18], rax
jmp 0x14000f801
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, r14d
jne 0x14000f80a
mov dword [rdi + 0x10], r14d
lea rcx, [rsp + 0x80]
call fcn.14000bb6c
lea rcx, [rsp + 0x60]
call fcn.14000bb6c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret