{"type": "func", "start": 16803408, "end": 16803536, "name": "DH_get_2048_224", "pseudocode": "// \n// DH_get_2048_224 from 0x1006650 to 0x10066d0 (128 bytes)\n// \n// 3 xrefs:\n// > ssl_get_auto_dh @ 0xfd9cfc\n// > sub_10A8244 @ 0x10a836c\n// > <???> @ 0x983e0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:15:56 +0000\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 0x1006650 to 0x10066d0 (128 bytes)\n; \n; 3 xrefs:\n; > ssl_get_auto_dh @ 0xfd9cfc\n; > sub_10A8244 @ 0x10a836c\n; > <???> @ 0x983e0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:15:56 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x1006650\nMOV             X29, SP                                                ; +0x4, 0x1006654\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x1006658\nBL              DH_new                                                 ; +0xc, 0x100665c\nMOV             X19, X0                                                ; +0x10, 0x1006660\nCBZ             X0, loc_10066BC                                        ; +0x14, 0x1006664\nADRP            X0, #_bignum_dh2048_224_p_ptr@PAGE                     ; +0x18, 0x1006668\nLDR             X0, [X0,#_bignum_dh2048_224_p_ptr@PAGEOFF]; _bignum_dh2048_224_p ; +0x1c, 0x100666c\nBL              BN_dup                                                 ; +0x20, 0x1006670\nSTR             X0, [X19,#8]                                           ; +0x24, 0x1006674\nADRP            X0, #_bignum_dh2048_224_g_ptr@PAGE                     ; +0x28, 0x1006678\nLDR             X0, [X0,#_bignum_dh2048_224_g_ptr@PAGEOFF]; _bignum_dh2048_224_g ; +0x2c, 0x100667c\nBL              BN_dup                                                 ; +0x30, 0x1006680\nSTR             X0, [X19,#0x10]                                        ; +0x34, 0x1006684\nADRP            X0, #_bignum_dh2048_224_q_ptr@PAGE                     ; +0x38, 0x1006688\nLDR             X0, [X0,#_bignum_dh2048_224_q_ptr@PAGEOFF]; _bignum_dh2048_224_q ; +0x3c, 0x100668c\nBL              BN_dup                                                 ; +0x40, 0x1006690\nSTR             X0, [X19,#0x40]                                        ; +0x44, 0x1006694\nCBZ             X0, loc_10066C0                                        ; +0x48, 0x1006698\nLDR             X0, [X19,#8]                                           ; +0x4c, 0x100669c\nCBZ             X0, loc_10066C0                                        ; +0x50, 0x10066a0\nLDR             X1, [X19,#0x10]                                        ; +0x54, 0x10066a4\nMOV             X0, X19                                                ; +0x58, 0x10066a8\nCBZ             X1, loc_10066C0                                        ; +0x5c, 0x10066ac\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x60, 0x10066b0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x64, 0x10066b4\nRET                                                                    ; +0x68, 0x10066b8\nB               loc_10066B0                                            ; +0x6c, 0x10066bc\nMOV             X0, X19                                                ; +0x70, 0x10066c0\nBL              DH_free                                                ; +0x74, 0x10066c4\nMOV             X0, #0                                                 ; +0x78, 0x10066c8\nB               loc_10066B0                                            ; +0x7c, 0x10066cc", "xrefs": ["ssl_get_auto_dh @ 0xfd9cfc", "sub_10A8244 @ 0x10a836c", "<???> @ 0x983e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}