Function at 0x46bbcd
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x4b507c]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
xor eax, esp
mov dword [esp + 0x28], eax
push dword [esp + 0x4c]
call fcn.0047e720
add esp, 4
mov edi, eax
call fcn.00455bd0
push ebx
mov ebx, eax
push dword [esp + 0x4c]
push str._s__d:
push eax
call fcn.00455cb0
add esp, 0x10
push ebx
push esi
call fcn.00467178
add esp, 8
lea eax, [esp + 0x24]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x46bc43
push ebx
call fcn.00455c30
add esp, 4
xor ebx, ebx
inc ebx
jmp 0x46be4f
mov dword [esp], edi
inc edi
lea ebp, [esp + 0x20]
xor esi, esi
mov dword [ebp], edi
push esi
push 1
push edi
call fcn.00410b50
add esp, 0xc
lea ecx, [esp + 0x1c]
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push eax
push ecx
push esi
mov dword [esp + 0x18], ebx
push dword [ebx]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0x10], eax
je 0x46bdf1
cmp eax, 0xea
je 0x46bdf1
push 0x4a58da
push dword [esp + 0x4c]
call fcn.0047e4f0
add esp, 8
test eax, eax
jne 0x46bdf1
mov eax, dword [esp + 8]
mov esi, dword [eax]
push 0x4a7b0c
push esi
call fcn.0047e580
add esp, 8
lea esi, [esi + eax + 1]
mov eax, dword [esp]
xor ebx, ebx
add eax, 0xb
push ebx
push 1
push eax
call fcn.00410b50
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
push ecx
mov dword [esp + 0x10], eax
push eax
push ebp
push ebx
push esi
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x46bde5
cmp dword [esp + 0x1c], 1
jne 0x46bde5
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 4]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp], edx
mov word [edx], 0x7830
push 0x4a897c
push ebx
call fcn.0047e580
add esp, 8
lea ecx, [eax - 1]
mov ebp, eax
mov edi, ebp
mov edx, ecx
cmp ebp, 2
jl 0x46bd4b
lea ebp, [edi - 1]
lea ecx, [edx - 1]
mov esi, ebp
xor esi, 3
cmp byte [ebx + esi], 0x30
je 0x46bd31
mov ebp, dword [esp]
lea ecx, [eax + 3]
add ebp, 2
test eax, eax
cmovns ecx, eax
sar ecx, 2
test edi, edi
mov dword [esp + 0x18], ecx
jle 0x46bd83
xor eax, eax
mov ecx, edi
mov dword [esp], ebp
mov ebp, eax
mov esi, ebx
inc eax
xor ebp, 3
mov bl, byte [ebx + ebp]
mov ebp, dword [esp]
mov byte [ebp + edx], bl
dec edx
mov ebx, esi
dec ecx
jne 0x46bd6b
mov eax, dword [esp + 0x18]
add ebp, edi
mov edx, ebp
lea ebx, [ebx + eax*4]
cmp byte [ebx], 0
je 0x46bd98
mov byte [edx], 0x2c
inc ebx
inc edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov byte [edx], 0
test ecx, ecx
mov ecx, 1
je 0x46bd12
push eax
push dword [esp + 8]
call fcn.0047e4f0
add esp, 8
test eax, eax
jne 0x46bde5
mov esi, dword [esp + 4]
push esi
call fcn.0047e720
add esp, 4
inc eax
push eax
push esi
push 1
push 0
mov eax, dword [esp + 0x18]
push dword [eax]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0xc]
call fcn.00410bcd
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x4c]
mov esi, dword [esp + 8]
push esi
call fcn.0047e4f0
add esp, 8
mov ebp, eax
push esi
call fcn.00410bcd
add esp, 4
push dword [esp + 8]
call fcn.00455c30
add esp, 4
mov ecx, dword [esp + 0x10]
mov ebx, 2
cmp ecx, 0xea
je 0x46be4f
mov eax, dword [esp + 0x1c]
test ebp, ebp
je 0x46be45
test ecx, ecx
jne 0x46be45
cmp eax, 1
je 0x46be4f
xor eax, 1
xor ebx, ebx
or ecx, eax
setne bl
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0046f0c8
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret