Function at 0x14007ef74
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
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
mov r13, rcx
mov eax, r9d
mov ecx, 0x8000
mov edi, r9d
xor edi, ecx
mov rbx, r8
and eax, ecx
mov r15, rdx
lea rcx, [rbp - 0x60]
cmove edi, r9d
xor eax, eax
xor esi, esi
mov dword [rsp + 0x78], edi
and qword [rsp + 0x60], rsi
xor edx, edx
and qword [rsp + 0x68], rsi
xor r12d, r12d
mov qword [rbp - 0x80], rax
lea r8d, [rsi + 0x68]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
call fcn.14016ef40
cmp edi, 5
je 0x14007f007
test edi, edi
je 0x14007f0fc
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0x68], eax
cmp eax, 0xffffffff
jne 0x14007f007
xor eax, eax
jmp 0x14007f397
test edi, edi
je 0x14007f0fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r14d, 2
lea r8, [rsp + 0x60]
mov edx, r14d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14007f053
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x31c
mov r9d, r14d
mov dword [rsp + 0x20], eax
lea rdx, str...microstackILibProcessPipe.c
xor ecx, ecx
call fcn.14007ddcc
jmp 0x14007f000
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
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 0x14007f098
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x31d
jmp 0x14007f03c
mov eax, dword [rbp + 0x68]
lea r8, [rbp + 0x68]
mov rcx, qword [rsp + 0x68]
mov r9d, 4
cmp edi, 5
cmove eax, dword [rbp + 0x70]
lea edx, [r9 + 8]
mov dword [rbp + 0x68], eax
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x14007f0e9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x31f
jmp 0x14007f03c
cmp edi, r14d
lea rax, str.Winsta0Winlogon
cmovne rax, qword [rbp - 0x50]
mov qword [rbp - 0x50], rax
test rbx, rbx
je 0x14007f1dd
mov rax, qword [rbx]
test rax, rax
je 0x14007f1dd
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14007f122
mov rsi, rax
jmp 0x14007f1dd
xor r14d, r14d
mov rax, rbx
xor r15d, r15d
mov rcx, qword [rax]
test rcx, rcx
jne 0x14007f137
xor eax, eax
jmp 0x14007f141
mov edx, 0x104
call fcn.140175a7c
inc eax
inc rsi
add r15d, eax
inc r14d
lea rax, [rbx + rsi*8]
cmp qword [rax], r12
jne 0x14007f12b
lea eax, [r14 - 1]
add eax, r15d
movsxd rcx, eax
mov dword [rsp + 0x74], eax
call fcn.140176110
and dword [rsp + 0x70], r12d
xor r14d, r14d
mov r8, qword [rbx]
mov rsi, rax
lea r12d, [r14 + 1]
test r8, r8
je 0x14007f1d9
mov r13d, dword [rsp + 0x70]
xor r15d, r15d
mov edi, dword [rsp + 0x74]
lea rax, [0x1401e7638]
mov qword [rsp + 0x20], r8
test r13d, r13d
movsxd rcx, r14d
lea r9, [0x1401ee19c]
cmove r9, rax
lea r8, [0x1401e9440]
mov eax, edi
add rcx, rsi
sub eax, r14d
movsxd rdx, eax
call fcn.1400010e4
inc r15
add r14d, eax
inc r13d
mov r8, qword [rbx + r15*8]
test r8, r8
jne 0x14007f18b
mov edi, dword [rsp + 0x78]
mov r13, qword [rbp + 0x50]
mov r15, qword [rbp + 0x58]
mov ecx, 0x78
call fcn.140176110
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x60]
call fcn.140077f24
mov r14d, dword [rbp + 0x80]
mov rbx, rax
cmp edi, 4
je 0x14007f21b
mov r9d, r14d
mov rcx, r13
call fcn.14007eb34
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 0x14007f2a9
mov r9d, r14d
mov rcx, r13
call fcn.14007eb34
mov qword [rbx + 0x28], rax
mov r9d, r14d
mov rcx, r13
mov qword [rax + 0x28], rbx
call fcn.14007eb34
mov qword [rbx + 0x30], rax
mov qword [rax + 0x28], rbx
mov rcx, qword [rbx + 0x28]
add rcx, 0x70
call fcn.14007e9d8
mov rcx, qword [rbx + 0x30]
add rcx, 0x68
call fcn.14007e9d8
mov rcx, qword [rbx + 0x38]
add rcx, 0x68
call fcn.14007e9d8
mov rax, qword [rbx + 0x38]
mov rcx, qword [rax + 0x70]
mov qword [rbp], rcx
mov rax, qword [rbx + 0x28]
mov rcx, qword [rax + 0x68]
mov qword [rbp - 0x10], rcx
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x70]
bts dword [rbp - 0x24], 8
mov qword [rbp - 8], rcx
xor r14d, r14d
lea rax, [rbp - 0x80]
xor r9d, r9d
test edi, edi
jne 0x14007f3b2
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x60]
mov rdx, rsi
mov qword [rsp + 0x40], rax
mov rcx, r15
mov rax, qword [rbp + 0x78]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14007f401
test r12d, r12d
je 0x14007f30b
mov rcx, rsi
call fcn.140174cc8
cmp edi, 4
je 0x14007f352
mov rcx, qword [rbx + 0x30]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x30]
mov qword [rax + 0x70], r14
mov rcx, qword [rbx + 0x38]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x38]
mov qword [rax + 0x70], r14
mov rcx, qword [rbx + 0x28]
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x28]
mov qword [rax + 0x68], r14
mov rax, qword [rbp - 0x80]
mov qword [rbx + 0x48], rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14007f369
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x70]
mov dword [rbx + 0x18], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14007f384
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r14
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007f394
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 + 0x68]
mov r8, rsi
mov qword [rsp + 0x50], rax
mov rdx, r15
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x78]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
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 0x14007f2fe
cmp edi, 4
je 0x14007f41c
mov rcx, qword [rbx + 0x38]
call fcn.14007e8c8
mov rcx, qword [rbx + 0x30]
call fcn.14007e8c8
mov rcx, qword [rbx + 0x28]
call fcn.14007e8c8
test r12d, r12d
je 0x14007f429
mov rcx, rsi
call fcn.140174cc8
mov rcx, rbx
call fcn.14007800c
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14007f441
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007f000
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007f000