Function at 0x10011e00
Capabilities:
Enumerate services
Query service configuration

Disassembly:
sub esp, 0x364
push ebx
push ebp
mov ebp, dword [esp + 0x370]
push esi
push edi
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 4]
mov eax, edx
cmp eax, edx
je 0x10011e37
mov esi, eax
mov edi, ebx
add eax, 0x314
mov ecx, 0xc5
add ebx, 0x314
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x10011e1d
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
push ebx
call fcn.10005e90
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp + 8], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x28], ebx
jne 0x10011e7a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x364
ret 4
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x48]
push 0x24
push ecx
push 3
push 0x30
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
mov edi, eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
push edx
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push eax
push 3
push 0x30
push ebx
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
test eax, eax
jbe 0x10012062
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov ecx, dword [esp + 0x28]
push 0xf003f
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [esp + 0x24], eax
je 0x1001203b
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x36c], edx
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x168]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x40
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10011f86
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x60]
push ecx
push 1
push edx
mov ecx, ebp
call fcn.10013460
mov ebx, dword [esp + 0x10]
jmp 0x10012042
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push 0x1000
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x10011fe9
mov dword [esp + 0x30], 0x1001f0c8
mov dword [esp + 0x34], 0x26e
mov dword [esp + 0x38], 0x1000
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x34]
push str.CSystemUtility::GetServiceList_QueryServiceConfig_failed___d_
push edx
call fcn.10006230
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [esp + 0x60]
push eax
push 1
push ecx
mov ecx, ebp
call fcn.10013460
mov ebx, dword [esp + 0x10]
jmp 0x10012042
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
mov dword [esp + 0x370], edx
mov edi, dword [ebx + 0xc]
xor eax, eax
lea edx, [esp + 0x268]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x60]
push ecx
push 1
push edx
mov ecx, ebp
call fcn.10013460
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
add ebx, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebx
jb 0x10011ee5
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp + 4]
test eax, eax
jne 0x1001208b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret 4
mov ebp, dword [ebp + 8]
pop edi
sub ebp, eax
mov eax, 0x532ae21d
imul ebp
sar edx, 8
mov ecx, edx
pop esi
shr ecx, 0x1f
add edx, ecx
pop ebp
mov eax, edx
pop ebx
add esp, 0x364
ret 4