Function at 0x40eeb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4fcd
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4f8008]
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 edi, ecx
xor ebx, ebx
cmp byte [edi + 0x25], bl
setne bl
add ebx, reloc.WS2_32.dll_accept
mov dword [ebp - 4], 0
push 0x1c
mov dword [ebp - 0xe0], vtable.RegistrySettingsManager.0
mov dword [ebp - 0xdc], 0
call fcn.00496d34
add esp, 4
mov dword [ebp - 0xd4], eax
push 0
push 1
push str.SoftwareTightVNCServer
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041e7c0
mov esi, eax
mov dword [ebp - 0xdc], esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
mov dword [ebp - 0xd0], vtable.StringStorage.0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 3
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xcc]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
mov dword [ebp - 0xc0], vtable.StringStorage.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 5
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
add esp, 0xc
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
push eax
push str.ControlPassword
call fcn.0042acb0
lea eax, [ebp - 0xc0]
push eax
push str.ControlPassword
call fcn.0042ad60
push ecx
push 0
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xfc]
push esi
call fcn.0041e8c0
mov eax, dword [ebp - 0xf8]
test eax, eax
jne 0x40f06e
xor bl, bl
mov dword [ebp - 0xfc], vtable.RegistryKey.0
jmp 0x40f0d4
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd4], 3
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xd8], 9
push ecx
lea ecx, [ebp - 0xd4]
push ecx
push 0
push str.ControlPassword
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp - 0xfc], vtable.RegistryKey.0
mov eax, dword [ebp - 0xf8]
sete bl
test eax, eax
je 0x40f0d4
cmp eax, dword [ebp - 0xf4]
je 0x40f0ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xf8], 0
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xf0], vtable.StringStorage.0
call fcn.004039a0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xc0], vtable.StringStorage.0
call fcn.004039a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xd0], vtable.StringStorage.0
call fcn.004039a0
test bl, bl
je 0x40f222
push 0x80
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb0], vtable.DesCrypt.0
push 0
push eax
call fcn.00498280
add esp, 8
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
push 8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044e9c0
mov dword [ebp - 0xc0], vtable.AnsiStringStorage.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f186
sub ecx, edx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00428fa0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
sub eax, ecx
push eax
lea eax, [ebp - 0x28]
push eax
push ecx
call fcn.00499f60
add esp, 0xc
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.00402f80
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xc0]
call fcn.0044db80
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x2c]
push dword [edi + 8]
call fcn.0040f2e0
mov byte [ebp - 4], 0xa
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0xc]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xd0], vtable.StringStorage.0
call fcn.004039a0
lea ecx, [ebp - 0xc0]
call fcn.0044dac0
test esi, esi
je 0x40f22e
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
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.0049681b
mov esp, ebp
pop ebp
ret