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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
movzx ebx, byte [ecx + 4]
shl eax, 6
add eax, edx
shl ebx, 8
mov dword [ebp + 8], eax
movzx eax, byte [ecx + 1]
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 [ebp - 4], 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 [ebp + 0x10], 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 [ebp - 4]
shl ebx, 8
xor ebx, eax
mov dword [ebp - 8], ecx
xor ebx, dword [edx + 0xc]
lea eax, [edx + 0x10]
mov dword [ebp + 0xc], ebx
mov ebx, dword [eax]
xor ebx, edi
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
mov edx, dword [edx*4 + 0x732618]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [ebp + 0x10], edx
xor ebx, dword [ebp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp + 0xc]
xor edx, ecx
mov ecx, dword [eax + 0xc]
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
shr esi, 8
xor edi, edx
add ecx, esi
xor ebx, edi
xor ecx, edx
mov edx, dword [ebp - 4]
xor edx, ecx
mov ecx, dword [eax + 0x14]
xor ecx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [ebp + 0x10], edx
xor ebx, dword [ebp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp + 0xc]
xor edx, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
shr esi, 8
xor edi, edx
add ecx, esi
mov dword [ebp - 8], edi
xor ecx, edx
xor ebx, edi
mov edx, dword [ebp - 4]
xor edx, ecx
mov ecx, dword [eax + 0x24]
xor ecx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
xor esi, dword [ecx*4 + 0x731e18]
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 0x28]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [ebp + 0x10], edx
xor ebx, dword [ebp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp + 0xc]
xor edx, ecx
mov ecx, dword [eax + 0x2c]
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
add eax, 0x30
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, edi
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
xor ebx, edx
add ecx, esi
xor ecx, edx
mov edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 4], edx
cmp eax, dword [ebp + 8]
je 0x6b0e15
mov edx, dword [eax]
mov esi, dword [ebp - 4]
and edx, ebx
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
mov edx, dword [eax + 8]
xor esi, ecx
mov ecx, dword [eax + 0xc]
or ecx, dword [ebp + 0xc]
xor dword [ebp + 0x10], ecx
and edx, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
or ecx, esi
mov dword [ebp - 4], esi
xor ebx, ecx
mov ecx, edx
shr ecx, 0x1f
mov dword [ebp - 8], ebx
mov ebx, dword [eax + 0x10]
mov edi, dword [ebp - 8]
xor ebx, edi
lea ecx, [ecx + edx*2]
xor dword [ebp + 0xc], ecx
mov ecx, dword [eax + 0x14]
xor ecx, esi
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [ebp + 0x10], edx
xor ebx, dword [ebp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp + 0xc]
xor edx, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
xor esi, dword [ecx*4 + 0x731e18]
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor edi, edx
shr esi, 8
add ecx, esi
xor ebx, edi
xor ecx, edx
mov edx, dword [ebp - 4]
xor edx, ecx
mov ecx, dword [eax + 0x24]
xor ecx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 0x28]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [ebp + 0x10], edx
xor ebx, dword [ebp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp + 0xc]
xor edx, ecx
mov ecx, dword [eax + 0x2c]
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 0x30]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor edi, edx
shr esi, 8
add ecx, esi
mov dword [ebp - 8], edi
xor ecx, edx
xor ebx, edi
mov edx, dword [ebp - 4]
xor edx, ecx
mov ecx, dword [eax + 0x34]
xor ecx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x732218]
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, dword [eax + 0x38]
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor dword [ebp + 0x10], edx
xor ebx, dword [ebp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [ebp + 0xc]
xor edx, ecx
mov ecx, dword [eax + 0x3c]
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
mov esi, dword [edx*4 + 0x732218]
add eax, 0x40
movzx ecx, cl
xor esi, dword [ecx*4 + 0x732618]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x731a18]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor esi, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x732618]
xor edx, dword [ecx*4 + 0x731e18]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x732218]
movzx ecx, bl
mov ebx, edi
xor edx, dword [ecx*4 + 0x731a18]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
xor ebx, edx
add ecx, esi
xor ecx, edx
mov edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 4], edx
cmp eax, dword [ebp + 8]
jne 0x6b0a63
xor ebx, dword [eax + 8]
xor edx, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
xor ecx, dword [eax]
mov edi, dword [ebp + 0xc]
xor edi, dword [eax + 4]
mov eax, ecx
shr eax, 0x18
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], edi
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, dword [ebp + 0x10]
shr eax, 8
mov byte [ecx + 2], al
mov eax, dword [ebp + 0x10]
mov byte [ecx + 3], al
mov eax, edi
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, edi
shr eax, 0x10
mov byte [ecx + 5], al
mov eax, edi
shr eax, 8
mov byte [ecx + 6], al
mov eax, edi
mov byte [ecx + 7], 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 byte [ecx + 0xd], al
mov eax, edx
pop edi
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