Function at 0x535980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x5359c8
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0x14
test edx, edx
jne 0x5359ee
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
push str.NULL_passed_to_XTS_encryptor
call eax
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ecx + 8], 2
je 0x535a16
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
push str.XTS_mode_is_only_possible_with_AES_encryption.
call eax
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0x14
push edi
mov edi, ebx
shr edi, 4
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x535a46
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
push str.XTS_mode_requires_at_least_1_full_block__16_bytes_or_more_
call eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
call fcn.004078c0
mov ecx, dword [ebp - 0x58]
mov esi, eax
lea eax, [esi + ebx]
mov dword [ebp - 0x64], eax
add eax, 0x20
push eax
call fcn.00420200
test al, al
jne 0x535a89
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Unable_to_allocate_XTC_encrypt_output_buffer.
call eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x58]
push esi
call fcn.0041b720
mov dword [ebp - 0x2c], eax
call fcn.00471cd0
mov byte [ebp - 0x60], al
cmp ebx, 0x10
jbe 0x535d6f
test bl, 0xf
je 0x535d6f
dec edi
mov byte [ebp - 0x25], 1
mov dword [ebp - 0x30], edi
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x2c], ebx
test edi, edi
je 0x535b97
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x43]
add ecx, 0x559
mov edi, 4
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
dec edi
jne 0x535af0
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x44]
push edx
call eax
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x53]
add ecx, 0x559
mov edi, 4
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
dec edi
jne 0x535b36
mov eax, dword [ebp - 0x54]
mov dword [ebx], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 4], ecx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x60]
mov dword [ebx + 8], edx
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x34]
add eax, 0x558
push eax
push ecx
call fcn.005358f0
add esp, 8
add esi, 0x10
add ebx, 0x10
dec dword [ebp - 0x30]
jne 0x535ac8
mov dword [ebp - 0x2c], ebx
cmp byte [ebp - 0x25], 0
je 0x535d4e
mov eax, dword [ebp + 0x10]
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov edi, dword [ebp - 0x34]
and eax, 0xf
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x44], edx
mov edx, dword [esi + 0xc]
add edi, 0x559
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x43]
mov ecx, edi
mov edx, 4
movzx ebx, byte [ecx - 1]
xor byte [eax - 1], bl
movzx ebx, byte [ecx]
xor byte [eax], bl
movzx ebx, byte [ecx + 1]
xor byte [eax + 1], bl
movzx ebx, byte [ecx + 2]
xor byte [eax + 2], bl
add ecx, 4
add eax, 4
dec edx
jne 0x535bd4
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x44]
push edx
call eax
lea eax, [ebp - 0x53]
mov ecx, edi
mov edx, 4
movzx ebx, byte [ecx - 1]
xor byte [eax - 1], bl
movzx ebx, byte [ecx]
xor byte [eax], bl
movzx ebx, byte [ecx + 1]
xor byte [eax + 1], bl
movzx ebx, byte [ecx + 2]
xor byte [eax + 2], bl
add ecx, 4
add eax, 4
dec edx
jne 0x535c13
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0x558
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x60]
push ecx
push edx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x68], eax
call fcn.005358f0
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x30]
push ebx
mov dword [ebp - 0x10], eax
add esi, 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
add esp, 0x20
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x43]
mov ecx, edi
mov esi, 4
lea ecx, [ecx]
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
dec esi
jne 0x535cc0
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x44]
push edx
call eax
lea eax, [ebp - 0x53]
mov ecx, edi
mov esi, 4
nop
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
dec esi
jne 0x535d00
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x2c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x50]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x48]
push ebx
lea ecx, [ebp - 0x24]
mov dword [eax + 0xc], edx
push ecx
add eax, 0x10
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x58]
push edx
call fcn.0041b930
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0x14
mov byte [ebp - 0x25], 0
jmp 0x535ab7