Function at 0x5944e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], edx
test edi, edi
jne 0x594525
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x594549
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_XTC_decryptor
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ecx + 8], 2
je 0x59456f
mov eax, dword [esi]
mov ecx, esi
push str.XTS_mode_is_only_possible_with_XTC_encryption.
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, edi
shr ebx, 4
cmp edi, 0x10
jae 0x59459b
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 ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x14
mov ecx, edx
call fcn.00402f80
mov dword [ebp - 0x40], eax
add eax, edi
mov dword [ebp - 0x60], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.004386f0
test al, al
jne 0x5945db
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_XTC_decrypt_output_buffer.
call dword [eax + 0x14]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
call fcn.00438be0
mov dword [ebp - 0x4c], eax
call fcn.0040de50
mov byte [ebp - 0x5c], al
mov eax, edi
and eax, 0xf
mov dword [ebp - 0x40], eax
cmp edi, 0x10
jbe 0x594606
test eax, eax
je 0x594606
mov al, 1
jmp 0x594608
xor al, al
test al, al
mov byte [ebp - 0x35], al
lea edi, [ebx - 1]
cmove edi, ebx
mov ebx, dword [ebp - 0x58]
test edi, edi
je 0x5946da
mov ecx, dword [ebp - 0x44]
lea eax, [ecx + 0x559]
add ecx, 0x558
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], ecx
movups xmm0, xmmword [ebx]
lea ecx, [ebp - 0x13]
mov edx, eax
mov esi, 4
movups xmmword [ebp - 0x14], xmm0
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 0x594644
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 - 0x54]
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 0x594682
movups xmm0, xmmword [ebp - 0x34]
mov esi, dword [ebp - 0x4c]
push dword [ebp - 0x3c]
push dword [ebp - 0x5c]
movups xmmword [esi], xmm0
call fcn.00593d00
mov eax, dword [ebp - 0x54]
add esi, 0x10
add esp, 8
mov dword [ebp - 0x4c], esi
add ebx, 0x10
sub edi, 1
jne 0x594633
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x44]
jmp 0x5946e6
mov esi, dword [ebp - 0x44]
lea eax, [esi + 0x558]
mov dword [ebp - 0x3c], eax
cmp byte [ebp - 0x35], 0
je 0x59484e
movups xmm0, xmmword [ebx]
push eax
push dword [ebp - 0x5c]
movups xmmword [ebp - 0x14], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x24], xmm0
call fcn.00593d00
add esp, 8
lea ecx, [ebp - 0x13]
add esi, 0x559
mov edi, 4
mov edx, esi
nop word [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 edi, 1
jne 0x594720
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 edx, esi
mov edi, 4
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 edi, 1
jne 0x594760
mov eax, dword [ebp - 0x3c]
movups xmm1, xmmword [ebp - 0x24]
push dword [ebp - 0x40]
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [eax], xmm1
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x14], xmm0
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x70]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [ebp - 0x14]
add esp, 0x18
lea edx, [ebp - 0x13]
mov edi, esi
mov ecx, 4
movups xmmword [ebp - 0x14], xmm0
nop
mov al, byte [edi - 1]
lea edx, [edx + 4]
xor byte [edx - 5], al
lea edi, [edi + 4]
mov al, byte [edi - 4]
xor byte [edx - 4], al
mov al, byte [edi - 3]
xor byte [edx - 3], al
mov al, byte [edi - 2]
xor byte [edx - 2], al
sub ecx, 1
jne 0x5947d0
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 edx, 4
nop dword [eax + eax]
mov al, byte [esi - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx - 4], al
mov al, byte [esi - 3]
xor byte [ecx - 3], al
mov al, byte [esi - 2]
xor byte [ecx - 2], al
sub edx, 1
jne 0x594810
mov eax, dword [ebp - 0x4c]
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
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
call fcn.0043a9f0
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x14