Function at 0x46ba6e
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 [0x4b6074]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
xor eax, esp
mov dword [esp + 0x28], eax
push dword [esp + 0x4c]
call fcn.0047e5a0
add esp, 4
mov ebp, eax
call fcn.0045587e
push ebx
mov ebx, eax
push dword [esp + 0x4c]
push str._s__d:
push eax
call fcn.0045595e
add esp, 0x10
push ebx
push esi
call fcn.00466f5b
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 0x46bae4
push ebx
call fcn.004558de
add esp, 4
xor ebx, ebx
inc ebx
jmp 0x46bcf9
mov esi, ebx
lea ebx, [ebp + 1]
lea edi, [esp + 0x20]
mov dword [edi], ebx
push 1
push ebx
call fcn.00410d70
add esp, 8
lea ecx, [esp + 0x1c]
push edi
mov dword [esp + 4], eax
push eax
push ecx
push 0
mov dword [esp + 0x18], esi
push dword [esi]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0xc], eax
je 0x46bb26
cmp eax, 0xea
jne 0x46bb2f
mov edi, dword [esp + 0x4c]
jmp 0x46bc9e
push 0x4a6173
push dword [esp + 0x4c]
call fcn.0047e370
add esp, 8
mov edi, dword [esp + 0x4c]
test eax, eax
jne 0x46bc9e
mov eax, dword [esp + 8]
mov esi, dword [eax]
push 0x4a8397
push esi
call fcn.0047e400
add esp, 8
lea esi, [esi + eax + 1]
add ebp, 0xb
xor eax, eax
inc eax
push eax
push ebp
call fcn.00410d70
add esp, 8
mov dword [esp + 0x20], ebx
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x24]
push eax
push 0
push esi
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x46bc95
cmp dword [esp + 0x1c], 1
jne 0x46bc95
mov ebp, dword [esp]
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebp
mov word [ebp], 0x7830
push 0x4a9301
push ebx
call fcn.0047e400
add esp, 8
mov esi, eax
dec eax
mov ebp, esi
mov edi, ebp
mov edx, eax
cmp ebp, 2
jl 0x46bbed
lea ebp, [edi - 1]
lea eax, [edx - 1]
mov ecx, ebp
xor ecx, 3
cmp byte [ebx + ecx], 0x30
je 0x46bbd3
mov ebp, dword [esp + 4]
mov eax, esi
mov dword [esp + 4], ebx
sar eax, 0x1f
shr eax, 0x1e
add eax, esi
sar eax, 2
add ebp, 2
test edi, edi
mov dword [esp + 0x18], eax
jle 0x46bc29
xor esi, esi
mov ecx, edi
mov eax, dword [esp + 4]
mov ebx, ebp
mov ebp, esi
inc esi
xor ebp, 3
mov al, byte [eax + ebp]
mov ebp, ebx
mov byte [ebx + edx], al
dec edx
dec ecx
jne 0x46bc11
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 4]
add ebp, edi
lea ecx, [ecx + eax*4]
cmp byte [ecx], 0
mov ebx, ecx
je 0x46bc43
mov byte [ebp], 0x2c
inc ebx
inc ebp
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x4c]
mov byte [ebp], 0
inc eax
cmp eax, 2
jne 0x46bbb2
push edi
push dword [esp + 4]
call fcn.0047e370
add esp, 8
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x46bc95
mov esi, dword [esp]
push esi
call fcn.0047e5a0
add esp, 4
inc eax
push eax
push esi
mov eax, 1
push eax
push 0
mov eax, dword [esp + 0x18]
push dword [eax]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call fcn.00410de6
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov esi, dword [esp + 4]
push esi
call fcn.0047e370
add esp, 8
mov ebp, eax
push esi
call fcn.00410de6
add esp, 4
push dword [esp + 8]
call fcn.004558de
add esp, 4
mov ecx, dword [esp + 0xc]
mov ebx, 2
cmp ecx, 0xea
je 0x46bcf9
mov eax, dword [esp + 0x1c]
test ebp, ebp
je 0x46bcef
test ecx, ecx
jne 0x46bcef
cmp eax, 1
je 0x46bcf9
xor eax, 1
xor ebx, ebx
or ecx, eax
setne bl
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0046ef41
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret