Function at 0x64f1a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0xa470b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], eax
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0x20
jb 0x64f1da
lea eax, [esi - 0x20]
cmp edi, eax
jbe 0x64f1de
cmp esi, edi
jae 0x64f23b
mov ebx, dword [ebp + 0x10]
mov eax, edx
mov dword [ebp - 0x18], eax
cmp ebx, 0x10
jb 0x64f231
mov eax, ebx
shr eax, 4
mov dword [ebp - 0x24], eax
push ecx
push edi
push esi
call dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
sub ebx, 0x10
mov eax, dword [ecx]
xor dword [edi], eax
mov eax, dword [ecx + 4]
xor dword [edi + 4], eax
mov eax, dword [ecx + 8]
xor dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
xor dword [edi + 0xc], eax
mov eax, esi
mov ecx, dword [ebp - 0x2c]
add esi, 0x10
add edi, 0x10
mov dword [ebp - 0x18], eax
dec dword [ebp - 0x24]
jne 0x64f1f3
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
movdqu xmm0, xmmword [eax]
movdqu xmmword [edx], xmm0
jmp 0x64f2ab
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x10
jb 0x64f2ab
mov eax, ebx
shr eax, 4
mov dword [ebp - 0x18], eax
jmp 0x64f250
push ecx
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [esi]
sub ebx, 0x10
mov eax, dword [edx]
xor eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [edx + 4]
xor eax, dword [ebp - 0x10]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
xor eax, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
xor eax, dword [ebp - 8]
mov dword [edx + 8], ecx
mov ecx, dword [esi + 0xc]
add esi, 0x10
mov dword [edi + 0xc], eax
add edi, 0x10
dec dword [ebp - 0x18]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x2c]
jne 0x64f250
mov dword [ebp - 0x20], esi
test ebx, ebx
je 0x64f40f
lea ecx, [ebp - 0x14]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x34], eax
mov eax, 1
sub eax, ecx
mov dword [ebp - 0x38], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x40], eax
mov eax, 3
sub eax, ecx
mov dword [ebp - 0x3c], eax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x24], eax
lea eax, [edi + 2]
mov dword [ebp - 0x28], eax
mov eax, ecx
sub edi, eax
mov dword [ebp - 0x18], edi
nop
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x30]
add esp, 0xc
xor eax, eax
cmp eax, ebx
jae 0x64f3be
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x14]
mov esi, dword [ebp - 0x34]
add edi, eax
mov dl, byte [edi + ecx]
mov cl, byte [edi]
xor cl, byte [edi + esi]
mov esi, dword [ebp - 0x18]
mov byte [edi + esi], cl
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x20]
mov byte [edi + ecx], dl
mov ecx, dword [ebp - 0x38]
add ecx, edi
cmp ecx, ebx
jae 0x64f3bd
mov dl, byte [esi + eax + 1]
mov esi, dword [ebp - 0x1c]
mov cl, byte [ebp + eax - 0x13]
xor cl, byte [esi + eax + 1]
mov esi, dword [ebp - 0x28]
mov byte [esi + eax - 1], cl
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov byte [ecx + eax + 1], dl
mov ecx, dword [ebp - 0x40]
add ecx, edi
cmp ecx, ebx
jae 0x64f3b8
mov dl, byte [esi + eax + 2]
mov esi, dword [ebp - 0x1c]
mov cl, byte [ebp + eax - 0x12]
xor cl, byte [esi + eax + 2]
mov esi, dword [ebp - 0x28]
mov byte [esi + eax], cl
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov byte [ecx + eax + 2], dl
mov ecx, dword [ebp - 0x3c]
add ecx, edi
cmp ecx, ebx
jae 0x64f3b3
mov dl, byte [esi + eax + 3]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
mov cl, byte [ebp + eax - 0x11]
xor cl, byte [edi + eax + 3]
mov byte [esi + eax + 1], cl
mov esi, dword [ebp - 0x20]
mov byte [edi + eax + 3], dl
add eax, 4
cmp eax, 0x10
jb 0x64f300
jmp 0x64f3be
add eax, 3
jmp 0x64f3be
add eax, 2
jmp 0x64f3be
inc eax
cmp ebx, 0x10
jbe 0x64f3ef
add dword [ebp - 0x24], 0x10
add esi, 0x10
add dword [ebp - 0x18], 0x10
add dword [ebp - 0x28], 0x10
mov dword [ebp - 0x20], esi
sub ebx, 0x10
jne 0x64f2f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00654228
mov esp, ebp
pop ebp
ret
cmp eax, 0x10
jae 0x64f40f
mov ecx, dword [ebp - 0x1c]
sub esi, ecx
lea edx, [ecx + eax]
mov ecx, 0x10
sub ecx, eax
mov al, byte [esi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
dec ecx
jne 0x64f403
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00654228
mov esp, ebp
pop ebp
ret