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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x43bfc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push str._CS_SS_2
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x1d8], eax
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginUltra]
test esi, esi
je 0x42ffbf
cmp dword [ebp + 0xc], 0
je 0x42ffbf
mov byte [ebp - 0x30], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x2c], xmm0
test edi, edi
je 0x42fdbd
mov dword [edi], 0
mov esi, dword [ebp + 0x1c]
mov ecx, 0x21
cmp esi, ecx
mov eax, esi
cmova eax, ecx
push eax
lea eax, [ebp - 0x50]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
push 0x80
lea eax, [ebp - 0xd0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
xor eax, eax
xor edx, edx
cmp eax, esi
sbb ecx, ecx
and ecx, eax
mov al, byte [ecx + ebx]
add al, 2
mov byte [ebp + edx - 0xd0], al
inc edx
lea eax, [ecx + 1]
cmp edx, 0x80
jb 0x42fdf1
movzx ebx, byte [ebp - 0x4f]
shr ebx, 3
xor esi, esi
nop dword [eax + eax]
push 0xff
push 1
call fcn.00431c50
mov byte [ebp + esi - 0x2c], al
add esp, 8
inc esi
cmp esi, 8
jl 0x42fe20
lea ecx, [ebp - 0xd0]
cmp ebx, 0x10
mov eax, ecx
lea edx, [ebp - 0x14]
lea eax, [eax + ebx]
cmovae ecx, eax
lea eax, [ecx + 0xf]
cmp edx, eax
ja 0x42fe57
lea eax, [ebp - 5]
movups xmm0, xmmword [ecx]
push 0x104
lea eax, [ebp - 0x1d4]
push 0
push eax
movups xmmword [ebp - 0x14], xmm0
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x1d0], 0x80
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1d4]
push eax
mov dword [ebp - 0x1cc], 1
call fcn.00432180
mov esi, dword [ebp - 0x1d8]
lea eax, [ebp - 0x2c]
push 8
push esi
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.00432040
mov ebx, eax
add esp, 0x20
lea eax, [esi + ebx]
xor esi, esi
mov dword [ebp - 0x1d8], eax
xor edx, edx
xor ecx, ecx
cmp esi, 8
cmovl ecx, esi
movzx eax, byte [ebp + ecx - 0x2c]
xor al, byte [edx + 0x434c50]
mov byte [ebp + edx - 0xd0], al
lea eax, [ecx + 1]
xor ecx, ecx
cmp eax, 8
cmovl ecx, eax
movzx eax, byte [ebp + ecx - 0x2c]
xor al, byte [edx + 0x434c51]
mov byte [ebp + edx - 0xcf], al
lea eax, [ecx + 1]
xor ecx, ecx
cmp eax, 8
cmovl ecx, eax
movzx eax, byte [ebp + ecx - 0x2c]
xor al, byte [edx + 0x434c52]
mov byte [ebp + edx - 0xce], al
lea eax, [ecx + 1]
xor ecx, ecx
cmp eax, 8
cmovl ecx, eax
movzx eax, byte [ebp + ecx - 0x2c]
lea esi, [ecx + 1]
xor al, byte [edx + 0x434c53]
mov byte [ebp + edx - 0xcd], al
add edx, 4
cmp edx, 0x20
jl 0x42fed1
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x1d0], 0x80
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1d4]
push eax
mov dword [ebp - 0x1cc], 0
call fcn.00432180
push dword [ebp + 0xc]
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x1d8]
push dword [ebp - 0x1dc]
push eax
call fcn.00432040
add esp, 0x14
test edi, edi
je 0x42ffa8
add eax, ebx
mov dword [edi], eax
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d5bd
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x42ffc9
mov dword [edi], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d5bd
mov esp, ebp
pop ebp
ret