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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x20], eax
push dword [esp + 0x44]
call fcn.00485930
add esp, 4
mov esi, eax
call fcn.0045b0b4
mov ebx, eax
push edi
push ebp
push str._s__d:
push eax
call fcn.0045b197
add esp, 0x10
push ebx
push dword [esp + 0x3c]
call fcn.0046d22e
add esp, 8
lea eax, [esp + 0x1c]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x472100
push ebx
call fcn.0045b117
add esp, 4
xor ebx, ebx
inc ebx
jmp 0x4722e8
lea eax, [esi + 1]
lea edi, [esp + 0x18]
mov dword [edi], eax
xor ebp, ebp
push ebp
push 1
mov dword [esp + 0xc], eax
push eax
call fcn.004116c4
add esp, 0xc
lea ecx, [esp + 0x14]
push edi
mov edi, ecx
mov dword [esp + 4], eax
push eax
push ecx
push ebp
push dword [ebx]
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0xc], eax
je 0x47228d
cmp eax, 0xea
je 0x47228d
mov ebp, esi
push 0x4b00c4
push dword [esp + 0x44]
call fcn.004854a0
add esp, 8
test eax, eax
jne 0x47228d
mov dword [esp + 8], ebx
mov esi, dword [ebx]
push 0x4b24e7
push esi
call fcn.00485530
add esp, 8
add esi, eax
inc esi
add ebp, 0xb
xor ebx, ebx
push ebx
push 1
push ebp
call fcn.004116c4
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push ebx
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x472280
cmp dword [esp + 0x14], 1
jne 0x472280
mov cl, 1
mov dword [esp + 0x10], ebp
mov esi, dword [esp]
mov dword [esp + 4], ecx
mov word [esi], 0x7830
push 0x4b36c1
push ebp
call fcn.00485530
add esp, 8
mov edx, eax
mov ecx, edx
dec edx
mov edi, edx
xor edi, 3
cmp byte [ebp + edi], 0x30
jne 0x4721f9
cmp ecx, 1
jg 0x4721e5
add esi, 2
lea edx, [eax + 3]
test eax, eax
cmovns edx, eax
sar edx, 2
test ecx, ecx
jle 0x472222
xor ebx, ebx
mov edi, esi
mov eax, ebx
xor eax, 3
mov al, byte [ebp + eax]
mov byte [edi + ecx - 1], al
inc ebx
dec edi
cmp ecx, ebx
jne 0x47220f
add esi, ecx
lea ebp, [ebp + edx*4]
cmp byte [ebp], 0
je 0x472233
inc ebp
mov byte [esi], 0x2c
inc esi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 4]
mov byte [esi], 0
test cl, 1
mov ecx, 0
jne 0x4721cc
push eax
push dword [esp + 4]
call fcn.004854a0
add esp, 8
test eax, eax
mov ebp, dword [esp + 0x10]
jne 0x472280
mov esi, dword [esp]
push esi
call fcn.00485930
add esp, 4
inc eax
push eax
push esi
push 1
push 0
mov eax, dword [esp + 0x18]
push dword [eax]
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
call fcn.00411739
add esp, 4
mov ebx, dword [esp + 8]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x44]
mov esi, dword [esp + 4]
push esi
call fcn.004854a0
add esp, 8
mov ebp, eax
push esi
call fcn.00411739
add esp, 4
push ebx
call fcn.0045b117
add esp, 4
mov ebx, 2
mov ecx, dword [esp + 0xc]
cmp ecx, 0xea
je 0x4722e8
mov eax, dword [esp + 0x14]
test ecx, ecx
jne 0x4722de
cmp eax, 1
jne 0x4722de
test ebp, ebp
jne 0x4722e8
xor eax, 1
xor ebx, ebx
or ecx, eax
setne bl
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00475893
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret