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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x40], rsp
mov edi, r9d
mov ebx, r8d
mov r13, rdx
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayAllocData
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140002be9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f60
mov eax, dword [rsp + 0x54]
cmp eax, 1
jne 0x140002bf9
xor eax, eax
jmp 0x140002f60
cmp eax, 3
jne 0x140002c66
nop
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, reloc.OLEAUT32.dll_SafeArrayAllocData
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140002c5b
cmp dword [rsp + 0x54], 1
je 0x140002c54
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x140002c4a
cmp dword [rsp + 0x54], 3
je 0x140002c00
jmp 0x140002c66
mov eax, 0x5b4
jmp 0x140002f60
xor eax, eax
jmp 0x140002f60
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f60
test ebx, ebx
je 0x140002edf
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x140002edf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140002cb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f60
mov ebx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x140002ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f60
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, r14
mov edx, 1
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x140002d3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002d33]
mov rcx, qword [rsp + 0x40]
call fcn.14009cbd0
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002f60
xor ebx, ebx
mov dword [rsp + 0x48], ebx
cmp ebx, dword [rsp + 0x3c]
jae 0x140002ecb
lea rcx, [rbx + rbx*2]
add rcx, rcx
lea rdx, [rsp + 0x88]
mov rax, qword [r14 + rcx*8]
mov qword [rdx], rax
mov rax, qword [r14 + rcx*8 + 8]
mov qword [rdx + 8], rax
mov rax, qword [r14 + rcx*8 + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [r14 + rcx*8 + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [r14 + rcx*8 + 0x20]
mov qword [rdx + 0x20], rax
mov rax, qword [r14 + rcx*8 + 0x28]
mov qword [rdx + 0x28], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayAllocData
mov rdx, qword [rsp + 0x88]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x140002ddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002dd3]
mov rcx, qword [rsp + 0x40]
call fcn.14009cbd0
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002f60
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140002e20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002e11]
mov rcx, qword [rsp + 0x40]
call fcn.14009cbd0
nop
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002f60
cmp dword [rsp + 0x54], 1
je 0x140002eb6
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x34]
mov qword [rsp + 0x20], r11
mov r9d, reloc.OLEAUT32.dll_SafeArrayAllocData
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140002e80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002e77]
mov rcx, qword [rsp + 0x40]
call fcn.14009cbd0
nop
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002f60
cmp dword [rsp + 0x54], 1
je 0x140002eb6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
jbe 0x140002eb1
lea rdx, [0x140002ea7]
mov rcx, qword [rsp + 0x40]
call fcn.14009cbd0
nop
nop
nop
mov eax, 0x5b4
jmp 0x140002f60
jmp 0x140002e20
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add ebx, 1
mov dword [rsp + 0x48], ebx
jmp 0x140002d42
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140002efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f60
cmp dword [rsp + 0x54], 1
je 0x140002f5e
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, reloc.OLEAUT32.dll_SafeArrayAllocData
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140002f56
cmp dword [rsp + 0x54], 1
je 0x140002f5e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x140002f4f
cmp dword [rsp + 0x54], 1
jne 0x140002f05
jmp 0x140002f5e
mov eax, 0x5b4
jmp 0x140002f60
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f60
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret