Function at 0x40e830
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [edx + 4]
push ebx
push ebp
push esi
mov esi, eax
push edi
mov edi, dword [esp + 0x28]
xor ecx, dword [edi]
ror esi, 8
and esi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or esi, eax
mov eax, dword [edx + 8]
xor esi, dword [edi + 4]
mov ebx, eax
ror ebx, 8
and ebx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ebx, eax
mov eax, dword [edx + 0xc]
xor ebx, dword [edi + 8]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
xor edx, dword [edi + 0xc]
mov ebp, esi
shr ebp, 0x10
mov dword [esp + 0x10], edx
and edx, 0xff
and ebp, 0xff
movzx eax, bh
mov eax, dword [eax*4 + 0x40c9d8]
xor eax, dword [ebp*4 + 0x40c5d8]
mov ebp, ecx
shr ebp, 0x18
xor eax, dword [ebp*4 + 0x40c1d8]
mov ebp, ebx
xor eax, dword [edx*4 + 0x40cdd8]
movzx edx, byte [esp + 0x11]
mov edx, dword [edx*4 + 0x40c9d8]
mov dword [esp + 0x28], esi
shr esi, 0x18
shr ebp, 0x10
and ebp, 0xff
xor edx, dword [ebp*4 + 0x40c5d8]
xor eax, dword [edi + 0x10]
xor edx, dword [esi*4 + 0x40c1d8]
mov esi, ecx
and esi, 0xff
xor edx, dword [esi*4 + 0x40cdd8]
movzx esi, ch
xor edx, dword [edi + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x40c5d8]
xor edx, dword [esi*4 + 0x40c9d8]
mov esi, dword [esp + 0x28]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x40c1d8]
and esi, 0xff
xor edx, dword [esi*4 + 0x40cdd8]
movzx esi, byte [esp + 0x29]
xor edx, dword [edi + 0x18]
shr ecx, 0x10
and ecx, 0xff
mov ebx, dword [esi*4 + 0x40c9d8]
xor ebx, dword [ecx*4 + 0x40c5d8]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x40c1d8]
mov ecx, dword [esp + 0x14]
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x40cdd8]
lea esi, [edi + 0x20]
xor ebx, dword [edi + 0x1c]
mov edi, dword [edi + 0xf0]
sar edi, 1
sub edi, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], esi
je 0x40ebdd
mov ebp, dword [esp + 0x20]
shr ebp, 0x10
and ebp, 0xff
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x40c9d8]
xor ecx, dword [ebp*4 + 0x40c5d8]
and ebx, 0xff
mov ebp, eax
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x40c1d8]
xor ecx, dword [ebx*4 + 0x40cdd8]
mov ebx, edx
xor ecx, dword [esi]
movzx esi, byte [esp + 0x11]
mov esi, dword [esi*4 + 0x40c9d8]
shr ebx, 0x10
and ebx, 0xff
xor esi, dword [ebx*4 + 0x40c5d8]
mov ebx, dword [esp + 0x20]
shr ebx, 0x18
mov dword [esp + 0x28], esi
xor esi, dword [ebx*4 + 0x40c1d8]
mov ebx, eax
and ebx, 0xff
xor esi, dword [ebx*4 + 0x40cdd8]
mov ebx, dword [esp + 0x18]
xor esi, dword [ebx + 4]
movzx ebx, ah
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x10]
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x40c5d8]
xor esi, dword [ebx*4 + 0x40c9d8]
mov ebx, edx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x40c1d8]
mov ebx, dword [esp + 0x20]
and ebx, 0xff
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], esi
xor esi, dword [ebx*4 + 0x40cdd8]
mov ebx, dword [esp + 0x18]
xor esi, dword [ebx + 8]
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x14], esi
movzx esi, byte [esp + 0x21]
mov ebx, dword [esi*4 + 0x40c9d8]
xor ebx, dword [eax*4 + 0x40c5d8]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x40c1d8]
and edx, 0xff
xor ebx, dword [edx*4 + 0x40cdd8]
mov edx, dword [esp + 0x14]
xor ebx, dword [esi + 0xc]
shr ebp, 0x10
movzx eax, dh
mov eax, dword [eax*4 + 0x40c9d8]
and ebp, 0xff
xor eax, dword [ebp*4 + 0x40c5d8]
mov ebp, ecx
shr ebp, 0x18
xor eax, dword [ebp*4 + 0x40c1d8]
mov ebp, ebx
and ebp, 0xff
xor eax, dword [ebp*4 + 0x40cdd8]
shr edx, 0x10
xor eax, dword [esi + 0x10]
movzx ebp, bh
mov ebp, dword [ebp*4 + 0x40c9d8]
and edx, 0xff
xor ebp, dword [edx*4 + 0x40c5d8]
mov edx, dword [esp + 0x28]
shr edx, 0x18
xor ebp, dword [edx*4 + 0x40c1d8]
mov edx, ecx
mov dword [esp + 0x10], ebx
and edx, 0xff
xor ebp, dword [edx*4 + 0x40cdd8]
shr ebx, 0x10
xor ebp, dword [esi + 0x14]
and ebx, 0xff
movzx edx, ch
mov dword [esp + 0x20], ebp
mov ebp, dword [ebx*4 + 0x40c5d8]
xor ebp, dword [edx*4 + 0x40c9d8]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
shr edx, 0x18
xor ebp, dword [edx*4 + 0x40c1d8]
mov edx, ebx
movzx ebx, bh
mov ebx, dword [ebx*4 + 0x40c9d8]
shr ecx, 0x10
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x40c5d8]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x40c1d8]
mov ecx, dword [esp + 0x14]
and edx, 0xff
xor ebp, dword [edx*4 + 0x40cdd8]
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x40cdd8]
xor ebp, dword [esi + 0x18]
xor ebx, dword [esi + 0x1c]
add esi, 0x20
sub edi, 1
mov edx, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], esi
jne 0x40e9c1
mov ecx, dword [esp + 0x20]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x40cdd8]
and ecx, 0xff0000
movzx edi, dh
mov edi, dword [edi*4 + 0x40c1d8]
and edi, 0xff00
xor ecx, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [edi*4 + 0x40c9d8]
and edi, 0xff000000
xor ecx, edi
mov ebp, dword [esp + 0x24]
mov edi, ebx
and edi, 0xff
movzx edi, byte [edi*4 + 0x40c5d8]
xor ecx, edi
xor ecx, dword [esi]
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
mov dword [ebp], edi
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov edi, dword [ecx*4 + 0x40cdd8]
and edi, 0xff0000
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x40c1d8]
and ecx, 0xff00
xor edi, ecx
mov ecx, dword [esp + 0x20]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x40c9d8]
and ecx, 0xff000000
xor edi, ecx
mov ecx, eax
and ecx, 0xff
movzx ecx, byte [ecx*4 + 0x40c5d8]
xor edi, ecx
xor edi, dword [esi + 4]
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
mov dword [ebp + 4], ecx
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov edi, dword [ecx*4 + 0x40cdd8]
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x40c1d8]
and ecx, 0xff00
and edi, 0xff0000
xor edi, ecx
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x40c9d8]
and ecx, 0xff000000
xor edi, ecx
mov ecx, dword [esp + 0x20]
and ecx, 0xff
movzx ecx, byte [ecx*4 + 0x40c5d8]
xor edi, ecx
xor edi, dword [esi + 8]
shr eax, 0x10
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
mov dword [ebp + 8], ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x40cdd8]
movzx ecx, byte [esp + 0x21]
mov ecx, dword [ecx*4 + 0x40c1d8]
and eax, 0xff0000
and ecx, 0xff00
xor eax, ecx
shr ebx, 0x18
mov ecx, dword [ebx*4 + 0x40c9d8]
and ecx, 0xff000000
xor eax, ecx
and edx, 0xff
movzx edx, byte [edx*4 + 0x40c5d8]
xor eax, edx
xor eax, dword [esi + 0xc]
pop edi
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
pop esi
mov dword [ebp + 0xc], ecx
pop ebp
pop ebx
add esp, 0xc
ret