Function at 0x60f310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
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 - 0x44], eax
mov dword [ebp - 0x4c], edx
push esi
mov esi, dword [ebp + 0x18]
test ecx, ecx
jne 0x60f354
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 0x60f378
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_XTS_encryptor
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 0x60f39e
mov eax, dword [esi]
mov ecx, esi
push str.XTS_mode_is_only_possible_with_AES_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 0x60f3c9
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 0x60f409
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_XTC_encrypt_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 byte [ebp - 0x54], al
mov eax, dword [ebp + 0x10]
and eax, 0xf
cmp dword [ebp + 0x10], 0x10
mov dword [ebp - 0x48], eax
jbe 0x60f443
test eax, eax
je 0x60f443
mov byte [ebp - 0x35], 1
sub edi, 1
je 0x60f510
jmp 0x60f44d
mov byte [ebp - 0x35], 0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
add eax, 0x559
mov dword [ebp - 0x50], eax
movups xmm0, xmmword [ebx]
lea ecx, [ebp - 0x13]
mov edx, eax
mov esi, 4
movups xmmword [ebp - 0x14], xmm0
nop dword [eax]
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 0x60f470
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x33]
mov esi, 4
nop
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 0x60f4b0
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 eax, dword [ebp - 0x50]
add esi, 0x10
add esp, 8
mov dword [ebp - 0x40], esi
add ebx, 0x10
sub edi, 1
jne 0x60f458
cmp byte [ebp - 0x35], 0
je 0x60f672
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x13]
movups xmm0, xmmword [ebx]
mov esi, 4
movups xmmword [ebp - 0x14], xmm0
lea edx, [edi + 0x559]
nop dword [eax + eax]
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 0x60f530
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
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 0x60f571
movups xmm0, xmmword [ebp - 0x34]
lea eax, [edi + 0x558]
push eax
push dword [ebp - 0x54]
movups xmmword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x68], xmm0
call fcn.0060e7a0
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x68]
push esi
push eax
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [ebp - 0x78]
push esi
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
movups xmmword [ebp - 0x14], xmm0
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [ebp - 0x14]
lea esi, [edi + 0x559]
add esp, 0x20
lea edx, [ebp - 0x13]
mov edi, 4
movups xmmword [ebp - 0x14], xmm0
nop
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 0x60f5f0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
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 0x60f632
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x34]
push dword [ebp - 0x48]
movups xmmword [eax], xmm0
push ecx
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