Function at 0x47b130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
js 0x47b787
mov eax, dword [ebp - 0x24]
movzx esi, word [eax + 2]
xor eax, eax
test si, si
sete al
mov edx, 0x8a
mov ecx, 7
cmove ecx, edx
mov edx, 4
sub edx, eax
mov dword [ebp - 0x14], edx
xor edi, edi
dec edi
xor edx, edx
xor ebx, ebx
jmp 0x47b250
mov ebx, eax
movzx eax, word [esi + eax*4 + 0xace]
mov edi, 0x10
sub edi, eax
cmp ecx, edi
jg 0x47b1b5
movzx edi, word [esi + ebx*4 + 0xacc]
shl edi, cl
or word [esi + 0x1708], di
add ecx, eax
mov dword [esi + 0x170c], ecx
dec edx
mov eax, dword [ebp - 0x20]
je 0x47b342
jmp 0x47b17b
movzx ebx, word [esi + ebx*4 + 0xacc]
mov dword [ebp - 0x18], ebx
shl ebx, cl
mov ecx, dword [ebp - 0x10]
or bx, word [ecx + 0x1708]
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1708], bx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x14]
lea edi, [ecx + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
mov byte [esi + ecx], bl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x1709]
mov byte [ebp - 0x14], cl
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp - 0x14]
mov byte [edi + ebx], cl
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x170c]
mov cl, 0x10
sub cl, bl
mov esi, dword [ebp - 0x18]
shr esi, cl
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1708], si
lea ecx, [eax + ebx]
add ecx, 0xfffffff0
mov esi, dword [ebp - 0x10]
jmp 0x47b1a3
mov eax, esi
mov esi, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], esi
movzx esi, word [edx + esi*4 + 6]
mov dword [ebp - 0x18], ebx
lea edx, [ebx + 1]
cmp edx, ecx
mov dword [ebp - 0x28], esi
jge 0x47b287
cmp eax, esi
jne 0x47b287
mov eax, dword [ebp - 0x2c]
lea esi, [eax + 1]
mov ebx, edx
cmp eax, dword [ebp + 8]
mov edx, esi
mov esi, dword [ebp - 0x28]
jne 0x47b250
jmp 0x47b787
cmp edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
jge 0x47b29d
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x170c]
jmp 0x47b17b
test eax, eax
mov esi, dword [ebp - 0x10]
je 0x47b37c
cmp eax, edi
je 0x47b71a
movzx ebx, word [esi + eax*4 + 0xace]
mov ecx, dword [esi + 0x170c]
mov edx, 0x10
mov edi, ebx
sub edx, ebx
cmp ecx, edx
jg 0x47b4c6
movzx edx, word [esi + eax*4 + 0xacc]
shl edx, cl
or word [esi + 0x1708], dx
add edi, ecx
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x170c], edi
movzx ebx, word [esi + 0xb0e]
mov ecx, 0x10
sub ecx, ebx
cmp edi, ecx
jg 0x47b438
mov ecx, edi
movzx edx, word [esi + 0xb0c]
shl edx, cl
or dx, word [esi + 0x1708]
add ebx, edi
mov dword [esi + 0x170c], ebx
add eax, 0xfffd
movzx eax, ax
cmp ebx, 0xf
jge 0x47b5a2
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x1708], dx
add ebx, 2
mov dword [esi + 0x170c], ebx
xor edx, edx
mov eax, dword [ebp - 0x28]
test ax, ax
je 0x47b368
xor ecx, ecx
mov edi, dword [ebp - 0x20]
cmp edi, eax
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x14], eax
xor ecx, 7
jmp 0x47b270
mov ecx, 0x8a
mov dword [ebp - 0x14], 3
mov edi, dword [ebp - 0x20]
jmp 0x47b270
mov eax, dword [ebp - 0x18]
cmp eax, 9
jle 0x47b3de
movzx ebx, word [esi + 0xb16]
mov ecx, dword [esi + 0x170c]
mov edx, 0x10
sub edx, ebx
cmp ecx, edx
jg 0x47b602
movzx edx, word [esi + 0xb14]
shl edx, cl
or dx, word [esi + 0x1708]
add ebx, ecx
mov dword [esi + 0x170c], ebx
add eax, 0xfff6
movzx eax, ax
cmp ebx, 0xa
jge 0x47b542
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x1708], dx
add ebx, 7
jmp 0x47b33c
movzx ebx, word [esi + 0xb12]
mov ecx, dword [esi + 0x170c]
mov edx, 0x10
sub edx, ebx
cmp ecx, edx
jg 0x47b68e
movzx edx, word [esi + 0xb10]
shl edx, cl
or dx, word [esi + 0x1708]
add ebx, ecx
mov dword [esi + 0x170c], ebx
add eax, 0xfffe
movzx eax, ax
cmp ebx, 0xe
jge 0x47b727
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x1708], dx
add ebx, 3
jmp 0x47b33c
mov ecx, edi
movzx edx, word [esi + 0xb0c]
mov dword [ebp - 0x18], ebx
mov ebx, edx
shl ebx, cl
mov ecx, dword [ebp - 0x10]
or bx, word [ecx + 0x1708]
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1708], bx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x14], 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 - 0x14]
mov byte [ecx + edi], bl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x1709]
mov byte [ebp - 0x14], cl
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp - 0x14]
mov byte [edi + ebx], cl
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x170c]
mov cl, 0x10
sub cl, bl
mov esi, dword [ebp - 0x18]
add esi, ebx
add esi, 0xfffffff0
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
shr edx, cl
jmp 0x47b315
movzx eax, word [esi + eax*4 + 0xacc]
mov edx, eax
shl edx, cl
or dx, word [esi + 0x1708]
mov word [esi + 0x1708], dx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov byte [ecx + ebx], dl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x1709]
mov byte [ebp - 0x14], cl
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp - 0x14]
mov byte [edx + ebx], cl
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, dl
shr eax, cl
mov word [esi + 0x1708], ax
add edi, edx
add edi, 0xfffffff0
jmp 0x47b2e2
mov edi, eax
mov ecx, ebx
shl edi, cl
or edx, edi
mov word [esi + 0x1708], dx
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea ebx, [edi + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ebx
mov byte [ecx + edi], dl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x1709]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [esi + 0x14]
lea ebx, [edi + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ebx
mov esi, dword [ebp - 0x10]
mov byte [edx + edi], cl
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr eax, cl
mov word [esi + 0x1708], ax
add ebx, 0xfffffff7
jmp 0x47b33c
mov edi, eax
mov ecx, ebx
shl edi, cl
or edx, edi
mov word [esi + 0x1708], dx
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea ebx, [edi + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ebx
mov byte [ecx + edi], dl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x1709]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [esi + 0x14]
lea ebx, [edi + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ebx
mov esi, dword [ebp - 0x10]
mov byte [edx + edi], cl
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr eax, cl
mov word [esi + 0x1708], ax
add ebx, 0xfffffff2
jmp 0x47b33c
movzx edx, word [esi + 0xb14]
mov dword [ebp - 0x14], ebx
mov ebx, edx
shl ebx, cl
mov ecx, dword [ebp - 0x10]
or bx, word [ecx + 0x1708]
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1708], bx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x1c], 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 - 0x1c]
mov byte [ecx + edi], bl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x1709]
mov byte [ebp - 0x1c], cl
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp - 0x1c]
mov byte [edi + ebx], cl
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x170c]
mov cl, 0x10
sub cl, bl
mov esi, dword [ebp - 0x14]
add esi, ebx
add esi, 0xfffffff0
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
shr edx, cl
jmp 0x47b3b2
movzx edx, word [esi + 0xb10]
mov dword [ebp - 0x14], ebx
mov ebx, edx
shl ebx, cl
mov ecx, dword [ebp - 0x10]
or bx, word [ecx + 0x1708]
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1708], bx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x1c], 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 - 0x1c]
mov byte [ecx + edi], bl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x1709]
mov byte [ebp - 0x1c], cl
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp - 0x1c]
mov byte [edi + ebx], cl
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x170c]
mov cl, 0x10
sub cl, bl
mov esi, dword [ebp - 0x14]
add esi, ebx
add esi, 0xfffffff0
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
shr edx, cl
jmp 0x47b40c
mov edi, dword [esi + 0x170c]
mov eax, edx
jmp 0x47b2eb
mov edi, eax
mov ecx, ebx
shl edi, cl
or edx, edi
mov word [esi + 0x1708], dx
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea ebx, [edi + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ebx
mov byte [ecx + edi], dl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x1709]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [esi + 0x14]
lea ebx, [edi + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ebx
mov esi, dword [ebp - 0x10]
mov byte [edx + edi], cl
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr eax, cl
mov word [esi + 0x1708], ax
add ebx, 0xfffffff3
jmp 0x47b33c
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret