Function at 0x140017c20
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x1400c50b0]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov r15, r8
mov rsi, rdx
mov r12, rcx
mov qword [rbp - 0x70], rcx
cmp dword [rdx + 0xa4], 5
je 0x140018459
mov eax, dword [rdx + 0xa0]
xor r13d, r13d
cmp eax, 2
jne 0x140018104
lea rbx, [rdx + 0xe0]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140017c90
mov rdx, qword [rbx]
lea rcx, str.Waiting_on_process__ls
call fcn.140017710
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.140024440
nop
cmp qword [rbp + 0x60], r13
jne 0x140017d3c
mov qword [rbp + 0x30], r13
movdqa xmm0, xmmword [0x1400b40c0]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r13w
lea rdx, str.Warning
lea rcx, [rbp + 0x30]
call fcn.1400066f4
nop
mov qword [rbp + 0x70], r13
movdqa xmm0, xmmword [0x1400b40c0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r13w
lea rdx, str.Please_select_executable_to_wait_for_n
lea rcx, [rbp + 0x70]
call fcn.1400066f4
nop
mov rax, qword [r12]
mov r9, qword [rax]
mov r8d, 1
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x70]
call fcn.140013140
nop
lea rcx, [rbp + 0x70]
call fcn.140006690
nop
lea rcx, [rbp + 0x30]
call fcn.140006690
mov ebx, 0xc0000225
jmp 0x140017fd9
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r13
lea rdi, [rsi + 0x108]
mov rax, qword [rdi + 8]
cmp qword [rdi], rax
jne 0x140017df2
lea r8, [rbp + 0x50]
lea rcx, [rbp + 0x70]
call fcn.140030cf0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
lea rdx, [rax + 8]
lea rcx, [rsp + 0x50]
cmp byte [rdx + 0x18], r13b
jne 0x140017d8b
lea rdx, [rsp + 0x70]
call fcn.14001b25c
lea rax, [rsp + 0x50]
cmp rdi, rax
je 0x140017dca
mov rcx, rdi
call fcn.14001ab7c
mov rax, qword [rsp + 0x50]
mov qword [rdi], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
lea rcx, [rsp + 0x50]
call fcn.14001ab7c
nop
lea rcx, [rsp + 0x70]
call fcn.14001ab7c
nop
cmp byte [rbp + 0x90], r13b
je 0x140017df2
lea rcx, [rbp + 0x78]
call fcn.14001ab7c
mov byte [rsi + 0x104], 1
mov r12, qword [rbp + 0x38]
mov r13, qword [rbp + 0x30]
xor r14d, r14d
lea rbx, [rsi + 0x120]
mov rax, qword [rbx + 8]
cmp qword [rbx], rax
je 0x140017e9e
lea rax, [rbp + 0x30]
cmp rdi, rax
je 0x140017e2f
mov r8, r12
mov rdx, r13
mov rcx, rdi
call fcn.14001b554
mov eax, dword [rsi + 0x100]
cmp eax, dword [rsi + 0xb0]
jae 0x140017fe9
inc eax
mov dword [rsi + 0x100], eax
mov r15, qword [rsi + 0x120]
mov rbx, qword [rsi + 0x128]
lea r14, [r15 + 0x40]
cmp r14, rbx
je 0x140017e7f
mov rdx, r14
mov rcx, r15
call fcn.14001afac
add r15, 0x40
add r14, 0x40
cmp r14, rbx
jne 0x140017e60
mov rbx, qword [rsi + 0x128]
lea rcx, [rbx - 0x18]
call fcn.14001b458
lea rcx, [rbx - 0x38]
call fcn.140006690
add qword [rsi + 0x128], 0xffffffffffffffc0
jmp 0x140017fa3
lea r8, [rbp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.140030cf0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r14
lea rdx, [rax + 8]
lea rcx, [rsp + 0x50]
cmp byte [rdx + 0x18], r14b
jne 0x140017ece
lea rdx, [rbp + 0x70]
call fcn.14001b25c
lea rcx, [rbp + 0x30]
call fcn.14001ab7c
mov r13, qword [rsp + 0x50]
mov qword [rbp + 0x30], r13
mov r12, qword [rsp + 0x58]
mov qword [rbp + 0x38], r12
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
lea rcx, [rsp + 0x50]
call fcn.14001ab7c
nop
lea rcx, [rbp + 0x70]
call fcn.14001ab7c
nop
cmp byte [rbp - 0x48], r14b
je 0x140017f29
lea rcx, [rbp - 0x60]
call fcn.14001ab7c
mov qword [rsp + 0x70], rbx
mov rax, qword [rbx]
mov qword [rsp + 0x78], rax
mov r14, qword [rdi]
mov rbx, r13
mov r15, qword [rsi + 0x110]
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x50], xmm0
cmp r13, r12
je 0x140017f85
cmp r14, r15
je 0x140017f80
mov eax, dword [r14]
cmp dword [rbx], eax
jae 0x140017f71
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14001b77c
add rbx, 0x40
jmp 0x140017f7b
ja 0x140017f77
add rbx, 0x40
add r14, 0x40
cmp rbx, r12
jne 0x140017f52
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
jmp 0x140017f9e
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14001b77c
add rbx, 0x40
cmp rbx, r12
jne 0x140017f8d
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r14d, r14d
cmp byte [rsi + 0x104], r14b
jne 0x140017e04
lea rcx, str.Process_wait_canceled_by_user
call fcn.140017684
mov ebx, 0xc0000240
lea rcx, [rbp + 0x30]
call fcn.14001ab7c
nop
lea rcx, [rbp + 0x50]
call fcn.140006690
mov eax, ebx
jmp 0x14001845b
mov r14, qword [rsi + 0x120]
mov eax, dword [r14]
mov dword [rsi + 0xc0], eax
mov rbx, qword [rsi + 0x128]
lea rdi, [r14 + 0x40]
cmp rdi, rbx
je 0x140018028
mov rdx, rdi
mov rcx, r14
call fcn.14001afac
add r14, 0x40
add rdi, 0x40
cmp rdi, rbx
jne 0x140018009
mov rbx, qword [rsi + 0x128]
lea rcx, [rbx - 0x18]
call fcn.14001b458
lea rcx, [rbx - 0x38]
call fcn.140006690
add qword [rsi + 0x128], 0xffffffffffffffc0
mov edx, dword [rsi + 0xc0]
lea rcx, str.Got_process__d
call fcn.14001779c
nop
lea rcx, [rbp + 0x30]
call fcn.14001ab7c
nop
lea rcx, [rbp + 0x50]
call fcn.140006690
mov r12, qword [rbp - 0x70]
xor r13d, r13d
cmp dword [rsi + 0xa4], 2
jae 0x140018459
cmp dword [rsi + 0xa0], 1
je 0x140018459
lea r14, [r12 + 8]
cmp byte [rsi + 0xb8], r13b
je 0x14001833a
lea rcx, str.Escalating_process_handle_access
call fcn.140017710
mov r8d, 0x1000
mov edx, dword [rsi + 0xc0]
mov rcx, r14
call fcn.140030860
mov ebx, eax
test eax, eax
js 0x1400180f1
call fcn.140013250
mov rdi, rax
mov rbx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, 0x1d7b
mov r8, rbx
mov edx, eax
mov rcx, rdi
call fcn.140025b80
mov ebx, eax
test eax, eax
jns 0x140018354
mov edx, ebx
lea rcx, str.Failed_to_escalate_process_handle_access__status_0x_X
call fcn.14001756c
jmp 0x14001836b
cmp eax, 1
jne 0x14001806f
xor edx, edx
lea r8d, [rax + 0x63]
lea rcx, [rbp - 0x3c]
call fcn.14006ba60
mov dword [rbp - 0x40], 0x68
lea rdi, [rsi + 0x38]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140018134
mov r8, qword [rdi]
lea rbx, [rsi + 0xe0]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140018148
mov rdx, qword [rbx]
lea rcx, str.Creating_new_process__ls_with_arguments__ls
call fcn.140017710
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.140024770
cmp qword [rax + 0x18], 8
jb 0x14001816a
mov rax, qword [rax]
cmp qword [rdi + 0x18], 8
jb 0x140018174
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x14001817e
mov rbx, qword [rbx]
mov qword [rsp + 0x48], r15
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
lea rcx, [rbp + 0x50]
call fcn.140006690
test ebx, ebx
jne 0x140018264
mov qword [rbp + 0x50], r13
movdqa xmm0, xmmword [0x1400b40c0]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r13w
lea rdx, [0x1400aa270]
lea rcx, [rbp + 0x50]
call fcn.1400066f4
nop
mov rax, qword gs:[0x30]
mov edx, dword [rax + 0x1250]
lea rcx, [rbp + 0x30]
call fcn.140024fc0
nop
mov r8, rax
lea rdx, str.Failed_to_create_new_process._n
lea rcx, [rbp + 0x70]
call fcn.140015e04
nop
mov rcx, qword [r12]
mov r9, qword [rcx]
xor r8d, r8d
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.140013140
nop
lea rcx, [rbp + 0x70]
call fcn.140006690
nop
lea rcx, [rbp + 0x30]
call fcn.140006690
nop
lea rcx, [rbp + 0x50]
call fcn.140006690
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14001845b
lea r14, [r12 + 8]
cmp byte [rsi + 0xb8], r13b
je 0x1400182c2
lea rcx, [0x1400aa198]
call fcn.140017710
mov r8d, 0x1000
mov edx, dword [r15 + 0x10]
mov rcx, r14
call fcn.140030860
mov ebx, eax
test eax, eax
js 0x140018327
call fcn.140013250
mov rdi, rax
mov rbx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, 0x1d7b
mov r8, rbx
mov edx, eax
mov rcx, rdi
call fcn.140025b80
jmp 0x1400182d4
mov r8d, 0xd7b
mov edx, dword [r15 + 0x10]
mov rcx, r14
call fcn.140030860
mov ebx, eax
test eax, eax
js 0x140018327
mov rcx, r14
call fcn.140030a80
cmp dword [rsi + 0xa4], 2
jb 0x14001831b
mov eax, dword [r15 + 0x10]
mov dword [rsi + 0xc0], eax
mov rcx, r14
call fcn.140030950
cmp dword [rsi + 0xa4], 3
jne 0x14001831b
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsi + 0xb4], r13b
jmp 0x14001806f
mov edx, ebx
lea rcx, str.Failed_to_attach_to_process__status_0x_X
call fcn.14001756c
jmp 0x140017fe2
mov r8d, 0xd7b
mov edx, dword [rsi + 0xc0]
mov rcx, r14
call fcn.140030860
mov ebx, eax
test eax, eax
js 0x140018367
mov rcx, r14
call fcn.140030b30
test al, al
jne 0x140018367
mov ebx, 0xc000010a
jmp 0x14001836b
test ebx, ebx
je 0x1400183e6
mov edx, ebx
lea rcx, [rbp + 0x30]
call fcn.140024fc0
nop
mov r8, rax
lea rdx, str.Can_not_attach_to_the_process._n
lea rcx, [rbp + 0x70]
call fcn.140015e04
nop
lea rcx, [rbp + 0x30]
call fcn.140006690
mov qword [rbp + 0x50], r13
movdqa xmm0, xmmword [0x1400b40c0]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r13w
lea rdx, [0x1400aa390]
lea rcx, [rbp + 0x50]
call fcn.1400066f4
nop
mov rax, qword [r12]
mov r9, qword [rax]
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x70]
call fcn.140013140
nop
lea rcx, [rbp + 0x50]
call fcn.140006690
nop
lea rcx, [rbp + 0x70]
jmp 0x140017fdd
mov rbx, qword [r12 + 0x18]
xor edx, edx
cmp byte [rbx + 0x15], r13b
je 0x140018421
mov r8d, 0x250
lea rcx, [rbp + 0xa0]
call fcn.14006ba60
mov rax, qword [rbx]
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call qword [rax + 0x80]
cmp dword [rbp + 0xac], r13d
jmp 0x14001844a
mov r8d, 0x388
lea rcx, [rbp + 0xa0]
call fcn.14006ba60
mov rax, qword [rbx]
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call qword [rax + 0x78]
cmp qword [rbp + 0xb8], r13
setne al
test al, al
jne 0x140018459
mov rcx, r14
call fcn.140030a80
xor eax, eax
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140068fb0
mov rbx, qword [rsp + 0x598]
add rsp, 0x540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret