Function at 0x140001ba0
Capabilities:
Create process on windows
Resume thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov esi, r9d
mov r15, r8
mov rdi, rdx
mov r14, rcx
movzx r12d, byte [rbp + 0xb0]
shl r12d, 4
add r12d, 0x404
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
mov qword [rbp], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0x68
lea rax, str.WinSta0Default
mov qword [rbp - 0x50], rax
psrldq xmm1, 0xc
movd eax, xmm1
or eax, 1
mov dword [rbp - 0x24], eax
movzx eax, word [rbp + 0xa8]
mov word [rbp - 0x20], ax
xor ebx, ebx
mov qword [rbp - 0x80], rbx
mov qword [rbp + 0x10], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x10]
mov edx, 0x2000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001c8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x65b
test eax, eax
cmovne ecx, eax
test ecx, ecx
jle 0x140001c85
movzx ecx, cx
or ecx, 0x80070000
test ecx, ecx
js 0x140001e0d
mov r8d, 1
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140001e0d
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
movdqa xmm1, xmmword [0x140009a50]
movdqu xmmword [rbp + 0x28], xmm1
mov word [rbp + 0x18], bx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140004850
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x18]
call fcn.140006790
mov edi, eax
shr edi, 0x1f
xor dil, 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140001d29
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400077ac
test dil, dil
je 0x140001dbf
lea r8, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae r8, qword [rbp + 0x18]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
test eax, eax
je 0x140001dbf
mov edx, dword [rbp + 0xa0]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor r8d, r8d
mov edx, esi
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x140001e0d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400077ac
test ebx, ebx
setne bl
mov rcx, qword [rbp + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140001e22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140007430
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret