Function at 0x41b2a0
Capabilities:
Enumerate services
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdc98
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4f5568]
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
cmp byte [edx], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x41b2e8
xor ecx, ecx
jmp 0x41b2f9
lea esi, [ecx + 1]
jmp 0x41b2f0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b2f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00414190
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x14]
lea ebx, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp edi, 0x10
cmovae ecx, esi
cmovae ebx, esi
add eax, ecx
cmp edi, 0x10
cmovae edx, esi
cmp edx, eax
je 0x41b33f
push ecx
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.0041b690
add esp, 0xc
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
xor bl, bl
mov dword [ebp - 0x58], esi
test esi, esi
je 0x41b4f1
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea eax, [ebp - 0x5c]
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 esi
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x41], bl
call edi
test eax, eax
jne 0x41b4ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x41b4ea
push dword [ebp - 0x48]
call fcn.004aca50
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x41b4ea
lea ecx, [ebp - 0x5c]
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 esi
call edi
test eax, eax
je 0x41b4df
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
jbe 0x41b4df
mov ebx, dword [ebp - 0x50]
cmp byte [ebp - 0x41], 0
jne 0x41b4dc
push accept
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x41b4d9
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x41b4ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41b4ba
push dword [ebp - 0x48]
call fcn.004aca50
mov edi, eax
add esp, 4
test edi, edi
je 0x41b4ba
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 0x41b4b1
push dword [edi + 0xc]
lea ecx, [ebp - 0x40]
call fcn.00413ef0
lea ecx, [ebp - 0x40]
call fcn.0041b250
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0041b5b0
cmp eax, 0xffffffff
je 0x41b4a9
push 0x100
push dword [ebx]
mov byte [ebp - 0x41], 1
push str.uvnc_service
call fcn.004ae040
add esp, 0xc
mov byte [0x4f667f], 0
lea ecx, [ebp - 0x40]
call fcn.00413f50
push edi
call fcn.004ad334
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x54]
add ebx, 0x24
mov esi, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x4c]
jb 0x41b3f1
jmp 0x41b4dc
mov esi, dword [ebp - 0x58]
mov bl, byte [ebp - 0x41]
push dword [ebp - 0x50]
call fcn.004ad334
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x14], 0x10
jb 0x41b502
push dword [ebp - 0x28]
call fcn.004ad35b
add esp, 4
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.004aca59
mov esp, ebp
pop ebp
ret