Function at 0x4fac83
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00527f50
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5d6584]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x1018], esi
push edi
test cl, al
jne 0x4facc2
or eax, ecx
mov dword [0x5d6580], 0x3b800000
mov dword [0x5d6584], eax
cvttss2si eax, dword [ebp + 8]
mov edi, SysReAllocString
mov dword [esi], eax
test eax, eax
jg 0x4facd9
cdq
idiv edi
sub ecx, edx
mov dword [esi], ecx
cmp dword [esi], edi
jle 0x4facdf
mov dword [esi], edi
lea edi, [esi + 0x104]
mov dword [ebp - 0x1008], 4
mov dword [ebp - 0x1010], edi
xor ebx, ebx
mov ecx, esi
mov byte [esi + ebx + 4], bl
call fcn.004fb2c8
and eax, 0x800001ff
jns 0x4fad10
dec eax
or eax, 0xfffffe00
inc eax
mov ecx, esi
mov word [edi], ax
call fcn.004fb2c8
and eax, 0x800001ff
jns 0x4fad28
dec eax
or eax, 0xfffffe00
inc eax
mov word [edi + 2], ax
inc ebx
add edi, 4
cmp ebx, 0x100
jl 0x4facf7
dec dword [ebp - 0x1008]
jne 0x4facf5
lea edi, [esi + 0x103]
mov dword [ebp - 0x1008], 0xff
movzx ebx, byte [edi]
mov ecx, esi
call fcn.004fb2c8
and eax, 0x800000ff
jns 0x4fad68
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [esi + eax + 4]
mov byte [edi], cl
dec edi
dec dword [ebp - 0x1008]
mov byte [esi + eax + 4], bl
jne 0x4fad50
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
dec ebx
jne 0x4fad98
add ecx, 4
add edx, 4
dec dword [ebp - 0x1008]
jne 0x4fad91
mov eax, dword [ebp - 0x1010]
xor ecx, ecx
mov esi, dword [ebp - 0x1018]
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 0x4fadd6
mov eax, dword [ebp - 0x1008]
mov ebx, 0x400
add edx, 0x100
add eax, ebx
mov dword [ebp - 0x1008], eax
cmp edx, ebx
jl 0x4fadd2
mov eax, dword [ebp - 0x100c]
inc ecx
add eax, 4
mov dword [ebp - 0x100c], eax
cmp ecx, 0x100
jl 0x4fadca
mov ebx, dword [ebp - 0x1010]
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 [0x5d6580]
movss dword [ebp - 0x101c], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x101c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x5d6580]
mov dword [esi], eax
movss dword [ebp - 0x1018], xmm0
mov eax, dword [ebp - 0x1018]
mov dword [esi + 4], eax
call fcn.00484ef0
movss xmm0, dword [esi]
addss xmm0, dword [0x555b08]
push ecx
push ecx
mulss xmm0, dword [0x59de98]
addss xmm0, dword [0x555b04]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x1014], xmm0
fld qword [ebp - 0x1014]
fstp qword [esp]
call fcn.0052dc90
fstp qword [ebp - 0x1014]
movsd xmm0, qword [ebp - 0x1014]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov word [ebx], ax
movss xmm0, dword [esi + 4]
addss xmm0, dword [0x555b08]
mulss xmm0, dword [0x59de98]
addss xmm0, dword [0x555b04]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x1014], xmm0
fld qword [ebp - 0x1014]
fstp qword [esp]
call fcn.0052dc90
fstp qword [ebp - 0x1014]
movsd xmm0, qword [ebp - 0x1014]
add esi, 8
cvtpd2ps xmm0, xmm0
pop ecx
pop ecx
cvttss2si eax, xmm0
mov word [ebx + 2], ax
add ebx, 4
dec edi
jne 0x4fae43
dec dword [ebp - 0x100c]
jne 0x4fae3e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 4