Function at 0x14000cc80
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xd8
mov rax, qword [0x14005b080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov dword [rbp - 0x69], 0x5b6a20
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov r14, rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rbp - 0x69], rax
mov rbx, rax
test rax, rax
je 0x14000cf42
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x108], r12
lea r12, [0x140052750]
mov qword [rsp + 0x110], r13
mov r13d, edi
mov qword [rsp + 0xd0], r15
mov r15d, edi
nop
mov rdx, qword [r12]
mov r8d, 0x2c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x14000cf04
lea rax, [rbp - 0x31]
mov r9d, 0x24
lea r8, [rbp - 0x29]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000cefb
mov eax, dword [rbp - 0x25]
dec eax
test eax, 0xfffffffd
je 0x14000cefb
xor r9d, r9d
lea rax, [rbp - 0x2d]
mov qword [rsp + 0x28], rax
mov r8, rdi
lea rax, [rbp - 0x31]
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x14000ce8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000ce8f
mov ebx, dword [rbp - 0x31]
nop word [rax + rax]
mov rcx, qword [0x140060328]
lea r8, [rbx + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000cda0
mov r9d, dword [rbp - 0x31]
lea rax, [rbp - 0x2d]
mov qword [rsp + 0x28], rax
mov r8, rdi
lea rax, [rbp - 0x31]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x14000ce79
mov rdx, qword [rdi + r13]
mov r8d, 0x24
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x14000ce79
lea r8, [rbp - 1]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000ce79
cmp dword [rbp + 3], 1
je 0x14000ce70
mov ecx, dword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x31]
mov r9d, 0x24
lea r8, [rbp - 1]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000ce6a
cmp dword [rbp + 3], 1
je 0x14000ce70
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, r14d
sub rax, rcx
cmp rax, 0x7530
ja 0x14000ce70
cmp dword [rbp + 3], 1
jne 0x14000ce25
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [0x140060328]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rbp - 0x69]
lea r8, [rbp - 0x29]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000cefb
cmp dword [rbp - 0x25], 1
je 0x14000cefb
nop dword [rax + rax]
mov ecx, dword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x31]
mov r9d, 0x24
lea r8, [rbp - 0x29]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000cefb
cmp dword [rbp - 0x25], 1
je 0x14000cefb
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, r14d
sub rax, rcx
cmp rax, 0x7530
ja 0x14000cefb
cmp dword [rbp - 0x25], 1
jne 0x14000ceb0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc r15d
add r12, 8
add r13, 0x30
cmp r15d, 0x2c
jb 0x14000cd00
mov r15, qword [rsp + 0xd0]
mov rcx, rbx
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14002a2c0
add rsp, 0xd8
pop r14
pop rdi
pop rbx
pop rbp
ret