Function at 0x100902c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x38
mov edx, dword [esp + 0x40]
push ebx
push esi
push edi
mov edi, dword [esp + 0x48]
mov eax, edi
imul eax, edx
movups xmm2, xmmword [0x101173e0]
mov dword [esp + 0x2c], 0x10
mov ecx, eax
mov dword [esp + 0x38], eax
mov ebx, eax
sar ecx, 1
mov eax, ecx
sar ebx, 2
shl eax, 4
mov dword [esp + 0x24], eax
mov eax, ebx
shl eax, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x5c]
mov eax, ebx
sub eax, 0x1017ba40
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x14], eax
inc ecx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], ecx
lea eax, [eax + eax*8]
lea eax, [eax*8 + 0x1017ba40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
and eax, 1
mov esi, ebx
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx - 1]
mov ebx, dword [esp + 0x54]
imul eax, edx
add ebx, 0x820
shl ecx, 6
sar eax, 3
sub ecx, eax
mov eax, dword [esp + 0x18]
shl ecx, 6
movzx eax, byte [eax]
imul eax, edi
sar eax, 3
sub ecx, eax
add ebx, ecx
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebx
je 0x1009046b
test edx, edx
jle 0x10090495
mov dword [esp + 0x20], edx
nop dword [eax]
xor ecx, ecx
test edi, edi
jle 0x10090455
cmp edi, 0x40
jb 0x1009042c
lea eax, [ebx - 1]
lea edx, [esi - 1]
add eax, edi
add edx, edi
cmp esi, eax
ja 0x100903b5
cmp edx, ebx
jae 0x1009042c
mov eax, edi
lea edx, [ebx + 0x30]
and eax, 0xffffffc0
mov edi, ebx
sub edi, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
lea eax, [esi + 0x10]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x30]
movups xmm0, xmmword [edx - 0x30]
lea edx, [edx + 0x40]
add ecx, 0x40
movaps xmm1, xmm2
lea eax, [eax + 0x40]
psubb xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ebx + eax - 0x40]
psubb xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [edx - 0x50]
psubb xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [edx - 0x40]
psubb xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [esp + 0x34]
jl 0x100903d4
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
cmp ecx, edi
jge 0x10090455
mov edx, ebx
lea eax, [ecx + esi]
sub edx, esi
mov dword [esp + 0x34], edx
mov edx, edi
mov edi, dword [esp + 0x34]
sub edx, ecx
nop
mov cl, 0x40
lea eax, [eax + 1]
sub cl, byte [eax + edi - 1]
mov byte [eax - 1], cl
sub edx, 1
jne 0x10090440
mov edi, dword [esp + 0x48]
add ebx, 0x40
add esi, edi
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], ebx
jne 0x10090390
jmp 0x10090491
test edx, edx
jle 0x10090495
mov dword [esp + 0x20], edx
push edi
push ebx
push esi
call fcn.100c6210
add esp, 0xc
add ebx, 0x40
add esi, edi
sub dword [esp + 0x20], 1
jne 0x10090473
movups xmm2, xmmword [0x101173e0]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
shr eax, 3
movzx eax, ax
push 0
mov word [esi + 0x20], ax
mov word [esi], ax
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x28]
push edx
push edi
push 0
push dword [esp + 0x6c]
add eax, dword [esp + 0x74]
push eax
call fcn.100905b0
mov ebx, dword [esp + 0x64]
mov word [esi + 0x318], ax
mov esi, dword [esp + 0x28]
push 0
xor esi, 1
push ebx
mov eax, esi
imul eax, dword [esp + 0x44]
push edi
push 1
push dword [esp + 0x84]
add eax, dword [esp + 0x8c]
push eax
call fcn.100905b0
mov ecx, dword [esp + 0x3c]
push 1
push ebx
push edi
mov word [ecx + 0x338], ax
mov eax, dword [esp + 0x4c]
imul eax, dword [esp + 0x64]
push 0
push dword [esp + 0x9c]
add eax, dword [esp + 0xa8]
push eax
call fcn.100905b0
imul esi, dword [esp + 0x70]
add esp, 0x48
mov ecx, dword [esp + 0xc]
push 1
add esi, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x64]
push edi
push 1
push ebx
push esi
mov word [ecx + 0x630], ax
call fcn.100905b0
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov edx, dword [esp + 0x38]
add ebx, edx
add dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
add dword [esp + 0x60], edx
mov edx, dword [esp + 0x40]
add dword [esp + 0x64], edx
mov edx, dword [esp + 0x4c]
mov word [ecx + 0x650], ax
add ecx, 2
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
shr eax, 1
add ecx, 3
sub dword [esp + 0x2c], 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x18], ecx
jne 0x10090337
pop edi
pop esi
pop ebx
add esp, 0x38
ret