Function at 0x409c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423e25
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
call fcn.00408620
cmp word [0x429de2], 0
movups xmm0, xmmword [0x429dcc]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [0x429ddc]
movq qword [ebp - 0x40], xmm0
je 0x409d86
xor esi, esi
cmp dword [0x42fc1c], 2
jl 0x409d60
movaps xmm2, xmmword [0x42a410]
mov eax, 4
movaps xmm3, xmmword [0x42a4b0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x429dcc
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x42a430]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x42a420]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [str.66666666]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x50], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x42a430]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x48]
paddw xmm1, xmmword [str.66666666]
pxor xmm1, xmm0
movq qword [ebp - 0x48], xmm1
nop dword [eax]
mov eax, 0x4ec4ec4f
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x34
sub ecx, eax
add ecx, 0x36
xor word [ebp + esi*2 - 0x50], cx
inc esi
cmp esi, 0xc
jl 0x409d60
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x6c]
call fcn.00408380
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00413af0
mov esi, eax
add esp, 4
lea eax, [ebp + 8]
cmp eax, esi
je 0x409e17
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x409de3
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409dd9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e83
push ecx
push edx
call fcn.004228bd
add esp, 8
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp + 8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp + 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x409e47
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e83
push ecx
push edx
call fcn.004228bd
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 0x10
jb 0x409e93
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409e89
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00415280
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x409ec5
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00410c80
lea ecx, [ebp - 0x38]
call fcn.00409550
mov esi, eax
add esp, 0x18
cmp esi, 0x42fc40
je 0x409f61
mov ecx, dword [0x42fc54]
cmp ecx, 0x10
jb 0x409f1e
mov eax, dword [0x42fc40]
inc ecx
cmp ecx, 0x1000
jb 0x409f14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fcf
mov eax, edx
push ecx
push eax
call fcn.004228bd
add esp, 8
mov dword [0x42fc50], 0
mov dword [0x42fc54], 0xf
mov byte [0x42fc40], 0
movups xmm0, xmmword [esi]
movups xmmword [0x42fc40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x42fc50], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x409f91
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409f87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409fcf
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 8
jb 0x409fdf
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409fd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409fd5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40a044
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a03a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a03a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 5
push str.ERROR
mov ecx, 0x42fc40
mov byte [ebp - 4], 5
call fcn.004135a0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.std::exception.0
push eax
call dword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
add esp, 4
mov eax, 0x409fdf
ret
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422454
mov esp, ebp
pop ebp
ret