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

Disassembly:
mov eax, 4
call fcn.100feb80
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
movzx edx, byte [esi]
shl eax, 6
add eax, ecx
add ecx, 0x10
mov dword [esp + 0xc], ecx
movzx ecx, byte [esi + 1]
shl edx, 8
xor edx, ecx
movzx ecx, byte [esi + 2]
push edi
movzx edi, byte [esi + 5]
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 + 0x20], 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
mov ebp, dword [eax - 4]
xor ebp, dword [esp + 0x20]
shl edi, 8
xor edi, esi
xor edi, dword [eax + 0xc]
sub eax, 0x30
mov dword [esp + 0x18], edi
mov edi, dword [eax + 0x28]
xor edi, edx
mov esi, edi
shr esi, 0x10
mov ebx, edi
and esi, 0xff
mov esi, dword [esi*4 + 0x1014fa68]
shr ebx, 8
and ebx, 0xff
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov ebx, ebp
mov edi, dword [edi*4 + 0x1014fe68]
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebp, dword [eax + 0x24]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
xor ebp, dword [esp + 0x18]
xor ecx, edi
mov edi, dword [eax + 0x20]
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 + 0x1014fa68]
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebp, dword [eax + 0x1c]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor ebp, dword [esp + 0x20]
xor edx, edi
mov edi, dword [eax + 0x18]
xor edi, edx
mov esi, edi
mov ebx, edi
shr esi, 0x10
shr ebx, 8
and ebx, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x1014fa68]
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
mov ebx, ebp
shr ebx, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebp, dword [eax + 0x14]
xor edi, esi
xor ecx, edi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
mov edi, dword [eax + 0x10]
xor ebp, dword [esp + 0x18]
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 + 0x1014fa68]
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebp, dword [eax + 0xc]
xor edi, esi
mov ebx, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor ebp, dword [esp + 0x20]
xor edx, edi
mov edi, dword [eax + 8]
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 + 0x1014fa68]
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
xor edi, esi
mov ebx, esi
shl ebx, 0x18
mov ebp, dword [eax + 4]
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
xor ebp, dword [esp + 0x18]
xor ecx, edi
mov edi, dword [eax]
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 + 0x1014fa68]
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebx, esi
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor edx, edi
cmp eax, dword [esp + 0x10]
je 0x100ca37a
lea esp, [esp]
mov esi, dword [eax - 8]
mov edi, esi
and esi, edx
shr edi, 0x1f
mov ebx, edx
shr ebx, 0x1f
and edi, ebx
lea esi, [edi + esi*2]
xor dword [esp + 0x20], esi
mov esi, dword [eax - 0xc]
or esi, dword [esp + 0x18]
mov ebp, dword [eax - 0x14]
xor ecx, esi
mov esi, dword [eax - 4]
or esi, dword [esp + 0x20]
xor ebp, dword [esp + 0x20]
xor edx, esi
mov esi, dword [eax - 0x10]
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 + 0x18], esi
mov edi, dword [eax - 0x18]
xor edi, edx
mov esi, edi
mov ebx, edi
shr ebx, 8
and ebx, 0xff
sub eax, 0x40
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x1014fa68]
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
mov ebx, esi
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebp, dword [eax + 0x24]
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
xor ebp, dword [esp + 0x18]
xor ecx, edi
mov edi, dword [eax + 0x20]
xor edi, ecx
mov esi, edi
shr esi, 0x10
mov ebx, edi
and esi, 0xff
mov esi, dword [esi*4 + 0x1014fa68]
shr ebx, 8
and ebx, 0xff
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebp, dword [eax + 0x1c]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor ebp, dword [esp + 0x20]
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 + 0x1014fa68]
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
mov ebx, esi
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebp, dword [eax + 0x14]
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
xor ebp, dword [esp + 0x18]
xor ecx, edi
mov edi, dword [eax + 0x10]
xor edi, ecx
mov esi, edi
shr esi, 0x10
mov ebx, edi
shr ebx, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x1014fa68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
mov ebx, ebp
shr ebx, 8
and edi, 0xff
and ebx, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebp, dword [eax + 0xc]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor edx, edi
mov edi, dword [eax + 8]
xor ebp, dword [esp + 0x20]
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 + 0x1014fa68]
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
mov ebx, esi
shl ebx, 0x18
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebp, dword [eax + 4]
xor edi, esi
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x18], ebx
xor ebp, dword [esp + 0x18]
xor ecx, edi
mov edi, dword [eax]
xor edi, ecx
mov esi, edi
mov ebx, edi
shr ebx, 8
shr esi, 0x10
and ebx, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x1014fa68]
xor esi, dword [ebx*4 + 0x1014fe68]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1014f268]
and edi, 0xff
xor esi, dword [edi*4 + 0x1014f668]
mov edi, ebp
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x1014fe68]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1014f668]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1014fa68]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x1014f268]
mov ebx, esi
xor edi, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
xor edx, edi
cmp eax, dword [esp + 0x10]
jne 0x100c9f90
xor ecx, dword [eax - 0x10]
xor edx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov ebx, dword [esp + 0x20]
xor ebx, dword [eax - 4]
xor dword [esp + 0x18], esi
mov esi, dword [esp + 0x24]
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 + 0x18]
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
pop ecx
ret