Function at 0x14022fec8
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 - 0x1d8]
sub rsp, 0x2d8
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov qword [rbp - 0x70], r9
mov r14, r8
mov rbx, rdx
mov r12, rcx
mov qword [rbp - 0x50], rcx
mov r13, qword [rbp + 0x240]
mov rax, qword [rbp + 0x260]
mov qword [rbp - 0x68], rax
mov rsi, qword [rbp + 0x268]
xor r15d, r15d
mov dword [rsp + 0x78], r15d
call fcn.14004acb4
mov r10, qword [rax + 8]
lea rdi, [0x14030cae0]
or r9, 0xffffffffffffffff
lea r11d, [r15 + 1]
lea r8d, [r15 + 4]
cmp dword [r10], r8d
jbe 0x1402300aa
lea rax, str.SafeCreateProcess_about_to_create_process
mov qword [rbp + 0x150], rax
mov qword [rbp + 0x158], 0x54
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14022ff7a
mov rcx, qword [rbx]
mov rdx, rdi
mov rax, r15
test rcx, rcx
je 0x14022ff95
mov rdx, rcx
mov rax, r9
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14022ff8b
mov qword [rbp + 0x160], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x168], eax
mov dword [rbp + 0x16c], r15d
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x14022ffbd
mov rcx, qword [r14]
mov rdx, rdi
mov rax, r15
test rcx, rcx
je 0x14022ffd8
mov rdx, rcx
mov rax, r9
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14022ffce
mov qword [rbp + 0x170], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x178], eax
mov dword [rbp + 0x17c], r15d
movzx eax, byte [rbp + 0x248]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x188], r8
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rbp + 0x190], rax
mov qword [rbp + 0x198], r8
lea rax, [rbp + 0x258]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], r11
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14023004b
mov rcx, qword [rsi]
mov rdx, rdi
mov rax, r15
test rcx, rcx
je 0x140230066
mov rdx, rcx
mov rax, r9
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14023005c
mov qword [rbp + 0x1b0], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1b8], eax
mov dword [rbp + 0x1bc], r15d
lea rax, [rbp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 9
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039efb5]
mov rcx, r10
call fcn.140001158
xor eax, eax
mov r15d, 0x8080020
mov dword [rsp + 0x60], eax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], ax
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], ax
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], ax
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140061d90
xor ebx, ebx
cmp qword [rbp + 0x40], rbx
jne 0x14023014a
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rbp + 0x140], xmm0
mov word [rbp + 0x130], bx
movdqu xmmword [rbp + 0xa0], xmm0
mov word [rbp + 0x90], bx
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.1401ef0e0
nop
lea rcx, [rbp + 0x90]
call fcn.14004b500
nop
lea rcx, [rbp + 0x130]
call fcn.14004b500
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x70]
call fcn.140061d90
lea rcx, [rbp + 0x70]
call fcn.1401ef9ec
lea rdx, [rbp + 0x70]
cmp qword [rsi + 0x10], rbx
cmovne rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.140061d90
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14023024d
lea rax, str.SafeCreateProcess_concluded_paths
mov qword [rbp + 0x150], rax
mov qword [rbp + 0x158], VarR8FromUI1
lea rax, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rax, qword [rbp + 0x30]
mov rdx, rdi
mov rcx, rbx
test rax, rax
je 0x1402301ca
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], bx
jne 0x1402301c1
mov qword [rbp + 0x160], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x168], eax
mov dword [rbp + 0x16c], ebx
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rcx, qword [rbp + 0x50]
mov rax, rbx
test rcx, rcx
je 0x14023020a
mov rdi, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140230201
mov qword [rbp + 0x170], rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0x178], eax
mov dword [rbp + 0x17c], ebx
lea rax, [rbp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039ef6a]
mov rcx, r10
call fcn.140001158
mov qword [rbp - 0x80], rbx
mov rdi, qword [r13]
xor eax, eax
cmp byte [rbp + 0x248], al
je 0x140230322
test rdi, rdi
je 0x1402302ab
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.1401f3dbc
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14004a2f8
mov rcx, qword [rsp + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140230296
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor r13d, r13d
mov rbx, qword [rbp - 0x80]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140230325
mov al, 1
jmp 0x140230328
xor r13d, r13d
mov qword [rsp + 0x68], r13
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea edx, [r13 + 0x2b]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
jne 0x1402302d6
mov qword [rsp + 0x70], r13
jmp 0x1402302e5
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.1401f3dbc
mov rcx, qword [rsp + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1402302fa
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.14004a2f8
mov rcx, qword [rsp + 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140230299
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140230299
xor r13d, r13d
mov al, r13b
mov rsi, rbx
test al, al
cmove rsi, rdi
cmp byte [rbp + 0x248], r13b
je 0x14023036e
test rsi, rsi
jne 0x14023036e
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.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
ja 0x140230637
jmp 0x14023068a
mov r8b, byte [rbp + 0x258]
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x78]
call fcn.14023087c
nop
mov eax, 0x80c0020
cmp byte [rbp + 0x258], r13b
cmovne r15d, eax
mov rax, qword [rbp - 0x68]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x50]
movaps xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rax + 0x60]
movaps xmmword [rbp + 0x20], xmm0
mov rcx, qword [rbp - 0x78]
call fcn.14023a574
mov qword [rbp + 0x28], rax
test rax, rax
jne 0x14023040f
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.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
ja 0x1402306b1
jmp 0x140230704
mov qword [rsp + 0x68], r13
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x130]
call fcn.1401efba0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 0x80000000
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x130]
call fcn.1401e5424
mov edi, eax
lea rcx, [rbp + 0x130]
call fcn.14004b500
mov dword [rsp + 0x60], edi
test edi, edi
jns 0x14023047f
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
ja 0x14023072e
jmp 0x140230781
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.140230a7c
cmp byte [rbp + 0x258], r13b
jne 0x14023049e
lea rcx, [rbp + 0x30]
call fcn.1402309c0
lea rcx, [rbp + 0x70]
call fcn.140230c0c
lea rdx, str.SeAssignPrimaryTokenPrivilege
lea rcx, [rbp + 0x130]
call fcn.14004a9e4
nop
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0xf0]
call fcn.14023291c
nop
lea rcx, [rbp + 0x130]
call fcn.14004b500
lea rdx, str.SeIncreaseQuotaPrivilege
lea rcx, [rbp + 0x90]
call fcn.14004a9e4
nop
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xb0]
call fcn.14023291c
nop
lea rcx, [rbp + 0x90]
call fcn.14004b500
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 8], rax
mov qword [r12 + 0x10], rax
lea ecx, [rax + 1]
mov dword [rsp + 0x78], ecx
cmp qword [r14 + 0x18], 8
jb 0x140230530
mov r14, qword [r14]
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
mov qword [rsp + 0x50], r12
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r13
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 0x1402305a6
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.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
ja 0x1402307ab
jmp 0x1402307fe
lea rcx, [rbp + 0xb0]
call fcn.140232dc0
nop
lea rcx, [rbp + 0xf0]
call fcn.140232dc0
nop
mov rcx, qword [rsp + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1402305d6
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rcx, [rbp - 0x78]
call fcn.140230d04
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1402305f4
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rcx, [rbp + 0x70]
call fcn.14004b500
nop
lea rcx, [rbp + 0x50]
call fcn.14004b500
nop
lea rcx, [rbp + 0x30]
call fcn.14004b500
mov rax, r12
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rsp + 0x60]
mov qword [rbp + 0x150], rax
mov edx, 4
mov qword [rbp + 0x158], rdx
lea rax, str.Failed_to_create_restricted_token
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], CloseCompressor
lea rax, [rbp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039f031]
call fcn.140001158
xor r8d, r8d
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x130]
call fcn.14022fd5c
lea rdx, [0x14042fc20]
lea rcx, [rbp + 0x130]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
lea rax, [rsp + 0x60]
mov qword [rbp + 0x150], rax
mov edx, 4
mov qword [rbp + 0x158], rdx
lea rax, str.Failed_initializing_thread_attribute_list
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], 0x2a
lea rax, [rbp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039f031]
call fcn.140001158
mov r8d, 1
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x130]
call fcn.14022fd5c
lea rdx, [0x14042fc20]
lea rcx, [rbp + 0x130]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
lea rax, [rsp + 0x60]
mov qword [rbp + 0x150], rax
mov edx, 4
mov qword [rbp + 0x158], rdx
lea rax, str.Failed_to_lock_binary
mov qword [rbp + 0x160], rax
mov qword [rbp + reloc.OLEAUT32.dll_SafeArrayAccessData8], 0x16
lea rax, [rbp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039f031]
call fcn.140001158
mov r8d, 2
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x130]
call fcn.14022fd5c
lea rdx, [0x14042fc20]
lea rcx, [rbp + 0x130]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
lea rax, [rsp + 0x60]
mov qword [rbp + 0x150], rax
mov edx, 4
mov qword [rbp + 0x158], rdx
lea rax, str.Failed_to_create_process
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], CreateCompressor
lea rax, [rbp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039f031]
call fcn.140001158
mov r8d, 5
mov edx, dword [rsp + 0x60]
lea rcx, [rbp + 0x130]
call fcn.14022fd5c
lea rdx, [0x14042fc20]
lea rcx, [rbp + 0x130]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3