Javascript Malware Reviewing Source Code

VirusTotal → https://www.virustotal.com/gui/file/46b26dc44143b4362dd073deb73097a809d1947db7a86c92f9dae14932e04d13?nocache=1

Obfuscated: Easy
Obfuscator Name: Unknown (No need, easy readable)

Identificators:

///First Function: 
string HashFunction(string s)
{
    int mod = 38975, mod1 = 1017252;
    int sz = s.length();
    string temp = "";
    for(size_t i = 0; i < sz; i++) temp[i] = s[i];
    for(size_t i = 0; i < sz; i++)
    {
       int k, y, c, m;
       k = mod1 * (i + 419) + (mod1 % mod);
       y = mod1 * (i + 243) + (mod1 % mod);
       c = k % sz;
       m = y % sz;
       swap(temp[s], temp[m]);
       mod1 = (k + y) % mod;
      }
   return temp;
}