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

Disassembly:
sub esp, 0x10
mov ecx, dword [edx]
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
xor eax, dword [edi]
mov ecx, dword [edx + 4]
mov esi, ecx
ror esi, 8
and esi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or esi, ecx
mov ecx, dword [edx + 8]
xor esi, dword [edi + 4]
mov edx, dword [edx + 0xc]
mov ebx, ecx
ror ebx, 8
and ebx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or ebx, ecx
xor ebx, dword [edi + 8]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
xor ecx, dword [edi + 0xc]
mov dword [esp + 0x14], eax
shr eax, 0x18
mov edx, ecx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x42ab78]
movzx ebp, bh
xor edx, dword [ebp*4 + 0x42af78]
mov ebp, dword [esp + 0x14]
xor edx, dword [eax*4 + 0x42a778]
mov eax, esi
and eax, 0xff
xor edx, dword [eax*4 + 0x42b378]
shr ebp, 0x10
movzx eax, ch
mov eax, dword [eax*4 + 0x42af78]
and ebp, 0xff
xor eax, dword [ebp*4 + 0x42ab78]
xor edx, dword [edi + 0x10]
mov ebp, esi
shr ebp, 0x18
xor eax, dword [ebp*4 + 0x42a778]
mov ebp, ebx
and ebp, 0xff
xor eax, dword [ebp*4 + 0x42b378]
movzx ebp, byte [esp + 0x15]
xor eax, dword [edi + 0x14]
mov dword [esp + 0x18], esi
shr esi, 0x10
mov dword [esp + 0x10], eax
and esi, 0xff
mov eax, dword [esi*4 + 0x42ab78]
xor eax, dword [ebp*4 + 0x42af78]
mov esi, ebx
shr esi, 0x18
xor eax, dword [esi*4 + 0x42a778]
mov dword [esp + 0x1c], ecx
and ecx, 0xff
xor eax, dword [ecx*4 + 0x42b378]
movzx ecx, byte [esp + 0x19]
xor eax, dword [edi + 0x18]
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x42ab78]
xor ebx, dword [ecx*4 + 0x42af78]
mov ecx, dword [esp + 0x1c]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x42a778]
mov ecx, dword [esp + 0x14]
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x42b378]
lea esi, [edi + 0x20]
xor ebx, dword [edi + 0x1c]
mov edi, dword [edi + 0xf0]
sar edi, 1
sub edi, 1
mov dword [esp + 0x1c], ebx
je 0x40df21
jmp 0x40dd20
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42ab78]
movzx ebp, ah
xor ecx, dword [ebp*4 + 0x42af78]
mov ebp, edx
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x42a778]
mov ebp, dword [esp + 0x10]
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x42b378]
mov ebp, edx
xor ecx, dword [esi]
shr ebp, 0x10
mov dword [esp + 0x14], ecx
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x42af78]
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x42ab78]
mov ebp, dword [esp + 0x10]
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x42a778]
mov ebp, eax
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x42b378]
movzx ebp, dh
xor ecx, dword [esi + 4]
and ebx, 0xff
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42ab78]
xor ecx, dword [ebp*4 + 0x42af78]
mov ebp, eax
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x42a778]
shr eax, 0x10
xor ecx, dword [ebx*4 + 0x42b378]
movzx ebx, byte [esp + 0x11]
xor ecx, dword [esi + 8]
and eax, 0xff
mov eax, dword [eax*4 + 0x42ab78]
xor eax, dword [ebx*4 + 0x42af78]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x42a778]
and edx, 0xff
xor eax, dword [edx*4 + 0x42b378]
movzx ebx, ch
xor eax, dword [esi + 0xc]
mov edx, eax
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x42ab78]
xor edx, dword [ebx*4 + 0x42af78]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x42a778]
mov ebp, dword [esp + 0x18]
and ebp, 0xff
xor edx, dword [ebp*4 + 0x42b378]
shr ebx, 0x10
xor edx, dword [esi + 0x10]
and ebx, 0xff
movzx ebp, ah
mov ebp, dword [ebp*4 + 0x42af78]
xor ebp, dword [ebx*4 + 0x42ab78]
mov ebx, dword [esp + 0x18]
shr ebx, 0x18
xor ebp, dword [ebx*4 + 0x42a778]
mov ebx, ecx
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x42b378]
mov ebx, dword [esp + 0x18]
xor ebp, dword [esi + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebp
shr ebx, 0x10
movzx ebp, byte [esp + 0x15]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x42ab78]
xor ebx, dword [ebp*4 + 0x42af78]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x42a778]
and eax, 0xff
xor ebx, dword [eax*4 + 0x42b378]
shr ecx, 0x10
xor ebx, dword [esi + 0x18]
and ecx, 0xff
mov ebp, dword [ecx*4 + 0x42ab78]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
movzx ebx, byte [esp + 0x19]
xor ebp, dword [ebx*4 + 0x42af78]
shr ecx, 0x18
xor ebp, dword [ecx*4 + 0x42a778]
mov ecx, dword [esp + 0x14]
and ecx, 0xff
xor ebp, dword [ecx*4 + 0x42b378]
add esi, 0x20
xor ebp, dword [esi - 4]
sub edi, 1
mov ebx, ebp
mov dword [esp + 0x1c], ebx
jne 0x40dd20
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov edi, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
movzx ecx, ah
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff00
xor edi, ecx
mov ebp, dword [esp + 0x24]
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
xor edi, ecx
mov ecx, dword [esp + 0x10]
and ecx, 0xff
movzx ecx, byte [ecx*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ecx
xor edi, dword [esi]
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
mov dword [ebp], ecx
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov edi, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
movzx ecx, bh
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff00
xor edi, ecx
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
xor edi, ecx
mov ecx, eax
and ecx, 0xff
movzx ecx, byte [ecx*4 + str.RRRR_t_t_t_tjjjj]
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, dword [esp + 0x10]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff0000
movzx edi, dh
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff00
xor ecx, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff000000
xor ecx, edi
mov edi, ebx
and edi, 0xff
movzx edi, byte [edi*4 + str.RRRR_t_t_t_tjjjj]
xor ecx, edi
xor ecx, dword [esi + 8]
shr eax, 0x10
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
mov dword [ebp + 8], edi
and eax, 0xff
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
movzx ecx, byte [esp + 0x11]
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff0000
and ecx, 0xff00
xor eax, ecx
shr ebx, 0x18
mov ecx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
xor eax, ecx
and edx, 0xff
movzx edx, byte [edx*4 + str.RRRR_t_t_t_tjjjj]
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, 0x10
ret