Function at 0x10219c60
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 0x1021a198
mov eax, dword [ebp - 0x28]
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 eax, eax
xor ebx, ebx
jmp 0x10219cd6
mov ecx, 0x8a
mov dword [ebp - 0x14], 3
mov edi, dword [ebp - 0x24]
nop word [eax + eax]
mov edx, dword [ebp - 0x30]
lea esi, [edx + 1]
mov ebx, eax
cmp edx, dword [ebp + 8]
mov eax, esi
mov esi, dword [ebp - 0x1c]
je 0x1021a198
mov edx, esi
mov esi, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], esi
movzx esi, word [eax + esi*4 + 6]
mov dword [ebp - 0x20], ebx
lea eax, [ebx + 1]
cmp eax, ecx
mov dword [ebp - 0x1c], esi
jge 0x10219cf6
cmp edx, esi
je 0x10219cc0
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
jge 0x10219da4
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x16bc]
mov ebx, dword [ebp - 0x24]
movzx edx, word [edi + ebx*4 + 0xa7e]
mov esi, 0x10
sub esi, edx
movzx ebx, word [edi + ebx*4 + 0xa7c]
mov dword [ebp - 0x20], ebx
shl ebx, cl
or bx, word [edi + 0x16b8]
mov word [edi + 0x16b8], bx
cmp ecx, esi
jg 0x10219d53
add ecx, edx
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x16bc], ecx
dec eax
je 0x10219ee4
jmp 0x10219d0b
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 + 0x16b9]
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 + 0x16bc]
mov cl, 0x10
sub cl, bl
mov esi, dword [ebp - 0x20]
shr esi, cl
mov word [edi + 0x16b8], si
lea ecx, [edx + ebx]
add ecx, 0xfffffff0
jmp 0x10219d41
test edx, edx
jne 0x10219e21
cmp dword [ebp - 0x20], 9
jg 0x10219f0b
mov edi, dword [ebp - 0x10]
movzx ebx, word [edi + 0xac2]
mov ecx, dword [edi + 0x16bc]
mov esi, 0x10
movzx eax, word [edi + 0xac0]
mov dword [ebp - 0x18], eax
shl eax, cl
mov dword [ebp - 0x14], ebx
sub esi, ebx
or ax, word [edi + 0x16b8]
cmp ecx, esi
jg 0x10219fc4
mov ebx, ecx
add ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffe
movzx edx, cx
mov esi, edx
mov ecx, ebx
shl esi, cl
or eax, esi
mov dword [edi + 0x16bc], ebx
mov word [edi + 0x16b8], ax
cmp ebx, 0xe
jge 0x1021a0f6
add ebx, 3
jmp 0x10219edb
cmp edx, edi
je 0x1021a1a0
mov edi, dword [ebp - 0x10]
movzx eax, word [edi + edx*4 + 0xa7e]
mov ecx, dword [edi + 0x16bc]
mov esi, 0x10
sub esi, eax
movzx ebx, word [edi + edx*4 + 0xa7c]
mov dword [ebp - 0x14], ebx
shl ebx, cl
or bx, word [edi + 0x16b8]
mov word [edi + 0x16b8], bx
cmp ecx, esi
jg 0x1021a0a2
mov edi, ecx
mov esi, ecx
add esi, eax
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [edi + 0x16bc], esi
movzx ebx, word [edi + 0xabe]
mov esi, 0x10
movzx eax, word [edi + 0xabc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov dword [ebp - 0x18], ebx
sub esi, ebx
or ax, word [edi + 0x16b8]
cmp ecx, esi
jg 0x1021a00f
mov ebx, dword [ebp - 0x14]
add ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffd
movzx edx, cx
mov esi, edx
mov ecx, ebx
shl esi, cl
or eax, esi
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x16bc], ebx
mov word [edi + 0x16b8], ax
cmp ebx, 0xf
jge 0x1021a147
add ebx, 2
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x16bc], ebx
xor eax, eax
test dx, dx
je 0x10219ca8
xor ecx, ecx
mov edi, dword [ebp - 0x24]
cmp edi, edx
sete cl
mov edx, 4
sub edx, ecx
mov dword [ebp - 0x14], edx
xor ecx, 7
jmp 0x10219cc0
mov edi, dword [ebp - 0x10]
movzx ebx, word [edi + 0xac6]
mov ecx, dword [edi + 0x16bc]
mov esi, 0x10
movzx eax, word [edi + 0xac4]
mov dword [ebp - 0x18], eax
shl eax, cl
mov dword [ebp - 0x14], ebx
sub esi, ebx
or ax, word [edi + 0x16b8]
cmp ecx, esi
jg 0x1021a05a
mov ebx, ecx
add ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfff6
movzx edx, cx
mov esi, edx
mov ecx, ebx
shl esi, cl
or eax, esi
mov dword [edi + 0x16bc], ebx
mov word [edi + 0x16b8], ax
cmp ebx, 0xa
jge 0x10219f73
add ebx, 7
jmp 0x10219edb
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 + 0x16b9]
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 edi, dword [ebp - 0x10]
mov byte [ecx + esi], al
mov ebx, dword [edi + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [edi + 0x16b8], dx
add ebx, 0xfffffff7
jmp 0x10219edb
mov edi, dword [ebp - 0x10]
mov word [edi + 0x16b8], ax
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov byte [edx + esi], al
mov dl, byte [edi + 0x16b9]
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x14], eax
mov byte [ecx + esi], dl
mov eax, dword [edi + 0x16bc]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov eax, dword [ebp - 0x18]
shr eax, cl
jmp 0x10219def
mov edi, dword [ebp - 0x10]
mov word [edi + 0x16b8], ax
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov byte [edx + esi], al
mov dl, byte [edi + 0x16b9]
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x14], eax
mov byte [ecx + esi], dl
mov eax, dword [edi + 0x16bc]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x18]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov eax, dword [ebp - 0x2c]
shr eax, cl
jmp 0x10219eab
mov word [edi + 0x16b8], ax
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov byte [edx + esi], al
mov dl, byte [edi + 0x16b9]
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x14], eax
mov byte [ecx + esi], dl
mov eax, dword [edi + 0x16bc]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov eax, dword [ebp - 0x18]
shr eax, cl
jmp 0x10219f45
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x18], ecx
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], bl
mov cl, byte [edi + 0x16b9]
mov byte [ebp - 0x18], cl
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov dword [edi + 0x14], ecx
mov cl, byte [ebp - 0x18]
mov byte [esi + ebx], cl
mov ebx, dword [edi + 0x16bc]
mov cl, 0x10
sub cl, bl
mov esi, dword [ebp - 0x14]
shr esi, cl
mov word [edi + 0x16b8], si
lea esi, [eax + ebx]
add esi, 0xfffffff0
jmp 0x10219e6d
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 + 0x16b9]
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 edi, dword [ebp - 0x10]
mov byte [ecx + esi], al
mov ebx, dword [edi + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [edi + 0x16b8], dx
add ebx, 0xfffffff3
jmp 0x10219edb
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 + 0x16b9]
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 edi, dword [ebp - 0x10]
mov byte [ecx + esi], al
mov ebx, dword [edi + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [edi + 0x16b8], dx
add ebx, 0xfffffff2
jmp 0x10219edb
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x10]
mov esi, dword [edi + 0x16bc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], eax
jmp 0x10219e76