Function at 0x1000f1e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x28], edx
cmp dword [ebp + 8], 0
js 0x1000f759
mov esi, ecx
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 2]
xor edx, edx
mov dword [ebp - 0x24], eax
test eax, eax
mov eax, 0x8a
mov ecx, 7
cmove ecx, eax
mov dword [ebp - 0x14], ecx
setne dl
add edx, 3
mov dword [ebp - 0x18], edx
mov edi, 0xffffffff
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x10], esi
jmp 0x1000f25c
xor ecx, ecx
cmp edx, eax
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x18], eax
xor ecx, 7
mov dword [ebp - 0x14], ecx
mov edi, edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
lea eax, [edx + 1]
cmp edx, ecx
mov edx, eax
je 0x1000f759
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
movzx eax, word [eax + edx*4 + 6]
mov edx, ebx
mov ebx, dword [ebp - 0x1c]
inc ebx
cmp ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
jge 0x1000f27f
cmp edx, eax
je 0x1000f249
cmp ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
jge 0x1000f340
mov ecx, dword [esi + 0x16bc]
jmp 0x1000f2fe
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], bl
movzx eax, byte [esi + 0x16b9]
mov byte [ebp - 0x14], al
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea eax, [ebx + 1]
mov dword [esi + 0x14], eax
movzx eax, byte [ebp - 0x14]
mov byte [ecx + ebx], al
mov eax, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, al
shr edx, cl
mov word [esi + 0x16b8], dx
lea ecx, [edi + eax]
add ecx, 0xfffffff0
mov dword [esi + 0x16bc], ecx
mov ebx, dword [ebp - 0x1c]
dec ebx
mov edx, dword [ebp - 0x20]
je 0x1000f739
mov dword [ebp - 0x1c], ebx
movzx edi, word [esi + edx*4 + 0xa7e]
mov eax, 0x10
sub eax, edi
movzx edx, word [esi + edx*4 + 0xa7c]
mov ebx, edx
shl ebx, cl
or bx, word [esi + 0x16b8]
mov word [esi + 0x16b8], bx
cmp ecx, eax
jg 0x1000f2a0
add ecx, edi
jmp 0x1000f2eb
mov eax, ebx
mov ebx, dword [esi + 0x16bc]
test edx, edx
je 0x1000f35c
cmp edx, edi
jne 0x1000f3f1
mov dword [ebp - 0x1c], eax
jmp 0x1000f4fe
movzx edx, word [esi + 0x16b8]
cmp dword [ebp - 0x1c], 9
jg 0x1000f46f
movzx edi, word [esi + 0xac2]
movzx eax, word [esi + 0xac0]
mov dword [ebp - 0x18], eax
mov ecx, ebx
shl eax, cl
or edx, eax
mov eax, 0x10
mov dword [ebp - 0x14], edi
sub eax, edi
cmp ebx, eax
jle 0x1000f60d
mov word [esi + 0x16b8], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 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]
movzx edx, byte [eax + 0x16b9]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea ebx, [esi + 1]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], ebx
mov byte [ecx + esi], dl
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
jmp 0x1000f610
movzx ecx, word [esi + edx*4 + 0xa7e]
mov eax, esi
mov esi, 0x10
mov dword [ebp - 0x14], ecx
sub esi, ecx
movzx edi, word [eax + edx*4 + 0xa7c]
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [eax + 0x16b8]
mov word [eax + 0x16b8], dx
cmp ebx, esi
jle 0x1000f4f3
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0x14]
lea esi, [ecx + 1]
mov dword [eax + 0x14], esi
mov byte [ebx + ecx], dl
movzx ebx, byte [eax + 0x16b9]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x14]
lea esi, [edx + 1]
mov dword [eax + 0x14], esi
mov byte [ecx + edx], bl
mov edx, dword [eax + 0x16bc]
mov cl, 0x10
sub cl, dl
shr edi, cl
mov word [eax + 0x16b8], di
mov ecx, dword [ebp - 0x14]
lea ebx, [ecx + edx]
add ebx, 0xfffffff0
jmp 0x1000f4f6
movzx edi, word [esi + 0xac6]
movzx eax, word [esi + 0xac4]
mov dword [ebp - 0x18], eax
mov ecx, ebx
shl eax, cl
or edx, eax
mov eax, 0x10
mov dword [ebp - 0x14], edi
sub eax, edi
cmp ebx, eax
jle 0x1000f68d
mov word [esi + 0x16b8], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 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]
movzx edx, byte [eax + 0x16b9]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea ebx, [esi + 1]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], ebx
mov byte [ecx + esi], dl
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
jmp 0x1000f690
add ebx, dword [ebp - 0x14]
mov esi, eax
mov dword [eax + 0x16bc], ebx
movzx edi, word [esi + 0xabe]
mov eax, 0x10
movzx edx, word [esi + 0xabc]
mov dword [ebp - 0x18], edx
mov ecx, ebx
shl edx, cl
mov dword [ebp - 0x14], edi
sub eax, edi
or dx, word [esi + 0x16b8]
cmp ebx, eax
jle 0x1000f580
mov word [esi + 0x16b8], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 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]
movzx eax, byte [eax + 0x16b9]
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 esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov eax, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
jmp 0x1000f583
add ebx, dword [ebp - 0x14]
mov dword [esi + 0x16bc], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfffd
cmp ebx, 0xf
jl 0x1000f5f8
movzx edi, ax
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x16b8], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 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]
movzx eax, byte [eax + 0x16b9]
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 esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov ebx, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [esi + 0x16b8], di
add ebx, 0xfffffff2
jmp 0x1000f730
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x16b8], dx
add ebx, 2
jmp 0x1000f730
add ebx, dword [ebp - 0x14]
mov edi, edx
mov dword [esi + 0x16bc], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfffe
cmp ebx, 0xe
jl 0x1000f706
movzx edx, ax
mov ecx, ebx
shl eax, cl
mov ebx, edi
or ebx, eax
mov word [esi + 0x16b8], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x14], esi
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x10]
movzx eax, 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 byte [ecx + esi], al
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [esi + 0x16b8], dx
add ebx, 0xfffffff3
jmp 0x1000f730
add ebx, dword [ebp - 0x14]
mov edi, edx
mov dword [esi + 0x16bc], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfff6
cmp ebx, 0xa
jl 0x1000f718
movzx edx, ax
mov ecx, ebx
shl eax, cl
mov ebx, edi
or ebx, eax
mov word [esi + 0x16b8], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x14], esi
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x10]
movzx eax, 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 byte [ecx + esi], al
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [esi + 0x16b8], dx
add ebx, 0xfffffff7
jmp 0x1000f730
mov ecx, ebx
shl eax, cl
or edi, eax
mov word [esi + 0x16b8], di
add ebx, 3
jmp 0x1000f730
mov ecx, ebx
shl eax, cl
or edi, eax
mov word [esi + 0x16b8], di
add ebx, 7
nop dword [eax + eax]
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x16bc], ebx
xor ebx, ebx
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x1000f230
mov dword [ebp - 0x14], 0x8a
mov dword [ebp - 0x18], 3
jmp 0x1000f247
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret