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

Disassembly:
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xd8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rbp - 0x61], rax
mov rbx, rax
test rax, rax
je 0x14001ae41
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0x108], r12
lea r12, [0x140009990]
mov qword [rsp + 0x110], r13
mov r13d, r14d
mov qword [rsp + 0xd0], r15
mov r15d, r14d
nop dword [rax + rax]
mov rdx, qword [r12]
mov r8d, 0x2c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x14001ae00
lea rax, [rbp - 0x69]
mov r9d, 0x24
lea r8, [rbp - 0x29]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14001adf7
mov eax, dword [rbp - 0x25]
dec eax
test eax, 0xfffffffd
je 0x14001adf7
xor r9d, r9d
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
mov r8, r14
lea rax, [rbp - 0x69]
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x14001ad95
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14001ad95
mov r8d, dword [rbp - 0x69]
mov edx, 8
mov rcx, qword [0x140034fc0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14001ad95
mov r9d, dword [rbp - 0x69]
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
mov r8, r14
lea rax, [rbp - 0x69]
mov edx, 1
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x14001ad83
mov rdx, qword [r14 + r13]
mov r8d, 0x24
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x14001ad7f
lea r8, [rbp - 1]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001ad7f
cmp dword [rbp + 3], 1
je 0x14001ad76
nop dword [rax + rax]
mov ecx, dword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x69]
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 0x14001ad70
cmp dword [rbp + 3], 1
je 0x14001ad76
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x14001ad76
cmp dword [rbp + 3], 1
jne 0x14001ad30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rbp - 0x61]
mov rcx, qword [0x140034fc0]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [rbp - 0x29]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001adf7
cmp dword [rbp - 0x25], 1
je 0x14001adf7
mov ecx, dword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x69]
mov r9d, 0x24
lea r8, [rbp - 0x29]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14001adf7
cmp dword [rbp - 0x25], 1
je 0x14001adf7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x14001adf7
cmp dword [rbp - 0x25], 1
jne 0x14001adb1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc r15d
add r12, 8
add r13, 0x30
cmp r15d, 0x9f
jb 0x14001ac10
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r15, qword [rsp + 0xd0]
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x108]
mov rdi, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001d940
add rsp, 0xd8
pop r14
pop rsi
pop rbx
pop rbp
ret