Function at 0x14002a9e0
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 r14, rcx
add r12d, 0x30
xor ecx, ecx
mov esi, r12d
test r8, r8
mov qword [rbp - 0x19], rcx
mov r15, rdx
mov qword [rbp - 0x29], rcx
mov rax, qword [r14 + 8]
mov ebx, ecx
mov qword [rbp - 0x31], rax
cmovne rdi, r8
mov qword [rbp - 0x11], rax
lea rax, [0x140078b48]
mov qword [rbp - 0x21], rax
mov rax, qword [r14]
mov qword [rbp - 1], rcx
mov ecx, 0x40
mov edx, r12d
mov qword [rbp - 9], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
test rax, rax
je 0x14002adc2
mov r8d, dword [r15 + 0xc]
lea rcx, [rax + 0x20]
add r8d, 0x10
mov rdx, r15
call fcn.140033fa0
mov rdx, qword [rbp - 0x31]
xor r15d, r15d
mov qword [rbp - 0x39], r15
mov ecx, dword [rdx]
test ecx, ecx
je 0x14002aaf6
sub ecx, 1
je 0x14002aad4
cmp ecx, 2
je 0x14002aa9b
lea ecx, [r15 + 0x32]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002ab11
mov rcx, qword [rdx + 8]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x38], r15
mov r9d, r12d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], 8
mov rcx, qword [rcx]
mov edx, 0x22c18b
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x14002ab11
mov rcx, qword [rdx + 8]
mov r9d, 0x1000
mov r8, rsi
mov dword [rsp + 0x20], 4
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
jmp 0x14002ab0d
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp - 0x39], rax
cmp qword [rbp - 0x39], rbx
je 0x14002adb9
mov r8, rsi
mov qword [rbp - 0x29], r13
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.140013350
test eax, eax
je 0x14002ad43
mov rdx, qword [r14 + 8]
mov ecx, dword [rdx]
sub ecx, 1
je 0x14002ab96
cmp ecx, 2
jne 0x14002ad43
mov rax, qword [rbp - 0x39]
lea rcx, [rbp + 0x67]
mov qword [rbp - 1], rax
lea r8, [rbp - 9]
mov rax, qword [rdx + 8]
mov r9d, 0x10
mov qword [rsp + 0x38], r15
mov edx, 0x22c1c3
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r15d
mov rcx, qword [rax]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
test eax, eax
jne 0x14002ac3b
jmp 0x14002ad43
mov rcx, qword [rdx + 8]
xor edx, edx
cmp dword [0x140078f08], 5
mov r9, qword [r14]
mov rcx, qword [rcx]
jbe 0x14002abf0
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 0x14002abea
mov qword [rbp + 0x6f], r15
jmp 0x14002ad43
mov rax, qword [rbp + 0x6f]
jmp 0x14002ac10
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
je 0x14002ad43
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 0x14002ad43
mov r8d, Ordinal_36
mov qword [rbp - 0x29], rdi
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.140013350
mov ebx, eax
test eax, eax
je 0x14002ad43
mov r10, qword [rdi + 0x18]
mov qword [rbp - 0x19], r10
test r10, r10
je 0x14002ad43
lea rax, [rbp + 7]
cmp rdi, rax
je 0x14002acd1
mov eax, dword [rdi + 0x10]
mov ebx, r15d
mov qword [rdi + 0x18], r15
test eax, eax
je 0x14002accd
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14002acc9
mov r8d, dword [rdi + 0x10]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.140013350
mov ebx, eax
test eax, eax
je 0x14002acbf
mov rax, qword [rbp - 0x29]
mov r10, qword [rbp - 0x19]
mov qword [rdi + 0x18], rax
jmp 0x14002acd1
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r10, qword [rbp - 0x19]
mov dword [rdi + 0x10], r15d
mov rdx, qword [rbp - 0x11]
mov ecx, dword [rdx]
test ecx, ecx
je 0x14002ad32
sub ecx, 1
je 0x14002ad17
cmp ecx, 2
jne 0x14002ad43
mov rcx, qword [rdx + 8]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8, r10
mov dword [rsp + 0x28], r15d
mov edx, 0x22c18f
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x14002ad43
mov rcx, qword [rdx + 8]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r10
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14002ad43
xor edx, edx
mov r8d, 0x8000
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8, qword [rbp - 0x31]
mov ecx, dword [r8]
test ecx, ecx
je 0x14002ada7
sub ecx, 1
je 0x14002ad8b
cmp ecx, 2
jne 0x14002adb9
mov rcx, qword [r8 + 8]
lea rax, [rbp + 0x67]
mov r8, qword [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x38], r15
mov edx, 0x22c18f
mov qword [rsp + 0x30], rax
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x14002adb9
mov rcx, qword [r8 + 8]
mov r9d, 0x8000
mov rdx, qword [rbp - 0x39]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14002adb9
mov rcx, qword [rbp - 0x39]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
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