Function at 0x140005ad0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14004a040]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rcx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], r12
mov r8, 0xffffffffffffffff
inc r8
cmp word [r14 + r8*2], r12w
jne 0x140005b25
mov rdx, r14
lea rcx, [rbp + 0x20]
call fcn.14000c000
nop
lea r8, [rbp + 0x20]
lea rcx, [rbp + 0x60]
call fcn.14000b8e0
nop
lea rdx, [0x140041850]
mov rcx, rax
call fcn.14000a7a0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x140005bc7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bc2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005f49
call fcn.140011900
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r12w
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x140005c18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005f4f
call fcn.140011900
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r12w
mov rbx, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rbx, rdi
je 0x140005cb8
nop dword [rax]
mov r8, rbx
lea rdx, [0x140041854]
lea rcx, [rbp + 0x40]
call fcn.14000b770
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x140005c62
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp]
call fcn.14000b310
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 7
jbe 0x140005caf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005caa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005f5b
call fcn.140011900
add rbx, 0x20
cmp rbx, rdi
jne 0x140005c40
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x70], 0x70
mov qword [rsp + 0x50], r12
lea r9, [rsp + 0x50]
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140011c68
mov rdi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140033dd0
mov qword [rbp - 8], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
lea edx, [r8 + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov ecx, eax
call fcn.140002ce0
nop
mov dword [rbp - 0x74], r12d
mov rax, qword [r15]
mov qword [rsp + 0x78], rax
mov rdx, qword [r15 + 0x10]
sub rdx, qword [r15 + 8]
sar rdx, 4
mov rax, r12
test rdx, rdx
cmovne rax, qword [r15 + 8]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], edx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0x18
lea r9, [rsp + 0x78]
xor edx, edx
mov r8d, 0x20009
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140005eff
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80004
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140005eb4
lea rax, vtable.Microsoft::WRL::Wrappers::HandleT_struct_Microsoft::WRL::Wrappers::HandleTraits::HANDLENullTraits_.0
mov qword [rsi], rax
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r12
mov rcx, qword [rsi + 8]
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rax
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x18], rax
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x58]
call fcn.140004f20
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140005e50
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp - 8]
call fcn.140011900
mov qword [rbp - 8], r12
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x140005e90
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005f55
call fcn.140011900
mov rax, rsi
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400118e0
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp + 0x40]
call fcn.140002ad0
nop
lea rdx, str.ERROR:
lea rcx, [0x14004b9a0]
call fcn.14000b410
mov rbx, rax
lea rcx, [rbp + 0x40]
call fcn.140002b90
mov rdx, rax
mov rcx, rbx
call fcn.14000b410
mov rcx, rax
call fcn.140009650
call fcn.1400185d4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x40]
call fcn.140002ad0
nop
lea rdx, str.ERROR:
lea rcx, [0x14004b9a0]
call fcn.14000b410
mov rbx, rax
lea rcx, [rbp + 0x40]
call fcn.140002b90
mov rdx, rax
mov rcx, rbx
call fcn.14000b410
mov rcx, rax
call fcn.140009650
call fcn.1400185d4
nop
call fcn.14001d3f4
nop
call fcn.14001d3f4
nop
call fcn.14001d3f4
nop
call fcn.14001d3f4
int3