Function at 0x140024700
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 [0x14006c030]
xor rax, rsp
mov qword [rbp + 0xa50], rax
xor r12b, r12b
call fcn.140023780
test eax, eax
je 0x140024a91
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140024a91
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 0x140024a88
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 0x140024a88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call fcn.14002aed0
lea edx, [r13 + 0x4a]
lea rcx, [rbp - 0x78]
call fcn.1400140d0
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.1400146d0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x14002484d
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024847
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024ac9
call fcn.1400285fc
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.14002aed0
lea r8, [rbp + 0x40]
lea rdx, str.__s___d__c_timeout_60
lea rcx, [rbp + 0x250]
call fcn.140021550
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 0x1400249f9
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.140023d70
mov edi, r13d
mov r14, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x78]
sub r14, rsi
sar r14, 2
test r14, r14
je 0x140024990
mov rbx, rsi
mov edx, dword [rbx]
call fcn.140023a70
test al, al
jne 0x140024a3f
inc edi
add rbx, 4
movsxd rax, edi
cmp rax, r14
jb 0x140024973
test rsi, rsi
je 0x1400249d5
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400249cd
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024ac3
mov rcx, rsi
call fcn.1400285fc
inc r15d
cmp r15d, 0x14
jl 0x140024930
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 0x140024a39
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024a34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024acf
call fcn.1400285fc
movzx eax, r12b
jmp 0x140024a93
mov r12b, 1
test rsi, rsi
je 0x1400249e2
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140024a7b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024ac3
mov rcx, rsi
call fcn.1400285fc
jmp 0x1400249e2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0xa50]
xor rcx, rsp
call fcn.1400285b0
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.14002ef48
nop
call fcn.14002ef48
int3
call fcn.14002ef48
int3