Function at 0x416810
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r12d, r12d
mov esi, r9d
mov ebx, r12d
mov r14, r8
mov r15, rdx
call fcn.00416760
mov dword [r14], r12d
mov edi, eax
cmp eax, 1
jae 0x416864
mov eax, 0x520
jmp 0x416a7a
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
lea rdx, [rbp - 0x68]
mov dword [rbp - 0x68], r12d
mov ecx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ProcessIdToSessionId]
test eax, eax
jne 0x416889
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x416a7a
mov rcx, r12
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x68], rcx
cmp dword [rbp - 0x68], ecx
jne 0x416984
lfence
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r12
mov ecx, edi
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x416967
test esi, esi
je 0x416907
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x64]
mov r9d, 8
mov qword [rsp + 0x70], r12
lea r8, [rsp + 0x70]
mov dword [rbp - 0x64], r12d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x416907
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x60], rcx
jmp 0x41690c
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x416950
xor eax, eax
lea r8, [rbp - 0x60]
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x68]
mov r9d, 1
mov qword [rsp + 0x28], rax
mov edx, 0x2000000
movups xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x20], 1
mov dword [rbp - 0x60], 0x18
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
test eax, eax
je 0x416967
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x41696f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x41697f
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
mov esi, dword [rbp + 0x98]
xor eax, eax
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
mov edi, r12d
movups xmmword [rbp - 0x80], xmm0
test ebx, ebx
jne 0x416a2d
mov qword [rbp + 0x20], rax
test esi, esi
movzx eax, word [rbp + 0x90]
mov edx, 0x630
movups xmmword [rbp], xmm0
mov word [rbp], ax
mov r8, r15
mov eax, 0x430
cmove edx, eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
xor edx, edx
movups xmmword [rbp - 0x40], xmm0
mov dword [rsp + 0x28], 1
movups xmmword [rbp - 0x10], xmm0
mov qword [rsp + 0x20], r12
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x40], 0x68
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 4], 1
movups xmmword [rbp + 0x10], xmm0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
mov rcx, qword [rsp + 0x68]
mov edi, eax
test rcx, rcx
je 0x416a3d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsp + 0x68], r12
test edi, edi
jne 0x416a4b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x416a78
mov eax, dword [rbp - 0x70]
mov dword [r14], eax
test esi, esi
jne 0x416a64
mov rcx, qword [rbp - 0x80]
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.00479310
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret