Function at 0x41ffc0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b91f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
mov ebx, ecx
mov dword [ebp - 0xf4], ebx
push edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push 4
push 0
push 0
mov dword [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x420061
mov byte [ebp - 4], 3
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x3c]
push dword [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00420920
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xa
call fcn.0041c970
jmp 0x4204e5
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xb
push esi
nop dword [eax + eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x4200be
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x4200cb
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.004025b0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0x3b
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x420169
cmp eax, 0xea
je 0x4200a0
cmp eax, 0x7a
je 0x4200a0
mov byte [ebp - 4], 0xc
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x3c]
push dword [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00420920
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 1
cmp eax, 0x10
jb 0x42014b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402350
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0x13
jmp 0x4204dc
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov dword [ebp - 0x44], 0
cmovae esi, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0
jle 0x420475
add esi, 8
nop dword [eax + eax]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xc0], 0
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
mov byte [ebp - 4], 0x15
xor eax, eax
mov edx, dword [esi - 8]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp word [edx], ax
jne 0x420224
xor ecx, ecx
jmp 0x42023f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420230
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.0040e4a0
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xd8]
call fcn.0041cfa0
mov edi, eax
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x17
cmp eax, edi
je 0x4202b0
mov eax, dword [ebp - 0xac]
cmp eax, 0x10
jb 0x420289
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.00402350
push edi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xc0], 0
call fcn.00402290
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0xc4]
cmp eax, 0x10
jb 0x4202d2
inc eax
lea ecx, [ebp - 0xd8]
push eax
push dword [ebp - 0xd8]
call fcn.00402350
mov dword [ebp - 0xc4], 0xf
mov dword [ebp - 0xc8], 0
mov byte [ebp - 0xd8], 0
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x420306
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.004028a0
mov edx, dword [esi - 4]
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], eax
mov word [ebp - 0x74], ax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp word [edx], ax
jne 0x42033a
xor ecx, ecx
jmp 0x42034f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420340
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.0040e4a0
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xf0]
call fcn.0041cfa0
mov edi, eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0x19
cmp eax, edi
je 0x4203c0
mov eax, dword [ebp - 0x94]
cmp eax, 0x10
jb 0x420399
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.00402350
push edi
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
call fcn.00402290
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0xdc]
cmp eax, 0x10
jb 0x4203e2
inc eax
lea ecx, [ebp - 0xf0]
push eax
push dword [ebp - 0xf0]
call fcn.00402350
mov dword [ebp - 0xdc], 0xf
mov dword [ebp - 0xe0], 0
mov byte [ebp - 0xf0], 0
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x420416
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.004028a0
movups xmm0, xmmword [esi]
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
lea ecx, [ebp - 0x3c]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0xc0]
movups xmmword [ebp - 0x90], xmm0
push eax
movq xmm0, qword [esi + 0x10]
mov dword [ebp - 0x64], 0
movq qword [ebp - 0x80], xmm0
call fcn.00420500
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xb
call fcn.0041cd20
mov eax, dword [ebp - 0x44]
add esi, 0x24
inc eax
mov dword [ebp - 0x44], eax
cmp eax, dword [ebp - 0x2c]
jl 0x420190
mov byte [ebp - 4], 0x1a
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x3c]
push dword [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00420920
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 1
cmp eax, 0x10
jb 0x4204c3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402350
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0x21
lea ecx, [ebp - 0x3c]
call fcn.0041c970
pop esi
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret