// // sub_1006E9080 from 0x1006e9080 to 0x1006e9368 (744 bytes) // // 3 xrefs: // > sub_1006E7EF8 @ 0x1006e7f00 // > sub_1006E8274 @ 0x1006e827c // > sub_1006E8420 @ 0x1006e8428 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:12:37 +0000 // __int64 __fastcall sub_1006E9080(__int64 a1, __int64 a2, __int64 a3, int a4) { __int64 v8; // x24 void **v9; // x19 __int64 v10; // x20 __int64 v11; // x0 __int64 v12; // x0 _BYTE *v13; // x20 int v14; // w0 int v15; // w8 unsigned __int64 v16; // x27 _BYTE *v17; // x25 _BYTE *v18; // x21 __int64 v19; // x2 __int64 v20; // x26 __int64 v21; // x0 int v22; // w0 int v23; // w8 unsigned __int64 v24; // x8 char v25; // w28 const char *v26; // x27 int v27; // w0 __int64 v28; // x22 if ( !a2 || (v8 = sub_1006E5C44(a2)) == 0 ) { v13 = nullptr; v17 = nullptr; v9 = nullptr; v18 = nullptr; v19 = 67; goto LABEL_45; } v9 = (void **)sub_1006D1C30(); if ( !v9 ) { v13 = nullptr; v17 = nullptr; v9 = nullptr; LABEL_44: v18 = nullptr; v19 = 65; goto LABEL_45; } if ( a4 < 1 ) { v18 = nullptr; v13 = nullptr; v20 = 0; goto LABEL_28; } v10 = sub_1006E5CD4(a2); if ( v10 ) { v11 = sub_1006E5CEC(a2); v12 = sub_1006E3820(v8, v10, v11, 0, (__int64)v9); v13 = (_BYTE *)v12; if ( !v12 ) { v13 = nullptr; v17 = nullptr; v18 = nullptr; v19 = 16; goto LABEL_45; } v14 = sub_1006D0D88(v12); v15 = v14 + 7; if ( v14 + 7 < 0 ) v15 = v14 + 14; v16 = v15 >> 3; } else { v16 = 0; v13 = nullptr; } if ( a4 == 2 ) { v21 = sub_1006E5C8C(a2); v20 = v21; if ( v21 ) { v22 = sub_1006D0D88(v21); v23 = v22 + 7; if ( v22 + 7 < 0 ) v23 = v22 + 14; v24 = v23 >> 3; if ( v24 > v16 ) LODWORD(v16) = v24; } else { v20 = 0; } v25 = 1; } else { v25 = 0; v20 = 0; } v18 = sub_1006AE878((unsigned int)(v16 + 10), (__int64)"ec_ameth.c", 457); if ( !v18 ) { v17 = nullptr; goto LABEL_44; } if ( (v25 & 1) == 0 ) { LABEL_28: if ( a4 == 1 ) v26 = "Public-Key"; else v26 = "ECDSA-Parameters"; goto LABEL_31; } v26 = "Private-Key"; LABEL_31: if ( (unsigned int)sub_100700B80(a1, a3, 128) && (v17 = sub_1006D0E9C()) != nullptr ) { if ( sub_1006DDD4C(v8, (__int64)v17) ) { v27 = sub_1006D0D88((__int64)v17); if ( (int)sub_100702BA8(a1, "%s: (%d bit)\n", v26, v27) >= 1 && (!v20 || (unsigned int)sub_10071B4F0(a1, "priv:", v20, v18, a3)) && (!v13 || (unsigned int)sub_10071B4F0(a1, "pub: ", v13, v18, a3)) && (unsigned int)sub_1006E9F10(a1, v8, a3) ) { v28 = 1; goto LABEL_46; } } } else { v17 = nullptr; } v19 = 32; LABEL_45: sub_100706FB0(16, 221, v19, "ec_ameth.c", 489); v28 = 0; LABEL_46: if ( v13 ) sub_1006D0E38(v13); if ( v17 ) sub_1006D0E38(v17); if ( v9 ) sub_1006D1C94(v9); if ( v18 ) sub_1006AEDAC(v18); return v28; }
GD Web Decomp Icon

GD Web Decomp

Raw Source