Function at 0x53b620
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65d823
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0xf4], ebx
push edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 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 0x53b711
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 - 0x1c]
push dword [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0053bfe0
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xa
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x53bc57
mov byte [ebp - 4], 0xa
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00539900
add esp, 8
mov byte [ebp - 4], 0xa
mov eax, 0x6bca1af3
mov ecx, dword [ebp - 0x14]
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00539840
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0xa
jmp 0x53bc50
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0x2a
nop word [eax + eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
cmp ecx, eax
ja 0x53b76e
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmovae eax, dword [ebp - 0x34]
mov byte [eax + ecx], 0
jmp 0x53b77b
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.004c3a30
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
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 0x53b82c
cmp eax, 0xea
je 0x53b750
cmp eax, 0x7a
je 0x53b750
mov byte [ebp - 4], 0x2b
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov byte [ebp - 4], 0x2b
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0053bfe0
mov byte [ebp - 4], 0x2a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], 1
cmp eax, 0x10
jb 0x53b7fb
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00414c80
mov dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0
call fcn.00539770
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov dword [ebp - 0x44], 0
cmovae esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], 0
jle 0x53bb92
add esi, 8
nop dword [eax + eax]
mov byte [ebp - 4], 0x32
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
mov byte [ebp - 4], 0x33
xor eax, eax
mov edx, dword [esi - 8]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
cmp word [edx], ax
jne 0x53b8d8
xor ecx, ecx
jmp 0x53b8ef
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53b8e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa8]
call fcn.004169e0
lea edx, [ebp - 0xa8]
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0xd8]
call fcn.00539b00
mov edi, eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x35
cmp eax, edi
je 0x53b95d
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x53b93c
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.00414c80
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
call fcn.00414640
mov byte [ebp - 4], 0x34
mov eax, dword [ebp - 0xc4]
cmp eax, 0x10
jb 0x53b97f
inc eax
lea ecx, [ebp - 0xd8]
push eax
push dword [ebp - 0xd8]
call fcn.00414c80
mov dword [ebp - 0xc4], 0xf
mov dword [ebp - 0xc8], 0
mov byte [ebp - 0xd8], 0
mov byte [ebp - 4], 0x33
mov eax, dword [ebp - 0x94]
cmp eax, 8
jb 0x53b9bc
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.00416870
mov edx, dword [esi - 4]
xor eax, eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], eax
mov word [ebp - 0xc0], ax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
cmp word [edx], ax
jne 0x53ba08
xor ecx, ecx
jmp 0x53ba1f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53ba10
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc0]
call fcn.004169e0
lea edx, [ebp - 0xc0]
mov byte [ebp - 4], 0x36
lea ecx, [ebp - 0xf0]
call fcn.00539b00
mov edi, eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0x37
cmp eax, edi
je 0x53ba7e
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x53ba63
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.00414c80
push edi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
call fcn.00414640
mov byte [ebp - 4], 0x36
mov eax, dword [ebp - 0xdc]
cmp eax, 0x10
jb 0x53baa0
inc eax
lea ecx, [ebp - 0xf0]
push eax
push dword [ebp - 0xf0]
call fcn.00414c80
mov dword [ebp - 0xdc], 0xf
mov dword [ebp - 0xe0], 0
mov byte [ebp - 0xf0], 0
mov byte [ebp - 4], 0x33
mov eax, dword [ebp - 0xac]
cmp eax, 8
jb 0x53badd
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.00416870
movups xmm0, xmmword [esi]
xor eax, eax
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
lea ecx, [ebp - 0x1c]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x90]
movups xmmword [ebp - 0x60], xmm0
push eax
movq xmm0, qword [esi + 0x10]
mov dword [ebp - 0xb0], 0
movq qword [ebp - 0x50], xmm0
call fcn.0053bc70
mov byte [ebp - 4], 0x38
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x53bb39
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.00414c80
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
cmp eax, 0x10
jb 0x53bb66
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.00414c80
mov eax, dword [ebp - 0x44]
add esi, 0x24
inc eax
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
mov byte [ebp - 4], 0x2a
mov dword [ebp - 0x44], eax
cmp eax, dword [ebp - 0x38]
jl 0x53b850
mov byte [ebp - 4], 0x39
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov byte [ebp - 4], 0x39
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0053bfe0
mov byte [ebp - 4], 0x2a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], 1
cmp eax, 0x10
jb 0x53bbe0
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00414c80
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0x40
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x53bc57
mov byte [ebp - 4], 0x40
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00539900
add esp, 8
mov byte [ebp - 4], 0x40
mov eax, 0x6bca1af3
mov ecx, dword [ebp - 0x14]
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00539840
mov byte [ebp - 4], 0x40
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0x40
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0x40
mov dword [ebp - 0x14], 0
pop edi
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret