Function at 0x14006ea7c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x110
xor eax, eax
xor esi, esi
and qword [rsp + 0x68], rsi
mov rbx, r8
and qword [rsp + 0x70], rsi
mov r12, rdx
mov r13, rcx
mov qword [rbp - 0x80], rax
lea r8d, [rsi + 0x68]
mov qword [rbp - 0x78], rax
xor edx, edx
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x60]
mov edi, r9d
xor r15d, r15d
call fcn.14015d410
cmp edi, 5
je 0x14006eb00
test edi, edi
je 0x14006ebf8
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x60], eax
cmp eax, 0xffffffff
jne 0x14006eb00
xor eax, eax
jmp 0x14006ee74
test edi, edi
je 0x14006ebf8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r14d, 2
lea r8, [rsp + 0x68]
mov edx, r14d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14006eb4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x283
mov r9d, r14d
mov dword [rsp + 0x20], eax
lea rdx, str...microstackILibProcessPipe.c
xor ecx, ecx
call fcn.14006ddcc
jmp 0x14006eaf9
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x14006eb91
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x284
jmp 0x14006eb35
mov eax, dword [rsp + 0x60]
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov r9d, 4
cmp edi, 5
cmove eax, dword [rbp + 0x70]
lea edx, [r9 + 8]
mov dword [rsp + 0x60], eax
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x14006ebe5
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x286
jmp 0x14006eb35
cmp edi, r14d
lea rax, str.Winsta0Winlogon
cmovne rax, qword [rbp - 0x50]
mov qword [rbp - 0x50], rax
test rbx, rbx
je 0x14006ecd6
mov rax, qword [rbx]
test rax, rax
je 0x14006ecd6
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14006ec1e
mov rsi, rax
jmp 0x14006ecd6
xor r14d, r14d
mov rax, rbx
mov rcx, qword [rax]
test rcx, rcx
jne 0x14006ec30
xor eax, eax
jmp 0x14006ec3a
mov edx, 0x104
call fcn.140163e74
inc eax
inc rsi
add r15d, eax
inc r14d
lea rax, [rbx + rsi*8]
cmp qword [rax], 0
jne 0x14006ec24
lea eax, [r14 - 1]
add eax, r15d
movsxd rcx, eax
mov dword [rsp + 0x7c], eax
call fcn.140164508
and dword [rsp + 0x78], 0
xor r14d, r14d
mov r8, qword [rbx]
mov rsi, rax
lea r15d, [r14 + 1]
test r8, r8
je 0x14006ecd6
mov r13d, dword [rsp + 0x78]
xor r12d, r12d
mov edi, dword [rsp + 0x7c]
lea rax, [0x1401d5458]
mov qword [rsp + 0x20], r8
test r13d, r13d
movsxd rcx, r14d
lea r9, [0x1401da844]
cmove r9, rax
lea r8, str._s_s
mov eax, edi
add rcx, rsi
sub eax, r14d
movsxd rdx, eax
call fcn.1400010e4
inc r12
add r14d, eax
inc r13d
mov r8, qword [rbx + r12*8]
test r8, r8
jne 0x14006ec85
mov edi, dword [rbp + 0x68]
mov r13, qword [rbp + 0x50]
mov r12, qword [rbp + 0x58]
mov ecx, 0x78
call fcn.140164508
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x60]
call fcn.140068570
mov r14d, dword [rbp + 0x78]
mov rbx, rax
cmp edi, 4
je 0x14006ed11
mov r9d, r14d
mov rcx, r13
call fcn.14006e5fc
mov qword [rbx + 0x38], rax
mov qword [rax + 0x28], rbx
mov qword [rbx + 0x10], r13
mov rcx, qword [r13 + 0x18]
mov qword [rbx + 0x58], rcx
mov dword [rbp - 0x60], 0x68
cmp edi, 4
je 0x14006ed9f
mov r9d, r14d
mov rcx, r13
call fcn.14006e5fc
mov qword [rbx + 0x28], rax
mov r9d, r14d
mov rcx, r13
mov qword [rax + 0x28], rbx
call fcn.14006e5fc
mov qword [rbx + 0x30], rax
mov qword [rax + 0x28], rbx
mov rcx, qword [rbx + 0x28]
add rcx, 0x68
call fcn.14006e598
mov rcx, qword [rbx + 0x30]
add rcx, 0x60
call fcn.14006e598
mov rcx, qword [rbx + 0x38]
add rcx, 0x60
call fcn.14006e598
mov rax, qword [rbx + 0x38]
mov rcx, qword [rax + 0x68]
mov qword [rbp], rcx
mov rax, qword [rbx + 0x28]
mov rcx, qword [rax + 0x60]
mov qword [rbp - 0x10], rcx
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x68]
bts dword [rbp - 0x24], 8
mov qword [rbp - 8], rcx
xor r14d, r14d
lea rax, [rbp - 0x80]
xor r9d, r9d
test edi, edi
jne 0x14006ee8f
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x60]
mov rdx, rsi
mov qword [rsp + 0x40], rax
mov rcx, r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14006eeda
test r15d, r15d
je 0x14006edfd
mov rcx, rsi
call fcn.1401630c0
cmp edi, 4
je 0x14006ee44
mov rcx, qword [rbx + 0x30]
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x30]
mov qword [rax + 0x68], r14
mov rcx, qword [rbx + 0x38]
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x38]
mov qword [rax + 0x68], r14
mov rcx, qword [rbx + 0x28]
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x28]
mov qword [rax + 0x60], r14
mov rax, qword [rbp - 0x80]
mov qword [rbx + 0x48], rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14006ee5b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x70]
mov dword [rbx + 0x18], eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006ee71
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x70]
mov r8, rsi
mov qword [rsp + 0x50], rax
mov rdx, r12
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x14006edf0
cmp edi, 4
je 0x14006eef5
mov rcx, qword [rbx + 0x38]
call fcn.14006e4b4
mov rcx, qword [rbx + 0x30]
call fcn.14006e4b4
mov rcx, qword [rbx + 0x28]
call fcn.14006e4b4
test r15d, r15d
je 0x14006ef02
mov rcx, rsi
call fcn.1401630c0
mov rcx, rbx
call fcn.140068658
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006ef1a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14006eaf9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006eaf9