Function at 0x536340
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]
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x48], ecx
test ebx, ebx
jne 0x53638a
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 eax, eax
jne 0x5363ae
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.NULL_passed_to_XTC_decryptor
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 [edx + 8], 2
je 0x5363d4
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.XTS_mode_is_only_possible_with_XTC_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
mov eax, ebx
shr eax, 4
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x536400
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.XTS_mode_requires_at_least_1_full_block__16_bytes_or_more_
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 ecx, esi
call fcn.004078c0
mov edi, eax
lea eax, [edi + ebx]
mov dword [ebp - 0x68], eax
add eax, 0x20
push eax
mov ecx, esi
call fcn.00420200
test al, al
jne 0x536443
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Unable_to_allocate_XTC_decrypt_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
push edi
mov ecx, esi
call fcn.0041b720
mov esi, eax
call fcn.00471cd0
mov byte [ebp - 0x2c], al
cmp ebx, 0x10
jbe 0x536762
test bl, 0xf
je 0x536762
dec dword [ebp - 0x30]
mov byte [ebp - 0x25], 1
cmp dword [ebp - 0x30], 0
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x48], esi
je 0x53655a
mov edi, edi
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [ebp - 0x58], ecx
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x57]
add ecx, 0x559
mov edx, 4
jmp 0x5364b0
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 0x5364b0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
push eax
call edx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x43]
add ecx, 0x559
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 0x5364f6
mov eax, dword [ebp - 0x44]
mov dword [esi], eax
mov ecx, dword [ebp - 0x40]
mov dword [esi + 4], ecx
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 8], edx
mov eax, dword [ebp - 0x38]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x34]
add eax, 0x558
push eax
push ecx
call fcn.005358f0
add esp, 8
add edi, 0x10
add esi, 0x10
dec dword [ebp - 0x30]
jne 0x536480
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x48], esi
cmp byte [ebp - 0x25], 0
je 0x536741
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [edi + 4]
and ebx, 0xf
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x34]
lea esi, [ebx + 0x558]
mov dword [ebp - 0x50], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x58], edx
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [esi]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], edx
mov edx, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
push esi
push ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call fcn.005358f0
add esp, 8
add ebx, 0x559
lea eax, [ebp - 0x57]
mov ecx, ebx
mov dword [ebp - 0x2c], 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 dword [ebp - 0x2c]
jne 0x5365c0
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x58]
push edx
call eax
lea eax, [ebp - 0x43]
mov ecx, ebx
mov dword [ebp - 0x2c], 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 dword [ebp - 0x2c]
jne 0x536603
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x70], edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x14]
mov dword [esi], edx
mov edx, dword [ebp - 0x10]
mov dword [esi + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [esi + 8], edx
mov edx, dword [ebp - 8]
mov dword [esi + 0xc], edx
mov esi, dword [ebp - 0x30]
push esi
add edi, 0x10
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x14]
push edi
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call sub.MSVCR100.dll_memcpy
push esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
add esp, 0x18
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x57]
mov ecx, ebx
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 0x5366b0
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x58]
push edx
call eax
lea eax, [ebp - 0x43]
mov ecx, ebx
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 0x5366f0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov dword [eax], ecx
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0xc], edx
push ecx
lea edx, [ebp - 0x24]
push edx
add eax, 0x10
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
push eax
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 0x53646e