Function at 0x140003080
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push rbp
push rdi
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xd8
mov rax, qword [0x1400ad388]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov r14d, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rbp - 0x61], rax
mov rcx, rax
test rax, rax
je 0x140003358
mov rdx, qword [r15]
mov rax, qword [r15 + 8]
sub rax, rdx
mov qword [rsp + 0xd0], r13
sar rax, 5
mov r13d, edi
test rax, rax
je 0x14000334a
mov qword [rsp + 0x108], rbx
mov ebx, edi
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x118], r12
mov r12d, edi
mov qword [rbp - 0x69], rbx
add rdx, r12
cmp qword [rdx + 0x18], 0x10
jb 0x14000311f
mov rdx, qword [rdx]
mov r8d, 0x2c
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x140003305
lea rax, [rbp - 0x29]
mov r9d, 0x24
lea r8, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400032fc
mov eax, dword [rbp - 0x1d]
dec eax
test eax, 0xfffffffd
je 0x1400032fc
xor r9d, r9d
lea rax, [rbp - 0x25]
mov qword [rsp + 0x28], rax
mov r8, rdi
lea rax, [rbp - 0x29]
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x140003299
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140003299
mov ebx, dword [rbp - 0x29]
nop
mov rcx, qword [r15 + 0x30]
lea r8, [rbx + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400031b0
mov r9d, dword [rbp - 0x29]
lea rax, [rbp - 0x25]
mov qword [rsp + 0x28], rax
mov r8, rdi
lea rax, [rbp - 0x29]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x140003286
mov rax, qword [rbp - 0x69]
mov r8d, 0x24
mov rcx, qword [rbp - 0x61]
mov rdx, qword [rax + rdi]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x140003286
lea r8, [rbp + 7]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140003286
cmp dword [rbp + 0xb], 1
je 0x14000327d
mov ecx, dword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x29]
mov r9d, 0x24
lea r8, [rbp + 7]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140003277
cmp dword [rbp + 0xb], 1
je 0x14000327d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x7530
ja 0x14000327d
cmp dword [rbp + 0xb], 1
jne 0x140003236
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [r15 + 0x30]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rbp - 0x69]
lea r8, [rbp - 0x21]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400032fc
cmp dword [rbp - 0x1d], 1
je 0x1400032fc
mov ecx, dword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x29]
mov r9d, 0x24
lea r8, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400032fc
cmp dword [rbp - 0x1d], 1
je 0x1400032fc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x7530
ja 0x1400032fc
cmp dword [rbp - 0x1d], 1
jne 0x1400032b5
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [r15]
inc r13d
mov rcx, qword [r15 + 8]
add rbx, 0x30
sub rcx, rdx
movsxd rax, r13d
sar rcx, 5
add r12, 0x20
cmp rax, rcx
mov qword [rbp - 0x69], rbx
mov rcx, qword [rbp - 0x61]
jb 0x140003112
mov r12, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r13, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14004c550
add rsp, 0xd8
pop r15
pop r14
pop rdi
pop rbp
ret