Function at 0x14006f198
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.14015dbb0
cmp edi, 5
je 0x14006f21c
test edi, edi
je 0x14006f314
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x60], eax
cmp eax, 0xffffffff
jne 0x14006f21c
xor eax, eax
jmp 0x14006f5a5
test edi, edi
je 0x14006f314
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 0x14006f268
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x263
mov r9d, r14d
mov dword [rsp + 0x20], eax
lea rdx, str...microstackILibProcessPipe.c
xor ecx, ecx
call fcn.14006e59c
jmp 0x14006f215
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 0x14006f2ad
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x264
jmp 0x14006f251
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 0x14006f301
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, 0x266
jmp 0x14006f251
cmp edi, r14d
lea rax, str.Winsta0Winlogon
cmovne rax, qword [rbp - 0x50]
mov qword [rbp - 0x50], rax
test rbx, rbx
je 0x14006f3f2
mov rax, qword [rbx]
test rax, rax
je 0x14006f3f2
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14006f33a
mov rsi, rax
jmp 0x14006f3f2
xor r14d, r14d
mov rax, rbx
mov rcx, qword [rax]
test rcx, rcx
jne 0x14006f34c
xor eax, eax
jmp 0x14006f356
mov edx, 0x104
call fcn.1401646ec
inc eax
inc rsi
add r15d, eax
inc r14d
lea rax, [rbx + rsi*8]
cmp qword [rax], 0
jne 0x14006f340
lea eax, [r14 - 1]
add eax, r15d
movsxd rcx, eax
mov dword [rsp + 0x7c], eax
call fcn.140164d80
and dword [rsp + 0x78], 0
xor r14d, r14d
mov r8, qword [rbx]
mov rsi, rax
lea r15d, [r14 + 1]
test r8, r8
je 0x14006f3f2
mov r13d, dword [rsp + 0x78]
xor r12d, r12d
mov edi, dword [rsp + 0x7c]
lea rax, [0x1401d5438]
mov qword [rsp + 0x20], r8
test r13d, r13d
movsxd rcx, r14d
lea r9, [0x1401da854]
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 0x14006f3a1
mov edi, dword [rbp + 0x68]
mov r13, qword [rbp + 0x50]
mov r12, qword [rbp + 0x58]
mov ecx, 0x78
call fcn.140164d80
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x60]
call fcn.140068a9c
mov r14d, dword [rbp + 0x78]
mov rbx, rax
cmp edi, 4
je 0x14006f42d
mov r9d, r14d
mov rcx, r13
call fcn.14006edcc
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 0x14006f4bb
mov r9d, r14d
mov rcx, r13
call fcn.14006edcc
mov qword [rbx + 0x28], rax
mov r9d, r14d
mov rcx, r13
mov qword [rax + 0x28], rbx
call fcn.14006edcc
mov qword [rbx + 0x30], rax
mov qword [rax + 0x28], rbx
mov rcx, qword [rbx + 0x28]
add rcx, 0x68
call fcn.14006ed68
mov rcx, qword [rbx + 0x30]
add rcx, 0x60
call fcn.14006ed68
mov rcx, qword [rbx + 0x38]
add rcx, 0x60
call fcn.14006ed68
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 0x14006f5c0
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 0x14006f60b
test r15d, r15d
je 0x14006f519
mov rcx, rsi
call fcn.140163938
cmp edi, 4
je 0x14006f560
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 0x14006f577
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 0x14006f592
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r14
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14006f5a2
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 0x14006f50c
cmp edi, 4
je 0x14006f626
mov rcx, qword [rbx + 0x38]
call fcn.14006ec84
mov rcx, qword [rbx + 0x30]
call fcn.14006ec84
mov rcx, qword [rbx + 0x28]
call fcn.14006ec84
test r15d, r15d
je 0x14006f633
mov rcx, rsi
call fcn.140163938
mov rcx, rbx
call fcn.140068b84
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006f64b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14006f215
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006f215