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

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