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

Disassembly:
jmp 0x1400012f0
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0xa0
mov qword [rsp + 0x30], rsp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [0x140008758]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x14000134c
mov eax, 1
jmp 0x14000155e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140001360
xor eax, eax
jmp 0x14000155e
mov ebx, dword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov qword [rsp + 0xd0], rax
test rax, rax
je 0x14000155e
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc0]
mov r8, r12
mov edx, 1
mov rcx, qword [0x140008758]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x1400013e7
lea rdx, [0x1400013e0]
mov rcx, qword [rsp + 0x30]
call sub.MSVCR80.dll__local_unwind
nop
nop
xor eax, eax
jmp 0x14000155e
xor ebx, ebx
mov dword [rsp + 0x38], ebx
nop
cmp ebx, dword [rsp + 0xc8]
jae 0x140001545
lea rcx, [rbx + rbx*2]
add rcx, rcx
lea rdx, [rsp + 0x70]
mov rax, qword [r12 + rcx*8]
mov qword [rdx], rax
mov rax, qword [r12 + rcx*8 + 8]
mov qword [rdx + 8], rax
mov rax, qword [r12 + rcx*8 + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [r12 + rcx*8 + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [r12 + rcx*8 + 0x20]
mov qword [rdx + 0x20], rax
mov rax, qword [r12 + rcx*8 + 0x28]
mov qword [rdx + 0x28], rax
mov r8d, 0x24
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x140008780]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000147c
lea rdx, [0x140001475]
mov rcx, qword [rsp + 0x30]
call sub.MSVCR80.dll__local_unwind
nop
nop
xor eax, eax
jmp 0x14000155e
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400014b0
lea rdx, [0x1400014a7]
mov rcx, qword [rsp + 0x30]
call sub.MSVCR80.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x14000155e
cmp dword [rsp + 0x4c], 1
je 0x140001530
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0xc0]
mov qword [rsp + 0x20], r11
mov r9d, 0x24
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140001500
lea rdx, [0x1400014fc]
mov rcx, qword [rsp + 0x30]
call sub.MSVCR80.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x14000155e
cmp dword [rsp + 0x4c], 1
je 0x140001530
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
jbe 0x14000152e
lea rdx, [0x14000152a]
mov rcx, qword [rsp + 0x30]
call sub.MSVCR80.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x14000155e
jmp 0x1400014b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add ebx, 1
mov dword [rsp + 0x38], ebx
jmp 0x1400013f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r12
pop rdi
pop rsi
ret