Function at 0x18004e9d8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x200
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r14, rdx
mov r15, rcx
xor edi, edi
mov dword [rsp + 0x50], edi
mov rax, qword [rcx + 0xd8]
mov rbx, qword [rax + 8]
mov qword [rbp + 0x140], rbx
mov rcx, qword [rax]
mov qword [rbp + 0x68], rcx
lea r12, [r15 + 0x80]
mov edx, dword [r12]
test edx, edx
jne 0x18004eaf7
cmp byte [rcx + 0x40], dil
je 0x18004ea59
cmp qword [rcx + 0x30], rdi
jne 0x18004ea59
cmp qword [rcx + 0x18], 0x10
jb 0x18004ea54
mov rax, qword [rcx]
jmp 0x18004ea7d
mov rax, rcx
jmp 0x18004ea7d
cmp qword [rcx + 0x18], 0x10
jb 0x18004ea65
mov rax, qword [rcx]
jmp 0x18004ea68
mov rax, rcx
mov qword [r15 + 0xc8], rax
lea rax, [rcx + 0x20]
cmp qword [rax + 0x18], 0x10
jb 0x18004ea7d
mov rax, qword [rax]
mov qword [r15 + 0xc0], rax
test edx, edx
jne 0x18004eaf7
mov rax, qword [rcx + 0x48]
cmp byte [rax], dil
jne 0x18004eae0
call fcn.18004a5a4
mov dword [rsp + 0x60], 0xa
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r8, str.Empty_Environment
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x18]
call fcn.180007cb0
nop
lea rax, [0x1800fa328]
mov qword [rbp + 0x18], rax
lea rdx, [0x180131288]
lea rcx, [rbp + 0x18]
call fcn.1800a8e80
nop
mov qword [r15 + 0xd0], rax
test edx, edx
jne 0x18004eaf7
mov rdx, r15
mov rcx, qword [rbx + 8]
call fcn.1800519f0
cmp dword [r12], edi
jne 0x18004eb09
mov rdx, r15
mov rcx, qword [rbx + 0x10]
call fcn.1800520f8
mov rbx, qword [rbx + 0x18]
mov esi, 1
cmp dword [r12], edi
jne 0x18004eb56
mov r8d, esi
mov edx, esi
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rcx, qword [r15 + 0x78]
mov rax, qword [rbx + 8]
mov qword [rcx + 0x50], rax
mov rax, qword [r15 + 0x78]
bts dword [rax + 0x3c], 8
mov dword [r15 + 0xb0], esi
cmp dword [r12], edi
jne 0x18004eb56
mov rax, qword [r15 + 0x78]
or dword [rax + 0x3c], esi
cmp dword [r12], edi
je 0x18004eba1
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r12
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0x80], xmm0
mov rcx, qword [r15 + 0xd8]
call fcn.18004f46c
mov qword [r14], rdi
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rdi
lea rcx, [r14 + 0x18]
call fcn.18004da88
nop
mov word [r14 + 0x28], 1
mov dword [rsp + 0x50], esi
mov rax, r14
jmp 0x18004ee45
mov rax, qword [r15 + 0x78]
mov r10, qword [r15 + 0xb8]
mov r11, qword [r15 + 0xd0]
mov ebx, dword [r15]
mov edi, dword [r15 + 0xb0]
lea rsi, [r15 + 0xe0]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
mov r9, qword [r15 + 0xa8]
mov r8, qword [r15 + 0xa0]
mov rdx, qword [r15 + 0xc0]
mov rcx, qword [r15 + 0xc8]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r13d, eax
movups xmm1, xmmword [rsi]
movdqu xmmword [rbp], xmm1
movsd xmm0, qword [rsi + 0x10]
movsd qword [rbp + 0x10], xmm0
movups xmmword [rsp + 0x70], xmm1
movsd qword [rbp - 0x80], xmm0
movdqa xmm0, xmmword [0x1800fdc50]
movdqu xmmword [rbp], xmm0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov rdi, qword [r15 + 0x98]
mov rsi, qword [r15 + 0x90]
test rdi, rdi
je 0x18004ec81
lock inc dword [rdi + 8]
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x18004ec81
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18004ec81
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18004ec81
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x78], rsi
mov esi, 1
mov word [rbp - 0x68], si
xor edi, edi
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13d, r13d
je 0x18004ee00
mov dword [r12], edi
call fcn.18004a5a4
mov qword [r12 + 8], rax
mov rbx, qword [r15 + 0xd8]
mov rbx, qword [rbx + 8]
mov r8, qword [rbx + 8]
cmp dword [r12], edi
jne 0x18004ecfa
mov r8, qword [r8 + 0x10]
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
add r8, 0x68
lea r9, [rbp - 0x60]
lea rdx, [rbp + 0xb0]
call fcn.18004b3bc
mov r8, qword [rbx + 0x10]
cmp dword [r12], edi
jne 0x18004ed2a
mov r8, qword [r8 + 0x10]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdi
add r8, 0x68
lea r9, [rbp - 0x48]
lea rdx, [rbp + 0xc8]
call fcn.18004b3bc
mov r8, qword [rbx + 0x18]
cmp dword [r12], edi
jne 0x18004ed60
mov r8, qword [r8 + 0x10]
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdi
add r8, 8
lea r9, [rbp - 0x30]
lea rdx, [rbp + 0xe0]
call fcn.18004b3bc
cmp dword [r12], edi
je 0x18004edb2
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r12
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0x90], xmm0
mov rcx, qword [r15 + 0xd8]
call fcn.18004f46c
mov qword [r14], rdi
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rdi
lea rcx, [r14 + 0x18]
call fcn.18004da88
nop
mov word [r14 + 0x28], 1
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0x70]
call fcn.18004b918
jmp 0x18004eb99
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [r14], xmm0
movsd xmm1, qword [rbp - 0x80]
movsd qword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x1800fdc50]
movdqu xmmword [rsp + 0x70], xmm0
mov rax, qword [rbp - 0x78]
mov qword [r14 + 0x18], rax
mov rax, qword [rbp - 0x70]
mov qword [r14 + 0x20], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov al, byte [rbp - 0x68]
mov byte [r14 + 0x28], al
mov al, byte [rbp - 0x67]
mov byte [r14 + 0x29], al
mov byte [rbp - 0x68], dil
jmp 0x18004ed9f
lea rcx, [rbp + 0xa0]
call fcn.18004a680
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x10], xmm0
lea r8, str._CreateProcess_failed
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x40]
call fcn.180007cb0
nop
lea rax, [0x1800fa328]
mov qword [rbp + 0x40], rax
lea rdx, [0x180131288]
lea rcx, [rbp + 0x40]
call fcn.1800a8e80
nop
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret