Function at 0x140012ee6
Capabilities:
Create process on windows
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
movaps xmmword [rsp + 0x150], xmm6
mov r13, r9
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rcx, rdx
call fcn.14006782c
mov rcx, qword [r12 + 0x50]
mov qword [r12 + 0x50], rax
test rcx, rcx
je 0x140012f3b
call fcn.140067210
mov rbp, qword [r13]
mov rcx, rsi
call fcn.14006782c
mov r14, rax
xor esi, esi
cmp qword [rbp + 0xa0], 0
setne sil
shl esi, 0x13
or esi, 0x40c
cmp qword [r12 + 0x30], 0
je 0x140012f7c
call fcn.140004dc0
lea ecx, [rsi + 0x1000000]
cmp eax, 5
cmovge ecx, esi
mov esi, ecx
mov r15, qword [rsp + 0x1d8]
mov rax, qword [r13]
movzx eax, byte [rax + 0x20]
xor edx, edx
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], rdx
xorps xmm0, xmm0
movaps xmmword [rbx], xmm0
add rbp, 0x38
mov rcx, qword [r12 + 0x18]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbp
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rdi
mov r8, r14
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14001312e
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x60]
mov qword [rcx + 0x10], rbp
movaps xmm6, xmmword [0x1400818c0]
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0x80]
call fcn.1400116e0
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140013037
mov rax, qword [r13]
mov rdx, qword [rax + 0x100]
cmp rdx, qword [rax + 0x108]
jne 0x140013037
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140013141
mov rdi, qword [r12 + 0x20]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400131a8
mov qword [rsp + 0x58], 0
mov rdx, qword [rsp + 0x60]
lea rsi, [rsp + 0x130]
mov qword [rsi + 0x10], rbp
movaps xmmword [rsi], xmm6
mov rcx, rsi
xor r8d, r8d
call fcn.14002b020
cmp byte [rsi], 0
je 0x140013173
lea rsi, [rsp + 0x100]
mov qword [rsi + 0x20], rbp
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rbx, [rsp + 0x138]
mov rcx, rbx
mov rdx, rsi
call fcn.14002b800
cmp byte [rsi], 0
je 0x140013161
lea r8, [r12 + 0x58]
lea rbp, [rsp + 0xa0]
movaps xmmword [rbp + 0x50], xmm6
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rbx, [rsp + 0x108]
mov rcx, rbp
mov rdx, rbx
call fcn.140029fac
lea r9, [rsp + 0x58]
mov rcx, rdi
xor edx, edx
mov r8, rbp
call fcn.1400056be
mov esi, eax
mov rcx, rbp
call fcn.14002a138
cmp byte [rbx - 8], 0
je 0x14001310c
mov rcx, rbx
call fcn.140012180
cmp byte [rsp + 0x130], 0
je 0x140013123
lea rcx, [rsp + 0x138]
call fcn.1400039a0
test esi, esi
jne 0x140013173
mov rdi, qword [rsp + 0x58]
jmp 0x140013173
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov edi, 0x12
jmp 0x140013287
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x14001327d
cmp byte [rsp + 0x130], 0
je 0x140013173
mov rcx, rbx
call fcn.1400039a0
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0xa0]
mov qword [rcx], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x140013234
lea rcx, [r12 + 0x20]
call fcn.1400039a0
lea rcx, [rsp + 0x58]
call fcn.1400039a0
mov rcx, qword [rsp + 0x1d0]
lea rdx, [rsp + 0x60]
call fcn.140011910
test al, al
je 0x1400131fa
mov rcx, qword [rsp + 0x60]
call fcn.14002eaf2
mov qword [r12 + 0x48], rax
test rax, rax
je 0x140013217
lea rax, [r12 + 0x48]
lea rcx, [0x140000000]
cmp qword [rax], rcx
je 0x14001325b
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x14001327d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x14001327d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14001327d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rcx, [rsp + 0x58]
call fcn.1400039a0
mov edi, 0x15
jmp 0x14001327d
lea rcx, [rsp + 0x60]
lea rsi, [rsp + 0xa0]
mov rdx, rsi
call fcn.140011a50
mov rcx, r12
mov rdx, rsi
call fcn.140011710
xor edi, edi
lea rcx, [rsp + 0x60]
call fcn.140011850
test r14, r14
je 0x140013294
mov rcx, r14
call fcn.140067210
mov rcx, r13
call fcn.140002b98
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14005cd90
mov eax, edi
movaps xmm6, xmmword [rsp + 0x150]
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret