nauto_hook
Reconstructed94.1% of control flow structuredAnchor ◇EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6decompiled 13 Oct 2026
- Loader
- ■v3 · upgradeable
- sBPF
- ■v0
- Size
- ■187,512 bytes
- Instructions
- ●17,312
- Functions
- ●243
- SHA-256
- ●a0744a33…055a7f24
- Upgrade authority
- ■EVcs…edDs
- Last deploy slot
- ■455,854,751
❝ Published by the authors · nothing, so everything here is revrsly outputVerified build · noneIDL · none publishedsecurity.txt · none
Loading the reconstruction…
1// Reconstructed from the compiled program by revrsly.
2// Read from the bytecode: instruction names and discriminators; each instruction's accounts in
3// order, with the types and attributes their loaders' checks imply (◇ inferred: the error codes
4// they raise, the account type whose discriminator they compare, the program ids they compare
5// with); the program's error enum; event and account type names. `/* … */` is a value not
6// recovered. Handler bodies are the register-level logic of each instruction's own handler.
7// Argument names come from a published IDL when there is one, else they are placeholders; struct
8// fields are not recovered. This is a reconstruction, NOT the author's source, and will not
9// compile as-is.
10// Program: EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6 (mainnet)
11
12use anchor_lang::prelude::*;
13
14declare_id!("EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6");■ string · 44 B
15
16// Accounts — each instruction's accounts, in order, as its account loader (try_accounts) checks them.
17
18▸ 6 more #[derive(Accounts)] structs · lines 18–74
75
76#[derive(Accounts)]
77pub struct TransferHook<'info> {◇ 6 accounts · order, types and checks inferred
78 pub source_token: AccountInfo<'info>,
79 pub mint: AccountInfo<'info>,
80 pub destination_token: AccountInfo<'info>,
81 pub owner: AccountInfo<'info>,
82 #[account(seeds = [b"extra-account-metas", /* 32 bytes */], bump)]■ string · 19 B
83 pub extra_account_meta_list: AccountInfo<'info>,
84 #[account(seeds = [b"registry"], bump)]■ string · 8 B
85 pub registry: AccountInfo<'info>,
86}
87
88#[program]
89pub mod program {
90 use super::*;
91
95 ▸ pub fn add_agents(ctx: Context<AddAgents>, … 8 args) -> Result<()> { … 400 lines }
500 ▸ pub fn init_mint(ctx: Context<InitMint>) -> Result<()> { … 54 lines }
560 ▸ pub fn init_registry(ctx: Context<InitRegistry>, arg_0: Pubkey) -> Result<()> { … 255 lines }
821 ▸ pub fn remove_agents(ctx: Context<RemoveAgents>, … 8 args) -> Result<()> { … 360 lines }
1187 ▸ pub fn set_admin(ctx: Context<SetAdmin>, arg_0: Pubkey) -> Result<()> { … 103 lines }
1296 ▸ pub fn set_open(ctx: Context<SetOpen>, arg_0: u8) -> Result<()> { … 96 lines }
1394
1395 // discriminator dc39dc987e7d61a8● found in the code at .text+0x3c48
1396 // args
1397 ▾ pub fn transfer_hook(ctx: Context<TransferHook>) -> Result<()> {● its sha256 matches the discriminator
1398 // ◇ The program's own handler (`transfer_hook` in reconstructed.rs), register-level. Anchor's wrapper
1399 // (`transfer_hook_handler`) loads the accounts, then calls it with r1 = where its Result is written,
1400 // r2 = &Context, r3..r5 = the arguments in order (larger ones by reference; more on the stack).
1401 // 27 stack slots (local_…) used below; declared in reconstructed.rs.
1402 r6 = *((r1 + 8) as *const u64);
1403 r0 = fn_34e0(&local_a0_u64, *((r6) as *const u64
),
1
, r4, r5);
1404 if local_a0_u8 != 1 {
1405 local_ed = local_9c;
1406 local_f0 = local_9f;
1407 local_d9 = local_88_u64;
1408 local_d1 = local_80_u8;
1409 local_e9 = local_98;
1410 local_e1 = local_90;
1411 r0 = fn_34e0(&local_a0_u64, *((r6 + 0x10) as *const u64), 0, r4, r5);
1412 if local_a0_u8 != 1 {
1413 local_cd = local_9c;
1414 local_d0 = local_9f;
1415 local_b9 = local_88_u64;
1416 local_b1 = local_80_u8;
1417 local_c9 = local_98;
1418 local_c1 = local_90;
1419 r1 = *((r6 + 0x28) as *const u64);
1420 r2 = *((r1 + 0x18) as *const u64);
1421 r7 = -0x76f7a25f09ec2a3a; // compares a key with EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6
1422 if *((r2) as *const u64) == r7 {
1423 // …part 2 of EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6
1424 if *((r2 + 8) as *const u64) == 0x56bf9e68bfdf42f3 {
1425 // …part 3 of EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6
1426 if *((r2 + 0x10) as *const u64) == 0x5cce0ce4b7cdc5a2 {
1427 // …part 4 of EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6
1428 if *((r2 + 0x18) as *const u64) != 0x5100a3ec42d3b862 {
1430 r0 = fn_e068(&local_80_u64, 0x2485c); // .rodata+0x52c
1431 r0 = fn_1130(&local_68, 3);
1432 local_98 = 0x24878; // .rodata+0x548
1434 local_88_u32 = 0xda;
1437 local_8 = 0x1773; // custom Anchor error 6003 (#3)?
1438 r0 = fn_158b0(&local_a0_u64);
1440 r1 = *((*((r6 + 0x28) as *const u64) + 0x18) as *const u64);
1441 r3 = *((r1) as *const u64);
1442 r4 = *((r1 + 8) as *const u64);
1443 r5 = *((r1 + 0x10) as *const u64);
1444 r1 = *((r1 + 0x18) as *const u64);
1446 local_78 = 0x56bf9e68bfdf42f3;
1447 local_70 = 0x5cce0ce4b7cdc5a2;
1448 local_68 = 0x5100a3ec42d3b862;
1453 r0 = fn_15a00(r0, r2, &local_a0_u64);
1455 r7 = *((r1 + 0x10) as *const u64);
1456 r1 = *((r7 + 0x10) as *const u64);
1457 if r1 >= 0x7fffffffffffffff {
1458 r0 = fn_15938(0xb, 0);
1460 *((r7 + 0x10) as *mut u64) = r1 + 1;
1461 r2 = *((r7 + 0x20) as *const u64);
1463 r1 = *((r7 + 0x18) as *const u64);
1465 if *((r1) as *const u64) != 0x4745524f5455414e {
1466 r0 = fn_e068(&local_80_u64, 0x2485c); // .rodata+0x52c
1467 r0 = fn_1130(&local_68, 3);
1468 local_98 = 0x24878; // .rodata+0x548
1470 local_88_u32 = 0xdc;
1473 local_8 = 0x1773; // custom Anchor error 6003 (#3)?
1474 r0 = fn_158b0(&local_a0_u64);
1475 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
1477 if *((r1 + 0x28) as *const u8) != 1 {
1478 r6 = *((r1 + 0x2c) as *const u32);
1479 r0 = fn_2fd0(r1, r2, r6, &local_f0);
1481 r0 = fn_e068(&local_80_u64, 0x2484c); // .rodata+0x51c
1482 r0 = fn_1130(&local_68, 5);
1483 local_98 = 0x24878; // .rodata+0x548
1485 local_88_u32 = 0xe1;
1488 local_8 = 0x1775; // custom Anchor error 6005 (#5)?
1489 r0 = fn_158b0(&local_a0_u64);
1490 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
1493 r0 = fn_2fd0(*((r7 + 0x18) as *const u64), *((r7 + 0x20) as *const u64), r6, &local_d0);
1495 r0 = fn_e068(&local_80_u64, 0x2484c); // .rodata+0x51c
1496 r0 = fn_1130(&local_68, 5);
1497 local_98 = 0x24878; // .rodata+0x548
1499 local_88_u32 = 0xe2;
1502 local_8 = 0x1775; // custom Anchor error 6005 (#5)?
1503 r0 = fn_158b0(&local_a0_u64);
1504 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
1507 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
1513 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
1519 r0 = fn_e068(&local_80_u64, 0x2485c); // .rodata+0x52c
1520 r0 = fn_1130(&local_68, 3);
1521 local_98 = 0x24878; // .rodata+0x548
1523 local_88_u32 = 0xdc;
1526 local_8 = 0x1773; // custom Anchor error 6003 (#3)?
1527 r0 = fn_158b0(&local_a0_u64);
1528 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
1536 /* continues at L_9130; not expressible as structured Rust */● an edge Rust can't hold