Function at 0x4a24c5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov esp, 0xb8fffff7
or al, 0x7f
pop eax
add byte [ebx + 0x56], dl
push edi
call fcn.0054e578
mov edx, dword [ebp + 8]
cmp byte [edx + 0x2270], 1
jne 0x4a27b7
mov word [ebp - 0x24], 8
xor ecx, ecx
lea edx, [ebp - 0x83c]
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x43c]
inc dword [ebp - 0x18]
xor ecx, ecx
mov word [ebp - 0x24], 0x14
mov byte [eax], 0
mov byte [edx], 0
inc ecx
inc edx
inc eax
cmp ecx, 0xa
jl 0x4a2508
lea eax, [ebp - 0x43c]
mov ebx, dword [ebp + 8]
add ebx, 0x2260
cmp dword [ebx], 0
je 0x4a252e
mov edx, dword [ebx]
jmp 0x4a2533
mov edx, 0x581d89
mov esi, eax
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x43c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0054e278
pop ecx
mov edi, eax
mov dword [ebp - 0x38], 0xffffff9c
xor ecx, ecx
lea eax, [ebp - 0x43c]
cmp edi, ecx
jle 0x4a2587
mov dl, byte [eax]
inc eax
and edx, 0xff
inc ecx
add dword [ebp - 0x38], edx
cmp edi, ecx
jg 0x4a2576
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x840], ecx
fild qword [ebp - 0x844]
fld xword [0x4a27c8]
fmulp st(1)
fadd dword [0x4a27d4]
call fcn.00555254
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x844], edx
mov dword [ebp - 0x840], ecx
fild qword [ebp - 0x844]
fmul qword [0x4a27d8]
call fcn.00555254
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x43c]
mov ebx, dword [ebp + 8]
add ebx, 0x2264
cmp dword [ebx], 0
je 0x4a25f1
mov eax, dword [ebx]
jmp 0x4a25f6
mov eax, 0x581d8a
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
mov esi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x43c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0054e278
pop ecx
mov edi, eax
xor ecx, ecx
lea esi, [ebp - 0x43c]
cmp edi, ecx
jle 0x4a2661
mov eax, ecx
mov ebx, 3
cdq
idiv ebx
mov dl, byte [esi]
add dl, 0xec
mov ebx, ecx
and ebx, 0x80000001
jns 0x4a2650
dec ebx
or ebx, 0xfffffffe
inc ebx
add ebx, ebx
inc ecx
lea ebx, [ebx + ebx*4]
sub dl, bl
add al, dl
mov byte [esi], al
inc esi
cmp edi, ecx
jg 0x4a2632
lea eax, [ebp - 0x43c]
lea esi, [ebp - 0x83c]
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x83c]
and ecx, 3
lea eax, [ebp - 8]
rep movsb byte es:[edi], byte [esi]
mov word [ebp - 0x24], 0x20
call fcn.0055c210
mov edx, eax
inc dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.0055c54c
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0055c51c
mov word [ebp - 0x24], 0x2c
lea eax, [ebp - 4]
call fcn.0055c970
mov ecx, 0x7c
cdq
idiv ecx
add eax, 0x64
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x24], 0x14
jmp 0x4a26ec
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x38]
cmp eax, 0x64
je 0x4a2789
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov byte [edx + 0x2270], 0
mov word [ebp - 0x24], 0x38
mov edx, 0x581d8b
call fcn.0055c210
inc dword [ebp - 0x18]
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, 0x2260
call fcn.0055c54c
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0055c51c
mov word [ebp - 0x24], 0x44
mov edx, 0x581d8c
lea eax, [ebp - 0x10]
call fcn.0055c210
inc dword [ebp - 0x18]
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, 0x2264
call fcn.0055c54c
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0055c51c
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x2268], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x226c], ecx
jmp 0x4a27a1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0x2268], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [ecx + 0x226c], eax
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0055c51c
mov word [ebp - 0x24], 0
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret