Function at 0x425160
Capabilities:
Enumerate services
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5691dd
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5d7008]
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
mov edx, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4251b0
sub edx, esi
push edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041c000
mov dword [ebp - 4], 0
lea ebx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x4251df
mov edi, dword [ebp - 0x28]
mov ebx, edi
mov esi, dword [ebp - 0x18]
add esi, edi
jmp 0x4251e8
lea esi, [ebp - 0x28]
add esi, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmp edi, esi
je 0x425204
sub ebx, edi
nop
movsx eax, byte [edi]
push eax
call fcn.0054cb86
mov byte [ebx + edi], al
add esp, 4
inc edi
cmp edi, esi
jne 0x4251f0
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
xor bl, bl
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x425455
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], 0
push eax
push 0
push 0
push 3
push 0x30
push edi
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x41], bl
call esi
test eax, eax
jne 0x42544e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x42544e
push dword [ebp - 0x48]
call fcn.0053d681
add esp, 4
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x50]
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 0x425443
xor edi, edi
mov dword [ebp - 0x54], edi
cmp dword [ebp - 0x50], edi
jbe 0x425440
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x58], esi
nop
test bl, bl
jne 0x425440
push bind
push dword [esi]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x42543d
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x42541f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42541f
push dword [ebp - 0x48]
call fcn.0053d681
add esp, 4
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x425414
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov edx, dword [eax + 0xc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425340
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0041c000
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
mov ebx, dword [ebp - 0x40]
lea edx, [ebp - 0x40]
mov esi, dword [ebp - 0x30]
lea edi, [ebp - 0x40]
cmovae ecx, ebx
cmovae edx, ebx
add esi, ecx
cmp dword [ebp - 0x2c], 0x10
cmovae edi, ebx
cmp edi, esi
je 0x425397
sub edx, edi
mov ebx, edx
nop dword [eax]
movsx eax, byte [edi]
push eax
call fcn.0054cb86
mov byte [edi + ebx], al
add esp, 4
inc edi
cmp edi, esi
jne 0x425380
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00425540
mov esi, dword [ebp - 0x58]
cmp eax, 0xffffffff
je 0x4253db
push 0x100
push dword [esi]
mov byte [ebp - 0x41], 1
push 0x100
push str.uvnc_service
call fcn.0054cc69
mov ebx, dword [ebp - 0x40]
add esp, 0x10
mov byte [0x5d7b9f], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x42540e
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x425404
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4254a3
push ecx
push ebx
call fcn.0053d673
add esp, 8
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x60]
push dword [ebp - 0x64]
call fcn.0053d63e
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, byte [ebp - 0x41]
inc edi
add esi, 0x24
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], esi
cmp edi, dword [ebp - 0x50]
jae 0x425440
jmp 0x4252b0
mov bl, byte [ebp - 0x41]
mov edi, dword [ebp - 0x4c]
push dword [ebp - 0x68]
call fcn.0053d63e
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x425485
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42547b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4254a3
push edx
push ecx
call fcn.0053d673
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.0053d630
mov esp, ebp
pop ebp
ret
call fcn.00541789
int3