Function at 0x4b00a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545958
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x5875a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
xor esi, esi
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
cmp dword [edx + 0x10], ecx
jbe 0x4b01f7
cmp dword [edx + 0x14], 0x10
mov eax, edx
jb 0x4b00fa
mov eax, dword [edx]
mov edx, dword [ebp - 0x18]
movsx eax, byte [eax + edx]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
cmp ecx, edi
je 0x4b0115
mov dword [edi], eax
add edi, 4
jmp 0x4b01e1
sub edi, esi
mov eax, edi
sar eax, 2
mov dword [ebp - 0x24], eax
cmp eax, 0x3fffffff
je 0x4b0281
sub ecx, esi
inc eax
sar ecx, 2
mov dword [ebp - 0x14], eax
mov edx, ecx
shr edx, 1
mov eax, 0x3fffffff
sub eax, edx
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
jbe 0x4b014a
mov eax, dword [ebp - 0x14]
jmp 0x4b0154
lea eax, [edx + ecx]
cmp eax, dword [ebp - 0x14]
cmovb eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
call fcn.005124e0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push edi
push esi
push eax
mov dword [ebp - 0x30], eax
mov dword [eax + ecx*4], edx
call fcn.00521200
mov eax, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
je 0x4b01c4
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x3fffffff
ja 0x4b027c
shl ecx, 2
cmp ecx, 0x1000
jb 0x4b01bb
test al, 0x1f
jne 0x4b027c
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x4b027c
sub eax, ecx
sub eax, 4
cmp eax, 0x1f
ja 0x4b027c
mov eax, ecx
push eax
call fcn.004db150
add esp, 4
mov eax, dword [ebp - 0x30]
mov esi, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], esi
lea edi, [eax + ecx*4]
mov ecx, dword [ebp - 0x20]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x18], eax
cmp eax, dword [edx + 0x10]
jb 0x4b00f0
mov eax, dword [ebp - 0x10]
movaps xmm1, xmmword [0x5516b0]
lea edx, [eax + 0x20]
mov ecx, 8
lea eax, [ecx - 8]
movd xmm0, eax
lea edx, [edx + 0x40]
pshufd xmm0, xmm0, 0
lea eax, [ecx - 4]
paddd xmm0, xmm1
movups xmmword [edx - 0x60], xmm0
movd xmm0, eax
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, eax
lea eax, [ecx - 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
cmp eax, 0x100
jl 0x4b0206
mov ecx, dword [ebp - 0x10]
xor eax, eax
sub edi, esi
mov dword [ebp + 8], eax
sar edi, 2
mov dword [ecx + 0x404], 0
jmp 0x4b0288
call fcn.00525588
call fcn.004a7570
mov ecx, edx
xor edx, edx
div edi
mov eax, dword [ebp + 8]
mov edx, dword [esi + edx*4]
add edx, dword [ecx + eax*4]
add edx, dword [ecx + 0x404]
and edx, 0x800000ff
jns 0x4b02ab
dec edx
or edx, 0xffffff00
inc edx
mov esi, dword [ebp - 0x10]
mov dword [ecx + 0x404], edx
mov ecx, dword [ecx + edx*4]
mov eax, dword [esi + eax*4]
mov dword [esi + edx*4], eax
mov edx, esi
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp + 8], eax
cmp eax, 0x100
jl 0x4b0286
lea ecx, [ebp - 0x3c]
mov dword [edx + 0x400], 0
mov dword [edx + 0x404], 0
call fcn.0050ef30
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4