Function at 0x60ef70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
push esi
mov esi, dword [ebp + 0x18]
test ecx, ecx
jne 0x60efb4
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
test ebx, ebx
jne 0x60efd8
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_XTC_decryptor
call dword [eax + 0x14]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
cmp dword [eax + 8], 2
je 0x60effe
mov eax, dword [esi]
mov ecx, esi
push str.XTS_mode_is_only_possible_with_XTC_encryption.
call dword [eax + 0x14]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
push edi
mov edi, ecx
shr edi, 4
test edi, edi
jne 0x60f029
mov eax, dword [esi]
mov ecx, esi
push str.XTS_mode_requires_at_least_1_full_block__16_bytes_or_more_
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov ecx, edx
call fcn.0046e290
mov ecx, dword [ebp + 0x10]
add ecx, 0x20
mov dword [ebp - 0x58], eax
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.004a2730
test al, al
jne 0x60f069
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_XTC_decrypt_output_buffer.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
call fcn.004a2c70
mov esi, eax
mov dword [ebp - 0x40], esi
call fcn.004777d0
mov ecx, dword [ebp + 0x10]
and ecx, 0xf
mov byte [ebp - 0x54], al
cmp dword [ebp + 0x10], 0x10
mov dword [ebp - 0x44], ecx
jbe 0x60f0a3
test ecx, ecx
je 0x60f0a3
mov byte [ebp - 0x35], 1
sub edi, 1
je 0x60f173
jmp 0x60f0ad
mov byte [ebp - 0x35], 0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x559
mov dword [ebp - 0x50], ecx
nop dword [eax]
movups xmm0, xmmword [ebx]
lea eax, [ebp - 0x13]
mov edx, ecx
mov esi, 4
movups xmmword [ebp - 0x14], xmm0
movzx ecx, byte [edx - 1]
lea eax, [eax + 4]
xor byte [eax - 5], cl
lea edx, [edx + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub esi, 1
jne 0x60f0d1
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x33]
mov esi, 4
mov al, byte [edx - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea edx, [edx + 4]
mov al, byte [edx - 4]
xor byte [ecx - 4], al
mov al, byte [edx - 3]
xor byte [ecx - 3], al
mov al, byte [edx - 2]
xor byte [ecx - 2], al
sub esi, 1
jne 0x60f113
mov eax, dword [ebp - 0x3c]
movups xmm0, xmmword [ebp - 0x34]
mov esi, dword [ebp - 0x40]
add eax, 0x558
push eax
push dword [ebp - 0x54]
movups xmmword [esi], xmm0
call fcn.0060e7a0
mov ecx, dword [ebp - 0x50]
add esi, 0x10
add esp, 8
mov dword [ebp - 0x40], esi
add ebx, 0x10
sub edi, 1
jne 0x60f0c0
cmp byte [ebp - 0x35], 0
je 0x60f2e0
movups xmm0, xmmword [ebx]
mov edi, dword [ebp - 0x3c]
lea eax, [edi + 0x558]
movups xmmword [ebp - 0x14], xmm0
push eax
movups xmm0, xmmword [eax]
push dword [ebp - 0x54]
movups xmmword [ebp - 0x24], xmm0
call fcn.0060e7a0
add esp, 8
lea ecx, [ebp - 0x13]
lea edx, [edi + 0x559]
mov esi, 4
mov al, byte [edx - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea edx, [edx + 4]
mov al, byte [edx - 4]
xor byte [ecx - 4], al
mov al, byte [edx - 3]
xor byte [ecx - 3], al
mov al, byte [edx - 2]
xor byte [ecx - 2], al
sub esi, 1
jne 0x60f1a4
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x33]
mov esi, 4
lea edx, [edi + 0x559]
mov al, byte [edx - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea edx, [edx + 4]
mov al, byte [edx - 4]
xor byte [ecx - 4], al
mov al, byte [edx - 3]
xor byte [ecx - 3], al
mov al, byte [edx - 2]
xor byte [ecx - 2], al
sub esi, 1
jne 0x60f1e5
push dword [ebp - 0x44]
movups xmm0, xmmword [ebp - 0x34]
lea eax, [ebx + 0x10]
movups xmm1, xmmword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
movups xmmword [ebp - 0x68], xmm0
movups xmmword [edi + 0x558], xmm1
movups xmmword [ebp - 0x14], xmm0
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x68]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [ebp - 0x14]
lea esi, [edi + 0x559]
add esp, 0x18
lea edx, [ebp - 0x13]
mov edi, 4
movups xmmword [ebp - 0x14], xmm0
nop dword [eax]
mov al, byte [esi - 1]
lea edx, [edx + 4]
xor byte [edx - 5], al
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [edx - 4], al
mov al, byte [esi - 3]
xor byte [edx - 3], al
mov al, byte [esi - 2]
xor byte [edx - 2], al
sub edi, 1
jne 0x60f260
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x33]
add edx, 0x559
lea esi, [edi + 4]
mov al, byte [edx - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea edx, [edx + 4]
mov al, byte [edx - 4]
xor byte [ecx - 4], al
mov al, byte [edx - 3]
xor byte [ecx - 3], al
mov al, byte [edx - 2]
xor byte [ecx - 2], al
sub esi, 1
jne 0x60f2a2
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x34]
push ebx
push ecx
movups xmmword [eax], xmm0
add eax, 0x10
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x58]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.004a4be0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14