Function at 0x1000c000
Capabilities:
Enumerate services
Query service configuration

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 0x400
mov ebp, ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 0xf003f
push 0
push 0
mov byte [edi], 0x7d
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0
push 3
push 0x30
push esi
mov dword [esp + 0x4c], esi
call ebx
mov eax, dword [esp + 0x18]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
push 3
push 0x30
push esi
mov dword [ebp + 0x114], eax
mov dword [esp + 0x3c], 0
call ebx
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], ebx
jbe 0x1000c23d
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x114]
push 1
mov ecx, dword [ebx + eax]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x1000c262
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0x1000
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x1000c262
mov edx, dword [ebp + 0x114]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [ebx + edx + 4]
push eax
call esi
mov ecx, dword [ebp + 0x114]
mov edx, eax
mov dword [esp + 0x30], edx
mov eax, dword [ebx + ecx]
push eax
call esi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push edi
lea eax, [ecx + eax + 0x22]
lea esi, [eax + edx]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x1000c146
push 0x42
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [esp + 0x14], eax
mov edi, eax
mov eax, dword [ebp + 0x114]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add edi, ecx
lea esi, [ebx + eax + 8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 4]
add edi, 0x1c
mov dword [edi + ecx], eax
mov edx, dword [ebp + 0x114]
add edi, 4
mov eax, dword [ebx + edx]
mov dword [esp + 0x10], edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0x114]
mov ecx, eax
mov eax, dword [esp + 0x14]
inc ecx
mov esi, dword [ebx + edx]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x114]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + eax]
push ecx
call esi
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
mov eax, dword [ebp + 0x114]
mov dword [esp + 0x10], edi
mov ecx, dword [ebx + eax + 4]
push ecx
call esi
mov edx, dword [ebp + 0x114]
mov ecx, eax
mov eax, dword [esp + 0x14]
inc ecx
mov esi, dword [ebx + edx + 4]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x114]
mov ecx, dword [ebx + eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push ecx
lea eax, [edx + eax + 1]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
inc eax
add ebx, 0x24
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x1000c0ad
mov edx, dword [esp + 0x10]
push 0x42
push edx
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test esi, esi
mov edi, eax
je 0x1000c258
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret