Function at 0x140079dcc
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.140169620
cmp edi, 5
je 0x140079e50
test edi, edi
je 0x140079f48
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x60], eax
cmp eax, 0xffffffff
jne 0x140079e50
xor eax, eax
jmp 0x14007a1d9
test edi, edi
je 0x140079f48
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 0x140079e9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x2d6
mov r9d, r14d
mov dword [rsp + 0x20], eax
lea rdx, str...microstackILibProcessPipe.c
xor ecx, ecx
call fcn.140078e6c
jmp 0x140079e49
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 0x140079ee1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x2d7
jmp 0x140079e85
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 0x140079f35
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, 0x2d9
jmp 0x140079e85
cmp edi, r14d
lea rax, str.Winsta0Winlogon
cmovne rax, qword [rbp - 0x50]
mov qword [rbp - 0x50], rax
test rbx, rbx
je 0x14007a026
mov rax, qword [rbx]
test rax, rax
je 0x14007a026
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x140079f6e
mov rsi, rax
jmp 0x14007a026
xor r14d, r14d
mov rax, rbx
mov rcx, qword [rax]
test rcx, rcx
jne 0x140079f80
xor eax, eax
jmp 0x140079f8a
mov edx, 0x104
call fcn.14017015c
inc eax
inc rsi
add r15d, eax
inc r14d
lea rax, [rbx + rsi*8]
cmp qword [rax], 0
jne 0x140079f74
lea eax, [r14 - 1]
add eax, r15d
movsxd rcx, eax
mov dword [rsp + 0x7c], eax
call fcn.1401707f0
and dword [rsp + 0x78], 0
xor r14d, r14d
mov r8, qword [rbx]
mov rsi, rax
lea r15d, [r14 + 1]
test r8, r8
je 0x14007a026
mov r13d, dword [rsp + 0x78]
xor r12d, r12d
mov edi, dword [rsp + 0x7c]
lea rax, [0x1401e1608]
mov qword [rsp + 0x20], r8
test r13d, r13d
movsxd rcx, r14d
lea r9, [0x1401e7db4]
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 0x140079fd5
mov edi, dword [rbp + 0x68]
mov r13, qword [rbp + 0x50]
mov r12, qword [rbp + 0x58]
mov ecx, 0x78
call fcn.1401707f0
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x60]
call fcn.140073060
mov r14d, dword [rbp + 0x78]
mov rbx, rax
cmp edi, 4
je 0x14007a061
mov r9d, r14d
mov rcx, r13
call fcn.14007998c
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 0x14007a0ef
mov r9d, r14d
mov rcx, r13
call fcn.14007998c
mov qword [rbx + 0x28], rax
mov r9d, r14d
mov rcx, r13
mov qword [rax + 0x28], rbx
call fcn.14007998c
mov qword [rbx + 0x30], rax
mov qword [rax + 0x28], rbx
mov rcx, qword [rbx + 0x28]
add rcx, 0x68
call fcn.140079928
mov rcx, qword [rbx + 0x30]
add rcx, 0x60
call fcn.140079928
mov rcx, qword [rbx + 0x38]
add rcx, 0x60
call fcn.140079928
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 0x14007a1f4
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 0x14007a23f
test r15d, r15d
je 0x14007a14d
mov rcx, rsi
call fcn.14016f3a8
cmp edi, 4
je 0x14007a194
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 0x14007a1ab
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 0x14007a1c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r14
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14007a1d6
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 0x14007a140
cmp edi, 4
je 0x14007a25a
mov rcx, qword [rbx + 0x38]
call fcn.140079838
mov rcx, qword [rbx + 0x30]
call fcn.140079838
mov rcx, qword [rbx + 0x28]
call fcn.140079838
test r15d, r15d
je 0x14007a267
mov rcx, rsi
call fcn.14016f3a8
mov rcx, rbx
call fcn.140073148
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007a27f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140079e49
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140079e49