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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x4e0
mov rax, qword [0x10001c110]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rdi, rdx
xor r12d, r12d
mov ebx, 0x206
lea rcx, [r11 - 0x446]
xor edx, edx
mov r8, rbx
mov rsi, r12
mov word [r11 - 0x448], r12w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x2c2]
mov r8, rbx
xor edx, edx
mov word [rsp + 0x2c0], r12w
call sub.msvcrt.dll_memset
lea r8d, [r12 + 0x6c]
lea rcx, [rsp + 0x44]
xor edx, edx
mov dword [rsp + 0x40], r12d
call sub.msvcrt.dll_memset
mov rbp, r12
mov qword [rsp + 0x30], r12
lea r15, [0x10001c770]
cmp rdi, r12
je 0x100006ec5
cmp qword [rdi + 0x20], r12
je 0x100006ec5
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x30]
call fcn.100014fec
mov rbp, qword [rsp + 0x30]
cmp eax, r12d
mov ebx, eax
jl 0x100006ed3
lea rcx, [0x100003fa8]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, 1
je 0x100006cbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov rcx, qword [0x10001c770]
cmp rcx, r15
je 0x100006ed3
test byte [rcx + 0x5c], 0x10
je 0x100006ed3
cmp byte [rcx + 0x59], 1
jb 0x100006ed3
lea edx, [r12 + 0x1d]
jmp 0x100006dd7
mov rcx, qword [rdi + 0x20]
mov r15d, 0x104
lea rax, [rsp + 0x2c0]
lea r8, [rsp + 0xb0]
mov r9d, r15d
xor edx, edx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.100007d64
cmp eax, r12d
mov ebx, eax
jge 0x100006d28
mov rcx, qword [rdi + 0x20]
lea rax, [rsp + 0x2c0]
lea r8, [rsp + 0xb0]
mov r9d, r15d
mov edx, 1
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.100007d64
cmp eax, r12d
mov ebx, eax
jl 0x100006ecc
lea rcx, [rsp + 0xb0]
call fcn.100015858
cmp al, r12b
je 0x100006d84
mov ebx, 0x80070005
mov rcx, qword [0x10001c770]
lea r15, [0x10001c770]
cmp rcx, r15
je 0x100006ed3
test byte [rcx + 0x5c], 0x10
je 0x100006ed3
cmp byte [rcx + 0x59], 1
jb 0x100006ed3
mov rcx, qword [rcx + 0x50]
lea r8, [0x100001f40]
mov edx, 0x1e
call fcn.100005014
jmp 0x100006ed3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rsi, rax
cmp rax, r12
jne 0x100006def
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov rcx, qword [0x10001c770]
lea r15, [0x10001c770]
cmp rcx, r15
je 0x100006ed3
test byte [rcx + 0x5c], 0x10
je 0x100006ed3
cmp byte [rcx + 0x59], 1
jb 0x100006ed3
mov edx, 0x1f
mov rcx, qword [rcx + 0x50]
lea r8, [0x100001f40]
mov r9d, ebx
call fcn.100005080
jmp 0x100006ed3
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x70
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x2c0]
mov dword [rsp + 0x44], 0xc600
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, r12d
jne 0x100006e7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov rcx, qword [0x10001c770]
lea r15, [0x10001c770]
cmp rcx, r15
je 0x100006ed3
test byte [rcx + 0x5c], 0x10
je 0x100006ed3
cmp byte [rcx + 0x59], 1
jb 0x100006ed3
mov rcx, qword [rcx + 0x50]
lea r8, [0x100001f40]
mov edx, 0x20
mov r9d, eax
call fcn.100005080
jmp 0x100006ed3
mov r9, qword [rsp + 0x78]
cmp r9, 0x20
jae 0x100006ecc
mov ebx, 0x80004005
mov rcx, qword [0x10001c770]
lea r15, [0x10001c770]
cmp rcx, r15
je 0x100006ed3
test byte [rcx + 0x5c], 0x10
je 0x100006ed3
cmp byte [rcx + 0x59], 1
jb 0x100006ed3
mov rcx, qword [rcx + 0x50]
lea r8, [0x100001f40]
mov edx, 0x21
call fcn.100005038
jmp 0x100006ed3
mov ebx, 0x80070057
jmp 0x100006ed3
lea r15, [0x10001c770]
lea rcx, [0x100003fa8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbp
call fcn.100015d5c
cmp rsi, r12
je 0x100006ef8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp ebx, r12d
jge 0x100006f2d
mov rcx, qword [0x10001c770]
cmp rcx, r15
je 0x100006f2d
test byte [rcx + 0x5c], 0x10
je 0x100006f2d
cmp byte [rcx + 0x59], 1
jb 0x100006f2d
mov rcx, qword [rcx + 0x50]
lea r8, [0x100001f40]
mov edx, 0x22
mov r9d, ebx
call fcn.100005080
mov eax, ebx
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.100017af0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rdi
ret