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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
shl eax, 6
add eax, ecx
add ecx, 0x10
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
bswap ecx
xor ecx, dword [eax + 0xc]
mov dword [ebp + 8], ecx
mov ecx, dword [eax - 4]
bswap edx
xor edx, dword [eax + 4]
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
bswap ebx
xor ebx, dword [eax + 8]
bswap edi
xor edi, dword [eax]
sub eax, 0x30
mov dword [ebp + 0x10], ebx
mov ebx, dword [eax + 0x28]
xor ebx, edi
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x5d94e0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0x10], ecx
mov ecx, dword [eax + 0x24]
xor esi, edx
mov edx, dword [ebp + 8]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x5d94e0]
mov ecx, dword [eax + 0x1c]
xor edx, esi
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x5d94e0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
mov dword [ebp + 0x10], ecx
xor ebx, ecx
mov ecx, dword [eax + 0x14]
xor esi, edx
mov edx, dword [ebp + 8]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x5d94e0]
mov ecx, dword [eax + 0xc]
xor edx, esi
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax]
xor edx, dword [ecx*4 + 0x5d94e0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0x10], ecx
mov ecx, dword [eax + 4]
xor esi, edx
mov edx, dword [ebp + 8]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x5d94e0]
xor edx, esi
ror esi, 8
xor edi, edx
xor esi, edx
mov edx, dword [ebp + 0xc]
xor edx, esi
cmp eax, dword [ebp - 4]
je 0x506f23
mov ecx, dword [eax - 8]
and ecx, edi
mov ebx, dword [ebp + 8]
rol ecx, 1
xor edx, ecx
mov esi, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
or ecx, ebx
mov dword [ebp + 0xc], edx
xor esi, ecx
mov ecx, dword [eax - 4]
or ecx, edx
mov dword [ebp + 0x10], esi
xor edi, ecx
mov ecx, dword [eax - 0x10]
and ecx, esi
sub eax, 0x40
rol ecx, 1
xor ebx, ecx
mov dword [ebp + 8], ebx
mov ecx, dword [eax + 0x2c]
xor ecx, edx
mov ebx, dword [eax + 0x28]
mov dword [ebp - 8], ecx
xor ebx, edi
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x5d94e0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0x10], ecx
mov ecx, dword [eax + 0x24]
xor esi, edx
mov edx, dword [ebp + 8]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x5d94e0]
mov ecx, dword [eax + 0x1c]
xor edx, esi
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x5d94e0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0x10], ecx
mov ecx, dword [eax + 0x14]
xor esi, edx
mov edx, dword [ebp + 8]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x5d94e0]
xor edx, esi
mov ecx, dword [eax + 0xc]
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5da0e0]
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
mov ebx, dword [eax]
xor edx, dword [ecx*4 + 0x5d94e0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0x10], ecx
mov ecx, dword [eax + 4]
xor esi, edx
mov edx, dword [ebp + 8]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x5d9ce0]
xor esi, dword [ecx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5d94e0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov edx, dword [edx*4 + 0x5da0e0]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5d98e0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5d9ce0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x5d94e0]
xor edx, esi
ror esi, 8
xor edi, edx
xor esi, edx
mov edx, dword [ebp + 0xc]
xor edx, esi
cmp eax, dword [ebp - 4]
jne 0x506ba4
xor edi, dword [eax - 8]
xor edx, dword [eax - 4]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
xor ebx, dword [eax - 0xc]
mov eax, dword [eax - 0x10]
xor eax, dword [ebp + 0x10]
bswap edi
mov dword [ecx + 8], edi
pop edi
bswap ebx
bswap eax
bswap edx
pop esi
mov dword [ecx + 4], ebx
mov dword [ecx], eax
mov dword [ecx + 0xc], edx
pop ebx
mov esp, ebp
pop ebp
ret