Function at 0x1000d7c0
Capabilities:
Enumerate services
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x100
lea eax, [ebp - 0x204]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x224], ebx
call fcn.10013850
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10013850
add esp, 0x18
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x1000d82a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011882
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0x10000
push 0x40
call esi
mov ecx, dword [ebx + 0x10]
mov edi, eax
mov dword [ebp - 0x230], edi
test edi, edi
jne 0x1000d864
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011882
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
mov dword [ebp - 0x228], 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], 0
push eax
push 0x10000
push edi
push 3
push 0x3ff
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push 0x104
push 0x40
call esi
mov ebx, eax
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x220], 0
mov byte [ebx], 0x81
cmp dword [ebp - 0x210], 0
jbe 0x1000dbaa
mov esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
nop dword [eax + eax]
mov eax, dword [ebp - 0x224]
push 0xf01ff
push dword [esi]
push dword [eax + 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x1000db82
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0x214]
push eax
push 0x1000
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
cmp dword [esi + 0xc], 1
lea eax, [ebp - 0x204]
push 0x100
push 0
push eax
je 0x1000d965
call fcn.10013850
add esp, 0xc
push 0x1003d150
jmp 0x1000d972
call fcn.10013850
add esp, 0xc
push 0x1003d158
lea eax, [ebp - 0x204]
push eax
call edi
cmp dword [ebx + 4], 2
jne 0x1000d9a5
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10013850
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x1003d160
push eax
call edi
cmp dword [ebx + 4], 3
jne 0x1000d9cf
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10013850
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x1003d168
push eax
call edi
cmp dword [ebx + 4], 4
jne 0x1000d9f9
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10013850
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x1003d170
push eax
call edi
push dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
push dword [esi]
mov edi, eax
call ebx
lea ebx, [edi + eax]
mov eax, dword [ebp - 0x218]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, eax
lea eax, [ebp - 0x204]
push eax
call edi
mov ecx, dword [ebp - 0x20c]
add eax, ebx
mov ebx, dword [ebp - 0x208]
add ecx, 5
add eax, ecx
push ebx
mov dword [ebp - 0x22c], eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x22c]
cmp eax, ecx
jae 0x1000da78
push 0x42
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov dword [ebp - 0x208], ebx
push dword [esi + 4]
call edi
inc eax
push eax
push dword [esi + 4]
mov eax, dword [ebp - 0x20c]
add eax, ebx
push eax
call fcn.100132d0
add esp, 0xc
push dword [esi + 4]
call edi
mov edi, dword [ebp - 0x20c]
push dword [esi]
inc edi
add edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esi]
lea eax, [edi + ebx]
push eax
call fcn.100132d0
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [ebp - 0x218]
inc eax
add edi, eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebx + 0xc]
mov eax, dword [ebp - 0x208]
add eax, edi
push eax
call fcn.100132d0
add esp, 0xc
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x208]
add eax, edi
push eax
call fcn.100132d0
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x208]
add eax, edi
push eax
call fcn.100132d0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x21c]
inc edi
add eax, edi
mov dword [ebp - 0x20c], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x220]
add esi, 0x24
inc eax
mov dword [ebp - 0x220], eax
cmp eax, dword [ebp - 0x210]
jb 0x1000d8f0
mov ebx, dword [ebp - 0x208]
mov edi, dword [ebp - 0x230]
mov eax, dword [ebp - 0x224]
push dword [eax + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011882
mov esp, ebp
pop ebp
ret