Function at 0x40fa10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b94dd
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x554008]
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.0049adb4
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.0041fbb0
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.00403af0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xcc]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x524da8
push ecx
call fcn.0049dfe0
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.00403af0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x524da8
push ecx
call fcn.0049dfe0
add esp, 0xc
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
push eax
push str.ControlPassword
call fcn.0042c2c0
lea eax, [ebp - 0xc0]
push eax
push str.ControlPassword
call fcn.0042c370
push ecx
push 0
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xfc]
push esi
call fcn.0041fcb0
mov eax, dword [ebp - 0xf8]
test eax, eax
jne 0x40fbce
xor bl, bl
mov dword [ebp - 0xfc], vtable.RegistryKey.0
jmp 0x40fc34
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 0x40fc34
cmp eax, dword [ebp - 0xf4]
je 0x40fc2a
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.004039c0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xc0], vtable.StringStorage.0
call fcn.004039c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xd0], vtable.StringStorage.0
call fcn.004039c0
test bl, bl
je 0x40fd82
push 0x80
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb0], vtable.DesCrypt.0
push 0
push eax
call fcn.0049c300
add esp, 8
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
push 8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044f950
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 0x40fce6
sub ecx, edx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0042a540
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.0049dfe0
add esp, 0xc
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.00402fa0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xc0]
call fcn.0044f280
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x2c]
push dword [edi + 8]
call fcn.0040fe40
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.004039c0
lea ecx, [ebp - 0xc0]
call fcn.0044f1c0
test esi, esi
je 0x40fd8e
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.0049a89b
mov esp, ebp
pop ebp
ret