// // DES_ecb3_encrypt from 0xe2933c to 0xe29400 (196 bytes) // // 2 xrefs: // > sub_DA6E74 @ 0xda6f04 // > @ 0x8a5e8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall DES_ecb3_encrypt(unsigned __int8 *a1, _BYTE *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5, int a6) { int v7; // w13 int v8; // w12 int v9; // w9 int v10; // w6 int v11; // w1 unsigned int v12; // w0 unsigned int v13; // w3 unsigned int v14; // w2 __int64 result; // x0 int v16; // [xsp+28h] [xbp+28h] BYREF int v17; // [xsp+2Ch] [xbp+2Ch] v7 = a1[2] << 16; v8 = a1[1]; v9 = *a1; v10 = a1[3]; v17 = (a1[6] << 16) | (a1[5] << 8) | a1[4] | (a1[7] << 24); v16 = v7 | (v8 << 8) | v9 | (v10 << 24); if ( a6 ) DES_encrypt3(&v16, a3, a4, a5); else DES_decrypt3(&v16, a3, a4, a5); v11 = v16; v12 = v17; *a2 = v16; a2[4] = v12; v13 = v12 >> 8; v14 = HIWORD(v12); a2[1] = BYTE1(v11); a2[2] = BYTE2(v11); result = HIBYTE(v12); a2[3] = HIBYTE(v11); a2[5] = v13; a2[6] = v14; a2[7] = result; return result; }