Skip to content

Instantly share code, notes, and snippets.

@matteyeux
Created August 25, 2020 12:25
Show Gist options
  • Save matteyeux/a0d0d3c3a1a1dd4cb0d401c98166fbce to your computer and use it in GitHub Desktop.
Save matteyeux/a0d0d3c3a1a1dd4cb0d401c98166fbce to your computer and use it in GitHub Desktop.
dict_f = dict()
dict_f["_uart_init"] = 0x1000026f0
dict_f["_image_load"] = 0x10000178c
dict_f["_image4_load"] = 0x100005480
dict_f["_Img4DecodeInit"] = 0x100012e5c
dict_f["_image_load_file"] = 0x10000a6c4
dict_f["_image_search_bdev"] = 0x1000026f0
dict_f["_image4_get_partial"] = 0x1000049cc
dict_f["_image_create_from_memory"] = 0x10000a82c
dict_f["_image4_process_superblock"] = 0x100005288
dict_f["__sep_client_get_nonce"] = 0x100003ce0
dict_f["_platform_quiesce_hardware"] = 0x100006ee0
dict_f["_platform_get_nonce"] = 0x100007108
dict_f["_platform_disable_keys"] = 0x100006cd8
dict_f["_DERParseSequence"] = 0x100013dd8
dict_f["_DERDecodeSeqInit"] = 0x100013ce0
dict_f["_DERDecodeSeqNext"] = 0x100013d70
dict_f["_DERParseInteger"] = 0x100013c10
dict_f["_DERImg4DecodePayload"] = 0x100012188
dict_f["_DERImg4DecodeRestoreInfo"] = 0x100012224
dict_f["_DERImg4DecodeFindInSequence"] = 0x100011ef8
dict_f["_usb_core_start"] = 0x10000d594
dict_f["usb_core_init"] = 0x10000d3bc
dict_f["_verify_signature_rsa"] = 0x1000132ec
dict_f["_prepare_and_jump"] = 0x1000087ec
dict_f["_verify_pkcs1_sig"] = 0x100013178
dict_f["_aes_crypto_cmd"] = 0x100009ba8
dict_f["_memalign"] = 0x10000f640
dict_f["_malloc"] = 0x10000f1ac
dict_f["_memcpy"] = 0x100010b90
dict_f["_memset"] = 0x100010dc0
dict_f["_bzero"] = 0x100010d40
dict_f["_free"] = 0x10000f428
for function in bv.functions:
for f in dict_f:
if function.start == dict_f[f]:
print(f)
function.name = f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment