Function at 0x4be8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
js 0x4bee7e
mov eax, dword [ebp - 0x24]
movzx esi, word [eax + 2]
xor edx, edx
test si, si
sete dl
mov eax, 0x8a
mov ecx, 7
cmove ecx, eax
mov eax, 4
sub eax, edx
mov dword [ebp - 0x10], eax
xor edi, edi
dec edi
xor edx, edx
xor eax, eax
jmp 0x4be9ef
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x10], ecx
mov esi, dword [ebx + 0x14]
lea ecx, [esi + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + esi], dl
mov cl, byte [ebx + 0x1709]
mov byte [ebp - 0x10], cl
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea ecx, [esi + 1]
mov dword [ebx + 0x14], ecx
mov cl, byte [ebp - 0x10]
mov byte [edx + esi], cl
mov edx, dword [ebx + 0x170c]
mov cl, 0x10
sub cl, dl
shr edi, cl
mov word [ebx + 0x1708], di
lea ecx, [eax + edx]
add ecx, 0xfffffff0
jmp 0x4be9a5
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
movzx eax, word [ebx + edx*4 + 0xace]
mov esi, 0x10
sub esi, eax
movzx edi, word [ebx + edx*4 + 0xacc]
mov edx, edi
shl edx, cl
or dx, word [ebx + 0x1708]
mov word [ebx + 0x1708], dx
cmp ecx, esi
jg 0x4be91b
add ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x170c], ecx
mov eax, dword [ebp - 0x1c]
dec eax
mov esi, dword [ebp - 0x18]
jne 0x4be969
xor edx, edx
test si, si
je 0x4beb86
xor ecx, ecx
mov edi, dword [ebp - 0x20]
cmp edi, esi
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x10], eax
xor ecx, 7
mov ebx, dword [ebp - 0x28]
lea esi, [ebx + 1]
mov eax, edx
cmp ebx, dword [ebp + 8]
mov edx, esi
mov esi, dword [ebp - 0x18]
je 0x4bee7e
mov ebx, esi
mov esi, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
movzx esi, word [edx + esi*4 + 6]
mov dword [ebp - 0x1c], eax
lea edx, [eax + 1]
cmp edx, ecx
mov dword [ebp - 0x18], esi
jge 0x4bea0f
cmp ebx, esi
je 0x4be9d9
cmp edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
jge 0x4beabf
mov edx, ebx
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x170c]
movzx eax, word [ebx + edx*4 + 0xace]
mov esi, 0x10
sub esi, eax
movzx edi, word [ebx + edx*4 + 0xacc]
mov edx, edi
shl edx, cl
or dx, word [ebx + 0x1708]
mov word [ebx + 0x1708], dx
cmp ecx, esi
jg 0x4bea71
add ecx, eax
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x170c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4be9b7
jmp 0x4be969
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x10], ecx
mov esi, dword [ebx + 0x14]
lea ecx, [esi + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + esi], dl
mov cl, byte [ebx + 0x1709]
mov byte [ebp - 0x10], cl
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea ecx, [esi + 1]
mov dword [ebx + 0x14], ecx
mov cl, byte [ebp - 0x10]
mov byte [edx + esi], cl
mov edx, dword [ebx + 0x170c]
mov cl, 0x10
sub cl, dl
shr edi, cl
mov word [ebx + 0x1708], di
lea ecx, [eax + edx]
add ecx, 0xfffffff0
jmp 0x4bea55
test ebx, ebx
je 0x4beb9a
cmp ebx, edi
je 0x4bee2c
mov ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edi, word [ebx + ecx*4 + 0xace]
mov eax, dword [ebx + 0x170c]
mov esi, 0x10
sub esi, edi
movzx edx, word [ebx + ecx*4 + 0xacc]
mov dword [ebp - 0x10], edx
mov ecx, eax
shl edx, cl
or dx, word [ebx + 0x1708]
mov word [ebx + 0x1708], dx
cmp eax, esi
jg 0x4becbc
mov ecx, eax
add ecx, edi
mov edi, dword [ebp - 0x14]
mov dword [edi + 0x170c], ecx
movzx edx, word [edi + 0xb0e]
mov esi, 0x10
movzx eax, word [edi + 0xb0c]
mov dword [ebp - 0x10], eax
shl eax, cl
sub esi, edx
or ax, word [edi + 0x1708]
cmp ecx, esi
jg 0x4bec74
add ecx, edx
mov edi, ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffd
movzx edx, cx
mov esi, edx
mov ecx, edi
shl esi, cl
or eax, esi
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x170c], edi
mov word [ebx + 0x1708], ax
cmp edi, 0xf
jge 0x4bed45
add ecx, 2
mov esi, dword [ebp - 0x18]
mov dword [ebx + 0x170c], ecx
jmp 0x4be9b7
mov ecx, 0x8a
mov dword [ebp - 0x10], 3
mov edi, dword [ebp - 0x20]
jmp 0x4be9d9
cmp dword [ebp - 0x1c], 9
jle 0x4bec0a
mov ebx, dword [ebp - 0x14]
movzx edx, word [ebx + 0xb16]
mov ecx, dword [ebx + 0x170c]
mov esi, 0x10
movzx edi, word [ebx + 0xb14]
mov eax, edi
shl eax, cl
sub esi, edx
or ax, word [ebx + 0x1708]
cmp ecx, esi
jg 0x4bed86
add ecx, edx
mov ebx, ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfff6
movzx edx, cx
mov esi, edx
mov ecx, ebx
shl esi, cl
or eax, esi
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x170c], ecx
mov word [ebx + 0x1708], ax
cmp ecx, 0xa
jge 0x4bed04
add ecx, 7
jmp 0x4beb78
mov ebx, dword [ebp - 0x14]
movzx edx, word [ebx + 0xb12]
mov ecx, dword [ebx + 0x170c]
mov esi, 0x10
movzx edi, word [ebx + 0xb10]
mov eax, edi
shl eax, cl
sub esi, edx
or ax, word [ebx + 0x1708]
cmp ecx, esi
jg 0x4bedd9
add ecx, edx
mov ebx, ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffe
movzx edx, cx
mov esi, edx
mov ecx, ebx
shl esi, cl
or eax, esi
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x170c], ecx
mov word [ebx + 0x1708], ax
cmp ecx, 0xe
jge 0x4bee3d
add ecx, 3
jmp 0x4beb78
mov edi, dword [ebp - 0x14]
mov word [edi + 0x1708], ax
mov ebx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov byte [ebx + esi], al
mov bl, byte [edi + 0x1709]
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x14], eax
mov byte [ecx + esi], bl
mov eax, dword [edi + 0x170c]
mov cl, 0x10
sub cl, al
lea edi, [edx + eax]
add edi, 0xfffffff0
mov eax, dword [ebp - 0x10]
shr eax, cl
jmp 0x4beb48
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea ecx, [esi + 1]
mov dword [ebx + 0x14], ecx
mov byte [eax + esi], dl
mov al, byte [ebx + 0x1709]
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea ecx, [esi + 1]
mov dword [ebx + 0x14], ecx
mov byte [edx + esi], al
mov edx, dword [ebx + 0x170c]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x10]
shr eax, cl
mov word [ebx + 0x1708], ax
lea ecx, [edi + edx]
add ecx, 0xfffffff0
jmp 0x4beb12
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea edi, [esi + 1]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov al, byte [ebx + 0x1709]
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea edi, [esi + 1]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov eax, dword [ebx + 0x170c]
mov cl, 0x10
sub cl, al
shr edx, cl
mov ecx, eax
mov word [ebx + 0x1708], dx
add ecx, 0xfffffff7
jmp 0x4beb78
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea edi, [esi + 1]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov al, byte [ebx + 0x1709]
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea edi, [esi + 1]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov eax, dword [ebx + 0x170c]
mov cl, 0x10
sub cl, al
shr edx, cl
mov ecx, eax
mov word [ebx + 0x1708], dx
add ecx, 0xfffffff2
jmp 0x4beb78
mov ebx, dword [ebp - 0x14]
mov word [ebx + 0x1708], ax
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x10], ecx
mov esi, dword [ebx + 0x14]
lea ecx, [esi + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + esi], al
mov al, byte [ebx + 0x1709]
mov byte [ebp - 0x10], al
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea eax, [esi + 1]
mov dword [ebx + 0x14], eax
mov al, byte [ebp - 0x10]
mov byte [ecx + esi], al
mov eax, dword [ebx + 0x170c]
mov cl, 0x10
sub cl, al
lea ebx, [edx + eax]
add ebx, 0xfffffff0
shr edi, cl
mov eax, edi
jmp 0x4bebd5
mov ebx, dword [ebp - 0x14]
mov word [ebx + 0x1708], ax
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x10], ecx
mov esi, dword [ebx + 0x14]
lea ecx, [esi + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + esi], al
mov al, byte [ebx + 0x1709]
mov byte [ebp - 0x10], al
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea eax, [esi + 1]
mov dword [ebx + 0x14], eax
mov al, byte [ebp - 0x10]
mov byte [ecx + esi], al
mov eax, dword [ebx + 0x170c]
mov cl, 0x10
sub cl, al
lea ebx, [edx + eax]
add ebx, 0xfffffff0
shr edi, cl
mov eax, edi
jmp 0x4bec3f
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 0x170c]
mov dword [ebp - 0x1c], edx
jmp 0x4beb1b
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea edi, [esi + 1]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov al, byte [ebx + 0x1709]
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea edi, [esi + 1]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov eax, dword [ebx + 0x170c]
mov cl, 0x10
sub cl, al
shr edx, cl
mov ecx, eax
mov word [ebx + 0x1708], dx
add ecx, 0xfffffff3
jmp 0x4beb78
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret