Function at 0x140002240
Capabilities:
Create process on windows
Enumerate processes
Execute command
Get token membership

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 - 0x280]
sub rsp, 0x380
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor esi, esi
mov dword [rsp + 0x60], esi
mov dword [rbp - 0x20], esi
mov word [rbp - 0x1c], 0x500
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x220
lea r8d, [rsi + 0x20]
mov dl, 2
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400022e8
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400022dd
mov dword [rsp + 0x60], esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], esi
jne 0x140002350
lea rdx, [0x1400049c0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400027f0
mov rcx, rax
lea rdx, [0x1400029c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140002ce0
lea r11, [rsp + 0x380]
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
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rax
mov dword [rbp + 0x30], 0x98
mov qword [rbp + 0x38], rsi
lea rax, str.Executable_Files
mov qword [rbp + 0x48], rax
lea rax, [rbp + 0x160]
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x68], 0x104
mov dword [rbp + 0x90], 0x81800
lea rcx, [rbp + 0x30]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x1400023f1
mov rcx, qword [rbp + 0x60]
mov qword [0x14001cce8], rcx
call qword [sym.imp.SHLWAPI.dll_PathStripPathA]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov rdi, 0xffffffffffffffff
mov r9d, edi
mov r8, qword [0x14001cce8]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rdi
mov rcx, rax
call fcn.140002d44
mov rdi, rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov rbx, 0xffffffffffffffff
mov r9d, ebx
mov r8, qword [0x14001cce8]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], eax
mov dword [rsp + 0x70], 0x70
mov dword [rsp + 0x74], 0x40
mov qword [rsp + 0x78], rsi
lea rax, str.runas
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdi
movdqa xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x60], 5
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rsi
mov qword [rbp], rsi
lea rax, [rbp + 0x160]
mov r8, rbx
inc r8
cmp byte [rax + r8], sil
jne 0x1400024d0
lea rdx, [rbp + 0x160]
lea rcx, [rbp - 0x18]
call fcn.140002a00
nop
lea rcx, [rbp - 0x18]
call fcn.140001f40
nop
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140002540
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000252d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000252d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002d00
nop dword [rax]
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rsi
mov qword [rbp], rsi
lea rax, [rbp + 0x160]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002560
lea rdx, [rbp + 0x160]
lea rcx, [rbp - 0x18]
call fcn.140002a00
nop
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
mov r13, qword [rbp]
mov r15, qword [rbp - 0x18]
cmp rax, 0xffffffffffffffff
je 0x1400026bd
mov dword [rbp + 0x30], 0x130
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400026b4
cmp r13, 0x10
setae r12b
nop
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rsi
lea rax, [rbp + 0x5c]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x1400025d6
lea rdx, [rbp + 0x5c]
lea rcx, [rbp + 8]
call fcn.140002a00
lea rdx, [rbp - 0x18]
test r12b, r12b
cmovne rdx, r15
lea rcx, [rbp + 8]
mov rdi, qword [rbp + 0x20]
cmp rdi, 0x10
setae sil
mov rbx, qword [rbp + 8]
cmovae rcx, rbx
mov r8, qword [rbp + 0x18]
cmp r8, qword [rbp - 8]
jne 0x140002623
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140002675
test sil, sil
je 0x140002659
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140002651
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002705
mov rcx, rbx
call fcn.140002d00
lea rdx, [rbp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x1400026b4
xor esi, esi
lea rbx, [rsi - 1]
jmp 0x1400025c0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
je 0x1400026b0
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400026a8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002705
mov rcx, rbx
call fcn.140002d00
mov bl, 1
jmp 0x1400026bf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
cmp r13, 0x10
jb 0x1400026f2
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400026ea
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000270c
mov rcx, r15
call fcn.140002d00
test bl, bl
je 0x14000231e
xor esi, esi
lea rbx, [rsi - 1]
jmp 0x140002540
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3