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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
push str.LocalReAlloc
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
and byte [ebp - 0x22c], 0
push 0x3f
mov dword [ebp - 0x20], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x12c], 0
push 0x3f
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf003f
push esi
push esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x1000cdbf
push str.OpenSCManager_Error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, 0x10000
push ebx
push 0x40
call edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xc], eax
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push 3
push 0x30
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push 0x104
push 0x40
call edi
mov ebx, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], esi
mov byte [ebx], 0x3a
cmp dword [ebp - 0x18], esi
jbe 0x1000d069
mov edi, dword [ebp - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x1000ce28
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
and dword [ebp - 0x28], 0
push 0xf01ff
push dword [edi]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x1000
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], eax
push ecx
push 0x1000
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
cmp dword [edi + 0xc], 1
push 0x100
lea eax, [ebp - 0x22c]
push 0
push eax
je 0x1000ce85
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1001d9cc
jmp 0x1000ce92
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1001d9c4
lea eax, [ebp - 0x22c]
push eax
call ebx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 2
jne 0x1000cec8
push 0x100
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x12c]
push 0x1001d9bc
push eax
call ebx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 3
jne 0x1000cef5
push 0x100
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x12c]
push 0x1001d9b4
push eax
call ebx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 4
jne 0x1000cf22
push 0x100
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x12c]
push 0x1001d9ac
push eax
call ebx
push dword [edi + 4]
call esi
mov ebx, eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
call esi
add ebx, eax
lea eax, [ebp - 0x12c]
push eax
call esi
add ebx, eax
lea eax, [ebp - 0x22c]
push eax
call esi
push dword [edi]
add ebx, eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebx + eax + 6]
mov ebx, dword [ebp - 0x1c]
add ecx, eax
push ebx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, dword [ebp - 0xc]
jae 0x1000cf76
push 0x42
push dword [ebp - 0xc]
push ebx
call dword [ebp - 0x20]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
push dword [edi + 4]
call esi
inc eax
push eax
mov eax, dword [ebp - 4]
push dword [edi + 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [edi + 4]
call esi
mov ecx, dword [ebp - 4]
push dword [edi]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
call esi
inc eax
push eax
mov eax, dword [ebp - 4]
push dword [edi]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [edi]
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
call esi
inc eax
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
push dword [eax + 0xc]
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x22c]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x12c]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 0x10]
add edi, 0x24
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x1000ce22
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x42
push dword [ebp - 4]
push ebx
call dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret