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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, edx
movzx edx, byte [esi]
shl eax, 6
add eax, ecx
add ecx, 0x10
mov dword [esp + 0x14], ecx
movzx ecx, byte [esi + 1]
push edi
movzx edi, byte [esi + 5]
shl edx, 8
xor edx, ecx
movzx ecx, byte [esi + 2]
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 + 0x14], 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]
xor ecx, dword [eax + 8]
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 - 4]
xor ebp, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov edi, dword [eax - 8]
xor edi, edx
sub eax, 0x30
mov esi, edi
mov ebx, edi
shr esi, 0x10
shr ebx, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x100d9c58]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
mov ebx, ebp
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebp, dword [eax + 0x24]
xor edi, esi
xor ecx, edi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x10], ebx
mov edi, dword [eax + 0x20]
xor ebp, dword [esp + 0x10]
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 + 0x100d9c58]
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebp, dword [eax + 0x1c]
xor edi, esi
mov ebx, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x14], ebx
xor ebp, dword [esp + 0x14]
xor edx, edi
mov edi, dword [eax + 0x18]
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 + 0x100d9c58]
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
xor edi, esi
xor ecx, edi
mov ebx, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x10], ebx
mov edi, dword [eax + 0x10]
xor edi, ecx
mov ebp, dword [eax + 0x14]
xor ebp, dword [esp + 0x10]
mov esi, edi
mov ebx, edi
shr ebx, 8
and ebx, 0xff
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x100d9c58]
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebp, dword [eax + 0xc]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x14], ebx
xor ebp, dword [esp + 0x14]
xor edx, edi
mov edi, dword [eax + 8]
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 + 0x100d9c58]
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebx, esi
xor edi, esi
xor ecx, edi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x10], ebx
mov edi, dword [eax]
mov ebp, dword [eax + 4]
xor ebp, dword [esp + 0x10]
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 + 0x100d9c58]
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebx, esi
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x14], ebx
xor edx, edi
cmp eax, dword [esp + 0x18]
je 0x1008da8c
jmp 0x1008d6a0
mov esi, dword [eax - 8]
mov edi, esi
and esi, edx
shr edi, 0x1f
sub eax, 0x10
mov ebx, edx
shr ebx, 0x1f
and edi, ebx
lea esi, [edi + esi*2]
xor dword [esp + 0x14], esi
mov esi, dword [eax + 4]
or esi, dword [esp + 0x10]
mov ebp, dword [eax - 4]
xor ecx, esi
mov esi, dword [eax + 0xc]
or esi, dword [esp + 0x14]
xor ebp, dword [esp + 0x14]
xor edx, esi
mov esi, dword [eax]
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 + 0x10], esi
mov edi, dword [eax - 8]
xor edi, edx
mov esi, edi
sub eax, 0x30
shr esi, 0x10
mov ebx, edi
shr ebx, 8
and ebx, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x100d9c58]
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
mov ebx, esi
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebp, dword [eax + 0x24]
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x10], ebx
xor ebp, dword [esp + 0x10]
xor ecx, edi
mov edi, dword [eax + 0x20]
xor edi, ecx
mov esi, edi
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x100d9c58]
mov ebx, edi
shr ebx, 8
and ebx, 0xff
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebp, dword [eax + 0x1c]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x14], ebx
xor ebp, dword [esp + 0x14]
xor edx, edi
mov edi, dword [eax + 0x18]
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 + 0x100d9c58]
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
mov ebx, esi
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebp, dword [eax + 0x14]
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x10], ebx
xor ebp, dword [esp + 0x10]
xor ecx, edi
mov edi, dword [eax + 0x10]
xor edi, ecx
mov esi, edi
shr esi, 0x10
mov ebx, edi
and esi, 0xff
mov esi, dword [esi*4 + 0x100d9c58]
shr ebx, 8
and ebx, 0xff
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
mov ebx, ebp
and edi, 0xff
shr ebx, 8
mov edi, dword [edi*4 + 0x100da058]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebp, dword [eax + 0xc]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x14], ebx
xor edx, edi
mov edi, dword [eax + 8]
xor ebp, dword [esp + 0x14]
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 + 0x100d9c58]
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebp, dword [eax + 4]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x10], ebx
xor ebp, dword [esp + 0x10]
xor ecx, edi
mov edi, dword [eax]
xor edi, ecx
mov esi, edi
mov ebx, edi
shr esi, 0x10
shr ebx, 8
and ebx, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x100d9c58]
xor esi, dword [ebx*4 + 0x100da058]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x100d9458]
and edi, 0xff
xor esi, dword [edi*4 + 0x100d9858]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x100da058]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100d9858]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x100d9c58]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x100d9458]
mov ebx, esi
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x14], ebx
xor edx, edi
cmp eax, dword [esp + 0x18]
jne 0x1008d6a0
xor ecx, dword [eax - 0x10]
xor edx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov ebx, dword [esp + 0x14]
xor ebx, dword [eax - 4]
xor dword [esp + 0x10], esi
mov esi, dword [esp + 0x20]
sub eax, 0x10
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 + 0x10]
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
add esp, 0xc
ret