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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xa4], 0
je 0x418a76
mov esi, dword [ebp + 8]
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 5]
shl eax, 0x10
movzx edx, byte [esi + 8]
shl ebx, 0x18
or ebx, eax
shl ecx, 0x10
movzx eax, byte [esi + 2]
shl eax, 8
or ebx, eax
shl edx, 0x18
movzx eax, byte [esi + 3]
or ebx, eax
movzx eax, byte [esi + 4]
shl eax, 0x18
or eax, ecx
xor ebx, dword [edi + 0xb4]
movzx ecx, byte [esi + 6]
shl ecx, 8
or eax, ecx
mov dword [ebp - 8], ebx
movzx ecx, byte [esi + 7]
or eax, ecx
movzx ecx, byte [esi + 9]
shl ecx, 0x10
or edx, ecx
xor eax, dword [edi + 0xb8]
movzx ecx, byte [esi + 0xa]
shl ecx, 8
or edx, ecx
movzx ecx, byte [esi + 0xb]
or edx, ecx
movzx ecx, byte [esi + 0xd]
xor edx, dword [edi + 0xbc]
shl ecx, 0x10
mov dword [ebp - 4], edx
movzx edx, byte [esi + 0xc]
shl edx, 0x18
or edx, ecx
movzx ecx, byte [esi + 0xe]
shl ecx, 8
mov dword [ebp + 8], ecx
movzx ecx, byte [esi + 0xf]
or dword [ebp + 8], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0xb0]
or ecx, edx
xor ecx, dword [edi + 0xc0]
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], esi
cmp esi, 1
jle 0x4188ed
lea edx, [edi + 0xdc]
mov dword [ebp - 8], edx
lea edx, [esi - 1]
mov dword [ebp - 0x10], edx
sar ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 4]
sar ecx, 0x10
movzx ecx, cl
mov edi, dword [edx*4 + 0x5110d0]
xor edi, dword [ecx*4 + 0x5114d0]
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
xor edi, dword [ecx*4 + 0x5118d0]
movzx ecx, bl
xor edi, dword [ecx*4 + 0x510cd0]
mov ecx, dword [ebp - 8]
xor edi, dword [ecx - 4]
mov ecx, dword [ebp + 8]
sar ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx ecx, cl
mov esi, dword [edx*4 + 0x5114d0]
xor esi, dword [ecx*4 + 0x5118d0]
mov ecx, ebx
sar ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x5110d0]
movzx ecx, al
xor esi, dword [ecx*4 + 0x510cd0]
mov ecx, dword [ebp - 8]
xor esi, dword [ecx]
mov ecx, dword [ebp + 8]
sar ecx, 0x18
movzx edx, cl
mov ecx, eax
sar ecx, 8
movzx ecx, cl
sar eax, 0x10
mov edx, dword [edx*4 + 0x5118d0]
movzx eax, al
xor edx, dword [ecx*4 + 0x5110d0]
mov ecx, ebx
sar ecx, 0x10
movzx ecx, cl
sar ebx, 0x18
xor edx, dword [ecx*4 + 0x5114d0]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x510cd0]
mov ecx, dword [ebp - 8]
xor edx, dword [ecx + 4]
mov ecx, dword [ebp - 4]
sar ecx, 8
movzx ecx, cl
mov dword [ebp - 4], esi
mov ecx, dword [ecx*4 + 0x5110d0]
xor ecx, dword [eax*4 + 0x5114d0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5118d0]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x510cd0]
mov eax, dword [ebp - 8]
add dword [ebp - 8], 0x20
xor ecx, dword [eax - 8]
mov eax, edi
sub dword [ebp - 0x10], 1
mov ebx, ecx
mov ecx, edx
mov dword [ebp + 8], ecx
jne 0x4187d2
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 8]
sar ecx, 0x18
movzx ecx, cl
shl esi, 5
mov dword [ebp - 0xc], esi
mov ebx, dword [esi + edi + 0xb4]
mov edx, ebx
mov esi, dword [ebp + 0xc]
sar edx, 0x18
xor dl, byte [ecx + 0x511dd0]
mov ecx, eax
sar ecx, 0x10
movzx ecx, cl
mov byte [esi], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + 0x511dd0]
mov ecx, dword [ebp - 4]
sar ecx, 8
movzx ecx, cl
mov byte [esi + 1], dl
mov edx, ebx
sar edx, 8
xor dl, byte [ecx + 0x511dd0]
mov ecx, dword [ebp + 8]
movzx ecx, cl
mov byte [esi + 2], dl
movzx ecx, byte [ecx + 0x511dd0]
xor cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [esi + 3], cl
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
mov ebx, dword [ebx + edi + 0xb8]
mov edx, ebx
sar edx, 0x18
xor dl, byte [ecx + 0x511dd0]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
movzx ecx, cl
mov byte [esi + 4], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + 0x511dd0]
mov ecx, dword [ebp + 8]
sar ecx, 8
movzx ecx, cl
mov byte [esi + 5], dl
mov edx, ebx
sar edx, 8
xor dl, byte [ecx + 0x511dd0]
mov ecx, dword [ebp - 8]
movzx ecx, cl
mov byte [esi + 6], dl
movzx ecx, byte [ecx + 0x511dd0]
xor cl, bl
mov byte [esi + 7], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + edi + 0xbc]
mov edx, ebx
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx ecx, cl
sar edx, 0x18
xor dl, byte [ecx + 0x511dd0]
mov ecx, dword [ebp + 8]
sar ecx, 0x10
mov byte [esi + 8], dl
mov edx, ebx
movzx ecx, cl
sar edx, 0x10
xor dl, byte [ecx + 0x511dd0]
mov ecx, dword [ebp - 8]
sar ecx, 8
mov byte [esi + 9], dl
mov edx, ebx
movzx ecx, cl
sar edx, 8
xor dl, byte [ecx + 0x511dd0]
mov byte [esi + 0xa], dl
movzx ecx, al
sar eax, 8
movzx eax, al
movzx ecx, byte [ecx + 0x511dd0]
xor cl, bl
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + edi + 0xc0]
mov edx, ebx
mov ecx, dword [ebp + 8]
sar ecx, 0x18
movzx ecx, cl
sar edx, 0x18
pop edi
xor dl, byte [ecx + 0x511dd0]
mov ecx, dword [ebp - 8]
sar ecx, 0x10
mov byte [esi + 0xc], dl
mov edx, ebx
movzx ecx, cl
sar edx, 0x10
xor dl, byte [ecx + 0x511dd0]
mov ecx, ebx
sar ecx, 8
xor cl, byte [eax + 0x511dd0]
mov eax, dword [ebp - 4]
movzx eax, al
mov byte [esi + 0xd], dl
mov byte [esi + 0xe], cl
mov al, byte [eax + 0x511dd0]
xor al, bl
mov byte [esi + 0xf], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.Object_not_Initialized
lea ecx, [ebp - 0x20]
call fcn.00419800
push 0x543388
lea eax, [ebp - 0x20]
push eax
call fcn.004f45c8
int3