Function at 0x140071748
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 [0x1404fd7f0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov qword [rbp - 0x30], 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 0x1400717c0
mov r15d, eax
jmp 0x1400717ce
lea r15, [rdi + 0x28]
cmp qword [r15 + 0x18], 8
jb 0x1400717ce
mov r15, qword [r15]
mov al, byte [rdi + 0x20]
mov byte [rbp - 0x7c], al
call fcn.1400abad4
mov rcx, rax
cmp dword [rax], 4
jbe 0x140071906
mov al, byte [rdi + 0x78]
mov byte [rbp - 0x7b], al
mov al, byte [rdi + 0x4a]
mov byte [rbp - 0x7a], al
mov al, byte [rdi + 0x49]
mov byte [rbp - 0x79], al
mov al, byte [rdi + 0x48]
mov byte [rbp - 0x78], al
mov qword [rbp - 0x20], r15
mov al, byte [rbp - 0x7c]
mov byte [rbp - 0x77], al
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140071814
mov rax, qword [rdi]
mov qword [rbp - 0x18], rax
mov al, byte [rbp + 0x1f8]
mov byte [rbp - 0x76], al
mov dword [rbp - 0x60], 1
mov al, byte [r14 + 2]
mov byte [rbp - 0x75], al
mov al, byte [r14 + 1]
mov byte [rbp - 0x74], al
movzx eax, byte [r14]
mov dword [rbp - 0x70], eax
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x14007184a
mov rax, qword [rsi]
mov qword [rbp - 0x48], rax
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14007185b
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 - 0x7b]
mov qword [rsp + 0x90], rax
lea rax, [rbp - 0x7a]
mov qword [rsp + 0x88], rax
lea rax, [rbp - 0x79]
mov qword [rsp + 0x80], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x77]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x76]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x75]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
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, [0x14045d4d7]
call fcn.1400014d8
xor ecx, ecx
mov dword [rbp - 0x80], ecx
mov qword [rbp + 0x120], rcx
lea eax, [rcx + 7]
mov qword [rbp + 0x128], rax
mov word [rbp + 0x110], cx
mov qword [rbp + 0x140], rcx
mov qword [rbp + 0x148], rax
mov word [rbp + 0x130], cx
mov qword [rbp + 0x160], rcx
mov qword [rbp + 0x168], rax
mov word [rbp + 0x150], cx
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.14009e104
call fcn.1400abad4
mov rcx, rax
cmp dword [rax], 4
jbe 0x1400719ef
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, [0x14045d48c]
call fcn.140006ba0
xor ebx, ebx
mov qword [rbp - 0x60], rbx
mov r12, qword [r12]
mov dl, byte [r14]
test dl, dl
je 0x140071a38
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.1400dcf34
mov dl, byte [r14]
mov rbx, qword [rbp - 0x60]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140071a38
mov al, 1
xor r14d, r14d
jmp 0x140071a3e
xor r14d, r14d
mov al, r14b
test al, al
cmove rbx, r12
test dl, dl
je 0x140071a51
test rbx, rbx
je 0x140071dd0
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 0x140071a8d
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140138e60
mov dword [rbp - 0x80], eax
test eax, eax
js 0x140071e5f
mov r12d, 0x8080420
jmp 0x140071a93
mov r12d, 0x8080020
lea rdx, [rdi + 0x68]
lea rcx, [rbp + 0xf0]
call fcn.14006e92c
mov cl, byte [rdi + 0x4c]
mov dl, byte [rdi + 0x4b]
mov r8b, byte [rdi + 0x4a]
mov r10b, byte [rdi + 0x49]
mov r11b, byte [rdi + 0x48]
lea rax, [rdi + 0x50]
lea r9, [rbp + 0xf0]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x38], dl
mov byte [rsp + 0x30], r8b
mov byte [rsp + 0x28], r10b
mov byte [rsp + 0x20], r11b
mov r9b, byte [rbp - 0x7c]
mov r14b, byte [rbp + 0x1f8]
mov r8b, r14b
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.14016c2dc
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 - 0x28]
call fcn.14014c4c0
mov qword [rbp + 0xa8], rax
test rax, rax
je 0x140071edc
lea rcx, [rbp + 0xb0]
call fcn.1400ad654
nop
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x110]
call fcn.1400ecc0c
mov dword [rbp - 0x80], eax
test eax, eax
js 0x140071f6e
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x110]
call fcn.1400ea9f4
test r14b, r14b
jne 0x140071bca
mov dl, byte [rdi + 0x79]
lea rcx, [rbp + 0x110]
call fcn.14016c480
lea rcx, [rbp + 0x150]
call fcn.14014e3fc
lea rdx, str.SeAssignPrimaryTokenPrivilege
lea rcx, [rbp + 0xf0]
call fcn.1400d16f0
lea rcx, [rbp + 0xf0]
call fcn.140094f70
lea rcx, [rbp + 0xf0]
call fcn.14007bf60
lea rdx, str.SeIncreaseQuotaPrivilege
lea rcx, [rbp + 0xf0]
call fcn.1400d16f0
lea rcx, [rbp + 0xf0]
call fcn.140094f70
lea rcx, [rbp + 0xf0]
call fcn.14007bf60
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rax
mov dword [rbp - 0x58], 1
xor edi, edi
mov ecx, edi
mov rdx, qword [rbp - 0x30]
mov rax, qword [rdx + 8]
cmp qword [rdx], rax
setne cl
cmp qword [rsi + 0x18], 8
jb 0x140071c5d
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
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
nop dword [rax + rax]
test eax, eax
je 0x140071d3e
lea rcx, [rbp + 0xb0]
call fcn.1400ae1d8
nop
lea rcx, [rbp - 0x28]
call fcn.140153618
nop
mov byte [rbp], dil
lea rcx, [rbp - 0x10]
call fcn.14016c010
nop
lea rcx, [rbp - 0x60]
call fcn.14011e68c
nop
lea rcx, [rbp + 0x150]
call fcn.14007bf60
nop
lea rcx, [rbp + 0x130]
call fcn.14007bf60
nop
lea rcx, [rbp + 0x110]
call fcn.14007bf60
mov rax, r13
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140156340
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 0x140071d56
movzx eax, ax
or eax, 0x80070000
mov dword [rbp - 0x80], eax
call fcn.1400abad4
mov r9, rax
cmp dword [rax], 2
jbe 0x140071dad
xor edx, edx
mov rcx, rax
call fcn.140004c20
test al, al
je 0x140071dad
lea rdx, str.Failed_to_create_process
lea rcx, [rbp - 0x68]
call fcn.140004c00
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.140004c10
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
lea rdx, [0x14045d60e]
mov rcx, r9
call fcn.140006294
mov r8d, 5
mov edx, dword [rbp - 0x80]
lea rcx, [rbp + 0x10]
call fcn.14016beb0
lea rdx, [0x1404c86d0]
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 0x140071de8
movzx eax, ax
or eax, 0x80070000
mov dword [rbp - 0x80], eax
call fcn.1400abad4
mov r9, rax
cmp dword [rax], 2
jbe 0x140071e3f
xor edx, edx
mov rcx, rax
call fcn.140004c20
test al, al
je 0x140071e3f
lea rdx, [0x1403df1e8]
lea rcx, [rbp - 0x68]
call fcn.140004c00
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.140004c10
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
lea rdx, [0x14045d60e]
mov rcx, r9
call fcn.140006294
xor r8d, r8d
mov edx, dword [rbp - 0x80]
lea rcx, [rbp - 0x10]
call fcn.14016beb0
lea rdx, [0x1404c86d0]
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
call fcn.1400abad4
mov r10, rax
cmp dword [rax], 2
jbe 0x140071eb3
xor edx, edx
mov rcx, rax
call fcn.140004c20
test al, al
je 0x140071eb3
lea rdx, str.Failed_to_create_environment_block
lea rcx, [rbp - 0x68]
call fcn.140004c00
mov r9, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.140004c10
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rax
lea rdx, [0x14045d60e]
mov rcx, r10
call fcn.140006294
mov r8d, 8
mov edx, dword [rbp - 0x80]
lea rcx, [rbp + 0xf0]
call fcn.14016beb0
lea rdx, [0x1404c86d0]
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 0x140071ef4
movzx eax, ax
or eax, 0x80070000
mov dword [rbp - 0x80], eax
call fcn.1400abad4
mov r10, rax
cmp dword [rax], 2
jbe 0x140071f4b
xor edx, edx
mov rcx, rax
call fcn.140004c20
test al, al
je 0x140071f4b
lea rdx, str.Failed_initializing_thread_attribute_list
lea rcx, [rbp - 0x68]
call fcn.140004c00
mov r9, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.140004c10
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rax
lea rdx, [0x14045d60e]
mov rcx, r10
call fcn.140006294
mov r8d, 1
mov edx, dword [rbp - 0x80]
lea rcx, [rbp + 0x10]
call fcn.14016beb0
lea rdx, [0x1404c86d0]
lea rcx, [rbp + 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
call fcn.1400abad4
mov r10, rax
cmp dword [rax], 2
jbe 0x140071fc2
xor edx, edx
mov rcx, rax
call fcn.140004c20
test al, al
je 0x140071fc2
lea rdx, str.Failed_to_lock_binary
lea rcx, [rbp - 0x68]
call fcn.140004c00
mov r9, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.140004c10
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rax
lea rdx, [0x14045d60e]
mov rcx, r10
call fcn.140006294
mov r8d, 2
mov edx, dword [rbp - 0x80]
lea rcx, [rbp + 0x10]
call fcn.14016beb0
lea rdx, [0x1404c86d0]
lea rcx, [rbp + 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3