Function at 0x5c5bc8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x12f
push 0
push 0
dec ecx
jne 0x5c5bd1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404968
mov eax, dword [ebp - 8]
call fcn.00404968
mov eax, dword [ebp - 0xc]
call fcn.00404968
xor eax, eax
push ebp
push 0x5c631c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 4
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x850]
xor edx, edx
call fcn.00415a3c
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x860]
mov edx, dword [ebp - 0xc]
call fcn.00415a3c
lea eax, [ebp - 0x860]
push eax
cmp dword [ebp - 0xc], 0
setne al
pop edx
pop ecx
call fcn.005c9e78
lea edx, [ebp - 0x840]
lea eax, [ebp - 0x830]
call fcn.00414970
mov eax, dword [ebp - 0x830]
lea edx, [ebp - 0x82c]
call fcn.00579e24
mov edx, dword [ebp - 0x82c]
lea eax, [ebp - 0xc]
call fcn.00404550
lea eax, [ebp - 0x864]
push eax
mov ecx, 0x10
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.005c910c
mov eax, dword [ebp - 0x864]
lea edx, [ebp - 0x10]
call fcn.00579e24
lea eax, [ebp - 0x868]
push eax
mov ecx, 0x10
mov edx, 0x10
mov eax, dword [ebp - 0xc]
call fcn.005c910c
mov eax, dword [ebp - 0x868]
lea edx, [ebp - 0x14]
call fcn.00579e24
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x89c]
push eax
call fcn.005c9098
lea edx, [ebp - 0x8a4]
call fcn.004096dc
mov eax, dword [ebp - 0x8a4]
lea edx, [ebp - 0x8a0]
call fcn.00579e24
mov eax, dword [ebp - 0x8a0]
mov edx, ebx
neg edx
or ecx, 0xffffffff
call fcn.005c910c
mov edx, dword [ebp - 0x89c]
lea eax, [ebp - 0x898]
call fcn.00415a3c
lea eax, [ebp - 0x898]
push eax
lea eax, [ebp - 0x8b8]
push eax
mov ecx, ebx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005c910c
mov edx, dword [ebp - 0x8b8]
lea eax, [ebp - 0x8b4]
call fcn.00415a3c
lea eax, [ebp - 0x8b4]
push eax
mov eax, dword [ebp - 8]
mov edx, 0x5c6338
call fcn.004048c4
sete al
pop edx
pop ecx
call fcn.005c9e78
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x8c8]
xor edx, edx
call fcn.00415a3c
lea ecx, [ebp - 0x8c8]
test ebx, ebx
setg al
pop edx
call fcn.005c9e78
lea edx, [ebp - 0x878]
lea eax, [ebp - 0x18]
call fcn.00414970
lea eax, [ebp - 0x8d0]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.004047c4
mov eax, dword [ebp - 0x8d0]
lea edx, [ebp - 0x8cc]
call fcn.00579e24
mov ecx, dword [ebp - 0x8cc]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.004047c4
mov eax, dword [ebp - 0x1c]
call fcn.00404778
mov esi, eax
lea eax, [ebp - 0x8e0]
push eax
lea eax, [ebp - 0x8f8]
push eax
lea eax, [ebp - 0x8fc]
push eax
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0x924]
xor edx, edx
mov cl, 1
call fcn.004157e8
lea eax, [ebp - 0x924]
push eax
call fcn.005c9098
mov edx, eax
add edx, edi
lea eax, [ebp - 0x934]
mov cl, 0xfc
call fcn.004157e8
lea edx, [ebp - 0x934]
test edi, edi
setg al
pop ecx
call fcn.005c9e78
lea eax, [ebp - 0x914]
mov dword [ebp - 0x904], eax
mov byte [ebp - 0x900], 0xd
lea edx, [ebp - 0x904]
xor ecx, ecx
mov eax, 0x5c6348
call fcn.0040a674
mov eax, dword [ebp - 0x8fc]
mov ecx, 0x5c6358
mov edx, 0x5c6364
call fcn.005c9d08
push dword [ebp - 0x8f8]
lea eax, [ebp - 0x938]
push eax
lea eax, [ebp - 0x940]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004047c4
mov eax, dword [ebp - 0x940]
lea edx, [ebp - 0x93c]
call fcn.00579e24
mov eax, dword [ebp - 0x93c]
mov ecx, 0x10
xor edx, edx
call fcn.005c910c
push dword [ebp - 0x938]
push dword [ebp - 4]
lea eax, [ebp - 0x8f4]
mov edx, 3
call fcn.00404838
mov edx, dword [ebp - 0x8f4]
lea eax, [ebp - 0x8f0]
call fcn.00415a3c
lea eax, [ebp - 0x8f0]
push eax
lea eax, [ebp - 0x958]
push eax
or ecx, 0xffffffff
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005c910c
mov eax, dword [ebp - 0x958]
lea edx, [ebp - 0x954]
call fcn.005cb640
mov edx, dword [ebp - 0x954]
lea eax, [ebp - 0x950]
call fcn.00415a3c
lea eax, [ebp - 0x950]
push eax
mov eax, dword [ebp - 8]
mov edx, 0x5c6338
call fcn.004048c4
sete al
pop edx
pop ecx
call fcn.005c9e78
lea edx, [ebp - 0x8e0]
lea eax, [ebp - 4]
call fcn.00414970
mov eax, dword [ebp - 4]
call fcn.00404778
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
call fcn.004044b8
xor ebx, ebx
lea eax, [ebp - 0x428]
mov dword [eax], ebx
inc ebx
add eax, 4
cmp ebx, 0x100
jne 0x5c5f63
xor ebx, ebx
lea ecx, [ebp - 0x828]
mov eax, ebx
cdq
idiv esi
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + edx]
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x5c5f79
xor esi, esi
xor ebx, ebx
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x828]
add esi, dword [eax]
add esi, dword [edx]
and esi, 0x800000ff
jns 0x5c5fb7
dec esi
or esi, 0xffffff00
inc esi
test ebx, ebx
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + esi*4 - 0x428]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp + esi*4 - 0x428], ecx
inc ebx
add edx, 4
add eax, 4
cmp ebx, 0x100
jne 0x5c5fa3
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x5c608c
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
inc edi
and edi, 0x800000ff
jns 0x5c6007
dec edi
or edi, 0xffffff00
inc edi
mov eax, dword [ebp + edi*4 - 0x428]
add esi, eax
and esi, 0x800000ff
jns 0x5c6020
dec esi
or esi, 0xffffff00
inc esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + esi*4 - 0x428]
mov dword [ebp + edi*4 - 0x428], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + esi*4 - 0x428], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + ebx]
mov eax, dword [ebp + edi*4 - 0x428]
add eax, dword [ebp + esi*4 - 0x428]
and eax, 0x800000ff
jns 0x5c605f
dec eax
or eax, 0xffffff00
inc eax
xor edx, dword [ebp + eax*4 - 0x428]
lea eax, [ebp - 0x95c]
call fcn.004046a0
mov edx, dword [ebp - 0x95c]
mov eax, dword [ebp + 8]
call fcn.00404780
mov eax, dword [ebp + 8]
inc ebx
dec dword [ebp - 0x28]
jne 0x5c5ff6
mov eax, dword [ebp - 8]
mov edx, 0x5c6338
call fcn.004048c4
jne 0x5c61d3
xor eax, eax
push ebp
push 0x5c61c7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x960]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, 0xa
xor edx, edx
call fcn.005c910c
mov eax, dword [ebp - 0x960]
mov edx, 0x5c6370
call fcn.004048c4
je 0x5c610b
lea eax, [ebp - 0x964]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, 0xa
xor edx, edx
call fcn.005c910c
mov eax, dword [ebp - 0x964]
call fcn.00409848
mov ebx, eax
call fcn.005c9098
sub ebx, eax
test ebx, ebx
jle 0x5c61b5
lea eax, [ebp - 0x968]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, 0x10
mov edx, 0xa
call fcn.005c910c
mov eax, dword [ebp - 0x968]
push eax
lea eax, [ebp - 0x96c]
push eax
lea eax, [ebp - 0x974]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
or ecx, 0xffffffff
mov edx, 0x1a
call fcn.005c910c
lea eax, [ebp - 0x974]
mov edx, dword [ebp - 0x14]
call fcn.00404780
mov eax, dword [ebp - 0x974]
lea edx, [ebp - 0x970]
call fcn.00579e24
mov eax, dword [ebp - 0x970]
mov ecx, 0x10
xor edx, edx
call fcn.005c910c
mov edx, dword [ebp - 0x96c]
pop eax
call fcn.004048c4
jne 0x5c61b5
lea eax, [ebp - 0x978]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
or ecx, 0xffffffff
mov edx, 0x1a
call fcn.005c910c
mov edx, dword [ebp - 0x978]
mov eax, dword [ebp + 8]
call fcn.0040450c
jmp 0x5c61bd
mov eax, dword [ebp + 8]
call fcn.004044b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5c620d
lea eax, [ebp - 0x97c]
push eax
lea edx, [ebp - 0x980]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.005cb410
mov eax, dword [ebp - 0x980]
xor ecx, ecx
mov edx, 0x5c6384
call fcn.005c9d08
mov ecx, dword [ebp - 0x97c]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.004047c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c6326
lea eax, [ebp - 0x980]
mov edx, 0xc
call fcn.004044dc
lea eax, [ebp - 0x950]
call fcn.004112f0
lea eax, [ebp - 0x940]
mov edx, 3
call fcn.004044dc
lea eax, [ebp - 0x934]
mov edx, dword [0x40113c]
mov ecx, 3
call fcn.00405118
lea eax, [ebp - 0x8fc]
mov edx, 3
call fcn.004044dc
lea eax, [ebp - 0x8f0]
mov edx, dword [0x40113c]
mov ecx, 2
call fcn.00405118
lea eax, [ebp - 0x8d0]
mov edx, 2
call fcn.004044dc
lea eax, [ebp - 0x8c8]
call fcn.004112f0
lea eax, [ebp - 0x8b8]
call fcn.004044b8
lea eax, [ebp - 0x8b4]
call fcn.004112f0
lea eax, [ebp - 0x8a4]
mov edx, 3
call fcn.004044dc
lea eax, [ebp - 0x898]
mov edx, dword [0x40113c]
mov ecx, 3
call fcn.00405118
lea eax, [ebp - 0x868]
mov edx, 2
call fcn.004044dc
lea eax, [ebp - 0x860]
mov edx, dword [0x40113c]
mov ecx, 3
call fcn.00405118
lea eax, [ebp - 0x830]
mov edx, 2
call fcn.004044dc
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004044dc
ret