Function at 0x425b60
Capabilities:
Enumerate services
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4998
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041c080
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00425b00
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
xor bl, bl
mov dword [ebp - 0x54], edi
test edi, edi
je 0x425d9f
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push eax
push 0
push 0
push 3
push 0x30
push edi
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x41], bl
call esi
test eax, eax
jne 0x425d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x425d98
push dword [ebp - 0x48]
call fcn.004cbf7b
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x425d98
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x48]
push eax
push 3
push 0x30
push edi
call esi
test eax, eax
je 0x425d8d
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0
jbe 0x425d8d
mov ebx, dword [ebp - 0x5c]
nop word [eax + eax]
cmp byte [ebp - 0x41], 0
jne 0x425d8a
push bind
push dword [ebx]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x425d8a
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x425d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x425d70
push dword [ebp - 0x48]
call fcn.004cbf7b
mov edi, eax
add esp, 4
test edi, edi
je 0x425d6d
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x425d64
push dword [edi + 0xc]
lea ecx, [ebp - 0x40]
call fcn.00425fb0
lea ecx, [ebp - 0x40]
call fcn.00425b00
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00425e90
cmp eax, 0xffffffff
je 0x425d30
push 0x100
push dword [ebx]
mov byte [ebp - 0x41], 1
push str.uvnc_service
call fcn.004daa40
add esp, 0xc
mov byte [0x558a9f], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x425d64
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425d5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425ded
push edx
push ecx
call fcn.004cbf6d
add esp, 8
push edi
call fcn.004cbf38
add esp, 4
mov edi, dword [ebp - 0x54]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x58]
add ebx, 0x24
inc eax
mov dword [ebp - 0x58], eax
cmp eax, dword [ebp - 0x4c]
jb 0x425c70
mov bl, byte [ebp - 0x41]
push dword [ebp - 0x5c]
call fcn.004cbf38
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x425dcf
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425dc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425ded
push edx
push ecx
call fcn.004cbf6d
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
call fcn.004d0120
int3