Function at 0x5ae560
Capabilities:
Encode data using xor
Encrypt data using camellia

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x78
call fcn.006499b0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
shl ecx, 4
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx*4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
shl edx, 0x18
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 1]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 2]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 3]
xor edx, ecx
mov eax, dword [ebp - 0x10]
xor edx, dword [eax]
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 4]
shl edx, 0x18
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 5]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 6]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 7]
xor edx, ecx
mov eax, dword [ebp - 0x10]
xor edx, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 8]
shl edx, 0x18
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 9]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xa]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xb]
xor edx, ecx
mov eax, dword [ebp - 0x10]
xor edx, dword [eax + 8]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0xc]
shl edx, 0x18
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xd]
shl ecx, 0x10
xor edx, ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xe]
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xf]
xor edx, ecx
mov eax, dword [ebp - 0x10]
xor edx, dword [eax + 0xc]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
mov edx, 1
test edx, edx
je 0x5aecf0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de5f8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor edx, dword [ecx + 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x28]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x24]
xor ecx, dword [eax*4 + 0x6dedf8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x24]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x20]
xor ecx, dword [eax*4 + 0x6de5f8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x28]
shr edx, 0x18
mov eax, dword [ebp - 0x24]
xor eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
shr edx, 8
mov eax, dword [ebp - 0x24]
shl eax, 0x18
add edx, eax
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x20]
xor edx, dword [ecx*4 + 0x6dedf8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
mov edx, dword [ebp - 0x20]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
xor edx, edx
jne 0x5ae666
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de5f8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
xor edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x38]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x34]
xor ecx, dword [eax*4 + 0x6dedf8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x2c]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x38]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x34]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x2c]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x30]
xor ecx, dword [eax*4 + 0x6de5f8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x38]
shr edx, 0x18
mov eax, dword [ebp - 0x34]
xor eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
xor ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x34]
shr edx, 8
mov eax, dword [ebp - 0x34]
shl eax, 0x18
add edx, eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x30]
xor edx, dword [ecx*4 + 0x6dedf8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x18
mov edx, dword [ebp - 0x30]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
xor edx, edx
jne 0x5ae768
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax + 0x10]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de5f8]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor edx, dword [ecx + 0x14]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x48]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x44]
xor ecx, dword [eax*4 + 0x6dedf8]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x3c]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x48]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x44]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x3c]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x40]
xor ecx, dword [eax*4 + 0x6de5f8]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x48]
shr edx, 0x18
mov eax, dword [ebp - 0x44]
xor eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
xor ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x44]
shr edx, 8
mov eax, dword [ebp - 0x44]
shl eax, 0x18
add edx, eax
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x40]
xor edx, dword [ecx*4 + 0x6dedf8]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x18
mov edx, dword [ebp - 0x40]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x40]
mov dword [ebp - 4], ecx
xor edx, edx
jne 0x5ae86b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [eax + 0x18]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de5f8]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
xor edx, dword [ecx + 0x1c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x58]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x54]
xor ecx, dword [eax*4 + 0x6dedf8]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x4c]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x58]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x54]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x4c]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x50]
xor ecx, dword [eax*4 + 0x6de5f8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x58]
shr edx, 0x18
mov eax, dword [ebp - 0x54]
xor eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x50]
xor ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x54]
shr edx, 8
mov eax, dword [ebp - 0x54]
shl eax, 0x18
add edx, eax
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x4c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x50]
xor edx, dword [ecx*4 + 0x6dedf8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x4c]
shr ecx, 0x18
mov edx, dword [ebp - 0x50]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x50]
mov dword [ebp - 0x18], ecx
xor edx, edx
jne 0x5ae96e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax + 0x20]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de5f8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor edx, dword [ecx + 0x24]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x68]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x64]
xor ecx, dword [eax*4 + 0x6dedf8]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x5c]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x68]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x64]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x5c]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x60]
xor ecx, dword [eax*4 + 0x6de5f8]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x68]
shr edx, 0x18
mov eax, dword [ebp - 0x64]
xor eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x60]
xor ecx, dword [ebp - 0x64]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x64]
shr edx, 8
mov eax, dword [ebp - 0x64]
shl eax, 0x18
add edx, eax
mov dword [ebp - 0x64], edx
mov ecx, dword [ebp - 0x5c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x60]
xor edx, dword [ecx*4 + 0x6dedf8]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x64]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x5c]
shr ecx, 0x18
mov edx, dword [ebp - 0x60]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x60]
mov dword [ebp - 4], ecx
xor edx, edx
jne 0x5aea71
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [eax + 0x28]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de5f8]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
xor edx, dword [ecx + 0x2c]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x78]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x74]
xor ecx, dword [eax*4 + 0x6dedf8]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x6c]
and edx, 0xff
mov eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x78]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x74]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x6c]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x70]
xor ecx, dword [eax*4 + 0x6de5f8]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x78]
shr edx, 0x18
mov eax, dword [ebp - 0x74]
xor eax, dword [edx*4 + 0x6de1f8]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x70]
xor ecx, dword [ebp - 0x74]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x74]
shr edx, 8
mov eax, dword [ebp - 0x74]
shl eax, 0x18
add edx, eax
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp - 0x6c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x70]
xor edx, dword [ecx*4 + 0x6dedf8]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x74]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x6c]
shr ecx, 0x18
mov edx, dword [ebp - 0x70]
xor edx, dword [ecx*4 + 0x6de9f8]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x70]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x70]
mov dword [ebp - 0x18], ecx
xor edx, edx
jne 0x5aeb74
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jne 0x5aec8a
jmp 0x5aecf0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
and eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
and edx, dword [ecx]
shr edx, 0x1f
lea eax, [edx + eax*2]
xor eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
or edx, dword [ecx + 0xc]
xor edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
or ecx, dword [eax + 4]
xor ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
and eax, dword [edx + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
and edx, dword [ecx + 8]
shr edx, 0x1f
lea eax, [edx + eax*2]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
jmp 0x5ae659
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
xor edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
xor eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
mov edx, dword [ebp + 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
shr eax, 0x10
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 1], al
mov edx, dword [ebp - 0x14]
shr edx, 8
mov eax, dword [ebp + 0x14]
mov byte [eax + 2], dl
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp - 0x14]
mov byte [ecx + 3], dl
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 4], al
mov edx, dword [ebp - 4]
shr edx, 0x10
mov eax, dword [ebp + 0x14]
mov byte [eax + 5], dl
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [ebp + 0x14]
mov byte [edx + 6], cl
mov eax, dword [ebp + 0x14]
mov cl, byte [ebp - 4]
mov byte [eax + 7], cl
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, dword [ebp + 0x14]
mov byte [eax + 8], dl
mov ecx, dword [ebp - 8]
shr ecx, 0x10
mov edx, dword [ebp + 0x14]
mov byte [edx + 9], cl
mov eax, dword [ebp - 8]
shr eax, 8
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0xa], al
mov edx, dword [ebp + 0x14]
mov al, byte [ebp - 8]
mov byte [edx + 0xb], al
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
mov edx, dword [ebp + 0x14]
mov byte [edx + 0xc], cl
mov eax, dword [ebp - 0x18]
shr eax, 0x10
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0xd], al
mov edx, dword [ebp - 0x18]
shr edx, 8
mov eax, dword [ebp + 0x14]
mov byte [eax + 0xe], dl
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp - 0x18]
mov byte [ecx + 0xf], dl
mov esp, ebp
pop ebp
ret