Function at 0x4cac80
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624cd8
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x6ec7c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 5
push 0
push 0
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x90], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x4cb2cc
push 0
push 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x98], 0
push ecx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x8c], 0
push ecx
push 0
push 0
push 3
push 0x30
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov esi, dword [ebp - 0x98]
xor eax, eax
xor edi, edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x88], eax
test esi, esi
je 0x4cadc6
cmp esi, 0x7fffffff
ja 0x4cb2e9
cmp esi, 0x1000
jb 0x4cad82
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x4cb2ee
push eax
call fcn.0060388f
add esp, 4
test eax, eax
je 0x4cafce
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ebp - 0x7c], ecx
mov dword [ecx - 4], eax
jmp 0x4cad90
push esi
call fcn.0060388f
add esp, 4
mov dword [ebp - 0x7c], eax
mov ecx, eax
push esi
lea eax, [ecx + esi]
mov dword [ebp - 0xb8], ecx
push 0
push ecx
mov dword [ebp - 0xa8], eax
mov edi, eax
mov dword [ebp - 0xb0], eax
call fcn.0060ddfb
mov esi, dword [ebp - 0x7c]
add esp, 0xc
mov eax, esi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0x88], eax
jmp 0x4cadc8
xor esi, esi
push 0
push 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x98]
sub edi, eax
push ecx
push edi
push esi
push 3
push 0x30
push 0
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.HandyBackupServer8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00414450
cmp dword [ebp - 0x8c], 0
mov edi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [ebp - 0xa0], 0
jbe 0x4caf5d
mov eax, dword [ebp - 0x88]
nop
mov edx, dword [eax]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cae60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00414450
cmp dword [ebp - 0x14], 7
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
cmova edi, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 7
mov edx, dword [ebp - 0x30]
cmova ecx, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x18], edx
ja 0x4caef4
mov esi, dword [ebp - 0x18]
mov eax, edx
sub eax, esi
test esi, esi
je 0x4cb017
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0x80]
add ecx, 2
mov dword [ebp - 0x94], ecx
nop dword [eax]
sub ecx, eax
sar ecx, 1
je 0x4caef1
movzx edx, word [edi]
nop dword [eax]
cmp word [eax], dx
je 0x4cafd4
add eax, 2
sub ecx, 1
jne 0x4caee0
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 7
jbe 0x4caf2f
lea ecx, [ecx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4caf25
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cafce
push ecx
push esi
call fcn.00604b8c
add esp, 8
mov edi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x88]
inc edi
add eax, 0x2c
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x88], eax
cmp edi, dword [ebp - 0x8c]
jb 0x4cae40
mov esi, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x28]
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x4caf9c
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4caf92
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cafce
push ecx
push edi
call fcn.00604b8c
add esp, 8
test esi, esi
je 0x4cb2c6
mov ecx, dword [ebp - 0xa8]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4cb2bc
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4cb2bc
call dword [0x63e2e0]
test eax, eax
je 0x4caef1
mov edx, edi
test esi, esi
je 0x4cb005
mov edi, eax
sub edi, dword [ebp - 0x9c]
nop word [eax + eax]
mov cx, word [edx + edi]
cmp cx, word [edx]
jne 0x4cb0b2
add edx, 2
sub esi, 1
jne 0x4caff0
sub eax, dword [ebp - 0x80]
cmp eax, 2
jae 0x4caef1
mov edx, dword [ebp - 0x84]
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
lea esi, [ebp - 0x40]
cmova ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 7
cmova esi, dword [ebp - 0x78]
cmp edx, edi
jne 0x4cb05b
test edx, edx
je 0x4cb051
sub esi, ecx
nop word [eax + eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x4cb05b
add ecx, 2
sub edx, 1
jne 0x4cb040
mov dword [ebp - 0x90], 2
mov eax, accept
sub eax, edi
cmp eax, 1
jb 0x4cb2f3
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
lea esi, [edi + 1]
mov dword [ebp - 0x48], 0
cmova eax, dword [ebp - 0x28]
lea edi, [ebp - 0x58]
mov ecx, 7
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
cmp esi, ecx
jbe 0x4cb0f5
mov eax, esi
or eax, ecx
cmp eax, 0x7ffffffe
jbe 0x4cb0c9
mov eax, accept
jmp 0x4cb0d4
mov edi, dword [ebp - 0x9c]
add eax, 2
mov ecx, dword [ebp - 0x94]
mov esi, dword [ebp - 0x18]
jmp 0x4caed0
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00414360
mov ecx, dword [ebp - 0x80]
mov edi, eax
mov eax, dword [ebp - 0x94]
add esp, 8
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x18]
add esi, esi
mov dword [ebp - 0x44], ecx
push esi
push eax
push edi
call fcn.0060ddef
mov eax, 0x20
xor ecx, ecx
mov word [edi + esi], ax
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov word [edi + eax*2 + 2], cx
mov ecx, dword [ebp - 0xac]
mov eax, ecx
mov byte [ebp - 4], 3
cmp dword [ecx + 0x14], 7
jbe 0x4cb132
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.00418500
xor ecx, ecx
lea edx, [ebp - 0x40]
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov edi, dword [ebp - 0x5c]
cmp edi, 7
mov word [eax], cx
lea ecx, [ebp - 0x70]
movd esi, xmm1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov eax, dword [ebp - 0x84]
cmova ecx, esi
cmp dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x70], xmm1
cmova edx, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x60]
jne 0x4cb1ab
test eax, eax
je 0x4cb1a5
sub edx, ecx
nop
mov ax, word [ecx + edx]
cmp ax, word [ecx]
jne 0x4cb1ab
add ecx, 2
sub dword [ebp - 0x84], 1
jne 0x4cb190
mov byte [ebp - 0x71], 1
jmp 0x4cb1af
mov byte [ebp - 0x71], 0
cmp edi, 7
jbe 0x4cb1e3
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4cb1d9
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cafce
push ecx
push esi
call fcn.00604b8c
add esp, 8
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x4cb221
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cb217
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cafce
push ecx
push edx
call fcn.00604b8c
add esp, 8
cmp byte [ebp - 0x71], 0
jne 0x4cb26f
cmp dword [ebp - 0x90], 0
jne 0x4cb279
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp eax, 7
jbe 0x4caf2f
mov edx, dword [ebp - 0x78]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cb268
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cafce
push ecx
push edx
jmp 0x4caf27
mov dword [ebp - 0x90], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x4caf57
mov edx, dword [ebp - 0x78]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cb2ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cafce
push ecx
push edx
call fcn.00604b8c
add esp, 8
jmp 0x4caf57
push ecx
push esi
call fcn.00604b8c
add esp, 8
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00604ed9
mov esp, ebp
pop ebp
ret 4
call fcn.00417f20
call fcn.00417e00
call fcn.00417f10
int3