Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x3020
call fcn.00401f70
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3f0
lea eax, [ebp - 0x1bf8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402110]
lea eax, [ebp - 0x3f8]
xorps xmm0, xmmword [0x402100]
push 0x3f0
push 0
push eax
movups xmmword [ebp - 0x3020], xmm0
movups xmmword [ebp - 0x1c08], xmm0
call sub.VCRUNTIME140.dll_memset
movups xmm1, xmmword [ebp - 0x3020]
lea eax, [ebp - 0x408]
movaps xmm0, xmmword [0x402100]
xorps xmm0, xmm1
movups xmmword [ebp - 0x408], xmm0
call eax
push 0x3f0
lea eax, [ebp - 0x1ff8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0x7f8]
xorps xmm0, xmmword [0x402110]
push 0x3f0
push 0
push eax
movaps xmmword [ebp - 0x3020], xmm0
movups xmmword [ebp - 0x2008], xmm0
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0x808]
xorps xmm0, xmmword [ebp - 0x3020]
movups xmmword [ebp - 0x808], xmm0
call eax
push 0x3f0
lea eax, [ebp - 0x23f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0xbf8]
xorps xmm0, xmmword [0x402110]
push 0x3f0
push 0
push eax
movups xmmword [ebp - 0x3020], xmm0
movups xmmword [ebp - 0x2408], xmm0
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0xc08]
xorps xmm0, xmmword [ebp - 0x3020]
add esp, 0x48
movups xmmword [ebp - 0xc08], xmm0
call eax
push 0x3f0
lea eax, [ebp - 0x27f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0xff8]
xorps xmm0, xmmword [0x402110]
push 0x3f0
push 0
push eax
movups xmmword [ebp - 0x3020], xmm0
movups xmmword [ebp - 0x2808], xmm0
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0x1008]
xorps xmm0, xmmword [ebp - 0x3020]
movups xmmword [ebp - 0x1008], xmm0
call eax
push 0x3f0
push 0
lea eax, [ebp - 0x2bf8]
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0x13f8]
xorps xmm0, xmmword [0x402110]
push 0x3f0
push 0
push eax
movups xmmword [ebp - 0x3020], xmm0
movups xmmword [ebp - 0x2c08], xmm0
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0x1408]
xorps xmm0, xmmword [ebp - 0x3020]
movups xmmword [ebp - 0x1408], xmm0
call eax
push 0x3f0
lea eax, [ebp - 0x2ff8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0x17f8]
xorps xmm0, xmmword [0x402110]
push 0x3f0
push 0
push eax
movups xmmword [ebp - 0x3020], xmm0
movups xmmword [ebp - 0x3008], xmm0
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x402100]
lea eax, [ebp - 0x1808]
xorps xmm0, xmmword [ebp - 0x3020]
add esp, 0x48
movups xmmword [ebp - 0x1808], xmm0
call eax
xor eax, eax
nop
mov ecx, eax
imul ecx, eax
inc eax
mov dword [ebp - 0x300c], ecx
mov edx, dword [ebp - 0x300c]
mov ecx, dword [ebp - 0x300c]
sar edx, 2
xor ecx, edx
mov dword [ebp - 0x300c], ecx
mov ecx, dword [ebp - 0x300c]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp - 0x300c]
add ecx, edx
mov dword [ebp - 0x300c], ecx
cmp eax, 0xf4240
jl 0x401270
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012d8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret