Function at 0x1000f282
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
cmp word [0x45400e96], 0
push ebx
push ebp
push esi
push edi
je 0x1000f324
cmp dword [0x453c0354], 0
je 0x1000f240
cmp dword [0x453c0ad0], 9
movzx eax, word [0x453c0a70]
mov word [0x45400ee6], ax
mov ax, word [0x453c0ab4]
mov word [0x453c09c0], ax
jne 0x1000f324
mov edi, dword [0x45400e88]
movzx ecx, ax
xor esi, esi
lea ebx, [ecx*8]
add edi, 8
jmp 0x1000f1a0
mov edx, 1
mov eax, edi
mov bp, word [eax + 4]
or bp, word [eax]
je 0x1000f1c5
add edx, 1
add eax, 8
cmp edx, 4
jl 0x1000f1a7
add esi, 1
add edi, ebx
cmp esi, 3
jl 0x1000f1a0
movzx eax, word [0x453c0a70]
cmp esi, eax
jge 0x1000f3fc
lea eax, [edx - 1]
cdq
mov edi, 3
idiv edi
lea eax, [ecx - 1]
add edx, 1
cmp edx, eax
jge 0x1000f22d
lea esp, [esp]
mov eax, dword [0x45400e88]
imul ecx, esi
add ecx, edx
lea eax, [eax + ecx*8]
add eax, 8
mov ecx, 2
movzx edi, word [eax - 0x10]
movzx ebx, word [eax]
add edi, ebx
sar edi, 1
mov word [eax - 8], di
add eax, 4
sub ecx, 1
jne 0x1000f205
movzx ecx, word [0x453c09c0]
add edx, 3
lea eax, [ecx - 1]
cmp edx, eax
jl 0x1000f1f0
movzx eax, word [0x45400ee6]
add esi, 3
cmp esi, eax
jl 0x1000f1d4
jmp 0x1000f324
movzx ecx, word [0x453c09c0]
movzx edx, word [0x45400ee6]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
call fcn.1002bc60
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
jne 0x1000f291
mov eax, dword [0x45400de4]
push 0x452f88b4
push eax
push 0x452f84c8
push 0x3ea
call fcn.100285e0
push 1
push 0x453c0a80
call fcn.10027b90
add esp, 0x18
xor ebx, ebx
cmp word [0x45400ee6], bx
jbe 0x1000f306
movzx edi, word [0x453c09c0]
xor esi, esi
test edi, edi
jle 0x1000f2f4
mov ebp, ebx
sar ebp, 1
lea ecx, [ecx]
push esi
push ebx
call fcn.100028c0
imul edi, ebx
movzx ecx, word [0x453c0ab4]
imul ecx, ebp
mov edx, esi
sar edx, 1
add ecx, edx
add edi, esi
lea edx, [eax + edi*4]
lea ecx, [eax + ecx*4]
mov eax, dword [0x45400e88]
mov cx, word [eax + ecx*2]
mov eax, dword [esp + 0x18]
mov word [eax + edx*2], cx
movzx edi, word [0x453c09c0]
add esi, 1
add esp, 8
cmp esi, edi
jl 0x1000f2b0
movzx ecx, word [0x45400ee6]
add ebx, 1
cmp ebx, ecx
jl 0x1000f2a3
mov esi, dword [esp + 0x10]
mov edx, dword [0x45400e88]
push edx
call fcn.1002bb90
add esp, 4
mov dword [0x45400e88], esi
mov word [0x45400e96], 0
mov edi, dword [0x453c0ad0]
cmp edi, 0x3e8
jbe 0x1000f3fc
cmp dword [0x453c05a0], 3
jne 0x1000f3fc
mov eax, dword [0x453c0358]
mov ecx, dword [0x453c0354]
mov edx, eax
xor edx, ecx
or eax, ecx
mov dword [0x45400eec], edx
je 0x1000f36b
mov dword [0x453c05a0], 4
jmp 0x1000f3fc
movzx eax, word [0x45400ee6]
mov esi, edi
shr esi, 5
and esi, 1
cmp esi, eax
jge 0x1000f3e8
movzx edx, word [0x453c09c0]
jmp 0x1000f390
mov ecx, esi
and ecx, 7
lea ecx, [ecx*4 + 2]
mov eax, edi
shr eax, cl
and eax, 1
cmp eax, edx
jge 0x1000f3d4
jmp 0x1000f3b0
mov ecx, dword [0x45400e88]
imul edx, esi
add edx, eax
lea ecx, [ecx + edx*8]
mov dx, word [ecx + 6]
mov word [ecx + 2], dx
movzx edx, word [0x453c09c0]
add eax, 2
cmp eax, edx
jl 0x1000f3b0
movzx eax, word [0x45400ee6]
mov edi, dword [0x453c0ad0]
add esi, 2
cmp esi, eax
jl 0x1000f390
mov ecx, edi
and ecx, 0xd5555555
add ecx, ecx
not ecx
and edi, ecx
mov dword [0x453c0ad0], edi
cmp dword [0x453c0354], 0
pop edi
pop esi
pop ebp
pop ebx
je 0x1000f413
mov dword [0x453c0ad0], 0
pop ecx
ret