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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.006f2580
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, edx
movlpd qword [ebp - 0x10], xmm0
shld eax, ebx, 5
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
shl ebx, 5
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 0x24]
test eax, eax
jb 0x6bedf2
ja 0x6bedaf
test ebx, ebx
je 0x6bedf2
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov dword [edi], eax
movzx eax, byte [ecx - 3]
shl eax, 8
or dword [edi], eax
movzx eax, byte [ecx - 2]
shl eax, 0x10
or dword [edi], eax
movzx eax, byte [ecx - 1]
shl eax, 0x18
or dword [edi], eax
add edx, 1
adc esi, 0
add edi, 4
cmp esi, dword [ebp - 4]
jb 0x6bedb5
ja 0x6bedec
cmp edx, ebx
jb 0x6bedb5
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov eax, 1
cmp ecx, dword [ebp + 0x18]
ja 0x6bee43
jb 0x6bee05
cmp eax, dword [ebp + 0x14]
jae 0x6bee43
mov ecx, edx
mov esi, eax
shl ecx, 7
xor ebx, ebx
mov dword [ebp - 0x18], ecx
push dword [ebp + 0x10]
mov eax, edi
push edx
sub eax, ecx
push eax
push edi
call fcn.006be850
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov edx, dword [ebp + 0xc]
add esi, 1
adc ebx, 0
add edi, ecx
cmp ebx, dword [ebp + 0x18]
jb 0x6bee11
ja 0x6bee3d
cmp esi, dword [ebp + 0x14]
jb 0x6bee11
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
dec eax
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
imul eax, ecx
push ecx
shl eax, 7
add eax, dword [ebp + 0x24]
push eax
push edi
call fcn.006be850
mov edx, dword [ebp + 0x18]
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
test edx, edx
jb 0x6bef3d
mov ecx, dword [ebp + 0x14]
ja 0x6bee84
test ecx, ecx
je 0x6bef3d
mov eax, dword [ebp + 0xc]
add edi, 0xffffffc0
mov esi, dword [ebp - 4]
shl eax, 7
add edi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], eax
push edx
push ecx
push 0
push dword [edi]
call fcn.006f3290
mov edi, eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
imul edi, eax
movlpd qword [ebp - 0x20], xmm0
shl edi, 7
add edi, dword [ebp + 0x24]
test esi, esi
jb 0x6beefa
ja 0x6beecc
test ebx, ebx
je 0x6beefa
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x1c]
lea edi, [edi + 4]
mov ebx, dword [ebp + 0x20]
mov eax, dword [eax + ecx*4]
xor eax, dword [edi - 4]
mov dword [ebx + ecx*4], eax
add ecx, 1
mov ebx, dword [ebp - 8]
adc edx, 0
cmp edx, esi
jb 0x6beed2
ja 0x6beef7
cmp ecx, ebx
jb 0x6beed2
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
push eax
push dword [ebp + 0x20]
push edi
call fcn.006be850
mov eax, dword [ebp - 0xc]
add esp, 0x10
mov ecx, dword [ebp - 0x14]
add eax, 1
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp - 0x18]
adc ecx, 0
mov dword [ebp - 0x14], ecx
cmp ecx, edx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
jb 0x6beea1
ja 0x6bef3a
cmp eax, ecx
jb 0x6beea1
mov esi, dword [ebp + 8]
cmp dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
jb 0x6bef8a
ja 0x6bef51
test ebx, ebx
je 0x6bef8a
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
lea esi, [esi + 4]
mov ecx, dword [eax + edx*4]
mov eax, ecx
shr eax, 8
mov byte [esi - 4], cl
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, dword [ebp - 4]
jb 0x6bef57
ja 0x6bef8a
cmp edx, ebx
jb 0x6bef57
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret