{"type": "func", "start": 8959120, "end": 8959428, "name": "EC_POINT_bn2point", "pseudocode": "// \n// EC_POINT_bn2point from 0x88b490 to 0x88b5c4 (308 bytes)\n// \n// 2 xrefs:\n// > EC_POINT_hex2point @ 0x88b6ec\n// > <???> @ 0x6aa8c\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 *__fastcall EC_POINT_bn2point(int *a1, _DWORD *a2, _DWORD *a3)\n{\n  int v6; // r0\n  int v7; // r4\n  int v8; // r4\n  _BYTE *v9; // r9\n\n  v6 = BN_num_bits(a2);\n  v7 = v6 + 7;\n  if ( v6 + 7 < 0 )\n    v7 = v6 + 14;\n  v8 = v7 >> 3;\n  if ( !v8 )\n    return nullptr;\n  v9 = CRYPTO_malloc((void *)v8, (int)\"crypto/ec/ec_print.c\", 42);\n  if ( !v9 )\n    return nullptr;\n  if ( BN_bn2bin(a2, v9) )\n  {\n    if ( a3 )\n    {\n      if ( EC_POINT_oct2point((int)a1, a3) )\n      {\nLABEL_8:\n        CRYPTO_free(v9, (int)\"crypto/ec/ec_print.c\", 66);\n        return a3;\n      }\n      goto LABEL_12;\n    }\n    a3 = EC_POINT_new(a1);\n    if ( a3 )\n    {\n      if ( EC_POINT_oct2point((int)a1, a3) )\n        goto LABEL_8;\n      EC_POINT_clear_free((int)a3);\nLABEL_12:\n      CRYPTO_free(v9, (int)\"crypto/ec/ec_print.c\", 62);\n      return nullptr;\n    }\n    CRYPTO_free(v9, (int)\"crypto/ec/ec_print.c\", 53);\n    return nullptr;\n  }\n  else\n  {\n    CRYPTO_free(v9, (int)\"crypto/ec/ec_print.c\", 47);\n    return nullptr;\n  }\n}", "assembly": "; \n; EC_POINT_bn2point from 0x88b490 to 0x88b5c4 (308 bytes)\n; \n; 2 xrefs:\n; > EC_POINT_hex2point @ 0x88b6ec\n; > <???> @ 0x6aa8c\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-R10,LR}                                            ; +0x0, 0x88b490\nMOV             R7, R0                                                 ; +0x4, 0x88b494\nSUB             SP, SP, #8                                             ; +0x8, 0x88b498\nMOV             R0, R1                                                 ; +0xc, 0x88b49c\nMOV             R6, R1                                                 ; +0x10, 0x88b4a0\nMOV             R5, R2                                                 ; +0x14, 0x88b4a4\nMOV             R8, R3                                                 ; +0x18, 0x88b4a8\nBL              BN_num_bits                                            ; +0x1c, 0x88b4ac\nADDS            R4, R0, #7                                             ; +0x20, 0x88b4b0\nADDMI           R4, R0, #0xE                                           ; +0x24, 0x88b4b4\nMOVS            R4, R4,ASR#3                                           ; +0x28, 0x88b4b8\nBEQ             loc_88B588                                             ; +0x2c, 0x88b4bc\nLDR             R10, =(aCryptoEcEcPrin - 0x88B4D0); \"crypto/ec/ec_print.c\" ; +0x30, 0x88b4c0\nMOV             R0, R4                                                 ; +0x34, 0x88b4c4\nADD             R10, PC, R10; \"crypto/ec/ec_print.c\"                   ; +0x38, 0x88b4c8\nMOV             R1, R10                                                ; +0x3c, 0x88b4cc\nMOV             R2, #0x2A ; '*'                                        ; +0x40, 0x88b4d0\nBL              CRYPTO_malloc                                          ; +0x44, 0x88b4d4\nSUBS            R9, R0, #0                                             ; +0x48, 0x88b4d8\nBEQ             loc_88B588                                             ; +0x4c, 0x88b4dc\nMOV             R0, R6                                                 ; +0x50, 0x88b4e0\nMOV             R1, R9                                                 ; +0x54, 0x88b4e4\nBL              BN_bn2bin                                              ; +0x58, 0x88b4e8\nSUBS            R6, R0, #0                                             ; +0x5c, 0x88b4ec\nBEQ             loc_88B594                                             ; +0x60, 0x88b4f0\nCMP             R5, #0                                                 ; +0x64, 0x88b4f4\nBEQ             loc_88B53C                                             ; +0x68, 0x88b4f8\nSTR             R8, [SP,#8+var_8]                                      ; +0x6c, 0x88b4fc\nMOV             R0, R7                                                 ; +0x70, 0x88b500\nMOV             R3, R4                                                 ; +0x74, 0x88b504\nMOV             R1, R5                                                 ; +0x78, 0x88b508\nMOV             R2, R9                                                 ; +0x7c, 0x88b50c\nBL              EC_POINT_oct2point                                     ; +0x80, 0x88b510\nCMP             R0, #0                                                 ; +0x84, 0x88b514\nBEQ             loc_88B574                                             ; +0x88, 0x88b518\nLDR             R1, =(aCryptoEcEcPrin - 0x88B52C); \"crypto/ec/ec_print.c\" ; +0x8c, 0x88b51c\nMOV             R0, R9                                                 ; +0x90, 0x88b520\nADD             R1, PC, R1; \"crypto/ec/ec_print.c\"                     ; +0x94, 0x88b524\nMOV             R2, #0x42 ; 'B'                                        ; +0x98, 0x88b528\nBL              CRYPTO_free                                            ; +0x9c, 0x88b52c\nMOV             R0, R5                                                 ; +0xa0, 0x88b530\nADD             SP, SP, #8                                             ; +0xa4, 0x88b534\nPOP             {R4-R10,PC}                                            ; +0xa8, 0x88b538\nMOV             R0, R7                                                 ; +0xac, 0x88b53c\nBL              EC_POINT_new                                           ; +0xb0, 0x88b540\nSUBS            R5, R0, #0                                             ; +0xb4, 0x88b544\nBEQ             loc_88B5AC                                             ; +0xb8, 0x88b548\nSTR             R8, [SP,#8+var_8]                                      ; +0xbc, 0x88b54c\nMOV             R0, R7                                                 ; +0xc0, 0x88b550\nMOV             R3, R4                                                 ; +0xc4, 0x88b554\nMOV             R1, R5                                                 ; +0xc8, 0x88b558\nMOV             R2, R9                                                 ; +0xcc, 0x88b55c\nBL              EC_POINT_oct2point                                     ; +0xd0, 0x88b560\nCMP             R0, #0                                                 ; +0xd4, 0x88b564\nBNE             loc_88B51C                                             ; +0xd8, 0x88b568\nMOV             R0, R5                                                 ; +0xdc, 0x88b56c\nBL              EC_POINT_clear_free                                    ; +0xe0, 0x88b570\nLDR             R1, =(aCryptoEcEcPrin - 0x88B584); \"crypto/ec/ec_print.c\" ; +0xe4, 0x88b574\nMOV             R0, R9                                                 ; +0xe8, 0x88b578\nADD             R1, PC, R1; \"crypto/ec/ec_print.c\"                     ; +0xec, 0x88b57c\nMOV             R2, #0x3E ; '>'                                        ; +0xf0, 0x88b580\nBL              CRYPTO_free                                            ; +0xf4, 0x88b584\nMOV             R0, #0                                                 ; +0xf8, 0x88b588\nADD             SP, SP, #8                                             ; +0xfc, 0x88b58c\nPOP             {R4-R10,PC}                                            ; +0x100, 0x88b590\nMOV             R0, R9                                                 ; +0x104, 0x88b594\nMOV             R1, R10                                                ; +0x108, 0x88b598\nMOV             R2, #0x2F ; '/'                                        ; +0x10c, 0x88b59c\nBL              CRYPTO_free                                            ; +0x110, 0x88b5a0\nMOV             R0, R6                                                 ; +0x114, 0x88b5a4\nB               loc_88B534                                             ; +0x118, 0x88b5a8\nMOV             R0, R9                                                 ; +0x11c, 0x88b5ac\nMOV             R1, R10                                                ; +0x120, 0x88b5b0\nMOV             R2, #0x35 ; '5'                                        ; +0x124, 0x88b5b4\nBL              CRYPTO_free                                            ; +0x128, 0x88b5b8\nMOV             R0, R5                                                 ; +0x12c, 0x88b5bc\nB               loc_88B534                                             ; +0x130, 0x88b5c0", "xrefs": ["EC_POINT_hex2point @ 0x88b6ec", "<???> @ 0x6aa8c"], "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"}