Function at 0xb3a7d9
Capabilities:
Enumerate services

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
push edi
push 4
xor ebp, ebp
mov edi, ecx
push ebp
push ebp
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0xb3a80c
push 0xb86478
mov ecx, edi
call fcn.00b2417e
jmp 0xb3aace
lea ecx, [esp + 0x4c]
call fcn.00b21f86
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ebp
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ebp
push eax
push ebp
lea eax, [esp + 0xa4]
push eax
push 3
push 0x3b
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0xb3aab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0xb3aab2
mov esi, dword [esp + 0x18]
push esi
call fcn.00b5bda0
pop ecx
mov ebp, eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], ebp
push eax
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push 3
push 0x3b
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
xor esi, esi
mov dword [esp + 0x28], esi
cmp dword [esp + 0x14], esi
jbe 0xb3aaab
mov edi, ebp
mov ebp, dword [esp + 0x2c]
push 0xb8c92c
lea ecx, [esp + 0x38]
call fcn.00b2417e
mov edx, dword [edi + 4]
lea ecx, [esp + 0x64]
push eax
call fcn.00b242fc
pop ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00b2325d
lea ecx, [esp + 0x64]
call fcn.00b21f09
lea ecx, [esp + 0x34]
call fcn.00b21f09
push 0xb8c92c
lea ecx, [esp + 0x68]
call fcn.00b2417e
mov edx, dword [edi]
lea ecx, [esp + 0x34]
push eax
call fcn.00b242fc
pop ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00b2325d
lea ecx, [esp + 0x34]
call fcn.00b21f09
lea ecx, [esp + 0x64]
call fcn.00b21f09
push 0xb8c92c
lea ecx, [esp + 0x80]
call fcn.00b2417e
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x64]
push eax
call fcn.00b3bc98
mov edx, eax
lea ecx, [esp + 0x38]
call fcn.00b22fa5
pop ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00b2325d
lea ecx, [esp + 0x34]
call fcn.00b21f09
lea ecx, [esp + 0x64]
call fcn.00b21f09
lea ecx, [esp + 0x7c]
call fcn.00b21f09
and dword [esp + 0x1c], 0
push 1
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
push ecx
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0xb3aa87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0xb3aa87
mov esi, dword [esp + 0x1c]
push esi
call fcn.00b5bda0
pop ecx
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push esi
push ebp
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edx, dword [ebp]
lea ecx, [esp + 0x34]
mov esi, 0xb8c92c
push esi
call fcn.00b3bc98
mov edx, eax
lea ecx, [esp + 0x80]
call fcn.00b23014
pop ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00b2325d
lea ecx, [esp + 0x7c]
call fcn.00b21f09
lea ecx, [esp + 0x34]
call fcn.00b21f09
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x34]
push esi
call fcn.00b3bc98
mov edx, eax
lea ecx, [esp + 0x80]
call fcn.00b23014
pop ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00b2325d
lea ecx, [esp + 0x7c]
call fcn.00b21f09
lea ecx, [esp + 0x34]
call fcn.00b21f09
push 0xb87140
push esi
lea ecx, [esp + 0x6c]
call fcn.00b2417e
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
push eax
call fcn.00b242fc
pop ecx
mov edx, eax
lea ecx, [esp + 0x80]
call fcn.00b23014
pop ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00b2325d
lea ecx, [esp + 0x7c]
call fcn.00b21f09
lea ecx, [esp + 0x34]
call fcn.00b21f09
lea ecx, [esp + 0x64]
call fcn.00b21f09
push ebp
call fcn.00b5bd9b
mov esi, dword [esp + 0x2c]
pop ecx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc esi
add edi, 0x24
mov dword [esp + 0x28], esi
cmp esi, dword [esp + 0x14]
jb 0xb3a8a0
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
push ebp
call fcn.00b5bd9b
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.00b23262
lea ecx, [esp + 0x4c]
call fcn.00b21f09
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret