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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push ebp
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, dword [esp + 0x10]
xor edx, dword [eax]
push esi
push edi
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
mov ecx, dword [ebx + 8]
xor edi, dword [eax + 4]
mov ebx, dword [ebx + 0xc]
mov esi, ecx
ror esi, 8
and esi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or esi, ecx
xor esi, dword [eax + 8]
mov ecx, ebx
ror ecx, 8
and ecx, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or ecx, ebx
xor ecx, dword [eax + 0xc]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x416538]
xor ebx, dword [ebp*4 + 0x416938]
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x416138]
mov dword [esp + 0x20], ecx
shr ecx, 8
mov ebp, edi
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x416d38]
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x416938]
xor ecx, dword [ebp*4 + 0x416538]
xor ebx, dword [eax + 0x10]
mov ebp, edi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x416138]
mov ebp, esi
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x416d38]
mov dword [esp + 0x18], edx
xor ecx, dword [eax + 0x14]
shr edx, 8
mov ebp, edi
shr ebp, 0x10
and ebp, 0xff
and edx, 0xff
mov dword [esp + 0x10], edx
mov edx, dword [ebp*4 + 0x416538]
mov ebp, dword [esp + 0x10]
xor edx, dword [ebp*4 + 0x416938]
mov ebp, esi
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x416138]
mov ebp, dword [esp + 0x20]
shr esi, 0x10
shr edi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x416538]
and edi, 0xff
xor esi, dword [edi*4 + 0x416938]
mov edi, dword [esp + 0x20]
shr edi, 0x18
xor esi, dword [edi*4 + 0x416138]
mov edi, dword [esp + 0x18]
and edi, 0xff
xor esi, dword [edi*4 + 0x416d38]
mov edi, dword [esp + 0x1c]
xor esi, dword [eax + 0x1c]
and ebp, 0xff
xor edx, dword [ebp*4 + 0x416d38]
sar edi, 1
xor edx, dword [eax + 0x18]
add eax, 0x20
sub edi, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
je 0x404d5f
lea ebx, [ebx]
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x416538]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ebp*4 + 0x416938]
mov ebp, ebx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x416138]
mov ebp, ecx
and ebp, 0xff
xor edi, dword [ebp*4 + 0x416d38]
shr esi, 8
xor edi, dword [eax]
and esi, 0xff
mov esi, dword [esi*4 + 0x416938]
mov dword [esp + 0x18], edi
mov edi, ebx
shr edi, 0x10
and edi, 0xff
xor esi, dword [edi*4 + 0x416538]
mov edi, ecx
shr edi, 0x18
xor esi, dword [edi*4 + 0x416138]
mov edi, edx
and edi, 0xff
xor esi, dword [edi*4 + 0x416d38]
mov edi, ecx
mov ebp, ebx
shr ebp, 8
and ebp, 0xff
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x416538]
xor edi, dword [ebp*4 + 0x416938]
mov ebp, edx
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x416138]
mov ebp, dword [esp + 0x20]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x416d38]
shr edx, 0x10
xor edi, dword [eax + 8]
mov ebp, ecx
shr ebp, 8
and edx, 0xff
mov ecx, dword [edx*4 + 0x416538]
mov edx, dword [esp + 0x20]
xor esi, dword [eax + 4]
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x416938]
and ebx, 0xff
shr edx, 0x18
xor ecx, dword [edx*4 + 0x416138]
xor ecx, dword [ebx*4 + 0x416d38]
mov ebx, edi
xor ecx, dword [eax + 0xc]
shr ebx, 8
mov edx, ecx
shr edx, 0x10
and ebx, 0xff
and edx, 0xff
mov ebp, dword [edx*4 + 0x416538]
xor ebp, dword [ebx*4 + 0x416938]
mov edx, dword [esp + 0x18]
mov ebx, edx
shr ebx, 0x18
xor ebp, dword [ebx*4 + 0x416138]
mov ebx, esi
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x416d38]
mov dword [esp + 0x20], ecx
xor ebp, dword [eax + 0x10]
shr ecx, 8
mov ebx, ebp
mov ebp, edx
shr ebp, 0x10
and ecx, 0xff
and ebp, 0xff
mov ecx, dword [ecx*4 + 0x416938]
xor ecx, dword [ebp*4 + 0x416538]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x416138]
mov ebp, edi
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x416d38]
mov ebp, esi
xor ecx, dword [eax + 0x14]
shr ebp, 0x10
shr edx, 8
and ebp, 0xff
mov ebp, dword [ebp*4 + 0x416538]
and edx, 0xff
xor ebp, dword [edx*4 + 0x416938]
mov edx, edi
shr edi, 0x10
shr esi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x416538]
and esi, 0xff
xor edi, dword [esi*4 + 0x416938]
mov esi, dword [esp + 0x20]
shr edx, 0x18
xor ebp, dword [edx*4 + 0x416138]
mov edx, dword [esp + 0x20]
shr esi, 0x18
xor edi, dword [esi*4 + 0x416138]
mov esi, dword [esp + 0x18]
and edx, 0xff
xor ebp, dword [edx*4 + 0x416d38]
and esi, 0xff
xor edi, dword [esi*4 + 0x416d38]
xor ebp, dword [eax + 0x18]
xor edi, dword [eax + 0x1c]
add eax, 0x20
sub dword [esp + 0x1c], 1
mov edx, ebp
mov esi, edi
mov dword [esp + 0x20], edi
jne 0x404b30
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
mov ebp, edx
shr ebp, 8
and ebp, 0xff
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff00
xor edi, ebp
mov ebp, ebx
shr ebp, 0x18
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff000000
xor edi, ebp
mov ebp, ecx
and ebp, 0xff
movzx ebp, byte [ebp*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ebp
xor edi, dword [eax]
mov ebp, edi
ror ebp, 8
and ebp, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebp, edi
mov edi, dword [esp + 0x24]
mov dword [edi], ebp
mov edi, ebx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
mov ebp, esi
shr ebp, 8
and ebp, 0xff
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff00
xor edi, ebp
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff000000
xor edi, ebp
mov ebp, edx
and ebp, 0xff
movzx ebp, byte [ebp*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ebp
xor edi, dword [eax + 4]
mov ebp, edi
ror ebp, 8
and ebp, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebp, edi
mov edi, dword [esp + 0x24]
mov dword [edi + 4], ebp
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
mov ebp, ebx
shr ebp, 8
and ebp, 0xff
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff00
and edi, 0xff0000
xor edi, ebp
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff000000
xor edi, ebp
mov ebp, esi
and ebp, 0xff
movzx ebp, byte [ebp*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ebp
xor edi, dword [eax + 8]
mov ebp, edi
ror ebp, 8
and ebp, 0xff00ff00
shr edx, 0x10
rol edi, 8
shr ecx, 8
and edi, 0xff00ff
and edx, 0xff
or ebp, edi
mov edi, dword [esp + 0x24]
and ecx, 0xff
mov dword [edi + 8], ebp
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff0000
and ecx, 0xff00
xor edx, ecx
shr esi, 0x18
mov ecx, dword [esi*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
xor edx, ecx
and ebx, 0xff
movzx ecx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor edx, ecx
xor edx, dword [eax + 0xc]
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or eax, edx
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret