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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], eax
cmp byte [edx + 4], 0
je 0x40e54c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
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 eax, byte [esi + 3]
or ebx, eax
movzx eax, byte [esi + 5]
shl eax, 0x10
or ecx, eax
xor ebx, dword [edx + 0x1e8]
movzx eax, byte [esi + 6]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x14], ebx
movzx eax, byte [esi + 7]
or ecx, eax
movzx eax, byte [esi + 8]
xor ecx, dword [edx + 0x1ec]
mov dword [ebp - 0x1c], 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 [edx + 0x1f0]
movzx edx, byte [esi + 0xc]
shl ecx, 0x10
shl edx, 0x18
or edx, ecx
movzx ecx, byte [esi + 0xe]
shl ecx, 8
mov dword [ebp - 0x18], ecx
movzx ecx, byte [esi + 0xf]
or dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
or ecx, edx
mov edx, dword [ebp - 0x24]
xor ecx, dword [edx + 0x1f4]
mov esi, dword [edx + 0x3d0]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], esi
cmp esi, 1
jle 0x40e39c
add edx, 0x210
mov dword [ebp - 0x14], edx
lea edx, [esi - 1]
mov dword [ebp - 8], edx
sar ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x18
movzx ecx, cl
mov edi, dword [edx*4 + 0x4b34a0]
xor edi, dword [ecx*4 + 0x4b3ca0]
mov ecx, ebx
sar ecx, 0x10
movzx ecx, cl
xor edi, dword [ecx*4 + 0x4b38a0]
movzx ecx, al
xor edi, dword [ecx*4 + 0x4b30a0]
mov ecx, dword [ebp - 0x14]
xor edi, dword [ecx - 4]
mov ecx, eax
sar ecx, 0x18
movzx edx, cl
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x10
movzx ecx, cl
mov esi, dword [edx*4 + 0x4b3ca0]
mov edx, dword [ebp - 0x18]
xor esi, dword [ecx*4 + 0x4b38a0]
mov ecx, ebx
sar ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x4b34a0]
movzx ecx, dl
xor esi, dword [ecx*4 + 0x4b30a0]
mov ecx, dword [ebp - 0x14]
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 + 0x4b3ca0]
movzx eax, al
xor edx, dword [ecx*4 + 0x4b38a0]
mov ecx, dword [ebp - 0x1c]
sar ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4b34a0]
movzx ecx, bl
sar ebx, 0x18
xor edx, dword [ecx*4 + 0x4b30a0]
mov ecx, dword [ebp - 0x14]
xor edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4b38a0]
xor ecx, dword [eax*4 + 0x4b34a0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4b3ca0]
mov eax, dword [ebp - 0x1c]
movzx eax, al
mov dword [ebp - 0x1c], edi
xor ecx, dword [eax*4 + 0x4b30a0]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x14], 0x20
xor ecx, dword [eax - 8]
mov eax, esi
sub dword [ebp - 8], 1
mov ebx, ecx
mov ecx, edx
mov dword [ebp - 0x18], ecx
jne 0x40e282
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
shl esi, 5
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x10]
mov ebx, dword [esi + edx + 0x1e8]
mov edx, ebx
mov esi, dword [ebp - 0x14]
mov ecx, esi
sar ecx, 0x18
movzx ecx, cl
sar edx, 0x18
xor dl, byte [ecx + 0x4b50a0]
mov ecx, dword [ebp - 0x10]
mov byte [ecx], dl
mov edx, ebx
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
movzx ecx, cl
sar edx, 0x10
xor dl, byte [ecx + 0x4b50a0]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 1], dl
mov ecx, eax
sar ecx, 8
mov edx, ebx
movzx ecx, cl
sar edx, 8
xor dl, byte [ecx + 0x4b50a0]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 2], dl
mov edx, dword [ebp - 0x1c]
movzx ecx, dl
movzx ecx, byte [ecx + 0x4b50a0]
xor cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebx + 3], cl
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
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 + 0x4b50a0]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 4], dl
mov ecx, esi
sar ecx, 0x10
mov edx, ebx
movzx ecx, cl
sar edx, 0x10
xor dl, byte [ecx + 0x4b50a0]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 5], dl
mov edx, ebx
mov ecx, dword [ebp - 0x18]
sar ecx, 8
movzx ecx, cl
sar edx, 8
xor dl, byte [ecx + 0x4b50a0]
movzx ecx, al
mov byte [edi + 6], dl
movzx ecx, byte [ecx + 0x4b50a0]
xor cl, bl
mov byte [edi + 7], cl
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ecx + edi + 0x1f0]
mov ecx, eax
sar ecx, 0x18
mov edx, ebx
movzx ecx, cl
sar edx, 0x18
xor dl, byte [ecx + 0x4b50a0]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 8], dl
mov edx, ebx
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x10
movzx ecx, cl
sar edx, 0x10
xor dl, byte [ecx + 0x4b50a0]
mov ecx, dword [ebp - 0x10]
sar eax, 0x10
movzx eax, al
mov byte [ecx + 9], dl
mov ecx, esi
mov esi, dword [ebp - 0x10]
mov edx, ebx
sar ecx, 8
movzx ecx, cl
sar edx, 8
xor dl, byte [ecx + 0x4b50a0]
mov byte [esi + 0xa], dl
mov edx, dword [ebp - 0x18]
movzx ecx, dl
sar edx, 0x18
movzx ecx, byte [ecx + 0x4b50a0]
xor cl, bl
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ecx + edi + 0x1f4]
movzx ecx, dl
mov edx, ebx
sar edx, 0x18
pop edi
xor dl, byte [ecx + 0x4b50a0]
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [eax + 0x4b50a0]
mov eax, dword [ebp - 0x1c]
sar eax, 8
mov byte [esi + 0xd], cl
mov ecx, ebx
movzx eax, al
sar ecx, 8
mov byte [esi + 0xc], dl
xor cl, byte [eax + 0x4b50a0]
mov eax, dword [ebp - 0x14]
movzx eax, al
mov byte [esi + 0xe], cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, byte [eax + 0x4b50a0]
xor al, bl
mov byte [esi + 0xf], al
pop esi
pop ebx
call fcn.0041553e
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.std::exception.0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], str.Object_not_Initialized
xorps xmm0, xmm0
mov byte [ebp - 8], 1
push eax
movq qword [ebp - 0x2c], xmm0
call fcn.0041789e
add esp, 8
lea eax, [ebp - 0x30]
push 0x4bd3a0
push eax
call fcn.00419d03
int3