// // sub_10061F4A8 from 0x10061f4a8 to 0x10061f7c0 (792 bytes) // // 1 xrefs: // > sub_10061F258 @ 0x10061f2e8 // // 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 // double sub_10061F4A8() { int v0; // w0 __int16 v1; // w2 int v2; // w4 char *v3; // x1 __int64 *v4; // x0 __int64 (__fastcall *v5)(_QWORD, _QWORD, _QWORD, _QWORD); // x19 void *v6; // x20 void *v7; // x21 __int64 v8; // x22 void *v9; // x23 void *v10; // x24 void *v11; // x25 void *v12; // x26 __int64 v13; // x0 double result; // d0 _QWORD v15[2]; // [xsp+8h] [xbp-468h] BYREF char v16; // [xsp+18h] [xbp-458h] BYREF if ( qword_100885AE8 ) { v0 = dword_100885AA4; if ( !dword_100885AA4 ) { v0 = sub_1005E197C(); dword_100885AA4 = v0; } v1 = 100; v2 = 550; LABEL_33: sub_1005E0E48(v0, 103, v1, (__int64)"e_chil.c", v2); if ( qword_100885AE8 ) sub_1005D5EB4((__int64 *)qword_100885AE8); qword_100885AE8 = 0; off_100885AF0 = nullptr; off_100885AF8 = nullptr; off_100885AC8 = nullptr; off_100885B00 = nullptr; off_100885B08 = nullptr; off_100885AD0 = nullptr; xmmword_100885AB8 = 0u; off_100885AD8 = nullptr; return 0.0; } if ( qword_100885AE0 ) v3 = (char *)qword_100885AE0; else v3 = "nfhwcrhk"; v4 = sub_1005D5FB0(nullptr, v3, 0, 0); qword_100885AE8 = (__int64)v4; if ( !v4 ) { v0 = dword_100885AA4; if ( !dword_100885AA4 ) { v0 = sub_1005E197C(); dword_100885AA4 = v0; } v1 = 104; v2 = 556; goto LABEL_33; } v5 = (__int64 (__fastcall *)(_QWORD, _QWORD, _QWORD, _QWORD))sub_1005D61E0((__int64)v4, (__int64)"HWCryptoHook_Init"); if ( !v5 ) goto LABEL_27; v6 = (void *)sub_1005D61E0(qword_100885AE8, (__int64)"HWCryptoHook_Finish"); if ( !v6 || (v7 = (void *)sub_1005D61E0(qword_100885AE8, (__int64)"HWCryptoHook_ModExp")) == nullptr || (v8 = sub_1005D61E0(qword_100885AE8, (__int64)"HWCryptoHook_RSA")) == 0 || (v9 = (void *)sub_1005D61E0(qword_100885AE8, (__int64)"HWCryptoHook_RSALoadKey")) == nullptr || (v10 = (void *)sub_1005D61E0(qword_100885AE8, (__int64)"HWCryptoHook_RSAGetPublicKey")) == nullptr || (v11 = (void *)sub_1005D61E0(qword_100885AE8, (__int64)"HWCryptoHook_RSAUnloadKey")) == nullptr || (v12 = (void *)sub_1005D61E0(qword_100885AE8, (__int64)"HWCryptoHook_RandomBytes")) == nullptr || (v13 = sub_1005D61E0(qword_100885AE8, (__int64)"HWCryptoHook_ModExpCRT")) == 0 ) { LABEL_27: v0 = dword_100885AA4; if ( !dword_100885AA4 ) { v0 = sub_1005E197C(); dword_100885AA4 = v0; } v1 = 104; v2 = 579; goto LABEL_33; } off_100885AF0 = v5; off_100885AF8 = v6; off_100885AC8 = v7; *(_QWORD *)&xmmword_100885AB8 = v8; off_100885B00 = v9; off_100885B08 = v10; off_100885AD0 = v11; off_100885AD8 = v12; *((_QWORD *)&xmmword_100885AB8 + 1) = v13; if ( !dword_100885AA8 && sub_100588418() && sub_100588428() && sub_100588438() ) { qword_100868B20 = (__int64)sub_1006207F0; qword_100868B28 = (__int64)sub_10062081C; qword_100868B30 = (__int64)sub_100620848; qword_100868B38 = (__int64)sub_100620860; } v15[0] = &v16; v15[1] = 1024; qword_100885AB0 = off_100885AF0(&qword_100868AF0, 152, v15, &qword_100885B18); if ( !qword_100885AB0 ) { v0 = dword_100885AA4; if ( !dword_100885AA4 ) { v0 = sub_1005E197C(); dword_100885AA4 = v0; } v1 = 113; v2 = 614; goto LABEL_33; } if ( dword_1008689E0 == -1 ) dword_1008689E0 = sub_1005C7C78(0, (__int64)"nFast HWCryptoHook RSA key handle", 0, 0, 0); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source