Function at 0x416ca0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x28
mov edx, dword [eax + 0x14]
push ebx
mov ebx, dword [eax + 0x1c]
push ebp
push esi
mov esi, ecx
xor ebx, dword [esi + 0xc]
xor edx, dword [esi + 4]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x18]
xor ecx, dword [esi + 8]
add eax, 0x10
push edi
mov edi, dword [eax]
xor edi, dword [esi]
mov esi, ebx
shr esi, 8
mov ebp, edi
shr ebp, 0x10
and ebp, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x56f290]
xor esi, dword [ebp*4 + 0x56f690]
mov ebp, edx
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x56fa90]
mov ebp, ecx
and ebp, 0xff
xor esi, dword [ebp*4 + 0x56ee90]
mov dword [esp + 0x2c], edx
mov ebp, ecx
shr ebp, 0x10
and ebp, 0xff
shr edx, 8
and edx, 0xff
mov dword [esp + 0x14], edx
mov edx, dword [ebp*4 + 0x56f690]
mov ebp, dword [esp + 0x14]
xor edx, dword [ebp*4 + 0x56f290]
mov ebp, ebx
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x56fa90]
mov ebp, edi
and ebp, 0xff
xor edx, dword [ebp*4 + 0x56ee90]
mov ebp, dword [esp + 0x2c]
shr ebp, 0x10
mov dword [esp + 0x28], edi
and ebp, 0xff
mov ebp, dword [ebp*4 + 0x56f690]
shr edi, 8
xor esi, dword [eax + 0x18]
xor edx, dword [eax + 0x10]
and edi, 0xff
xor ebp, dword [edi*4 + 0x56f290]
mov edi, ecx
shr edi, 0x18
xor ebp, dword [edi*4 + 0x56fa90]
mov edi, ebx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x56f690]
shr ecx, 8
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x56f290]
mov ecx, dword [esp + 0x28]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x56fa90]
mov ecx, dword [esp + 0x2c]
add eax, 0x10
and edi, 0xff
xor ebp, dword [edi*4 + 0x56ee90]
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x56ee90]
xor ebp, dword [eax + 0xc]
xor ebx, dword [eax + 4]
sub dword [esp + 0x10], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edx
je 0x417031
mov ecx, ebp
mov edi, edx
shr edi, 0x10
and edi, 0xff
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x56f290]
xor ecx, dword [edi*4 + 0x56f690]
mov edi, ebx
shr edi, 0x18
xor ecx, dword [edi*4 + 0x56fa90]
mov edi, esi
and edi, 0xff
xor ecx, dword [edi*4 + 0x56ee90]
mov edi, ebx
shr edi, 8
and edi, 0xff
shr esi, 0x10
and esi, 0xff
mov dword [esp + 0x14], esi
mov esi, dword [edi*4 + 0x56f290]
mov edi, dword [esp + 0x14]
xor esi, dword [edi*4 + 0x56f690]
mov edi, ebp
shr edi, 0x18
xor esi, dword [edi*4 + 0x56fa90]
mov edi, edx
and edi, 0xff
xor esi, dword [edi*4 + 0x56ee90]
mov edi, ebx
shr edi, 0x10
and edi, 0xff
shr edx, 8
and edx, 0xff
mov dword [esp + 0x14], edx
mov edx, dword [edi*4 + 0x56f690]
mov edi, dword [esp + 0x14]
xor edx, dword [edi*4 + 0x56f290]
mov edi, dword [esp + 0x20]
shr edi, 0x18
xor edx, dword [edi*4 + 0x56fa90]
mov edi, ebp
xor esi, dword [eax + 0x10]
and edi, 0xff
xor edx, dword [edi*4 + 0x56ee90]
mov edi, dword [esp + 0x20]
xor edx, dword [eax + 0x1c]
shr ebp, 0x10
and ebp, 0xff
xor ecx, dword [eax + 0x18]
shr edi, 8
and edi, 0xff
mov dword [esp + 0x14], edi
mov edi, dword [ebp*4 + 0x56f690]
mov ebp, dword [esp + 0x14]
xor edi, dword [ebp*4 + 0x56f290]
mov ebp, dword [esp + 0x18]
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x56fa90]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x56ee90]
mov ebx, edx
xor edi, dword [eax + 0x14]
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x56f290]
mov ebp, esi
shr ebp, 0x10
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x56f690]
mov ebp, edi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x56fa90]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x56ee90]
add eax, 0x20
xor ebx, dword [eax + 8]
mov dword [esp + 0x20], ebx
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x56f690]
mov ebp, edi
shr ebp, 8
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x56f290]
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x56fa90]
mov ebp, esi
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x56ee90]
mov ebp, esi
xor ebx, dword [eax]
shr ebp, 8
mov dword [esp + 0x18], ebx
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x56f690]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x56f290]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x56fa90]
mov ebp, edx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x56ee90]
shr edx, 0x10
xor ebx, dword [eax + 0xc]
and edx, 0xff
mov ebp, ebx
mov ebx, dword [edx*4 + 0x56f690]
mov edx, dword [esp + 0x18]
shr ecx, 8
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x56f290]
shr esi, 0x18
xor ebx, dword [esi*4 + 0x56fa90]
mov esi, dword [esp + 0x20]
and edi, 0xff
xor ebx, dword [edi*4 + 0x56ee90]
xor ebx, dword [eax + 4]
sub dword [esp + 0x10], 1
jne 0x416df4
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + 0x56a418]
mov edi, ebp
shr edi, 0x18
movzx edi, byte [edi + 0x56a418]
shl edi, 8
or ecx, edi
shl ecx, 8
mov edi, ebx
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x56a418]
or ecx, edi
shl ecx, 8
mov edi, edx
and edi, 0xff
movzx edi, byte [edi + 0x56a418]
or ecx, edi
xor ecx, dword [eax + 0x10]
mov edi, dword [esp + 0x3c]
mov dword [edi], ecx
add eax, 0x10
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi + 0x56a418]
shl edi, 8
mov ecx, ebp
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + 0x56a418]
or ecx, edi
shl ecx, 8
mov edi, esi
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x56a418]
or ecx, edi
shl ecx, 8
mov edi, ebx
and edi, 0xff
movzx edi, byte [edi + 0x56a418]
or ecx, edi
xor ecx, dword [eax + 4]
mov edi, dword [esp + 0x3c]
mov dword [edi + 4], ecx
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
movzx edi, byte [ecx + 0x56a418]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x56a418]
shl ecx, 8
or edi, ecx
mov ecx, ebp
shr ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x56a418]
shl edi, 8
or edi, ecx
mov ecx, esi
and ecx, 0xff
movzx ecx, byte [ecx + 0x56a418]
shl edi, 8
or edi, ecx
xor edi, dword [eax + 8]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 8], edi
shr esi, 0x18
movzx esi, byte [esi + 0x56a418]
shr ebx, 0x10
and ebx, 0xff
movzx edi, byte [ebx + 0x56a418]
shl esi, 8
or edi, esi
shr edx, 8
shl edi, 8
and edx, 0xff
movzx edx, byte [edx + 0x56a418]
or edi, edx
and ebp, 0xff
movzx edx, byte [ebp + 0x56a418]
shl edi, 8
or edi, edx
xor edi, dword [eax + 0xc]
mov dword [ecx + 0xc], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret