{"type": "func", "start": 8408168, "end": 8408324, "name": "EVP_add_digest", "pseudocode": "// \n// EVP_add_digest from 0x804c68 to 0x804d04 (156 bytes)\n// \n// 21 xrefs:\n// > sub_7B9620 @ 0x7b96d8\n// > sub_7B9620 @ 0x7b96fc\n// > sub_7B9620 @ 0x7b9704\n// > sub_7B9620 @ 0x7b973c\n// > sub_7B9620 @ 0x7b9744\n// > sub_7B9620 @ 0x7b974c\n// > sub_7B9620 @ 0x7b9754\n// > openssl_add_all_digests_int @ 0x8b603c\n// > openssl_add_all_digests_int @ 0x8b6048\n// > openssl_add_all_digests_int @ 0x8b6068\n// > openssl_add_all_digests_int @ 0x8b6070\n// > openssl_add_all_digests_int @ 0x8b60a8\n// > openssl_add_all_digests_int @ 0x8b60b4\n// > openssl_add_all_digests_int @ 0x8b60e8\n// > openssl_add_all_digests_int @ 0x8b60f0\n// > openssl_add_all_digests_int @ 0x8b60f8\n// > openssl_add_all_digests_int @ 0x8b6100\n// > openssl_add_all_digests_int @ 0x8b6108\n// > openssl_add_all_digests_int @ 0x8b6110\n// > openssl_add_all_digests_int @ 0x8b611c\n// > <???> @ 0x5df2c\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 EVP_add_digest(_DWORD *a1)\n{\n  int v2; // r5\n  int v4; // r0\n  int v5; // r3\n  int v6; // r0\n  int v7; // r0\n  int v8; // r0\n\n  v2 = OBJ_nid2sn(*a1);\n  if ( !OBJ_NAME_add(v2, 1, a1) )\n    return 0;\n  v4 = OBJ_nid2ln(*a1);\n  v5 = OBJ_NAME_add(v4, 1, a1);\n  if ( !v5 )\n    return 0;\n  v6 = a1[1];\n  if ( v6 && v6 != *a1 )\n  {\n    v7 = OBJ_nid2sn(v6);\n    if ( OBJ_NAME_add(v7, 32769, v2) )\n    {\n      v8 = OBJ_nid2ln(a1[1]);\n      return OBJ_NAME_add(v8, 32769, v2);\n    }\n    return 0;\n  }\n  return v5;\n}", "assembly": "; \n; EVP_add_digest from 0x804c68 to 0x804d04 (156 bytes)\n; \n; 21 xrefs:\n; > sub_7B9620 @ 0x7b96d8\n; > sub_7B9620 @ 0x7b96fc\n; > sub_7B9620 @ 0x7b9704\n; > sub_7B9620 @ 0x7b973c\n; > sub_7B9620 @ 0x7b9744\n; > sub_7B9620 @ 0x7b974c\n; > sub_7B9620 @ 0x7b9754\n; > openssl_add_all_digests_int @ 0x8b603c\n; > openssl_add_all_digests_int @ 0x8b6048\n; > openssl_add_all_digests_int @ 0x8b6068\n; > openssl_add_all_digests_int @ 0x8b6070\n; > openssl_add_all_digests_int @ 0x8b60a8\n; > openssl_add_all_digests_int @ 0x8b60b4\n; > openssl_add_all_digests_int @ 0x8b60e8\n; > openssl_add_all_digests_int @ 0x8b60f0\n; > openssl_add_all_digests_int @ 0x8b60f8\n; > openssl_add_all_digests_int @ 0x8b6100\n; > openssl_add_all_digests_int @ 0x8b6108\n; > openssl_add_all_digests_int @ 0x8b6110\n; > openssl_add_all_digests_int @ 0x8b611c\n; > <???> @ 0x5df2c\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            {R3-R5,LR}                                             ; +0x0, 0x804c68\nMOV             R4, R0                                                 ; +0x4, 0x804c6c\nLDR             R0, [R0]                                               ; +0x8, 0x804c70\nBL              OBJ_nid2sn                                             ; +0xc, 0x804c74\nMOV             R2, R4                                                 ; +0x10, 0x804c78\nMOV             R1, #1                                                 ; +0x14, 0x804c7c\nMOV             R5, R0                                                 ; +0x18, 0x804c80\nBL              OBJ_NAME_add                                           ; +0x1c, 0x804c84\nCMP             R0, #0                                                 ; +0x20, 0x804c88\nBNE             loc_804C98                                             ; +0x24, 0x804c8c\nMOV             R0, #0                                                 ; +0x28, 0x804c90\nPOP             {R3-R5,PC}                                             ; +0x2c, 0x804c94\nLDR             R0, [R4]                                               ; +0x30, 0x804c98\nBL              OBJ_nid2ln                                             ; +0x34, 0x804c9c\nMOV             R1, #1                                                 ; +0x38, 0x804ca0\nMOV             R2, R4                                                 ; +0x3c, 0x804ca4\nBL              OBJ_NAME_add                                           ; +0x40, 0x804ca8\nSUBS            R3, R0, #0                                             ; +0x44, 0x804cac\nBEQ             loc_804C90                                             ; +0x48, 0x804cb0\nLDR             R0, [R4,#4]                                            ; +0x4c, 0x804cb4\nCMP             R0, #0                                                 ; +0x50, 0x804cb8\nBEQ             loc_804CFC                                             ; +0x54, 0x804cbc\nLDR             R2, [R4]                                               ; +0x58, 0x804cc0\nCMP             R0, R2                                                 ; +0x5c, 0x804cc4\nBEQ             loc_804CFC                                             ; +0x60, 0x804cc8\nBL              OBJ_nid2sn                                             ; +0x64, 0x804ccc\nLDR             R1, =0x8001                                            ; +0x68, 0x804cd0\nMOV             R2, R5                                                 ; +0x6c, 0x804cd4\nBL              OBJ_NAME_add                                           ; +0x70, 0x804cd8\nCMP             R0, #0                                                 ; +0x74, 0x804cdc\nBEQ             loc_804C90                                             ; +0x78, 0x804ce0\nLDR             R0, [R4,#4]                                            ; +0x7c, 0x804ce4\nBL              OBJ_nid2ln                                             ; +0x80, 0x804ce8\nMOV             R2, R5                                                 ; +0x84, 0x804cec\nLDR             R1, =0x8001                                            ; +0x88, 0x804cf0\nPOP             {R3-R5,LR}                                             ; +0x8c, 0x804cf4\nB               OBJ_NAME_add                                           ; +0x90, 0x804cf8\nMOV             R0, R3                                                 ; +0x94, 0x804cfc\nPOP             {R3-R5,PC}                                             ; +0x98, 0x804d00", "xrefs": ["sub_7B9620 @ 0x7b96d8", "sub_7B9620 @ 0x7b96fc", "sub_7B9620 @ 0x7b9704", "sub_7B9620 @ 0x7b973c", "sub_7B9620 @ 0x7b9744", "sub_7B9620 @ 0x7b974c", "sub_7B9620 @ 0x7b9754", "openssl_add_all_digests_int @ 0x8b603c", "openssl_add_all_digests_int @ 0x8b6048", "openssl_add_all_digests_int @ 0x8b6068", "openssl_add_all_digests_int @ 0x8b6070", "openssl_add_all_digests_int @ 0x8b60a8", "openssl_add_all_digests_int @ 0x8b60b4", "openssl_add_all_digests_int @ 0x8b60e8", "openssl_add_all_digests_int @ 0x8b60f0", "openssl_add_all_digests_int @ 0x8b60f8", "openssl_add_all_digests_int @ 0x8b6100", "openssl_add_all_digests_int @ 0x8b6108", "openssl_add_all_digests_int @ 0x8b6110", "openssl_add_all_digests_int @ 0x8b611c", "<???> @ 0x5df2c"], "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"}