Function at 0x4d0290
Capabilities:
Enumerate services

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3bd6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
mov edi, dword [ebx + 8]
push 4
push str.ServicesActive
push 0
mov dword [ebp - 0x70], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4d032b
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 3
push 0x30
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x4d0342
cmp byte [edi + 0xc], 0
sete al
mov byte [ebp - 0x61], al
test esi, esi
jne 0x4d056c
jmp 0x4d0576
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x4c], xmm0
call fcn.0041e7cf
mov ecx, dword [ebp - 0x68]
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
push 0
push 0
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 1
push edx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push edx
push ecx
push eax
push 3
push 0x30
push 0
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
cmp dword [ebp - 0x18], 0
jne 0x4d0398
mov byte [ebp - 0x61], 1
jmp 0x4d0561
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
call fcn.005dc5e0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.005d6aa0
xorps xmm0, xmm0
lea ecx, [ebp - 0x5c]
movups xmmword [ebp - 0x5c], xmm0
call fcn.005d6b10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x78], 0
jbe 0x4d0531
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], ecx
cmp byte [edi + 0xc], 0
jne 0x4d0596
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Parameters
push dword [ecx]
lea ecx, [ebp - 0x2c]
push str.HKLMSYSTEMCurrentControlSet_services_
call fcn.005dc200
lea eax, [ebp - 0x5c]
push eax
push str.ServiceDll
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x20]
call fcn.005d6880
push 0xb
lea ecx, [ebp - 0x2c]
call fcn.005dadc0
mov eax, dword [ebp - 0x54]
cmp eax, 1
je 0x4d049e
cmp eax, 2
je 0x4d049e
lea eax, [ebp - 0x5c]
push eax
push str.ImagePath
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x20]
call fcn.005d6880
mov eax, dword [ebp - 0x54]
cmp eax, 1
je 0x4d049e
cmp eax, 2
jne 0x4d0518
cmp dword [ebp - 0x58], 4
jb 0x4d0518
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x38]
push 3
push 1
push dword [ebp - 0x5c]
call fcn.005dc260
lea edx, [edi + 0x1c]
mov ecx, eax
call fcn.005e88c0
test al, al
jne 0x4d0515
lea ecx, [ebp - 0x38]
call fcn.005dc190
push eax
push 0
call dword [sym.imp.sfc.dll_SfcIsFileProtected]
test eax, eax
jne 0x4d0515
push 1
push 0xa
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
push 0x68fb68
call fcn.005dc190
push eax
lea ecx, [ebp - 0x44]
call fcn.005dc200
mov ecx, eax
call fcn.005dc190
mov edi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
push eax
push edi
call fcn.004ceb00
jmp 0x4d0518
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x68]
inc eax
add ecx, 0x2c
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x68], ecx
cmp eax, dword [ebp - 0x18]
jb 0x4d0416
cmp byte [edi + 0xc], 0
sete byte [ebp - 0x61]
lea ecx, [ebp - 0x5c]
call fcn.005d6b00
lea ecx, [ebp - 0x20]
call fcn.005d69e0
lea ecx, [ebp - 0x44]
call fcn.005dc430
lea ecx, [ebp - 0x38]
call fcn.005dc430
lea ecx, [ebp - 0x2c]
call fcn.005dc430
push dword [ebp - 0x4c]
call fcn.0041e1c3
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x61]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov byte [ebp - 0x61], 0
jmp 0x4d0539