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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movaps xmmword [rsp + 0x230], xmm6
mov rdi, r8
mov r14, rdx
mov r12, rcx
mov rax, qword [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x228], rax
cmp byte [r8 + 0x21], 0
jne 0x1400891ea
movabs r15, 0xaaaaaaaaaaaaaaaa
mov al, byte [0x1403af430]
xor ebx, ebx
mov byte [rsp + 0x5f], al
test al, 0x19
jne 0x140089241
mov qword [rsp + 0x78], r15
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r15
lea rsi, [rsp + 0x190]
mov qword [rsi + 0x10], r15
movaps xmm6, xmmword [0x14033b990]
movaps xmmword [rsi], xmm6
lea rdx, str.LaunchProcess
lea r8, str..._.._base_process_launch_win.cc
lea rbp, [rsp + 0x100]
mov rcx, rbp
mov r9d, 0x104
call fcn.14017e5b0
lea r8, [0x1403b6b08]
mov rcx, rsi
mov rdx, rbp
call fcn.1400f1ed0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x210], xmm0
mov qword [rbp + 0x70], r15
movaps xmmword [rbp + 0x60], xmm6
movaps xmmword [rbp + 0x50], xmm6
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rcx, [rsp + 0x100]
call fcn.1400f2170
cmp byte [rdi + 0x72], 0
je 0x140088d27
call fcn.140195140
xor ebx, ebx
cmp eax, 0x10
setge bl
mov qword [rsp + 0x60], r12
mov rax, qword [rdi + 0x28]
xor edx, edx
cmp rax, qword [rdi + 0x30]
setne dl
add edx, ebx
je 0x1400892aa
lea rcx, [rsp + 0x100]
call fcn.1400f21f0
mov r12d, 0x80000
test al, al
je 0x14008912e
cmp byte [rdi + 0x72], 0
je 0x140088d99
call fcn.140195140
cmp eax, 0x10
jl 0x140088d99
lea r8, [rsp + 0x210]
or byte [r8 + 0xb], 0x20
lea rcx, [rsp + 0x100]
mov edx, 0x20007
mov r9d, 0x10
call fcn.1400f22c0
test al, al
je 0x14008912e
cmp dword [rdi + 0x24], 1
sete sil
mov rbx, qword [rdi + 0x28]
mov rbp, qword [rdi + 0x30]
cmp rbx, rbp
je 0x140088e25
mov rax, rbp
sub rax, rbx
mov ecx, 0xfffffff8
cmp rax, rcx
ja 0x14008912e
mov rsi, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea r15, str..._.._base_process_launch_win.cc
lea r13, [rsp + 0x1b0]
mov rcx, qword [rbx]
mov edx, 1
mov r8d, 1
call rsi
test eax, eax
je 0x140089146
add rbx, 8
cmp rbx, rbp
jne 0x140088dd8
mov r9d, dword [rdi + 0x30]
mov r8, qword [rdi + 0x28]
sub r9d, r8d
and r9d, 0xfffffff8
lea rcx, [rsp + 0x100]
mov edx, 0x20002
call fcn.1400f22c0
mov sil, 1
test al, al
je 0x14008912e
cmp byte [rdi + 0x22], 0
jne 0x1400892b2
cmp byte [rdi + 0x48], 0
jne 0x1400892bf
mov eax, dword [rsp + 0x144]
mov ecx, eax
or ecx, 1
mov dword [rsp + 0x144], ecx
movzx ecx, byte [rdi + 0x20]
xor ecx, 1
mov word [rsp + 0x148], cx
mov rcx, qword [rdi + 0x58]
mov rdx, qword [rdi + 0x60]
mov rbp, qword [rdi + 0x68]
test rcx, rcx
jne 0x14008916c
test rdx, rdx
jne 0x14008916c
test rbp, rbp
jne 0x14008916c
cmp qword [rdi + 0x50], 0
jne 0x1400890a9
mov r15d, r12d
or r15d, 0x1000000
cmp byte [rdi + 0x70], 0
cmove r15d, r12d
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], 0
movzx eax, byte [rdi + 0x1f]
test al, al
jns 0x140088ec8
mov rax, qword [rdi + 0x10]
mov rbp, qword [rdi + 8]
jmp 0x140088ecc
lea rbp, [rdi + 8]
test rax, rax
cmove rbp, rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xd0], r12
movaps xmmword [rsp + 0xc0], xmm6
cmp byte [r14 + 0x17], 0
jns 0x1400892d3
mov rdx, qword [r14]
mov r8, qword [r14 + 8]
lea rcx, [rsp + 0xc0]
call fcn.14017ada0
lea r13, [rsp + 0x108]
mov rdx, qword [rdi + 0x40]
test rdx, rdx
jne 0x1400892f0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1b0], xmm0
mov qword [rsp + 0x1c0], 0
mov al, byte [rdi + 0x90]
test al, al
jne 0x140089195
cmp qword [rdi + 0x88], 0
jne 0x140089195
xor eax, eax
movzx ecx, sil
cmp byte [rsp + 0xd7], 0
jns 0x140088f6e
mov rdx, qword [rsp + 0xc0]
jmp 0x140088f76
lea rdx, [rsp + 0xc0]
lea rbx, [rsp + 0xe0]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], ecx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14008933d
cmp byte [rsp + 0x1c7], 0
js 0x14008936e
lea rcx, [rsp + 0xa0]
mov qword [rcx + 0x10], r12
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0xe0]
call fcn.1400e88e0
mov rcx, qword [rdi + 0x50]
test rcx, rcx
jne 0x1400890c5
cmp byte [rdi + 0x71], 0
jne 0x140089380
cmp byte [rdi], 0
jne 0x14008939a
mov edx, dword [rsp + 0xb0]
mov rcx, qword [0x1403bd5e8]
test rcx, rcx
mov bl, byte [rsp + 0x5f]
jne 0x14008940b
lea rcx, [rsp + 0xa0]
call fcn.1400e8ac0
mov r12, qword [rsp + 0x60]
mov rcx, r12
mov rdx, rax
call fcn.140189030
lea rcx, [rsp + 0xa0]
call fcn.1400e8a10
cmp byte [rsp + 0xd7], 0
jns 0x140089057
mov rcx, qword [rsp + 0xc0]
call fcn.1401cfdbc
lea rcx, [rsp + 0x100]
call fcn.1400f21b0
lea rcx, [rsp + 0x190]
call fcn.1400f2000
test bl, 0x19
jne 0x140089418
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1401d1390
mov rax, r12
movaps xmm6, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140195140
lea ecx, [r12 + 0x1000000]
cmp eax, 5
cmovge ecx, r12d
mov r12d, ecx
jmp 0x140088e8d
mov rdx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x140088fe8
lea rsi, [rsp + 0x1b0]
movaps xmmword [rsi], xmm6
lea rcx, [rsp + 0xa0]
call fcn.1400e8ac0
mov rcx, rsi
mov rdx, rax
call fcn.140189030
mov rcx, rsi
mov edx, 1
mov r8b, 1
call fcn.140244cc0
mov r12, qword [rsp + 0x60]
mov rcx, r12
xor edx, edx
call fcn.140189030
mov rcx, rsi
call fcn.1401890b0
mov bl, byte [rsp + 0x5f]
jmp 0x140089033
mov r12, qword [rsp + 0x60]
mov rcx, r12
xor edx, edx
call fcn.140189030
mov bl, byte [rsp + 0x5f]
jmp 0x140089057
mov rcx, r13
mov rdx, r15
mov r8d, 0x13f
call fcn.1402ad1e0
mov rcx, r13
call fcn.1402ad110
mov rcx, r13
call fcn.1402ad120
jmp 0x140088df0
or eax, 0x101
mov dword [rsp + 0x144], eax
mov qword [rsp + 0x158], rcx
mov qword [rsp + 0x160], rdx
mov qword [rsp + 0x168], rbp
jmp 0x140088e82
test al, al
je 0x140089453
lea r8, [rdi + 0x78]
lea rdx, [0x140345b90]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1402ad200
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x1c0], rax
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x1b0], xmm0
cmp byte [rsp + 0x1c7], 0
jns 0x14008943f
mov rax, qword [rsp + 0x1b0]
jmp 0x140089447
mov sil, byte [rdi]
mov dil, byte [rdi + 0x20]
movzx eax, byte [r14 + 0x17]
test al, al
mov rcx, qword [r14]
cmovns rcx, r14
lea rdx, [rsp + 0x180]
mov qword [rdx], rcx
cmovs rax, qword [r14 + 8]
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x100]
mov rcx, rbx
call fcn.14023c4d0
mov rcx, r12
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call fcn.140244720
mov rcx, rbx
call fcn.140077c30
jmp 0x14008907a
call sub.KERNEL32.dll_GetCurrentThreadId
mov esi, eax
lea rbp, [rsp + 0x100]
mov qword [rbp], r15
mov rcx, rbp
call fcn.14018be60
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x1403af430]
lea r8, str.LaunchProcess
mov cl, 0x58
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], r8
xor r9d, r9d
call fcn.14018ccf0
mov qword [rsp + 0x70], rax
jmp 0x140088c90
xor r12d, r12d
jmp 0x140088d5c
or byte [rsp + 0x144], 0x80
jmp 0x140088e2f
lea rax, [0x14033d5ca]
mov qword [rsp + 0x118], rax
jmp 0x140088e39
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0xd0], rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0xc0], xmm0
jmp 0x140088f0c
lea rcx, [rsp + 0x1b0]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x140089502
or r15d, 0x400
mov rdx, qword [rsp + 0x1b0]
movzx eax, sil
cmp byte [rsp + 0xd7], 0
jns 0x1400894a6
mov r8, qword [rsp + 0xc0]
jmp 0x1400894ae
mov rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.140189030
cmp byte [rsp + 0x1c7], 0
jns 0x140089360
mov rcx, qword [rsp + 0x1b0]
call fcn.1401cfdbc
mov r12, qword [rsp + 0x60]
mov bl, byte [rsp + 0x5f]
jmp 0x140089040
mov rcx, qword [rsp + 0x1b0]
call fcn.1401cfdbc
jmp 0x140088fbf
mov rcx, qword [rsp + 0xa0]
call fcn.1400eac50
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x140088ff2
lea rsi, [rsp + 0x1b0]
mov qword [rsi + 0x50], r12
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.LaunchProcess
lea r8, str..._.._base_process_launch_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r9d, 0x1bc
call fcn.14017e5b0
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.140186270
mov rcx, qword [rsp + 0xa0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call fcn.1401862d0
jmp 0x140088ffb
mov r8, r14
call fcn.1402a68f0
jmp 0x140089016
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x14008907a
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
call fcn.14018d890
jmp 0x14008907a
lea rax, [rsp + 0x1b0]
or r15d, 0x400
jmp 0x140088f56
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140089502
mov rbx, rax
lea r8, [rdi + 0x78]
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.1402ad200
lea rcx, [rsp + 0x80]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x1c0], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x1b0], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400891cf
lea r8, [rsp + 0xc0]
mov rcx, qword [rdi + 0x40]
lea rbx, [rsp + 0xe0]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov rcx, qword [rsp + 0x1b0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
jne 0x140088fbf
mov r12, qword [rsp + 0x60]
mov rcx, r12
xor edx, edx
call fcn.140189030
jmp 0x140089365