{"type": "func", "start": 8784208, "end": 8784400, "name": "ASN1_digest", "pseudocode": "// \n// ASN1_digest from 0x860950 to 0x860a10 (192 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6985c\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\nbool __fastcall ASN1_digest(int (__fastcall *a1)(int, void **), int a2, int a3, int a4, _DWORD *a5)\n{\n  void *v9; // r9\n  void *v10; // r0\n  void *v11; // r4\n  _BOOL4 result; // r0\n  void *v13; // [sp+Ch] [bp-4h] BYREF\n\n  v9 = (void *)a1(a3, nullptr);\n  v10 = CRYPTO_malloc(v9, (int)\"crypto/asn1/a_digest.c\", 33);\n  v11 = v10;\n  if ( v10 )\n  {\n    v13 = v10;\n    a1(a3, &v13);\n    result = EVP_Digest((int)v11, (int)v9, a4, a5, a2, nullptr);\n    if ( result )\n    {\n      CRYPTO_free(v11, (int)\"crypto/asn1/a_digest.c\", 42);\n      return 1;\n    }\n  }\n  else\n  {\n    ERR_put_error(13, 184, 65, (int)\"crypto/asn1/a_digest.c\", 34);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; ASN1_digest from 0x860950 to 0x860a10 (192 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6985c\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, 0x860950\nMOV             R5, R0                                                 ; +0x4, 0x860954\nSUB             SP, SP, #0x10                                          ; +0x8, 0x860958\nMOV             R0, R2                                                 ; +0xc, 0x86095c\nMOV             R10, R1                                                ; +0x10, 0x860960\nMOV             R1, #0                                                 ; +0x14, 0x860964\nMOV             R6, R2                                                 ; +0x18, 0x860968\nMOV             R8, R3                                                 ; +0x1c, 0x86096c\nBLX             R5                                                     ; +0x20, 0x860970\nLDR             R7, =(aCryptoAsn1ADig - 0x860984); \"crypto/asn1/a_digest.c\" ; +0x24, 0x860974\nMOV             R2, #0x21 ; '!'                                        ; +0x28, 0x860978\nADD             R7, PC, R7; \"crypto/asn1/a_digest.c\"                   ; +0x2c, 0x86097c\nMOV             R1, R7                                                 ; +0x30, 0x860980\nMOV             R9, R0                                                 ; +0x34, 0x860984\nBL              CRYPTO_malloc                                          ; +0x38, 0x860988\nSUBS            R4, R0, #0                                             ; +0x3c, 0x86098c\nBEQ             loc_8609E8                                             ; +0x40, 0x860990\nADD             R1, SP, #0x10+var_s0                                   ; +0x44, 0x860994\nSTR             R4, [R1,#-4]!                                          ; +0x48, 0x860998\nMOV             R0, R6                                                 ; +0x4c, 0x86099c\nBLX             R5                                                     ; +0x50, 0x8609a0\nMOV             R3, #0                                                 ; +0x54, 0x8609a4\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x58, 0x8609a8\nSTR             R10, [SP,#0x10+var_10]                                 ; +0x5c, 0x8609ac\nMOV             R1, R9                                                 ; +0x60, 0x8609b0\nMOV             R2, R8                                                 ; +0x64, 0x8609b4\nMOV             R0, R4                                                 ; +0x68, 0x8609b8\nLDR             R3, [SP,#0x10+arg_0]                                   ; +0x6c, 0x8609bc\nBL              EVP_Digest                                             ; +0x70, 0x8609c0\nCMP             R0, #0                                                 ; +0x74, 0x8609c4\nBEQ             loc_8609E0                                             ; +0x78, 0x8609c8\nMOV             R0, R4                                                 ; +0x7c, 0x8609cc\nMOV             R1, R7                                                 ; +0x80, 0x8609d0\nMOV             R2, #0x2A ; '*'                                        ; +0x84, 0x8609d4\nBL              CRYPTO_free                                            ; +0x88, 0x8609d8\nMOV             R0, #1                                                 ; +0x8c, 0x8609dc\nADD             SP, SP, #0x10                                          ; +0x90, 0x8609e0\nPOP             {R4-R10,PC}                                            ; +0x94, 0x8609e4\nMOV             R2, #0x22 ; '\"'                                        ; +0x98, 0x8609e8\nSTR             R2, [SP,#0x10+var_10]                                  ; +0x9c, 0x8609ec\nMOV             R3, R7                                                 ; +0xa0, 0x8609f0\nMOV             R0, #0xD                                               ; +0xa4, 0x8609f4\nMOV             R1, #0xB8                                              ; +0xa8, 0x8609f8\nMOV             R2, #0x41 ; 'A'                                        ; +0xac, 0x8609fc\nBL              ERR_put_error                                          ; +0xb0, 0x860a00\nMOV             R0, R4                                                 ; +0xb4, 0x860a04\nADD             SP, SP, #0x10                                          ; +0xb8, 0x860a08\nPOP             {R4-R10,PC}                                            ; +0xbc, 0x860a0c", "xrefs": ["<???> @ 0x6985c"], "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"}