; ; BIO_set_cipher from 0x8b52e0 to 0x8b53d4 (244 bytes) ; ; 1 xrefs: ; > @ 0x6ad7c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; PUSH {R4-R11,LR} ; +0x0, 0x8b52e0 SUB SP, SP, #0xC ; +0x4, 0x8b52e4 MOV R5, R1 ; +0x8, 0x8b52e8 MOV R8, R2 ; +0xc, 0x8b52ec MOV R9, R3 ; +0x10, 0x8b52f0 MOV R4, R0 ; +0x14, 0x8b52f4 LDR R6, [SP,#0xC+arg_0] ; +0x18, 0x8b52f8 BL BIO_get_data ; +0x1c, 0x8b52fc SUBS R10, R0, #0 ; +0x20, 0x8b5300 BEQ loc_8B53C8 ; +0x24, 0x8b5304 MOV R0, R4 ; +0x28, 0x8b5308 BL BIO_get_callback ; +0x2c, 0x8b530c SUBS R7, R0, #0 ; +0x30, 0x8b5310 BEQ loc_8B5394 ; +0x34, 0x8b5314 MOV R11, #0 ; +0x38, 0x8b5318 STMEA SP, {R6,R11} ; +0x3c, 0x8b531c MOV R0, R4 ; +0x40, 0x8b5320 MOV R1, #6 ; +0x44, 0x8b5324 MOV R2, R5 ; +0x48, 0x8b5328 MOV R3, #4 ; +0x4c, 0x8b532c BLX R7 ; +0x50, 0x8b5330 CMP R0, R11 ; +0x54, 0x8b5334 BLE loc_8B53C8 ; +0x58, 0x8b5338 MOV R0, R4 ; +0x5c, 0x8b533c MOV R1, #1 ; +0x60, 0x8b5340 BL BIO_set_init ; +0x64, 0x8b5344 LDR R0, [R10,#0x14]; int ; +0x68, 0x8b5348 MOV R2, R11; int ; +0x6c, 0x8b534c STR R9, [SP,#0xC+var_C]; void * ; +0x70, 0x8b5350 STR R6, [SP,#0xC+var_8]; int ; +0x74, 0x8b5354 MOV R3, R8; int ; +0x78, 0x8b5358 MOV R1, R5; int ; +0x7c, 0x8b535c BL EVP_CipherInit_ex ; +0x80, 0x8b5360 CMP R0, #0 ; +0x84, 0x8b5364 BEQ loc_8B53C8 ; +0x88, 0x8b5368 MOV R3, #1 ; +0x8c, 0x8b536c STR R3, [SP,#0xC+var_8] ; +0x90, 0x8b5370 STR R6, [SP,#0xC+var_C] ; +0x94, 0x8b5374 MOV R0, R4 ; +0x98, 0x8b5378 MOV R2, R5 ; +0x9c, 0x8b537c MOV R1, #6 ; +0xa0, 0x8b5380 MOV R3, #4 ; +0xa4, 0x8b5384 BLX R7 ; +0xa8, 0x8b5388 ADD SP, SP, #0xC ; +0xac, 0x8b538c POP {R4-R11,PC} ; +0xb0, 0x8b5390 MOV R0, R4 ; +0xb4, 0x8b5394 MOV R1, #1 ; +0xb8, 0x8b5398 BL BIO_set_init ; +0xbc, 0x8b539c LDR R0, [R10,#0x14]; int ; +0xc0, 0x8b53a0 MOV R1, R5; int ; +0xc4, 0x8b53a4 STR R9, [SP,#0xC+var_C]; void * ; +0xc8, 0x8b53a8 STR R6, [SP,#0xC+var_8]; int ; +0xcc, 0x8b53ac MOV R2, R7; int ; +0xd0, 0x8b53b0 MOV R3, R8; int ; +0xd4, 0x8b53b4 BL EVP_CipherInit_ex ; +0xd8, 0x8b53b8 CMP R0, #0 ; +0xdc, 0x8b53bc MOVNE R0, #1 ; +0xe0, 0x8b53c0 BNE loc_8B538C ; +0xe4, 0x8b53c4 MOV R0, #0 ; +0xe8, 0x8b53c8 ADD SP, SP, #0xC ; +0xec, 0x8b53cc POP {R4-R11,PC} ; +0xf0, 0x8b53d0