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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov ecx, dword [esi + 4]
xor edx, dword [eax]
mov ebx, ecx
ror ebx, 8
and ebx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or ebx, ecx
mov ecx, dword [esi + 8]
xor ebx, dword [eax + 4]
mov esi, dword [esi + 0xc]
push edi
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
xor edi, dword [eax + 8]
mov ecx, esi
ror ecx, 8
and ecx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ecx, esi
xor ecx, dword [eax + 0xc]
mov ebp, edi
shr ebp, 8
and ebp, 0xff
mov esi, ecx
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x423450]
xor esi, dword [ebp*4 + 0x423850]
mov ebp, edx
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x423050]
mov dword [esp + 0x14], ecx
shr ecx, 8
mov ebp, ebx
and ebp, 0xff
xor esi, dword [ebp*4 + 0x423c50]
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x423850]
xor ecx, dword [ebp*4 + 0x423450]
xor esi, dword [eax + 0x10]
mov ebp, ebx
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x423050]
mov ebp, edi
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x423c50]
mov dword [esp + 0x10], edx
xor ecx, dword [eax + 0x14]
shr edx, 8
mov ebp, ebx
shr ebp, 0x10
and ebp, 0xff
and edx, 0xff
mov dword [esp + 0x18], edx
mov edx, dword [ebp*4 + 0x423450]
mov ebp, dword [esp + 0x18]
xor edx, dword [ebp*4 + 0x423850]
mov ebp, edi
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x423050]
mov ebp, dword [esp + 0x14]
shr edi, 0x10
shr ebx, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x423450]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x423850]
mov ebx, dword [esp + 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x423050]
mov ebx, dword [esp + 0x10]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x423c50]
mov ebx, dword [esp + 0x20]
xor edi, dword [eax + 0x1c]
and ebp, 0xff
xor edx, dword [ebp*4 + 0x423c50]
sar ebx, 1
xor edx, dword [eax + 0x18]
add eax, 0x20
sub ebx, 1
mov dword [esp + 0x14], ebx
je 0x40616c
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x423450]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x423850]
mov ebp, esi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x423050]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x423c50]
mov ebp, esi
xor ebx, dword [eax]
shr ebp, 0x10
mov dword [esp + 0x10], ebx
and ebp, 0xff
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x423850]
xor ebx, dword [ebp*4 + 0x423450]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x423050]
mov ebp, edx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x423c50]
mov ebp, esi
xor ebx, dword [eax + 4]
shr ebp, 8
mov dword [esp + 0x20], ebx
mov ebx, ecx
shr ebx, 0x10
and ebp, 0xff
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x423450]
xor ebx, dword [ebp*4 + 0x423850]
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x423050]
shr ecx, 8
and ecx, 0xff
mov ebp, edi
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x423c50]
shr edx, 0x10
xor ebx, dword [eax + 8]
and edx, 0xff
mov ebp, dword [edx*4 + 0x423450]
xor ebp, dword [ecx*4 + 0x423850]
shr edi, 0x18
xor ebp, dword [edi*4 + 0x423050]
and esi, 0xff
xor ebp, dword [esi*4 + 0x423c50]
mov edx, ebx
xor ebp, dword [eax + 0xc]
shr edx, 8
mov ecx, ebp
shr ecx, 0x10
and ecx, 0xff
mov esi, dword [ecx*4 + 0x423450]
and edx, 0xff
xor esi, dword [edx*4 + 0x423850]
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x423050]
mov ecx, dword [esp + 0x20]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x423c50]
mov ecx, ebp
xor esi, dword [eax + 0x10]
shr ecx, 8
mov edi, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x423850]
shr edi, 0x10
and edi, 0xff
xor ecx, dword [edi*4 + 0x423450]
mov edi, dword [esp + 0x20]
shr edi, 0x18
xor ecx, dword [edi*4 + 0x423050]
mov edi, ebx
and edi, 0xff
xor ecx, dword [edi*4 + 0x423c50]
mov edi, dword [esp + 0x20]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x423450]
shr edx, 8
and edx, 0xff
xor edi, dword [edx*4 + 0x423850]
mov edx, ebx
xor ecx, dword [eax + 0x14]
shr edx, 0x18
xor edi, dword [edx*4 + 0x423050]
mov edx, ebp
and edx, 0xff
xor edi, dword [edx*4 + 0x423c50]
shr ebx, 0x10
xor edi, dword [eax + 0x18]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x423450]
mov edx, edi
mov edi, dword [esp + 0x20]
shr edi, 8
and edi, 0xff
xor ebx, dword [edi*4 + 0x423850]
mov edi, dword [esp + 0x10]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x423050]
and edi, 0xff
xor ebx, dword [edi*4 + 0x423c50]
add eax, 0x20
xor ebx, dword [eax - 4]
sub dword [esp + 0x14], 1
mov edi, ebx
jne 0x405f43
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 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 ebx, ebp
mov ebp, esi
shr ebp, 0x18
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff000000
xor ebx, ebp
mov ebp, ecx
and ebp, 0xff
movzx ebp, byte [ebp*4 + str.RRRR_t_t_t_tjjjj]
xor ebx, ebp
xor ebx, dword [eax]
mov ebp, ebx
ror ebp, 8
and ebp, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or ebp, ebx
mov ebx, dword [esp + 0x24]
mov dword [ebx], ebp
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff0000
mov ebp, edi
shr ebp, 8
and ebp, 0xff
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff00
xor ebx, ebp
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff000000
xor ebx, ebp
mov ebp, edx
and ebp, 0xff
movzx ebp, byte [ebp*4 + str.RRRR_t_t_t_tjjjj]
xor ebx, ebp
xor ebx, dword [eax + 4]
mov ebp, ebx
ror ebp, 8
and ebp, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or ebp, ebx
mov ebx, dword [esp + 0x24]
mov dword [ebx + 4], ebp
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff00
and ebx, 0xff0000
xor ebx, ebp
mov ebp, edx
shr ebp, 0x18
mov ebp, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ebp, 0xff000000
xor ebx, ebp
mov ebp, edi
and ebp, 0xff
movzx ebp, byte [ebp*4 + str.RRRR_t_t_t_tjjjj]
xor ebx, ebp
xor ebx, dword [eax + 8]
mov ebp, ebx
ror ebp, 8
and ebp, 0xff00ff00
shr edx, 0x10
rol ebx, 8
shr ecx, 8
and ebx, 0xff00ff
and edx, 0xff
or ebp, ebx
mov ebx, dword [esp + 0x24]
and ecx, 0xff
mov dword [ebx + 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 edi, 0x18
mov ecx, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
xor edx, ecx
and esi, 0xff
movzx ecx, byte [esi*4 + str.RRRR_t_t_t_tjjjj]
xor edx, ecx
xor edx, dword [eax + 0xc]
pop edi
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
pop esi
or eax, edx
pop ebp
mov dword [ebx + 0xc], eax
pop ebx
add esp, 0xc
ret