Function at 0x100a0680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ecx]
dec esi
mov dword [ebp - 0x2c], eax
sar esi, 4
inc esi
mov dword [ebp - 0x30], ebx
mov eax, esi
mov dword [ebp - 0xc], 0x2010100
push edi
shl eax, 5
mov dword [ebp - 8], 0x3020201
mov dword [ebp - 0x14], esi
call fcn.10068530
mov eax, esi
mov dword [ebp - 0x1c], esp
shl eax, 4
mov edi, esp
add eax, edi
mov edx, 2
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x38], edx
movzx eax, word [ebx + ecx*2]
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x100a0747
lea ebx, [ebx + ecx*2]
mov ecx, dword [ebp - 0x14]
add ebx, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ebx
nop word [eax + eax]
movzx ecx, word [ebx]
mov edi, 0x10
mov ebx, dword [ebp - 0x1c]
shl ecx, 0x10
add eax, ecx
mov edx, eax
mov cl, al
and edx, 7
shr eax, 1
and cl, 0xfe
shl cl, 6
or cl, byte [ebp + edx - 0xc]
mov byte [esi + ebx], cl
inc esi
sub edi, 1
jne 0x100a0710
mov ebx, dword [ebp - 0x18]
add ebx, 2
sub dword [ebp - 0x10], 1
mov dword [ebp - 0x18], ebx
jne 0x100a0700
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x14]
mov eax, edi
mov edi, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jne 0x100a06e0
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x40], eax
cmp eax, 2
jle 0x100a0895
mov edx, dword [ebp - 0x14]
lea eax, [ebx + ecx*2]
sub ecx, edx
mov dword [ebp - 0x2c], eax
lea esi, [edx + edx]
lea edx, [ebx + ecx*2]
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x14], 0
movzx ebx, word [eax]
jle 0x100a0870
mov esi, dword [ebp - 0x14]
sub ecx, edi
add eax, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], esi
movzx eax, word [eax]
xor esi, esi
shl eax, 0x10
add ebx, eax
mov eax, dword [ebp - 0x24]
mov edi, eax
add eax, 0x10
mov dword [ebp - 0x24], eax
nop word [eax + eax]
mov eax, ebx
and eax, 7
movsx eax, byte [ebp + eax - 0xc]
mov dword [ebp - 0x18], eax
mov al, byte [ecx + edi]
movzx ecx, byte [edi]
test al, al
movzx eax, al
jns 0x100a0811
add eax, dword [ebp - 0x18]
add ecx, eax
and cl, 0x7f
cmp cl, 2
ja 0x100a0836
cmp esi, 0xf
jge 0x100a080a
movzx ecx, word [edx]
lea eax, [esi + 1]
btc ecx, eax
mov word [edx], cx
jmp 0x100a0836
xor word [edx + 2], 1
jmp 0x100a0836
add eax, dword [ebp - 0x18]
add ecx, eax
and ecx, 0x7f
cmp cl, 6
jb 0x100a0836
cmp esi, 0xf
jge 0x100a0831
movzx ecx, word [edx]
lea eax, [esi + 1]
bts ecx, eax
mov word [edx], cx
jmp 0x100a0836
or word [edx + 2], 1
mov ecx, dword [ebp - 0x10]
mov al, bl
and al, 0xfe
shr ebx, 1
shl al, 6
inc esi
or al, byte [ebp - 0x18]
mov byte [edi], al
inc edi
cmp esi, 0x10
jl 0x100a07d0
mov eax, dword [ebp - 0x20]
add edx, 2
add eax, 2
sub dword [ebp - 0x34], 1
mov dword [ebp - 0x20], eax
jne 0x100a07b2
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
mov ecx, edi
mov edi, dword [ebp - 0x28]
inc ebx
add eax, esi
mov dword [ebp - 0x1c], edi
add edx, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
cmp ebx, dword [ebp - 0x40]
jl 0x100a0791
lea esp, [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029ae5
mov esp, ebp
pop ebp
ret 4