Function at 0x140058550
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 [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x228], rax
cmp byte [r8 + 0x21], 0
jne 0x140058b1a
movabs r15, 0xaaaaaaaaaaaaaaaa
mov al, byte [0x140134110]
xor ebx, ebx
mov byte [rsp + 0x5f], al
test al, 0x19
jne 0x140058b71
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 [0x1401161a0]
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.1400747c0
lea r8, [0x14013b0e0]
mov rcx, rsi
mov rdx, rbp
call fcn.1400603f0
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.140060680
cmp byte [rdi + 0x72], 0
je 0x140058657
call fcn.14007f0b0
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 0x140058bda
lea rcx, [rsp + 0x100]
call fcn.140060700
mov r12d, 0x80000
test al, al
je 0x140058a5e
cmp byte [rdi + 0x72], 0
je 0x1400586c9
call fcn.14007f0b0
cmp eax, 0x10
jl 0x1400586c9
lea r8, [rsp + 0x210]
or byte [r8 + 0xb], 0x20
lea rcx, [rsp + 0x100]
mov edx, 0x20007
mov r9d, 0x10
call fcn.1400607d0
test al, al
je 0x140058a5e
cmp dword [rdi + 0x24], 1
sete sil
mov rbx, qword [rdi + 0x28]
mov rbp, qword [rdi + 0x30]
cmp rbx, rbp
je 0x140058755
mov rax, rbp
sub rax, rbx
mov ecx, 0xfffffff8
cmp rax, rcx
ja 0x140058a5e
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 0x140058a76
add rbx, 8
cmp rbx, rbp
jne 0x140058708
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.1400607d0
mov sil, 1
test al, al
je 0x140058a5e
cmp byte [rdi + 0x22], 0
jne 0x140058be2
cmp byte [rdi + 0x48], 0
jne 0x140058bef
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 0x140058a9c
test rdx, rdx
jne 0x140058a9c
test rbp, rbp
jne 0x140058a9c
cmp qword [rdi + 0x50], 0
jne 0x1400589d9
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 0x1400587f8
mov rax, qword [rdi + 0x10]
mov rbp, qword [rdi + 8]
jmp 0x1400587fc
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 0x140058c03
mov rdx, qword [r14]
mov r8, qword [r14 + 8]
lea rcx, [rsp + 0xc0]
call fcn.140072400
lea r13, [rsp + 0x108]
mov rdx, qword [rdi + 0x40]
test rdx, rdx
jne 0x140058c20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1b0], xmm0
mov qword [rsp + 0x1c0], 0
mov al, byte [rdi + 0x90]
test al, al
jne 0x140058ac5
cmp qword [rdi + 0x88], 0
jne 0x140058ac5
xor eax, eax
movzx ecx, sil
cmp byte [rsp + 0xd7], 0
jns 0x14005889e
mov rdx, qword [rsp + 0xc0]
jmp 0x1400588a6
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 0x140058c6d
cmp byte [rsp + 0x1c7], 0
js 0x140058c9e
lea rcx, [rsp + 0xa0]
mov qword [rcx + 0x10], r12
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0xe0]
call fcn.140061130
mov rcx, qword [rdi + 0x50]
test rcx, rcx
jne 0x1400589f5
cmp byte [rdi + 0x71], 0
jne 0x140058cb0
cmp byte [rdi], 0
jne 0x140058cca
mov edx, dword [rsp + 0xb0]
mov rcx, qword [0x14013d538]
test rcx, rcx
mov bl, byte [rsp + 0x5f]
jne 0x140058d3b
lea rcx, [rsp + 0xa0]
call fcn.140061310
mov r12, qword [rsp + 0x60]
mov rcx, r12
mov rdx, rax
call fcn.140078640
lea rcx, [rsp + 0xa0]
call fcn.140061260
cmp byte [rsp + 0xd7], 0
jns 0x140058987
mov rcx, qword [rsp + 0xc0]
call fcn.140089540
lea rcx, [rsp + 0x100]
call fcn.1400606c0
lea rcx, [rsp + 0x190]
call fcn.140060520
test bl, 0x19
jne 0x140058d48
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14008a8f0
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.14007f0b0
lea ecx, [r12 + 0x1000000]
cmp eax, 5
cmovge ecx, r12d
mov r12d, ecx
jmp 0x1400587bd
mov rdx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x140058918
lea rsi, [rsp + 0x1b0]
movaps xmmword [rsi], xmm6
lea rcx, [rsp + 0xa0]
call fcn.140061310
mov rcx, rsi
mov rdx, rax
call fcn.140078640
mov rcx, rsi
mov edx, 1
mov r8b, 1
call fcn.1400dec20
mov r12, qword [rsp + 0x60]
mov rcx, r12
xor edx, edx
call fcn.140078640
mov rcx, rsi
call fcn.1400786c0
mov bl, byte [rsp + 0x5f]
jmp 0x140058963
mov r12, qword [rsp + 0x60]
mov rcx, r12
xor edx, edx
call fcn.140078640
mov bl, byte [rsp + 0x5f]
jmp 0x140058987
mov rcx, r13
mov rdx, r15
mov r8d, 0x13f
call fcn.1400e4780
mov rcx, r13
call fcn.1400e46b0
mov rcx, r13
call fcn.1400e46c0
jmp 0x140058720
or eax, 0x101
mov dword [rsp + 0x144], eax
mov qword [rsp + 0x158], rcx
mov qword [rsp + 0x160], rdx
mov qword [rsp + 0x168], rbp
jmp 0x1400587b2
test al, al
je 0x140058d83
lea r8, [rdi + 0x78]
lea rdx, [0x1401194f8]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1400e47a0
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 0x140058d6f
mov rax, qword [rsp + 0x1b0]
jmp 0x140058d77
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.1400dc2c0
mov rcx, r12
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call fcn.1400de8d0
mov rcx, rbx
call fcn.1400521d0
jmp 0x1400589aa
call sub.KERNEL32.dll_GetCurrentThreadId
mov esi, eax
lea rbp, [rsp + 0x100]
mov qword [rbp], r15
mov rcx, rbp
call fcn.14007b340
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, [0x140134110]
lea r8, str.LaunchProcess
mov cl, 0x58
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], r8
xor r9d, r9d
call fcn.14007c000
mov qword [rsp + 0x70], rax
jmp 0x1400585c0
xor r12d, r12d
jmp 0x14005868c
or byte [rsp + 0x144], 0x80
jmp 0x14005875f
lea rax, [0x140116d6c]
mov qword [rsp + 0x118], rax
jmp 0x140058769
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0xd0], rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0xc0], xmm0
jmp 0x14005883c
lea rcx, [rsp + 0x1b0]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x140058e32
or r15d, 0x400
mov rdx, qword [rsp + 0x1b0]
movzx eax, sil
cmp byte [rsp + 0xd7], 0
jns 0x140058dd6
mov r8, qword [rsp + 0xc0]
jmp 0x140058dde
mov rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.140078640
cmp byte [rsp + 0x1c7], 0
jns 0x140058c90
mov rcx, qword [rsp + 0x1b0]
call fcn.140089540
mov r12, qword [rsp + 0x60]
mov bl, byte [rsp + 0x5f]
jmp 0x140058970
mov rcx, qword [rsp + 0x1b0]
call fcn.140089540
jmp 0x1400588ef
mov rcx, qword [rsp + 0xa0]
call fcn.14005ea70
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x140058922
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.1400747c0
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.140077b30
mov rcx, qword [rsp + 0xa0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call fcn.140077b90
jmp 0x14005892b
mov r8, r14
call fcn.1400e2d60
jmp 0x140058946
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x1400589aa
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
call fcn.14007cba0
jmp 0x1400589aa
lea rax, [rsp + 0x1b0]
or r15d, 0x400
jmp 0x140058886
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140058e32
mov rbx, rax
lea r8, [rdi + 0x78]
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.1400e47a0
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 0x140058aff
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 0x1400588ef
mov r12, qword [rsp + 0x60]
mov rcx, r12
xor edx, edx
call fcn.140078640
jmp 0x140058c95