Function at 0x140013948
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 [0x14006c100]
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 0x1400139db
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, str._s__s
mov edx, 0x104
lea rcx, [rbp + 0x10]
call fcn.140002388
jmp 0x1400139fb
test rbx, rbx
jne 0x1400139ea
mov ebx, 0x80070057
jmp 0x140013bc3
mov r8, rbx
lea rcx, [rbp + 0x10]
mov edx, 0x104
call fcn.14000219c
mov ebx, eax
test eax, eax
js 0x140013b78
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x60]
call fcn.140013bf4
mov ebx, eax
test eax, eax
js 0x140013b78
cmp byte [rsp + 0x60], r14b
je 0x140013b78
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 0x140013a61
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 0x140013b78
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 0x140013a42
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 0x140013a42
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 0x140013a42
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 0x140013b55
cmp eax, 0x102
je 0x140013b72
cmp eax, edi
je 0x140013b72
mov ebx, 0x8133300b
jmp 0x140013b72
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 0x140013a42
mov eax, dword [rsp + 0x68]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140013b93
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 0x140013bae
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 0x140013bc3
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop dword [rax + rax]
lea rcx, [rbp - 0x78]
call fcn.1400138e0
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14004b180
add rsp, 0x330
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret