Function at 0x140259d44
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x2a0
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov qword [rbp - 0x18], r9
mov rsi, r8
mov rbx, rdx
mov r13, rcx
mov qword [rbp + 0x30], rcx
mov r12, qword [rbp + 0x1e0]
mov qword [rbp + 0xf0], r12
mov r14, qword [rbp + 0x1e8]
mov rax, qword [rbp + 0x200]
mov qword [rbp - 0x68], rax
mov rdi, qword [rbp + 0x208]
xor eax, eax
mov dword [rbp - 0x58], eax
cmp qword [rdi + 0x38], rax
jne 0x140259dbc
mov r15d, eax
jmp 0x140259dca
lea r15, [rdi + 0x28]
cmp qword [r15 + 0x18], 8
jb 0x140259dca
mov r15, qword [r15]
mov al, byte [rdi + 0x20]
mov byte [rbp - 0x7c], al
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 4
jbe 0x140259f02
mov al, byte [rdi + 0x78]
mov byte [rbp - 0x74], al
mov al, byte [rdi + 0x4a]
mov byte [rbp - 0x73], al
mov al, byte [rdi + 0x49]
mov byte [rbp - 0x72], al
mov al, byte [rdi + 0x48]
mov byte [rbp - 0x71], al
mov qword [rbp - 0x28], r15
mov al, byte [rbp - 0x7c]
mov byte [rbp - 0x70], al
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140259e10
mov rax, qword [rdi]
mov qword [rbp - 0x20], rax
mov al, byte [rbp + 0x1f8]
mov byte [rbp - 0x6f], al
mov dword [rbp - 0x60], 1
mov al, byte [r14 + 2]
mov byte [rbp - 0x6e], al
mov al, byte [r14 + 1]
mov byte [rbp - 0x6d], al
movzx eax, byte [r14]
mov dword [rbp - 0x78], eax
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140259e46
mov rax, qword [rsi]
mov qword [rbp - 0x48], rax
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140259e57
mov rax, qword [rbx]
mov qword [rbp - 0x40], rax
lea rax, str.SafeCreateProcess_about_to_create_process
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x90], rax
lea rax, [rbp - 0x73]
mov qword [rsp + 0x88], rax
lea rax, [rbp - 0x72]
mov qword [rsp + 0x80], rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x6f]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x6e]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x6d]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [0x14044eb87]
call fcn.140010c08
xor eax, eax
mov dword [rbp - 0x80], eax
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp + 0x120], xmm0
mov word [rbp + 0x110], ax
movdqu xmmword [rbp + 0x140], xmm0
mov word [rbp + 0x130], ax
movdqu xmmword [rbp + 0x160], xmm0
mov word [rbp + 0x150], ax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x130]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x110]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.1400bb230
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 4
jbe 0x140259fde
lea rax, [rbp + 0x130]
cmp qword [rbp + 0x148], 8
cmovae rax, qword [rbp + 0x130]
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0x110]
cmp qword [rbp + 0x128], 8
cmovae rax, qword [rbp + 0x110]
mov qword [rbp - 0x40], rax
lea rax, str.SafeCreateProcess_concluded_paths
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [0x14044eb3c]
call fcn.1400092bc
xor ebx, ebx
mov qword [rbp - 0x60], rbx
mov r12, qword [r12]
mov dl, byte [r14]
test dl, dl
je 0x14025a027
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8b, byte [r14 + 1]
mov dl, byte [r14 + 2]
mov rcx, qword [rbp + 0xf0]
call fcn.140259a94
mov dl, byte [r14]
mov rbx, qword [rbp - 0x60]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14025a027
mov al, 1
xor r14d, r14d
jmp 0x14025a02d
xor r14d, r14d
mov al, r14b
test al, al
cmove rbx, r12
test dl, dl
je 0x14025a040
test rbx, rbx
je 0x14025a38c
mov qword [rbp - 0x50], r14
lea rax, [rbp - 0x50]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 8], rax
mov byte [rbp], 1
test rbx, rbx
je 0x14025a07c
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140261968
mov dword [rbp - 0x80], eax
test eax, eax
js 0x14025a409
mov r12d, 0x8080420
jmp 0x14025a082
mov r12d, 0x8080020
lea rdx, [rdi + 0x68]
lea rcx, [rbp + 0xf0]
call fcn.14006a6bc
mov cl, byte [rdi + 0x4b]
mov dl, byte [rdi + 0x4a]
mov r8b, byte [rdi + 0x49]
mov r10b, byte [rdi + 0x48]
lea rax, [rdi + 0x50]
lea r9, [rbp + 0xf0]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x38], cl
mov byte [rsp + 0x30], dl
mov byte [rsp + 0x28], r8b
mov byte [rsp + 0x20], r10b
mov r9b, byte [rbp - 0x7c]
mov r14b, byte [rbp + 0x1f8]
mov r8b, r14b
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x30]
call fcn.1402598f8
nop
mov eax, r12d
bts eax, 0x12
test r14b, r14b
cmove eax, r12d
mov r12d, eax
bts r12d, 0x18
cmp byte [rdi + 0x78], 0
cmove r12d, eax
mov rax, qword [rbp - 0x68]
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x50], xmm1
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rbp + 0x70], xmm1
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x50]
movaps xmmword [rbp + 0x90], xmm1
movups xmm0, xmmword [rax + 0x60]
movaps xmmword [rbp + 0xa0], xmm0
mov rcx, qword [rbp - 0x30]
call fcn.140103070
mov qword [rbp + 0xa8], rax
test rax, rax
je 0x14025a474
lea rcx, [rbp + 0xb0]
call fcn.14008ccc8
nop
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x110]
call fcn.1400db97c
mov dword [rbp - 0x80], eax
test eax, eax
js 0x14025a4ee
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x110]
call fcn.1400e76a8
test r14b, r14b
jne 0x14025a1b0
mov dl, byte [rdi + 0x79]
lea rcx, [rbp + 0x110]
call fcn.14025a554
lea rcx, [rbp + 0x150]
call fcn.1400ac5d4
lea rdx, str.SeAssignPrimaryTokenPrivilege
lea rcx, [rbp + 0xf0]
call fcn.14008c350
lea rcx, [rbp + 0xf0]
call fcn.14025c4c4
lea rcx, [rbp + 0xf0]
call fcn.14007a7c0
lea rdx, str.SeIncreaseQuotaPrivilege
lea rcx, [rbp + 0xf0]
call fcn.14008c350
lea rcx, [rbp + 0xf0]
call fcn.14025c4c4
lea rcx, [rbp + 0xf0]
call fcn.14007a7c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rax
lea ecx, [rax + 1]
mov dword [rbp - 0x58], ecx
cmp qword [rsi + 0x18], 8
jb 0x14025a230
mov rsi, qword [rsi]
lea rdx, [rbp + 0x110]
cmp qword [rbp + 0x128], 8
cmovae rdx, qword [rbp + 0x110]
mov qword [rsp + 0x50], r13
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], ecx
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
nop dword [rax + rax]
test eax, eax
je 0x14025a312
lea rcx, [rbp + 0xb0]
call fcn.14008cd5c
nop
lea rcx, [rbp - 0x30]
call fcn.14010fc8c
nop
mov byte [rbp], 0
lea rcx, [rbp - 0x10]
call fcn.14025972c
nop
lea rcx, [rbp - 0x60]
call fcn.1400f0310
nop
lea rcx, [rbp + 0x150]
call fcn.14007a7c0
nop
lea rcx, [rbp + 0x130]
call fcn.14007a7c0
nop
lea rcx, [rbp + 0x110]
call fcn.14007a7c0
mov rax, r13
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14025a32a
movzx eax, ax
or eax, 0x80070000
mov dword [rbp - 0x80], eax
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 2
jbe 0x14025a369
lea rax, str.Failed_to_create_process
mov qword [rbp - 0x68], rax
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x78], eax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [0x14044eced]
call fcn.14000b51c
mov r8d, 5
mov edx, dword [rbp - 0x80]
lea rcx, [rbp + 0x10]
call fcn.140259640
lea rdx, [0x1404af008]
lea rcx, [rbp + 0x10]
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]
test eax, eax
jle 0x14025a3a4
movzx eax, ax
or eax, 0x80070000
mov dword [rbp - 0x80], eax
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 2
jbe 0x14025a3e9
lea rax, str.Failed_to_create_restricted_token
mov qword [rbp + 0xf0], rax
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x78], eax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [0x14044eced]
call fcn.14000b51c
xor r8d, r8d
mov edx, dword [rbp - 0x80]
lea rcx, [rbp - 0x10]
call fcn.140259640
lea rdx, [0x1404af008]
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 2
jbe 0x14025a44b
lea rax, str.Failed_to_create_environment_block
mov qword [rbp + 0xf0], rax
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x78], eax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [0x14044eced]
call fcn.14000b51c
mov r8d, 8
mov edx, dword [rbp - 0x80]
lea rcx, [rbp + 0xf0]
call fcn.140259640
lea rdx, [0x1404af008]
lea rcx, [rbp + 0xf0]
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]
test eax, eax
jle 0x14025a48c
movzx eax, ax
or eax, 0x80070000
mov dword [rbp - 0x80], eax
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 2
jbe 0x14025a4cb
lea rax, str.Failed_initializing_thread_attribute_list
mov qword [rbp - 0x68], rax
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x78], eax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [0x14044eced]
call fcn.14000b51c
mov r8d, 1
mov edx, dword [rbp - 0x80]
lea rcx, [rbp + 0x10]
call fcn.140259640
lea rdx, [0x1404af008]
lea rcx, [rbp + 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 2
jbe 0x14025a52a
lea rax, str.Failed_to_lock_binary
mov qword [rbp - 0x68], rax
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x78], eax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [0x14044eced]
call fcn.14000b51c
mov r8d, 2
mov edx, dword [rbp - 0x80]
lea rcx, [rbp + 0x10]
call fcn.140259640
lea rdx, [0x1404af008]
lea rcx, [rbp + 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3