Function at 0x140013c98
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 [0x14006c0f0]
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 0x140013d2b
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, str._s__s
mov edx, 0x104
lea rcx, [rbp + 0x10]
call fcn.140002388
jmp 0x140013d4b
test rbx, rbx
jne 0x140013d3a
mov ebx, 0x80070057
jmp 0x140013f13
mov r8, rbx
lea rcx, [rbp + 0x10]
mov edx, 0x104
call fcn.14000219c
mov ebx, eax
test eax, eax
js 0x140013ec8
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x60]
call fcn.140013f44
mov ebx, eax
test eax, eax
js 0x140013ec8
cmp byte [rsp + 0x60], r14b
je 0x140013ec8
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 0x140013db1
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 0x140013ec8
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 0x140013d92
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 0x140013d92
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 0x140013d92
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 0x140013ea5
cmp eax, 0x102
je 0x140013ec2
cmp eax, edi
je 0x140013ec2
mov ebx, 0x8133300b
jmp 0x140013ec2
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 0x140013d92
mov eax, dword [rsp + 0x68]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140013ee3
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 0x140013efe
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 0x140013f13
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop dword [rax + rax]
lea rcx, [rbp - 0x78]
call fcn.140013c30
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14004b4d0
add rsp, 0x330
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret