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

Disassembly:
mov eax, 8
call fcn.00474020
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ebx
movzx ebx, byte [ecx + 4]
shl eax, 6
add eax, edx
shl ebx, 8
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 1]
push ebp
push esi
push edi
movzx edi, byte [ecx]
shl edi, 8
xor edi, eax
movzx eax, byte [ecx + 2]
shl edi, 8
xor edi, eax
movzx eax, byte [ecx + 3]
shl edi, 8
xor edi, eax
movzx eax, byte [ecx + 5]
xor ebx, eax
xor edi, dword [edx]
movzx eax, byte [ecx + 6]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 7]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 9]
xor ebx, dword [edx + 4]
mov dword [esp + 0x24], ebx
movzx ebx, byte [ecx + 8]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 0xa]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 0xb]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 0xd]
xor ebx, dword [edx + 8]
mov dword [esp + 0x14], ebx
movzx ebx, byte [ecx + 0xc]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 0xe]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 0xf]
mov ecx, dword [edx + 0x14]
xor ecx, dword [esp + 0x24]
shl ebx, 8
xor ebx, eax
mov dword [esp + 0x10], ecx
xor ebx, dword [edx + 0xc]
lea eax, [edx + 0x10]
mov dword [esp + 0x20], ebx
mov ebx, dword [eax]
xor ebx, edi
mov edx, ebx
mov ecx, ebx
shr edx, 0x10
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x10]
mov edx, ebx
xor esi, dword [ecx*4 + 0x4aa570]
shr edx, 0x10
and edx, 0xff
mov ebp, dword [esp + 0x14]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor ebp, edx
shr esi, 8
add ecx, esi
xor ebx, ebp
xor ecx, edx
mov esi, dword [esp + 0x20]
xor esi, ecx
mov edx, ebx
mov ecx, dword [eax + 0xc]
xor ecx, esi
shr edx, 0x10
mov dword [esp + 0x14], ecx
and edx, 0xff
mov ecx, ebx
mov dword [esp + 0x20], esi
shr ecx, 8
and ecx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
xor edi, edx
add ecx, esi
xor ebx, edi
xor ecx, edx
mov edx, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [eax + 0x14]
xor ecx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
xor esi, dword [ecx*4 + 0x4aa570]
mov ebx, dword [esp + 0x14]
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor ebp, edx
shr esi, 8
add ecx, esi
xor ebx, ebp
xor ecx, edx
mov edx, dword [esp + 0x20]
xor edx, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
xor edi, edx
add ecx, esi
mov dword [esp + 0x10], edi
xor ecx, edx
xor ebx, edi
xor dword [esp + 0x24], ecx
mov edx, ebx
mov ecx, dword [eax + 0x24]
mov edi, dword [esp + 0x24]
xor ecx, edi
mov dword [esp + 0x24], ecx
mov ecx, ebx
shr edx, 0x10
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 0x28]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor ebp, edx
shr esi, 8
add ecx, esi
mov dword [esp + 0x14], ebp
xor ecx, edx
xor ebx, ebp
mov edx, dword [esp + 0x20]
xor edx, ecx
mov ecx, dword [eax + 0x2c]
xor ecx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
add eax, 0x30
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [esp + 0x10]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
xor ebx, edx
add ecx, esi
xor ecx, edx
xor edi, ecx
mov dword [esp + 0x24], edi
cmp eax, dword [esp + 0x1c]
je 0x430e24
mov esi, dword [eax]
mov ecx, ebx
shr ecx, 0x1f
mov edx, esi
shr edx, 0x1f
and esi, ebx
and edx, ecx
lea ecx, [edx + esi*2]
mov edx, dword [esp + 0x24]
xor edx, ecx
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
or ecx, dword [esp + 0x20]
xor ebp, ecx
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 4]
or ecx, edx
mov edx, esi
xor ebx, ecx
shr edx, 0x1f
and esi, ebp
mov dword [esp + 0x10], ebx
mov ebx, dword [eax + 0x10]
mov ecx, ebp
shr ecx, 0x1f
and edx, ecx
mov edi, dword [esp + 0x10]
xor ebx, edi
lea ecx, [edx + esi*2]
mov edx, ebx
xor dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x14]
xor ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, ebx
shr ecx, 8
shr edx, 0x10
and ecx, 0xff
and edx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor ebp, edx
shr esi, 8
add ecx, esi
xor ebx, ebp
xor ecx, edx
mov edx, dword [esp + 0x20]
xor edx, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor edi, edx
shr esi, 8
add ecx, esi
xor ebx, edi
xor ecx, edx
mov edx, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [eax + 0x24]
xor ecx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 0x28]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor ebp, edx
shr esi, 8
add ecx, esi
xor ebx, ebp
xor ecx, edx
mov edx, dword [esp + 0x20]
xor edx, ecx
mov ecx, dword [eax + 0x2c]
xor ecx, edx
mov dword [esp + 0x20], edx
mov edx, ebx
mov dword [esp + 0x14], ecx
shr edx, 0x10
and edx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 0x30]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor edi, edx
shr esi, 8
add ecx, esi
mov dword [esp + 0x10], edi
xor ecx, edx
xor ebx, edi
mov edx, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [eax + 0x34]
xor ecx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, dword [eax + 0x38]
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
xor ebp, edx
add ecx, esi
xor ebx, ebp
xor ecx, edx
mov edx, dword [esp + 0x20]
xor edx, ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x20], edx
xor ecx, edx
mov dword [esp + 0x14], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
add eax, 0x40
mov esi, dword [edx*4 + 0x4aa970]
xor esi, dword [ecx*4 + 0x4aad70]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x4aa170]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x4aad70]
xor edx, dword [ecx*4 + 0x4aa570]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4aa970]
movzx ecx, bl
mov ebx, edi
xor edx, dword [ecx*4 + 0x4aa170]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
xor ebx, edx
add ecx, esi
xor ecx, edx
xor dword [esp + 0x24], ecx
cmp eax, dword [esp + 0x1c]
jne 0x430a00
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
xor edi, dword [eax + 0xc]
xor ebx, dword [eax + 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
xor edx, dword [eax]
mov esi, dword [esp + 0x20]
xor esi, dword [eax + 4]
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov byte [ecx + 3], dl
mov edx, esi
mov eax, edx
mov byte [ecx + 7], dl
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 5], al
mov eax, edx
shr eax, 8
mov edx, edi
mov byte [ecx + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 8], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 9], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x24], edi
pop edi
mov byte [ecx + 0xd], al
mov eax, edx
mov dword [esp + 0x1c], esi
pop esi
shr eax, 8
pop ebp
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], dl
pop ebx
add esp, 8
ret