Function at 0x140094e00
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f8]
sub rsp, 0x308
mov rax, qword [0x140477ad0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov qword [rbp - 8], r9
mov rsi, r8
mov rdi, rdx
mov r13, rcx
mov qword [rbp], rcx
mov r12, qword [rbp + 0x260]
mov qword [rbp - 0x28], r12
mov r15, qword [rbp + 0x268]
mov rax, qword [rbp + 0x280]
mov qword [rbp - 0x70], rax
mov rbx, qword [rbp + 0x288]
xor eax, eax
mov dword [rbp - 0x48], eax
cmp qword [rbx + 0x38], rax
jne 0x140094e72
mov r14d, eax
jmp 0x140094e80
lea r14, [rbx + 0x28]
cmp qword [r14 + 0x18], 8
jb 0x140094e80
mov r14, qword [r14]
mov al, byte [rbx + 0x20]
mov byte [rbp - 0x80], al
call fcn.1400a4e1c
mov rcx, rax
cmp dword [rax], 4
jbe 0x140094f94
mov al, byte [rbx + 0x49]
mov byte [rbp - 0x78], al
mov al, byte [rbx + 0x48]
mov byte [rbp - 0x77], al
mov qword [rbp - 0x18], r14
mov al, byte [rbp - 0x80]
mov byte [rbp - 0x76], al
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140094eba
mov rax, qword [rbx]
mov qword [rbp - 0x10], rax
mov al, byte [rbp + 0x278]
mov byte [rbp - 0x75], al
mov dword [rbp - 0x50], 1
mov al, byte [r15 + 2]
mov byte [rbp - 0x74], al
mov al, byte [r15 + 1]
mov byte [rbp - 0x73], al
movzx eax, byte [r15]
mov dword [rbp - 0x7c], eax
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140094ef0
mov rax, qword [rsi]
mov qword [rbp - 0x40], rax
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140094f01
mov rax, qword [rdi]
mov qword [rbp - 0x38], rax
lea rax, str.SafeCreateProcess_about_to_create_process
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x80], rax
lea rax, [rbp - 0x77]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x76]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x75]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x73]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [0x1403f20fd]
call fcn.140004a7c
xor eax, eax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], 7
mov word [rbp + 0xc0], ax
movdqa xmm0, xmmword [0x1403600d0]
movdqu xmmword [rbp + 0x110], xmm0
mov word [rbp + 0x100], ax
movdqu xmmword [rbp + 0x130], xmm0
mov word [rbp + 0x120], ax
mov rdx, rdi
lea rcx, [rbp + 0xc0]
call fcn.14007da00
xor edi, edi
cmp qword [rbp + 0xd0], rdi
jne 0x140095045
movdqa xmm0, xmmword [0x1403600d0]
movdqu xmmword [rbp + 0x150], xmm0
mov word [rbp + 0x140], di
movdqu xmmword [rbp + 0xf0], xmm0
mov word [rbp + 0xe0], di
lea r8, [rbp + 0xe0]
lea rdx, [rbp + 0xc0]
mov rcx, rsi
call fcn.140244fac
nop
lea rcx, [rbp + 0xe0]
call fcn.14007a7c0
nop
lea rcx, [rbp + 0x140]
call fcn.14007a7c0
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x120]
call fcn.14007da00
lea rcx, [rbp + 0x120]
call fcn.14006e764
lea rdx, [rbp + 0x120]
cmp qword [rbx + 0x10], rdi
cmovne rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.14007da00
call fcn.1400a4e1c
mov rcx, rax
cmp dword [rax], 4
jbe 0x1400950f4
lea rax, [rbp + 0x100]
cmp qword [rbp + 0x118], 8
cmovae rax, qword [rbp + 0x100]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 8
cmovae rax, qword [rbp + 0xc0]
mov qword [rbp - 0x38], rax
lea rax, str.SafeCreateProcess_concluded_paths
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [0x1403f220c]
call fcn.14000877c
mov qword [rbp - 0x50], rdi
mov r12, qword [r12]
mov dl, byte [r15]
test dl, dl
je 0x140095135
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8b, byte [r15 + 1]
mov dl, byte [r15 + 2]
mov rcx, qword [rbp - 0x28]
call fcn.140239798
mov dl, byte [r15]
mov rdi, qword [rbp - 0x50]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140095135
mov al, 1
jmp 0x140095137
xor al, al
mov r15, rdi
test al, al
cmove r15, r12
test dl, dl
je 0x1400951cb
test r15, r15
jne 0x1400951cb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140095168
movzx ebx, ax
or ebx, 0x80070000
call fcn.1400a4e1c
cmp dword [rax], 2
jbe 0x1400951a1
lea rcx, str.Failed_to_create_restricted_token
mov qword [rbp - 0x28], rcx
mov dword [rbp - 0x7c], ebx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x7c]
mov qword [rsp + 0x20], rcx
lea rdx, [0x1403f22eb]
mov rcx, rax
call fcn.14000a750
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
lea rax, vtable.sense::Common::SafeCreateProcessException.0
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x58], ebx
and dword [rbp - 0x54], 0
lea rdx, [0x140448780]
lea rcx, [rbp - 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov al, byte [rbx + 0x49]
mov byte [rsp + 0x28], al
mov al, byte [rbx + 0x48]
mov byte [rsp + 0x20], al
mov r9b, byte [rbp - 0x80]
movzx r12d, byte [rbp + 0x278]
mov r8b, r12b
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x20]
call fcn.1400956c8
nop
mov eax, r12d
shl eax, 0x12
add eax, 0x8080020
mov dword [rbp - 0x7c], eax
mov rax, qword [rbp - 0x70]
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x20], xmm1
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rbp + 0x40], xmm1
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x50]
movaps xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [rax + 0x60]
movaps xmmword [rbp + 0x70], xmm0
mov rcx, qword [rbp - 0x20]
call fcn.140095820
mov qword [rbp + 0x78], rax
test rax, rax
jne 0x1400952d6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140095270
movzx ebx, ax
or ebx, 0x80070000
call fcn.1400a4e1c
cmp dword [rax], 2
jbe 0x1400952a9
lea rcx, str.Failed_initializing_thread_attribute_list
mov qword [rbp - 0x70], rcx
mov dword [rbp - 0x7c], ebx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x7c]
mov qword [rsp + 0x20], rcx
lea rdx, [0x1403f22eb]
mov rcx, rax
call fcn.14000a750
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
lea rax, vtable.sense::Common::SafeCreateProcessException.0
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x58], ebx
mov dword [rbp - 0x54], 1
lea rdx, [0x140448780]
lea rcx, [rbp - 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
lea rcx, [rbp + 0x80]
call fcn.1400a782c
nop
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xe0]
call fcn.1400a68d8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rsp + 0x28], 0
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 0x80000000
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xe0]
call fcn.140095b8c
mov ebx, eax
mov rdx, qword [rbp + 0xf8]
cmp rdx, 8
jb 0x14009534e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xe0]
call fcn.14007ebd0
test ebx, ebx
jns 0x1400953b8
call fcn.1400a4e1c
cmp dword [rax], 2
jbe 0x14009538b
lea rcx, str.Failed_to_lock_binary
mov qword [rbp - 0x70], rcx
mov dword [rbp - 0x7c], ebx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x7c]
mov qword [rsp + 0x20], rcx
lea rdx, [0x1403f22eb]
mov rcx, rax
call fcn.14000a750
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
lea rax, vtable.sense::Common::SafeCreateProcessException.0
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x58], ebx
mov dword [rbp - 0x54], 2
lea rdx, [0x140448780]
lea rcx, [rbp - 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0xc0]
call fcn.1400958f4
test r12b, r12b
jne 0x1400953dc
lea rcx, [rbp + 0xc0]
call fcn.140239a48
lea rcx, [rbp + 0x120]
call fcn.140095c5c
lea rdx, str.SeAssignPrimaryTokenPrivilege
lea rcx, [rbp + 0xe0]
call fcn.1400aeef0
nop
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x1a0]
call fcn.140096094
nop
mov rdx, qword [rbp + 0xf8]
cmp rdx, 8
jb 0x140095431
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xe0]
call fcn.14007ebd0
lea rdx, str.SeIncreaseQuotaPrivilege
lea rcx, [rbp + 0xe0]
call fcn.1400aeef0
nop
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x160]
call fcn.140096094
nop
mov rdx, qword [rbp + 0xf8]
cmp rdx, 8
jb 0x14009547a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xe0]
call fcn.14007ebd0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rax
lea ecx, [rax + 1]
mov dword [rbp - 0x48], ecx
cmp qword [rsi + 0x18], 8
jb 0x140095498
mov rsi, qword [rsi]
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 8
cmovae rdx, qword [rbp + 0xc0]
mov qword [rsp + 0x50], r13
lea rax, [rbp + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov eax, dword [rbp - 0x7c]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rsi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
nop dword [rax + rax]
test eax, eax
jne 0x140095578
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140095512
movzx ebx, ax
or ebx, 0x80070000
call fcn.1400a4e1c
cmp dword [rax], 2
jbe 0x14009554b
lea rcx, str.Failed_to_create_process
mov qword [rbp - 0x70], rcx
mov dword [rbp - 0x7c], ebx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x7c]
mov qword [rsp + 0x20], rcx
lea rdx, [0x1403f22eb]
mov rcx, rax
call fcn.14000a750
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
lea rax, vtable.sense::Common::SafeCreateProcessException.0
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x58], ebx
mov dword [rbp - 0x54], 5
lea rdx, [0x140448780]
lea rcx, [rbp - 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
lea rcx, [rbp + 0x160]
call fcn.14009638c
nop
lea rcx, [rbp + 0x1a0]
call fcn.14009638c
nop
lea rcx, [rbp + 0x80]
call fcn.1400a778c
lea rcx, [rbp + 0xb8]
call fcn.1400a6878
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1400955bc
call fcn.14007e8c0
nop
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1400955ed
lea rcx, [rbx + 0x58]
call fcn.1401210c0
lea rcx, [rbx + 0x18]
call fcn.1400faa7c
mov rcx, rbx
call fcn.14008ef20
mov edx, 0x68
mov rcx, rbx
call fcn.140123b40
nop
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140095607
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
mov rdx, qword [rbp + 0x138]
cmp rdx, 8
jb 0x140095628
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x120]
call fcn.14007ebd0
movdqa xmm0, xmmword [0x1403600d0]
movdqu xmmword [rbp + 0x130], xmm0
mov word [rbp + 0x120], r14w
mov rdx, qword [rbp + 0x118]
cmp rdx, 8
jb 0x140095661
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x100]
call fcn.14007ebd0
movdqa xmm0, xmmword [0x1403600d0]
movdqu xmmword [rbp + 0x110], xmm0
mov word [rbp + 0x100], r14w
mov rdx, qword [rbp + 0xd8]
cmp rdx, 8
jb 0x14009569a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
call fcn.14007ebd0
mov rax, r13
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140123570
add rsp, 0x308
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret