Function at 0x5c6555
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004a07a0
mov eax, dword [0x6e47f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cvttss2si ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x1014], esi
mov edi, SysReAllocString
mov dword [esi], ecx
test ecx, ecx
jg 0x5c6593
mov eax, ecx
xor ecx, ecx
cdq
inc ecx
idiv edi
sub ecx, edx
mov dword [esi], ecx
mov eax, dword [esi]
cmp ecx, edi
mov dword [ebp - 0x1008], 4
cmovg eax, edi
lea edi, [esi + 0x106]
mov dword [esi], eax
mov dword [ebp - 0x1010], edi
xor ebx, ebx
mov ecx, esi
mov byte [esi + ebx + 4], bl
call fcn.005c6aee
and eax, 0x800001ff
jns 0x5c65cd
dec eax
or eax, 0xfffffe00
inc eax
mov ecx, esi
mov word [edi - 2], ax
call fcn.005c6aee
and eax, 0x800001ff
jns 0x5c65e6
dec eax
or eax, 0xfffffe00
inc eax
mov word [edi], ax
inc ebx
add edi, 4
cmp ebx, 0x100
jl 0x5c65b4
sub dword [ebp - 0x1008], 1
jne 0x5c65b2
lea edi, [esi + 0x103]
mov dword [ebp - 0x1008], 0xff
mov bl, byte [edi]
mov ecx, esi
call fcn.005c6aee
and eax, 0x800000ff
jns 0x5c6625
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [esi + eax + 4]
mov byte [edi], cl
dec edi
sub dword [ebp - 0x1008], 1
mov byte [esi + eax + 4], bl
jne 0x5c660e
lea edi, [esi + 0x104]
mov dword [ebp - 0x100c], 0x100
lea ecx, [ebp - 0x1004]
mov dword [ebp - 0x1008], edi
mov edx, edi
push 4
mov ebx, ecx
mov esi, edx
pop edi
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, 0x400
add ebx, eax
add esi, eax
sub edi, 1
jne 0x5c665e
add ecx, 4
add edx, 4
sub dword [ebp - 0x100c], 1
jne 0x5c6657
mov esi, dword [ebp - 0x1014]
xor ecx, ecx
mov edi, dword [ebp - 0x1008]
xor edx, edx
mov dword [ebp - 0x100c], edi
mov eax, edi
xor ebx, ebx
mov edi, eax
movzx eax, byte [esi + ecx + 4]
add eax, edx
lea eax, [ebx + eax*2]
inc ebx
mov ax, word [ebp + eax*2 - 0x1004]
mov word [edi], ax
lea edi, [edi + 2]
cmp ebx, 2
jl 0x5c669b
mov eax, dword [ebp - 0x100c]
mov ebx, 0x400
add edx, 0x100
add eax, ebx
mov dword [ebp - 0x100c], eax
cmp edx, ebx
jl 0x5c6697
mov edi, dword [ebp - 0x1008]
inc ecx
add edi, 4
mov dword [ebp - 0x1008], edi
cmp ecx, 0x100
jl 0x5c668d
mov ebx, dword [ebp - 0x1010]
add esi, 0x1104
push 4
pop edi
mov dword [ebp - 0x100c], edi
mov edi, 0x100
movzx eax, word [ebx - 2]
mov ecx, esi
sub eax, 0x100
movd xmm1, eax
movzx eax, word [ebx]
sub eax, 0x100
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mulss xmm1, dword [0x684a44]
cvtdq2ps xmm0, xmm0
movss dword [esi], xmm1
mulss xmm0, dword [0x684a44]
movss dword [esi + 4], xmm0
call fcn.00531af1
movss xmm0, dword [esi]
addss xmm0, dword [0x65f160]
push ecx
push ecx
mulss xmm0, dword [0x684a50]
addss xmm0, dword [0x6567d8]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004d2ca0
fstp dword [ebp - 0x1010]
fld dword [ebp - 0x1010]
call fcn.004a08e0
mov word [ebx - 2], ax
movss xmm0, dword [esi + 4]
addss xmm0, dword [0x65f160]
mulss xmm0, dword [0x684a50]
addss xmm0, dword [0x6567d8]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004d2ca0
fstp dword [ebp - 0x1010]
fld dword [ebp - 0x1010]
pop ecx
pop ecx
call fcn.004a08e0
mov word [ebx], ax
add esi, 8
add ebx, 4
sub edi, 1
jne 0x5c6708
sub dword [ebp - 0x100c], 1
jne 0x5c6703
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f7c1
leave
ret 4