Write a standalone C function that accepts a 4096-byte unsigned char buffer, calculates the 'Integer Chi-Square' score without using any floating-point math, and returns 1 if the data is high-entropy (potential ransomware) or 0 if it is structured (safe).