Function at 0x4170f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
call fcn.00413790
mov ebp, eax
add eax, 0xc
push ebx
push edi
push str._s__d:
push eax
call fcn.00412f00
add esp, 0x10
push ebp
push esi
call fcn.00430780
add esp, 8
push 0
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
push 0
call fcn.004308b0
add esp, 0x10
test eax, eax
je 0x41717c
mov ebx, eax
mov esi, dword [esp + 0x30]
mov dword [esp], ebp
push dword [ebp]
push eax
call fcn.00430aa0
add esp, 8
test eax, eax
je 0x417183
mov ebp, eax
push ebx
call fcn.00430990
add esp, 4
push esi
push ebp
call fcn.0047fbd0
add esp, 8
xor ebx, ebx
test eax, eax
setne bl
add ebx, ebx
mov edi, ebp
jmp 0x4171a5
mov ebx, 1
jmp 0x4171b1
push 0x4ab9a4
push edi
call fcn.0047fbd0
add esp, 8
test eax, eax
je 0x4171c4
push ebx
call fcn.00430990
add esp, 4
xor edi, edi
mov ebx, 1
mov ebp, dword [esp]
push edi
call fcn.00413460
add esp, 4
push ebp
call fcn.00413850
add esp, 4
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp]
mov esi, dword [eax]
push 0x4aeda6
push esi
call fcn.0047fd60
add esp, 8
add eax, esi
add eax, 1
push eax
push ebx
call fcn.00430aa0
add esp, 8
mov esi, ebx
mov ebx, eax
xor edi, edi
mov ebp, 0
test eax, eax
je 0x417372
mov dword [esp + 4], esi
call fcn.00413790
mov ebp, eax
mov dword [esp + 0xc], eax
add ebp, 0xc
push 2
push 0x4a4c49
push ebp
call fcn.00412b50
add esp, 0xc
push 0x4aff9d
push ebx
call fcn.0047fd60
add esp, 8
mov ecx, eax
nop
nop
nop
nop
nop
lea edi, [ecx - 1]
mov edx, edi
xor edx, 3
cmp byte [ebx + edx], 0x30
jne 0x417245
cmp ecx, 1
mov ecx, edi
jg 0x417230
lea esi, [eax + 3]
test eax, eax
cmovns esi, eax
sar esi, 2
lea eax, [edi + 1]
test eax, eax
jle 0x417280
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edi
xor eax, 3
movzx eax, byte [ebx + eax]
push eax
push ebp
call fcn.00412bd0
add esp, 8
lea eax, [edi - 1]
add edi, 1
cmp edi, 1
mov edi, eax
ja 0x417260
lea edi, [ebx + esi*4]
cmp byte [ebx + esi*4], 0
je 0x417297
add edi, 1
push 0x2c
push ebp
call fcn.00412bd0
add esp, 8
push 2
push 0x4a4c49
push ebp
call fcn.00412b50
add esp, 0xc
push 0x4aff9d
push edi
call fcn.0047fd60
add esp, 8
mov ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea esi, [ecx - 1]
mov edx, esi
xor edx, 3
cmp byte [edi + edx], 0x30
jne 0x4172d5
cmp ecx, 1
mov ecx, esi
jg 0x4172c0
lea ecx, [eax + 3]
test eax, eax
cmovns ecx, eax
sar ecx, 2
mov dword [esp + 8], ecx
lea eax, [esi + 1]
test eax, eax
jle 0x417310
nop
nop
nop
nop
nop
mov eax, esi
xor eax, 3
movzx eax, byte [edi + eax]
push eax
push ebp
call fcn.00412bd0
add esp, 8
lea eax, [esi - 1]
add esi, 1
cmp esi, 1
mov esi, eax
ja 0x4172f0
mov eax, dword [esp + 8]
cmp byte [edi + eax*4], 0
je 0x417325
push 0x2c
push ebp
call fcn.00412bd0
add esp, 8
mov ebp, dword [esp + 0xc]
mov esi, dword [ebp]
push dword [esp + 0x30]
push esi
call fcn.0047fbd0
add esp, 8
test eax, eax
mov edi, 0
je 0x417353
push ebp
call fcn.00413850
add esp, 4
xor ebp, ebp
mov esi, dword [esp + 4]
jmp 0x417372
push esi
mov eax, dword [esp + 4]
push dword [eax]
mov esi, dword [esp + 0xc]
push esi
call fcn.00430b60
add esp, 0xc
push ebp
call fcn.00413880
add esp, 4
mov ebp, eax
push ebx
call fcn.00413460
add esp, 4
push esi
call fcn.00430990
add esp, 4
test ebp, ebp
mov esi, dword [esp + 0x30]
jne 0x417165
jmp 0x4171a0