Function at 0x577270
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x38], ebx
push edi
jne 0x5774ad
cmp dword [esi + 0x70], ebx
jne 0x577295
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.00599070
cmp byte [esi + 0x75], bl
je 0x5772a4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esi]
mov edx, dword [eax + 0xbc]
call edx
test al, al
je 0x57729a
mov eax, dword [esi + 0x28]
imul eax, dword [esi + 0x24]
xor ecx, ecx
add eax, 1
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00612a1b
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 0x5773bf
cmp dword [esi + 0x28], ebx
mov edi, dword [esi + 0xa4]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebx
jle 0x5774a1
cmp dword [esi + 0x24], ebx
mov dword [esp + 0x18], ebx
jle 0x577394
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 + 0x14]
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
jl 0x57731c
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [esi + 0x90]
cdq
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2]
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
jl 0x577313
jmp 0x5774a1
cmp eax, 0x20
jne 0x5774a1
cmp dword [esi + 0x28], ebx
mov edi, dword [esi + 0xa4]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
jle 0x5774a1
jmp 0x5773f0
cmp dword [esi + 0x24], ebx
mov dword [esp + 0x1c], ebx
jle 0x577477
lea ecx, [ecx]
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 + 0x20]
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x1c], eax
jl 0x577400
mov edi, dword [esp + 0x18]
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 + 0x14]
add eax, 1
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
jl 0x5773f0
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret