Function at 0x471d4e
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.004855c0
add esp, 4
mov esi, eax
call fcn.0045af10
mov ebx, eax
push edi
push ebp
push str._s__d:
push eax
call fcn.0045aff3
add esp, 0x10
push ebx
push dword [esp + 0x3c]
call fcn.0046cf0b
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 0x471dc4
push ebx
call fcn.0045af73
add esp, 4
xor ebx, ebx
inc ebx
jmp 0x471fae
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.004115d0
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 0x471f53
cmp eax, 0xea
je 0x471f53
mov ebp, esi
push 0x4aff99
push dword [esp + 0x44]
call fcn.00485130
add esp, 8
test eax, eax
jne 0x471f53
mov dword [esp + 8], ebx
mov esi, dword [ebx]
push 0x4b23bc
push esi
call fcn.004851c0
add esp, 8
add esi, eax
inc esi
add ebp, 0xb
xor ebx, ebx
push ebx
push 1
push ebp
call fcn.004115d0
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 0x471f46
cmp dword [esp + 0x14], 1
jne 0x471f46
mov cl, 1
mov dword [esp + 0x10], ebp
mov esi, dword [esp]
mov dword [esp + 4], ecx
mov word [esi], 0x7830
push 0x4b3596
push ebp
call fcn.004851c0
add esp, 8
mov edx, eax
mov ecx, edx
cmp edx, 2
jl 0x471ebf
lea edx, [ecx - 1]
mov edi, edx
xor edi, 3
cmp byte [ebp + edi], 0x30
je 0x471ea9
add esi, 2
lea edx, [eax + 3]
test eax, eax
cmovns edx, eax
sar edx, 2
test ecx, ecx
jle 0x471ee8
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 0x471ed5
add esi, ecx
lea ebp, [ebp + edx*4]
cmp byte [ebp], 0
je 0x471ef9
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 0x471e90
push eax
push dword [esp + 4]
call fcn.00485130
add esp, 8
test eax, eax
mov ebp, dword [esp + 0x10]
jne 0x471f46
mov esi, dword [esp]
push esi
call fcn.004855c0
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.00411645
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.00485130
add esp, 8
mov ebp, eax
push esi
call fcn.00411645
add esp, 4
push ebx
call fcn.0045af73
add esp, 4
mov ebx, 2
mov ecx, dword [esp + 0xc]
cmp ecx, 0xea
je 0x471fae
mov eax, dword [esp + 0x14]
test ebp, ebp
je 0x471fa4
test ecx, ecx
jne 0x471fa4
cmp eax, 1
je 0x471fae
xor eax, 1
xor ebx, ebx
or ecx, eax
setne bl
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00475526
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret