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

Disassembly:
mov eax, 8
call fcn.10163610
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push ebx
movzx ebx, byte [edx + 4]
push ebp
push esi
push edi
movzx edi, byte [edx]
shl eax, 6
add eax, ecx
add ecx, 0x10
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 1]
shl ebx, 8
shl edi, 8
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
movzx ecx, byte [edx + 6]
shl ebx, 8
xor ebx, ecx
movzx ecx, byte [edx + 7]
shl ebx, 8
xor ebx, ecx
xor ebx, dword [eax + 4]
movzx ecx, byte [edx + 9]
mov dword [esp + 0x1c], 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
xor ebx, dword [eax + 8]
movzx ecx, byte [edx + 0xd]
xor edi, dword [eax]
mov dword [esp + 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
xor ebx, dword [eax + 0xc]
mov ecx, dword [eax - 4]
xor ecx, dword [esp + 0x1c]
sub eax, 0x30
mov dword [esp + 0x24], ebx
mov ebx, dword [eax + 0x28]
xor ebx, edi
mov dword [esp + 0x20], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x101c76f0]
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
mov ebp, dword [esp + 0x10]
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor ebp, edx
shr esi, 8
add ecx, esi
xor ecx, edx
mov esi, dword [esp + 0x24]
xor esi, ecx
mov ecx, dword [eax + 0x24]
xor ecx, esi
mov dword [esp + 0x20], ecx
xor ebx, ebp
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov dword [esp + 0x24], esi
mov esi, dword [edx*4 + 0x101c76f0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
xor edi, edx
mov edx, dword [esp + 0x1c]
xor edx, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, edx
xor ebx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x101c76f0]
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor ebp, edx
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [eax + 0x14]
xor ecx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
xor ebx, ebp
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x101c76f0]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
xor dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0xc]
xor edi, edx
xor ebx, edi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x1c]
xor ecx, edi
mov dword [esp + 0x1c], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
and edx, 0xff
shr ecx, 8
mov esi, dword [edx*4 + 0x101c76f0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor ebp, edx
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [eax + 4]
xor ecx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
xor ebx, ebp
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x101c76f0]
shr ecx, 8
and ecx, 0xff
mov dword [esp + 0x10], ebp
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
xor edi, ecx
xor ebx, edx
mov dword [esp + 0x1c], edi
cmp eax, dword [esp + 0x14]
je 0x10115e54
mov esi, dword [eax - 8]
mov edx, esi
shr edx, 0x1f
and esi, ebx
mov ecx, ebx
shr ecx, 0x1f
and edx, ecx
sub eax, 0x40
lea ecx, [edx + esi*2]
mov edx, dword [esp + 0x1c]
xor edx, ecx
mov ecx, dword [eax + 0x34]
or ecx, dword [esp + 0x24]
mov esi, dword [eax + 0x30]
xor ebp, ecx
mov ecx, dword [eax + 0x3c]
or ecx, edx
xor ebx, ecx
mov dword [esp + 0x1c], edx
mov edx, esi
shr edx, 0x1f
and esi, ebp
mov ecx, ebp
shr ecx, 0x1f
and edx, ecx
mov dword [esp + 0x20], ebx
mov edi, dword [esp + 0x20]
mov ebx, dword [eax + 0x28]
lea ecx, [edx + esi*2]
xor dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x2c]
xor ecx, dword [esp + 0x1c]
xor ebx, edi
mov dword [esp + 0x20], ecx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x101c76f0]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor ebp, edx
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [eax + 0x24]
xor ecx, edx
xor ebx, ebp
mov dword [esp + 0x24], edx
mov edx, ebx
mov dword [esp + 0x20], ecx
shr edx, 0x10
mov ecx, ebx
and edx, 0xff
shr ecx, 8
mov esi, dword [edx*4 + 0x101c76f0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor edi, edx
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x1c]
xor edx, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
xor ebx, edi
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x101c76f0]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
xor ebp, edx
mov edx, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [eax + 0x14]
xor ebx, ebp
xor ecx, edx
mov dword [esp + 0x24], edx
mov edx, ebx
mov dword [esp + 0x20], ecx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x101c76f0]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
xor edi, edx
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x1c]
xor edx, ecx
mov ecx, dword [eax + 0xc]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
xor ebx, edi
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x101c76f0]
shr ecx, 8
and ecx, 0xff
mov dword [esp + 0x20], edi
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x10]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, dword [eax]
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
xor ebp, edx
mov edx, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
xor ebx, ebp
xor ecx, edx
mov dword [esp + 0x10], ecx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov esi, dword [edx*4 + 0x101c76f0]
shr ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101c7af0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101c6ef0]
movzx ecx, bl
mov ebx, dword [esp + 0x10]
xor esi, dword [ecx*4 + 0x101c72f0]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
mov edx, dword [edx*4 + 0x101c7af0]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x101c72f0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101c76f0]
movzx ecx, bl
mov ebx, edi
xor edx, dword [ecx*4 + 0x101c6ef0]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
add ecx, esi
xor ecx, edx
xor dword [esp + 0x1c], ecx
xor ebx, edx
cmp eax, dword [esp + 0x14]
jne 0x10115a30
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], ebp
xor edi, dword [eax - 4]
xor ebx, dword [eax - 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
xor edx, dword [eax - 0x10]
mov esi, dword [esp + 0x24]
xor esi, dword [eax - 0xc]
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, esi
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, edi
mov eax, edx
shr eax, 0x18
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x1c], edi
pop edi
mov byte [ecx + 0xd], al
mov dword [esp + 0x20], esi
pop esi
mov eax, edx
shr eax, 8
pop ebp
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], dl
pop ebx
add esp, 8
ret