Function at 0x64c940
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 edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [edx + 0x60]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xcc], edx
mov esi, dword [edi + 0xc8]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xc8], esi
lea eax, [esi + 0x10]
cmp ecx, eax
jne 0x64ce1b
lea eax, [ebp - 0xa4]
mov dword [edi + 0x20], 0
neg eax
lea ecx, [ebp - 0xa4]
and eax, 0xf
add ecx, eax
mov dword [ebp - 0xd0], ecx
lea eax, [ecx + 0x40]
mov dword [ebp - 0xb0], eax
lea eax, [ecx + 0x30]
mov dword [ebp - 0xbc], eax
lea eax, [edi + 0x20]
push eax
push edi
cmp esi, 0x40
ja 0x64cc3b
push 0x80
push 0x7c3b68
push ecx
mov dword [ebp - 0xd4], 0x80
call fcn.0040b9c0
push dword [ebp - 0xd0]
lea eax, [edi + 0xd0]
push eax
call fcn.00689700
mov eax, dword [ebp - 0xbc]
xor ebx, ebx
movups xmm0, xmmword [edi + 0x94]
mov dword [edi + 0x70], 0
add esp, 0x1c
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0xcc]
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], esi
mov dword [edi + 0xb4], 0
cmp dword [eax + 8], ebx
je 0x64ca9e
test esi, esi
je 0x64cc05
mov eax, dword [ebp - 0xb0]
mov edx, eax
mov edi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xb8]
sub edi, eax
sub ecx, eax
mov dword [ebp - 0xac], esi
mov ebx, ecx
nop dword [eax]
movzx ecx, byte [edi + edx]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor ecx, eax
mov byte [edx - 1], cl
mov byte [ebx + edx - 1], cl
sub esi, 1
jne 0x64ca80
jmp 0x64cbf9
mov dword [ebp - 0xac], ebx
test esi, esi
je 0x64cc05
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb8]
cmp esi, 0x20
jb 0x64cbaa
lea eax, [edx - 1]
xor ebx, ebx
add eax, esi
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xc0], eax
lea eax, [ecx - 1]
add eax, esi
cmp edx, eax
ja 0x64caea
lea eax, [edx - 1]
add eax, esi
cmp eax, ecx
jae 0x64cbaa
mov eax, dword [ebp - 0xa8]
lea ebx, [eax - 1]
add ebx, esi
mov dword [ebp - 0xc4], ebx
cmp edx, ebx
mov ebx, 0
ja 0x64cb10
cmp dword [ebp - 0xc0], eax
jae 0x64cbb0
cmp ecx, dword [ebp - 0xc4]
ja 0x64cb29
lea eax, [ecx - 1]
add eax, esi
cmp eax, dword [ebp - 0xa8]
jae 0x64cbaa
mov eax, esi
lea edi, [ecx + 0x10]
and eax, 0xffffffe0
mov dword [ebp - 0xac], eax
mov eax, ecx
sub eax, edx
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xa8]
sub eax, ecx
mov ecx, edx
mov esi, eax
nop dword [eax]
mov eax, dword [ebp - 0xc0]
lea edi, [edi + 0x20]
movups xmm0, xmmword [ecx]
add eax, ecx
add ebx, 0x20
movups xmm1, xmmword [eax + esi]
pxor xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm2, xmmword [esi + edi - 0x20]
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm2
add ecx, 0x20
movups xmmword [edi - 0x20], xmm1
cmp ebx, dword [ebp - 0xac]
jb 0x64cb50
mov esi, dword [ebp - 0xc8]
mov edi, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xac], ebx
mov eax, dword [ebp - 0xa8]
cmp ebx, esi
jae 0x64cc05
sub eax, ecx
add ebx, edx
mov dword [ebp - 0xc8], eax
sub ecx, edx
mov eax, dword [ebp - 0xac]
sub esi, eax
mov edi, dword [ebp - 0xc8]
add eax, esi
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xac], eax
nop dword [eax]
mov al, byte [ebx]
add ecx, ebx
mov dl, byte [edi + ecx]
xor al, dl
mov byte [ebx], dl
inc ebx
mov byte [ecx], al
mov ecx, dword [ebp - 0xc4]
sub esi, 1
jne 0x64cbe0
mov ebx, dword [ebp - 0xac]
mov edi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
mov esi, ebx
neg esi
add eax, ebx
and esi, 0xf
push esi
push 0
push eax
call fcn.006f4b50
mov ecx, dword [ebp - 0xb0]
lea eax, [esi + ebx]
add esp, 0xc
add ecx, eax
add eax, 0x10
mov esi, ebx
mov dword [ebp - 0xb4], eax
jmp 0x64cd3e
push 0x40
push 0x7c3b68
push ecx
mov dword [ebp - 0xd4], 0x40
call fcn.0040b9c0
push dword [ebp - 0xd0]
lea eax, [edi + 0xd0]
push eax
call fcn.00689700
push 0x10
lea eax, [edi + 0x94]
mov dword [edi + 0x20], 1
push eax
lea eax, [edi + 0xd0]
mov dword [edi + 0x70], 0
push eax
call fcn.006897e0
mov eax, dword [ebp - 0xb0]
add esp, 0x28
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xcc]
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], esi
mov dword [edi + 0xb4], 0
cmp dword [eax + 8], 0
mov dword [ebp - 0xb4], 0
je 0x64ccf2
lea eax, [edi + 0x20]
push eax
push edi
push esi
push dword [ebp - 0xa8]
push ebx
call fcn.0040b9c0
push esi
lea eax, [edi + 0xd0]
push ebx
push eax
call fcn.006897e0
jmp 0x64cd17
push esi
push dword [ebp - 0xa8]
lea eax, [edi + 0xd0]
push eax
call fcn.006897e0
lea eax, [edi + 0x20]
push eax
push edi
push esi
push dword [ebp - 0xa8]
push ebx
call fcn.0040b9c0
add esp, 0x20
mov eax, esi
neg eax
and eax, 0xf
push eax
lea eax, [edi + 0xd0]
push 0x7c3b68
push eax
call fcn.006897e0
mov ecx, dword [ebp - 0xb0]
add esp, 0xc
mov ebx, esi
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xa8]
add eax, 0x10
movups xmm0, xmmword [edi + 0xa8]
add edx, esi
mov esi, dword [ebp - 0xb8]
push eax
push dword [ebp - 0xbc]
add esi, ebx
mov dword [ebp - 0xc8], edx
lea ebx, [edi + 0xd0]
push ebx
movups xmmword [ecx], xmm0
call fcn.006897e0
push dword [ebp - 0xd4]
push dword [ebp - 0xd0]
call fcn.004029a0
mov eax, dword [ebp - 0xcc]
add esp, 0x14
cmp dword [eax + 8], 0
lea eax, [edi + 0x84]
jne 0x64cda6
mov eax, dword [ebp - 0xbc]
push eax
push ebx
call fcn.00689670
mov eax, dword [ebp - 0xcc]
add esp, 8
mov dword [edi + 0xc8], 0xffffffff
cmp dword [eax + 8], 0
je 0x64cde7
movups xmm0, xmmword [edi + 0x84]
movups xmmword [esi], xmm0
mov eax, dword [ebp - 0xd8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f384a
mov esp, ebp
pop ebp
ret
push 0x10
push dword [ebp - 0xc8]
push dword [ebp - 0xbc]
call fcn.00402a10
add esp, 0xc
test eax, eax
je 0x64cdd0
mov ecx, dword [ebp - 0xd8]
sub esi, ecx
add esi, 0x10
lea eax, [ecx - 0x10]
push eax
push 0
push esi
call fcn.006f4b50
add esp, 0xc
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f384a
mov esp, ebp
pop ebp
ret