Function at 0x1119a7c0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111ea676
mov eax, dword fs:[0]
push eax
sub esp, 0xc4c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.111998b0
call fcn.111bbd10
test eax, eax
jne 0x1119a805
xor eax, eax
jmp 0x1119ad84
push 4
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc44], eax
cmp eax, edi
je 0x1119a7fe
lea ecx, [ebp - 0xc3c]
push ecx
lea edx, [ebp - 0xc2c]
push edx
lea ecx, [ebp - 0xc38]
push ecx
push edi
push edi
push 3
push 0x30
mov dword [ebp - 0xc38], edi
mov dword [ebp - 0xc2c], edi
mov dword [ebp - 0xc3c], edi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
push eax
call edi
mov edx, dword [ebp - 0xc38]
push edx
call fcn.11170a40
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xc3c]
push eax
mov eax, dword [ebp - 0xc38]
lea ecx, [ebp - 0xc2c]
push ecx
mov ecx, dword [ebp - 0xc44]
lea edx, [ebp - 0xc38]
push edx
push eax
push ebx
push 3
push 0x30
push ecx
mov dword [ebp - 0xc54], ebx
mov dword [ebp - 0xc3c], 0
call edi
mov edx, dword [ebp - 0xc2c]
push edx
push str.EnumServices_returned__d_n
call fcn.111bd7b0
mov dword [ebp - 0xc30], ebx
mov ebx, dword [ebp - 0xc2c]
shl ebx, 0xa
push ebx
call fcn.11170a40
mov dword [esi + 8], eax
mov dword [eax], 3
lea edi, [eax + 0xc]
add esp, 0xc
xor eax, eax
push str.advapi32.dll
mov dword [ebp - 0xc18], edi
mov dword [esi + 4], eax
mov dword [ebp - 0xc40], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc4c], eax
test eax, eax
je 0x1119a909
push str.QueryServiceConfig2W
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc40], eax
cmp dword [ebp - 0xc2c], 0
mov dword [ebp - 0xc48], 0
jbe 0x1119ad48
cmp dword [ebp - 0xc40], 0
mov dword [ebp - 0xc1c], edi
mov edi, 1
je 0x1119ab44
mov eax, dword [ebp - 0xc30]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc44]
push reloc.OLEAUT32.dll_SysReAllocString
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc50], eax
test eax, eax
je 0x1119ab44
lea ecx, [ebp - 0xc58]
push ecx
push 0x400
lea edx, [ebp - 0xc14]
push edx
push edi
push eax
mov dword [ebp - 0xc58], 0
call dword [ebp - 0xc40]
test eax, eax
je 0x1119ab2f
mov eax, dword [ebp - 0xc14]
mov byte [ebp - 0x410], 0
test eax, eax
je 0x1119a9be
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push 0xffffffffffffffff
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esi + 0xc]
mov edi, dword [ebp - 0xc30]
mov ecx, dword [edi + 4]
push eax
push ecx
lea ecx, [ebp - 0xc20]
call fcn.111bb8e0
mov eax, dword [esi + 0xc]
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0xc24]
mov dword [ebp - 4], 0
call fcn.111bb8e0
mov eax, dword [ebp - 0xc20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1119aa00
mov ecx, dword [ebp - 0xc24]
sub eax, edx
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1119aa12
mov edx, dword [esi + 8]
sub ecx, edi
push ebx
lea eax, [ecx + eax + 1]
push eax
lea ecx, [ebp - 0xc18]
push ecx
push edx
mov ecx, esi
call fcn.111991e0
test eax, eax
je 0x1119ac93
mov eax, dword [ebp - 0xc20]
mov edx, dword [esi + 8]
push ebx
push eax
lea ecx, [ebp - 0xc18]
push ecx
push edx
mov ecx, esi
call fcn.11199210
test eax, eax
je 0x1119ac93
mov ecx, dword [esi + 8]
push ebx
push 0x111fd544
lea eax, [ebp - 0xc18]
push eax
push ecx
mov ecx, esi
call fcn.11199210
test eax, eax
je 0x1119ac93
mov edx, dword [ebp - 0xc24]
mov ecx, dword [esi + 8]
push ebx
push edx
lea eax, [ebp - 0xc18]
push eax
push ecx
mov ecx, esi
call fcn.11199210
test eax, eax
je 0x1119ac93
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1119aaa8
sub eax, edx
cmp eax, 0x400
jbe 0x1119aabb
mov byte [ebp - 0x11], cl
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1119aac4
sub eax, edx
push ebx
push eax
mov eax, dword [esi + 8]
lea edx, [ebp - 0xc18]
push edx
push eax
mov ecx, esi
call fcn.111991e0
test eax, eax
je 0x1119ac93
mov eax, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0xc18]
push edx
push eax
mov ecx, esi
call fcn.11199210
test eax, eax
je 0x1119ac93
mov ecx, dword [ebp - 0xc24]
push ecx
xor edi, edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edx, dword [ebp - 0xc20]
push edx
mov dword [ebp - 4], 0xffffffff
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, dword [ebp - 0xc50]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x1119ac3e
mov eax, dword [esi + 0xc]
mov edi, dword [ebp - 0xc30]
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0xc28]
call fcn.111bb8e0
mov eax, dword [ebp - 0xc28]
mov dword [ebp - 4], 1
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1119ab70
push ebx
sub eax, edx
mov edx, dword [esi + 8]
push eax
lea ecx, [ebp - 0xc18]
push ecx
push edx
mov ecx, esi
call fcn.111991e0
test eax, eax
je 0x1119accc
mov eax, dword [ebp - 0xc28]
mov edx, dword [esi + 8]
push ebx
push eax
lea ecx, [ebp - 0xc18]
push ecx
push edx
mov ecx, esi
call fcn.11199210
test eax, eax
je 0x1119accc
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 4]
push eax
push ecx
lea ecx, [ebp - 0xc34]
call fcn.111bb8e0
mov eax, dword [ebp - 0xc34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1119abd3
mov ecx, dword [esi + 8]
push ebx
sub eax, edx
push eax
lea eax, [ebp - 0xc18]
push eax
push ecx
mov ecx, esi
call fcn.111991e0
test eax, eax
je 0x1119acf6
mov edx, dword [ebp - 0xc34]
mov ecx, dword [esi + 8]
push ebx
push edx
lea eax, [ebp - 0xc18]
push eax
push ecx
mov ecx, esi
call fcn.11199210
test eax, eax
je 0x1119acf6
mov edx, dword [ebp - 0xc34]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc28]
push eax
mov dword [ebp - 4], 0xffffffff
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 8
jmp 0x1119ac44
mov edi, dword [ebp - 0xc30]
mov ecx, dword [edi + 0xc]
mov eax, dword [esi + 8]
push ebx
push ecx
lea edx, [ebp - 0xc18]
push edx
push eax
mov ecx, esi
call fcn.111991e0
test eax, eax
je 0x1119ad2c
mov eax, dword [ebp - 0xc48]
inc dword [esi + 4]
add edi, 0x24
inc eax
mov dword [ebp - 0xc30], edi
mov edi, dword [ebp - 0xc18]
mov dword [ebp - 0xc48], eax
cmp eax, dword [ebp - 0xc2c]
jb 0x1119a920
jmp 0x1119ad48
mov eax, dword [ebp - 0xc1c]
mov edi, dword [ebp - 0xc18]
mov ecx, eax
sub ecx, edi
push ecx
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0xc24]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc20]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
jmp 0x1119ad48
mov eax, dword [ebp - 0xc1c]
mov edi, dword [ebp - 0xc18]
mov ecx, eax
sub ecx, edi
push ecx
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0xc28]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x1119ad48
mov eax, dword [ebp - 0xc1c]
mov edi, dword [ebp - 0xc18]
mov ecx, eax
sub ecx, edi
push ecx
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0xc34]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc28]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
jmp 0x1119ad48
mov eax, dword [ebp - 0xc1c]
mov edi, dword [ebp - 0xc18]
mov ecx, eax
sub ecx, edi
push ecx
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0xc4c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0xc44]
sub edi, eax
mov dword [eax + 4], edi
mov ecx, dword [esi + 4]
push edx
mov dword [eax + 8], ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc54]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret