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

Disassembly:
mov eax, 4
call fcn.00538850
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
shl ecx, 6
add ecx, eax
push ebx
mov dword [esp + 4], ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
xor edx, ecx
movzx ecx, byte [esi + 2]
push edi
movzx edi, byte [esi + 5]
shl edx, 8
xor edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
xor edx, ecx
movzx ecx, byte [esi + 4]
shl ecx, 8
xor ecx, edi
movzx edi, byte [esi + 6]
shl ecx, 8
xor ecx, edi
movzx edi, byte [esi + 7]
movzx ebx, byte [esi + 0xd]
shl ecx, 8
xor ecx, edi
xor ecx, dword [eax + 4]
movzx edi, byte [esi + 9]
mov dword [esp + 0x20], ecx
movzx ecx, byte [esi + 8]
shl ecx, 8
xor ecx, edi
movzx edi, byte [esi + 0xa]
xor edx, dword [eax]
shl ecx, 8
xor ecx, edi
movzx edi, byte [esi + 0xb]
shl ecx, 8
xor ecx, edi
movzx edi, byte [esi + 0xc]
shl edi, 8
xor edi, ebx
movzx ebx, byte [esi + 0xe]
movzx esi, byte [esi + 0xf]
shl edi, 8
xor edi, ebx
shl edi, 8
xor edi, esi
xor edi, dword [eax + 0xc]
mov ebp, dword [eax + 0x14]
xor ebp, dword [esp + 0x20]
xor ecx, dword [eax + 8]
mov dword [esp + 0x18], edi
mov edi, dword [eax + 0x10]
xor edi, edx
mov esi, edi
shr esi, 0x10
mov ebx, edi
shr ebx, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
mov ebx, ebp
shr ebx, 8
and edi, 0xff
and ebx, 0xff
mov edi, dword [edi*4 + 0x590250]
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebp, dword [eax + 0x1c]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
xor ecx, edi
mov edi, dword [eax + 0x18]
xor ebp, dword [esp + 0x18]
xor edi, ecx
mov esi, edi
mov ebx, edi
shr ebx, 8
and ebx, 0xff
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebp, dword [eax + 0x24]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor ebp, dword [esp + 0x20]
xor edx, edi
mov edi, dword [eax + 0x20]
xor edi, edx
mov esi, edi
mov ebx, edi
shr ebx, 8
shr esi, 0x10
and ebx, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebp, dword [eax + 0x2c]
xor edi, esi
xor ecx, edi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
mov edi, dword [eax + 0x28]
xor edi, ecx
xor ebp, dword [esp + 0x18]
mov esi, edi
mov ebx, edi
shr ebx, 8
and ebx, 0xff
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebp, dword [eax + 0x34]
xor edi, esi
mov ebx, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor ebp, dword [esp + 0x20]
xor edx, edi
mov edi, dword [eax + 0x30]
xor edi, edx
mov esi, edi
mov ebx, edi
shr ebx, 8
shr esi, 0x10
and ebx, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebx, esi
xor edi, esi
xor ecx, edi
shl ebx, 0x18
mov ebp, dword [eax + 0x3c]
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
mov edi, dword [eax + 0x38]
xor ebp, dword [esp + 0x18]
xor edi, ecx
mov esi, edi
mov ebx, edi
shr ebx, 8
and ebx, 0xff
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebx, esi
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
add eax, 0x40
xor edx, edi
cmp eax, dword [esp + 0x10]
je 0x4e145a
lea ebx, [ebx]
mov esi, dword [eax]
mov edi, esi
and esi, edx
shr edi, 0x1f
mov ebx, edx
shr ebx, 0x1f
and edi, ebx
lea esi, [edi + esi*2]
xor dword [esp + 0x20], esi
mov esi, dword [eax + 0xc]
or esi, dword [esp + 0x18]
mov ebp, dword [eax + 0x14]
xor ecx, esi
mov esi, dword [eax + 4]
or esi, dword [esp + 0x20]
xor ebp, dword [esp + 0x20]
xor edx, esi
mov esi, dword [eax + 8]
mov edi, esi
shr edi, 0x1f
and esi, ecx
mov ebx, ecx
shr ebx, 0x1f
and edi, ebx
lea esi, [edi + esi*2]
xor dword [esp + 0x18], esi
mov edi, dword [eax + 0x10]
xor edi, edx
mov esi, edi
mov ebx, edi
shr ebx, 8
shr esi, 0x10
and ebx, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
mov ebx, esi
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebp, dword [eax + 0x1c]
xor edi, esi
shr esi, 8
shl ebx, 0x18
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
xor ebp, dword [esp + 0x18]
xor ecx, edi
mov edi, dword [eax + 0x18]
xor edi, ecx
mov esi, edi
shr esi, 0x10
mov ebx, edi
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
shr ebx, 8
and ebx, 0xff
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebp, dword [eax + 0x24]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor ebp, dword [esp + 0x20]
xor edx, edi
mov edi, dword [eax + 0x20]
xor edi, edx
mov esi, edi
mov ebx, edi
shr ebx, 8
and ebx, 0xff
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
mov ebx, esi
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebp, dword [eax + 0x2c]
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
xor ebp, dword [esp + 0x18]
xor ecx, edi
mov edi, dword [eax + 0x28]
xor edi, ecx
mov esi, edi
shr esi, 0x10
mov ebx, edi
shr ebx, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
mov ebx, ebp
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebp, dword [eax + 0x34]
xor edi, esi
xor edx, edi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
mov edi, dword [eax + 0x30]
xor ebp, dword [esp + 0x20]
xor edi, edx
mov esi, edi
mov ebx, edi
shr ebx, 8
and ebx, 0xff
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebp, dword [eax + 0x3c]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
xor ebp, dword [esp + 0x18]
xor ecx, edi
mov edi, dword [eax + 0x38]
xor edi, ecx
mov esi, edi
mov ebx, edi
shr ebx, 8
shr esi, 0x10
and ebx, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x58fe50]
xor esi, dword [ebx*4 + 0x590250]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x58f650]
and edi, 0xff
xor esi, dword [edi*4 + 0x58fa50]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x590250]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x58fa50]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x58fe50]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x58f650]
mov ebx, esi
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
add eax, 0x40
xor edx, edi
cmp eax, dword [esp + 0x10]
jne 0x4e1070
xor ecx, dword [eax]
xor edx, dword [eax + 8]
mov esi, dword [eax + 4]
mov ebx, dword [esp + 0x20]
xor ebx, dword [eax + 0xc]
xor dword [esp + 0x18], esi
mov esi, dword [esp + 0x24]
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