mirror of
https://github.com/EchoStretch/kstuff-lite.git
synced 2026-10-19 02:09:50 -05:00
96 lines
3.1 KiB
C
96 lines
3.1 KiB
C
// offsets/5_50.h
|
|
#ifndef OFFSETS_5_50_H
|
|
#define OFFSETS_5_50_H
|
|
#include "../offsets.h"
|
|
|
|
START_FW(550)
|
|
DEF(allproc, 0x291dd00)
|
|
DEF(idt, 0x660dca0)
|
|
DEF(gdt_array, 0x660ee50)
|
|
DEF(tss_array, 0x6610850)
|
|
DEF(pcpu_array, 0x6622680)
|
|
DEF(doreti_iret, -0xa04fd3)
|
|
DEF(add_rsp_iret, doreti_iret - 7)
|
|
DEF(swapgs_add_rsp_iret, doreti_iret - 10)
|
|
DEF(rep_movsb_pop_rbp_ret, -0x9c57aa)
|
|
DEF(rdmsr_start, -0xa0656a)
|
|
DEF(wrmsr_ret, -0xa0793c)
|
|
DEF(dr2gpr_start, -0xa0bf53)
|
|
DEF(gpr2dr_1_start, -0xa0be3a)
|
|
DEF(gpr2dr_2_start, -0xa0bd47)
|
|
DEF(mov_cr3_rax_mov_ds, -0xa0b9A9)
|
|
DEF(mov_rax_cr3, -0x3A3E70)
|
|
DEF(nop_ret, wrmsr_ret + 2)
|
|
DEF(cpu_switch, -0xa0c140)
|
|
DEF(mprotect_fix_start, -0x93EFE2)
|
|
DEF(mprotect_fix_end, mprotect_fix_start+6)
|
|
DEF(aslr_fix_start, -0x88C4FA)
|
|
DEF(aslr_fix_end, aslr_fix_start+2)
|
|
DEF(sysents, 0x1b2210)
|
|
DEF(sysents_ps4, 0x1a9c60)
|
|
DEF(sysentvec, 0xe00be8)
|
|
DEF(sysentvec_ps4, 0xe00d60)
|
|
DEF(sceSblServiceMailbox, -0x6a5b60)
|
|
DEF(sceSblAuthMgrSmIsLoadable2, -0x8d9110)
|
|
DEF(syscall_before, -0x835731)
|
|
DEF(syscall_after, -0x83570e)
|
|
DEF(malloc, -0xb3cd0)
|
|
DEF(M_something, 0x14355a0)
|
|
DEF(loadSelfSegment_epilogue, -0x8d89CD)
|
|
DEF(loadSelfSegment_watchpoint, -0x2dC318)
|
|
DEF(loadSelfSegment_watchpoint_lr, -0x8d8C27)
|
|
DEF(decryptSelfBlock_watchpoint_lr, -0x8d889F)
|
|
DEF(decryptSelfBlock_epilogue, -0x8d87E2)
|
|
DEF(decryptMultipleSelfBlocks_watchpoint_lr, -0x8d8159)
|
|
DEF(decryptMultipleSelfBlocks_epilogue, -0x8d7F24)
|
|
DEF(sceSblServiceMailbox_lr_verifyHeader, -0x8d8DB6)
|
|
DEF(sceSblServiceMailbox_lr_loadSelfSegment, -0x8d8A41)
|
|
DEF(sceSblServiceMailbox_lr_decryptSelfBlock, -0x8d8479)
|
|
DEF(sceSblServiceMailbox_lr_decryptMultipleSelfBlocks, -0x8d7C98)
|
|
DEF(sceSblServiceMailbox_lr_sceSblAuthMgrSmFinalize, -0x8d918E)
|
|
DEF(sceSblServiceMailbox_lr_verifySuperBlock, -0x97F470)
|
|
DEF(sceSblServiceMailbox_lr_sceSblPfsClearKey_1, -0x97FA1F)
|
|
DEF(sceSblServiceMailbox_lr_sceSblPfsClearKey_2, -0x97F9A9)
|
|
DEF(sceSblServiceMailbox_lr_npdrm_cmd_5, -0x32AEBB)
|
|
DEF(sceSblServiceMailbox_lr_npdrm_cmd_6, -0x32AC0A)
|
|
DEF(sceSblPfsSetKeys, -0x980620)
|
|
DEF(sceSblServiceCryptAsync, -0x921B00)
|
|
DEF(sceSblServiceCryptAsync_deref_singleton, -0x921AC2)
|
|
DEF(copyin, -0x9c6060)
|
|
DEF(copyout, -0x9c6110)
|
|
DEF(crypt_message_resolve, -0x48B0C0)
|
|
DEF(justreturn, -0xa05200)
|
|
DEF(justreturn_pop, justreturn+8)
|
|
DEF(mini_syscore_header, 0xeaf938)
|
|
DEF(pop_all_iret, -0xa05032)
|
|
DEF(pop_all_except_rdi_iret, pop_all_iret+4)
|
|
DEF(push_pop_all_iret, -0x99fc70)
|
|
DEF(kernel_pmap_store, 0x3394a88)
|
|
DEF(crypt_singleton_array, 0x2f4d830)
|
|
DEF(mov_rax_cr0, -0xa0c0a1)
|
|
DEF(syscall_cfi_table_jmp_int3, -0x99eec8)
|
|
|
|
DEF(cr0_load, -0x9578CC)
|
|
DEF(cr0_clear_store, -0x57C9A0)
|
|
DEF(cr0_write_ret, -0x5419C3)
|
|
DEF(store_rax_rdi, -0xA0C32E)
|
|
|
|
|
|
// PPR/fPKG offsets are devkit-derived (5.50.elf); retail is not validated.
|
|
DEF(ppr_pfs_get_xts_index, -0x124610)
|
|
DEF(ppr_pfs_get_cmac_index, -0x1244b0)
|
|
DEF(ppr_pfs_get_xts_return, -0x8a19f2)
|
|
DEF(ppr_pfs_get_cmac_return, -0x8a19a4)
|
|
DEF(ppr_pfs_cleanup_keys, -0x8a95b0)
|
|
DEF(ppr_pfs_clear_key_missing, -0x97fc77)
|
|
DEF(sceSblServiceMailbox_lr_verifyImage, -0x9811fc)
|
|
DEF(ppr_pfs_verify_image_no_key_success, -0x980ec3)
|
|
|
|
|
|
// non data-relative offsets
|
|
DEF(p_sysent, 0x9C0)
|
|
#include "offset_list.txt"
|
|
END_FW()
|
|
|
|
#endif
|