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

Disassembly:
mov eax, 4
call fcn.0049d300
mov edx, dword [esp + 0xc]
movzx ecx, byte [edx + 1]
xor eax, eax
mov ah, byte [edx]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
push edi
xor eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
xor eax, ecx
movzx ecx, byte [edx + 3]
shl eax, 8
xor eax, ecx
xor eax, dword [esi]
movzx ecx, byte [edx + 5]
mov dword [esp + 0x1c], eax
xor eax, eax
mov ah, byte [edx + 4]
movzx edi, byte [edx + 0xd]
shl ebp, 6
add ebp, esi
xor eax, ecx
movzx ecx, byte [edx + 6]
shl eax, 8
xor eax, ecx
movzx ecx, byte [edx + 7]
shl eax, 8
xor eax, ecx
xor eax, dword [esi + 4]
xor ecx, ecx
mov ch, byte [edx + 8]
mov dword [esp + 0x20], eax
movzx eax, byte [edx + 9]
xor ecx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
xor ecx, eax
xor ecx, dword [esi + 8]
xor eax, eax
mov ah, byte [edx + 0xc]
xor eax, edi
movzx edi, byte [edx + 0xe]
movzx edx, byte [edx + 0xf]
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, edx
xor eax, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x10]
mov esi, dword [eax]
xor esi, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
movzx edi, bh
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
and edi, 0xff
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
xor edi, esi
xor ecx, edi
shr esi, 8
shl edx, 0x18
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 8]
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
xor edx, dword [esp + 0x18]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
movzx edi, bh
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
xor edi, esi
xor dword [esp + 0x1c], edi
shr esi, 8
shl edx, 0x18
add edx, esi
mov esi, dword [eax + 0x10]
xor esi, dword [esp + 0x1c]
xor edx, edi
xor dword [esp + 0x20], edx
mov edx, dword [eax + 0x14]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
movzx edi, bh
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
xor edi, esi
xor ecx, edi
shl edx, 0x18
shr esi, 8
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 0x18]
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 0x1c]
xor edx, dword [esp + 0x18]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
movzx edi, bh
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
xor edi, esi
xor dword [esp + 0x1c], edi
shl edx, 0x18
shr esi, 8
add edx, esi
mov esi, dword [eax + 0x20]
xor esi, dword [esp + 0x1c]
xor edx, edi
xor dword [esp + 0x20], edx
mov edx, dword [eax + 0x24]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
movzx edi, bh
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
shl edx, 0x18
xor edi, esi
shr esi, 8
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 0x28]
xor ecx, edi
xor edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x2c]
mov esi, dword [esp + 0x10]
xor edx, dword [esp + 0x18]
shr esi, 0x10
mov ebx, dword [esp + 0x10]
movzx edi, bh
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
and edi, 0xff
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ea880]
mov edx, dword [esp + 0x1c]
xor edi, esi
mov ebx, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor ebx, edi
xor dword [esp + 0x20], ebx
add eax, 0x30
xor edx, edi
cmp eax, ebp
je 0x55e531
lea esp, [esp]
mov esi, dword [eax]
mov edi, esi
and esi, edx
shr edi, 0x1f
mov ebx, edx
shr ebx, 0x1f
and edi, ebx
lea edi, [edi + esi*2]
mov esi, dword [esp + 0x20]
xor esi, edi
mov edi, dword [esp + 0x18]
mov ebx, dword [eax + 0xc]
or ebx, edi
xor ecx, ebx
mov ebx, dword [eax + 4]
or ebx, esi
xor edx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov esi, edx
shr esi, 0x1f
and edx, ecx
mov ebx, ecx
shr ebx, 0x1f
and esi, ebx
lea edx, [esi + edx*2]
mov esi, dword [eax + 0x10]
xor esi, dword [esp + 0x1c]
xor edi, edx
mov edx, dword [eax + 0x14]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x18], edi
add eax, 0x10
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
movzx edi, bh
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
xor edi, esi
shr esi, 8
shl edx, 0x18
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 8]
xor ecx, edi
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
xor edx, dword [esp + 0x18]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
movzx edi, bh
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
and edi, 0xff
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
xor edi, esi
xor dword [esp + 0x1c], edi
shr esi, 8
shl edx, 0x18
add edx, esi
mov esi, dword [eax + 0x10]
xor esi, dword [esp + 0x1c]
xor edx, edi
xor dword [esp + 0x20], edx
mov edx, dword [eax + 0x14]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
movzx edi, bh
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
xor edi, esi
shr esi, 8
shl edx, 0x18
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 0x18]
xor ecx, edi
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 0x1c]
xor edx, dword [esp + 0x18]
shr esi, 0x10
movzx edi, bh
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
and edi, 0xff
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
xor edi, esi
xor dword [esp + 0x1c], edi
shr esi, 8
shl edx, 0x18
add edx, esi
mov esi, dword [eax + 0x20]
xor esi, dword [esp + 0x1c]
xor edx, edi
xor dword [esp + 0x20], edx
mov edx, dword [eax + 0x24]
xor edx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
shr esi, 0x10
movzx edi, bh
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
movzx ebx, dh
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ea880]
mov edx, esi
xor edi, esi
shl edx, 0x18
shr esi, 8
add edx, esi
xor edx, edi
xor dword [esp + 0x18], edx
mov edx, dword [eax + 0x28]
xor ecx, edi
xor edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 0x2c]
xor edx, dword [esp + 0x18]
movzx edi, bh
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5eb080]
xor esi, dword [edi*4 + 0x5eb480]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x5ea880]
and edi, 0xff
xor esi, dword [edi*4 + 0x5eac80]
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x5eb480]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x5eac80]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5eb080]
and edx, 0xff
xor edi, dword [edx*4 + 0x5ea880]
mov edx, dword [esp + 0x1c]
xor edi, esi
mov ebx, esi
shl ebx, 0x18
shr esi, 8
add ebx, esi
xor edx, edi
xor ebx, edi
xor dword [esp + 0x20], ebx
add eax, 0x30
cmp eax, ebp
jne 0x55e150
xor ecx, dword [eax]
xor edx, dword [eax + 8]
mov esi, dword [eax + 4]
mov ebx, dword [esp + 0x20]
xor ebx, dword [eax + 0xc]
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