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

Disassembly:
jmp 0x100710d0
mov eax, 0x18
call fcn.100011c0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
mov ecx, dword [esp + 0x28]
movzx ebx, byte [edx + 4]
shl ebx, 8
push ebp
push esi
push edi
movzx edi, byte [edx]
shl eax, 6
add eax, ecx
shl edi, 8
add ecx, 0x10
mov dword [esp + 0x20], 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 [esp + 0x18], ebx
movzx ebx, byte [edx + 8]
shl ebx, 8
xor ebx, ecx
mov ebp, dword [esp + 0x18]
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 [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
mov ecx, dword [eax - 4]
xor ebx, dword [eax + 0xc]
xor ecx, ebp
sub eax, 0x30
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov ebx, dword [eax + 0x28]
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 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [esp + 0x10], edx
xor ebx, dword [esp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x14]
xor edx, ecx
mov ecx, dword [eax + 0x24]
xor ecx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
shr esi, 8
xor edi, edx
add ecx, esi
xor ebx, edi
xor ecx, edx
xor ebp, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, ebp
mov dword [esp + 0x1c], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
xor esi, dword [ecx*4 + 0x101a95a8]
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [esp + 0x10], edx
xor ebx, dword [esp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x14]
xor edx, ecx
mov ecx, dword [eax + 0x14]
xor ecx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
shr esi, 8
xor edi, edx
add ecx, esi
mov dword [esp + 0x1c], edi
xor ecx, edx
xor ebx, edi
xor ebp, ecx
mov ecx, dword [eax + 0xc]
xor ecx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [esp + 0x10], edx
xor ebx, dword [esp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x14]
xor edx, ecx
mov ecx, dword [eax + 4]
xor ecx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, edi
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
xor ebx, edx
add ecx, esi
xor ecx, edx
mov edx, ebp
xor edx, ecx
mov dword [esp + 0x18], edx
cmp eax, dword [esp + 0x20]
je 0x100718dc
mov edx, dword [eax - 8]
mov ebp, dword [esp + 0x18]
and edx, ebx
mov ecx, edx
shr ecx, 0x1f
lea ecx, [ecx + edx*2]
mov edx, dword [eax - 0x10]
xor ebp, ecx
mov ecx, dword [eax - 0xc]
or ecx, dword [esp + 0x14]
xor dword [esp + 0x10], ecx
and edx, dword [esp + 0x10]
mov ecx, dword [eax - 4]
sub eax, 0x40
or ecx, ebp
xor ebx, ecx
mov ecx, edx
shr ecx, 0x1f
mov dword [esp + 0x1c], ebx
mov ebx, dword [eax + 0x28]
mov edi, dword [esp + 0x1c]
xor ebx, edi
lea ecx, [ecx + edx*2]
xor dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x2c]
xor ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [esp + 0x10], edx
xor ebx, dword [esp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x14]
xor edx, ecx
mov ecx, dword [eax + 0x24]
xor ecx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
xor esi, dword [ecx*4 + 0x101a95a8]
mov ebx, dword [esp + 0x24]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
shr esi, 8
xor edi, edx
add ecx, esi
xor ebx, edi
xor ecx, edx
xor ebp, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [esp + 0x10], edx
xor ebx, dword [esp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x14]
xor edx, ecx
mov ecx, dword [eax + 0x14]
xor ecx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
shr esi, 8
xor edi, edx
add ecx, esi
mov dword [esp + 0x1c], edi
xor ecx, edx
xor ebx, edi
xor ebp, ecx
mov ecx, dword [eax + 0xc]
xor ecx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, dword [eax]
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
shl ecx, 0x18
xor edx, esi
xor dword [esp + 0x10], edx
xor ebx, dword [esp + 0x10]
shr esi, 8
add ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x14]
xor edx, ecx
mov ecx, dword [eax + 4]
xor ecx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x101a99a8]
xor esi, dword [ecx*4 + 0x101a9da8]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101a91a8]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
xor esi, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x101a9da8]
xor edx, dword [ecx*4 + 0x101a95a8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x101a99a8]
movzx ecx, bl
mov ebx, edi
xor edx, dword [ecx*4 + 0x101a91a8]
mov ecx, esi
xor edx, esi
shl ecx, 0x18
shr esi, 8
xor ebx, edx
add ecx, esi
xor ecx, edx
mov edx, ebp
xor edx, ecx
mov dword [esp + 0x18], edx
cmp eax, dword [esp + 0x20]
jne 0x10071514
xor ebx, dword [eax - 8]
xor edx, dword [eax - 4]
mov ecx, dword [esp + 0x10]
xor ecx, dword [eax - 0x10]
mov edi, dword [esp + 0x14]
xor edi, dword [eax - 0xc]
mov eax, ecx
shr eax, 0x18
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], edi
mov byte [ecx], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, dword [esp + 0x10]
shr eax, 8
mov byte [ecx + 2], al
mov eax, dword [esp + 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
pop edi
mov byte [ecx + 0xd], al
mov eax, edx
pop esi
shr eax, 8
pop ebp
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], dl
pop ebx
add esp, 0x18
ret