Function at 0x10099210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1e0], ecx
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x1f8], ecx
mov ecx, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x1fc], ecx
lea ecx, [ebp - 0x1e8]
push ecx
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1f0], ebx
push ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x1dc], eax
push ecx
push esi
push eax
mov dword [ebp - 0x1e8], 0x5fb0a94f
mov dword [ebp - 0x1d8], 0
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x1090], 0
mov dword [ebx + 0x1094], 0
call fcn.1009bdf0
add esp, 0x14
test eax, eax
jne 0x10099400
mov eax, dword [ebp - 0x1d8]
xor ecx, ecx
add dword [ebx + 0x30], eax
adc ecx, dword [ebx + 0x34]
test byte [ebp - 0x11f], 2
mov dword [ebx + 0x34], ecx
je 0x10099400
nop word [eax + eax]
movzx eax, byte [ebp - 0x108]
xor edx, edx
xor edi, edi
mov dword [ebp - 0x1e4], edx
xor ecx, ecx
mov dword [ebp - 0x1f4], eax
cmp eax, 2
jb 0x10099318
dec eax
mov ebx, eax
movzx eax, byte [ebp + ecx - 0x107]
add edx, eax
movzx eax, byte [ebp + ecx - 0x106]
add ecx, 2
add edi, eax
cmp ecx, ebx
jl 0x100992f1
mov ebx, dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1f4]
cmp ecx, eax
jge 0x10099326
movzx eax, byte [ebp + ecx - 0x107]
jmp 0x1009932c
mov eax, dword [ebp - 0x1e4]
add edi, eax
add edi, edx
push 1
cmp edi, 0x33
jne 0x100993a6
lea eax, [ebp - 0x1d1]
push eax
push esi
call dword [ebp - 0x1dc]
add esp, 0xc
cmp eax, 1
jne 0x10099400
cmp byte [ebp - 0x1d1], 0x7f
jne 0x100993a0
push 4
lea eax, [ebp - 0x1d0]
push eax
push esi
call dword [ebp - 0x1dc]
add esp, 0xc
cmp eax, 4
jne 0x10099400
cmp byte [ebp - 0x1d0], 0x46
jne 0x1009939a
cmp byte [ebp - 0x1cf], 0x4c
jne 0x1009939a
cmp byte [ebp - 0x1ce], 0x41
jne 0x1009939a
cmp byte [ebp - 0x1cd], 0x43
je 0x10099413
push 1
push 0x2e
jmp 0x100993a7
push 1
push 0x32
jmp 0x100993a7
push edi
push esi
call dword [ebp - 0x1e0]
add esp, 0xc
test eax, eax
je 0x10099400
mov eax, edi
cdq
add dword [ebx + 0x30], eax
lea eax, [ebp - 0x1e8]
push eax
adc dword [ebx + 0x34], edx
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x124]
push eax
push esi
push dword [ebp - 0x1dc]
call fcn.1009bd40
add esp, 0x14
test eax, eax
jne 0x10099400
mov eax, dword [ebp - 0x1d8]
add dword [ebx + 0x30], eax
adc dword [ebx + 0x34], 0
test byte [ebp - 0x11f], 2
jne 0x100992d0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d8]
push 2
push eax
push esi
call edi
add esp, 0xc
cmp eax, 2
jne 0x10099400
cmp byte [ebp - 0x1d8], 1
jne 0x10099400
push 1
push eax
push esi
call dword [ebp - 0x1e0]
add esp, 0xc
test eax, eax
je 0x10099400
push 4
lea eax, [ebp - 0x1d0]
push eax
push esi
call edi
add esp, 0xc
cmp eax, 4
jne 0x10099400
cmp byte [ebp - 0x1d0], 0x66
jne 0x10099400
cmp byte [ebp - 0x1cf], 0x4c
jne 0x10099400
cmp byte [ebp - 0x1ce], 0x61
jne 0x10099400
cmp byte [ebp - 0x1cd], 0x43
jne 0x10099400
push eax
lea eax, [ebp - 0x1e4]
push eax
push esi
call edi
add esp, 0xc
cmp eax, 4
jne 0x10099400
mov ecx, dword [ebp - 0x1e4]
bswap ecx
mov eax, ecx
mov edi, ecx
shr eax, 0x18
and ecx, 0xffffff
shr edi, 0x1f
test al, 0x7f
jne 0x10099400
cmp ecx, 0x22
jne 0x10099400
lea eax, [ebp - 0x22c]
push eax
push esi
push dword [ebp - 0x1dc]
call fcn.1009aca0
add esp, 0xc
test eax, eax
je 0x10099400
mov eax, dword [ebp - 0x220]
xor edi, 1
mov ecx, dword [ebp - 0x210]
mov dword [ebx + 0x18], eax
movzx eax, byte [ebp - 0x21c]
mov byte [ebx + 0x1c], al
movzx eax, byte [ebp - 0x21b]
mov byte [ebx + 0x1d], al
mov eax, dword [ebp - 0x214]
mov dword [ebx + 0x20], eax
mov ax, word [ebp - 0x22a]
mov word [ebx + 0x28], ax
mov eax, dword [ebp - 0x1f8]
mov dword [ebx + 0x38], 1
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x3c], edi
test eax, eax
je 0x10099588
movups xmm0, xmmword [ebp - 0x22c]
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x1cc], 0
push ecx
push dword [ebp - 0x1fc]
movups xmmword [ebp - 0x1bc], xmm0
mov dword [ebp - 0x1c8], 0
movups xmm0, xmmword [ebp - 0x21c]
mov dword [ebp - 0x1c4], 0
movups xmmword [ebp - 0x1ac], xmm0
movups xmm0, xmmword [ebp - 0x20c]
movups xmmword [ebp - 0x19c], xmm0
call eax
add esp, 8
add dword [ebx + 0x30], 0x33
lea edi, [ebx + 0x1098]
mov eax, dword [ebx + 0x30]
lea esi, [ebp - 0x124]
adc dword [ebx + 0x34], 0
add eax, 0xffffffb1
mov ecx, dword [ebx + 0x34]
adc ecx, 0xffffffff
mov dword [ebx + 0x1090], eax
mov eax, dword [ebp - 0x114]
mov dword [ebx + 0x1094], ecx
mov ecx, 0x48
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 0x1088], eax
xor ecx, ebp
pop esi
mov dword [ebx + 0x3c], 1
mov eax, 1
pop ebx
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret