Function at 0x486560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp + 0xc]
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x20], edi
shr eax, 2
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4866ae
cmp eax, 0x10
jb 0x486668
shl eax, 2
mov dword [ebp - 4], ecx
lea ecx, [esi - 4]
add ecx, eax
mov dword [ebp - 0xc], eax
add eax, 0xfffffffc
mov dword [ebp - 8], ecx
add eax, ebx
mov ecx, 0
cmp esi, eax
ja 0x4865c5
cmp dword [ebp - 8], ebx
jae 0x486665
mov eax, dword [ebp - 0xc]
add eax, 0xfffffffc
add eax, edi
cmp esi, eax
ja 0x4865da
cmp dword [ebp - 8], edi
jae 0x486665
mov eax, dword [ebp - 0x10]
mov edx, edi
sub edx, ebx
and eax, 0xfffffff0
mov dword [ebp - 8], edx
mov edx, esi
sub edx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], edx
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov edx, edi
sub edx, esi
mov dword [ebp - 4], edx
lea edx, [esi + 0x20]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + ecx*4]
lea edx, [edx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [edx - 0x60], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [ebp - 0xc]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [ebx + eax - 0x40], xmm1
mov ebx, dword [ebp - 4]
movups xmm1, xmmword [ebx + edx - 0x40]
mov ebx, dword [ebp - 8]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [edi + ecx*4 + 0x30]
add ecx, 0x10
pxor xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ecx, dword [ebp - 0x14]
jb 0x486601
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jae 0x4866ae
mov edx, edi
lea ecx, [ebx + ecx*4]
sub edx, ebx
mov dword [ebp - 0x14], edx
mov edx, esi
sub edx, ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov edx, eax
sub edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 4], eax
nop
mov eax, dword [ecx + ebx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [ecx + edi - 4], eax
sub edx, 1
jne 0x486690
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
shl ecx, 2
sub edx, ecx
mov dword [ebp + 0xc], edx
je 0x4867b5
add ebx, ecx
add esi, ecx
add edi, ecx
mov dword [ebp + 8], ebx
xor ecx, ecx
test edx, edx
je 0x4867b5
cmp edx, 0x40
jb 0x48678e
lea eax, [ebx - 1]
add eax, edx
cmp esi, eax
ja 0x4866ee
lea eax, [esi - 1]
add eax, edx
cmp eax, ebx
jae 0x48678e
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x486704
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x48678e
mov eax, edx
add esi, 0x10
mov edx, dword [ebp - 0x18]
and eax, 0xffffffc0
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
nop
movups xmm0, xmmword [eax]
mov edx, dword [ebp - 0x14]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax + ebx - 0x40]
lea esi, [esi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + edx - 0x40], xmm1
mov edx, dword [ebp - 0xc]
movups xmm1, xmmword [esi + edx - 0x40]
mov edx, dword [ebp + 0xc]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [esi - 0x40], xmm1
movups xmm1, xmmword [edi + ecx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [esi - 0x30], xmm1
movups xmm1, xmmword [edi + ecx + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [esi - 0x20], xmm1
cmp ecx, dword [ebp - 8]
jb 0x486730
mov ebx, dword [ebp + 8]
cmp ecx, edx
jae 0x4867b5
mov esi, dword [ebp - 0x1c]
lea eax, [ecx + ebx]
mov ebx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x24]
sub esi, dword [ebp - 0x24]
sub edx, ecx
mov cl, byte [eax + ebx]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x4867a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret