-
-
[未解决,已结帖]
[悬赏]加密算法。求写成程序
100.00雪花
-
发表于:
2017-6-1 13:46
7892
-
[未解决,已结帖] [悬赏]加密算法。求写成程序
100.00雪花
找到加密算法了。帮我写成小程序。小程序功能可以加密解密 直接联系QQ吧。1409540460
int __cdecl sub_4B91F0(unsigned int *a1, unsigned int a2, int a3)
{
int v3; // ebx@1
unsigned int *v4; // edi@1
unsigned int v5; // esi@1
unsigned int v6; // ecx@1
int result; // eax@1
unsigned int v8; // esi@1
int v9; // eax@5
int v10; // edx@6
unsigned int v11; // esi@7
int v12; // edi@7
int v13; // ebx@7
unsigned int v14; // edx@9
bool v15; // zf@9
int v16; // [sp+Ch] [bp-8h]@5
int v17; // [sp+10h] [bp-4h]@1
int v18; // [sp+1Ch] [bp+8h]@1
v3 = a2 - 1;
v4 = a1;
v5 = a2;
v18 = v3;
v6 = *a1;
result = 0x61C88647 * (0x34 / v5);
v8 = -1253254570 - result;
v17 = -1253254570 - result;
if ( (unsigned int)v3 >= 1 && -1253254570 != result )
{
while ( 1 )
{
v16 = (v8 >> 2) & 3;
v9 = v3;
if ( v3 )
{
v10 = (int)&v4[v3];
do
{
v11 = *(_DWORD *)(v10 - 4);
v12 = (16 * *(_DWORD *)(v10 - 4) ^ (v6 >> 3)) + ((v11 >> 5) ^ 4 * v6);
v10 -= 4;
v13 = v11 ^ *(_DWORD *)(a3 + 4 * (v16 ^ v9 & 3));
v8 = v17;
v6 = *(_DWORD *)(v10 + 4) - (((v6 ^ v17) + v13) ^ v12);
--v9;
*(_DWORD *)(v10 + 4) = v6;
}
while ( v9 );
v4 = a1;
v3 = v18;
}
v14 = v4[v3];
v4 = a1;
result = (v6 ^ v8) + (v14 ^ *(_DWORD *)(a3 + 4 * (v16 ^ v9 & 3)));
v6 = *a1 - (result ^ ((16 * v14 ^ (v6 >> 3)) + ((v14 >> 5) ^ 4 * v6)));
v15 = v8 == -1640531527;
v8 += 1640531527;
*a1 = v6;
v17 = v8;
if ( v15 )
break;
v3 = v18;
}
}
return result;
}
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)