Function at 0x18000df50
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1800620a0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r14, r8
mov rbx, rdx
mov r15, rcx
xor r12d, r12d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.180018440
mov r8d, 0x104
lea rdx, [rbp + 0x180]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x18000e3f2
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
mov qword [rbp + 0x130], r12
mov qword [rbp + 0x138], r12
lea rax, [rbp + 0x180]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x18000dfe0
movabs rsi, 0x7ffffffffffffffe
cmp rbx, rsi
ja 0x18000e419
mov qword [rbp + 0x138], 7
cmp rbx, 8
jae 0x18000e039
mov qword [rbp + 0x130], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x120]
call fcn.180017da0
mov word [rbp + rbx + 0x120], r12w
jmp 0x18000e096
mov rax, rbx
or rax, 7
cmp rax, rsi
ja 0x18000e054
mov rsi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rsi, rcx
lea rdx, [rsi + 1]
lea rcx, [rbp + 0x120]
call fcn.180010cd0
mov rdi, rax
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x130], rbx
mov qword [rbp + 0x138], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x180]
mov rcx, rax
call fcn.180017da0
mov word [rbx + rdi], r12w
movups xmm1, xmmword [r14]
mov rsi, qword [rbp + 0x130]
mov rcx, qword [rbp + 0x138]
mov rax, rcx
sub rax, rsi
mov rdi, qword [r14 + 8]
cmp rdi, rax
ja 0x18000e0f2
lea rax, [rdi + rsi]
mov qword [rbp + 0x130], rax
lea rbx, [rbp + 0x120]
cmp rcx, 8
cmovae rbx, qword [rbp + 0x120]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
movq rdx, xmm1
call fcn.180017da0
lea rax, [rdi + rsi]
mov word [rbx + rax*2], r12w
jmp 0x18000e111
mov qword [rsp + 0x20], rdi
movq r9, xmm1
movzx r8d, byte [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x120]
call fcn.180006950
lea rdx, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rdx, qword [rbp + 0x120]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
lea rcx, [rbp + 0x10]
call fcn.18000bcf0
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rdi
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xc], edx
cmp qword [rbp + 0x98], 0
je 0x18000e34a
mov rdx, qword [r15]
mov r8d, dword [rdx]
add rdx, 4
lea rcx, [rbp + 0x10]
call fcn.1800138d0
lea rcx, [rbp + 0x18]
call fcn.180010e50
test rax, rax
jne 0x18000e1ca
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x58], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x20]
and eax, 0x17
mov dword [rbp + rcx + 0x20], eax
mov edx, dword [rbp + rcx + 0x24]
and edx, eax
jne 0x18000e41f
mov dword [rbp - 0x60], 0x68
mov qword [rbp - 0x58], r12
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov dword [rbp - 0x20], r12d
mov qword [rbp - 0x18], r12
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp], r12
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 0x78], xmm1
mov qword [rbp - 0x68], rax
lea rax, str.msiexec.exe__i___
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x13
lea rax, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rax, qword [rbp + 0x120]
mov qword [rbp + 0x170], rax
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x178], rax
movabs rax, 0xc000000000000000
mov qword [rbp + 0x168], rax
mov qword [rsp + 0x70], 1
lea rax, [rbp + 0x168]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x140]
call fcn.18000af70
lea rdx, [rbp + 0x140]
cmp qword [rbp + 0x158], 8
cmovae rdx, qword [rbp + 0x140]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov rdx, qword [rbp + 0x158]
cmp rdx, 8
jb 0x18000e331
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e32c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e477
call fcn.180015c50
test ebx, ebx
je 0x18000e34a
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x10], rdi
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xc], edx
lea rcx, [rbp + 0x18]
call fcn.18000c890
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0xc], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xb8], rax
lea rcx, [rbp + 0xb8]
call fcn.180015700
nop
mov rdx, qword [rbp + 0x138]
cmp rdx, 8
jb 0x18000e3f2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e3ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e413
call fcn.180015c50
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.180016210
add rsp, 0x4a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18001c58c
int3
call fcn.18000f560
nop
test dl, 4
je 0x18000e42d
lea rbx, str.ios_base::badbit_set
jmp 0x18000e442
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.180012e40
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x140]
call fcn.18000c410
lea rdx, [0x1800602e0]
lea rcx, [rbp + 0x140]
call fcn.180016f5c
int3
call fcn.18001c58c
int3