Function at 0x140023cc0
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 [0x14006b030]
xor rax, rsp
mov qword [rbp + 0xa40], rax
xor r12b, r12b
call fcn.140022fe0
test eax, eax
je 0x140023fe1
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140023fe1
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 0x140023fd8
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 0x140023fd8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x30]
call fcn.14002a410
lea edx, [r13 + 0x4a]
lea rcx, [rbp - 0x60]
call fcn.140014500
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.14002a410
lea r8, [rbp + 0x30]
lea rdx, str.__s___d__c_timeout_60
lea rcx, [rbp + 0x240]
call fcn.140020ce0
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 0x140023f49
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.140023550
mov edi, r13d
mov r14, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x78]
sub r14, rsi
sar r14, 2
test r14, r14
je 0x140023ee0
mov rbx, rsi
mov edx, dword [rbx]
call fcn.140023250
test al, al
jne 0x140023f8f
inc edi
add rbx, 4
movsxd rax, edi
cmp rax, r14
jb 0x140023ec3
test rsi, rsi
je 0x140023f25
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140023f1d
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024013
mov rcx, rsi
call fcn.140027b3c
inc r15d
cmp r15d, 0x14
jl 0x140023e80
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 0x140023f89
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023f84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024019
call fcn.140027b3c
movzx eax, r12b
jmp 0x140023fe3
mov r12b, 1
test rsi, rsi
je 0x140023f32
mov rax, qword [rbp - 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140023fcb
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024013
mov rcx, rsi
call fcn.140027b3c
jmp 0x140023f32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0xa40]
xor rcx, rsp
call fcn.140027af0
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.14002e488
nop
call fcn.14002e488
int3