mirror of
https://github.com/EchoStretch/kstuff-lite.git
synced 2026-10-19 02:09:50 -05:00
100 lines
3.4 KiB
C
100 lines
3.4 KiB
C
// offsets/1_12.h
|
|
#ifndef OFFSETS_1_12_H
|
|
#define OFFSETS_1_12_H
|
|
#include "../offsets.h"
|
|
|
|
START_FW(112)
|
|
DEF(allproc, 0x36e1c18)
|
|
DEF(idt, 0x721c8c0)
|
|
DEF(gdt_array, 0x721da60)
|
|
DEF(tss_array, 0x721f460)
|
|
DEF(pcpu_array, 0x7220e80)
|
|
DEF(doreti_iret, -0x93ea03)
|
|
DEF(add_rsp_iret, doreti_iret - 7)
|
|
DEF(swapgs_add_rsp_iret, doreti_iret - 10)
|
|
DEF(rep_movsb_pop_rbp_ret, -0x8ff44c)
|
|
DEF(rdmsr_start, -0x945a83)
|
|
DEF(wrmsr_ret, -0x94127c)
|
|
DEF(nop_ret, wrmsr_ret + 2)
|
|
DEF(dr2gpr_start, -0x945bd2)
|
|
DEF(gpr2dr_1_start, -0x945b5c)
|
|
DEF(gpr2dr_2_start, -0x945b3d)
|
|
DEF(mov_cr3_rax_mov_ds, -0x945799)
|
|
DEF(mov_rax_cr3, -0x33425c)
|
|
DEF(cpu_switch, -0x945dc0)
|
|
DEF(mprotect_fix_start, -0x81d481)
|
|
DEF(mprotect_fix_end, mprotect_fix_start + 6)
|
|
DEF(aslr_fix_start, -0x77bfa1)
|
|
DEF(aslr_fix_end, -0x77bf55)
|
|
DEF(sysents, 0x117a890)
|
|
DEF(sysents_ps4, 0x1172690)
|
|
DEF(sysentvec, 0x1c2a5c8)
|
|
DEF(sysentvec_ps4, 0x1c2a720)
|
|
DEF(sceSblServiceMailbox, -0x5cbfd0)
|
|
DEF(sceSblAuthMgrSmIsLoadable2, -0x7bf4d0)
|
|
DEF(syscall_before, -0x72a050)
|
|
DEF(syscall_after, -0x72a04d)
|
|
DEF(malloc, -0x92da0)
|
|
DEF(M_something, 0x2259810)
|
|
DEF(loadSelfSegment_epilogue, -0x7bec82)
|
|
DEF(loadSelfSegment_watchpoint, -0x288a08)
|
|
DEF(loadSelfSegment_watchpoint_lr, -0x7beee7)
|
|
DEF(decryptSelfBlock_watchpoint_lr, -0x7beb2a)
|
|
DEF(decryptSelfBlock_epilogue, -0x7bea6c)
|
|
DEF(decryptMultipleSelfBlocks_watchpoint_lr, -0x7be615)
|
|
DEF(decryptMultipleSelfBlocks_epilogue, -0x7be18c)
|
|
DEF(sceSblServiceMailbox_lr_verifyHeader, -0x7bf111)
|
|
DEF(sceSblServiceMailbox_lr_loadSelfSegment, -0x7becf6)
|
|
DEF(sceSblServiceMailbox_lr_decryptSelfBlock, -0x7be7ec)
|
|
DEF(sceSblServiceMailbox_lr_decryptMultipleSelfBlocks, -0x7be246)
|
|
DEF(sceSblServiceMailbox_lr_sceSblAuthMgrSmFinalize, -0x7bf53e)
|
|
DEF(sceSblServiceMailbox_lr_verifySuperBlock, -0x85a945)
|
|
DEF(sceSblServiceMailbox_lr_sceSblPfsClearKey_1, -0x85af1c)
|
|
DEF(sceSblServiceMailbox_lr_sceSblPfsClearKey_2, -0x85aeb0)
|
|
DEF(sceSblServiceMailbox_lr_npdrm_cmd_5, -0x2c879f)
|
|
DEF(sceSblServiceMailbox_lr_npdrm_cmd_6, -0x2c84fa)
|
|
DEF(sceSblPfsSetKeys, -0x85ac20)
|
|
DEF(sceSblServiceCryptAsync, -0x801cd0)
|
|
DEF(sceSblServiceCryptAsync_deref_singleton, -0x801c92)
|
|
DEF(copyin, -0x8ffb60)
|
|
DEF(copyout, -0x8ffc00)
|
|
DEF(crypt_message_resolve, -0x405dc0)
|
|
DEF(justreturn, -0x93eb40)
|
|
DEF(justreturn_pop, justreturn + 8)
|
|
DEF(mini_syscore_header, 0x1da1c58)
|
|
DEF(pop_all_iret, -0x93ea62)
|
|
DEF(pop_all_except_rdi_iret, pop_all_iret + 4)
|
|
DEF(push_pop_all_iret, -0x874ad0)
|
|
DEF(kernel_pmap_store, 0x3faf328)
|
|
DEF(crypt_singleton_array, 0x3c6de10)
|
|
|
|
// 1.xx has no compatible fast CR0 chain. The checked UELF fallback
|
|
// single-steps mov_rax_cr0 and writes the saved value through cr0_write_ret.
|
|
DEF(mov_rax_cr0, -0x250620)
|
|
DEF(cr0_load, 0)
|
|
DEF(cr0_clear_store, 0)
|
|
DEF(cr0_write_ret, -0x250617)
|
|
DEF(store_rax_rdi, -0x945fae)
|
|
|
|
// 1.xx dispatches sy_call directly and has no syscall CFI table. This shared
|
|
// hook field therefore names a verified raw INT3 byte in retail RX text.
|
|
DEF(syscall_cfi_table_jmp_int3, -0xb2fff0)
|
|
|
|
// PPR/fPKG offsets statically revalidated against retail 1.12.elf.
|
|
DEF(ppr_pfs_get_xts_index, -0xf45c0)
|
|
DEF(ppr_pfs_get_cmac_index, -0xf4460)
|
|
DEF(ppr_pfs_get_xts_return, -0x78f2ff)
|
|
DEF(ppr_pfs_get_cmac_return, -0x78f2b1)
|
|
DEF(ppr_pfs_cleanup_keys, -0x794b30)
|
|
DEF(ppr_pfs_clear_key_missing, -0x85b117)
|
|
DEF(sceSblServiceMailbox_lr_verifyImage, -0x85c57f)
|
|
DEF(ppr_pfs_verify_image_no_key_success, -0x85c0d8)
|
|
|
|
// non data-relative offsets
|
|
DEF(p_sysent, 0x988)
|
|
|
|
#include "offset_list.txt"
|
|
END_FW()
|
|
|
|
#endif
|