{"type": "func", "start": 16723740, "end": 16724016, "name": "BIO_get_host_ip", "pseudocode": "// \n// BIO_get_host_ip from 0xff2f1c to 0xff3030 (276 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100240\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:46 +0000\n// \n\n__int64 __fastcall BIO_get_host_ip(char *a1, void *a2)\n{\n  unsigned int v4; // w19\n  const char *v6; // x0\n  const char *v7; // x0\n  struct addrinfo *v8; // [xsp+30h] [xbp+30h] BYREF\n  size_t v9; // [xsp+38h] [xbp+38h] BYREF\n\n  v8 = nullptr;\n  v4 = 0;\n  if ( (unsigned int)BIO_sock_init() == 1 )\n  {\n    v4 = BIO_lookup(a1, nullptr, 0, 2, 1, &v8);\n    if ( v4 )\n    {\n      if ( (unsigned int)BIO_ADDRINFO_family((__int64)v8) == 2 )\n      {\n        v6 = (const char *)BIO_ADDRINFO_address((__int64)v8);\n        BIO_ADDR_rawaddress(v6, nullptr, &v9);\n        if ( v9 != 4 )\n          OPENSSL_die((int)\"assertion failed: l == 4\");\n        v4 = 1;\n        v7 = (const char *)BIO_ADDRINFO_address((__int64)v8);\n        BIO_ADDR_rawaddress(v7, a2, &v9);\n      }\n      else\n      {\n        v4 = 0;\n        ERR_put_error(32, 106, 107, \"crypto/bio/b_sock.c\", 45);\n      }\n      BIO_ADDRINFO_free(v8);\n    }\n    else\n    {\n      ERR_add_error_data(2, \"host=\", a1);\n    }\n  }\n  return v4;\n}", "assembly": "; \n; BIO_get_host_ip from 0xff2f1c to 0xff3030 (276 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100240\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:46 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xff2f1c\nMOV             X29, SP                                                ; +0x4, 0xff2f20\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xff2f24\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0xff2f28\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x10, 0xff2f2c\nMOV             X21, X0                                                ; +0x14, 0xff2f30\nMOV             X22, X1                                                ; +0x18, 0xff2f34\nBL              BIO_sock_init                                          ; +0x1c, 0xff2f38\nCMP             W0, #1                                                 ; +0x20, 0xff2f3c\nMOV             W20, W0                                                ; +0x24, 0xff2f40\nMOV             W19, #0                                                ; +0x28, 0xff2f44\nB.EQ            loc_FF2F60                                             ; +0x2c, 0xff2f48\nMOV             W0, W19                                                ; +0x30, 0xff2f4c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x34, 0xff2f50\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x38, 0xff2f54\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x3c, 0xff2f58\nRET                                                                    ; +0x40, 0xff2f5c\nMOV             W2, W19                                                ; +0x44, 0xff2f60\nMOV             X0, X21                                                ; +0x48, 0xff2f64\nMOV             X1, #0                                                 ; +0x4c, 0xff2f68\nMOV             W3, #2                                                 ; +0x50, 0xff2f6c\nMOV             W4, W20                                                ; +0x54, 0xff2f70\nADD             X5, X29, #0x40+var_10                                  ; +0x58, 0xff2f74\nBL              BIO_lookup                                             ; +0x5c, 0xff2f78\nMOV             W19, W0                                                ; +0x60, 0xff2f7c\nCBZ             W0, loc_FF2FC0                                         ; +0x64, 0xff2f80\nLDR             X0, [X29,#0x40+var_10]                                 ; +0x68, 0xff2f84\nBL              BIO_ADDRINFO_family                                    ; +0x6c, 0xff2f88\nCMP             W0, #2                                                 ; +0x70, 0xff2f8c\nB.EQ            loc_FF2FD8                                             ; +0x74, 0xff2f90\nADRP            X3, #aCryptoBioBSock@PAGE; \"crypto/bio/b_sock.c\"       ; +0x78, 0xff2f94\nMOV             W0, #0x20 ; ' '                                        ; +0x7c, 0xff2f98\nMOV             W1, #0x6A ; 'j'                                        ; +0x80, 0xff2f9c\nMOV             W2, #0x6B ; 'k'                                        ; +0x84, 0xff2fa0\nADD             X3, X3, #aCryptoBioBSock@PAGEOFF; \"crypto/bio/b_sock.c\" ; +0x88, 0xff2fa4\nMOV             W4, #0x2D ; '-'                                        ; +0x8c, 0xff2fa8\nMOV             W19, #0                                                ; +0x90, 0xff2fac\nBL              ERR_put_error                                          ; +0x94, 0xff2fb0\nLDR             X0, [X29,#0x40+var_10]                                 ; +0x98, 0xff2fb4\nBL              BIO_ADDRINFO_free                                      ; +0x9c, 0xff2fb8\nB               loc_FF2F4C                                             ; +0xa0, 0xff2fbc\nADRP            X1, #aHost_2@PAGE; \"host=\"                             ; +0xa4, 0xff2fc0\nMOV             W0, #2                                                 ; +0xa8, 0xff2fc4\nADD             X1, X1, #aHost_2@PAGEOFF; \"host=\"                      ; +0xac, 0xff2fc8\nMOV             X2, X21                                                ; +0xb0, 0xff2fcc\nBL              ERR_add_error_data                                     ; +0xb4, 0xff2fd0\nB               loc_FF2F4C                                             ; +0xb8, 0xff2fd4\nLDR             X0, [X29,#0x40+var_10]                                 ; +0xbc, 0xff2fd8\nADD             X21, X29, #0x40+var_8                                  ; +0xc0, 0xff2fdc\nBL              BIO_ADDRINFO_address                                   ; +0xc4, 0xff2fe0\nMOV             X1, #0; void *                                         ; +0xc8, 0xff2fe4\nMOV             X2, X21                                                ; +0xcc, 0xff2fe8\nBL              BIO_ADDR_rawaddress                                    ; +0xd0, 0xff2fec\nLDR             X0, [X29,#0x40+var_8]                                  ; +0xd4, 0xff2ff0\nCMP             X0, #4                                                 ; +0xd8, 0xff2ff4\nB.NE            loc_FF3018                                             ; +0xdc, 0xff2ff8\nLDR             X0, [X29,#0x40+var_10]                                 ; +0xe0, 0xff2ffc\nMOV             W19, W20                                               ; +0xe4, 0xff3000\nBL              BIO_ADDRINFO_address                                   ; +0xe8, 0xff3004\nMOV             X1, X22; void *                                        ; +0xec, 0xff3008\nMOV             X2, X21                                                ; +0xf0, 0xff300c\nBL              BIO_ADDR_rawaddress                                    ; +0xf4, 0xff3010\nB               loc_FF2FB4                                             ; +0xf8, 0xff3014\nADRP            X0, #aAssertionFaile_32@PAGE; \"assertion failed: l == 4\" ; +0xfc, 0xff3018\nADRP            X1, #aCryptoBioBSock@PAGE; \"crypto/bio/b_sock.c\"       ; +0x100, 0xff301c\nADD             X0, X0, #aAssertionFaile_32@PAGEOFF; \"assertion failed: l == 4\" ; +0x104, 0xff3020\nADD             X1, X1, #aCryptoBioBSock@PAGEOFF; \"crypto/bio/b_sock.c\" ; +0x108, 0xff3024\nMOV             W2, #0x32 ; '2'                                        ; +0x10c, 0xff3028\nBL              OPENSSL_die                                            ; +0x110, 0xff302c", "xrefs": ["<???> @ 0x100240"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}