Function at 0x417190
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.00413830
mov ebp, eax
add eax, 0xc
push ebx
push edi
push str._s__d:
push eax
call fcn.00412fa0
add esp, 0x10
push ebp
push esi
call fcn.00430c90
add esp, 8
push 0
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
push 0
call fcn.00430dc0
add esp, 0x10
test eax, eax
je 0x41721c
mov ebx, eax
mov esi, dword [esp + 0x30]
mov dword [esp], ebp
push dword [ebp]
push eax
call fcn.00430fb0
add esp, 8
test eax, eax
je 0x417223
mov ebp, eax
push ebx
call fcn.00430ea0
add esp, 4
push esi
push ebp
call fcn.004800f0
add esp, 8
xor ebx, ebx
test eax, eax
setne bl
add ebx, ebx
mov edi, ebp
jmp 0x417245
mov ebx, 1
jmp 0x417251
push 0x4aca3d
push edi
call fcn.004800f0
add esp, 8
test eax, eax
je 0x417264
push ebx
call fcn.00430ea0
add esp, 4
xor edi, edi
mov ebx, 1
mov ebp, dword [esp]
push edi
call fcn.00413500
add esp, 4
push ebp
call fcn.004138f0
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 0x4afe3f
push esi
call fcn.00480280
add esp, 8
add eax, esi
add eax, 1
push eax
push ebx
call fcn.00430fb0
add esp, 8
mov esi, ebx
mov ebx, eax
xor edi, edi
mov ebp, 0
test eax, eax
je 0x417412
mov dword [esp + 4], esi
call fcn.00413830
mov ebp, eax
mov dword [esp + 0xc], eax
add ebp, 0xc
push 2
push 0x4a5c99
push ebp
call fcn.00412bf0
add esp, 0xc
push 0x4b1044
push ebx
call fcn.00480280
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 0x4172e5
cmp ecx, 1
mov ecx, edi
jg 0x4172d0
lea esi, [eax + 3]
test eax, eax
cmovns esi, eax
sar esi, 2
lea eax, [edi + 1]
test eax, eax
jle 0x417320
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.00412c70
add esp, 8
lea eax, [edi - 1]
add edi, 1
cmp edi, 1
mov edi, eax
ja 0x417300
lea edi, [ebx + esi*4]
cmp byte [ebx + esi*4], 0
je 0x417337
add edi, 1
push 0x2c
push ebp
call fcn.00412c70
add esp, 8
push 2
push 0x4a5c99
push ebp
call fcn.00412bf0
add esp, 0xc
push 0x4b1044
push edi
call fcn.00480280
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 0x417375
cmp ecx, 1
mov ecx, esi
jg 0x417360
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 0x4173b0
nop
nop
nop
nop
nop
mov eax, esi
xor eax, 3
movzx eax, byte [edi + eax]
push eax
push ebp
call fcn.00412c70
add esp, 8
lea eax, [esi - 1]
add esi, 1
cmp esi, 1
mov esi, eax
ja 0x417390
mov eax, dword [esp + 8]
cmp byte [edi + eax*4], 0
je 0x4173c5
push 0x2c
push ebp
call fcn.00412c70
add esp, 8
mov ebp, dword [esp + 0xc]
mov esi, dword [ebp]
push dword [esp + 0x30]
push esi
call fcn.004800f0
add esp, 8
test eax, eax
mov edi, 0
je 0x4173f3
push ebp
call fcn.004138f0
add esp, 4
xor ebp, ebp
mov esi, dword [esp + 4]
jmp 0x417412
push esi
mov eax, dword [esp + 4]
push dword [eax]
mov esi, dword [esp + 0xc]
push esi
call fcn.00431070
add esp, 0xc
push ebp
call fcn.00413920
add esp, 4
mov ebp, eax
push ebx
call fcn.00413500
add esp, 4
push esi
call fcn.00430ea0
add esp, 4
test ebp, ebp
mov esi, dword [esp + 0x30]
jne 0x417205
jmp 0x417240