Function at 0x140024160
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 - 0xa50]
sub rsp, 0xb50
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rbp + 0xa40], rax
xor r12b, r12b
call fcn.140023480
test eax, eax
je 0x140024481
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140024481
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 0x140024478
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 0x140024478
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x30]
call fcn.14002a960
lea edx, [r13 + 0x4a]
lea rcx, [rbp - 0x60]
call fcn.140014550
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov r8d, 0x104
lea rdx, [rbp + 0x30]
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 - 0x40], 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
mov qword [rbp + 0x20], rax
mov dword [rbp - 0x40], 0x68
mov word [rbp], r13w
mov dword [rbp - 4], 1
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x240]
call fcn.14002a960
lea r8, [rbp + 0x30]
lea rdx, str.__s___d__c_timeout_60
lea rcx, [rbp + 0x240]
call fcn.140021160
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
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 + 0x240]
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400243e9
mov r15d, r13d
nop dword [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.1400239f0
mov edi, r13d
mov r14, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x78]
sub r14, rsi
sar r14, 2
test r14, r14
je 0x140024380
mov rbx, rsi
mov edx, dword [rbx]
call fcn.1400236f0
test al, al
jne 0x14002442f
inc edi
add rbx, 4
movsxd rax, edi
cmp rax, r14
jb 0x140024363
test rsi, rsi
je 0x1400243c5
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400243bd
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400244b3
mov rcx, rsi
call fcn.140027ffc
inc r15d
cmp r15d, 0x14
jl 0x140024320
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 - 0x48]
cmp rdx, 8
jb 0x140024429
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024424
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400244b9
call fcn.140027ffc
movzx eax, r12b
jmp 0x140024483
mov r12b, 1
test rsi, rsi
je 0x1400243d2
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14002446b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400244b3
mov rcx, rsi
call fcn.140027ffc
jmp 0x1400243d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0xa40]
xor rcx, rsp
call fcn.140027fa0
lea r11, [rsp + 0xb50]
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.14002e938
nop
call fcn.14002e938
int3