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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov edi, dword [0x6051dc]
xor eax, eax
push ebp
push 0x565a01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x605254]
mov ax, word [eax]
mov word [ebp - 0x22], ax
mov edx, edi
lea eax, [ebp - 0x22]
mov ecx, 2
call fcn.0040310c
mov ecx, dword [0x605254]
mov ecx, dword [ecx]
lea edx, [edi + 2]
mov eax, dword [0x605180]
call fcn.0040310c
mov eax, dword [0x605254]
mov eax, dword [eax]
add eax, 6
and eax, 0x8000000f
jns 0x5656ff
dec eax
or eax, 0xfffffff0
inc eax
mov edx, 0x10
sub edx, eax
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0x10
jne 0x565714
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x56574d
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x565743
inc esi
xor ebx, ebx
mov eax, 0xff
call fcn.00403944
mov edx, dword [0x605254]
mov edx, dword [edx]
add edx, 2
add edx, ebx
mov byte [edi + edx], al
inc ebx
dec esi
jne 0x565725
mov eax, dword [0x605254]
mov edx, dword [ebp - 0x2c]
add dword [eax], edx
mov eax, dword [0x605254]
add dword [eax], 2
mov dword [ebp - 0x28], 0xffffffff
mov esi, dword [0x605254]
mov esi, dword [esi]
dec esi
test esi, esi
jl 0x565793
inc esi
mov eax, edi
xor edx, edx
mov dl, byte [eax]
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
xor edx, ecx
mov ecx, dword [0x605150]
mov edx, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x28]
shr ecx, 8
xor edx, ecx
mov dword [ebp - 0x28], edx
inc eax
dec esi
jne 0x56576c
mov eax, dword [0x605254]
mov eax, dword [eax]
lea edx, [edi + eax]
lea eax, [ebp - 0x28]
mov ecx, 4
call fcn.0040310c
mov eax, dword [0x605254]
add dword [eax], 4
mov edx, dword [0x605254]
mov edx, dword [edx]
lea eax, [ebp - 0x34]
call fcn.0040566c
lea eax, [ebp - 0x34]
call fcn.00405538
mov edx, eax
mov ecx, dword [0x605254]
mov ecx, dword [ecx]
mov eax, edi
call fcn.0040310c
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.005f5f58
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 5]
mov ecx, 0xa
xor edx, edx
div ecx
mov esi, edx
add esi, 5
lea eax, [ebp - 0x30]
call fcn.00405538
lea edx, [ebp - 0x20]
mov ecx, 4
call fcn.0040310c
lea eax, [ebp - 0x30]
call fcn.00405538
add eax, 4
lea edx, [ebp - 0x1c]
mov ecx, 4
call fcn.0040310c
lea eax, [ebp - 0x30]
call fcn.00405538
add eax, 8
lea edx, [ebp - 0x18]
mov ecx, 4
call fcn.0040310c
lea eax, [ebp - 0x30]
call fcn.00405538
add eax, 0xc
lea edx, [ebp - 0x14]
mov ecx, 4
call fcn.0040310c
lea eax, [ebp - 0x30]
call fcn.00405538
add eax, 0x10
lea edx, [ebp - 0x10]
mov ecx, 4
call fcn.0040310c
lea eax, [ebp - 0x30]
call fcn.00405538
add eax, 2
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040310c
lea eax, [ebp - 0x30]
call fcn.00405538
add eax, 0xa
lea edx, [ebp - 8]
mov ecx, 4
call fcn.0040310c
lea eax, [ebp - 0x30]
call fcn.00405538
add eax, 6
lea edx, [ebp - 4]
mov ecx, 4
call fcn.0040310c
push ebp
lea eax, [ebp - 0x20]
call fcn.0056567c
pop ecx
xor ebx, ebx
jmp 0x56595e
lea edx, [ebp - 0x44]
lea eax, [edi + ebx]
mov ecx, 4
call fcn.0040310c
lea edx, [ebp - 0x40]
lea eax, [edi + ebx + 4]
mov ecx, 4
call fcn.0040310c
lea edx, [ebp - 0x3c]
lea eax, [edi + ebx + 8]
mov ecx, 4
call fcn.0040310c
lea edx, [ebp - 0x38]
lea eax, [edi + ebx + 0xc]
mov ecx, 4
call fcn.0040310c
push ebp
lea eax, [ebp - 0x44]
mov edx, esi
call fcn.00565540
pop ecx
lea edx, [edi + ebx]
lea eax, [ebp - 0x44]
mov ecx, 4
call fcn.0040310c
lea edx, [edi + ebx + 4]
lea eax, [ebp - 0x40]
mov ecx, 4
call fcn.0040310c
lea edx, [edi + ebx + 8]
lea eax, [ebp - 0x3c]
mov ecx, 4
call fcn.0040310c
lea edx, [edi + ebx + 0xc]
lea eax, [ebp - 0x38]
mov ecx, 4
call fcn.0040310c
add ebx, 0x10
lea eax, [ebx + 0xf]
mov edx, dword [0x605254]
cmp eax, dword [edx]
jle 0x5658c9
mov eax, dword [0x605180]
mov byte [eax], 0x98
lea eax, [ebp - 0x30]
call fcn.00405538
mov edx, dword [0x605180]
inc edx
mov ecx, 0x14
call fcn.0040310c
mov ecx, dword [0x605254]
mov ecx, dword [ecx]
mov edx, dword [0x605180]
add edx, 0x15
mov eax, edi
call fcn.0040310c
mov dx, 0x3e00
mov esi, dword [0x605254]
mov esi, dword [esi]
add esi, 0x14
test esi, esi
jle 0x5659de
mov eax, dword [0x605180]
inc eax
movzx ecx, dx
shr ecx, 8
xor byte [eax], cl
xor ecx, ecx
mov cl, byte [eax]
add dx, cx
imul dx, dx, 0xd413
add dx, 0x46cd
inc eax
dec esi
jne 0x5659c1
mov eax, dword [0x605254]
add dword [eax], 0x15
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x565a08
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00405034
ret