Function at 0x404fa0
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
push 0xffffffffffffffff
push 0x44759e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], ecx
push 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ecx, 0xf
lea edi, [ebp - 0xa8]
mov esi, 0x453208
add esp, 8
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x457a2c], 2
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jl 0x405160
movaps xmm0, xmmword [str.1111111111111111]
lea esi, [ebp - 0xa4]
movaps xmm4, xmmword [0x453550]
movaps xmm3, xmmword [0x4535a0]
movaps xmm5, xmmword [0x453570]
movaps xmmword [ebp - 0x60], xmm0
mov edx, dword [ebp - 0x60]
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x453580]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0xa8]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0xa8], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x453580]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esi + ecx]
xorps xmm1, xmm0
movd dword [esi + ecx], xmm1
add ecx, 8
cmp ecx, 0x38
jl 0x405060
cmp ecx, 0x3f
jge 0x40518b
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x32
sub dl, al
add dl, 0x31
xor byte [ebp + ecx - 0xa8], dl
inc ecx
cmp ecx, 0x3f
jl 0x405160
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4051b0
sub ecx, edx
lea eax, [ebp - 0xa8]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409bf0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov edi, dword [ebp - 0x34]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 0x30], 1
nop
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, dword [ebp - 0x1c]
xor edx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], 0
lea ecx, [esi - 1]
div ecx
cmp esi, edx
jb 0x4052f7
sub esi, edx
lea eax, [ebp - 0x2c]
mov ecx, 1
cmp esi, ecx
cmovb ecx, esi
cmp dword [ebp - 0x18], 0xf
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x60]
add eax, edx
push eax
call fcn.00409bf0
or dword [ebp - 0x30], 2
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.004088f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x405297
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40528d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4052c7
push ecx
push edx
call fcn.00445c77
add esp, 8
cmp dword [edi + 0x10], 0xc
jne 0x405200
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4052d7
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4052cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4052cd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00445c77
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00445c39
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004091d0
int3