Function at 0x1401f3378
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov qword [rbp - 0x70], r9
mov r14, r8
mov rbx, rdx
mov r13, rcx
mov qword [rbp - 0x60], rcx
mov r12, qword [rbp + 0x250]
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x40], rax
mov rsi, qword [rbp + 0x278]
xor r15d, r15d
mov dword [rsp + 0x78], r15d
call fcn.14004d8a4
mov r10, qword [rax + 8]
lea rdi, [0x140344690]
or r9, 0xffffffffffffffff
lea r11d, [r15 + 1]
lea r8d, [r15 + 4]
cmp dword [r10], r8d
jbe 0x1401f355a
lea rax, str.SafeCreateProcess_about_to_create_process
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], 0x54
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401f342a
mov rcx, qword [rbx]
mov rdx, rdi
mov rax, r15
test rcx, rcx
je 0x1401f3445
mov rdx, rcx
mov rax, r9
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1401f343b
mov qword [rbp + 0x170], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x178], eax
mov dword [rbp + 0x17c], r15d
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x1401f346d
mov rcx, qword [r14]
mov rdx, rdi
mov rax, r15
test rcx, rcx
je 0x1401f3488
mov rdx, rcx
mov rax, r9
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1401f347e
mov qword [rbp + 0x180], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x188], eax
mov dword [rbp + 0x18c], r15d
movzx eax, byte [rbp + 0x258]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x190], rax
mov qword [rbp + 0x198], r8
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], r8
lea rax, [rbp + 0x268]
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], r11
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401f34fb
mov rcx, qword [rsi]
mov rdx, rdi
mov rax, r15
test rcx, rcx
je 0x1401f3516
mov rdx, rcx
mov rax, r9
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1401f350c
mov qword [rbp + 0x1c0], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1c8], eax
mov dword [rbp + 0x1cc], r15d
lea rax, [rbp + 0x140]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 9
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dfc4a]
mov rcx, r10
call fcn.140001158
xor eax, eax
mov r15d, 0x8080020
mov dword [rsp + 0x60], eax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], ax
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x90], xmm0
mov word [rbp + 0x80], ax
movdqu xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xa0], ax
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.140064f70
xor ebx, ebx
cmp qword [rbp + 0x30], rbx
jne 0x1401f35f7
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x150], xmm0
mov word [rbp + 0x140], bx
movdqu xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], bx
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0x20]
mov rcx, r14
call fcn.140204070
nop
lea rcx, [rbp + 0x60]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x140]
call fcn.14004e0f0
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xa0]
call fcn.140064f70
lea rcx, [rbp + 0xa0]
call fcn.140204990
lea rdx, [rbp + 0xa0]
cmp qword [rsi + 0x10], rbx
cmovne rdx, rsi
lea rcx, [rbp + 0x80]
call fcn.140064f70
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401f370f
lea rax, str.SafeCreateProcess_concluded_paths
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], VarR8FromUI1
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rax, qword [rbp + 0x20]
mov rdx, rdi
mov rcx, rbx
test rax, rax
je 0x1401f3683
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], bx
jne 0x1401f367a
mov qword [rbp + 0x170], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x178], eax
mov dword [rbp + 0x17c], ebx
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rcx, qword [rbp + 0x80]
mov rax, rbx
test rcx, rcx
je 0x1401f36cc
mov rdi, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1401f36c3
mov qword [rbp + 0x180], rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0x188], eax
mov dword [rbp + 0x18c], ebx
lea rax, [rbp + 0x140]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dfbdb]
mov rcx, r10
call fcn.140001158
mov qword [rbp - 0x80], rbx
mov rdi, qword [r12]
xor eax, eax
cmp byte [rbp + 0x258], al
je 0x1401f37e5
test rdi, rdi
je 0x1401f376d
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.140209024
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14004ced8
mov rcx, qword [rsp + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401f3758
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor r12d, r12d
mov rbx, qword [rbp - 0x80]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401f37e8
mov al, 1
jmp 0x1401f37eb
xor r12d, r12d
mov qword [rsp + 0x68], r12
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea edx, [r12 + 0x2b]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
jne 0x1401f3799
mov qword [rsp + 0x70], r12
jmp 0x1401f37a8
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140209024
mov rcx, qword [rsp + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401f37bd
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.14004ced8
mov rcx, qword [rsp + 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401f375b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1401f375b
xor r12d, r12d
mov al, r12b
mov rsi, rbx
test al, al
cmove rsi, rdi
cmp byte [rbp + 0x258], r12b
je 0x1401f3831
test rsi, rsi
jne 0x1401f3831
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x60], ecx
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
ja 0x1401f3b16
jmp 0x1401f3b69
mov r8b, byte [rbp + 0x268]
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x78]
call fcn.1401f3eb0
nop
mov eax, 0x80c0020
cmp byte [rbp + 0x268], r12b
cmovne r15d, eax
mov rax, qword [rbp + 0x40]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x50]
movaps xmmword [rbp], xmm1
movups xmm0, xmmword [rax + 0x60]
movaps xmmword [rbp + 0x10], xmm0
mov rcx, qword [rbp - 0x78]
call fcn.14024997c
mov qword [rbp + 0x18], rax
test rax, rax
jne 0x1401f38d2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x60], ecx
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
ja 0x1401f3b90
jmp 0x1401f3be3
mov qword [rsp + 0x68], r12
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x140]
call fcn.140204c5c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 0x80000000
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x140]
call fcn.1401f9a54
mov edi, eax
lea rcx, [rbp + 0x140]
call fcn.14004e0f0
mov dword [rsp + 0x60], edi
test edi, edi
jns 0x1401f3942
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
ja 0x1401f3c0d
jmp 0x1401f3c60
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x20]
call fcn.1401f40b0
cmp byte [rbp + 0x268], r12b
jne 0x1401f3964
lea rcx, [rbp + 0x20]
call fcn.1401f3ff4
lea rcx, [rbp + 0xa0]
call fcn.1401f4240
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], r12w
lea rdx, str.SeAssignPrimaryTokenPrivilege
lea rcx, [rbp + 0x40]
call fcn.14004d5c4
nop
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x100]
call fcn.1402486a4
nop
lea rcx, [rbp + 0x40]
call fcn.14004e0f0
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], r12w
lea rdx, str.SeIncreaseQuotaPrivilege
lea rcx, [rbp + 0x60]
call fcn.14004d5c4
nop
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xc0]
call fcn.1402486a4
nop
lea rcx, [rbp + 0x60]
call fcn.14004e0f0
xor eax, eax
mov qword [r13], rax
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rax
lea ecx, [rax + 1]
mov dword [rsp + 0x78], ecx
cmp qword [r14 + 0x18], 8
jb 0x1401f3a09
mov r14, qword [r14]
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
mov qword [rsp + 0x50], r13
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1401f3a7f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x60], ecx
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
ja 0x1401f3c8a
jmp 0x1401f3cdd
lea rcx, [rbp + 0xc0]
call fcn.140248b48
nop
lea rcx, [rbp + 0x100]
call fcn.140248b48
nop
mov rcx, qword [rsp + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401f3aaf
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rcx, [rbp - 0x78]
call fcn.1401f436c
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401f3acd
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rcx, [rbp + 0xa0]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x80]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x20]
call fcn.14004e0f0
mov rax, r13
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1402dfdb0
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rsp + 0x60]
mov qword [rbp + 0x160], rax
mov edx, 4
mov qword [rbp + 0x168], rdx
lea rax, str.Failed_to_create_restricted_token
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], CloseCompressor
lea rax, [rbp + 0x140]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dfd36]
call fcn.140001158
xor r8d, r8d
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x140]
call fcn.1401f3210
lea rdx, [0x14047cc18]
lea rcx, [rbp + 0x140]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
lea rax, [rsp + 0x60]
mov qword [rbp + 0x160], rax
mov edx, 4
mov qword [rbp + 0x168], rdx
lea rax, str.Failed_initializing_thread_attribute_list
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], MsiGetActiveDatabase
lea rax, [rbp + 0x140]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dfd36]
call fcn.140001158
mov r8d, 1
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x140]
call fcn.1401f3210
lea rdx, [0x14047cc18]
lea rcx, [rbp + 0x140]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
lea rax, [rsp + 0x60]
mov qword [rbp + 0x160], rax
mov edx, 4
mov qword [rbp + 0x168], rdx
lea rax, str.Failed_to_lock_binary
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], reloc.OLEAUT32.dll_SafeArrayAccessData
lea rax, [rbp + 0x140]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dfd36]
call fcn.140001158
mov r8d, 2
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x140]
call fcn.1401f3210
lea rdx, [0x14047cc18]
lea rcx, [rbp + 0x140]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
lea rax, [rsp + 0x60]
mov qword [rbp + 0x160], rax
mov edx, 4
mov qword [rbp + 0x168], rdx
lea rax, str.Failed_to_create_process
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], DispGetParam
lea rax, [rbp + 0x140]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dfd36]
call fcn.140001158
mov r8d, 5
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x140]
call fcn.1401f3210
lea rdx, [0x14047cc18]
lea rcx, [rbp + 0x140]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3