Function at 0x10068190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov dword [esp], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
lea edx, [esp + 4]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
lea ecx, [esp + 8]
add eax, dword [ebp + 8]
adc esi, dword [ebp + 0xc]
push 4
push 0x14284ee8
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push eax
call fcn.10064ef0
add esp, 0x18
xor ebx, ebx
lea esi, [0x14284b99]
lea edx, [0x14284b9a]
mov eax, 0xfffffff9
mov dword [esp + 0x20], 0
nop dword [eax]
movzx ecx, byte [esi]
mov esi, edx
mov edx, ecx
add dl, 0xd0
cmp dl, 0xa
jb 0x10068215
or cl, 0x20
mov edx, ecx
add dl, 0x9f
cmp dl, 6
jae 0x100683b3
add cl, 0xa9
mov edx, ecx
mov ecx, ebx
movzx edi, dl
lea edx, [esi + 1]
shl ecx, 4
or edi, ecx
test eax, eax
cmove edx, esi
je 0x10068236
shld dword [esp + 0x20], ebx, 4
inc eax
test esi, esi
mov ebx, edi
jne 0x100681f0
cmp dword [esp + 8], 0
je 0x10068288
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov eax, dword [0x14287000]
xor edi, 0x5d
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], esi
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x40], ebx
push 4
push 8
push 0x14286800
push ecx
call dword [eax + 0xc]
add esp, 0x10
cmp byte [esp + 0x44], 0
je 0x100682bf
lea ecx, [esp + 0x3c]
call fcn.10004080
xor eax, eax
jmp 0x100682c8
mov eax, dword [esp + 0x10]
xor ebx, ebx
or eax, dword [esp + 0x14]
je 0x100682e9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp]
xor edx, edx
mov edi, dword [ebp + 0x10]
shl edx, 4
mov dword [esi + 8], 3
mov edx, dword [edi + edx + 8]
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ecx
mov dword [esi], ebx
jmp 0x100682e1
mov eax, dword [esp + 0x48]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov ecx, dword [esp]
movaps xmm0, xmmword [esp + 0x20]
mov edx, 1
movlps qword [ecx + 4], xmm0
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], eax
mov dword [ecx], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea edx, [esp + 4]
lea ecx, [esp + 8]
add esi, dword [eax + 0x10]
adc edi, dword [eax + 0x14]
push 4
push 0x14284ee8
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push esi
call fcn.10064ef0
add esp, 0x18
xor ebx, ebx
lea edx, [0x14284b99]
lea esi, [0x14284b9a]
mov eax, 0xfffffff9
mov dword [esp + 0x20], 0
movzx ecx, byte [edx]
mov edx, esi
mov ch, cl
add ch, 0xd0
cmp ch, 0xa
jb 0x10068351
or cl, 0x20
mov ch, cl
add ch, 0x9f
cmp ch, 5
ja 0x100683b3
add cl, 0xa9
mov ch, cl
mov esi, ebx
movzx edi, ch
shl esi, 4
or edi, esi
lea esi, [edx + 1]
test eax, eax
cmove esi, edx
je 0x10068372
shld dword [esp + 0x20], ebx, 4
inc eax
test edx, edx
mov ebx, edi
jne 0x10068330
cmp dword [esp + 8], 0
jne 0x1006823d
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
je 0x1006839e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp]
mov edx, 1
xor ebx, ebx
jmp 0x100682a1
mov eax, dword [esp]
mov dword [eax + 8], 6
mov dword [eax], 0
jmp 0x100682e1
mov ecx, 0x142851ac
mov edx, 0xe
push 0x1427ed4c
call fcn.100053c0
add esp, 4
ud2