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

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov ebx, ecx
mov esi, eax
ror esi, 8
and esi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or esi, eax
mov eax, dword [esp + 0x18]
xor esi, dword [eax]
ror ebx, 8
and ebx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or ebx, ecx
mov ecx, dword [edi + 8]
xor ebx, dword [eax + 4]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov ecx, dword [edi + 0xc]
xor edx, dword [eax + 8]
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
xor edi, dword [eax + 0xc]
mov ecx, edx
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42aaf8]
mov ebp, ebx
shr ebp, 0x10
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x42a6f8]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x42a2f8]
mov ebp, edi
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x42aef8]
mov dword [esp + 0x20], edx
shr edx, 0x10
mov ebp, edi
shr ebp, 8
and ebp, 0xff
xor ecx, dword [eax + 0x10]
and edx, 0xff
mov dword [esp + 0x18], edx
mov edx, dword [ebp*4 + 0x42aaf8]
mov ebp, dword [esp + 0x18]
xor edx, dword [ebp*4 + 0x42a6f8]
mov ebp, ebx
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x42a2f8]
mov ebp, esi
and ebp, 0xff
xor edx, dword [ebp*4 + 0x42aef8]
mov dword [esp + 0x10], edi
xor edx, dword [eax + 0x14]
shr edi, 0x10
mov ebp, esi
shr ebp, 8
and edi, 0xff
and ebp, 0xff
mov dword [esp + 0x18], ebp
mov ebp, dword [edi*4 + 0x42a6f8]
mov edi, dword [esp + 0x18]
xor ebp, dword [edi*4 + 0x42aaf8]
mov edi, dword [esp + 0x20]
shr edi, 0x18
xor ebp, dword [edi*4 + 0x42a2f8]
mov edi, ebx
shr ebx, 8
shr esi, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x42aaf8]
and esi, 0xff
xor ebx, dword [esi*4 + 0x42a6f8]
mov esi, dword [esp + 0x10]
shr esi, 0x18
xor ebx, dword [esi*4 + 0x42a2f8]
mov esi, dword [esp + 0x20]
and esi, 0xff
xor ebx, dword [esi*4 + 0x42aef8]
mov esi, dword [esp + 0x1c]
xor ebx, dword [eax + 0x1c]
and edi, 0xff
xor ebp, dword [edi*4 + 0x42aef8]
sar esi, 1
xor ebp, dword [eax + 0x18]
add eax, 0x20
sub esi, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], esi
je 0x40ebcb
mov esi, ebp
mov edi, edx
shr edi, 0x10
and edi, 0xff
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x42aaf8]
xor esi, dword [edi*4 + 0x42a6f8]
mov edi, ecx
shr edi, 0x18
xor esi, dword [edi*4 + 0x42a2f8]
mov edi, ebx
and edi, 0xff
xor esi, dword [edi*4 + 0x42aef8]
mov edi, ebx
shr ebp, 0x10
and ebp, 0xff
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x42aaf8]
xor edi, dword [ebp*4 + 0x42a6f8]
mov ebp, edx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x42a2f8]
mov ebp, ecx
and ebp, 0xff
xor edi, dword [ebp*4 + 0x42aef8]
mov ebp, ecx
shr ebx, 0x10
xor edi, dword [eax + 4]
and ebx, 0xff
shr ebp, 8
and ebp, 0xff
mov dword [esp + 0x20], ebp
mov ebp, dword [ebx*4 + 0x42a6f8]
mov ebx, dword [esp + 0x20]
xor ebp, dword [ebx*4 + 0x42aaf8]
mov ebx, dword [esp + 0x18]
xor esi, dword [eax]
shr ebx, 0x18
xor ebp, dword [ebx*4 + 0x42a2f8]
mov ebx, edx
shr edx, 8
and edx, 0xff
shr ecx, 0x10
and ecx, 0xff
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x42aef8]
mov ebx, dword [edx*4 + 0x42aaf8]
xor ebx, dword [ecx*4 + 0x42a6f8]
mov edx, dword [esp + 0x10]
xor ebp, dword [eax + 8]
mov ecx, dword [esp + 0x18]
shr edx, 0x18
xor ebx, dword [edx*4 + 0x42a2f8]
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x42aef8]
mov edx, ebp
xor ebx, dword [eax + 0xc]
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x42aaf8]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x42a6f8]
mov ecx, esi
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x42a2f8]
mov ecx, ebx
and ecx, 0xff
xor edx, dword [ecx*4 + 0x42aef8]
mov dword [esp + 0x20], ebp
xor edx, dword [eax + 0x10]
shr ebp, 0x10
mov ecx, edx
mov edx, ebx
shr edx, 8
and edx, 0xff
mov dword [esp + 0x10], ebx
and ebp, 0xff
mov edx, dword [edx*4 + 0x42aaf8]
xor edx, dword [ebp*4 + 0x42a6f8]
mov ebp, edi
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x42a2f8]
mov ebp, esi
and ebp, 0xff
xor edx, dword [ebp*4 + 0x42aef8]
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x42a6f8]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x42aaf8]
mov ebp, dword [esp + 0x20]
xor edx, dword [eax + 0x14]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x42a2f8]
mov ebp, edi
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x42aef8]
shr esi, 0x10
xor ebx, dword [eax + 0x18]
shr edi, 8
mov ebp, ebx
mov dword [esp + 0x18], ebx
and esi, 0xff
and edi, 0xff
mov ebx, dword [edi*4 + 0x42aaf8]
xor ebx, dword [esi*4 + 0x42a6f8]
mov esi, dword [esp + 0x10]
shr esi, 0x18
xor ebx, dword [esi*4 + 0x42a2f8]
mov esi, dword [esp + 0x20]
and esi, 0xff
xor ebx, dword [esi*4 + 0x42aef8]
add eax, 0x20
xor ebx, dword [eax - 4]
sub dword [esp + 0x1c], 1
mov dword [esp + 0x10], ebx
jne 0x40e996
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff0000
mov edi, ebp
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff000000
xor esi, edi
mov edi, ebx
and edi, 0xff
movzx edi, byte [edi*4 + str.ccccwwww]
xor esi, edi
xor esi, dword [eax]
mov edi, esi
ror edi, 8
and edi, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or edi, esi
mov esi, dword [esp + 0x24]
mov dword [esi], edi
mov esi, ebp
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff0000
mov edi, ebx
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff000000
xor esi, edi
mov edi, ecx
and edi, 0xff
movzx edi, byte [edi*4 + str.ccccwwww]
xor esi, edi
xor esi, dword [eax + 4]
mov edi, esi
ror edi, 8
and edi, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or edi, esi
mov esi, dword [esp + 0x24]
mov dword [esi + 4], edi
mov esi, ebx
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + str.ccccwwww]
mov edi, ecx
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff00
and esi, 0xff0000
xor esi, edi
mov edi, ebp
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff000000
xor esi, edi
mov edi, edx
and edi, 0xff
movzx edi, byte [edi*4 + str.ccccwwww]
xor esi, edi
xor esi, dword [eax + 8]
mov edi, esi
ror edi, 8
and edi, 0xff00ff00
shr ecx, 0x10
rol esi, 8
shr edx, 8
and esi, 0xff00ff
and ecx, 0xff
or edi, esi
mov esi, dword [esp + 0x24]
and edx, 0xff
mov dword [esi + 8], edi
mov ecx, dword [ecx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and ecx, 0xff0000
and edx, 0xff00
xor ecx, edx
shr ebx, 0x18
mov edx, dword [ebx*4 + str.ccccwwww]
and edx, 0xff000000
xor ecx, edx
and ebp, 0xff
movzx edx, byte [ebp*4 + str.ccccwwww]
xor ecx, edx
xor ecx, dword [eax + 0xc]
pop edi
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [esi + 0xc], eax
pop esi
pop ebp
pop ebx
pop ecx
ret