Function at 0x40f0a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b536d
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4fa008]
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.004970d4
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.0041ebb0
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.00403cc0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xcc]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a300
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.00403cc0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a300
add esp, 0xc
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
push eax
push str.ControlPassword
call fcn.0042b070
lea eax, [ebp - 0xc0]
push eax
push str.ControlPassword
call fcn.0042b120
push ecx
push 0
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xfc]
push esi
call fcn.0041ecb0
mov eax, dword [ebp - 0xf8]
test eax, eax
jne 0x40f25e
xor bl, bl
mov dword [ebp - 0xfc], vtable.RegistryKey.0
jmp 0x40f2c4
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 0x40f2c4
cmp eax, dword [ebp - 0xf4]
je 0x40f2ba
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.00403b90
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xc0], vtable.StringStorage.0
call fcn.00403b90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xd0], vtable.StringStorage.0
call fcn.00403b90
test bl, bl
je 0x40f412
push 0x80
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb0], vtable.DesCrypt.0
push 0
push eax
call fcn.00498620
add esp, 8
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
push 8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044ed80
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 0x40f376
sub ecx, edx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00429370
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.0049a300
add esp, 0xc
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.00403170
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xc0]
call fcn.0044df40
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x2c]
push dword [edi + 8]
call fcn.0040f4d0
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.00403b90
lea ecx, [ebp - 0xc0]
call fcn.0044de80
test esi, esi
je 0x40f41e
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.00496bbb
mov esp, ebp
pop ebp
ret