Function at 0x10008c30
Capabilities:
Enumerate services
Print debug messages
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
lea eax, [ebp - 0x204]
mov dword [ebp - 0x22c], 0
push 0
push eax
mov dword [ebp - 0x228], 0
call fcn.10014920
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10014920
add esp, 0x18
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x224], esi
test esi, esi
jne 0x10008cb8
push str.OpenSCManager_Error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100126e5
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x10000
push 0x40
call edi
mov ebx, eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x10000
push ebx
push 3
push 0x30
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push 0x104
push 0x40
call edi
mov esi, 1
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x21c], 0
mov byte [eax], 0x81
cmp dword [ebp - 0x220], 0
jbe 0x10009058
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
nop dword [eax + eax]
push 0xf01ff
push dword [ebx]
mov dword [ebp - 0x230], 0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
xor eax, eax
test esi, esi
push 0x1000
setne al
push 0x40
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x214], eax
push ecx
push 0x1000
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
cmp dword [ebx + 0xc], 1
lea eax, [ebp - 0x204]
push 0x100
push 0
push eax
je 0x10008da6
call fcn.10014920
add esp, 0xc
push 0x1002e680
jmp 0x10008db3
call fcn.10014920
add esp, 0xc
push 0x1002e688
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [ebp - 0x214]
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x10008df9
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10014920
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x1002e690
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 4]
cmp eax, 3
jne 0x10008e29
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10014920
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x1002e698
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x10008e56
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10014920
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x1002e6a0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebx + 4]
push eax
call edi
push dword [ebx]
mov esi, eax
call edi
add esi, eax
cmp dword [ebp - 0x218], 0
je 0x10008e78
mov eax, dword [ebp - 0x214]
push dword [eax + 0xc]
jmp 0x10008e7d
push str.No_Access
call edi
add esi, eax
lea eax, [ebp - 0x104]
push eax
call edi
add esi, eax
lea eax, [ebp - 0x204]
push eax
call edi
mov ecx, dword [ebp - 0x20c]
add eax, esi
mov esi, dword [ebp - 0x208]
add ecx, 6
add eax, ecx
push esi
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x210]
cmp eax, ecx
jae 0x10008ed1
push 0x42
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
mov dword [ebp - 0x208], esi
push dword [ebx + 4]
call edi
inc eax
push eax
push dword [ebx + 4]
mov eax, dword [ebp - 0x20c]
add eax, esi
push eax
call fcn.100143a0
add esp, 0xc
push dword [ebx + 4]
call edi
mov esi, dword [ebp - 0x20c]
push dword [ebx]
inc esi
add esi, eax
call edi
inc eax
push eax
push dword [ebx]
mov eax, dword [ebp - 0x208]
add eax, esi
push eax
call fcn.100143a0
add esp, 0xc
push dword [ebx]
call edi
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x208]
add ecx, esi
add eax, ecx
mov dword [ebp - 0x210], ecx
cmp dword [ebp - 0x218], 0
mov dword [ebp - 0x20c], eax
je 0x10008f5c
mov esi, dword [ebp - 0x214]
push dword [esi + 0xc]
call edi
inc eax
push eax
push dword [esi + 0xc]
push dword [ebp - 0x20c]
call fcn.100143a0
add esp, 0xc
push dword [esi + 0xc]
jmp 0x10008fcb
push 0x100
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.10014920
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x204]
add esp, 0xc
push 0x1002e6b4
push eax
call esi
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10014920
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x1002e6b4
push eax
call esi
push str.No_Access
call edi
inc eax
push eax
push str.No_Access
push dword [ebp - 0x20c]
call fcn.100143a0
add esp, 0xc
push str.No_Access
call edi
mov esi, dword [ebp - 0x210]
inc esi
add esi, eax
lea eax, [ebp - 0x204]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x208]
add eax, esi
push eax
call fcn.100143a0
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call edi
inc eax
add esi, eax
lea eax, [ebp - 0x104]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x208]
add eax, esi
push eax
call fcn.100143a0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call edi
add eax, esi
add ebx, 0x24
lea esi, [eax + 1]
mov eax, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x21c], eax
cmp eax, dword [ebp - 0x220]
jb 0x10008d30
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x42
push esi
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.100126e5
mov esp, ebp
pop ebp
ret