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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2200]
mov eax, 0x2300
call fcn.1401686c0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2338], rbx
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x21f0], rax
mov rbx, r8
mov rdi, rdx
cmp qword [rcx + 0x18], 8
jb 0x1400f629d
mov rax, qword [rcx]
jmp 0x1400f62a0
mov rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x104
lea r9, [rbp + 0x5b0]
mov r8d, 0x104
lea rdx, [rbp + 0x3a0]
call fcn.1400f60a0
mov r8d, 0x104
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor esi, esi
test eax, eax
jne 0x1400f6301
lea r8, [rbp + 0x3a0]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.14018fc10
jmp 0x1400f630f
cmp eax, 0x104
jl 0x1400f630f
mov word [rbp + 0x396], si
mov r8d, 0x208
lea rdx, [rbp + 0x9d0]
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400f6347
lea r8, [rbp + 0x5b0]
mov edx, 0x208
lea rcx, [rbp + 0x9d0]
call fcn.14018fc10
jmp 0x1400f6355
cmp eax, 0x208
jl 0x1400f6355
mov word [rbp + 0xdde], si
mov r9, rdi
mov r8d, 0x104
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
call fcn.1400f5e60
mov r9, rdi
mov r8d, 0xa08
lea rdx, [rbp + 0xde0]
lea rcx, [rbp + 0x9d0]
call fcn.1400f5e60
mov r9, rdi
mov r8d, 0x104
lea rdx, [rbp + 0x7c0]
mov rcx, rbx
call fcn.1400f5e60
mov dword [rsp + 0x28], 5
lea rax, [rbp + 0x7c0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xde0]
lea r8, [rbp - 0x80]
lea rdx, str.open
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
cmp eax, 0x20
jg 0x1400f65e7
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.1400280d0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400068d0
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400f6439
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140007680
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
mov r8d, 0x31
lea rdx, str.An_attempt_was_made_to_execute_the_below_command.
lea rcx, [rsp + 0x38]
call fcn.140006a00
mov r8d, 0x3b
lea rdx, str._n__________________________________________________________
lea rcx, [rsp + 0x38]
call fcn.140006a00
mov r8d, 0xa
lea rdx, str._nCommand:
lea rcx, [rsp + 0x38]
call fcn.140006a00
cmp word [rbp - 0x80], 0
jne 0x1400f649d
mov r8, rsi
jmp 0x1400f64b0
lea rax, [rbp - 0x80]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400f64a5
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140006a00
mov r8d, InitCommonControls
lea rdx, str._nArguments:
lea rcx, [rsp + 0x38]
call fcn.140006a00
cmp word [rbp + 0xde0], 0
jne 0x1400f64e4
mov r8, rsi
jmp 0x1400f64fb
lea rax, [rbp + 0xde0]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400f64f0
lea rdx, [rbp + 0xde0]
lea rcx, [rsp + 0x38]
call fcn.140006a00
mov r8d, InitCommonControls
lea rdx, str._nError_Code:
lea rcx, [rsp + 0x38]
call fcn.140006a00
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14002aed0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400068d0
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400f6562
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140007680
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
mov r8d, 0x3b
lea rdx, str._n__________________________________________________________
lea rcx, [rsp + 0x38]
call fcn.140006a00
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r9d, 0x40
lea r8, str.ShellExecute___ERROR
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1400f65d1
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140007680
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
mov rax, rbx
mov rcx, qword [rbp + 0x21f0]
xor rcx, rsp
call fcn.140168660
mov rbx, qword [rsp + 0x2338]
add rsp, 0x2300
pop rdi
pop rsi
pop rbp
ret