Function at 0x69e260
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 ebx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x18], edx
mov edx, dword [edx + 0x14]
bswap esi
bswap ebx
bswap ecx
xor ecx, dword [edx + 4]
xor esi, dword [edx + 0xc]
xor ebx, dword [edx + 8]
bswap ebp
xor ebp, dword [edx]
cmp byte [0x81fd40], 0
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
jne 0x69e2ac
call fcn.0064c170
mov edx, dword [esp + 0x10]
mov edi, dword [0x78fa38]
xor eax, eax
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
and ecx, dword [eax + 0x729368]
add eax, edi
cmp eax, 0x100
jb 0x69e2c0
and ecx, dword [0x729464]
or esi, ecx
or ebx, ecx
mov ecx, dword [edx + 0x18]
xor ecx, ebx
mov edx, dword [edx + 0x1c]
mov eax, ecx
xor edx, esi
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x729368]
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 + 0x729368]
or edi, eax
movzx eax, cl
shr ecx, 0x18
shl edi, 8
movzx eax, byte [eax + 0x729368]
or edi, eax
movzx eax, byte [ecx + 0x729368]
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 + 0x729368]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x729368]
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 + 0x729368]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x729368]
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 + 0x729368]
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 + 0x729368]
or edi, eax
movzx eax, cl
shr ecx, 0x18
shl edi, 8
movzx eax, byte [eax + 0x729368]
or edi, eax
movzx eax, byte [ecx + 0x729368]
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 + 0x729368]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x729368]
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 + 0x729368]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x729368]
or ecx, eax
mov eax, dword [esp + 0x1c]
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 ebx, ecx
mov ecx, dword [esp + 0x10]
sub eax, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, ebx
je 0x69e7fb
nop
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 + 0x729868]
xor edi, dword [eax*4 + 0x729c68]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x729468]
movzx eax, dl
xor edi, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x729c68]
xor ecx, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x729868]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x729468]
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 + 0x729868]
xor edi, dword [eax*4 + 0x729c68]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x729468]
movzx eax, dl
xor edi, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x729c68]
xor ecx, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x729868]
movzx eax, bl
xor ecx, dword [eax*4 + 0x729468]
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 + 0x729868]
xor edi, dword [eax*4 + 0x729c68]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x729468]
movzx eax, dl
xor edi, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x729c68]
xor ecx, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x729868]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x729468]
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 + 0x729868]
xor edi, dword [eax*4 + 0x729c68]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x729468]
movzx eax, dl
xor edi, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x729c68]
xor ecx, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x729868]
movzx eax, bl
mov ebx, dword [esp + 0x10]
xor ecx, dword [eax*4 + 0x729468]
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 + 0x729868]
xor edi, dword [eax*4 + 0x729c68]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x729468]
movzx eax, dl
xor edi, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x729c68]
xor ecx, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x729868]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x729468]
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 + 0x729868]
xor edi, dword [eax*4 + 0x729c68]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x729468]
movzx eax, dl
xor edi, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x729c68]
xor ecx, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x729868]
movzx eax, bl
xor ecx, dword [eax*4 + 0x729468]
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 0x69e480
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 + 0x729868]
xor edi, dword [eax*4 + 0x729c68]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x729468]
movzx eax, dl
xor edi, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x729c68]
xor ecx, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x729868]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x729468]
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 + 0x729868]
xor edi, dword [eax*4 + 0x729c68]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x729468]
movzx eax, dl
xor edi, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x729c68]
xor ecx, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x729868]
movzx eax, bl
xor ecx, dword [eax*4 + 0x729468]
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 + 0x729868]
xor edi, dword [eax*4 + 0x729c68]
mov eax, edx
shr eax, 0x18
xor edi, dword [eax*4 + 0x729468]
movzx eax, dl
xor edi, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x729c68]
xor ecx, dword [eax*4 + 0x72a068]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x729868]
movzx eax, bl
mov ebx, dword [esp + 0x10]
xor ecx, dword [eax*4 + 0x729468]
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 + 0x729368]
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 + 0x729368]
or edi, eax
movzx eax, cl
shr ecx, 0x18
shl edi, 8
movzx eax, byte [eax + 0x729368]
or edi, eax
movzx eax, byte [ecx + 0x729368]
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 + 0x729368]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x729368]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x729368]
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]
bswap ebp
movzx eax, byte [eax + 0x729368]
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]
mov ebx, dword [esp + 0x30]
bswap ecx
test edi, edi
je 0x69eabb
mov eax, dword [edi]
xor eax, ecx
lea ecx, [edi + 4]
mov dword [ebx], eax
lea edi, [ebx + 8]
test ecx, ecx
je 0x69eac0
mov eax, dword [ecx]
xor eax, ebp
mov dword [ebx + 4], eax
lea ebx, [edi + 4]
bswap esi
add ecx, 4
je 0x69eac8
mov eax, dword [ecx]
xor eax, esi
mov dword [edi], eax
mov eax, 0
bswap edx
add ecx, 4
je 0x69eace
mov eax, dword [ecx]
pop edi
pop esi
xor eax, edx
pop ebp
mov dword [ebx], eax
pop ebx
add esp, 0x14
ret 0xc
mov dword [ebx], ecx
lea edi, [ebx + 8]
mov dword [ebx + 4], ebp
lea ebx, [edi + 4]
bswap esi
mov dword [edi], esi
xor eax, eax
bswap edx
pop edi
pop esi
xor eax, edx
pop ebp
mov dword [ebx], eax
pop ebx
add esp, 0x14
ret 0xc