Function at 0x14002f530
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r14, r8
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
mov qword [rsp + 0x78], r15
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
xor edx, edx
lea r8d, [r15 + 0x60]
lea rcx, [rbp - 0x48]
call fcn.14005b890
mov dword [rbp - 0x50], 0x68
mov dword [rbp - 0x14], 0x100
movdqa xmm0, xmmword [0x14008a480]
movdqa xmmword [rbp], xmm0
or rsi, 0xffffffffffffffff
mov qword [rbp + 0x10], rsi
call fcn.1400018d0
mov rcx, rax
test rax, rax
jne 0x14002f5be
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov r9, rbx
mov r8, rdi
lea rdx, str._s__s
lea rcx, [rsp + 0x60]
call fcn.140010870
mov edi, r15d
lea rax, str.winsta0default
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x70], r15
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
mov dword [rbp + 0x68], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [rbp + 0x68], ebx
je 0x14002f6a4
lea rdx, [rsp + 0x70]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x14002f7a7
cmp dword [rbx - 8], 1
jle 0x14002f650
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.14000ca10
mov rbx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x8000020
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rbx
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002f701
mov rbx, qword [rsp + 0x60]
cmp dword [rbx - 8], 1
jle 0x14002f6c1
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.14000ca10
mov rbx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
je 0x14002f7a9
cmp qword [r14 + 8], 0
je 0x14002f7a7
or edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x68], r15d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14002f7a4
mov rax, qword [r14]
mov qword [rbp - 0x68], rax
mov rcx, qword [rax + 8]
mov rdx, rax
mov r8d, dword [rsp + 0x68]
cmp byte [rcx + 0x19], 0
jne 0x14002f788
nop dword [rax + rax]
cmp dword [rcx + 0x1c], r8d
jge 0x14002f77c
mov rcx, qword [rcx + 0x10]
jmp 0x14002f782
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x14002f770
mov qword [rbp - 0x60], rax
cmp rdx, rax
je 0x14002f797
cmp r8d, dword [rdx + 0x1c]
jge 0x14002f79a
mov rdx, rax
cmp rdx, rax
mov edi, 1
jne 0x14002f7a7
mov edi, r15d
test edi, edi
setne dil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14002f7c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov r8, qword [r14]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x58]
mov rcx, r14
call fcn.14000f2d0
mov rcx, qword [r14]
call fcn.14003aa0c
movzx eax, dil
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret