{"type": "func", "start": 14189296, "end": 14189424, "name": "DH_get_2048_224", "pseudocode": "// \n// DH_get_2048_224 from 0xd882f0 to 0xd88370 (128 bytes)\n// \n// 3 xrefs:\n// > ssl_get_auto_dh @ 0xd5b9a8\n// > sub_E29F44 @ 0xe2a06c\n// > <???> @ 0x71190\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 DH_get_2048_224()\n{\n  __int64 result; // x0\n  _QWORD *v1; // x19\n  unsigned __int64 *v2; // x0\n\n  result = DH_new();\n  v1 = (_QWORD *)result;\n  if ( result )\n  {\n    *(_QWORD *)(result + 8) = BN_dup((__int64)&bignum_dh2048_224_p);\n    v1[2] = BN_dup((__int64)&bignum_dh2048_224_g);\n    v2 = BN_dup((__int64)&bignum_dh2048_224_q);\n    v1[8] = v2;\n    if ( !v2 || !v1[1] || (result = (__int64)v1, !v1[2]) )\n    {\n      DH_free((__int64)v1);\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; DH_get_2048_224 from 0xd882f0 to 0xd88370 (128 bytes)\n; \n; 3 xrefs:\n; > ssl_get_auto_dh @ 0xd5b9a8\n; > sub_E29F44 @ 0xe2a06c\n; > <???> @ 0x71190\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xd882f0\nMOV             X29, SP                                                ; +0x4, 0xd882f4\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xd882f8\nBL              DH_new                                                 ; +0xc, 0xd882fc\nMOV             X19, X0                                                ; +0x10, 0xd88300\nCBZ             X0, loc_D8835C                                         ; +0x14, 0xd88304\nADRP            X0, #_bignum_dh2048_224_p_ptr@PAGE                     ; +0x18, 0xd88308\nLDR             X0, [X0,#_bignum_dh2048_224_p_ptr@PAGEOFF]; _bignum_dh2048_224_p ; +0x1c, 0xd8830c\nBL              BN_dup                                                 ; +0x20, 0xd88310\nSTR             X0, [X19,#8]                                           ; +0x24, 0xd88314\nADRP            X0, #_bignum_dh2048_224_g_ptr@PAGE                     ; +0x28, 0xd88318\nLDR             X0, [X0,#_bignum_dh2048_224_g_ptr@PAGEOFF]; _bignum_dh2048_224_g ; +0x2c, 0xd8831c\nBL              BN_dup                                                 ; +0x30, 0xd88320\nSTR             X0, [X19,#0x10]                                        ; +0x34, 0xd88324\nADRP            X0, #_bignum_dh2048_224_q_ptr@PAGE                     ; +0x38, 0xd88328\nLDR             X0, [X0,#_bignum_dh2048_224_q_ptr@PAGEOFF]; _bignum_dh2048_224_q ; +0x3c, 0xd8832c\nBL              BN_dup                                                 ; +0x40, 0xd88330\nSTR             X0, [X19,#0x40]                                        ; +0x44, 0xd88334\nCBZ             X0, loc_D88360                                         ; +0x48, 0xd88338\nLDR             X0, [X19,#8]                                           ; +0x4c, 0xd8833c\nCBZ             X0, loc_D88360                                         ; +0x50, 0xd88340\nLDR             X1, [X19,#0x10]                                        ; +0x54, 0xd88344\nMOV             X0, X19                                                ; +0x58, 0xd88348\nCBZ             X1, loc_D88360                                         ; +0x5c, 0xd8834c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x60, 0xd88350\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x64, 0xd88354\nRET                                                                    ; +0x68, 0xd88358\nB               loc_D88350                                             ; +0x6c, 0xd8835c\nMOV             X0, X19                                                ; +0x70, 0xd88360\nBL              DH_free                                                ; +0x74, 0xd88364\nMOV             X0, #0                                                 ; +0x78, 0xd88368\nB               loc_D88350                                             ; +0x7c, 0xd8836c", "xrefs": ["ssl_get_auto_dh @ 0xd5b9a8", "sub_E29F44 @ 0xe2a06c", "<???> @ 0x71190"], "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"}