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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x14]
mov ecx, ebx
push esi
push edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467aa1
mov edi, dword [ebp + 8]
sub ecx, edx
inc ecx
mov dword [ebp - 0x1c], ecx
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467ab6
mov esi, dword [ebp + 0x10]
sub ecx, edx
mov edx, esi
lea eax, [edx + 1]
mov dword [ebp - 0x20], eax
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x467ad0
sub edx, dword [ebp - 0x20]
lea eax, [ecx + 5]
add eax, edx
push 1
lea eax, [eax + eax*2]
push eax
call fcn.0040e450
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push edi
push eax
call fcn.00467030
add esp, 0x18
lea eax, [ebp - 8]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x467b2a
push dword [ebp - 4]
call fcn.0040e430
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push 1
push edi
mov dword [ebp - 0xc], edi
call fcn.0040e450
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x467cdf
cmp eax, 0xea
je 0x467cdf
mov ecx, 0x4c5834
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x467b90
test al, al
je 0x467b8c
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x467b90
add esi, 2
add ecx, 2
test al, al
jne 0x467b70
xor eax, eax
jmp 0x467b95
sbb eax, eax
or eax, 1
test eax, eax
jne 0x467cdf
mov esi, dword [ebp - 4]
push 0x4c9374
push esi
call fcn.00491320
inc esi
add esi, eax
lea eax, [edi + 0xa]
push 1
push eax
call fcn.0040e450
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x467cd4
cmp dword [ebp - 0x14], 1
jne 0x467cd4
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 2
nop dword [eax]
push 0x4c52ac
mov word [ebx], 0x7830
add ebx, 2
push edi
call fcn.00491320
mov esi, eax
add esp, 8
cdq
and edx, 3
add eax, edx
lea edx, [esi - 1]
sar eax, 2
mov ecx, edx
mov dword [ebp - 0x24], eax
xor ecx, 3
cmp byte [ecx + edi], 0x30
jne 0x467c47
cmp esi, 1
jle 0x467c47
mov esi, edx
lea edx, [esi - 1]
mov eax, edx
xor eax, 3
cmp byte [eax + edi], 0x30
je 0x467c32
xor ecx, ecx
test esi, esi
jle 0x467c62
lea edx, [ebx - 1]
add edx, esi
mov eax, ecx
inc ecx
xor eax, 3
mov al, byte [eax + edi]
mov byte [edx], al
dec edx
cmp ecx, esi
jl 0x467c52
mov eax, dword [ebp - 0x24]
add ebx, esi
cmp byte [edi + eax*4], 0
lea edi, [edi + eax*4]
je 0x467c75
inc edi
mov byte [ebx], 0x2c
inc ebx
sub dword [ebp - 0x18], 1
mov byte [ebx], 0
jne 0x467c00
mov ebx, dword [ebp + 0x14]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x467ca8
test dl, dl
je 0x467ca4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x467ca8
add eax, 2
add ecx, 2
test dl, dl
jne 0x467c88
xor eax, eax
jmp 0x467cad
sbb eax, eax
or eax, 1
test eax, eax
jne 0x467cd4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467cb6
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1c]
call fcn.0040e430
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov eax, edx
nop dword [eax]
mov cl, byte [eax]
cmp cl, byte [ebx]
jne 0x467d10
test cl, cl
je 0x467d0c
mov cl, byte [eax + 1]
cmp cl, byte [ebx + 1]
jne 0x467d10
add eax, 2
add ebx, 2
test cl, cl
jne 0x467cf0
xor esi, esi
jmp 0x467d15
sbb esi, esi
or esi, 1
push edx
call fcn.0040e430
push dword [ebp - 4]
call fcn.0040e430
mov eax, dword [ebp - 0x20]
add esp, 8
cmp eax, 0xea
je 0x467d4d
test eax, eax
jne 0x467b1e
cmp dword [ebp - 0x14], 1
jne 0x467b1e
test esi, esi
jne 0x467d4d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret