Skip to content

Instantly share code, notes, and snippets.

@sopanatx
Created August 18, 2021 16:29
Show Gist options
  • Save sopanatx/d833206ec77776b61f4271fbcb44740d to your computer and use it in GitHub Desktop.
Save sopanatx/d833206ec77776b61f4271fbcb44740d to your computer and use it in GitHub Desktop.
LOWORD(result) = -99 * (char)a3;
v7 = 0;
v8 = a3 <= 0;
v9 = 2157;
v13 = -99 * a3;
if ( !v8 )
{
v10 = a4 - a5;
for ( i = a4 - a5; ; v10 = i )
{
v11 = (_BYTE *)(v7 + a5);
v12 = v7 % 8;
++v7;
*v11 = v13 ^ BYTE1(v9) ^ v11[v10] ^ *(_BYTE *)(v12 + a2 + 16);
result = 1085 * v9;
v9 *= 2171;
if ( v7 >= a3 )
break;
}
}
return result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment