Function at 0x4ab990
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x38], ebx
jne 0x4abbbb
cmp dword [esi + 0x70], ebx
jne 0x4ab9b1
pop esi
pop ebx
add esp, 0x10
jmp fcn.004a8340
cmp byte [esi + 0x75], bl
je 0x4ab9be
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esi]
mov edx, dword [eax + 0xbc]
call edx
test al, al
je 0x4ab9b6
mov eax, dword [esi + 0x28]
imul eax, dword [esi + 0x24]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
seto cl
push ebp
push edi
neg ecx
or ecx, eax
push ecx
call fcn.0059d93d
mov ecx, dword [esi + 0x28]
imul ecx, dword [esi + 0x24]
mov dword [esi + 0x38], eax
mov dword [eax + ecx*4], 0x4beefade
mov eax, dword [esi + 0xd4]
add esp, 4
cmp eax, 0x10
jne 0x4abadf
cmp dword [esi + 0x28], ebx
mov edi, dword [esi + 0xa4]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ebx
jle 0x4abbad
lea ecx, [ecx]
cmp dword [esi + 0x24], ebx
mov dword [esp + 0x14], ebx
jle 0x4abab6
lea esp, [esp]
movzx eax, word [edi]
mov edx, dword [esi + 0x6c]
mov ecx, dword [edx + 0x20]
mov ebx, eax
shr ebx, cl
mov ebp, eax
mov ecx, 8
sub ecx, dword [edx + 0x14]
add edi, 2
shl ebx, cl
mov ecx, dword [edx + 0x24]
shr ebp, cl
mov ecx, 8
sub ecx, dword [edx + 0x18]
or ebx, 0xffffff00
shl ebp, cl
mov ecx, dword [edx + 0x28]
shr eax, cl
mov ecx, 8
sub ecx, dword [edx + 0x1c]
shl ebx, 8
shl eax, cl
and ebp, 0xff
or ebx, ebp
shl ebx, 8
and eax, 0xff
or ebx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x14], eax
jl 0x4aba40
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [esi + 0x90]
cdq
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
jl 0x4aba30
jmp 0x4abbad
cmp eax, 0x20
jne 0x4abbad
cmp dword [esi + 0x28], ebx
mov edi, dword [esi + 0xa4]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebx
jle 0x4abbad
cmp dword [esi + 0x24], ebx
mov dword [esp + 0x18], ebx
jle 0x4abb85
nop
mov edx, dword [esi + 0x6c]
mov eax, dword [edi]
mov ecx, dword [edx + 0x20]
mov ebx, eax
shr ebx, cl
mov ebp, eax
mov ecx, 8
sub ecx, dword [edx + 0x14]
add edi, 4
shl ebx, cl
mov ecx, dword [edx + 0x24]
shr ebp, cl
mov ecx, 8
sub ecx, dword [edx + 0x18]
or ebx, 0xffffff00
shl ebp, cl
mov ecx, dword [edx + 0x28]
shr eax, cl
mov ecx, 8
sub ecx, dword [edx + 0x1c]
shl ebx, 8
shl eax, cl
and ebp, 0xff
or ebx, ebp
shl ebx, 8
and eax, 0xff
or ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
jl 0x4abb10
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov eax, dword [esi + 0x90]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
jl 0x4abb06
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
pop edi
pop ebp
mov eax, dword [esi + 0x38]
pop esi
pop ebx
add esp, 0x10
ret