Function at 0x466f40
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 ecx, dword [eax + 8]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 0xc]
push edi
mov edi, dword [edx + 0x18]
bswap ecx
bswap esi
bswap ebx
xor ecx, dword [edi + 4]
xor esi, dword [edi + 0xc]
xor ebx, dword [edi + 8]
bswap ebp
xor ebp, dword [edi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], ecx
call fcn.00465d10
xor edx, edx
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
and edx, dword [ecx + 0x764050]
add ecx, eax
cmp ecx, 0x100
jb 0x466f90
mov ecx, dword [edi + 0x18]
and edx, dword [0x76414c]
or ebx, edx
or esi, edx
mov edx, dword [edi + 0x1c]
xor ecx, ebx
mov eax, ecx
xor edx, esi
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x764050]
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 + 0x764050]
or edi, eax
movzx eax, cl
shr ecx, 0x18
shl edi, 8
movzx eax, byte [eax + 0x764050]
or edi, eax
movzx eax, byte [ecx + 0x764050]
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 + 0x764050]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x764050]
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 + 0x764050]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x764050]
or ecx, eax
mov eax, dword [esp + 0x28]
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 eax, edi
xor ebp, ecx
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
xor ecx, ebp
xor edx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x764050]
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 + 0x764050]
or edi, eax
movzx eax, cl
shr ecx, 0x18
shl edi, 8
movzx eax, byte [eax + 0x764050]
or edi, eax
movzx eax, byte [ecx + 0x764050]
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 + 0x764050]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x764050]
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 + 0x764050]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x764050]
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 + 0xc]
xor edi, ecx
rol ecx, 8
xor esi, edi
xor ebx, ecx
mov ecx, dword [esp + 0x10]
sub eax, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, ebx
je 0x4674cb
mov edx, dword [ecx + 0x2c]
mov ebx, dword [ecx + 0x28]
xor edx, esi
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 + 0x764550]
xor edi, dword [eax*4 + 0x764950]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x764150]
movzx eax, dl
xor edi, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x764950]
xor ecx, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x764550]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x764150]
mov eax, dword [esp + 0x10]
xor ecx, edi
xor ebx, ecx
ror edi, 8
xor edi, ecx
mov dword [esp + 0x28], ebx
xor ebp, edi
mov edx, dword [eax + 0x24]
xor edx, ebx
mov ebx, dword [eax + 0x20]
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 + 0x764550]
xor edi, dword [eax*4 + 0x764950]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x764150]
movzx eax, dl
xor edi, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x764950]
xor ecx, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x764550]
movzx eax, bl
xor ecx, dword [eax*4 + 0x764150]
mov eax, dword [esp + 0x14]
xor ecx, edi
ror edi, 8
xor esi, ecx
xor edi, ecx
mov ecx, dword [esp + 0x10]
xor eax, edi
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x3c]
mov ebx, dword [ecx + 0x38]
xor edx, esi
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 + 0x764550]
xor edi, dword [eax*4 + 0x764950]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x764150]
movzx eax, dl
xor edi, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x764950]
xor ecx, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x764550]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x764150]
mov eax, dword [esp + 0x10]
xor ecx, edi
xor ebx, ecx
ror edi, 8
xor edi, ecx
mov dword [esp + 0x28], ebx
xor ebp, edi
mov edx, dword [eax + 0x34]
xor edx, ebx
mov dword [esp + 0x1c], ebp
mov ebx, dword [eax + 0x30]
mov eax, edx
shr eax, 0x10
xor ebx, ebp
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x764550]
xor edi, dword [eax*4 + 0x764950]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x764150]
movzx eax, dl
xor edi, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x764950]
xor ecx, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x764550]
movzx eax, bl
mov ebx, dword [esp + 0x10]
xor ecx, dword [eax*4 + 0x764150]
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
mov ecx, dword [esp + 0x14]
xor ecx, eax
mov eax, dword [ebx + 0x48]
or eax, ecx
mov dword [esp + 0x14], ecx
xor esi, eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
or eax, ebp
mov edx, dword [esp + 0x28]
xor edx, eax
mov ebp, dword [ebx + 0x44]
and ebp, edx
mov dword [esp + 0x28], edx
mov edx, dword [ebx + 0x5c]
mov ebx, dword [ebx + 0x58]
xor edx, esi
xor ebx, ecx
rol ebp, 1
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edi, dword [ecx*4 + 0x764550]
xor edi, dword [eax*4 + 0x764950]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x764150]
movzx eax, dl
xor edi, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x764950]
xor ecx, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x764550]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x764150]
mov eax, dword [esp + 0x10]
xor ecx, edi
xor ebx, ecx
ror edi, 8
xor edi, ebp
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x1c]
xor edi, ecx
mov edx, dword [eax + 0x54]
xor ebp, edi
xor edx, ebx
mov ebx, dword [eax + 0x50]
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 + 0x764550]
xor edi, dword [eax*4 + 0x764950]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x764150]
movzx eax, dl
xor edi, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x764950]
xor ecx, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x764550]
movzx eax, bl
xor ecx, dword [eax*4 + 0x764150]
xor ecx, edi
xor esi, ecx
ror edi, 8
mov eax, dword [esp + 0x14]
xor edi, ecx
mov ecx, dword [esp + 0x20]
xor eax, edi
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jne 0x467150
mov edx, dword [ecx + 0x2c]
mov ebx, dword [ecx + 0x28]
xor edx, esi
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 + 0x764550]
xor edi, dword [eax*4 + 0x764950]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x764150]
movzx eax, dl
xor edi, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x764950]
xor ecx, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x764550]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x764150]
mov eax, dword [esp + 0x10]
xor ecx, edi
xor ebx, ecx
ror edi, 8
xor edi, ecx
mov dword [esp + 0x28], ebx
xor ebp, edi
mov edx, dword [eax + 0x24]
xor edx, ebx
mov ebx, dword [eax + 0x20]
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 + 0x764550]
xor edi, dword [eax*4 + 0x764950]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x764150]
movzx eax, dl
xor edi, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x764950]
xor ecx, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x764550]
movzx eax, bl
xor ecx, dword [eax*4 + 0x764150]
mov eax, dword [esp + 0x14]
xor ecx, edi
ror edi, 8
xor esi, ecx
xor edi, ecx
xor eax, edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov edx, dword [edi + 0x3c]
mov ebx, dword [edi + 0x38]
xor edx, esi
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 + 0x764550]
xor edi, dword [eax*4 + 0x764950]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x764150]
movzx eax, dl
xor edi, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x764950]
xor ecx, dword [eax*4 + 0x764d50]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x764550]
movzx eax, bl
mov ebx, dword [esp + 0x10]
xor ecx, dword [eax*4 + 0x764150]
mov eax, dword [esp + 0x28]
xor ecx, edi
xor eax, ecx
mov edx, dword [ebx + 0x34]
xor edx, eax
mov dword [esp + 0x28], eax
ror edi, 8
xor edi, ecx
mov ecx, dword [ebx + 0x30]
xor ebp, edi
xor ecx, ebp
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x764050]
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 + 0x764050]
or edi, eax
movzx eax, cl
shr ecx, 0x18
shl edi, 8
movzx eax, byte [eax + 0x764050]
or edi, eax
movzx eax, byte [ecx + 0x764050]
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 + 0x764050]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x764050]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x764050]
ror al, 1
movzx eax, al
or ecx, eax
shl ecx, 8
rol dl, 1
xor ebp, dword [ebx + 0x40]
movzx eax, dl
mov edx, dword [esp + 0x14]
movzx eax, byte [eax + 0x764050]
or ecx, eax
xor ecx, edi
rol edi, 8
xor edi, ecx
ror ecx, 8
xor ecx, edi
rol edi, 0x10
xor edi, dword [ebx + 0x4c]
xor edi, ecx
rol ecx, 8
xor ecx, dword [ebx + 0x48]
xor esi, edi
mov edi, dword [esp + 0x2c]
xor edx, ecx
mov ecx, dword [ebx + 0x44]
xor ecx, dword [esp + 0x28]
bswap ecx
test edi, edi
je 0x467788
mov eax, dword [edi]
xor eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
lea eax, [ecx + 4]
lea ecx, [edi + 4]
mov edi, eax
test ecx, ecx
je 0x467793
bswap ebp
xor ebp, dword [ecx]
mov dword [eax], ebp
add eax, 4
mov edi, eax
add ecx, 4
je 0x46779c
bswap esi
xor esi, dword [ecx]
mov dword [eax], esi
add eax, 4
add ecx, 4
je 0x4677a3
mov ecx, dword [ecx]
pop edi
pop esi
bswap edx
xor edx, ecx
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x30]
mov dword [eax], ecx
add eax, 4
mov edi, eax
bswap ebp
mov dword [eax], ebp
lea eax, [edi + 4]
mov edi, eax
bswap esi
mov dword [eax], esi
lea eax, [edi + 4]
pop edi
pop esi
xor ecx, ecx
bswap edx
xor edx, ecx
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x14
ret 0xc