Function at 0x1008beb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push esi
push edi
cdq
mov esi, ecx
mov ecx, dword [esi + 0x409b0]
mov edi, dword [ecx]
push 0
push edx
push eax
mov eax, dword [edi + 0xc]
call eax
mov ecx, dword [esi + 0x409b0]
push 4
mov byte [esp + 0x1c], 0xff
mov byte [esp + 0x1d], 0xff
mov byte [esp + 0x1e], 0xff
mov byte [esp + 0x1f], 0xff
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [esp + 0x20]
push eax
call edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.10076390
cmp eax, 0xff
ja 0x1008c159
test eax, eax
je 0x1008c141
push ebx
push ebp
jmp 0x1008bf24
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x409b0]
dec eax
push 2
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 0xff
mov byte [esp + 0x25], 0xff
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [esp + 0x28]
push eax
call edx
movzx cx, byte [esp + 0x21]
mov eax, 0x4949
cmp word [esi + 0x40a00], ax
jne 0x1008bf6f
movzx dx, byte [esp + 0x20]
shl cx, 8
or cx, dx
movzx eax, cx
jmp 0x1008bf7f
movzx ax, byte [esp + 0x20]
shl ax, 8
or ax, cx
movzx eax, ax
mov ecx, dword [esi + 0x409b0]
push 2
movzx edi, ax
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xff
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [esp + 0x18]
push eax
call edx
movzx cx, byte [esp + 0x11]
mov eax, 0x4949
cmp word [esi + 0x40a00], ax
jne 0x1008bfc8
movzx dx, byte [esp + 0x10]
shl cx, 8
or cx, dx
movzx eax, cx
jmp 0x1008bfd8
movzx ax, byte [esp + 0x10]
shl ax, 8
or ax, cx
movzx eax, ax
mov ecx, dword [esi + 0x409b0]
mov edx, dword [ecx]
movzx ebp, ax
mov eax, dword [edx + 0x10]
call eax
mov ebx, eax
cmp edi, 0x100
jne 0x1008c013
mov ecx, esi
call fcn.10076330
mov ecx, esi
mov word [esi + 0xa8], ax
call fcn.10076330
mov word [esi + 0xaa], ax
jmp 0x1008c120
cmp edi, 0x121
jne 0x1008c056
mov ecx, esi
call fcn.10076330
mov ecx, esi
mov word [esi + 0xac], ax
call fcn.10076330
mov ecx, 0x10bc
mov word [esi + 0xae], ax
cmp ax, cx
jne 0x1008c120
mov edx, 0x10bf
mov word [esi + 0xae], dx
jmp 0x1008c120
cmp edi, 0x130
jne 0x1008c09a
mov ecx, dword [esi + 0x409b0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov ecx, dword [esi + 0x409b0]
sar eax, 7
mov dword [esi + 0x40a3c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test al, 8
mov eax, 0x1007cab0
jne 0x1008c08f
mov eax, 0x1007a1b0
mov dword [esi + 0x46ca0], eax
jmp 0x1008c120
cmp edi, 0x2ff0
jne 0x1008c0e2
xor edi, edi
mov ecx, esi
call fcn.10076330
movzx eax, ax
mov dword [esp + 0x18], eax
mov ecx, edi
xor ecx, 1
fild dword [esp + 0x18]
inc edi
fstp dword [esi + ecx*4 + 0x14c]
cmp edi, 4
jb 0x1008c0a4
mov edx, dword [esi + 0xc8]
and edx, 0xffffbfff
or edx, 0x3000
mov dword [esi + 0xc8], edx
jmp 0x1008c120
cmp edi, 0xc000
jne 0x1008c120
movsx edi, word [esi + 0x40a00]
mov eax, 0x4949
mov ecx, esi
mov word [esi + 0x40a00], ax
call fcn.100763f0
mov ecx, esi
mov word [esi + 0xae], ax
call fcn.100763f0
mov word [esi + 0xac], ax
mov word [esi + 0x40a00], di
mov ecx, dword [esi + 0x409b0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0
push 0
add ebx, ebp
push ebx
call eax
cmp dword [esp + 0x14], 0
jne 0x1008bf20
pop ebp
pop ebx
movzx eax, word [esi + 0x40a3c]
mov cx, ax
shl word [esi + 0xac], cl
shr word [esi + 0xae], cl
pop edi
pop esi
add esp, 0xc
ret 4