Function at 0x18004b1a4
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r13, r9
mov r12, r8
mov r15, rdx
mov r14, rcx
mov rsi, qword [rsp + 0x1c0]
mov rbx, qword [rsp + 0x1d0]
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0xa8], rax
xor ecx, ecx
mov qword [rsp + 0x78], rcx
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rcx
mov qword [r11 - 0x100], rcx
xor edx, edx
lea r8d, [rcx + 0x68]
lea rcx, [r11 - 0xd8]
call sub.msvcrt.dll_memset
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x78]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
mov dword [rsp + 0x64], eax
test eax, eax
je 0x18004b4d5
lea r8, [rsp + 0xa0]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, eax
mov dword [rsp + 0x64], eax
test eax, eax
je 0x18004b4d5
xor eax, eax
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], rax
mov eax, 1
mov dword [rsp + 0x120], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x124], rax
mov dword [rsp + 0x12c], 2
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, ILClone
lea r8, [rsp + 0x120]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, eax
mov dword [rsp + 0x64], eax
test eax, eax
je 0x18004b4d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
call fcn.180048fa4
lea ecx, [rax + 1]
test ecx, 0xfffffffe
jne 0x18004b314
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
jne 0x18004b329
mov esi, 0x80004005
mov ebx, esi
mov dword [rsp + 0x60], ebx
jmp 0x18004b4e6
lea rdx, [rsp + 0x70]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov edi, eax
mov dword [rsp + 0x64], eax
test eax, eax
je 0x18004b4d5
xor edi, edi
cmp dword [rsp + 0x1e0], edi
je 0x18004b3c1
mov dword [rsp + 0x80], edi
mov dword [rsp + 0x90], edi
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.1800669b4
test eax, eax
je 0x18004b384
cmp dword [rsp + 0x80], edi
jne 0x18004b3c1
mov dword [rsp + 0x94], edi
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x68]
lea edx, [r9 + 0xb]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rcx
cmp qword [rsp + 0x68], rdi
jne 0x18004b400
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, 1
mov dword [rsp + 0x20], r9d
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, eax
mov dword [rsp + 0x64], eax
test eax, eax
je 0x18004b4d5
xor edi, edi
lea rax, str.winsta0default
test rbx, rbx
jne 0x18004b433
mov dword [rsp + 0xb0], WSAGetLastError
mov qword [rsp + 0xc0], rax
lea eax, [rbx + 1]
mov word [rsp + 0xf0], ax
mov dword [rsp + 0xec], eax
jmp 0x18004b437
mov qword [rbx + 0x10], rax
test rsi, rsi
jne 0x18004b456
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x88]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov dword [rsp + 0x64], eax
lea r10, [rsp + 0xb0]
test rbx, rbx
cmovne r10, rbx
mov rcx, qword [rsp + 0x88]
test rsi, rsi
cmovne rcx, rsi
mov eax, dword [rsp + 0x1b8]
bts eax, 0xa
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x1b0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov r9, r12
mov r8, r15
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
mov dword [rsp + 0x64], eax
test eax, eax
je 0x18004b4d5
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x18004b4e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov ebx, eax
mov esi, 0x80004005
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x18004b4fb
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edi, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18004b50b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18004b51b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18004b554
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, ILClone
lea r8, [rsp + 0x130]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x18004b55d
test ebx, ebx
cmove ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800782d0
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret