Function at 0x52a0c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x24
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
cmp byte [edi + 4], 0
je 0x52a468
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 4]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [esi + 2]
shl eax, 8
or ebx, eax
movzx edx, byte [esi + 0xc]
movzx eax, byte [esi + 3]
or ebx, eax
shl edx, 0x18
movzx eax, byte [esi + 5]
shl eax, 0x10
or ecx, eax
xor ebx, dword [edi + 0x1e8]
movzx eax, byte [esi + 6]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [esi + 7]
or ecx, eax
movzx eax, byte [esi + 8]
xor ecx, dword [edi + 0x1ec]
mov dword [esp + 0x10], ecx
movzx ecx, byte [esi + 9]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 0xa]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 0xb]
or eax, ecx
movzx ecx, byte [esi + 0xd]
xor eax, dword [edi + 0x1f0]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [esi + 0xe]
shl ecx, 8
mov dword [esp + 0x38], ecx
movzx ecx, byte [esi + 0xf]
or dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x38]
or ecx, edx
mov edx, dword [edi + 0x3d0]
xor ecx, dword [edi + 0x1f4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], edx
cmp edx, 1
jle 0x52a2cb
lea esi, [edi + 0x210]
dec edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edx
sar ecx, 8
movzx edx, cl
mov ebp, dword [esp + 0x10]
mov ecx, ebp
sar ecx, 0x18
movzx ecx, cl
mov edi, dword [edx*4 + 0x542180]
xor edi, dword [ecx*4 + 0x542980]
mov ecx, ebx
sar ecx, 0x10
movzx ecx, cl
xor edi, dword [ecx*4 + 0x542580]
movzx ecx, al
xor edi, dword [ecx*4 + 0x541d80]
mov ecx, eax
xor edi, dword [esi - 4]
sar ecx, 0x18
movzx edx, cl
mov ecx, ebp
sar ecx, 0x10
movzx ecx, cl
mov esi, dword [edx*4 + 0x542980]
mov edx, dword [esp + 0x38]
xor esi, dword [ecx*4 + 0x542580]
mov ecx, ebx
sar ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x542180]
movzx ecx, dl
xor esi, dword [ecx*4 + 0x541d80]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx]
mov ecx, edx
sar ecx, 0x18
movzx edx, cl
mov ecx, eax
sar ecx, 0x10
movzx ecx, cl
sar eax, 8
mov edx, dword [edx*4 + 0x542980]
movzx eax, al
xor edx, dword [ecx*4 + 0x542580]
mov ecx, ebp
sar ecx, 8
movzx ecx, cl
mov ebp, dword [esp + 0x18]
xor edx, dword [ecx*4 + 0x542180]
movzx ecx, bl
sar ebx, 0x18
xor edx, dword [ecx*4 + 0x541d80]
mov ecx, dword [esp + 0x38]
xor edx, dword [ebp + 4]
sar ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x542580]
xor ecx, dword [eax*4 + 0x542180]
movzx eax, bl
xor ecx, dword [eax*4 + 0x542980]
mov eax, dword [esp + 0x10]
movzx eax, al
mov dword [esp + 0x10], edi
xor ecx, dword [eax*4 + 0x541d80]
mov eax, esi
xor ecx, dword [ebp - 8]
add ebp, 0x20
sub dword [esp + 0x20], 1
mov ebx, ecx
mov ecx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], ecx
mov esi, ebp
jne 0x52a1a6
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
shl edx, 5
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
mov ebx, dword [edx + edi + 0x1e8]
mov edx, ebx
mov edi, dword [esp + 0x18]
mov ecx, edi
sar ecx, 0x18
movzx ecx, cl
sar edx, 0x18
xor dl, byte [ecx + 0x543d80]
mov ecx, dword [esp + 0x38]
sar ecx, 0x10
movzx ecx, cl
mov byte [esi], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + 0x543d80]
mov ecx, eax
sar ecx, 8
movzx ecx, cl
mov byte [esi + 1], dl
mov edx, ebx
sar edx, 8
xor dl, byte [ecx + 0x543d80]
mov byte [esi + 2], dl
mov edx, dword [esp + 0x10]
movzx ecx, dl
movzx ecx, byte [ecx + 0x543d80]
xor cl, bl
mov ebx, dword [esp + 0x1c]
mov byte [esi + 3], cl
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + ebx + 0x1ec]
mov ecx, edx
sar ecx, 0x18
mov edx, ebx
movzx ecx, cl
sar edx, 0x18
xor dl, byte [ecx + 0x543d80]
mov ecx, edi
sar ecx, 0x10
movzx ecx, cl
mov byte [esi + 4], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + 0x543d80]
mov ecx, dword [esp + 0x38]
sar ecx, 8
movzx ecx, cl
mov byte [esi + 5], dl
mov edx, ebx
sar edx, 8
xor dl, byte [ecx + 0x543d80]
mov byte [esi + 6], dl
mov edx, dword [esp + 0x14]
movzx ecx, al
movzx ecx, byte [ecx + 0x543d80]
xor cl, bl
mov byte [esi + 7], cl
mov ecx, dword [esp + 0x1c]
mov ebx, dword [edx + ecx + 0x1f0]
mov ecx, eax
sar ecx, 0x18
mov edx, ebx
movzx ecx, cl
sar edx, 0x18
xor dl, byte [ecx + 0x543d80]
mov ecx, dword [esp + 0x10]
sar ecx, 0x10
mov byte [esi + 8], dl
mov edx, ebx
movzx ecx, cl
sar edx, 0x10
xor dl, byte [ecx + 0x543d80]
mov ecx, edi
mov byte [esi + 9], dl
mov edx, ebx
sar ecx, 8
movzx ecx, cl
sar edx, 8
xor dl, byte [ecx + 0x543d80]
mov byte [esi + 0xa], dl
mov edx, dword [esp + 0x38]
movzx ecx, dl
sar edx, 0x18
sar eax, 0x10
movzx eax, al
movzx ecx, byte [ecx + 0x543d80]
xor cl, bl
mov ebx, dword [esp + 0x14]
mov byte [esi + 0xb], cl
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ebx + ecx + 0x1f4]
movzx ecx, dl
mov edx, ebx
sar edx, 0x18
xor dl, byte [ecx + 0x543d80]
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [eax + 0x543d80]
mov eax, dword [esp + 0x10]
sar eax, 8
movzx eax, al
mov byte [esi + 0xd], cl
mov ecx, ebx
sar ecx, 8
mov byte [esi + 0xc], dl
xor cl, byte [eax + 0x543d80]
mov eax, edi
movzx eax, al
mov byte [esi + 0xe], cl
mov al, byte [eax + 0x543d80]
xor al, bl
mov byte [esi + 0xf], al
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret 8
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], vtable.std::exception.0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str.Object_not_Initialized
xorps xmm0, xmm0
mov byte [esp + 0x1c], 1
push eax
movq qword [esp + 0x28], xmm0
call fcn.00441924
add esp, 8
lea eax, [esp + 0x1c]
push 0x552cfc
push eax
call fcn.00442573
int3