Function at 0x100109dc
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xad4
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov eax, dword [eax]
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
call fcn.100030eb
push 0xf003f
push ebx
mov edi, eax
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea ecx, [esp + 0x18]
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], eax
push ecx
push ebx
push ebx
push 3
push 0x30
push eax
call esi
push dword [esp + 0x14]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x10010e9a
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push ebx
push 3
push 0x30
push dword [esp + 0x44]
call esi
and dword [esp + 0x30], 0
cmp dword [esp + 0x18], 0
jbe 0x10010dfd
mov esi, ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov dword [esp + 0x10], esi
push 0xa18
lea eax, [esp + 0xcc]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0xf01ff
push dword [esi]
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10010ddf
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax*2 + 2]
cmp eax, 0xc8
jbe 0x10010ae7
mov esi, dword [esi]
lea edi, [esp + 0xc8]
push 0x32
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
jmp 0x10010afa
push eax
push dword [esi]
lea eax, [esp + 0xd0]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax*2 + 2]
cmp eax, 0x208
jbe 0x10010b28
mov esi, dword [esi + 4]
lea edi, [esp + 0x190]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
jmp 0x10010b3c
push eax
push dword [esi + 4]
lea eax, [esp + 0x198]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push 4
push 0x3000
push 0x2000
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edi, eax
mov dword [esp + 0x34], edi
test edi, edi
je 0x10010ddb
lea eax, [esp + 0x2c]
push eax
push 0x2000
push edi
push 1
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
cmp dword [edi], 0
je 0x10010bb5
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax*2 + 2]
cmp eax, 0x400
jbe 0x10010ba2
mov esi, dword [edi]
mov ecx, 0x100
lea edi, [esp + 0x398]
rep movsd dword es:[edi], dword [esi]
jmp 0x10010bb5
push eax
push dword [edi]
lea eax, [esp + 0x3a0]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
xor eax, eax
lea edi, [esp + 0x40]
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
sub eax, 1
je 0x10010c1f
sub eax, 1
je 0x10010c18
sub eax, 1
je 0x10010c11
sub eax, 1
je 0x10010c0a
sub eax, 1
je 0x10010c03
sub eax, 1
je 0x10010bfc
sub eax, 1
lea eax, [esp + 0x40]
je 0x10010bf5
push 0x1004b4e4
jmp 0x10010c28
push 0x1004b4b8
jmp 0x10010c28
push 0x1004b4b0
jmp 0x10010c24
push 0x1004b4a8
jmp 0x10010c24
push 0x1004b4c0
jmp 0x10010c24
push str.Pbk_N
jmp 0x10010c24
push str.ck_W
jmp 0x10010c24
push str.Pbk
lea eax, [esp + 0x44]
push eax
call ebx
push 0xa
pop ecx
push 4
lea esi, [esp + 0x44]
lea edi, [esp + 0x79c]
rep movsd dword es:[edi], dword [esi]
push 0x3000
mov edi, 0x2000
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x10010dd7
lea eax, [esp + 0x2c]
push eax
push edi
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push 0xa
xor eax, eax
lea edi, [esp + 0x6c]
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
sub eax, 0
je 0x10010cbd
sub eax, 1
je 0x10010cb6
sub eax, 1
je 0x10010caf
sub eax, 1
je 0x10010ca8
sub eax, 1
lea eax, [esp + 0x68]
je 0x10010ca1
push 0x1004b4e4
jmp 0x10010cc6
push 0x1004b50c
jmp 0x10010cc6
push 0x1004b500
jmp 0x10010cc2
push str.R_T
jmp 0x10010cc2
push 0x1004b518
jmp 0x10010cc2
push 0x1004b4f8
lea eax, [esp + 0x6c]
push eax
call ebx
push 0xa
pop ecx
lea esi, [esp + 0x68]
lea edi, [esp + 0x7c0]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax*2 + 2]
cmp eax, 0xc8
jbe 0x10010d09
mov esi, dword [edi + 0x1c]
lea edi, [esp + 0x7e8]
push 0x32
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
jmp 0x10010d1d
push eax
push dword [edi + 0x1c]
lea eax, [esp + 0x7f0]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [edi], 0x100
mov eax, 0x1004b524
mov esi, 0x1004ab48
cmovae esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x8b4]
push esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [eax*2 + 2]
mov eax, dword [edi + 0xc]
cmp ecx, 0x208
jbe 0x10010d7d
mov ecx, 0x82
lea edi, [esp + 0x8d8]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x10010d8f
push ecx
push eax
lea eax, [esp + 0x8e0]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xc8]
push 0xa18
push eax
push edi
call dword [edi + 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualFree]
add esp, 0xc
push 0x8000
push 0
push dword [esp + 0x28]
call esi
push 0x8000
push 0
push dword [esp + 0x3c]
call esi
mov esi, dword [esp + 0x10]
jmp 0x10010ddf
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
add esi, 0x24
inc eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x18]
jb 0x10010a89
mov ebx, dword [esp + 0x38]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push 0x38
xor ebx, ebx
lea eax, [esp + 0x94]
push ebx
push eax
call sub.ntdll.dll_memset
push edi
mov dword [esp + 0xd4], 0x2072024
mov dword [esp + 0xc4], 0x6000
call dword [edi + 0x18]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd0], ebx
call fcn.100030eb
mov esi, eax
lea eax, [esp + 0xa0]
push 0x38
push eax
push esi
call dword [esi + 0x14]
push edi
call dword [edi + 0x18]
add esp, 0x20
push eax
push ebx
push edi
call dword [edi + 0x1c]
pop ecx
pop ecx
push eax
push esi
call dword [esi + 0x14]
push esi
call dword [esi + 0x18]
add esp, 0x10
push eax
push ebx
push esi
call dword [esi + 0x1c]
pop ecx
pop ecx
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [eax + 0x18]
add esp, 0xc
mov ecx, edi
call fcn.100031f9
mov ecx, esi
call fcn.100031f9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret