Function at 0x10099fa7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100f83e0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x10099fc8
or eax, 0xffffffff
jmp 0x1009a201
cmp dword [ebp + 0xc], 0
jg 0x10099fd6
push 0xfffffffffffffffe
pop eax
jmp 0x1009a201
cmp dword [ebp + 0x18], 0
jne 0x10099fe4
push 0xfffffffffffffffd
pop eax
jmp 0x1009a201
cmp dword [ebp + 0x14], 0
jg 0x10099ff2
push 0xfffffffffffffffc
pop eax
jmp 0x1009a201
cmp dword [ebp + 0x10], 0
jne 0x1009a000
push 0xfffffffffffffffb
pop eax
jmp 0x1009a201
cmp dword [ebp + 0x1c], 0
jg 0x1009a00e
push 0xfffffffffffffffa
pop eax
jmp 0x1009a201
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x1c]
jge 0x1009a01e
push 0xfffffffffffffff9
pop eax
jmp 0x1009a201
and dword [ebp - 0x214], 0
and dword [ebp - 4], 0
jmp 0x1009a032
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x1009a070
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 4]
mov byte [ebp + eax - 0x108], cl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
mov al, byte [eax]
mov byte [ebp + ecx - 0x210], al
mov eax, dword [ebp - 0x214]
inc eax
cdq
idiv dword [ebp + 0xc]
mov dword [ebp - 0x214], edx
jmp 0x1009a02b
and dword [ebp - 0x21c], 0
and dword [ebp - 4], 0
jmp 0x1009a084
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x1009a0fb
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x108]
add eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ebp + ecx - 0x210]
add eax, ecx
and eax, 0x800000ff
jns 0x1009a0b9
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov al, byte [ebp + eax - 0x108]
mov byte [ebp - 0x109], al
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
mov cl, byte [ebp + ecx - 0x108]
mov byte [ebp + eax - 0x108], cl
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 0x109]
mov byte [ebp + eax - 0x108], cl
jmp 0x1009a07d
and dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
jmp 0x1009a121
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp + 0x1c]
jge 0x1009a1ff
mov eax, dword [ebp - 4]
inc eax
and eax, 0x800000ff
jns 0x1009a142
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x108]
add eax, dword [ebp - 0x21c]
and eax, 0x800000ff
jns 0x1009a164
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov al, byte [ebp + eax - 0x108]
mov byte [ebp - 0x109], al
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
mov cl, byte [ebp + ecx - 0x108]
mov byte [ebp + eax - 0x108], cl
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 0x109]
mov byte [ebp + eax - 0x108], cl
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x108]
mov ecx, dword [ebp - 0x21c]
movzx ecx, byte [ebp + ecx - 0x108]
add eax, ecx
and eax, 0x800000ff
jns 0x1009a1cd
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
movzx eax, byte [ebp + eax - 0x108]
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0x214]
movzx ecx, byte [ecx]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x214]
mov byte [ecx], al
jmp 0x1009a114
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100770aa
leave
ret