Function at 0x594800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
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 - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], edx
test edi, edi
jne 0x594845
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x594869
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_XTS_encryptor
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ecx + 8], 2
je 0x59488f
mov eax, dword [esi]
mov ecx, esi
push str.XTS_mode_is_only_possible_with_AES_encryption.
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, edi
shr ebx, 4
cmp edi, 0x10
jae 0x5948bb
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.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, edx
call fcn.00402f10
mov dword [ebp - 0x40], eax
add eax, edi
mov dword [ebp - 0x5c], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00438680
test al, al
jne 0x5948fb
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_XTC_encrypt_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.005af5a8
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
call fcn.00438b70
mov dword [ebp - 0x48], eax
call fcn.0040ddf0
mov byte [ebp - 0x58], al
mov eax, edi
and eax, 0xf
mov dword [ebp - 0x40], eax
cmp edi, 0x10
jbe 0x594926
test eax, eax
je 0x594926
mov al, 1
jmp 0x594928
xor al, al
test al, al
mov byte [ebp - 0x35], al
lea edi, [ebx - 1]
cmove edi, ebx
mov ebx, dword [ebp - 0x54]
test edi, edi
je 0x5949f9
mov eax, dword [ebp - 0x3c]
add eax, 0x559
mov dword [ebp - 0x50], eax
nop dword [eax]
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 0x594961
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 0x5949a0
mov eax, dword [ebp - 0x3c]
movups xmm0, xmmword [ebp - 0x34]
mov esi, dword [ebp - 0x48]
add eax, 0x558
push eax
push dword [ebp - 0x58]
movups xmmword [esi], xmm0
call fcn.00593c90
mov eax, dword [ebp - 0x50]
add esi, 0x10
add esp, 8
mov dword [ebp - 0x48], esi
add ebx, 0x10
sub edi, 1
jne 0x594950
mov al, byte [ebp - 0x35]
mov esi, dword [ebp - 0x3c]
add esi, 0x559
test al, al
je 0x594b60
movups xmm0, xmmword [ebx]
lea ecx, [ebp - 0x13]
mov edx, esi
mov edi, 4
movups xmmword [ebp - 0x14], xmm0
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 edi, 1
jne 0x594a20
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 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 0x594a60
mov eax, dword [ebp - 0x3c]
movups xmm0, xmmword [ebp - 0x34]
add eax, 0x558
push eax
push dword [ebp - 0x58]
movups xmmword [ebp - 0x7c], xmm0
movups xmmword [ebp - 0x6c], xmm0
call fcn.00593c90
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [ebp - 0x7c]
push edi
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]
add esp, 0x20
lea edx, [ebp - 0x13]
mov edi, esi
mov ecx, 4
movups xmmword [ebp - 0x14], xmm0
nop dword [eax]
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 0x594ae0
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 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 0x594b20
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x34]
push dword [ebp - 0x40]
movups xmmword [eax], xmm0
push ecx
add eax, 0x10
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
call fcn.0043a980
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14