Function at 0x10068570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aa198
push 0x1006d0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100adb80]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10068815
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10068815
cmp dword [ebp + 0x1c], 0
je 0x10068815
cmp dword [ebp + 0x20], 0
je 0x10068815
lea eax, [ebx + ecx]
cmp ebx, eax
ja 0x10068815
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
push 0x10
push 0
push ecx
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x1006880e
movdqu xmm0, xmmword [ebx]
mov esi, 0x10
mov dword [ebp - 0x1c], esi
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, eax
shr ecx, 0x10
movzx eax, ax
add ecx, eax
mov dword [ebp + 8], ecx
xor edi, edi
mov dword [ebp - 0x20], edi
cmp edi, ecx
jae 0x1006880e
push 8
push esi
push dword [ebp + 0xc]
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x1006880e
mov eax, dword [esi + ebx]
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + ebx + 4]
mov dword [ebp - 0x28], ecx
add esi, 8
mov dword [ebp - 0x1c], esi
test eax, eax
js 0x100687f3
movzx eax, ax
cmp eax, dword [ebp + 0x14]
jne 0x100687f3
test ecx, ecx
jns 0x1006880e
mov esi, ecx
and esi, 0x7fffffff
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 8]
cmp edi, ecx
jae 0x1006880e
push 0x10
push esi
push dword [ebp + 0xc]
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x1006880e
movdqu xmm0, xmmword [esi + ebx]
add esi, 0x10
mov dword [ebp - 0x1c], esi
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, eax
shr ecx, 0x10
movzx eax, ax
add ecx, eax
mov dword [ebp + 8], ecx
xor edi, edi
mov dword [ebp - 0x24], edi
cmp edi, ecx
jae 0x1006880e
push 8
push esi
push dword [ebp + 0xc]
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x1006880e
mov eax, dword [esi + ebx]
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + ebx + 4]
mov dword [ebp - 0x28], ecx
add esi, 8
mov dword [ebp - 0x1c], esi
test eax, eax
js 0x100687fc
movzx eax, ax
cmp eax, dword [ebp + 0x18]
jne 0x100687fc
test ecx, ecx
jns 0x1006880e
mov esi, ecx
and esi, 0x7fffffff
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 8]
cmp edi, ecx
jae 0x1006880e
push 0x10
push esi
mov edi, dword [ebp + 0xc]
push edi
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x1006880e
movdqu xmm0, xmmword [esi + ebx]
add esi, 0x10
mov dword [ebp - 0x1c], esi
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, eax
shr ecx, 0x10
movzx eax, ax
add ecx, eax
je 0x1006880e
push 8
push esi
push edi
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x1006880e
mov eax, dword [esi + ebx]
mov dword [ebp - 0x2c], eax
mov esi, dword [esi + ebx + 4]
mov dword [ebp - 0x28], esi
test esi, esi
js 0x1006880e
mov dword [ebp - 0x1c], esi
push 0x10
push esi
push edi
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x1006880e
movdqu xmm0, xmmword [esi + ebx]
movd esi, xmm0
sub esi, dword [ebp + 0x10]
psrldq xmm0, 4
movd ebx, xmm0
push ebx
push esi
push edi
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x1006880e
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc edi
mov ecx, dword [ebp + 8]
jmp 0x10068621
inc edi
mov ecx, dword [ebp + 8]
jmp 0x100686c4
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret