Function at 0x5b7a9f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.004588f0
mov eax, dword [0x7ca418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov edx, dword [0x7fa9f8]
push ebx
push esi
mov esi, ecx
mov edx, dword [eax + edx*4]
mov eax, dword [0x7f9c18]
push edi
mov dword [ebp - 0x1010], esi
cmp eax, dword [edx + 4]
jg 0x5b7d70
cvttss2si eax, dword [ebp + 8]
mov ecx, SysReAllocString
mov dword [esi], eax
test eax, eax
jg 0x5b7afb
cdq
idiv ecx
xor eax, eax
inc eax
sub eax, edx
mov dword [esi], eax
cmp dword [esi], ecx
jle 0x5b7b01
mov dword [esi], ecx
lea edi, [esi + 0x104]
mov dword [ebp - 0x1008], 4
mov dword [ebp - 0x1014], edi
xor ebx, ebx
mov ecx, esi
mov byte [esi + ebx + 4], bl
call fcn.005b80fe
and eax, 0x800001ff
jns 0x5b7b32
dec eax
or eax, 0xfffffe00
inc eax
mov ecx, esi
mov word [edi], ax
call fcn.005b80fe
and eax, 0x800001ff
jns 0x5b7b4a
dec eax
or eax, 0xfffffe00
inc eax
mov word [edi + 2], ax
inc ebx
add edi, 4
cmp ebx, 0x100
jl 0x5b7b19
sub dword [ebp - 0x1008], 1
jne 0x5b7b17
lea edi, [esi + 0x103]
mov dword [ebp - 0x1008], 0xff
movzx ebx, byte [edi]
mov ecx, esi
call fcn.005b80fe
and eax, 0x800000ff
jns 0x5b7b8b
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 0x5b7b73
lea ecx, [ebp - 0x1004]
mov dword [ebp - 0x1008], 0x100
lea edx, [esi + 0x104]
push 4
mov edi, ecx
mov esi, edx
pop ebx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, 0x400
add edi, eax
add esi, eax
sub ebx, 1
jne 0x5b7bbc
add ecx, 4
add edx, 4
sub dword [ebp - 0x1008], 1
jne 0x5b7bb5
mov eax, dword [ebp - 0x1014]
xor ecx, ecx
mov esi, dword [ebp - 0x1010]
mov dword [ebp - 0x100c], eax
xor edx, edx
mov dword [ebp - 0x1008], eax
xor edi, edi
mov ebx, eax
movzx eax, byte [esi + ecx + 4]
add eax, edx
lea eax, [edi + eax*2]
inc edi
mov ax, word [ebp + eax*2 - 0x1004]
mov word [ebx], ax
lea ebx, [ebx + 2]
cmp edi, 2
jl 0x5b7bfd
mov eax, dword [ebp - 0x1008]
mov ebx, 0x400
add edx, 0x100
add eax, ebx
mov dword [ebp - 0x1008], eax
cmp edx, ebx
jl 0x5b7bf9
mov eax, dword [ebp - 0x100c]
inc ecx
add eax, 4
mov dword [ebp - 0x100c], eax
cmp ecx, 0x100
jl 0x5b7bf1
mov ebx, dword [ebp - 0x1014]
add esi, 0x1104
push 4
pop edi
mov dword [ebp - 0x100c], edi
mov edi, 0x100
movzx eax, word [ebx]
mov ecx, esi
sub eax, 0x100
movd xmm0, eax
movzx eax, word [ebx + 2]
cvtdq2ps xmm0, xmm0
sub eax, 0x100
mulss xmm0, dword [0x7f9c14]
movss dword [ebp - 0x1018], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x1018]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x7f9c14]
mov dword [esi], eax
movss dword [ebp - 0x1014], xmm0
mov eax, dword [ebp - 0x1014]
mov dword [esi + 4], eax
call fcn.0053ebcf
movss xmm0, dword [esi]
addss xmm0, dword [0x710b98]
push ecx
push ecx
mulss xmm0, dword [0x73b72c]
addss xmm0, dword [0x710b70]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00500a90
fstp dword [ebp - 0x1010]
fld dword [ebp - 0x1010]
call fcn.00458c90
mov word [ebx], ax
movss xmm0, dword [esi + 4]
addss xmm0, dword [0x710b98]
mulss xmm0, dword [0x73b72c]
addss xmm0, dword [0x710b70]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00500a90
fstp dword [ebp - 0x1010]
fld dword [ebp - 0x1010]
pop ecx
pop ecx
call fcn.00458c90
mov word [ebx + 2], ax
add esi, 8
add ebx, 4
sub edi, 1
jne 0x5b7c6a
sub dword [ebp - 0x100c], 1
jne 0x5b7c65
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004584a2
mov esp, ebp
pop ebp
ret 4
mov edi, 0x7f9c18
push edi
call fcn.005f5112
cmp dword [0x7f9c18], 0xffffffff
pop ecx
jne 0x5b7ae1
push edi
mov dword [0x7f9c14], 0x3b800000
call fcn.005f50d3
pop ecx
jmp 0x5b7ae1