Function at 0x18002bc10
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
lea rbp, [rax - 0x38]
sub rsp, 0x128
mov qword [rax - 0x18], r12
xor r12d, r12d
mov qword [rax - 0x20], r14
mov edi, r12d
mov qword [rax - 0x28], r15
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x78], r12
mov qword [rbp + 0x58], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x60], r12
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x78]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x18002be47
xorps xmm0, xmm0
mov qword [rsp + 0x148], rsi
xor eax, eax
lea esi, [r12 + 0x30]
mov qword [rbp], rax
mov qword [rbp - 0x70], rax
lea rax, str.winsta0default
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x60], 0x68
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x50], rax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x70]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18002be3f
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea r9d, [r12 + 1]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x18002be3f
mov rdx, qword [rbp + 0x58]
lea rcx, [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x18002bd1d
mov esi, 0x430
jmp 0x18002bd22
mov qword [rsp + 0x60], r12
xor edx, edx
mov dword [rbp + 0x50], r12d
lea rax, [rbp + 0x50]
xor ecx, ecx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x18002be3f
mov r9d, dword [rbp + 0x50]
mov qword [rsp + 0x140], rbx
mov ebx, r12d
test r9d, r9d
je 0x18002be24
mov rdx, qword [rsp + 0x68]
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
cmp dword [rdx + rcx*8 + 0x10], r12d
lea r8, [rdx + rcx*8]
jne 0x18002be17
mov rcx, qword [rbp + 0x58]
mov edx, reloc.WS2_32.dll_inet_ntoa
lea r9d, [rdx - 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x18002be24
mov rcx, qword [rbp + 0x58]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x60]
mov r8, r14
mov qword [rsp + 0x48], rax
mov rdx, r15
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x18002be24
mov rcx, qword [rbp - 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x80]
mov edi, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, dword [rbp + 0x50]
mov rdx, qword [rsp + 0x68]
inc ebx
cmp ebx, r9d
jb 0x18002bd70
jmp 0x18002be29
mov rdx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x140]
test rdx, rdx
je 0x18002be3f
mov rcx, rdx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rsi, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x110]
mov r14, qword [rsp + 0x118]
mov r12, qword [rsp + 0x120]
test rcx, rcx
je 0x18002be6f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x18002be7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18002be8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18002be9e
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, edi
add rsp, 0x128
pop rdi
pop rbp
ret