Function at 0x1000f1c0
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x2fc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
push str.LocalAlloc
mov dword [esp + 0x34], ecx
push str.KERNEL32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.LocalReAlloc
push str.KERNEL32.dll
mov esi, eax
call ebx
push eax
call edi
xor ebp, ebp
push 0xf003f
push ebp
push ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x24], edi
jne 0x1000f22e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2fc
ret 4
push 0x10000
push 0x40
call esi
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x1000f25b
mov eax, dword [esp + 0x310]
pop edi
pop esi
pop ebp
mov dword [eax], 0xffffffff
xor eax, eax
pop ebx
add esp, 0x2fc
ret 4
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
push edx
push ecx
push 0x10000
push eax
push 3
push 0x30
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x1000f299
mov edx, dword [esp + 0x310]
pop edi
pop esi
pop ebp
mov dword [edx], 0xffffffff
pop ebx
add esp, 0x2fc
ret 4
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
lea eax, [edx*8 + 2]
push eax
push 0x40
call esi
mov ebp, eax
mov eax, dword [esp + 0x10]
mov edi, ebp
mov dword [esp + 0x14], 0
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
xor eax, eax
lea ecx, [edx*8 + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebp], 0x84
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000f3c6
mov ecx, dword [esp + 0x1c]
lea eax, [ebp + 1]
mov dword [esp + 0x18], eax
lea ebx, [ecx + 0xc]
mov esi, dword [ebx - 0xc]
mov ecx, 0xb6
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x34]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx - 8]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x75]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
cmp eax, 4
rep movsb byte es:[edi], byte [esi]
jne 0x1000f35f
mov dword [esp + 0x300], 2
jmp 0x1000f37f
cmp eax, 1
jne 0x1000f36d
mov dword [esp + 0x300], eax
jmp 0x1000f37f
xor ecx, ecx
cmp eax, 7
setne cl
add ecx, 3
mov dword [esp + 0x300], ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
call fcn.1000f430
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, 0xb6
lea esi, [esp + 0x34]
mov edi, edx
inc eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
add ebx, 0x24
add edx, 0x2d8
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jb 0x1000f300
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CloseServiceHandle
push str.ADVAPI32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov ecx, dword [esp + 0x24]
push ecx
call eax
push str.LocalFree
push str.KERNEL32.dll
call ebx
push eax
call esi
mov edx, dword [esp + 0x1c]
push edx
call eax
mov ecx, dword [esp + 0x310]
mov eax, dword [esp + 0x10]
push 0x42
mov dword [ecx], eax
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*8]
lea eax, [eax + edx*2]
lea ecx, [eax*8 + 2]
push ecx
push ebp
call dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2fc
ret 4