-
-
[求助]谁认识这个加密算法。它有名字吗?
-
发表于:
2018-5-31 23:05
2502
-
int __cdecl sub_5185D8(int a1, int a2, signed int a3)
{
int result; // eax@1
unsigned int v4; // ebx@3
unsigned int v5; // esi@3
int v6; // edi@3
int v7; // [sp+Ch] [bp-Ch]@2
signed int v8; // [sp+10h] [bp-8h]@3
int v9; // [sp+14h] [bp-4h]@2
signed int v10; // [sp+28h] [bp+10h]@1
result = 8 * (a3 / 8);
v10 = result;
if ( result > 0 )
{
result = a2;
v9 = 0;
v7 = a2;
while ( v10 / 8 > v9 )
{
v4 = *(_DWORD *)v7 + *(_DWORD *)(a1 + 16);
v5 = *(_DWORD *)(v7 + 4) + *(_DWORD *)(a1 + 20);
v8 = 1;
v6 = a1 + 24;
do
{
v4 = *(_DWORD *)v6 + sub_518690(v5 ^ v4, v5);
v5 = *(_DWORD *)(v6 + 4) + sub_518690(v4 ^ v5, v4);
++v8;
v6 += 8;
}
while ( v8 <= 12 );
result = v7;
*(_DWORD *)v7 = v4;
*(_DWORD *)(v7 + 4) = v5;
++v9;
v7 += 8;
}
}
return result;
}
unsigned int __cdecl sub_518690(unsigned int a1, unsigned int a2)
{
return (a1 << a2 % 0x20) | (a1 >> (32 - a2 % 0x20));
}
unsigned int __cdecl sub_518690(unsigned int a1, unsigned int a2)
{
return (a1 << a2 % 0x20) | (a1 >> (32 - a2 % 0x20));
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!