Function at 0x140024e0c
Capabilities:
Query service status
Start service

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..pipeVSPerfPipe
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140024e89
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x217
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140025038
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x140024e82
mov ebx, 1
mov r8d, ebx
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140024e82
mov qword [rbp - 0x31], rax
mov rcx, qword [rbp - 0x31]
test rcx, rcx
jne 0x140024ee0
lea rdx, str.operator_SCM_HANDLE__
lea rcx, [rbp - 0x19]
call fcn.14002490c
lea rdx, [0x140062b38]
lea rcx, [rbp - 0x19]
call fcn.140028338
int3
mov r8d, 0x20000094
lea rdx, str.VSPerfSrv
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
jne 0x140024eff
xor ebx, ebx
jmp 0x140025025
mov qword [rbp - 0x39], rax
mov rcx, qword [rbp - 0x39]
test rcx, rcx
jne 0x140024f2d
lea rdx, str.operator_SCM_HANDLE__
lea rcx, [rbp - 1]
call fcn.14002490c
lea rdx, [0x140062b38]
lea rcx, [rbp - 1]
call fcn.140028338
int3
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x140025011
mov rsi, qword [rbp - 0x39]
test rsi, rsi
jne 0x140024f6a
lea rdx, str.operator_SCM_HANDLE__
lea rcx, [rbp + 0x17]
call fcn.14002490c
lea rdx, [0x140062b38]
lea rcx, [rbp + 0x17]
call fcn.140028338
int3
xor edi, edi
lea rdx, [rbp + 0x2f]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140025011
mov eax, dword [rbp + 0x33]
cmp eax, 4
je 0x140024f97
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x33]
add edi, ebx
cmp eax, 4
je 0x140024fa3
cmp edi, 0x32
jb 0x140024f6c
sub eax, 4
neg eax
sbb eax, eax
and eax, 0x80004005
jl 0x140025011
mov edi, 0xc0000000
jmp 0x140024fd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140025011
xor edx, edx
lea rcx, str..pipeVSPerfPipe
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x140025011
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, str..pipeVSPerfPipe
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140024fb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140025013
xor ebx, ebx
xor ecx, ecx
xchg qword [rbp - 0x39], rcx
test rcx, rcx
je 0x140025025
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor ecx, ecx
xchg qword [rbp - 0x31], rcx
test rcx, rcx
je 0x140025036
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140026390
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret