Function at 0x10bed80
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x34]
push edi
mov edi, 0x1000
push edi
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x10bedb0
or ax, 0xffff
jmp 0x10bef91
push 0x2c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x10bedd9
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10122e8
jmp 0x10bef85
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push ebx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x10bef76
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi + 0x2218], ebx
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x221c], eax
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x10beeaa
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
push 0x24
push dword [eax]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x10beefa
lea ecx, [ebp - 0x34]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10bee4f
cmp dword [ebp - 0x30], 1
je 0x10bee60
cmp dword [ebp - 0x30], 3
je 0x10bee60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x10bef0e
and dword [ebp - 8], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10bee7b
cmp dword [ebp - 0x30], 3
jne 0x10bee97
call fcn.01075adf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf0
jl 0x10bee64
push dword [ebp - 0x14]
call edi
add dword [ebp - 0xc], 0x24
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x10bee17
lea eax, [ebp - 0x34]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov ebx, 0x41d
je 0x10beece
cmp dword [ebp - 0x30], 1
je 0x10bef29
cmp dword [ebp - 0x30], 3
je 0x10bef29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10bef29
cmp eax, ebx
je 0x10bef29
push dword [ebp + 0x10]
push eax
push 0x10122bc
push dword [ebp + 8]
call fcn.01082ee2
push dword [ebp - 4]
call edi
jmp 0x10bef8d
lea eax, [esi + esi*8]
push dword [ebx + eax*4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10122e8
jmp 0x10beee8
lea ecx, [esi + esi*8]
push dword [ebx + ecx*4]
push eax
push 0x10122bc
push dword [ebp + 8]
call fcn.01082ee2
push dword [ebp - 0x14]
call edi
jmp 0x10beef0
xor esi, esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10bef42
cmp dword [ebp - 0x30], 3
jne 0x10bef5b
call fcn.01075adf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xf0
jl 0x10bef2b
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x30], 3
jne 0x10bef71
push dword [ebp + 0x10]
push ebx
push 0x10122bc
jmp 0x10bef85
xor ax, ax
jmp 0x10bef91
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101228c
push dword [ebp + 8]
call fcn.01082ee2
mov ax, 0xfe40
pop edi
pop esi
pop ebx
leave
ret 0xc