Function at 0x1000ddbc
Capabilities:
Enumerate services

Disassembly:
push 0xdc
mov eax, 0x1003a20a
call fcn.10022cff
mov ebx, ecx
mov dword [ebp - 0xd0], ebx
xor esi, esi
mov word [ebp - 0xc0], 0x120f
push 0x100437a4
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xcc], esi
mov byte [ebp - 0xbe], 5
call fcn.10012874
mov byte [ebp - 0xc0], 0xf
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0xc0]
call fcn.10007064
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.1001340c
push 4
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000e0ba
push esi
push esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xc4]
push eax
push esi
push esi
push 3
push 0x3b
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
test eax, eax
jne 0x1000e0b3
cmp dword [ebp - 0xc4], eax
jbe 0x1000e0b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1000e0b3
push dword [ebp - 0xc4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov esi, eax
push ecx
push ecx
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
push esi
push 3
push 0x3b
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x1000e0a8
xor ebx, ebx
cmp dword [ebp - 0xcc], ebx
jbe 0x1000e0a2
lea ecx, [esi + 0xc]
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x1000df8b
cmp dword [ebp - 0xdc], 0
je 0x1000df8b
sub eax, dword [ebp - 0xdc]
cmp eax, 0x7d000
jbe 0x1000df8b
sub esp, 0x14
lea eax, [ebp - 0xe4]
mov ecx, esp
push eax
call fcn.10005a66
mov ecx, dword [ebp - 0xd0]
call fcn.1000ca04
lea ecx, [ebp - 0xe4]
call fcn.10005b11
push 0x100437a4
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x30], 0x120f
mov byte [ebp - 0x2e], 0x1b
call fcn.10012874
mov byte [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x30]
call fcn.10007064
mov ecx, eax
call fcn.10005b56
push eax
push dword [ecx + 8]
lea ecx, [ebp - 0xe4]
call fcn.10005b6a
dec dword [0x100509d8]
lea ecx, [ebp - 0x44]
call fcn.10005aee
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1001340c
mov ecx, dword [ebp - 0xc8]
test esi, esi
je 0x1000e08c
and dword [ebp - 0x94], 0
and dword [ebp - 0x84], 0
xor eax, eax
and dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
and dword [ebp - 0x6c], eax
and dword [ebp - 0x64], eax
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
and dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov word [ebp - 0xa4], 0x120f
mov byte [ebp - 0xa2], 0x1c
mov byte [ebp - 4], 7
mov eax, dword [ecx + 0x18]
push dword [ecx - 0xc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ecx]
mov dword [ebp - 0x9c], eax
mov eax, dword [ecx - 4]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x98], eax
call fcn.10012757
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x7c]
push dword [eax - 8]
call fcn.10012757
mov eax, dword [ebp - 0xc8]
push dword [eax - 0xc]
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.1000e2bd
push eax
lea ecx, [ebp - 0x64]
call fcn.100127a6
lea ecx, [ebp - 0x48]
call fcn.1001340c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xa4]
call fcn.100074d3
mov ecx, eax
call fcn.10005b56
push eax
push dword [ecx + 8]
lea ecx, [ebp - 0xe4]
call fcn.10005b6a
dec dword [0x100509d8]
lea ecx, [ebp - 0x44]
call fcn.10005aee
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.1000e995
mov ecx, dword [ebp - 0xc8]
inc ebx
add ecx, 0x2c
mov dword [ebp - 0xc8], ecx
cmp ebx, dword [ebp - 0xcc]
jb 0x1000ded7
mov ebx, dword [ebp - 0xd0]
test esi, esi
je 0x1000e0b3
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x100437a4
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x30], 0x120f
mov byte [ebp - 0x2e], 0x19
call fcn.10012874
mov byte [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x30]
call fcn.10007064
mov ecx, eax
call fcn.10005b56
push eax
push dword [ecx + 8]
lea ecx, [ebp - 0xe4]
call fcn.10005b6a
dec dword [0x100509d8]
lea ecx, [ebp - 0x44]
call fcn.10005aee
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1001340c
sub esp, 0x14
lea eax, [ebp - 0xe4]
mov ecx, esp
push eax
call fcn.10005a66
mov ecx, ebx
call fcn.1000ca04
dec dword [0x100509d8]
lea ecx, [ebp - 0xe4]
call fcn.10005aee
call fcn.10022cbd
ret