Function at 0x140023d10
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 [0x140069030]
xor rax, rsp
mov qword [rbp + 0xa40], rax
xor r12b, r12b
call fcn.140023030
test eax, eax
je 0x140024031
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140024031
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 0x140024028
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 0x140024028
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x30]
call fcn.14002a470
lea edx, [r13 + 0x4a]
lea rcx, [rbp - 0x60]
call fcn.1400144f0
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.14002a470
lea r8, [rbp + 0x30]
lea rdx, str.__s___d__c_timeout_60
lea rcx, [rbp + 0x240]
call fcn.140020d30
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 0x140023f99
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.1400235a0
mov edi, r13d
mov r14, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x78]
sub r14, rsi
sar r14, 2
test r14, r14
je 0x140023f30
mov rbx, rsi
mov edx, dword [rbx]
call fcn.1400232a0
test al, al
jne 0x140023fdf
inc edi
add rbx, 4
movsxd rax, edi
cmp rax, r14
jb 0x140023f13
test rsi, rsi
je 0x140023f75
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140023f6d
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024063
mov rcx, rsi
call fcn.140027b9c
inc r15d
cmp r15d, 0x14
jl 0x140023ed0
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 0x140023fd9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023fd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024069
call fcn.140027b9c
movzx eax, r12b
jmp 0x140024033
mov r12b, 1
test rsi, rsi
je 0x140023f82
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14002401b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024063
mov rcx, rsi
call fcn.140027b9c
jmp 0x140023f82
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0xa40]
xor rcx, rsp
call fcn.140027b50
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.14002e30c
nop
call fcn.14002e30c
int3