Function at 0x101066b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x1c
call fcn.101aa6d0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebx
mov ebx, edx
shld eax, ebx, 5
push ebp
push esi
mov esi, dword [esp + 0x2c]
shl ebx, 5
xorps xmm0, xmm0
push edi
mov edi, dword [esp + 0x4c]
movlpd qword [esp + 0x24], xmm0
mov ecx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
test eax, eax
jb 0x1010673e
ja 0x101066f4
test ebx, ebx
je 0x1010673e
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov esi, eax
mov edi, edi
movzx eax, byte [ecx]
mov dword [edi], eax
movzx eax, byte [ecx + 1]
shl eax, 8
or dword [edi], eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or dword [edi], eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or dword [edi], eax
add edx, 1
adc ebp, 0
add edi, 4
lea ecx, [ecx + 4]
cmp ebp, esi
jb 0x10106700
ja 0x10106736
cmp edx, ebx
jb 0x10106700
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
xor eax, eax
mov ebp, 1
cmp eax, dword [esp + 0x40]
ja 0x10106795
jb 0x10106753
cmp ebp, dword [esp + 0x3c]
jae 0x10106795
mov ebx, edx
shl ebx, 7
xor esi, esi
lea ebx, [ebx]
push dword [esp + 0x38]
mov eax, edi
push edx
sub eax, ebx
push eax
push edi
call fcn.10106140
mov edx, dword [esp + 0x44]
add esp, 0x10
add ebp, 1
adc esi, 0
add edi, ebx
cmp esi, dword [esp + 0x40]
jb 0x10106760
ja 0x1010678d
cmp ebp, dword [esp + 0x3c]
jb 0x10106760
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
push dword [esp + 0x38]
lea eax, [edi - 1]
imul eax, ebp
shl eax, 7
add eax, dword [esp + 0x50]
push ebp
push eax
push dword [esp + 0x50]
call fcn.10106140
mov ecx, dword [esp + 0x50]
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
test ecx, ecx
jb 0x101068ab
ja 0x101067db
test edi, edi
je 0x101068ab
mov esi, dword [esp + 0x44]
mov eax, ebp
mov ebp, dword [esp + 0x10]
shl eax, 7
lea edx, [esi - 0x40]
add edx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
push ecx
push edi
push 0
push dword [edx]
call fcn.101ad8a0
mov edi, eax
mov eax, dword [esp + 0x34]
imul edi, eax
shl edi, 7
add edi, dword [esp + 0x4c]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
test ebp, ebp
jb 0x1010685f
ja 0x1010682f
test ebx, ebx
je 0x1010685f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + ecx*4]
xor eax, dword [edi]
mov esi, dword [esp + 0x48]
add ecx, 1
mov dword [esi + ecx*4 - 4], eax
mov esi, dword [esp + 0x44]
adc edx, 0
lea edi, [edi + 4]
cmp edx, ebp
jb 0x10106837
ja 0x1010685b
cmp ecx, ebx
jb 0x10106837
mov eax, dword [esp + 0x34]
push dword [esp + 0x38]
push eax
push dword [esp + 0x50]
push esi
call fcn.10106140
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
add esp, 0x10
add eax, 1
adc edx, 0
mov dword [esp + 0x1c], edx
cmp edx, ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jb 0x10106801
ja 0x101068a5
cmp eax, edi
jb 0x10106801
mov esi, dword [esp + 0x30]
jmp 0x101068af
mov ebp, dword [esp + 0x10]
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
test ebp, ebp
jb 0x10106903
ja 0x101068c2
test ebx, ebx
je 0x10106903
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ebx, [ebx]
mov eax, dword [esp + 0x44]
lea esi, [esi + 4]
mov ecx, dword [eax + edx*4]
mov byte [esi - 4], cl
mov eax, ecx
shr eax, 8
mov byte [esi - 3], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
add edx, 1
mov byte [esi - 2], al
adc edi, 0
mov byte [esi - 1], cl
cmp edi, ebp
jb 0x101068d0
ja 0x10106903
cmp edx, ebx
jb 0x101068d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret