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

Disassembly:
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 0x10b04b6
or ax, 0xffff
jmp 0x10b0697
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 0x10b04df
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1012270
jmp 0x10b068b
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 0x10b067c
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 0x10b05b0
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 0x10b0600
lea ecx, [ebp - 0x34]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10b0555
cmp dword [ebp - 0x30], 1
je 0x10b0566
cmp dword [ebp - 0x30], 3
je 0x10b0566
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x10b0614
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 0x10b0581
cmp dword [ebp - 0x30], 3
jne 0x10b059d
call fcn.0106e781
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf0
jl 0x10b056a
push dword [ebp - 0x14]
call edi
add dword [ebp - 0xc], 0x24
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x10b051d
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 0x10b05d4
cmp dword [ebp - 0x30], 1
je 0x10b062f
cmp dword [ebp - 0x30], 3
je 0x10b062f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10b062f
cmp eax, ebx
je 0x10b062f
push dword [ebp + 0x10]
push eax
push 0x1012244
push dword [ebp + 8]
call fcn.01079347
push dword [ebp - 4]
call edi
jmp 0x10b0693
lea eax, [esi + esi*8]
push dword [ebx + eax*4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1012270
jmp 0x10b05ee
lea ecx, [esi + esi*8]
push dword [ebx + ecx*4]
push eax
push 0x1012244
push dword [ebp + 8]
call fcn.01079347
push dword [ebp - 0x14]
call edi
jmp 0x10b05f6
xor esi, esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10b0648
cmp dword [ebp - 0x30], 3
jne 0x10b0661
call fcn.0106e781
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xf0
jl 0x10b0631
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x30], 3
jne 0x10b0677
push dword [ebp + 0x10]
push ebx
push 0x1012244
jmp 0x10b068b
xor ax, ax
jmp 0x10b0697
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1012214
push dword [ebp + 8]
call fcn.01079347
mov ax, 0xfe40
pop edi
pop esi
pop ebx
leave
ret 0xc