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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov edx, ecx
push ebx
push ebp
push esi
mov esi, dword [eax]
mov ebp, dword [eax + 4]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [edx + 0x18]
bswap esi
bswap ebp
bswap ecx
xor ecx, dword [edx + 4]
xor esi, dword [edx + 0xc]
xor ebp, dword [edx + 8]
bswap ebx
xor ebx, dword [edx]
cmp byte [0x728718], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], ecx
jne 0x5c52cb
call fcn.005cb0f0
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [0x6d5654]
xor eax, eax
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
and ecx, dword [eax + 0x678258]
add eax, edi
cmp eax, 0x100
jb 0x5c52e0
and ecx, dword [0x678354]
or esi, ecx
or ebp, ecx
mov ecx, dword [edx + 0x18]
xor ecx, ebp
mov edx, dword [edx + 0x1c]
mov eax, ecx
xor edx, esi
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x678258]
ror al, 1
movzx edi, al
mov eax, ecx
shr eax, 8
rol al, 1
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x678258]
or edi, eax
movzx eax, cl
shr ecx, 0x18
shl edi, 8
movzx eax, byte [eax + 0x678258]
or edi, eax
movzx eax, byte [ecx + 0x678258]
rol al, 1
movzx eax, al
shl edi, 8
or edi, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x678258]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x678258]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
rol dl, 1
movzx eax, byte [eax + 0x678258]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x678258]
or ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, edi
rol edi, 8
xor edi, ecx
ror ecx, 8
xor ecx, edi
rol edi, 0x10
xor edi, ecx
rol ecx, 8
xor dword [esp + 0x28], edi
xor ebx, ecx
mov ecx, dword [eax + 0x10]
xor ecx, ebx
mov dword [esp + 0x14], ebx
mov ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edx, dword [ebx + 0x14]
xor edx, dword [esp + 0x28]
movzx eax, byte [eax + 0x678258]
ror al, 1
movzx edi, al
mov eax, ecx
shr eax, 8
shl edi, 8
rol al, 1
movzx eax, al
movzx eax, byte [eax + 0x678258]
or edi, eax
movzx eax, cl
shr ecx, 0x18
shl edi, 8
movzx eax, byte [eax + 0x678258]
or edi, eax
movzx eax, byte [ecx + 0x678258]
rol al, 1
movzx eax, al
shl edi, 8
or edi, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x678258]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x678258]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
rol dl, 1
movzx eax, byte [eax + 0x678258]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x678258]
or ecx, eax
mov eax, dword [esp + 0x18]
xor ecx, edi
rol edi, 8
xor edi, ecx
ror ecx, 8
xor ecx, edi
rol edi, 0x10
mov eax, dword [eax + 8]
xor edi, ecx
rol ecx, 8
xor esi, edi
xor ebp, ecx
sub eax, 1
mov dword [esp + 0x1c], eax
je 0x5c5816
mov edx, dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x28]
xor edx, esi
mov eax, edx
xor ebx, ebp
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x678758]
xor edi, dword [eax*4 + 0x678b58]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x678358]
movzx eax, dl
xor edi, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x678b58]
xor ecx, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x678758]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x678358]
mov eax, dword [esp + 0x14]
xor ecx, edi
xor ebx, ecx
ror edi, 8
xor edi, ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x10]
xor eax, edi
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x24]
xor edx, ebx
mov ebx, dword [ecx + 0x20]
xor ebx, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x678758]
xor edi, dword [eax*4 + 0x678b58]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x678358]
movzx eax, dl
xor edi, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x678b58]
xor ecx, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x678758]
movzx eax, bl
xor ecx, dword [eax*4 + 0x678358]
mov eax, dword [esp + 0x10]
xor ecx, edi
ror edi, 8
xor esi, ecx
xor edi, ecx
xor ebp, edi
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x38]
xor edx, esi
xor ebx, ebp
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x678758]
xor edi, dword [eax*4 + 0x678b58]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x678358]
movzx eax, dl
xor edi, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x678b58]
xor ecx, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x678758]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x678358]
mov eax, dword [esp + 0x14]
xor ecx, edi
xor ebx, ecx
ror edi, 8
xor edi, ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x10]
xor eax, edi
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x34]
xor edx, ebx
mov ebx, dword [ecx + 0x30]
xor ebx, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x678758]
xor edi, dword [eax*4 + 0x678b58]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x678358]
movzx eax, dl
xor edi, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x678b58]
xor ecx, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x678758]
movzx eax, bl
mov ebx, dword [esp + 0x10]
xor ecx, dword [eax*4 + 0x678358]
mov eax, dword [ebx + 0x4c]
xor ecx, edi
xor esi, ecx
ror edi, 8
and eax, esi
rol eax, 1
xor eax, edi
xor eax, ecx
xor ebp, eax
mov eax, dword [ebx + 0x48]
or eax, ebp
mov dword [esp + 0x18], ebp
xor esi, eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
or eax, dword [esp + 0x14]
mov edx, dword [ebx + 0x5c]
mov ecx, dword [esp + 0x28]
xor edx, esi
xor ecx, eax
mov ebp, dword [ebx + 0x44]
and ebp, ecx
mov dword [esp + 0x28], ecx
mov ebx, dword [ebx + 0x58]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
xor ebx, dword [esp + 0x18]
mov edi, dword [ecx*4 + 0x678758]
rol ebp, 1
xor edi, dword [eax*4 + 0x678b58]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x678358]
movzx eax, dl
xor edi, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x678b58]
xor ecx, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x678758]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x678358]
mov eax, dword [esp + 0x14]
xor ecx, edi
xor ebx, ecx
ror edi, 8
xor ebp, edi
mov dword [esp + 0x28], ebx
xor ebp, ecx
mov ecx, dword [esp + 0x10]
xor eax, ebp
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x54]
xor edx, ebx
mov ebx, dword [ecx + 0x50]
xor ebx, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x678758]
xor edi, dword [eax*4 + 0x678b58]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x678358]
movzx eax, dl
xor edi, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x678b58]
xor ecx, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x678758]
movzx eax, bl
xor ecx, dword [eax*4 + 0x678358]
xor ecx, edi
xor esi, ecx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
ror edi, 8
xor edi, ecx
mov dword [esp + 0x10], ebx
xor ebp, edi
sub dword [esp + 0x1c], 1
jne 0x5c5497
mov edx, dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x28]
xor edx, esi
mov eax, edx
xor ebx, ebp
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x678758]
xor edi, dword [eax*4 + 0x678b58]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x678358]
movzx eax, dl
xor edi, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x678b58]
xor ecx, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x678758]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x678358]
mov eax, dword [esp + 0x10]
xor ecx, edi
xor ebx, ecx
ror edi, 8
xor edi, ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x24]
xor ecx, edi
xor edx, ebx
mov dword [esp + 0x14], ecx
mov ebx, dword [eax + 0x20]
mov eax, edx
shr eax, 0x10
xor ebx, ecx
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x678758]
xor edi, dword [eax*4 + 0x678b58]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x678358]
movzx eax, dl
xor edi, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x678b58]
xor ecx, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x678758]
movzx eax, bl
xor ecx, dword [eax*4 + 0x678358]
mov eax, dword [esp + 0x10]
xor ecx, edi
ror edi, 8
xor esi, ecx
xor edi, ecx
xor ebp, edi
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x38]
xor edx, esi
xor ebx, ebp
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x678758]
xor edi, dword [eax*4 + 0x678b58]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x678358]
movzx eax, dl
xor edi, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x678b58]
xor ecx, dword [eax*4 + 0x678f58]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x678758]
movzx eax, bl
mov ebx, dword [esp + 0x14]
xor ecx, dword [eax*4 + 0x678358]
mov eax, dword [esp + 0x10]
xor ecx, edi
xor dword [esp + 0x28], ecx
ror edi, 8
xor edi, ecx
mov ecx, dword [eax + 0x30]
xor ebx, edi
mov edx, dword [eax + 0x34]
xor ecx, ebx
mov eax, ecx
xor edx, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x678258]
ror al, 1
movzx edi, al
mov eax, ecx
shr eax, 8
rol al, 1
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x678258]
or edi, eax
movzx eax, cl
shr ecx, 0x18
shl edi, 8
movzx eax, byte [eax + 0x678258]
or edi, eax
movzx eax, byte [ecx + 0x678258]
rol al, 1
movzx eax, al
shl edi, 8
or edi, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x678258]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x678258]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x678258]
ror al, 1
movzx eax, al
or ecx, eax
shl ecx, 8
rol dl, 1
movzx eax, dl
movzx eax, byte [eax + 0x678258]
mov edx, dword [esp + 0x30]
or ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, edi
rol edi, 8
xor edi, ecx
ror ecx, 8
xor ecx, edi
rol edi, 0x10
xor edi, dword [eax + 0x4c]
xor ebx, dword [eax + 0x40]
xor edi, ecx
rol ecx, 8
xor esi, edi
xor ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x44]
xor ebp, ecx
xor eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
bswap eax
pop edi
bswap ebx
test ecx, ecx
je 0x5c5ac9
xor eax, dword [ecx]
mov dword [edx], eax
lea eax, [ecx + 4]
lea ecx, [edx + 8]
test eax, eax
je 0x5c5ace
xor ebx, dword [eax]
mov dword [edx + 4], ebx
mov edx, ecx
bswap esi
add eax, 4
je 0x5c5ad5
xor esi, dword [eax]
mov dword [ecx], esi
bswap ebp
add eax, 4
je 0x5c5ad9
xor ebp, dword [eax]
pop esi
mov dword [ecx + 4], ebp
pop ebp
pop ebx
add esp, 0x14
ret 0xc
mov dword [edx], eax
lea ecx, [edx + 8]
mov dword [edx + 4], ebx
mov edx, ecx
bswap esi
mov dword [edx], esi
bswap ebp
pop esi
mov dword [ecx + 4], ebp
pop ebp
pop ebx
add esp, 0x14
ret 0xc