Function at 0x6be850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd8
call fcn.006f2580
mov eax, dword [0x8e6704]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xd0], eax
mov eax, edx
shl eax, 7
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xcc], edx
movups xmm0, xmmword [eax + esi - 0x40]
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [eax + esi - 0x30]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [eax + esi - 0x20]
movups xmmword [ebp - 0x64], xmm0
movups xmm0, xmmword [eax + esi - 0x10]
mov eax, edx
shld ecx, eax, 1
movups xmmword [ebp - 0x54], xmm0
add eax, eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd8], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0xbc], xmm0
test ecx, ecx
jb 0x6bed49
ja 0x6be8dd
test eax, eax
je 0x6bed49
mov eax, dword [ebp - 0xb8]
push edi
mov edi, dword [ebp - 0xbc]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edi
push ebx
nop word [eax + eax]
xorps xmm0, xmm0
movlpd qword [ebp - 0xbc], xmm0
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
nop word [eax + eax]
mov eax, dword [esi]
add esi, 4
xor dword [ebp + ecx*4 - 0x84], eax
add ecx, 1
adc edx, 0
jne 0x6be939
cmp ecx, 0x10
jb 0x6be920
movups xmm0, xmmword [ebp - 0x84]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc0], 4
movups xmmword [ebp - 0x44], xmm0
movups xmm0, xmmword [ebp - 0x74]
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [ebp - 0x1c]
movups xmm0, xmmword [ebp - 0x54]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x3c]
movups xmmword [ebp - 0x14], xmm0
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0x9c], eax
add eax, edi
mov edi, dword [ebp - 0xb4]
rol eax, 7
xor dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
add eax, dword [ebp - 0x9c]
rol eax, 9
xor dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
add eax, dword [ebp - 0x94]
rol eax, 0xd
xor edi, eax
mov eax, dword [ebp - 0x98]
add eax, edi
mov dword [ebp - 0xb4], edi
ror eax, 0xe
xor dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0xa0]
rol eax, 7
xor dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
add eax, dword [ebp - 0xa0]
rol eax, 9
xor ebx, eax
mov edi, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa4]
add eax, ebx
rol eax, 0xd
xor dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
add eax, ebx
ror eax, 0xe
xor dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x88]
add eax, edi
rol eax, 7
xor edx, eax
mov eax, dword [ebp - 0x88]
add eax, edx
rol eax, 9
xor dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
add eax, edx
rol eax, 0xd
xor edi, eax
mov eax, dword [ebp - 0x90]
add eax, edi
mov dword [ebp - 0xac], edi
mov edi, dword [ebp - 0xa8]
ror eax, 0xe
xor dword [ebp - 0x88], eax
lea eax, [esi + ecx]
rol eax, 7
xor edi, eax
mov dword [ebp - 0xa8], edi
lea eax, [edi + ecx]
mov edi, dword [ebp - 0xb0]
rol eax, 9
xor edi, eax
mov eax, dword [ebp - 0xa8]
add eax, edi
mov dword [ebp - 0xb0], edi
rol eax, 0xd
xor esi, eax
lea eax, [edi + esi]
ror eax, 0xe
xor ecx, eax
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0xa8]
rol eax, 7
xor dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x40], eax
add eax, dword [ebp - 0x9c]
rol eax, 9
xor dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x3c], eax
add eax, dword [ebp - 0x8c]
rol eax, 0xd
mov edi, dword [ebp - 0xa8]
xor edi, eax
mov eax, dword [ebp - 0x90]
add eax, edi
mov dword [ebp - 0xa8], edi
ror eax, 0xe
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x9c]
xor edi, eax
mov eax, dword [ebp - 0xa0]
add eax, dword [ebp - 0x94]
rol eax, 7
xor dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x2c], eax
add eax, dword [ebp - 0xa0]
rol eax, 9
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0xb0]
xor edi, eax
mov eax, dword [ebp - 0xac]
add eax, edi
mov dword [ebp - 0xb0], edi
rol eax, 0xd
xor dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x34], eax
add eax, edi
ror eax, 0xe
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0xa0]
xor edi, eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0xa4]
add eax, edi
rol eax, 7
xor esi, eax
mov eax, dword [ebp - 0x88]
add eax, esi
rol eax, 9
xor dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x24], eax
add eax, esi
rol eax, 0xd
xor edi, eax
mov eax, edi
mov dword [ebp - 0xa4], edi
mov edi, dword [ebp - 0xb4]
mov dword [ebp - 0x20], eax
add eax, dword [ebp - 0x98]
ror eax, 0xe
xor dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + edx]
rol eax, 7
xor edi, eax
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0x14], edi
lea eax, [ecx + edi]
rol eax, 9
xor ebx, eax
lea eax, [ebx + edi]
rol eax, 0xd
xor edx, eax
lea eax, [edx + ebx]
ror eax, 0xe
xor ecx, eax
sub dword [ebp - 0xc0], 1
mov eax, dword [ebp - 0x9c]
jne 0x6be9e4
mov edi, dword [ebp - 0xc4]
xor eax, eax
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0xb8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x84]
movups xmm1, xmmword [ebp + eax - 0x44]
paddd xmm1, xmm0
movups xmmword [ebp + eax - 0x84], xmm1
movups xmm0, xmmword [ebp + eax - 0x74]
movups xmm1, xmmword [ebp + eax - 0x34]
paddd xmm1, xmm0
movups xmmword [ebp + eax - 0x74], xmm1
add eax, 0x20
cmp eax, 0x40
jl 0x6bec90
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004029a0
mov ebx, dword [ebp - 0xc8]
mov edx, edi
movups xmm0, xmmword [ebp - 0x84]
and edx, 1
mov ecx, edi
imul edx, dword [ebp - 0xcc]
mov eax, ebx
shrd ecx, eax, 1
add esp, 8
shr eax, 1
add edx, ecx
shl edx, 6
add edx, dword [ebp - 0xd0]
add edi, 1
mov dword [ebp - 0xc4], edi
adc ebx, 0
mov dword [ebp - 0xc8], ebx
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebp - 0x74]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [edx + 0x30], xmm0
cmp ebx, dword [ebp - 0xd4]
jb 0x6be900
ja 0x6bed47
cmp edi, dword [ebp - 0xd8]
jb 0x6be900
pop ebx
pop edi
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.004029a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.006f384a
mov esp, ebp
pop ebp
ret