Function at 0x418530
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.00414720
mov ebp, eax
add eax, 0xc
push ebx
push edi
push str._s__d:
push eax
call fcn.00413f10
add esp, 0x10
push ebp
push esi
call fcn.00432c40
add esp, 8
push 0
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
push 0
push 0
call fcn.00432d70
add esp, 0x14
test eax, eax
je 0x4185be
mov ebx, eax
mov esi, dword [esp + 0x30]
mov dword [esp], ebp
push dword [ebp]
push eax
call fcn.00432f50
add esp, 8
test eax, eax
je 0x4185c5
mov ebp, eax
push ebx
call fcn.00432e40
add esp, 4
push esi
push ebp
call fcn.00482600
add esp, 8
xor ebx, ebx
test eax, eax
setne bl
add ebx, ebx
mov edi, ebp
jmp 0x4185e7
mov ebx, 1
jmp 0x4185f3
push 0x4adbca
push edi
call fcn.00482600
add esp, 8
test eax, eax
je 0x418606
push ebx
call fcn.00432e40
add esp, 4
xor edi, edi
mov ebx, 1
mov ebp, dword [esp]
push edi
call fcn.00414470
add esp, 4
push ebp
call fcn.004147e0
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 0x4b0de6
push esi
call fcn.00482790
add esp, 8
add eax, esi
add eax, 1
push eax
push ebx
call fcn.00432f50
add esp, 8
mov esi, ebx
mov ebx, eax
xor edi, edi
mov ebp, 0
test eax, eax
je 0x4187b2
mov dword [esp + 4], esi
call fcn.00414720
mov ebp, eax
mov dword [esp + 0xc], eax
add ebp, 0xc
push 2
push 0x4a68cb
push ebp
call fcn.00413b60
add esp, 0xc
push 0x4b1fff
push ebx
call fcn.00482790
add esp, 8
mov ecx, eax
nop
nop
nop
lea edi, [ecx - 1]
mov edx, edi
xor edx, 3
cmp byte [ebx + edx], 0x30
jne 0x418685
cmp ecx, 1
mov ecx, edi
jg 0x418670
lea esi, [eax + 3]
test eax, eax
cmovns esi, eax
sar esi, 2
lea eax, [edi + 1]
test eax, eax
jle 0x4186c0
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.00413be0
add esp, 8
lea eax, [edi - 1]
add edi, 1
cmp edi, 1
mov edi, eax
ja 0x4186a0
lea edi, [ebx + esi*4]
cmp byte [ebx + esi*4], 0
je 0x4186d7
add edi, 1
push 0x2c
push ebp
call fcn.00413be0
add esp, 8
push 2
push 0x4a68cb
push ebp
call fcn.00413b60
add esp, 0xc
push 0x4b1fff
push edi
call fcn.00482790
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 0x418715
cmp ecx, 1
mov ecx, esi
jg 0x418700
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 0x418750
nop
nop
nop
nop
nop
mov eax, esi
xor eax, 3
movzx eax, byte [edi + eax]
push eax
push ebp
call fcn.00413be0
add esp, 8
lea eax, [esi - 1]
add esi, 1
cmp esi, 1
mov esi, eax
ja 0x418730
mov eax, dword [esp + 8]
cmp byte [edi + eax*4], 0
je 0x418765
push 0x2c
push ebp
call fcn.00413be0
add esp, 8
mov ebp, dword [esp + 0xc]
mov esi, dword [ebp]
push dword [esp + 0x30]
push esi
call fcn.00482600
add esp, 8
test eax, eax
mov edi, 0
je 0x418793
push ebp
call fcn.004147e0
add esp, 4
xor ebp, ebp
mov esi, dword [esp + 4]
jmp 0x4187b2
push esi
mov eax, dword [esp + 4]
push dword [eax]
mov esi, dword [esp + 0xc]
push esi
call fcn.00433010
add esp, 0xc
push ebp
call fcn.00414810
add esp, 4
mov ebp, eax
push ebx
call fcn.00414470
add esp, 4
push esi
call fcn.00432e40
add esp, 4
test ebp, ebp
mov esi, dword [esp + 0x30]
jne 0x4185a7
jmp 0x4185e2