Function at 0x408430
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ecx, 0x16
xor eax, eax
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x12e]
mov esi, str.Version_block_invalid
push ebx
sub esp, 0x15c
mov dword [ebp - 0x13e], 0x7082cb9a
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x13a], 0xb1b0c800
mov byte [ebp + eax - 0x118], al
inc eax
cmp eax, 0x100
jne 0x408464
mov eax, dword [0x4292c0]
xor esi, esi
xor ecx, ecx
mov edi, 0x15
mov dword [ebp - 0x14c], eax
mov eax, ecx
xor edx, edx
mov bl, byte [ebp + ecx - 0x118]
div edi
movzx eax, byte [ebp + edx - 0x12e]
movzx edx, bl
add eax, edx
add eax, esi
movzx esi, al
mov al, byte [ebp + esi - 0x118]
mov byte [ebp + ecx - 0x118], al
inc ecx
mov byte [ebp + esi - 0x118], bl
cmp ecx, 0x100
jne 0x408487
mov ecx, dword [ebp - 0x14c]
mov byte [ebp - 0x19], al
xor edx, edx
lea edi, [ebp - 0x136]
mov byte [ebp + esi - 0x118], bl
xor esi, esi
xor ebx, ebx
add ecx, 0x53cb2e00
mov dword [ebp - 0x14c], ecx
inc edx
movzx edx, dl
mov al, byte [ebp + edx - 0x118]
add ebx, eax
movzx ebx, bl
mov cl, byte [ebp + ebx - 0x118]
mov byte [ebp + edx - 0x118], cl
mov byte [ebp + ebx - 0x118], al
add al, byte [ebp + edx - 0x118]
movzx eax, al
mov al, byte [ebp + eax - 0x118]
xor al, byte [ebp + esi - 0x13e]
inc esi
mov byte [esi + edi - 1], al
cmp esi, 8
jne 0x4084ec
mov ecx, dword [ebp - 0x14c]
xor esi, esi
mov byte [ebp - 0x12e], 0
mov ebx, 0x30
mov dword [ebp - 0x148], 0x49
mov dword [ebp - 0x144], 0xffffff8f
xor ecx, 0x614e7c90
mov dword [0x4292c0], ecx
mov eax, dword [0x4292c0]
mov edx, str.IO_Operation_Timeout
mov ecx, 0x256
xor eax, 0x7e5c0164
mov dword [ebp - 0x14c], eax
mov dword [0x4292c0], eax
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x4085ab
add ecx, eax
cmp ecx, 0x56e
jbe 0x408586
mov eax, dword [ebp - 0x14c]
and eax, 0x61c8e80d
mov dword [0x4292c0], eax
mov eax, dword [0x4292c0]
xor eax, 0xb19753c8
or eax, 0xb0e310de
mov dword [0x4292c0], eax
call fcn.00413a64
add ebx, dword [ebp + esi*4 - 0x148]
test esi, esi
jne 0x4085d6
mov esi, 1
jmp 0x408567
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x1268
mov dword [esp], str.wD8_d3fLdIA65dzvC2KzvfH4lj9rPYRhZgwV5KVR_sYkj1nw2IndEzAPr7bwgKr6L5IytmyOYrbON8yv2aX8b1AfAGf3GP81T5vu3t63XQuIa1E02SEru5clAnHseJ6uT2b0ySLaep6hlsOepX0oooFRQ2KlSvUSKYzNbGES13ZANoFmIlBkWlYPCITM8bopcG7qnVxcgpeffKV71CoH3biYpOmk_4lkI6q_wg3b_IXaOvgKZprDtBuu2RtyGOp7ONW0bBt7PwqSqaMkZgZz2VN48W2ho0SM701xYiyxyqaC4lLo0HECJmH7cuZPQT5oxix03elTof_F4CiWMVIPrE1tFarRBP4AbfYuCp1MA75cKitCk3UBGFTCNWPxUHXBFRTtjQYPB9wq7KBsmeZzegkmVqCEQLQfCS9P8upTFAmPOfkscn087nMnoP7UibhxUfUp3rV6cLCwXp1XGPf1nXYqBwbGPFgahoTAH3dH0LFft_AYCKNTqj1p0oG24ivS_FKT25l9CfYnLIHOgYtRC5dGBL9XT5f_692p_CJMhk4KJuMdDU7PbadOJpx4aIfqxQtOnp6EPSXQJLdG3oVJZo1jxHiJ7zCz2a8fbkhq6sJtuAeRAqckU2m0ckPAf4CN6kUOBOHBW4d_B3Nfo0tKtzcLMLOEfK2n7hWX7D_bCqpOeVDBdb1UKEtV65AKBi3LCbgF4RUbaAtbHe9Skw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