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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
movzx ecx, byte [edx + 4]
shl eax, 6
shl ecx, 8
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
push edi
movzx edi, byte [edx]
shl edi, 8
xor edi, eax
movzx eax, byte [edx + 2]
shl edi, 8
xor edi, eax
movzx eax, byte [edx + 3]
shl edi, 8
xor edi, eax
movzx eax, byte [edx + 5]
xor ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
xor ecx, eax
xor ecx, dword [esi + 4]
movzx eax, byte [edx + 9]
mov dword [ebp + 8], ecx
movzx ecx, byte [edx + 8]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
xor ecx, eax
xor ecx, dword [esi + 8]
movzx eax, byte [edx + 0xd]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 0xc]
xor edi, dword [esi]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0xe]
mov ebx, dword [esi + 0x10]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
xor ecx, eax
xor ecx, dword [esi + 0xc]
lea eax, [esi + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [ebp + 8]
xor ebx, edi
mov dword [ebp - 0xc], ecx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0x566990]
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
xor dword [ebp - 4], edx
xor ebx, dword [ebp - 4]
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp - 8]
xor edx, ecx
mov ecx, dword [eax + 0xc]
xor ecx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
xor edi, edx
mov edx, dword [ebp + 8]
xor edx, ecx
mov ecx, dword [eax + 0x14]
xor ecx, edx
xor ebx, edi
mov dword [ebp + 8], edx
mov dword [ebp - 0xc], ecx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x566990]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
xor dword [ebp - 4], edx
xor ebx, dword [ebp - 4]
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp - 8]
xor edx, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
xor edi, edx
mov edx, dword [ebp + 8]
xor edx, ecx
mov ecx, dword [eax + 0x24]
xor ecx, edx
xor ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp + 8], edx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
and edx, 0xff
mov dword [ebp - 0xc], edi
mov esi, dword [edx*4 + 0x566590]
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
xor esi, dword [ecx*4 + 0x566190]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
add eax, 0x30
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax - 8]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor edi, edx
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp - 8]
xor edx, ecx
mov ecx, dword [eax - 4]
xor ecx, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
xor ebx, edi
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 4], edi
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0x14]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
shr esi, 8
shl ecx, 0x18
add ecx, esi
mov esi, dword [ebp + 8]
xor ecx, edx
xor esi, ecx
xor ebx, edx
mov dword [ebp + 8], esi
cmp eax, dword [ebp - 0x10]
je 0x4d89ed
lea ecx, [ecx]
mov esi, dword [eax]
mov edx, esi
shr edx, 0x1f
and esi, ebx
mov ecx, ebx
shr ecx, 0x1f
and edx, ecx
lea ecx, [edx + esi*2]
mov edx, dword [ebp + 8]
xor edx, ecx
mov ecx, dword [eax + 0xc]
or ecx, dword [ebp - 8]
mov esi, dword [eax + 8]
xor edi, ecx
mov ecx, dword [eax + 4]
or ecx, edx
xor ebx, ecx
mov dword [ebp + 8], edx
mov edx, esi
shr edx, 0x1f
and esi, edi
mov ecx, edi
shr ecx, 0x1f
and edx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + 0x10]
lea ecx, [edx + esi*2]
xor dword [ebp - 8], ecx
mov ecx, dword [eax + 0x14]
xor ecx, dword [ebp + 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
xor ebx, edi
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0x14]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
xor dword [ebp - 4], edx
xor ebx, dword [ebp - 4]
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp - 8]
xor edx, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, edx
mov dword [ebp - 8], edx
mov edx, ebx
mov dword [ebp - 0x14], ecx
shr edx, 0x10
mov ecx, ebx
and edx, 0xff
shr ecx, 8
mov esi, dword [edx*4 + 0x566590]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0x14]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor edi, edx
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp + 8]
xor edx, ecx
mov ecx, dword [eax + 0x24]
xor ecx, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp + 8], edx
xor ebx, edi
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0x14]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax + 0x28]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
xor dword [ebp - 4], edx
xor ebx, dword [ebp - 4]
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp - 8]
xor edx, ecx
mov ecx, dword [eax + 0x2c]
xor ecx, edx
mov dword [ebp - 8], edx
mov edx, ebx
mov dword [ebp - 0x14], ecx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0x14]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax + 0x30]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor edi, edx
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp + 8]
xor edx, ecx
mov ecx, dword [eax + 0x34]
xor ecx, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp + 8], edx
xor ebx, edi
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0xc], edi
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
mov edi, dword [ebp - 4]
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0x14]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [eax + 0x38]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor edi, edx
xor ecx, edx
mov edx, dword [ebp - 8]
xor edx, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edx
mov ecx, dword [eax + 0x3c]
xor ecx, edx
mov dword [ebp - 0x14], ecx
xor ebx, edi
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x566590]
shr ecx, 8
and ecx, 0xff
add eax, 0x40
xor esi, dword [ecx*4 + 0x566990]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x565d90]
movzx ecx, bl
mov ebx, dword [ebp - 0x14]
xor esi, dword [ecx*4 + 0x566190]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x566990]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x566190]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x566590]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor edx, dword [ecx*4 + 0x565d90]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
xor dword [ebp + 8], ecx
xor ebx, edx
cmp eax, dword [ebp - 0x10]
jne 0x4d85e0
mov esi, dword [ebp + 8]
xor esi, dword [eax + 0xc]
xor ebx, dword [eax + 8]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
xor edx, dword [eax]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
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, dword [ebp - 8]
mov eax, edx
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 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 byte [ecx + 7], dl
mov edx, esi
mov eax, edx
shr eax, 0x18
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0xd], al
pop edi
mov eax, edx
mov dword [ebp + 8], esi
shr eax, 8
pop esi
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], dl
pop ebx
mov esp, ebp
pop ebp
ret