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

Disassembly:
mov eax, 4
call fcn.0049f020
xor ecx, ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
mov ch, byte [esi]
movzx edx, byte [esi + 1]
shl eax, 6
add eax, ebp
push edi
xor ecx, edx
movzx edx, byte [esi + 2]
shl ecx, 8
xor ecx, edx
movzx edx, byte [esi + 3]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax]
movzx edx, byte [esi + 5]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov ch, byte [esi + 4]
movzx edi, byte [esi + 0xd]
sub eax, 0x30
add ebp, 0x10
xor ecx, edx
movzx edx, byte [esi + 6]
shl ecx, 8
xor ecx, edx
movzx edx, byte [esi + 7]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax + 0x34]
movzx edx, byte [esi + 9]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov ch, byte [esi + 8]
xor ecx, edx
movzx edx, byte [esi + 0xa]
shl ecx, 8
xor ecx, edx
movzx edx, byte [esi + 0xb]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax + 0x38]
xor edx, edx
mov dh, byte [esi + 0xc]
xor edx, edi
movzx edi, byte [esi + 0xe]
movzx esi, byte [esi + 0xf]
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, esi
xor edx, dword [eax + 0x3c]
mov esi, dword [eax + 0x28]
xor esi, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x2c]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
movzx edi, bh
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
and edi, 0xff
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
xor ecx, edi
shr esi, 8
shl edx, 0x18
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 0x20]
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 0x24]
xor edx, dword [esp + 0x18]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
movzx edi, bh
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
xor dword [esp + 0x1c], edi
shr esi, 8
shl edx, 0x18
add edx, esi
mov esi, dword [eax + 0x18]
xor esi, dword [esp + 0x1c]
xor edx, edi
xor dword [esp + 0x20], edx
mov edx, dword [eax + 0x1c]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
movzx edi, bh
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
xor ecx, edi
shl edx, 0x18
shr esi, 8
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 0x10]
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 0x14]
xor edx, dword [esp + 0x18]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
movzx edi, bh
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
xor dword [esp + 0x1c], edi
shl edx, 0x18
shr esi, 8
add edx, esi
mov esi, dword [eax + 8]
xor esi, dword [esp + 0x1c]
xor edx, edi
xor dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
movzx edi, bh
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
shl edx, 0x18
shr esi, 8
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax]
xor ecx, edi
xor edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
xor edx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
movzx edi, bh
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
and edi, 0xff
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ec890]
mov edx, dword [esp + 0x1c]
xor edi, esi
mov ebx, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor edx, edi
cmp eax, ebp
je 0x560c00
lea esp, [esp]
mov esi, dword [eax - 8]
mov edi, esi
and esi, edx
shr edi, 0x1f
mov ebx, edx
shr ebx, 0x1f
and edi, ebx
lea esi, [edi + esi*2]
mov edi, dword [esp + 0x20]
xor edi, esi
mov esi, dword [esp + 0x18]
mov ebx, dword [eax - 0xc]
or ebx, esi
sub eax, 0x10
xor ecx, ebx
mov ebx, dword [eax + 0xc]
or ebx, edi
xor edx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edx
mov edx, dword [eax]
mov edi, edx
shr edi, 0x1f
and edx, ecx
mov ebx, ecx
shr ebx, 0x1f
and edi, ebx
lea edx, [edi + edx*2]
xor esi, edx
mov edx, dword [eax - 4]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x18], esi
mov esi, dword [eax - 8]
xor esi, dword [esp + 0x1c]
sub eax, 0x30
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
movzx edi, bh
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
shl edx, 0x18
shr esi, 8
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 0x20]
xor ecx, edi
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 0x24]
xor edx, dword [esp + 0x18]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
movzx edi, bh
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
and edi, 0xff
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
xor dword [esp + 0x1c], edi
shr esi, 8
shl edx, 0x18
add edx, esi
mov esi, dword [eax + 0x18]
xor esi, dword [esp + 0x1c]
xor edx, edi
xor dword [esp + 0x20], edx
mov edx, dword [eax + 0x1c]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
movzx edi, bh
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
shr esi, 8
shl edx, 0x18
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 0x10]
xor ecx, edi
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 0x14]
xor edx, dword [esp + 0x18]
shr esi, 0x10
movzx edi, bh
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
and edi, 0xff
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
xor dword [esp + 0x1c], edi
shr esi, 8
shl edx, 0x18
add edx, esi
mov esi, dword [eax + 8]
xor esi, dword [esp + 0x1c]
xor edx, edi
xor dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
movzx edi, bh
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
xor edi, dword [edx*4 + 0x5ec890]
mov edx, esi
xor edi, esi
shl edx, 0x18
shr esi, 8
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax]
xor ecx, edi
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 4]
xor edx, dword [esp + 0x18]
shr esi, 0x10
movzx edi, bh
and esi, 0xff
mov esi, dword [esi*4 + 0x5ed090]
xor esi, dword [edi*4 + 0x5ed490]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ec890]
and edi, 0xff
xor esi, dword [edi*4 + 0x5ecc90]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5ed490]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5ecc90]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5ed090]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ec890]
mov edx, dword [esp + 0x1c]
xor edi, esi
mov ebx, esi
shl ebx, 0x18
shr esi, 8
xor edx, edi
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
cmp eax, ebp
jne 0x560820
xor ecx, dword [eax - 0x10]
xor edx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov ebx, dword [esp + 0x20]
xor ebx, dword [eax - 4]
xor dword [esp + 0x18], esi
mov esi, dword [esp + 0x24]
sub eax, 0x10
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 3], cl
mov byte [esi + 2], al
mov eax, dword [esp + 0x18]
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 5], cl
mov ecx, eax
mov byte [esi + 7], al
shr ecx, 8
mov eax, edx
shr eax, 0x18
mov byte [esi + 6], cl
mov byte [esi + 8], al
mov ecx, edx
shr ecx, 0x10
mov eax, edx
shr eax, 8
mov byte [esi + 9], cl
mov byte [esi + 0xb], dl
mov byte [esi + 0xa], al
mov ecx, ebx
mov edx, ebx
mov eax, ebx
shr ecx, 0x18
shr edx, 0x10
pop edi
shr eax, 8
mov byte [esi + 0xf], bl
mov byte [esi + 0xc], cl
mov byte [esi + 0xd], dl
mov byte [esi + 0xe], al
pop esi
pop ebp
pop ebx
pop ecx
ret