Function at 0x4ba210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 0x14]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 4], ecx
shr edi, 2
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x4ba32b
cmp edi, 8
jb 0x4ba2ed
lea eax, [esi - 4]
mov dword [ebp - 4], ecx
lea eax, [eax + edi*4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x4ba265
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 8], eax
jae 0x4ba2f0
lea eax, [ebx - 4]
lea eax, [eax + edi*4]
cmp esi, eax
ja 0x4ba279
lea eax, [esi - 4]
lea eax, [eax + edi*4]
cmp eax, ebx
jae 0x4ba2ed
mov eax, edi
mov edx, ebx
and eax, 0xfffffff8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
sub edx, eax
mov dword [ebp - 0xc], edx
mov edx, esi
mov edi, dword [ebp - 0xc]
sub edx, eax
mov dword [ebp - 0x14], edx
mov edx, ebx
mov ebx, dword [ebp + 8]
sub edx, esi
mov dword [ebp - 0x10], edx
lea esi, [eax + 0x10]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
lea ebx, [ebx + 0x20]
movups xmm0, xmmword [esi - 0x10]
lea esi, [esi + 0x20]
movups xmm1, xmmword [ecx + ebx - 0x20]
mov ecx, dword [ebp - 0x14]
pxor xmm1, xmm0
movups xmmword [ebx - 0x20], xmm1
movups xmm1, xmmword [edi + esi - 0x20]
movups xmm0, xmmword [esi - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + esi - 0x20], xmm1
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp - 0x18]
jb 0x4ba2a5
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0xc]
jmp 0x4ba2f0
mov eax, dword [ebp + 0x10]
cmp ecx, edi
jae 0x4ba32b
mov edx, ebx
lea ecx, [eax + ecx*4]
mov ebx, dword [ebp + 0xc]
sub esi, eax
sub edx, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 4]
sub edi, eax
add eax, edi
mov dword [ebp - 4], eax
nop dword [eax]
mov eax, dword [ecx + edx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [ecx + esi - 4], eax
sub edi, 1
jne 0x4ba310
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
shl ecx, 2
sub edx, ecx
mov dword [ebp + 0x14], edx
je 0x4ba412
mov edi, dword [ebp + 0x10]
add ebx, ecx
add edi, ecx
mov dword [ebp + 0xc], ebx
add esi, ecx
mov dword [ebp + 0x10], edi
xor ecx, ecx
mov dword [ebp - 4], ecx
test edx, edx
je 0x4ba412
cmp edx, 0x20
jb 0x4ba3f3
lea eax, [edi - 1]
mov dword [ebp - 4], ecx
add eax, edx
cmp esi, eax
ja 0x4ba377
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x4ba3f3
lea eax, [ebx - 1]
add eax, edx
cmp esi, eax
ja 0x4ba389
lea eax, [esi - 1]
add eax, edx
cmp eax, ebx
jae 0x4ba3f3
mov eax, edx
mov edx, ebx
sub edx, edi
and eax, 0xffffffe0
mov dword [ebp - 0x1c], edx
mov edx, esi
sub edx, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov eax, edi
mov edi, dword [ebp - 0x18]
mov edx, ebx
mov ebx, dword [ebp - 0x1c]
sub edx, esi
mov dword [ebp - 0x14], edx
lea edx, [esi + 0x10]
movups xmm0, xmmword [eax]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
lea edx, [edx + 0x20]
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x20], xmm1
movups xmm1, xmmword [ecx + edx - 0x20]
mov ecx, dword [ebp - 4]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x20
mov dword [ebp - 4], ecx
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x4ba3b1
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp ecx, edx
jae 0x4ba412
add ecx, edi
sub ebx, edi
sub esi, edi
sub edx, dword [ebp - 4]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [esi + ecx - 1], al
sub edx, 1
jne 0x4ba400
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret