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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.00428d50
mov esi, eax
pop ecx
inc esi
push esi
call fcn.004121ab
pop ecx
mov ebx, eax
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call fcn.00428d50
pop ecx
mov edi, eax
push dword [ebp + 0x10]
call fcn.00428d50
lea eax, [edi + eax + 5]
pop ecx
lea eax, [eax + eax*2]
push eax
call fcn.004121ab
pop ecx
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.004127d9
add esp, 0x10
lea eax, [ebp - 8]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4127cd
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
push 0
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
push dword [ebp - 8]
call edi
test eax, eax
mov dword [ebp + 8], eax
je 0x41277e
cmp eax, 0xea
je 0x41277e
push 0x43f6a4
push dword [ebp + 0x10]
call fcn.004292e0
pop ecx
test eax, eax
pop ecx
jne 0x41277e
push 0x43b270
push dword [ebp - 4]
call fcn.00429050
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx + 1]
mov dword [ebp + 0x10], eax
lea eax, [esi + 0xa]
push eax
call fcn.004121ab
pop ecx
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x41277e
cmp dword [ebp - 0xc], 1
jne 0x41277e
mov esi, dword [ebp + 0xc]
mov edi, ebx
mov dword [ebp + 0x10], 2
mov byte [edi], 0x30
inc edi
push 0x43ef70
push esi
mov byte [edi], 0x78
inc edi
call fcn.00429050
pop ecx
pop ecx
mov ecx, eax
push 4
cdq
pop ebx
idiv ebx
mov dword [ebp + 0xc], eax
lea edx, [ecx - 1]
mov eax, edx
xor eax, 3
cmp byte [eax + esi], 0x30
jne 0x41271e
cmp ecx, 1
jle 0x41271e
mov ecx, edx
jmp 0x412707
xor ebx, ebx
test ecx, ecx
jle 0x412737
lea edx, [ecx + edi]
mov eax, ebx
xor eax, 3
inc ebx
dec edx
cmp ebx, ecx
mov al, byte [eax + esi]
mov byte [edx], al
jl 0x412727
mov eax, dword [ebp + 0xc]
add edi, ecx
cmp byte [esi + eax*4], 0
lea esi, [esi + eax*4]
je 0x41274a
inc esi
mov byte [edi], 0x2c
inc edi
and byte [edi], 0
dec dword [ebp + 0x10]
jne 0x4126e7
push dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004292e0
pop ecx
test eax, eax
pop ecx
jne 0x41277e
push ebx
call fcn.00428d50
pop ecx
inc eax
push eax
push ebx
push 1
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x14]
push ebx
call fcn.004292e0
pop ecx
mov esi, eax
pop ecx
push ebx
call fcn.00412224
pop ecx
push dword [ebp - 4]
call fcn.00412224
cmp dword [ebp + 8], 0xea
pop ecx
je 0x4127d1
cmp dword [ebp + 8], 0
jne 0x4127cd
cmp dword [ebp - 0xc], 1
jne 0x4127bd
test esi, esi
jne 0x4127d1
cmp dword [ebp + 8], 0
jne 0x4127cd
cmp dword [ebp - 0xc], 1
jne 0x4127cd
xor eax, eax
jmp 0x4127d4
push 1
jmp 0x4127d3
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret