Function at 0x1000fb79
Capabilities:
Enumerate services
Get common file path

Disassembly:
mov eax, 0x10053e3c
call fcn.10052270
sub esp, 0x230
mov dl, byte [0x10078b14]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10070040]
mov dword [ebp - 0x14], eax
xor esi, esi
push 0x40
mov dword [ebp - 4], esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x23b]
mov byte [ebp - 0x23c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
lea eax, [ebp - 0x23c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, 0x9000
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, esi
pop ecx
mov dword [ebp - 0x28], eax
je 0x1000fe01
push ebx
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x30], eax
je 0x1000fdf7
mov cl, byte [ebp + 8]
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x34]
neg cl
sbb ecx, ecx
push edx
push ebx
mov ebx, dword [ebp - 0x28]
and ecx, 0xffffffdb
push ebx
add ecx, 0x30
push 3
push ecx
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x1000fdee
cmp dword [ebp - 0x18], esi
mov dword [ebp + 8], esi
jbe 0x1000fdee
push dword [ebx]
lea eax, [ebp - 0x14]
push str.SYSTEMCurrentControlSetServices
push str._s_sParameters
push eax
call fcn.10009c35
push edi
lea eax, [ebp - 0x138]
push esi
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], edi
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x24]
push eax
push str.ServiceDll
push dword [ebp - 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1000bfd2
cmp eax, esi
je 0x1000fd23
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], edi
push dword [ebx]
lea eax, [ebp - 0x14]
push str.SYSTEMCurrentControlSetServices
push 0x10070058
push eax
call fcn.10009c35
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x24]
push eax
push str.ImagePath
push dword [ebp - 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1000bfd2
cmp eax, esi
jne 0x1000fd23
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x138]
push edi
push eax
call fcn.1000fe1e
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.1000fed8
cmp byte [ebp - 0x138], 0
je 0x1000fddc
lea eax, [ebp - 0x138]
push eax
call fcn.10016b34
test eax, eax
pop ecx
je 0x1000fddc
mov edi, 0x340
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
push edi
push esi
push eax
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x10]
push 7
pop ecx
mov dword [eax + 4], 0x10
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x318], esi
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x31c], esi
mov eax, dword [ebp - 0x10]
lea esi, [ebx + 8]
lea edi, [eax + 0x324]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
push dword [ebx]
add eax, 8
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x10c
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 0x10]
add eax, 0x10c
push eax
call fcn.1000ea67
mov ecx, dword [ebp - 0x10]
add esp, 0x24
mov dword [ecx + 0x314], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 8]
call fcn.10010372
mov edi, 0x104
xor esi, esi
inc dword [ebp + 8]
add ebx, 0x24
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x18]
jb 0x1000fc61
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x28]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000349d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4