Function at 0x14000e1c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov r12d, dword [rdx + 0xc]
lea rdi, [rbp + 7]
mov rsi, rcx
add r12d, 0x30
xor ecx, ecx
mov r14d, r12d
test r8, r8
mov qword [rbp - 9], rcx
mov r15, rdx
mov qword [rbp - 0x29], rcx
mov rax, qword [rsi + 8]
mov ebx, ecx
mov qword [rbp - 0x31], rax
cmovne rdi, r8
mov qword [rbp - 1], rax
lea rax, [0x1401b2860]
mov qword [rbp - 0x21], rax
mov rax, qword [rsi]
mov qword [rbp - 0x11], rcx
mov ecx, 0x40
mov edx, r12d
mov qword [rbp - 0x19], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
test rax, rax
je 0x14000e537
mov r8d, dword [r15 + 0xc]
lea rcx, [rax + 0x20]
add r8d, 0x10
mov rdx, r15
call fcn.14011b4a0
mov rdx, qword [rbp - 0x31]
xor r15d, r15d
mov qword [rbp - 0x39], r15
mov ecx, dword [rdx]
test ecx, ecx
je 0x14000e2f0
sub ecx, 1
je 0x14000e2ce
cmp ecx, 2
jne 0x14000e52e
mov rax, qword [rdx + 8]
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x38], r15
mov r9d, r12d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
lea rcx, [rbp - 0x39]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rcx
mov edx, 0x22c18b
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000e30b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x22c18b
lea rcx, str.ERROR_kull_m_kernel_ioctl_handle___DeviceIoControl__0x_08x__:_0x_08x_n
mov r8d, eax
call fcn.14000afb0
jmp 0x14000e30b
mov rcx, qword [rdx + 8]
mov r9d, 0x1000
mov r8, r14
mov dword [rsp + 0x20], 4
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
jmp 0x14000e307
mov r9d, 4
mov r8d, 0x1000
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp - 0x39], rax
cmp qword [rbp - 0x39], rbx
je 0x14000e52e
mov r8, r14
mov qword [rbp - 0x29], r13
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.14000a6f0
test eax, eax
je 0x14000e525
mov rdx, qword [rsi + 8]
mov ecx, dword [rdx]
sub ecx, 1
je 0x14000e3d6
cmp ecx, 2
jne 0x14000e525
mov r8, qword [rbp - 0x39]
lea rcx, str.Th____p_nDa____p_n
mov rdx, qword [rbp - 0x19]
mov qword [rbp - 0x11], r8
call fcn.14000afb0
mov rax, qword [rsi + 8]
lea r8, [rbp - 0x19]
mov qword [rsp + 0x38], r15
mov r9d, 0x10
mov edx, 0x22c1c3
mov rcx, qword [rax + 8]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
test eax, eax
jne 0x14000e496
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x22c1c3
lea rcx, str.ERROR_kull_m_kernel_ioctl_handle___DeviceIoControl__0x_08x__:_0x_08x_n
mov r8d, eax
call fcn.14000afb0
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.14000afb0
jmp 0x14000e525
mov rcx, qword [rdx + 8]
xor edx, edx
cmp dword [0x1401b38a8], 5
mov r9, qword [rsi]
mov rcx, qword [rcx]
jbe 0x14000e42e
mov qword [rsp + 0x48], r15
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rax, qword [rbp - 0x39]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r9
xor r9d, r9d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
jns 0x14000e467
mov qword [rbp + 0x6f], r15
lea rcx, str.ERROR_kull_m_remotelib_create___RtlCreateUserThread__0x_08x__n
jmp 0x14000e460
mov rax, qword [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x6f], rax
test rax, rax
jne 0x14000e474
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_remotelib_create___CreateRemoteThread__0x_08x__n
mov edx, eax
call fcn.14000afb0
mov rax, qword [rbp + 0x6f]
test rax, rax
je 0x14000e525
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test eax, eax
je 0x14000e525
mov r8d, Ordinal_36
mov qword [rbp - 0x29], rdi
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.14000a6f0
mov ebx, eax
test eax, eax
je 0x14000e525
mov rcx, qword [rdi + 0x18]
mov qword [rbp - 9], rcx
test rcx, rcx
je 0x14000e525
lea rax, [rbp + 7]
cmp rdi, rax
je 0x14000e51c
mov eax, dword [rdi + 0x10]
mov ebx, r15d
mov qword [rdi + 0x18], r15
test eax, eax
je 0x14000e518
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14000e518
mov r8d, dword [rdi + 0x10]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.14000a6f0
mov ebx, eax
test eax, eax
je 0x14000e50e
mov rax, qword [rbp - 0x29]
mov qword [rdi + 0x18], rax
jmp 0x14000e51c
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [rdi + 0x10], r15d
lea rcx, [rbp - 9]
call fcn.14000ae80
lea rcx, [rbp - 0x39]
call fcn.14000ae80
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret