{"type": "func", "start": 11141264, "end": 11141572, "name": "EC_POINT_bn2point", "pseudocode": "// \n// EC_POINT_bn2point from 0xaa0090 to 0xaa01c4 (308 bytes)\n// \n// 2 xrefs:\n// > EC_POINT_hex2point @ 0xaa02ec\n// > <???> @ 0x8450c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:09:12 +0000\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 0xaa0090 to 0xaa01c4 (308 bytes)\n; \n; 2 xrefs:\n; > EC_POINT_hex2point @ 0xaa02ec\n; > <???> @ 0x8450c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:09:12 +0000\n; \nPUSH            {R4-R10,LR}                                            ; +0x0, 0xaa0090\nMOV             R7, R0                                                 ; +0x4, 0xaa0094\nSUB             SP, SP, #8                                             ; +0x8, 0xaa0098\nMOV             R0, R1                                                 ; +0xc, 0xaa009c\nMOV             R6, R1                                                 ; +0x10, 0xaa00a0\nMOV             R5, R2                                                 ; +0x14, 0xaa00a4\nMOV             R8, R3                                                 ; +0x18, 0xaa00a8\nBL              BN_num_bits                                            ; +0x1c, 0xaa00ac\nADDS            R4, R0, #7                                             ; +0x20, 0xaa00b0\nADDMI           R4, R0, #0xE                                           ; +0x24, 0xaa00b4\nMOVS            R4, R4,ASR#3                                           ; +0x28, 0xaa00b8\nBEQ             loc_AA0188                                             ; +0x2c, 0xaa00bc\nLDR             R10, =(aCryptoEcEcPrin - 0xAA00D0); \"crypto/ec/ec_print.c\" ; +0x30, 0xaa00c0\nMOV             R0, R4                                                 ; +0x34, 0xaa00c4\nADD             R10, PC, R10; \"crypto/ec/ec_print.c\"                   ; +0x38, 0xaa00c8\nMOV             R1, R10                                                ; +0x3c, 0xaa00cc\nMOV             R2, #0x2A ; '*'                                        ; +0x40, 0xaa00d0\nBL              CRYPTO_malloc                                          ; +0x44, 0xaa00d4\nSUBS            R9, R0, #0                                             ; +0x48, 0xaa00d8\nBEQ             loc_AA0188                                             ; +0x4c, 0xaa00dc\nMOV             R0, R6                                                 ; +0x50, 0xaa00e0\nMOV             R1, R9                                                 ; +0x54, 0xaa00e4\nBL              BN_bn2bin                                              ; +0x58, 0xaa00e8\nSUBS            R6, R0, #0                                             ; +0x5c, 0xaa00ec\nBEQ             loc_AA0194                                             ; +0x60, 0xaa00f0\nCMP             R5, #0                                                 ; +0x64, 0xaa00f4\nBEQ             loc_AA013C                                             ; +0x68, 0xaa00f8\nSTR             R8, [SP,#8+var_8]                                      ; +0x6c, 0xaa00fc\nMOV             R0, R7                                                 ; +0x70, 0xaa0100\nMOV             R3, R4                                                 ; +0x74, 0xaa0104\nMOV             R1, R5                                                 ; +0x78, 0xaa0108\nMOV             R2, R9                                                 ; +0x7c, 0xaa010c\nBL              EC_POINT_oct2point                                     ; +0x80, 0xaa0110\nCMP             R0, #0                                                 ; +0x84, 0xaa0114\nBEQ             loc_AA0174                                             ; +0x88, 0xaa0118\nLDR             R1, =(aCryptoEcEcPrin - 0xAA012C); \"crypto/ec/ec_print.c\" ; +0x8c, 0xaa011c\nMOV             R0, R9                                                 ; +0x90, 0xaa0120\nADD             R1, PC, R1; \"crypto/ec/ec_print.c\"                     ; +0x94, 0xaa0124\nMOV             R2, #0x42 ; 'B'                                        ; +0x98, 0xaa0128\nBL              CRYPTO_free                                            ; +0x9c, 0xaa012c\nMOV             R0, R5                                                 ; +0xa0, 0xaa0130\nADD             SP, SP, #8                                             ; +0xa4, 0xaa0134\nPOP             {R4-R10,PC}                                            ; +0xa8, 0xaa0138\nMOV             R0, R7                                                 ; +0xac, 0xaa013c\nBL              EC_POINT_new                                           ; +0xb0, 0xaa0140\nSUBS            R5, R0, #0                                             ; +0xb4, 0xaa0144\nBEQ             loc_AA01AC                                             ; +0xb8, 0xaa0148\nSTR             R8, [SP,#8+var_8]                                      ; +0xbc, 0xaa014c\nMOV             R0, R7                                                 ; +0xc0, 0xaa0150\nMOV             R3, R4                                                 ; +0xc4, 0xaa0154\nMOV             R1, R5                                                 ; +0xc8, 0xaa0158\nMOV             R2, R9                                                 ; +0xcc, 0xaa015c\nBL              EC_POINT_oct2point                                     ; +0xd0, 0xaa0160\nCMP             R0, #0                                                 ; +0xd4, 0xaa0164\nBNE             loc_AA011C                                             ; +0xd8, 0xaa0168\nMOV             R0, R5                                                 ; +0xdc, 0xaa016c\nBL              EC_POINT_clear_free                                    ; +0xe0, 0xaa0170\nLDR             R1, =(aCryptoEcEcPrin - 0xAA0184); \"crypto/ec/ec_print.c\" ; +0xe4, 0xaa0174\nMOV             R0, R9                                                 ; +0xe8, 0xaa0178\nADD             R1, PC, R1; \"crypto/ec/ec_print.c\"                     ; +0xec, 0xaa017c\nMOV             R2, #0x3E ; '>'                                        ; +0xf0, 0xaa0180\nBL              CRYPTO_free                                            ; +0xf4, 0xaa0184\nMOV             R0, #0                                                 ; +0xf8, 0xaa0188\nADD             SP, SP, #8                                             ; +0xfc, 0xaa018c\nPOP             {R4-R10,PC}                                            ; +0x100, 0xaa0190\nMOV             R0, R9                                                 ; +0x104, 0xaa0194\nMOV             R1, R10                                                ; +0x108, 0xaa0198\nMOV             R2, #0x2F ; '/'                                        ; +0x10c, 0xaa019c\nBL              CRYPTO_free                                            ; +0x110, 0xaa01a0\nMOV             R0, R6                                                 ; +0x114, 0xaa01a4\nB               loc_AA0134                                             ; +0x118, 0xaa01a8\nMOV             R0, R9                                                 ; +0x11c, 0xaa01ac\nMOV             R1, R10                                                ; +0x120, 0xaa01b0\nMOV             R2, #0x35 ; '5'                                        ; +0x124, 0xaa01b4\nBL              CRYPTO_free                                            ; +0x128, 0xaa01b8\nMOV             R0, R5                                                 ; +0x12c, 0xaa01bc\nB               loc_AA0134                                             ; +0x130, 0xaa01c0", "xrefs": ["EC_POINT_hex2point @ 0xaa02ec", "<???> @ 0x8450c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}