{"type": "func", "start": 8259924, "end": 8260020, "name": "DH_set0_key", "pseudocode": "// \n// DH_set0_key from 0x7e0954 to 0x7e09b4 (96 bytes)\n// \n// 4 xrefs:\n// > tls_process_key_exchange @ 0x7a3e30\n// > tls_process_client_key_exchange @ 0x7ab8f0\n// > DSA_dup_DH @ 0x7e22c0\n// > <???> @ 0x5d2fc\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\nint __fastcall DH_set0_key(int a1, int a2, int a3)\n{\n  int v4; // r0\n\n  v4 = *(_DWORD *)(a1 + 20);\n  if ( !v4 )\n  {\n    if ( !a2 )\n      return 0;\n    goto LABEL_3;\n  }\n  if ( a2 )\n  {\nLABEL_3:\n    BN_free(v4);\n    *(_DWORD *)(a1 + 20) = a2;\n  }\n  if ( a3 )\n  {\n    BN_free(*(_DWORD *)(a1 + 24));\n    *(_DWORD *)(a1 + 24) = a3;\n  }\n  return 1;\n}", "assembly": "; \n; DH_set0_key from 0x7e0954 to 0x7e09b4 (96 bytes)\n; \n; 4 xrefs:\n; > tls_process_key_exchange @ 0x7a3e30\n; > tls_process_client_key_exchange @ 0x7ab8f0\n; > DSA_dup_DH @ 0x7e22c0\n; > <???> @ 0x5d2fc\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-R6,LR}                                             ; +0x0, 0x7e0954\nMOV             R5, R0                                                 ; +0x4, 0x7e0958\nLDR             R0, [R0,#0x14]                                         ; +0x8, 0x7e095c\nMOV             R4, R1                                                 ; +0xc, 0x7e0960\nCMP             R0, #0                                                 ; +0x10, 0x7e0964\nMOV             R6, R2                                                 ; +0x14, 0x7e0968\nBEQ             loc_7E09A4                                             ; +0x18, 0x7e096c\nCMP             R1, #0                                                 ; +0x1c, 0x7e0970\nBEQ             loc_7E0980                                             ; +0x20, 0x7e0974\nBL              BN_free                                                ; +0x24, 0x7e0978\nSTR             R4, [R5,#0x14]                                         ; +0x28, 0x7e097c\nCMP             R6, #0                                                 ; +0x2c, 0x7e0980\nBEQ             loc_7E099C                                             ; +0x30, 0x7e0984\nLDR             R0, [R5,#0x18]                                         ; +0x34, 0x7e0988\nBL              BN_free                                                ; +0x38, 0x7e098c\nSTR             R6, [R5,#0x18]                                         ; +0x3c, 0x7e0990\nMOV             R0, #1                                                 ; +0x40, 0x7e0994\nPOP             {R4-R6,PC}                                             ; +0x44, 0x7e0998\nMOV             R0, #1                                                 ; +0x48, 0x7e099c\nPOP             {R4-R6,PC}                                             ; +0x4c, 0x7e09a0\nCMP             R1, #0                                                 ; +0x50, 0x7e09a4\nBNE             loc_7E0978                                             ; +0x54, 0x7e09a8\nMOV             R0, R1                                                 ; +0x58, 0x7e09ac\nPOP             {R4-R6,PC}                                             ; +0x5c, 0x7e09b0", "xrefs": ["tls_process_key_exchange @ 0x7a3e30", "tls_process_client_key_exchange @ 0x7ab8f0", "DSA_dup_DH @ 0x7e22c0", "<???> @ 0x5d2fc"], "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"}