Function at 0x140011360
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x14005e0f0]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor r14d, r14d
mov rsi, r8
mov rbx, rdx
mov byte [rsp + 0x60], r14b
mov rdi, rcx
mov dword [rsp + 0x64], r14d
xor edx, edx
mov qword [rsp + 0x78], r14
lea r8d, [r14 + 0x68]
mov qword [rsp + 0x70], r14
lea rcx, [rbp - 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor eax, eax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
mov dword [rsp + 0x68], r14d
mov dword [rsi], r14d
movups xmmword [rbp - 0x78], xmm0
test rdi, rdi
je 0x1400113f3
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, str._s__s
mov edx, 0x104
lea rcx, [rbp + 0x10]
call fcn.140002278
jmp 0x140011413
test rbx, rbx
jne 0x140011402
mov ebx, 0x80070057
jmp 0x1400115db
mov r8, rbx
lea rcx, [rbp + 0x10]
mov edx, 0x104
call fcn.14000208c
mov ebx, eax
test eax, eax
js 0x140011590
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x60]
call fcn.140011618
mov ebx, eax
test eax, eax
js 0x140011590
cmp byte [rsp + 0x60], r14b
je 0x140011590
mov ecx, dword [rsp + 0x64]
lea rdx, [rsp + 0x78]
call qword [sym.imp.ext_ms_win_session_usertoken_l1_1_0.dll_QueryUserToken]
nop dword [rax + rax]
test eax, eax
jne 0x140011479
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140011590
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov r9d, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], 1
lea edx, [r9 + 9]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
nop dword [rax + rax]
test eax, eax
je 0x14001145a
mov rdx, qword [rsp + 0x70]
lea rax, str.WinSta0Default
xor r8d, r8d
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x60], 0x68
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
nop dword [rax + rax]
test eax, eax
je 0x14001145a
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x10]
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
nop dword [rax + rax]
test eax, eax
je 0x14001145a
mov ecx, dword [rbp - 0x68]
call qword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_AllowSetForegroundWindow]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x78]
or edi, 0xffffffff
mov edx, edi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x14001156d
cmp eax, 0x102
je 0x14001158a
cmp eax, edi
je 0x14001158a
mov ebx, 0x8000ffff
jmp 0x14001158a
mov rcx, qword [rbp - 0x78]
lea rdx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
nop dword [rax + rax]
test eax, eax
je 0x14001145a
mov eax, dword [rsp + 0x68]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400115ab
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x78], r14
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400115c6
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x70], r14
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400115db
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400115f0
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140041d90
add rsp, 0x330
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret