{"type": "func", "start": 14855856, "end": 14856080, "name": "DSA_generate_parameters_ex", "pseudocode": "// \n// DSA_generate_parameters_ex from 0xe2aeb0 to 0xe2af90 (224 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x33990\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall DSA_generate_parameters_ex(\n        __int64 *a1,\n        int a2,\n        void *a3,\n        int a4,\n        unsigned int *a5,\n        __int64 *a6,\n        __int64 a7)\n{\n  __int64 (*v7)(void); // x8\n  void *v16; // x3\n  int v17; // w0\n  __int64 v18; // [xsp+68h] [xbp+58h]\n\n  v7 = *(__int64 (**)(void))(a1[11] + 80);\n  if ( v7 )\n    return v7();\n  if ( a2 <= 2047 )\n    v16 = EVP_sha1();\n  else\n    v16 = EVP_sha256();\n  v18 = (__int64)v16;\n  v17 = EVP_MD_size((__int64)v16);\n  return dsa_builtin_paramgen(a1, a2, 8 * v17, v18, a3, a4, nullptr, a5, a6, a7);\n}", "assembly": "; \n; DSA_generate_parameters_ex from 0xe2aeb0 to 0xe2af90 (224 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x33990\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x70                                          ; +0x0, 0xe2aeb0\nSTP             X29, X30, [SP,#0x70+var_60]                            ; +0x4, 0xe2aeb4\nADD             X29, SP, #0x10                                         ; +0x8, 0xe2aeb8\nLDR             X8, [X0,#0x58]                                         ; +0xc, 0xe2aebc\nSTP             X19, X20, [SP,#0x70+var_50]                            ; +0x10, 0xe2aec0\nSTP             X21, X22, [SP,#0x70+var_40]                            ; +0x14, 0xe2aec4\nLDR             X8, [X8,#0x50]                                         ; +0x18, 0xe2aec8\nMOV             X19, X0                                                ; +0x1c, 0xe2aecc\nSTP             X23, X24, [SP,#0x70+var_30]                            ; +0x20, 0xe2aed0\nSTR             X25, [SP,#0x70+var_20]                                 ; +0x24, 0xe2aed4\nMOV             W20, W1                                                ; +0x28, 0xe2aed8\nMOV             X23, X2                                                ; +0x2c, 0xe2aedc\nMOV             W22, W3                                                ; +0x30, 0xe2aee0\nMOV             X21, X4                                                ; +0x34, 0xe2aee4\nMOV             X25, X5                                                ; +0x38, 0xe2aee8\nMOV             X24, X6                                                ; +0x3c, 0xe2aeec\nCBZ             X8, loc_E2AF18                                         ; +0x40, 0xe2aef0\nBLR             X8                                                     ; +0x44, 0xe2aef4\nSUB             SP, X29, #0x10                                         ; +0x48, 0xe2aef8\nLDP             X19, X20, [SP,#0x70+var_50]                            ; +0x4c, 0xe2aefc\nLDP             X21, X22, [SP,#0x70+var_40]                            ; +0x50, 0xe2af00\nLDP             X23, X24, [SP,#0x70+var_30]                            ; +0x54, 0xe2af04\nLDR             X25, [SP,#0x70+var_20]                                 ; +0x58, 0xe2af08\nLDP             X29, X30, [SP,#0x70+var_60]                            ; +0x5c, 0xe2af0c\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x60, 0xe2af10\nRET                                                                    ; +0x64, 0xe2af14\nCMP             W1, #0x7FF                                             ; +0x68, 0xe2af18\nB.LE            loc_E2AF84                                             ; +0x6c, 0xe2af1c\nBL              EVP_sha256                                             ; +0x70, 0xe2af20\nMOV             X3, X0                                                 ; +0x74, 0xe2af24\nMOV             X0, X3                                                 ; +0x78, 0xe2af28\nSTR             X3, [X29,#0x60+var_8]                                  ; +0x7c, 0xe2af2c\nBL              EVP_MD_size                                            ; +0x80, 0xe2af30\nLSL             W2, W0, #3                                             ; +0x84, 0xe2af34\nLDR             X3, [X29,#0x60+var_8]; int                             ; +0x88, 0xe2af38\nSXTW            X1, W20; int                                           ; +0x8c, 0xe2af3c\nSTR             X25, [SP,#0x70+var_70]; __int64                        ; +0x90, 0xe2af40\nMOV             X4, X23; void *                                        ; +0x94, 0xe2af44\nSTR             X24, [SP,#0x70+var_68]; __int64                        ; +0x98, 0xe2af48\nSXTW            X5, W22; int                                           ; +0x9c, 0xe2af4c\nMOV             X7, X21; int                                           ; +0xa0, 0xe2af50\nMOV             X0, X19; int                                           ; +0xa4, 0xe2af54\nSXTW            X2, W2; int                                            ; +0xa8, 0xe2af58\nMOV             X6, #0; int                                            ; +0xac, 0xe2af5c\nBL              dsa_builtin_paramgen                                   ; +0xb0, 0xe2af60\nSUB             SP, X29, #0x10                                         ; +0xb4, 0xe2af64\nLDP             X19, X20, [SP,#0x70+var_50]                            ; +0xb8, 0xe2af68\nLDP             X21, X22, [SP,#0x70+var_40]                            ; +0xbc, 0xe2af6c\nLDP             X23, X24, [SP,#0x70+var_30]                            ; +0xc0, 0xe2af70\nLDR             X25, [SP,#0x70+var_20]                                 ; +0xc4, 0xe2af74\nLDP             X29, X30, [SP,#0x70+var_60]                            ; +0xc8, 0xe2af78\nADD             SP, SP, #0x70 ; 'p'                                    ; +0xcc, 0xe2af7c\nRET                                                                    ; +0xd0, 0xe2af80\nBL              EVP_sha1                                               ; +0xd4, 0xe2af84\nMOV             X3, X0                                                 ; +0xd8, 0xe2af88\nB               loc_E2AF28                                             ; +0xdc, 0xe2af8c", "xrefs": ["<???> @ 0x33990"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}