Function at 0x14022627c
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 - 0x2d8]
sub rsp, 0x3d8
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov qword [rbp - 0x78], r9
mov r12, r8
mov rsi, rdx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x60], rcx
mov r14, qword [rbp + 0x340]
mov qword [rbp - 0x80], r14
mov r13, qword [rbp + 0x348]
mov rax, qword [rbp + 0x360]
mov qword [rbp + 0x80], rax
mov rdi, qword [rbp + 0x368]
xor eax, eax
mov dword [rsp + 0x74], eax
cmp qword [rdi + 0x38], rax
jne 0x1402262fb
mov r15d, eax
jmp 0x140226309
lea r15, [rdi + 0x28]
cmp qword [r15 + 0x18], 8
jb 0x140226309
mov r15, qword [r15]
call fcn.1400550c0
mov r10, qword [rax + 8]
lea rbx, [0x1403cb630]
mov r11d, 1
lea r9d, [r11 + 3]
cmp dword [r10], r9d
jbe 0x140226516
lea rax, str.SafeCreateProcess_about_to_create_process
mov qword [rbp + 0x1f0], rax
mov qword [rbp + 0x1f8], 0x54
xor r8d, r8d
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140226355
mov rcx, qword [rsi]
mov rdx, rbx
mov rax, r8
test rcx, rcx
je 0x140226371
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r8w
jne 0x140226367
mov qword [rbp + 0x200], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x208], eax
mov dword [rbp + 0x20c], r8d
mov rcx, r12
cmp qword [r12 + 0x18], 8
jb 0x14022639b
mov rcx, qword [r12]
mov rdx, rbx
mov rax, r8
test rcx, rcx
je 0x1402263b7
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r8w
jne 0x1402263ad
mov qword [rbp + 0x210], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x218], eax
mov dword [rbp + 0x21c], r8d
movzx eax, byte [r13]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x220], rax
mov qword [rbp + 0x228], r9
lea rax, [r13 + 1]
mov qword [rbp + 0x230], rax
mov qword [rbp + 0x238], r11
lea rax, [r13 + 2]
mov qword [rbp + 0x240], rax
mov qword [rbp + 0x248], r11
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rbp + 0x250], rax
mov qword [rbp + 0x258], r9
lea rax, [rbp + 0x358]
mov qword [rbp + 0x260], rax
mov qword [rbp + 0x268], r11
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14022644c
mov rcx, qword [rdi]
mov rdx, rbx
mov rax, r8
test rcx, rcx
je 0x140226468
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r8w
jne 0x14022645e
mov qword [rbp + 0x270], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x278], eax
mov dword [rbp + 0x27c], r8d
lea rax, [rdi + 0x20]
mov qword [rbp + 0x280], rax
mov qword [rbp + 0x288], r11
mov rcx, rbx
mov rax, r8
test r15, r15
je 0x1402264b1
mov rcx, r15
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], r8w
jne 0x1402264a7
mov qword [rbp + 0x290], rcx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x298], eax
mov dword [rbp + 0x29c], r8d
lea rax, [rdi + 0x48]
mov qword [rbp + 0x2a0], rax
mov qword [rbp + 0x2a8], r11
lea rax, [rdi + 0x49]
mov qword [rbp + 0x2b0], rax
mov qword [rbp + 0x2b8], r11
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], SafeArrayLock
xor r9d, r9d
lea rdx, [0x140484077]
mov rcx, r10
call fcn.140001208
xor eax, eax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], ax
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xa0], ax
movdqu xmmword [rbp + 0xf0], xmm0
mov word [rbp + 0xe0], ax
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.14006fe84
xor esi, esi
cmp qword [rbp + 0x70], rsi
jne 0x1402265b5
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp + 0x190], xmm0
mov word [rbp + 0x180], si
movdqu xmmword [rbp + 0xd0], xmm0
mov word [rbp + 0xc0], si
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0x60]
mov rcx, r12
call fcn.14023d74c
nop
lea rcx, [rbp + 0xc0]
call fcn.140055f70
nop
lea rcx, [rbp + 0x180]
call fcn.140055f70
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xe0]
call fcn.14006fe84
lea rcx, [rbp + 0xe0]
call fcn.14023e048
lea rcx, [rbp + 0xa0]
cmp qword [rdi + 0x10], rsi
lea rdx, [rbp + 0xe0]
je 0x1402265e8
mov rdx, rdi
call fcn.14006fe84
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402266ce
lea rax, str.SafeCreateProcess_concluded_paths
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], VarR8FromUI1
lea rax, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rax, qword [rbp + 0x60]
mov rdx, rbx
mov rcx, rsi
test rax, rax
je 0x140226642
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x140226639
mov qword [rbp + 0x1b0], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x1b8], eax
mov dword [rbp + 0x1bc], esi
lea rcx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 8
cmovae rcx, qword [rbp + 0xa0]
mov rax, rsi
test rcx, rcx
je 0x14022668b
mov rbx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x140226682
mov qword [rbp + 0x1c0], rbx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1c8], eax
mov dword [rbp + 0x1cc], esi
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140484186]
mov rcx, r10
call fcn.140001208
mov rbx, rsi
mov qword [rsp + 0x68], rbx
mov r14, qword [r14]
mov dl, byte [r13]
test dl, dl
je 0x140226708
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8b, byte [r13 + 1]
mov dl, byte [r13 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.140226ce0
mov dl, byte [r13]
mov rbx, qword [rsp + 0x68]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
setbe al
mov rsi, rbx
xor r13d, r13d
test al, al
cmove rsi, r14
test dl, dl
je 0x14022672c
test rsi, rsi
je 0x140226aa1
mov al, byte [rdi + 0x49]
mov byte [rsp + 0x28], al
mov al, byte [rdi + 0x48]
mov byte [rsp + 0x20], al
mov r9b, byte [rdi + 0x20]
mov r8b, byte [rbp + 0x358]
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x78]
call fcn.1402270f8
nop
mov eax, 0x80c0020
cmp byte [rbp + 0x358], r13b
mov r14d, 0x8080020
cmovne r14d, eax
mov rax, qword [rbp + 0x80]
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 [rsp + 0x78]
call fcn.140285b54
mov qword [rbp + 0x18], rax
test rax, rax
je 0x140226b47
lea rcx, [rbp + 0x20]
call fcn.140239154
nop
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x180]
call fcn.14023e320
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rsp + 0x28], r13b
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 0x80000000
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x180]
call fcn.14022ed30
mov edi, eax
lea rcx, [rbp + 0x180]
call fcn.140055f70
mov dword [rsp + 0x60], edi
test edi, edi
js 0x140226bf0
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x60]
call fcn.140227384
cmp byte [rbp + 0x358], r13b
jne 0x14022684d
lea rcx, [rbp + 0x60]
call fcn.1402272c4
lea rcx, [rbp + 0xe0]
call fcn.140227518
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp + 0x90], xmm0
mov word [rbp + 0x80], r13w
lea rdx, str.SeAssignPrimaryTokenPrivilege
lea rcx, [rbp + 0x80]
call fcn.140055574
nop
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x140]
call fcn.1402846ac
nop
lea rcx, [rbp + 0x80]
call fcn.140055f70
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp + 0xd0], xmm0
mov word [rbp + 0xc0], r13w
lea rdx, str.SeIncreaseQuotaPrivilege
lea rcx, [rbp + 0xc0]
call fcn.140055574
nop
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x100]
call fcn.1402846ac
nop
lea rcx, [rbp + 0xc0]
call fcn.140055f70
xor eax, eax
mov rdi, qword [rbp - 0x70]
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
lea ecx, [rax + 1]
mov dword [rsp + 0x74], ecx
cmp qword [r12 + 0x18], 8
jb 0x140226915
mov r12, qword [r12]
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rdx, qword [rbp + 0x60]
mov qword [rsp + 0x50], rdi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, r12
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
nop dword [rax + rax]
test eax, eax
je 0x1402269f8
lea rcx, [rbp + 0x100]
call fcn.140284b60
nop
lea rcx, [rbp + 0x140]
call fcn.140284b60
nop
lea rcx, [rbp + 0x20]
call fcn.140239264
nop
lea rcx, [rsp + 0x78]
call fcn.14022764c
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1402269af
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0xe0]
call fcn.140055f70
nop
lea rcx, [rbp + 0xa0]
call fcn.140055f70
nop
lea rcx, [rbp + 0x60]
call fcn.140055f70
mov rax, rdi
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140356560
add rsp, 0x3d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x60], ecx
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140226a77
lea rax, [rsp + 0x60]
mov qword [rbp + 0x1a0], rax
mov edx, 4
mov qword [rbp + 0x1a8], rdx
lea rax, str.Failed_to_create_process
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], CreateCompressor
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404841f5]
call fcn.140001208
mov r8d, 5
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x180]
call fcn.1402260f0
lea rdx, [0x140514520]
lea rcx, [rbp + 0x180]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x60], ecx
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140226b20
lea rax, [rsp + 0x60]
mov qword [rbp + 0x1a0], rax
mov edx, 4
mov qword [rbp + 0x1a8], rdx
lea rax, str.Failed_to_create_restricted_token
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], CloseCompressor
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404841f5]
call fcn.140001208
xor r8d, r8d
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x180]
call fcn.1402260f0
lea rdx, [0x140514520]
lea rcx, [rbp + 0x180]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x60], ecx
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140226bc6
lea rax, [rsp + 0x60]
mov qword [rbp + 0x1a0], rax
mov edx, 4
mov qword [rbp + 0x1a8], rdx
lea rax, str.Failed_initializing_thread_attribute_list
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], MsiGetActiveDatabase
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404841f5]
call fcn.140001208
mov r8d, 1
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x180]
call fcn.1402260f0
lea rdx, [0x140514520]
lea rcx, [rbp + 0x180]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140226c51
lea rax, [rsp + 0x60]
mov qword [rbp + 0x1a0], rax
mov edx, 4
mov qword [rbp + 0x1a8], rdx
lea rax, str.Failed_to_lock_binary
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], reloc.OLEAUT32.dll_SafeArrayAccessData
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404841f5]
call fcn.140001208
mov r8d, 2
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x180]
call fcn.1402260f0
lea rdx, [0x140514520]
lea rcx, [rbp + 0x180]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3