{"type": "func", "start": 8260072, "end": 8260184, "name": "DH_get_1024_160", "pseudocode": "// \n// DH_get_1024_160 from 0x7e09e8 to 0x7e0a58 (112 bytes)\n// \n// 3 xrefs:\n// > ssl_get_auto_dh @ 0x7b4bac\n// > sub_87FC88 @ 0x87fdc0\n// > <???> @ 0x5d9fc\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_DWORD *DH_get_1024_160()\n{\n  _DWORD *v0; // r4\n  int v1; // r0\n  int v2; // r3\n  bool v3; // zf\n  _DWORD *result; // r0\n\n  v0 = DH_new();\n  if ( !v0 )\n    return nullptr;\n  v0[2] = BN_dup((int)&bignum_dh1024_160_p);\n  v0[3] = BN_dup((int)&bignum_dh1024_160_g);\n  v1 = BN_dup((int)&bignum_dh1024_160_q);\n  v2 = v0[2];\n  v3 = v2 == 0;\n  if ( v2 )\n    v3 = v1 == 0;\n  v0[9] = v1;\n  result = v0;\n  if ( v3 || !v0[3] )\n  {\n    DH_free((int)v0);\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; DH_get_1024_160 from 0x7e09e8 to 0x7e0a58 (112 bytes)\n; \n; 3 xrefs:\n; > ssl_get_auto_dh @ 0x7b4bac\n; > sub_87FC88 @ 0x87fdc0\n; > <???> @ 0x5d9fc\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\nPUSH            {R4,LR}                                                ; +0x0, 0x7e09e8\nBL              DH_new                                                 ; +0x4, 0x7e09ec\nSUBS            R4, R0, #0                                             ; +0x8, 0x7e09f0\nBEQ             loc_7E0A50                                             ; +0xc, 0x7e09f4\nLDR             R0, =(_bignum_dh1024_160_p_ptr - 0x7E0A04)             ; +0x10, 0x7e09f8\nLDR             R0, [PC,R0]; _bignum_dh1024_160_p                      ; +0x14, 0x7e09fc\nBL              BN_dup                                                 ; +0x18, 0x7e0a00\nLDR             R3, =(_bignum_dh1024_160_g_ptr - 0x7E0A14)             ; +0x1c, 0x7e0a04\nSTR             R0, [R4,#8]                                            ; +0x20, 0x7e0a08\nLDR             R0, [PC,R3]; _bignum_dh1024_160_g                      ; +0x24, 0x7e0a0c\nBL              BN_dup                                                 ; +0x28, 0x7e0a10\nLDR             R3, =(_bignum_dh1024_160_q_ptr - 0x7E0A24)             ; +0x2c, 0x7e0a14\nSTR             R0, [R4,#0xC]                                          ; +0x30, 0x7e0a18\nLDR             R0, [PC,R3]; _bignum_dh1024_160_q                      ; +0x34, 0x7e0a1c\nBL              BN_dup                                                 ; +0x38, 0x7e0a20\nLDR             R3, [R4,#8]                                            ; +0x3c, 0x7e0a24\nCMP             R3, #0                                                 ; +0x40, 0x7e0a28\nCMPNE           R0, #0                                                 ; +0x44, 0x7e0a2c\nSTR             R0, [R4,#0x24]                                         ; +0x48, 0x7e0a30\nMOV             R0, R4                                                 ; +0x4c, 0x7e0a34\nBEQ             loc_7E0A4C                                             ; +0x50, 0x7e0a38\nLDR             R3, [R4,#0xC]                                          ; +0x54, 0x7e0a3c\nCMP             R3, #0                                                 ; +0x58, 0x7e0a40\nBEQ             loc_7E0A4C                                             ; +0x5c, 0x7e0a44\nPOP             {R4,PC}                                                ; +0x60, 0x7e0a48\nBL              DH_free                                                ; +0x64, 0x7e0a4c\nMOV             R0, #0                                                 ; +0x68, 0x7e0a50\nPOP             {R4,PC}                                                ; +0x6c, 0x7e0a54", "xrefs": ["ssl_get_auto_dh @ 0x7b4bac", "sub_87FC88 @ 0x87fdc0", "<???> @ 0x5d9fc"], "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"}