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

Disassembly:
sub esp, 0x24
push ebp
mov ebp, ecx
mov dword [esp + 0x14], ebp
cmp byte [ebp + 4], 0
je 0x43d2fd
mov edx, dword [esp + 0x2c]
push ebx
push esi
push edi
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 4]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 2]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 3]
or ebx, eax
movzx eax, byte [edx + 5]
shl eax, 0x10
or ecx, eax
xor ebx, dword [ebp + 8]
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 + 0xc]
mov dword [esp + 0x10], ecx
movzx ecx, byte [edx + 8]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 0xa]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
or ecx, eax
movzx eax, byte [edx + 0xd]
xor ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
movzx ecx, byte [edx + 0xc]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 0xe]
shl eax, 8
mov dword [esp + 0x38], eax
movzx eax, byte [edx + 0xf]
mov edx, dword [esp + 0x38]
or edx, eax
mov eax, dword [ebp + 0x3d0]
or edx, ecx
mov dword [esp + 0x14], eax
xor edx, dword [ebp + 0x14]
mov dword [esp + 0x38], edx
cmp eax, 1
jle 0x43d16d
lea esi, [ebp + 0x30]
dec eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov eax, edx
mov ebp, dword [esp + 0x1c]
sar eax, 8
movzx ecx, al
mov eax, dword [esp + 0x18]
sar eax, 0x10
mov edx, dword [esp + 0x10]
mov edi, dword [ecx*4 + 0x4bfd10]
movzx eax, al
xor edi, dword [eax*4 + 0x4bf910]
mov eax, edx
sar eax, 0x18
movzx eax, al
xor edi, dword [eax*4 + 0x4bf510]
movzx eax, bl
xor edi, dword [eax*4 + 0x4c0110]
mov eax, dword [esp + 0x38]
xor edi, dword [esi - 4]
sar eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x18]
sar eax, 0x18
movzx eax, al
mov esi, dword [ecx*4 + 0x4bf910]
xor esi, dword [eax*4 + 0x4bf510]
mov eax, ebx
sar eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4bfd10]
movzx eax, dl
xor esi, dword [eax*4 + 0x4c0110]
mov eax, dword [esp + 0x38]
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 8
movzx eax, al
xor esi, dword [ebp]
mov edx, dword [ecx*4 + 0x4bf510]
mov ecx, dword [esp + 0x18]
xor edx, dword [eax*4 + 0x4bfd10]
mov eax, ebx
sar eax, 0x10
movzx eax, al
sar ebx, 0x18
mov dword [esp + 0x18], esi
xor edx, dword [eax*4 + 0x4bf910]
movzx eax, cl
sar ecx, 8
movzx ecx, cl
xor edx, dword [eax*4 + 0x4c0110]
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx*4 + 0x4bfd10]
xor edx, dword [ebp + 4]
sar eax, 0x10
movzx eax, al
mov dword [esp + 0x10], edi
xor ecx, dword [eax*4 + 0x4bf910]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4bf510]
mov eax, dword [esp + 0x38]
movzx eax, al
mov dword [esp + 0x38], edx
xor ecx, dword [eax*4 + 0x4c0110]
xor ecx, dword [ebp - 8]
add ebp, 0x20
sub dword [esp + 0x24], 1
mov ebx, ecx
mov dword [esp + 0x1c], ebp
mov esi, ebp
jne 0x43d045
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
shl eax, 5
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
mov edx, dword [eax + ebp + 8]
mov eax, ebx
sar eax, 0x18
mov ecx, edx
movzx eax, al
sar ecx, 0x18
mov ebp, dword [esp + 0x18]
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0x10]
sar eax, 0x10
movzx eax, al
mov byte [esi], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + str.cw]
mov eax, ebp
sar eax, 8
movzx eax, al
mov byte [esi + 1], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0x38]
movzx eax, al
mov byte [esi + 2], cl
mov al, byte [eax + str.cw]
xor al, dl
mov edx, dword [esp + 0x20]
mov byte [esi + 3], al
mov eax, dword [esp + 0x14]
mov edx, dword [eax + edx + 0xc]
mov ecx, edx
mov eax, dword [esp + 0x10]
sar eax, 0x18
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + str.cw]
mov eax, ebp
sar eax, 0x10
movzx eax, al
mov byte [esi + 4], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0x38]
sar eax, 8
movzx eax, al
mov byte [esi + 5], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + str.cw]
mov byte [esi + 6], cl
movzx eax, bl
mov al, byte [eax + str.cw]
xor al, dl
mov byte [esi + 7], al
mov eax, dword [esp + 0x14]
mov edx, dword [eax + edi + 0x10]
mov eax, ebp
sar eax, 0x18
mov ecx, edx
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0x38]
sar eax, 0x10
mov byte [esi + 8], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + str.cw]
mov eax, ebx
mov byte [esi + 9], cl
mov ecx, edx
sar eax, 8
movzx eax, al
sar ecx, 8
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0x10]
movzx eax, al
mov byte [esi + 0xa], cl
sar ebx, 0x10
mov al, byte [eax + str.cw]
xor al, dl
mov byte [esi + 0xb], al
mov eax, dword [esp + 0x14]
mov edx, dword [eax + edi + 0x14]
mov ecx, edx
mov eax, dword [esp + 0x38]
sar eax, 0x18
movzx eax, al
sar ecx, 0x18
pop edi
xor cl, byte [eax + str.cw]
mov byte [esi + 0xc], cl
mov ecx, edx
movzx eax, bl
sar ecx, 0x10
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0xc]
sar eax, 8
mov byte [esi + 0xd], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + str.cw]
mov eax, ebp
movzx eax, al
mov byte [esi + 0xe], cl
mov al, byte [eax + str.cw]
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.00445c68
push 0x4ed3d8
lea eax, [esp + 0x20]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3