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

Disassembly:
sub esp, 0x24
push ebp
mov ebp, ecx
mov dword [esp + 0x18], ebp
cmp byte [ebp + 4], 0
je 0x42ede3
mov edx, dword [esp + 0x2c]
push ebx
push esi
push edi
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx ebx, byte [edx + 8]
movzx eax, byte [edx + 2]
shl eax, 8
or ecx, eax
shl ebx, 0x18
movzx eax, byte [edx + 3]
or ecx, eax
movzx eax, byte [edx + 5]
xor ecx, dword [ebp + 0x1e8]
shl eax, 0x10
mov dword [esp + 0x38], ecx
movzx ecx, byte [edx + 4]
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 7]
or ecx, eax
movzx eax, byte [edx + 9]
xor ecx, dword [ebp + 0x1ec]
shl eax, 0x10
or ebx, eax
mov dword [esp + 0x14], ecx
movzx eax, byte [edx + 0xa]
movzx ecx, byte [edx + 0xc]
shl eax, 8
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 0xb]
or ebx, eax
movzx eax, byte [edx + 0xd]
xor ebx, dword [ebp + 0x1f0]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 0xe]
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 0xf]
mov edx, dword [esp + 0x10]
or edx, eax
or edx, ecx
mov ecx, dword [ebp + 0x3d0]
xor edx, dword [ebp + 0x1f4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
cmp ecx, 1
jle 0x42ec55
lea esi, [ebp + 0x210]
lea eax, [ecx - 1]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x14]
mov eax, edx
sar eax, 8
movzx ecx, al
mov eax, ebp
sar eax, 0x18
movzx eax, al
mov edi, dword [ecx*4 + 0x4c0d20]
xor edi, dword [eax*4 + 0x4c0520]
mov eax, dword [esp + 0x38]
sar eax, 0x10
movzx eax, al
xor edi, dword [eax*4 + 0x4c0920]
movzx eax, bl
xor edi, dword [eax*4 + 0x4c1120]
mov eax, ebx
xor edi, dword [esi - 4]
sar eax, 0x18
movzx ecx, al
mov eax, ebp
sar eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x4c0520]
mov ecx, dword [esp + 0x10]
xor esi, dword [eax*4 + 0x4c0920]
mov eax, dword [esp + 0x38]
sar eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4c0d20]
movzx eax, cl
xor esi, dword [eax*4 + 0x4c1120]
mov eax, dword [esp + 0x18]
xor esi, dword [eax]
mov eax, ecx
sar eax, 0x18
movzx ecx, al
mov eax, ebx
sar eax, 0x10
movzx eax, al
sar ebx, 8
mov edx, dword [ecx*4 + 0x4c0520]
xor edx, dword [eax*4 + 0x4c0920]
mov eax, ebp
sar eax, 8
movzx eax, al
mov ebp, dword [esp + 0x18]
xor edx, dword [eax*4 + 0x4c0d20]
mov eax, dword [esp + 0x38]
movzx eax, al
xor edx, dword [eax*4 + 0x4c1120]
mov eax, dword [esp + 0x10]
sar eax, 0x10
movzx ecx, al
xor edx, dword [ebp + 4]
movzx eax, bl
mov ebx, esi
mov dword [esp + 0x10], edx
mov ecx, dword [ecx*4 + 0x4c0920]
xor ecx, dword [eax*4 + 0x4c0d20]
mov eax, dword [esp + 0x38]
sar eax, 0x18
movzx eax, al
xor ecx, dword [eax*4 + 0x4c0520]
mov eax, dword [esp + 0x14]
movzx eax, al
mov dword [esp + 0x14], edi
xor ecx, dword [eax*4 + 0x4c1120]
xor ecx, dword [ebp - 8]
add ebp, 0x20
sub dword [esp + 0x20], 1
mov eax, ecx
mov dword [esp + 0x38], eax
mov esi, ebp
mov dword [esp + 0x18], ebp
jne 0x42eb22
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
jmp 0x42ec59
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
shl ecx, 5
sar eax, 0x18
movzx eax, al
mov dword [esp + 0x1c], ecx
mov edx, dword [ecx + ebp + 0x1e8]
mov ecx, edx
sar ecx, 0x18
xor cl, byte [eax + 0x4bf420]
mov eax, dword [esp + 0x10]
sar eax, 0x10
mov byte [esi], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
mov edi, dword [esp + 0x1c]
xor cl, byte [eax + 0x4bf420]
mov eax, ebx
sar eax, 8
mov byte [esi + 1], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x4bf420]
mov byte [esi + 2], cl
mov ecx, dword [esp + 0x14]
movzx eax, cl
mov al, byte [eax + 0x4bf420]
xor al, dl
mov edx, dword [esp + 0x1c]
mov byte [esi + 3], al
mov eax, ecx
sar eax, 0x18
movzx eax, al
mov edx, dword [edx + ebp + 0x1ec]
mov ecx, edx
sar ecx, 0x18
xor cl, byte [eax + 0x4bf420]
mov eax, dword [esp + 0x38]
sar eax, 0x10
mov byte [esi + 4], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + 0x4bf420]
mov eax, dword [esp + 0x10]
sar eax, 8
mov byte [esi + 5], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x4bf420]
mov byte [esi + 6], cl
movzx eax, bl
mov al, byte [eax + 0x4bf420]
xor al, dl
mov byte [esi + 7], al
mov eax, ebx
mov edx, dword [edi + ebp + 0x1f0]
mov ecx, edx
sar eax, 0x18
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + 0x4bf420]
mov eax, dword [esp + 0x14]
sar eax, 0x10
mov byte [esi + 8], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + 0x4bf420]
mov eax, dword [esp + 0x38]
sar eax, 8
mov byte [esi + 9], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x4bf420]
mov byte [esi + 0xa], cl
mov ecx, dword [esp + 0x10]
movzx eax, cl
mov al, byte [eax + 0x4bf420]
xor al, dl
sar ecx, 0x18
mov byte [esi + 0xb], al
mov edx, dword [edi + ebp + 0x1f4]
movzx eax, cl
mov ecx, edx
sar ecx, 0x18
sar ebx, 0x10
pop edi
xor cl, byte [eax + 0x4bf420]
mov byte [esi + 0xc], cl
mov ecx, edx
movzx eax, bl
sar ecx, 0x10
xor cl, byte [eax + 0x4bf420]
mov eax, dword [esp + 0x10]
sar eax, 8
mov byte [esi + 0xd], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x4bf420]
mov eax, dword [esp + 0x34]
movzx eax, al
mov byte [esi + 0xe], cl
mov al, byte [eax + 0x4bf420]
xor al, dl
mov byte [esi + 0xf], al
pop esi
pop ebx
pop ebp
add esp, 0x24
ret 8
push dword [0x500910]
lea ecx, [esp + 0x20]
call fcn.0044b178
push 0x4ed3e8
lea eax, [esp + 0x20]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3