Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void __userpurge CUserCrypto::InitAesKey(CUserCrypto *this@<ecx>, CUserCrypto *a2@<esi>, char *userKey, int a4, int a5)
  2. {
  3.   char *v5; // eax@1
  4.   char *v6; // edx@1
  5.   int v7; // ecx@1
  6.  
  7.   AES_set_encrypt_key(userKey, 128, &a2->m_AesDec.m_ctx);
  8.   v5 = a2->m_AesDec.m_ivec;
  9.   *(_DWORD *)v5 = *((_DWORD *)userKey + 4);
  10.   *((_DWORD *)v5 + 1) = *((_DWORD *)userKey + 5);
  11.   *((_DWORD *)v5 + 2) = *((_DWORD *)userKey + 6);
  12.   *((_DWORD *)v5 + 3) = *((_DWORD *)userKey + 7);
  13.   a2->m_AesDec.m_ivpos = 0;
  14.   AES_set_encrypt_key(userKey, 128, &a2->m_AesEnc.m_ctx);
  15.   v6 = a2->m_AesEnc.m_ivec;
  16.   *(_DWORD *)v6 = *((_DWORD *)userKey + 4);
  17.   *((_DWORD *)v6 + 1) = *((_DWORD *)userKey + 5);
  18.   *((_DWORD *)v6 + 2) = *((_DWORD *)userKey + 6);
  19.   v7 = *((_DWORD *)userKey + 7);
  20.   a2->m_AesEnc.m_ivpos = 0;
  21.   *((_DWORD *)v6 + 3) = v7;
  22.   a2->m_bInitDec = 1;
  23.   a2->m_bInitEnc = 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement