This is one of the tools that HP use if you happen to do a a restoration to factory settings.
Since the EndProcess.exe file can be used to end/kill processes, it is a tool which can be used for good or evil purposes, and naturally Avast can’t (as can’t any other AV) determine the intent. If someone else installed this without your knowledge (not HP) then it would be unwanted, but having been installed by HP it is a tool which you may require if you do an HP restore.
In the c:\HP\Bin location you might want to keep it, so you need to exclude either the file or the whole folder where it is stored from on-demand scans in the settings, or stop doing scans with include the search for PUPs.
You can safely restore the file from chest.
Greetz
Zyndstoff