diff --git a/algorithms/milerat.py b/algorithms/milerat.py new file mode 100644 index 0000000..eb354c5 --- /dev/null +++ b/algorithms/milerat.py @@ -0,0 +1,11 @@ +# Created by Still Hsu + +DESCRIPTION = "Hashing algorithm used by MileRAT." +TYPE = 'unsigned_int' +TEST_1 = 150583839 + +def hash(data): + esi = 0 + for c in data: + esi = (ord(c) + 0x83 * esi) & 0xffffffff + return (esi & 0x7fffffff) \ No newline at end of file