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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa60]
sub rsp, 0xb60
mov rax, qword [0x140063030]
xor rax, rsp
mov qword [rbp + 0xa50], rax
xor r12b, r12b
call fcn.140020ce0
test eax, eax
je 0x140021ef1
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140021ef1
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
lea r8, [rsp + 0x60]
lea edx, [r13 + 0xa]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140021ee8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r9d, [r13 + 2]
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140021ee8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call fcn.140026e20
lea edx, [r13 + 0x45]
lea rcx, [rbp - 0x78]
call fcn.1400140c0
nop
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
add r8, rdx
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.1400146e0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140021cad
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021ca7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021f29
call fcn.14002453c
nop
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
mov r8d, 0x104
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
mov qword [rbp + 0x30], rax
mov dword [rbp - 0x30], 0x68
mov word [rbp + 0x10], r13w
mov dword [rbp + 0xc], 1
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x250]
call fcn.140026e20
lea r8, [rbp + 0x40]
lea rdx, str.__s___d__c_timeout_60
lea rcx, [rbp + 0x250]
call fcn.140021f40
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rbp + 0x250]
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140021e59
mov r15d, r13d
nop word [rax + rax]
mov edx, 0xbb8
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov qword [rbp - 0x68], r13
mov r8d, dword [rbp - 0x80]
lea rdx, [rbp - 0x78]
call fcn.1400212d0
mov edi, r13d
mov r14, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x78]
sub r14, rsi
sar r14, 2
test r14, r14
je 0x140021df0
mov rbx, rsi
mov edx, dword [rbx]
call fcn.140020fd0
test al, al
jne 0x140021e9f
inc edi
add rbx, 4
movsxd rax, edi
cmp rax, r14
jb 0x140021dd3
test rsi, rsi
je 0x140021e35
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140021e2d
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021f23
mov rcx, rsi
call fcn.14002453c
inc r15d
cmp r15d, 0x14
jl 0x140021d90
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140021e99
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021e94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021f2f
call fcn.14002453c
movzx eax, r12b
jmp 0x140021ef3
mov r12b, 1
test rsi, rsi
je 0x140021e42
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140021edb
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021f23
mov rcx, rsi
call fcn.14002453c
jmp 0x140021e42
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0xa50]
xor rcx, rsp
call fcn.1400244f0
lea r11, [rsp + 0xb60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14002ae98
nop
call fcn.14002ae98
int3
call fcn.14002ae98
int3