Function at 0x4376c0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec5f1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x6c], edi
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x437a55
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x50], 0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 1
push 0x30
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov ebx, dword [ebp - 0x50]
test ebx, ebx
jne 0x437756
push esi
or ebx, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x437a58
add ebx, 0x200
xorps xmm0, xmm0
push ebx
mov dword [ebp - 0x50], ebx
movlpd qword [ebp - 0x58], xmm0
call fcn.0041e7cf
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ebx
push 0
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x50]
push eax
push 1
push 0x30
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x4377a3
or ebx, 0xffffffff
jmp 0x437a3f
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x40]
movq qword [ebp - 0x40], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x34], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x4c]
movq qword [ebp - 0x4c], xmm0
call fcn.005dc5e0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.005d6aa0
mov ebx, dword [ebp + 8]
xor eax, eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x18], eax
jbe 0x4379ce
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
nop
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Parameters
push dword [edi]
lea ecx, [ebp - 0x40]
push str.HKLMSYSTEMCurrentControlSetServices_
call fcn.005dc200
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6552b0
push dword [edi]
lea ecx, [ebp - 0x34]
push str.Processing_the
call fcn.005dc200
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
mov eax, dword [ebp - 0x64]
lea ecx, [esi + 0x14f0]
xor edx, edx
div dword [ebp - 0x18]
push eax
call fcn.005b66e0
push 0
push 1
mov ecx, esi
call fcn.0043d720
test eax, eax
jne 0x4379c5
lea eax, [ebp - 0x28]
push eax
push str.ServiceDll
lea ecx, [ebp - 0x40]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005d65d0
test al, al
je 0x4378d6
lea ecx, [ebp - 0x28]
call fcn.005dbeb0
test al, al
je 0x43791b
push 0
lea ecx, [ebp - 0x40]
call fcn.005dbed0
lea eax, [ebp - 0x28]
push eax
push str.ServiceDll
lea ecx, [ebp - 0x40]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005d65d0
test al, al
je 0x43790a
lea ecx, [ebp - 0x28]
call fcn.005dbeb0
test al, al
je 0x43791b
lea eax, [ebp - 0x28]
push eax
push str.ImagePath
lea ecx, [ebp - 0x1c]
call fcn.005d6740
push 3
lea edx, [esi + 0x1c]
lea ecx, [ebp - 0x28]
call fcn.005e88c0
test bl, 4
je 0x43794a
push 0
lea ecx, [ebp - 0x28]
call fcn.005dc190
lea edx, [ebp - 0x4c]
mov ecx, eax
call fcn.005e65a0
add esp, 4
test eax, eax
je 0x4379ae
jmp 0x43797c
test bl, 2
je 0x437962
lea ecx, [ebp - 0x28]
call fcn.005dc190
mov dl, 1
mov ecx, eax
call fcn.005e33a0
jmp 0x437978
test bl, 1
je 0x43797c
lea ecx, [ebp - 0x28]
call fcn.005dc190
mov dl, 1
mov ecx, eax
call fcn.005e3270
test al, al
jne 0x4379ae
push ecx
push 1
push dword [edi]
mov ecx, esi
call fcn.00437d40
mov ecx, dword [edi + 0x24]
call fcn.005cc910
test al, al
je 0x43799c
mov ecx, dword [edi + 0x24]
call fcn.005cc410
mov ecx, dword [edi + 0x24]
call fcn.005cc910
xor ecx, ecx
test al, al
sete cl
add dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x68]
add edi, 0x2c
add dword [ebp - 0x64], 0x64
inc eax
mov dword [ebp - 0x68], eax
cmp eax, dword [ebp - 0x18]
jb 0x437830
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.005db320
test bl, 4
je 0x4379e5
push 0
push str._not_digitally_signed_services.
jmp 0x4379ff
test bl, 2
je 0x4379f3
push 0
push str._non_system_services.
jmp 0x4379ff
test bl, 1
je 0x437a14
push 0
push str._non_Microsoft_services.
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
push str.Successfully_stopped
mov ecx, edi
call fcn.0045a700
lea ecx, [ebp - 0x1c]
call fcn.005d69e0
lea ecx, [ebp - 0x4c]
call fcn.005dc430
lea ecx, [ebp - 0x34]
call fcn.005dc430
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x40]
call fcn.005dc430
mov ebx, dword [ebp - 0x60]
push dword [ebp - 0x58]
call fcn.0041e1c3
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x437a58
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4