Function at 0x10010190
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x30
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x2d8
cmp dword [ebp - 0x1c], 0
jne 0x100101fd
xor eax, eax
jmp 0x100103f9
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10010223
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
xor eax, eax
jmp 0x100103f9
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0x10000
mov ecx, dword [ebp - 8]
push ecx
push 3
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x1001025c
mov ecx, dword [ebp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
jmp 0x100103f9
mov edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x2c]
add edx, 2
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x2c]
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov byte [edx], 0x84
mov dword [ebp - 0x24], 0
jmp 0x100102a3
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x10]
jae 0x100103b3
push 0x2d8
push 0
lea edx, [ebp - 0x308]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x24
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x24
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax]
push edx
lea eax, [ebp - 0x308]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x24
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 4]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x24
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 4]
push eax
lea ecx, [ebp - 0x2c7]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x24
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0xc], 4
jne 0x10010344
mov dword [ebp - 0x3c], 2
jmp 0x1001037d
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x24
mov edx, dword [ebp - 8]
cmp dword [edx + ecx + 0xc], 1
jne 0x1001035d
mov dword [ebp - 0x3c], 1
jmp 0x1001037d
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x24
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax + 0xc], 7
jne 0x10010376
mov dword [ebp - 0x3c], 3
jmp 0x1001037d
mov dword [ebp - 0x3c], 4
lea edx, [ebp - 0x308]
push edx
mov ecx, dword [ebp - 4]
call fcn.10010410
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x308]
push ecx
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edx + 1]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x1001029a
mov dword [ebp - 0x20], 1
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x100103d4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
push 0x42
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x2c]
add eax, 2
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4