{"type": "func", "start": 14189168, "end": 14189296, "name": "DH_get_1024_160", "pseudocode": "// \n// DH_get_1024_160 from 0xd88270 to 0xd882f0 (128 bytes)\n// \n// 3 xrefs:\n// > ssl_get_auto_dh @ 0xd5b978\n// > sub_E29F44 @ 0xe2a088\n// > <???> @ 0x6f9f0\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_1024_160()\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_dh1024_160_p);\n    v1[2] = BN_dup((__int64)&bignum_dh1024_160_g);\n    v2 = BN_dup((__int64)&bignum_dh1024_160_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_1024_160 from 0xd88270 to 0xd882f0 (128 bytes)\n; \n; 3 xrefs:\n; > ssl_get_auto_dh @ 0xd5b978\n; > sub_E29F44 @ 0xe2a088\n; > <???> @ 0x6f9f0\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, 0xd88270\nMOV             X29, SP                                                ; +0x4, 0xd88274\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xd88278\nBL              DH_new                                                 ; +0xc, 0xd8827c\nMOV             X19, X0                                                ; +0x10, 0xd88280\nCBZ             X0, loc_D882DC                                         ; +0x14, 0xd88284\nADRP            X0, #_bignum_dh1024_160_p_ptr@PAGE                     ; +0x18, 0xd88288\nLDR             X0, [X0,#_bignum_dh1024_160_p_ptr@PAGEOFF]; _bignum_dh1024_160_p ; +0x1c, 0xd8828c\nBL              BN_dup                                                 ; +0x20, 0xd88290\nSTR             X0, [X19,#8]                                           ; +0x24, 0xd88294\nADRP            X0, #_bignum_dh1024_160_g_ptr@PAGE                     ; +0x28, 0xd88298\nLDR             X0, [X0,#_bignum_dh1024_160_g_ptr@PAGEOFF]; _bignum_dh1024_160_g ; +0x2c, 0xd8829c\nBL              BN_dup                                                 ; +0x30, 0xd882a0\nSTR             X0, [X19,#0x10]                                        ; +0x34, 0xd882a4\nADRP            X0, #_bignum_dh1024_160_q_ptr@PAGE                     ; +0x38, 0xd882a8\nLDR             X0, [X0,#_bignum_dh1024_160_q_ptr@PAGEOFF]; _bignum_dh1024_160_q ; +0x3c, 0xd882ac\nBL              BN_dup                                                 ; +0x40, 0xd882b0\nSTR             X0, [X19,#0x40]                                        ; +0x44, 0xd882b4\nCBZ             X0, loc_D882E0                                         ; +0x48, 0xd882b8\nLDR             X0, [X19,#8]                                           ; +0x4c, 0xd882bc\nCBZ             X0, loc_D882E0                                         ; +0x50, 0xd882c0\nLDR             X1, [X19,#0x10]                                        ; +0x54, 0xd882c4\nMOV             X0, X19                                                ; +0x58, 0xd882c8\nCBZ             X1, loc_D882E0                                         ; +0x5c, 0xd882cc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x60, 0xd882d0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x64, 0xd882d4\nRET                                                                    ; +0x68, 0xd882d8\nB               loc_D882D0                                             ; +0x6c, 0xd882dc\nMOV             X0, X19                                                ; +0x70, 0xd882e0\nBL              DH_free                                                ; +0x74, 0xd882e4\nMOV             X0, #0                                                 ; +0x78, 0xd882e8\nB               loc_D882D0                                             ; +0x7c, 0xd882ec", "xrefs": ["ssl_get_auto_dh @ 0xd5b978", "sub_E29F44 @ 0xe2a088", "<???> @ 0x6f9f0"], "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"}