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

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