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

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 2]
push ebx
push ebp
movzx ebp, byte [eax + 8]
push esi
movzx esi, byte [eax]
push edi
movzx edi, byte [eax + 5]
shl esi, 8
xor esi, ecx
movzx ecx, byte [eax + 3]
shl esi, 8
xor esi, edx
movzx ebx, byte [eax + 0xd]
shl esi, 8
xor esi, ecx
movzx ecx, byte [eax + 4]
shl ecx, 8
xor ecx, edi
movzx edi, byte [eax + 6]
shl ecx, 8
xor ecx, edi
movzx edi, byte [eax + 7]
mov edx, dword [esp + 0x1c]
shl ecx, 8
xor ecx, edi
movzx edi, byte [eax + 9]
shl ebp, 8
xor ebp, edi
movzx edi, byte [eax + 0xa]
shl ebp, 8
xor ebp, edi
movzx edi, byte [eax + 0xb]
xor esi, dword [edx]
shl ebp, 8
xor ebp, edi
movzx edi, byte [eax + 0xc]
xor ebp, dword [edx + 8]
shl edi, 8
xor edi, ebx
movzx ebx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
xor ecx, dword [edx + 4]
shl edi, 8
xor edi, ebx
shl edi, 8
xor edi, eax
xor edi, dword [edx + 0xc]
mov ebx, ebp
shr ebx, 8
mov eax, edi
and ebx, 0xff
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5bb9d0]
xor eax, dword [ebx*4 + 0x5bbdd0]
mov ebx, esi
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5bb5d0]
mov dword [esp + 0x14], edi
mov ebx, ecx
and ebx, 0xff
xor eax, dword [ebx*4 + 0x5bc1d0]
shr edi, 8
xor eax, dword [edx + 0x10]
and edi, 0xff
mov edi, dword [edi*4 + 0x5bbdd0]
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x5bb9d0]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5bb5d0]
mov ebx, ebp
and ebx, 0xff
xor edi, dword [ebx*4 + 0x5bc1d0]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov ebx, ecx
xor edi, dword [edx + 0x14]
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x5bb9d0]
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x5bbdd0]
mov esi, ebp
shr ebp, 0x10
shr ecx, 8
and ebp, 0xff
mov ebp, dword [ebp*4 + 0x5bb9d0]
and ecx, 0xff
xor ebp, dword [ecx*4 + 0x5bbdd0]
mov ecx, dword [esp + 0x14]
shr ecx, 0x18
xor ebp, dword [ecx*4 + 0x5bb5d0]
mov ecx, dword [esp + 0x1c]
shr esi, 0x18
xor ebx, dword [esi*4 + 0x5bb5d0]
mov esi, dword [esp + 0x14]
and ecx, 0xff
xor ebp, dword [ecx*4 + 0x5bc1d0]
mov ecx, dword [esp + 0x20]
xor ebp, dword [edx + 0x1c]
and esi, 0xff
xor ebx, dword [esi*4 + 0x5bc1d0]
sar ecx, 1
xor ebx, dword [edx + 0x18]
add edx, 0x20
sub ecx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
je 0x525fd1
mov esi, ebx
mov ecx, ebp
shr ecx, 0x10
and ecx, 0xff
shr esi, 8
and esi, 0xff
mov dword [esp + 0x20], esi
mov esi, dword [ecx*4 + 0x5bb9d0]
mov ecx, dword [esp + 0x20]
xor esi, dword [ecx*4 + 0x5bbdd0]
mov ecx, eax
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5bb5d0]
mov ecx, edi
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5bc1d0]
mov ecx, ebp
shr ecx, 8
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x20], eax
mov eax, dword [ecx*4 + 0x5bbdd0]
mov ecx, dword [esp + 0x20]
xor eax, dword [ecx*4 + 0x5bb9d0]
mov ecx, edi
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5bb5d0]
mov ecx, ebx
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5bc1d0]
mov ecx, dword [esp + 0x24]
shr edi, 0x10
and edi, 0xff
shr ecx, 8
and ecx, 0xff
mov dword [esp + 0x20], ecx
mov ecx, dword [edi*4 + 0x5bb9d0]
mov edi, dword [esp + 0x20]
xor ecx, dword [edi*4 + 0x5bbdd0]
mov edi, ebx
shr edi, 0x18
xor ecx, dword [edi*4 + 0x5bb5d0]
mov edi, ebp
and edi, 0xff
xor ecx, dword [edi*4 + 0x5bc1d0]
mov edi, dword [esp + 0x10]
xor ecx, dword [edx + 8]
shr ebx, 0x10
and ebx, 0xff
xor esi, dword [edx]
shr edi, 8
and edi, 0xff
xor eax, dword [edx + 4]
mov dword [esp + 0x20], edi
mov edi, dword [ebx*4 + 0x5bb9d0]
mov ebx, dword [esp + 0x20]
xor edi, dword [ebx*4 + 0x5bbdd0]
mov ebx, dword [esp + 0x24]
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x5bb5d0]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x5bc1d0]
mov ebp, ecx
xor edi, dword [edx + 0xc]
shr ebp, 8
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x5bb9d0]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x5bbdd0]
mov ebp, esi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x5bb5d0]
mov ebp, eax
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x5bc1d0]
xor ebx, dword [edx + 0x10]
mov dword [esp + 0x24], ebx
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x5bbdd0]
mov ebp, esi
shr ebp, 0x10
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x5bb9d0]
mov ebp, eax
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x5bb5d0]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x5bc1d0]
mov ebp, esi
xor ebx, dword [edx + 0x14]
shr ebp, 8
mov dword [esp + 0x10], ebx
and ebp, 0xff
mov ebx, eax
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x5bb9d0]
xor ebx, dword [ebp*4 + 0x5bbdd0]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x5bb5d0]
mov ebp, edi
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x5bc1d0]
shr ecx, 0x10
xor ebx, dword [edx + 0x18]
shr eax, 8
and ecx, 0xff
mov ebp, dword [ecx*4 + 0x5bb9d0]
and eax, 0xff
xor ebp, dword [eax*4 + 0x5bbdd0]
mov eax, dword [esp + 0x24]
shr edi, 0x18
xor ebp, dword [edi*4 + 0x5bb5d0]
mov edi, dword [esp + 0x10]
and esi, 0xff
xor ebp, dword [esi*4 + 0x5bc1d0]
add edx, 0x20
xor ebp, dword [edx - 4]
sub dword [esp + 0x1c], 1
jne 0x525d90
mov ecx, ebp
shr ecx, 0x10
and ecx, 0xff
mov esi, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and esi, 0xff0000
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff00
xor esi, ecx
mov ecx, eax
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edi
and ecx, 0xff
movzx ecx, byte [ecx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, ecx
xor esi, dword [edx]
mov dword [esp + 0x1c], esi
mov ecx, esi
shr ecx, 0x18
mov esi, dword [esp + 0x28]
mov byte [esi], cl
mov ecx, dword [esp + 0x1c]
shr ecx, 0x10
mov byte [esi + 1], cl
mov ecx, dword [esp + 0x1c]
shr ecx, 8
mov byte [esi + 2], cl
movzx ecx, byte [esp + 0x1c]
mov byte [esi + 3], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
mov esi, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and esi, 0xff0000
mov ecx, ebp
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff00
xor esi, ecx
mov ecx, edi
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
xor esi, ecx
mov ecx, ebx
and ecx, 0xff
movzx ecx, byte [ecx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, ecx
xor esi, dword [edx + 4]
mov dword [esp + 0x24], esi
mov ecx, esi
mov esi, dword [esp + 0x28]
shr ecx, 0x18
mov byte [esi + 4], cl
mov ecx, dword [esp + 0x24]
shr ecx, 0x10
mov byte [esi + 5], cl
mov ecx, dword [esp + 0x24]
shr ecx, 8
mov byte [esi + 6], cl
movzx ecx, byte [esp + 0x24]
mov byte [esi + 7], cl
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
mov esi, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
mov ecx, eax
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff00
and esi, 0xff0000
xor esi, ecx
mov ecx, ebx
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
xor esi, ecx
mov ecx, ebp
and ecx, 0xff
movzx ecx, byte [ecx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, ecx
xor esi, dword [edx + 8]
shr ebx, 0x10
mov dword [esp + 0x24], esi
mov ecx, esi
mov esi, dword [esp + 0x28]
shr ecx, 0x18
mov byte [esi + 8], cl
mov ecx, dword [esp + 0x24]
shr ecx, 0x10
mov byte [esi + 9], cl
mov ecx, dword [esp + 0x24]
shr ecx, 8
mov byte [esi + 0xa], cl
movzx ecx, byte [esp + 0x24]
mov byte [esi + 0xb], cl
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
shr edi, 8
and edi, 0xff
mov ecx, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff00
and ebx, 0xff0000
xor ebx, ecx
shr ebp, 0x18
mov ecx, dword [ebp*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
xor ebx, ecx
and eax, 0xff
movzx eax, byte [eax*4 + str.RRRR_t_t_t_tjjjj]
xor ebx, eax
xor ebx, dword [edx + 0xc]
mov eax, esi
mov ecx, ebx
shr ecx, 0x18
pop edi
mov byte [eax + 0xc], cl
mov edx, ebx
mov ecx, ebx
pop esi
shr edx, 0x10
shr ecx, 8
pop ebp
mov byte [eax + 0xf], bl
mov byte [eax + 0xd], dl
mov byte [eax + 0xe], cl
pop ebx
add esp, 8
ret