Function at 0x5c4f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
js 0x5c5210
mov eax, dword [ebp - 0x28]
movzx esi, word [eax + 2]
xor eax, eax
test esi, esi
mov edx, 0x8a
mov ecx, 7
cmove ecx, edx
setne al
add eax, 3
mov dword [ebp - 0x14], eax
xor edi, edi
dec edi
xor edx, edx
xor eax, eax
jmp 0x5c51d9
mov edi, dword [ebp - 0x10]
movzx eax, word [edi + 0x170c]
cmp dword [ebp - 0x20], 9
jg 0x5c5336
movzx edx, word [edi + 0xb12]
mov dword [ebp - 0x14], edx
movzx esi, word [edi + 0xb10]
mov dword [ebp - 0x1c], esi
mov edx, ecx
shl esi, cl
or eax, esi
mov esi, dword [ebp - 0x14]
mov ecx, 0x10
sub ecx, esi
cmp edx, ecx
jg 0x5c53f2
mov ecx, edx
add ecx, esi
mov esi, dword [ebp - 0x18]
mov dword [edi + 0x1710], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xfffe
cmp ecx, 0xe
jge 0x5c545a
shl edx, cl
or eax, edx
mov word [edi + 0x170c], ax
add ecx, 3
jmp 0x5c50f3
mov edi, dword [ebp - 0x10]
mov word [edi + 0x170c], ax
mov ecx, dword [edi + 8]
mov dword [ebp - 0x1c], ecx
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + esi], al
mov al, byte [edi + 0x170d]
mov byte [ebp - 0x1c], al
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x14], eax
mov al, byte [ebp - 0x1c]
mov byte [ecx + esi], al
mov eax, dword [edi + 0x1710]
mov cl, 0x10
sub cl, al
add eax, edx
add eax, 0xfffffff0
mov edx, dword [ebp - 0x14]
shr edx, cl
mov ecx, eax
mov eax, edx
jmp 0x5c50c7
mov dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x10]
jmp 0x5c509c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1710]
test ebx, ebx
je 0x5c4f76
cmp ebx, edi
je 0x5c503f
mov esi, dword [ebp - 0x10]
movzx eax, word [esi + ebx*4 + 0xace]
mov edi, 0x10
sub edi, eax
movzx edx, word [esi + ebx*4 + 0xacc]
mov dword [ebp - 0x14], edx
shl edx, cl
or dx, word [esi + 0x170c]
mov word [esi + 0x170c], dx
cmp ecx, edi
jg 0x5c5218
add ecx, eax
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x1710], ecx
movzx edx, word [edi + 0xb0e]
mov esi, 0x10
movzx eax, word [edi + 0xb0c]
mov dword [ebp - 0x14], eax
shl eax, cl
sub esi, edx
or ax, word [edi + 0x170c]
cmp ecx, esi
jg 0x5c4fe8
add ecx, edx
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x1710], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xfffd
cmp ecx, 0xf
mov esi, dword [ebp - 0x18]
jge 0x5c5268
shl edx, cl
or eax, edx
mov word [edi + 0x170c], ax
add ecx, 2
mov dword [edi + 0x1710], ecx
jmp 0x5c51ab
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x20], ecx
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x20]
mov byte [ecx + esi], bl
mov cl, byte [edi + 0x170d]
mov byte [ebp - 0x20], cl
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov dword [edi + 0x14], ecx
mov cl, byte [ebp - 0x20]
mov byte [esi + ebx], cl
mov ebx, dword [edi + 0x1710]
mov cl, 0x10
sub cl, bl
mov esi, dword [ebp - 0x14]
shr esi, cl
mov word [edi + 0x170c], si
lea ecx, [eax + ebx]
add ecx, 0xfffffff0
jmp 0x5c519c
cmp edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
jge 0x5c5047
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x1710]
movzx eax, word [edi + ebx*4 + 0xace]
mov esi, 0x10
sub esi, eax
movzx ebx, word [edi + ebx*4 + 0xacc]
mov dword [ebp - 0x14], ebx
shl ebx, cl
or bx, word [edi + 0x170c]
mov word [edi + 0x170c], bx
cmp ecx, esi
jg 0x5c50fe
add ecx, eax
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x1710], ecx
dec edx
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
jne 0x5c5165
xor edx, edx
test esi, esi
je 0x5c5202
xor ecx, ecx
cmp ebx, esi
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x14], eax
xor ecx, 7
mov edi, ebx
mov ebx, dword [ebp - 0x30]
lea esi, [ebx + 1]
mov eax, edx
cmp ebx, dword [ebp + 8]
mov edx, esi
mov esi, dword [ebp - 0x18]
je 0x5c5210
mov ebx, esi
mov esi, edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], esi
movzx esi, word [edx + esi*4 + 6]
mov dword [ebp - 0x20], eax
lea edx, [eax + 1]
cmp edx, ecx
mov dword [ebp - 0x18], esi
jge 0x5c5150
cmp ebx, esi
je 0x5c51c7
jmp 0x5c5150
mov ecx, 0x8a
mov dword [ebp - 0x14], 3
jmp 0x5c51c5
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov esi, dword [eax + 0x14]
lea edi, [esi + 1]
mov dword [eax + 0x14], edi
mov byte [ecx + esi], dl
mov cl, byte [eax + 0x170d]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0x14]
lea edi, [esi + 1]
mov dword [eax + 0x14], edi
mov edi, eax
mov byte [edx + esi], cl
mov edx, dword [eax + 0x1710]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x14]
shr eax, cl
mov word [edi + 0x170c], ax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx]
add ecx, 0xfffffff0
jmp 0x5c5096
mov esi, edx
movzx edx, si
shl esi, cl
or eax, esi
mov word [edi + 0x170c], ax
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov byte [ecx + esi], al
mov esi, dword [ebp - 0x18]
mov eax, dword [edi + 0x1710]
mov cl, 0x10
sub cl, al
shr edx, cl
mov ecx, eax
mov word [edi + 0x170c], dx
add ecx, 0xfffffff2
jmp 0x5c50f3
mov word [edi + 0x170c], ax
mov ecx, dword [edi + 8]
mov dword [ebp - 0x24], ecx
mov edx, esi
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], edi
mov ecx, dword [ebp - 0x24]
mov byte [ecx + esi], al
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0x14]
lea ecx, [edi + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov byte [ecx + edi], al
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x1710]
mov cl, 0x10
sub cl, al
add eax, edx
add eax, 0xfffffff0
mov edx, dword [ebp - 0x1c]
shr edx, cl
mov ecx, eax
mov eax, edx
jmp 0x5c5366
movzx edx, word [edi + 0xb16]
mov dword [ebp - 0x14], edx
movzx esi, word [edi + 0xb14]
mov dword [ebp - 0x1c], esi
mov edx, ecx
shl esi, cl
or eax, esi
mov esi, dword [ebp - 0x14]
mov ecx, 0x10
sub ecx, esi
cmp edx, ecx
jg 0x5c52d1
mov ecx, edx
add ecx, esi
mov esi, dword [ebp - 0x18]
mov dword [edi + 0x1710], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xfff6
cmp ecx, 0xa
jge 0x5c5390
shl edx, cl
or eax, edx
mov word [edi + 0x170c], ax
add ecx, 7
jmp 0x5c50f3
movzx esi, dx
mov dword [ebp - 0x14], esi
shl edx, cl
or eax, edx
mov word [edi + 0x170c], ax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea esi, [edx + 1]
mov dword [edi + 0x14], esi
mov byte [ecx + edx], al
mov al, byte [edi + 0x170d]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov ebx, ecx
mov edi, dword [ebp - 0x10]
mov byte [edx + esi], al
mov esi, dword [ebp - 0x18]
mov edx, dword [edi + 0x1710]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x14]
shr eax, cl
mov ecx, edx
mov word [edi + 0x170c], ax
add ecx, 0xfffffff7
jmp 0x5c50f3
mov word [edi + 0x170c], ax
mov ecx, dword [edi + 8]
mov dword [ebp - 0x24], ecx
mov edx, esi
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], edi
mov ecx, dword [ebp - 0x24]
mov byte [ecx + esi], al
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0x14]
lea ecx, [edi + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov byte [ecx + edi], al
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x1710]
mov cl, 0x10
sub cl, al
add eax, edx
add eax, 0xfffffff0
mov edx, dword [ebp - 0x1c]
shr edx, cl
mov ecx, eax
mov eax, edx
jmp 0x5c4fba
movzx esi, dx
mov dword [ebp - 0x14], esi
shl edx, cl
or eax, edx
mov word [edi + 0x170c], ax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea esi, [edx + 1]
mov dword [edi + 0x14], esi
mov byte [ecx + edx], al
mov al, byte [edi + 0x170d]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov ebx, ecx
mov edi, dword [ebp - 0x10]
mov byte [edx + esi], al
mov esi, dword [ebp - 0x18]
mov edx, dword [edi + 0x1710]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x14]
shr eax, cl
mov ecx, edx
mov word [edi + 0x170c], ax
add ecx, 0xfffffff3
jmp 0x5c50f3