Function at 0x140011cb0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140084060]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov ebx, r9d
mov edi, r8d
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rbp - 0x80]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
xor r14d, r14d
test eax, eax
jne 0x140011e81
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp + 0x6a]
nop dword [rax]
add r9, 0xfffffffffffffffe
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140011d10
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
lea rax, [rbp + 0x6a]
cmp r9, rax
je 0x140011d7a
lea r8, [rbp + 0x6a]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.1400023b0
nop
lea r8, [rsp + 0x60]
lea rdx, str.Error_WTSQueryUserToken_:
lea rcx, [rbp + 0x20]
call fcn.140006570
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140011dd2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011dcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400121a3
call fcn.14003ba0c
test ebx, ebx
je 0x140011e38
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140011e21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011e1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001219d
call fcn.14003ba0c
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rbp - 0x80]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
jmp 0x140011cf6
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140012173
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140011e77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001219d
call fcn.14003ba0c
jmp 0x140012173
mov qword [rbp - 0x78], r14
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x78]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x140011f83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp + 0x6a]
nop dword [rax + rax]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x140011eb0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
lea rax, [rbp + 0x6a]
cmp r10, rax
je 0x140011f1c
lea r8, [rbp + 0x6a]
sub r8, r10
sar r8, 1
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.1400023b0
nop
lea r8, [rsp + 0x60]
lea rdx, str.Error_CreateEnvironmentBlock_:
lea rcx, [rbp + 0x20]
call fcn.140006570
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140011f74
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011f6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400121a9
call fcn.14003ba0c
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011e38
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
mov qword [rbp + 0x10], rax
mov dword [rbp - 0x50], 0x68
lea rax, str.WinSta0Default
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rsi
lea rdx, [0x140087940]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140012138
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp + 0x6a]
nop
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x140012020
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
lea rax, [rbp + 0x6a]
cmp r10, rax
je 0x14001208c
lea r8, [rbp + 0x6a]
sub r8, r10
sar r8, 1
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.1400023b0
nop
lea r8, [rsp + 0x60]
lea rdx, str.Error_CreateProcessAsUser_:
lea rcx, [rbp + 0x20]
call fcn.140006570
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400120e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400120df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012197
call fcn.14003ba0c
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140012173
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011e77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001219d
jmp 0x140011e77
test edi, edi
je 0x14001214b
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14003b9b0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140042fc0
int3
call fcn.140042fc0
int3
call fcn.140042fc0
int3
call fcn.140042fc0
int3