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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6565e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea esp, [esp]
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x4e7c73
test esi, 0xffff0000
jne 0x4e7c73
movzx edi, si
push 0
push edi
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x4e7c7c
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407a90
jmp 0x4e7c7c
push esi
lea ecx, [ebp - 0x14]
call fcn.00409320
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
push 0xf003f
push 0
push eax
call fcn.005ba710
movzx ecx, al
add esp, 4
neg ecx
sbb ecx, ecx
not ecx
and ecx, esi
push ecx
call ebx
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e7cc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x4e7ced
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 0x14
jl 0x4e7c30
jmp 0x4e7d1a
xor esi, esi
nop
mov ecx, dword [ebp + 8]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
jne 0x4e7d69
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x14
jl 0x4e7cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x4e7f9d
mov byte [ebp - 4], 1
push 0
call fcn.0060faf6
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4e7fd6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov esi, 1
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x4e7ed4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xea
je 0x4e7dc5
call esi
test eax, eax
jle 0x4e7da9
and eax, 0xffff
or eax, 0x80070000
push 0x66ecc4
push eax
lea ecx, [ebp - 0x40]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x40]
push ecx
call fcn.0060fb01
mov edx, dword [ebp - 0x18]
push edx
call fcn.005fb5ce
mov edx, dword [ebp - 0x18]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
push esi
push 1
push ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x4e7e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4e7e04
and eax, 0xffff
or eax, 0x80070000
push str.::EnumDependentServicesW__hService__0x00000001__pDependencies__dwBytesNeeded__dwBytesNeeded__dwCount_
push eax
lea ecx, [ebp - 0x40]
call fcn.0040de50
push 0x6ba4dc
lea eax, [ebp - 0x40]
push eax
call fcn.0060fb01
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jbe 0x4e7ecf
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov ecx, 9
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x80]
push 0x24
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4e7f02
lea eax, [ebp - 0x5c]
push eax
mov edi, 1
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4e7e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x4e7f20
cmp dword [ebp - 0x58], edi
je 0x4e7eb7
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x5c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x58], edi
je 0x4e7eb7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x14]
ja 0x4e7f33
cmp dword [ebp - 0x58], edi
jne 0x4e7e86
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], 0x24
add eax, edi
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x1c]
jb 0x4e7e34
mov edi, dword [ebp - 0x24]
mov esi, 1
lea eax, [ebp - 0x5c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4e7f58
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x426
je 0x4e7f53
call esi
test eax, eax
jle 0x4e7da9
jmp 0x4e7d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4e7f16
and eax, 0xffff
or eax, 0x80070000
push str.hDepService__::OpenServiceW__hSCM__ess.lpServiceName__0x0020__0x0004_
jmp 0x4e7e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4e7da9
jmp 0x4e7d9f
push 0x66eba8
push 0x800705b4
lea ecx, [ebp - 0x40]
call fcn.0040de50
push 0x6ba4dc
lea edx, [ebp - 0x40]
push edx
jmp 0x4e7dc0
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp + 0x10], eax
je 0x4e802a
cmp dword [ebp - 0x58], esi
je 0x4e7f9d
lea esp, [esp]
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x58], esi
je 0x4e7f9d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x14]
ja 0x4e7fe9
cmp dword [ebp - 0x58], esi
jne 0x4e7f70
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.0060faf6
add esp, 4
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4e7fc8
push eax
call esi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4e7fd6
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0060faf6
add esp, 4
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
mov dword [ebp - 4], 0xffffffff
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
push edx
call fcn.0060faf6
add esp, 4
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
mov dword [ebp - 4], 0xffffffff
push edi
call ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret