Function at 0x140001610
Capabilities:
Enumerate processes
Execute command
Modify service
Query service status
Shutdown system

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x458], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov r14, 0xffffffffffffffff
mov rcx, qword [rax]
mov rax, qword [rcx + 8]
mov rcx, r14
inc rcx
cmp byte [rax + rcx], 0
jne 0x140001654
inc rcx
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.14000225c
mov r12, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rbx, r14
mov rcx, qword [rax]
mov rdx, qword [rcx + 8]
nop word [rax + rax]
cmp byte [rdx + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140001690
mov qword [rsp + 0x590], rsi
mov qword [rsp + 0x598], r15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
lea r8, [rbx + 1]
mov rcx, qword [rax]
mov rdx, qword [rcx + 8]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
xor r13d, r13d
mov qword [rsp + 0x70], 0x238
xor edx, edx
mov dword [rsp + 0x78], r13d
mov r8d, 0x208
mov qword [rbp - 0x80], r13
lea rcx, [rbp - 0x64]
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], r13
mov bl, 1
mov dword [rbp - 0x68], r13d
call sub.VCRUNTIME140.dll_memset
xor eax, eax
xor edx, edx
mov dword [rbp + 0x1a4], eax
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x70]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000178e
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000178e
lea rsi, str.VanguardTest.exe
nop word [rax + rax]
lea rdx, [rbp - 0x64]
mov rcx, r14
nop word [rax + rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [rsi + rcx*2 + 2]
jne 0x14000177c
add rcx, 2
cmp rcx, 0x11
je 0x140001772
movzx eax, word [rdx + rcx*2]
cmp ax, word [rsi + rcx*2]
je 0x140001750
jmp 0x14000177c
test bl, bl
je 0x140001945
xor bl, bl
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001740
mov r8d, 0x40000001
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r8d, 0x80000002
lea rdx, [0x140004518]
mov rcx, rax
mov r15, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r8d, 0x80000002
lea rdx, [0x140004520]
mov rcx, r15
mov r14, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test r14, r14
je 0x140001c3b
test rax, rax
je 0x140001c3b
lea rdx, [rbp + 0x438]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140001c24
lea rdx, [rbp + 0x418]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140001c24
cmp dword [rbp + 0x41c], 1
jne 0x1400019f3
mov r9d, 0x34
lea r8, str.Restart_
lea rdx, str.Vanguard_is_disabled._Do_you_want_to_enable_it_and_restart_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, r14
cmp eax, 6
jne 0x1400019d4
mov qword [rsp + 0x50], r13
lea r8d, [rax - 3]
mov qword [rsp + 0x48], r13
mov edx, 0xffffffff
mov qword [rsp + 0x40], r13
mov r9d, edx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov qword [rsp + 0x50], r13
mov edx, 0xffffffff
mov qword [rsp + 0x48], r13
mov r9d, edx
mov qword [rsp + 0x40], r13
mov r8d, 1
mov qword [rsp + 0x38], r13
mov rcx, rsi
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rbp + 0x410]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rax, qword [rbp + 0x410]
lea r8, [rbp + 0x3f0]
mov rcx, qword [rsp + 0x60]
mov r9d, 0x10
mov qword [rsp + 0x28], r13
xor edx, edx
mov qword [rbp + 0x3f4], rax
mov dword [rbp + 0x3f0], 1
mov dword [rbp + 0x3fc], 2
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
xor edx, edx
lea ecx, [rdx + 0x12]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
jmp 0x140001c77
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14000178e
mov rdx, r12
lea rcx, [rbp + 0x3f0]
call fcn.140001d20
lea rcx, [rbp + 0x3f0]
call fcn.1400011c0
mov rdx, qword [rbp + 0x408]
cmp rdx, 7
jbe 0x1400019cd
mov rcx, qword [rbp + 0x3f0]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019c8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a4b
call fcn.140002254
xor eax, eax
jmp 0x140001c77
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140001c77
mov rdx, r12
lea rcx, [rbp + 0x3f0]
call fcn.140001d20
lea rcx, [rbp + 0x3f0]
call fcn.1400011c0
mov rdx, qword [rbp + 0x408]
cmp rdx, 7
jbe 0x140001a57
mov rcx, qword [rbp + 0x3f0]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a52
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002254
xor edx, edx
mov qword [rbp + 0x1b0], 0x238
mov r8d, 0x208
mov dword [rbp + 0x1b8], r13d
lea rcx, [rbp + 0x1dc]
mov qword [rbp + 0x1c0], r13
mov qword [rbp + 0x1c8], r13
mov qword [rbp + 0x1d0], r13
mov dword [rbp + 0x1d8], r13d
call sub.VCRUNTIME140.dll_memset
xor eax, eax
xor edx, edx
mov dword [rbp + 0x3e4], eax
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp + 0x1b0]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001b28
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140001b28
lea rbx, str.RiotClientServices.exe
nop
lea rdx, [rbp + 0x1dc]
mov rax, 0xffffffffffffffff
nop
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rbx + rax*2 + 2]
jne 0x140001b14
add rax, 2
cmp rax, 0x17
je 0x140001bff
movzx ecx, word [rdx + rax*2]
cmp cx, word [rbx + rax*2]
je 0x140001af0
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001ae0
mov rbx, r13
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x50], r13
mov edx, 0xffffffff
mov qword [rsp + 0x48], r13
mov r9d, edx
mov qword [rsp + 0x40], r13
mov r8d, 4
mov qword [rsp + 0x38], r13
mov rcx, r14
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov qword [rsp + 0x50], r13
mov edx, 0xffffffff
mov qword [rsp + 0x48], r13
mov r9d, edx
mov qword [rsp + 0x40], r13
mov r8d, 4
mov qword [rsp + 0x38], r13
mov rcx, rsi
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea rcx, str.net_stop_vgk__taskkill__IM_vgtray.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
lea r8, str.Disabled_Vanguard
lea rdx, str.Riot_client_closed._Disabled_vanguard_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov edx, 2
mov rcx, r12
call fcn.140002254
xor eax, eax
jmp 0x140001c77
mov r8d, dword [rbp + 0x1b8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001b2b
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
jmp 0x140001c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, eax
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001e70]
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]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov r15, qword [rsp + 0x598]
mov rsi, qword [rsp + 0x590]
mov rcx, qword [rbp + 0x458]
xor rcx, rsp
call fcn.1400021f0
mov rbx, qword [rsp + 0x5a0]
add rsp, 0x560
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret