首页
社区
课程
招聘
[求助]谁认识这个加密算法。它有名字吗?
发表于: 2018-5-31 23:05 2510

[求助]谁认识这个加密算法。它有名字吗?

2018-5-31 23:05
2510
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));
}

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 627
活跃值: (663)
能力值: ( LV9,RANK:270 )
在线值:
发帖
回帖
粉丝
2
RC5
2018-6-1 09:14
0
游客
登录 | 注册 方可回帖
返回
//