Function at 0x47b4c0
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 - 0x10], ecx
cmp dword [ebp + 8], 0
js 0x47ba74
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 2]
xor eax, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
sete al
mov edx, 0x8a
mov ecx, 7
cmove ecx, edx
mov edx, 4
sub edx, eax
mov dword [ebp - 0x18], edx
xor edi, edi
dec edi
xor ebx, ebx
xor edx, edx
jmp 0x47b5b0
mov ebx, dword [ebp - 0x1c]
movzx eax, word [edi + ebx*4 + 0xace]
mov esi, 0x10
sub esi, eax
movzx ebx, word [edi + ebx*4 + 0xacc]
mov dword [ebp - 0x18], ebx
shl ebx, cl
or bx, word [edi + 0x1708]
mov word [edi + 0x1708], bx
cmp ecx, esi
jg 0x47b552
add ecx, eax
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x170c], ecx
dec edx
je 0x47b6bd
jmp 0x47b50d
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x14], ecx
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov byte [ecx + esi], bl
mov cl, byte [edi + 0x1709]
mov byte [ebp - 0x14], cl
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov dword [edi + 0x14], ecx
mov cl, byte [ebp - 0x14]
mov byte [esi + ebx], cl
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
mov esi, dword [ebp - 0x18]
shr esi, cl
mov word [edi + 0x1708], si
lea ecx, [eax + ebx]
add ecx, 0xfffffff0
jmp 0x47b543
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
movzx eax, word [eax + ebx*4 + 6]
mov ebx, edx
add edx, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
cmp esi, eax
sete al
cmp edx, ecx
jge 0x47b823
test al, al
je 0x47b5ea
mov esi, dword [ebp - 0x28]
lea ebx, [esi + 1]
cmp esi, dword [ebp + 8]
jne 0x47b5b0
jmp 0x47ba74
cmp edx, dword [ebp - 0x18]
jge 0x47b5fd
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x170c]
jmp 0x47b50d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47b6f6
cmp eax, edi
je 0x47b9f4
mov esi, ebx
mov ebx, eax
mov edi, dword [ebp - 0x10]
movzx edx, word [edi + eax*4 + 0xace]
mov ecx, dword [edi + 0x170c]
mov eax, 0x10
sub eax, edx
movzx ebx, word [edi + ebx*4 + 0xacc]
mov dword [ebp - 0x18], ebx
shl ebx, cl
or bx, word [edi + 0x1708]
mov word [edi + 0x1708], bx
cmp ecx, eax
jg 0x47b82a
mov edi, ecx
mov eax, ecx
add eax, edx
mov edi, dword [ebp - 0x10]
mov ecx, eax
mov dword [edi + 0x170c], eax
mov ebx, edi
movzx edi, word [edi + 0xb0e]
mov eax, 0x10
movzx edx, word [ebx + 0xb0c]
mov dword [ebp - 0x18], edx
shl edx, cl
sub eax, edi
or dx, word [ebx + 0x1708]
cmp ecx, eax
jg 0x47b7cb
mov ebx, ecx
add ebx, edi
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x170c], ebx
add esi, 0xfffd
cmp ebx, 0xf
jge 0x47b8ee
mov ecx, ebx
shl esi, cl
or edx, esi
mov word [edi + 0x1708], dx
add ebx, 2
mov dword [edi + 0x170c], ebx
xor edx, edx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x47b6e2
xor ecx, ecx
mov edi, dword [ebp - 0x1c]
cmp edi, eax
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x18], eax
xor ecx, 7
jmp 0x47b5da
mov ecx, 0x8a
mov dword [ebp - 0x18], 3
mov edi, dword [ebp - 0x1c]
jmp 0x47b5da
mov esi, ebx
cmp ebx, 9
jle 0x47b764
mov edi, dword [ebp - 0x10]
movzx ebx, word [edi + 0xb16]
mov ecx, dword [edi + 0x170c]
mov eax, 0x10
movzx edx, word [edi + 0xb14]
mov dword [ebp - 0x14], edx
shl edx, cl
mov dword [ebp - 0x18], ebx
sub eax, ebx
or dx, word [edi + 0x1708]
cmp ecx, eax
jg 0x47b95e
mov ebx, ecx
add ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x170c], ebx
add esi, 0xfff6
cmp ebx, 0xa
jge 0x47b87e
mov ecx, ebx
shl esi, cl
or edx, esi
mov word [edi + 0x1708], dx
add ebx, 7
jmp 0x47b6b7
mov edi, dword [ebp - 0x10]
movzx ebx, word [edi + 0xb12]
mov ecx, dword [edi + 0x170c]
mov eax, 0x10
movzx edx, word [edi + 0xb10]
mov dword [ebp - 0x14], edx
shl edx, cl
mov dword [ebp - 0x18], ebx
sub eax, ebx
or dx, word [edi + 0x1708]
cmp ecx, eax
jg 0x47b9a9
mov ebx, ecx
add ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x170c], ebx
add esi, 0xfffe
cmp ebx, 0xe
jge 0x47ba04
mov ecx, ebx
shl esi, cl
or edx, esi
mov word [edi + 0x1708], dx
add ebx, 3
jmp 0x47b6b7
mov ebx, dword [ebp - 0x10]
mov word [ebx + 0x1708], dx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 0x14]
lea eax, [ecx + 1]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
mov al, byte [ebx + 0x1709]
mov byte [ebp - 0x14], al
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
lea eax, [edx + 1]
mov dword [ebx + 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [ecx + edx], al
mov eax, dword [ebx + 0x170c]
mov cl, 0x10
sub cl, al
lea edx, [edi + eax]
add edx, 0xfffffff0
mov edi, ebx
mov ebx, edx
mov edx, dword [ebp - 0x18]
shr edx, cl
jmp 0x47b692
xor eax, eax
jmp 0x47b5d6
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], bl
mov al, byte [edi + 0x1709]
mov byte [ebp - 0x14], al
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea eax, [ebx + 1]
mov dword [edi + 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [ecx + ebx], al
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
mov eax, dword [ebp - 0x18]
shr eax, cl
mov word [edi + 0x1708], ax
lea eax, [edx + ebx]
add eax, 0xfffffff0
jmp 0x47b658
movzx edi, si
mov ecx, ebx
shl esi, cl
or edx, esi
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], dx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], di
mov edi, dword [ebp - 0x10]
add ebx, 0xfffffff7
jmp 0x47b6b7
movzx edi, si
mov ecx, ebx
shl esi, cl
or edx, esi
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], dx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], di
mov edi, dword [ebp - 0x10]
add ebx, 0xfffffff2
jmp 0x47b6b7
mov edi, dword [ebp - 0x10]
mov word [edi + 0x1708], dx
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x14], eax
mov byte [ebx + ecx], dl
mov bl, byte [edi + 0x1709]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea eax, [edx + 1]
mov dword [edi + 0x14], eax
mov byte [ecx + edx], bl
mov eax, dword [edi + 0x170c]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x18]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x14]
shr edx, cl
jmp 0x47b73a
mov edi, dword [ebp - 0x10]
mov word [edi + 0x1708], dx
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x14], eax
mov byte [ebx + ecx], dl
mov bl, byte [edi + 0x1709]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea eax, [edx + 1]
mov dword [edi + 0x14], eax
mov byte [ecx + edx], bl
mov eax, dword [edi + 0x170c]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x18]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x14]
shr edx, cl
jmp 0x47b7a1
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x170c]
mov esi, edx
jmp 0x47b660
movzx edi, si
mov ecx, ebx
shl esi, cl
or edx, esi
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], dx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], di
mov edi, dword [ebp - 0x10]
add ebx, 0xfffffff3
jmp 0x47b6b7
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret