; ; BUF_MEM_grow from 0x9ed800 to 0x9ed968 (360 bytes) ; ; 18 xrefs: ; > sub_9B3990 @ 0x9b42bc ; > tls_construct_new_session_ticket @ 0x9c14e8 ; > tls_construct_cert_status @ 0x9c1904 ; > DTLSv1_listen @ 0x9cb8a8 ; > PEM_read_bio @ 0xa372ec ; > PEM_read_bio @ 0xa37378 ; > PEM_read_bio @ 0xa37410 ; > PEM_read_bio @ 0xa374dc ; > PEM_read_bio @ 0xa376dc ; > TXT_DB_read @ 0xa4db54 ; > sub_A50C74 @ 0xa50d98 ; > X509_NAME_oneline @ 0xa551f8 ; > X509_NAME_oneline @ 0xa554ac ; > sub_A5E8C8 @ 0xa5e9e0 ; > sub_A5EB20 @ 0xa5ec28 ; > sub_A8D7E4 @ 0xa8d818 ; > sub_A8DDC0 @ 0xa8df54 ; > @ 0x7687c ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:07:27 +0000 ; LDR R2, [R0] ; +0x0, 0x9ed800 PUSH {R4-R7,LR} ; +0x4, 0x9ed804 CMP R2, R1 ; +0x8, 0x9ed808 SUB SP, SP, #0xC ; +0xc, 0x9ed80c MOV R5, R0 ; +0x10, 0x9ed810 MOV R4, R1 ; +0x14, 0x9ed814 BCS loc_9ED844 ; +0x18, 0x9ed818 LDR R3, [R0,#8] ; +0x1c, 0x9ed81c CMP R1, R3 ; +0x20, 0x9ed820 BHI loc_9ED854 ; +0x24, 0x9ed824 LDR R0, [R0,#4] ; +0x28, 0x9ed828 CMP R0, #0 ; +0x2c, 0x9ed82c BEQ loc_9ED844 ; +0x30, 0x9ed830 ADD R0, R0, R2; void * ; +0x34, 0x9ed834 RSB R2, R2, R1; size_t ; +0x38, 0x9ed838 MOV R1, #0; int ; +0x3c, 0x9ed83c BL memset ; +0x40, 0x9ed840 MOV R0, R4 ; +0x44, 0x9ed844 STR R4, [R5] ; +0x48, 0x9ed848 ADD SP, SP, #0xC ; +0x4c, 0x9ed84c POP {R4-R7,PC} ; +0x50, 0x9ed850 CMN R1, #0xA0000004 ; +0x54, 0x9ed854 BHI loc_9ED918 ; +0x58, 0x9ed858 LDR R3, =0xAAAAAAAB ; +0x5c, 0x9ed85c ADD R7, R1, #3 ; +0x60, 0x9ed860 UMULL R2, R7, R3, R7 ; +0x64, 0x9ed864 LDR R3, [R0,#0xC] ; +0x68, 0x9ed868 MOV R7, R7,LSR#1 ; +0x6c, 0x9ed86c TST R3, #1 ; +0x70, 0x9ed870 MOV R7, R7,LSL#2 ; +0x74, 0x9ed874 BEQ loc_9ED8CC ; +0x78, 0x9ed878 LDR R1, =(aCryptoBufferBu - 0x9ED88C); "crypto/buffer/buffer.c" ; +0x7c, 0x9ed87c MOV R0, R7 ; +0x80, 0x9ed880 ADD R1, PC, R1; "crypto/buffer/buffer.c" ; +0x84, 0x9ed884 MOV R2, #0x3F ; '?' ; +0x88, 0x9ed888 BL CRYPTO_secure_malloc ; +0x8c, 0x9ed88c LDR R1, [R5,#4]; void * ; +0x90, 0x9ed890 CMP R1, #0 ; +0x94, 0x9ed894 MOV R6, R0 ; +0x98, 0x9ed898 BEQ loc_9ED8E8 ; +0x9c, 0x9ed89c CMP R0, #0 ; +0xa0, 0x9ed8a0 BEQ loc_9ED8B4 ; +0xa4, 0x9ed8a4 LDR R2, [R5]; size_t ; +0xa8, 0x9ed8a8 BL memcpy ; +0xac, 0x9ed8ac LDR R1, [R5,#4] ; +0xb0, 0x9ed8b0 MOV R0, R1 ; +0xb4, 0x9ed8b4 LDR R1, =(aCryptoBufferBu - 0x9ED8C8); "crypto/buffer/buffer.c" ; +0xb8, 0x9ed8b8 MOV R2, #0x43 ; 'C' ; +0xbc, 0x9ed8bc ADD R1, PC, R1; "crypto/buffer/buffer.c" ; +0xc0, 0x9ed8c0 BL CRYPTO_secure_free ; +0xc4, 0x9ed8c4 B loc_9ED8E8 ; +0xc8, 0x9ed8c8 LDR R2, =(aCryptoBufferBu - 0x9ED8E0); "crypto/buffer/buffer.c" ; +0xcc, 0x9ed8cc LDR R0, [R0,#4] ; +0xd0, 0x9ed8d0 MOV R1, R7 ; +0xd4, 0x9ed8d4 ADD R2, PC, R2; "crypto/buffer/buffer.c" ; +0xd8, 0x9ed8d8 MOV R3, #0x60 ; '`' ; +0xdc, 0x9ed8dc BL CRYPTO_realloc ; +0xe0, 0x9ed8e0 MOV R6, R0 ; +0xe4, 0x9ed8e4 CMP R6, #0 ; +0xe8, 0x9ed8e8 BEQ loc_9ED940 ; +0xec, 0x9ed8ec LDR R2, [R5] ; +0xf0, 0x9ed8f0 STMIB R5, {R6,R7} ; +0xf4, 0x9ed8f4 ADD R0, R6, R2; void * ; +0xf8, 0x9ed8f8 MOV R1, #0; int ; +0xfc, 0x9ed8fc RSB R2, R2, R4; size_t ; +0x100, 0x9ed900 BL memset ; +0x104, 0x9ed904 MOV R0, R4 ; +0x108, 0x9ed908 STR R4, [R5] ; +0x10c, 0x9ed90c ADD SP, SP, #0xC ; +0x110, 0x9ed910 POP {R4-R7,PC} ; +0x114, 0x9ed914 MOV R3, #0x59 ; 'Y' ; +0x118, 0x9ed918 STR R3, [SP,#0xC+var_C] ; +0x11c, 0x9ed91c LDR R3, =(aCryptoBufferBu - 0x9ED938); "crypto/buffer/buffer.c" ; +0x120, 0x9ed920 MOV R0, #7 ; +0x124, 0x9ed924 MOV R1, #0x64 ; 'd' ; +0x128, 0x9ed928 MOV R2, #0x41 ; 'A' ; +0x12c, 0x9ed92c ADD R3, PC, R3; "crypto/buffer/buffer.c" ; +0x130, 0x9ed930 BL ERR_put_error ; +0x134, 0x9ed934 MOV R0, #0 ; +0x138, 0x9ed938 B loc_9ED84C ; +0x13c, 0x9ed93c MOV R3, #0x62 ; 'b' ; +0x140, 0x9ed940 STR R3, [SP,#0xC+var_C] ; +0x144, 0x9ed944 LDR R3, =(aCryptoBufferBu - 0x9ED960); "crypto/buffer/buffer.c" ; +0x148, 0x9ed948 MOV R0, #7 ; +0x14c, 0x9ed94c MOV R1, #0x64 ; 'd' ; +0x150, 0x9ed950 MOV R2, #0x41 ; 'A' ; +0x154, 0x9ed954 ADD R3, PC, R3; "crypto/buffer/buffer.c" ; +0x158, 0x9ed958 BL ERR_put_error ; +0x15c, 0x9ed95c MOV R0, R6 ; +0x160, 0x9ed960 B loc_9ED84C ; +0x164, 0x9ed964