113 #define TARGET_BACKEND 0
114 #define TARGET_PHYSICAL 1
115 #define TARGET_KERNEL 2
116 #define TARGET_VIRTUAL 3
135 if (!read_at_func(
ctx->user, at, ptr_buf,
ctx->is_64bit ? 8 : 4)) {
static mcore_handle handle
int bits(struct state *s, int need)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
static RzBuffer * build(RzEgg *egg)
RZ_API void Ht_() free(HtName_(Ht) *ht)
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc pid
static ut32 rz_read_le32(const void *src)
static ut64 rz_read_le64(const void *src)
static struct sockaddr static addrlen static backlog const void static flags void flags
RzVector KiProcessorBlock
ut64 kernelDirectoryTable
ut32 kthread_process_offset
ut32 kprcb_context_offset
ut32 kthread_switch_frame_offset
WindReadAt * read_at_physical
WindReadAt * read_at_kernel_virtual
WindWriteAt * write_at_physical
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
int WindReadAt(RZ_NONNULL void *user, ut64 address, RZ_BORROW RZ_NONNULL RZ_OUT ut8 *buf, int count)
@ K_OffsetKThreadApcProcess
struct WindModule WindModule
int winkd_read_at_uva(RZ_BORROW RZ_NONNULL WindCtx *ctx, ut64 offset, RZ_BORROW RZ_NONNULL RZ_OUT ut8 *buf, int count)
bool winkd_va_to_pa(RZ_BORROW RZ_NONNULL WindCtx *ctx, ut64 directory_table, ut64 va, RZ_BORROW RZ_NONNULL RZ_OUT ut64 *pa)
ut64 winkd_get_target_base(RZ_BORROW RZ_NONNULL WindCtx *ctx)
void winkd_break(void *ctx)
int winkd_write_at(RZ_BORROW RZ_NONNULL KdCtx *ctx, const ut64 offset, RZ_BORROW RZ_NONNULL RZ_IN const ut8 *buf, const int count)
bool winkd_read_ver(RZ_BORROW RZ_NONNULL KdCtx *ctx)
ut32 winkd_get_target(RZ_BORROW RZ_NONNULL WindCtx *ctx)
WindThread * winkd_get_thread_at(RZ_BORROW RZ_NONNULL WindCtx *ctx, ut64 address)
bool winkd_lock_leave(RZ_BORROW RZ_NONNULL KdCtx *ctx)
int winkd_write_at_phys(RZ_BORROW RZ_NONNULL KdCtx *ctx, const ut64 offset, RZ_BORROW RZ_NONNULL RZ_IN const ut8 *buf, const int count)
int WindWriteAt(RZ_NONNULL void *user, ut64 address, RZ_BORROW RZ_NONNULL RZ_IN const ut8 *buf, int count)
int winkd_read_at(RZ_BORROW RZ_NONNULL KdCtx *ctx, const ut64 offset, RZ_BORROW RZ_NONNULL RZ_OUT ut8 *buf, const int count)
Profile * winkd_get_profile(int bits, int build, int sp)
static void winkd_ctx_fini(RZ_BORROW RZ_NONNULL WindCtx *ctx)
RzList * winkd_list_threads(RZ_BORROW RZ_NONNULL WindCtx *ctx)
int winkd_wait_packet(RZ_BORROW RZ_NONNULL KdCtx *ctx, const ut32 type, RZ_NULLABLE RZ_OUT kd_packet_t **p)
int winkd_get_cpus(RZ_BORROW RZ_NONNULL KdCtx *ctx)
void winkd_kdctx_free(RZ_OWN KdCtx **ctx)
int winkd_get_cpu(RZ_BORROW RZ_NONNULL KdCtx *ctx)
int winkd_read_reg(RZ_BORROW RZ_NONNULL KdCtx *ctx, RZ_BORROW RZ_NONNULL RZ_OUT ut8 *buf, int size)
RzList * winkd_list_maps(RZ_BORROW RZ_NONNULL WindCtx *ctx)
int winkd_get_sp(RZ_BORROW RZ_NONNULL WindCtx *ctx)
int winkd_write_at_uva(RZ_BORROW RZ_NONNULL WindCtx *ctx, ut64 offset, RZ_BORROW RZ_NONNULL RZ_IN const ut8 *buf, int count)
bool winkd_write_reg(RZ_BORROW RZ_NONNULL KdCtx *ctx, ut32 flags, RZ_BORROW RZ_NONNULL RZ_IN const ut8 *buf, int size)
void winkd_windmodule_free(void *ptr)
ut32 winkd_get_target_thread(RZ_BORROW RZ_NONNULL WindCtx *ctx)
RzList * winkd_list_modules(RZ_BORROW RZ_NONNULL WindCtx *ctx)
bool winkd_set_cpu(RZ_BORROW RZ_NONNULL KdCtx *ctx, int cpu)
int winkd_read_at_phys(RZ_BORROW RZ_NONNULL KdCtx *ctx, const ut64 offset, RZ_BORROW RZ_NONNULL RZ_OUT ut8 *buf, const int count)
int winkd_continue(RZ_BORROW RZ_NONNULL KdCtx *ctx, bool handled)
bool winkd_set_target(RZ_BORROW RZ_NONNULL WindCtx *ctx, ut32 pid, ut32 tid)
KdCtx * winkd_kdctx_new(RZ_BORROW RZ_NONNULL io_desc_t *desc)
bool winkd_lock_enter(RZ_BORROW RZ_NONNULL KdCtx *ctx)
int winkd_sync(RZ_BORROW RZ_NONNULL KdCtx *ctx)
int winkd_query_mem(RZ_BORROW RZ_NONNULL KdCtx *ctx, const ut64 addr, int *address_space, int *flags)
struct WindThread WindThread
WindProc * winkd_get_process_at(RZ_BORROW RZ_NONNULL WindCtx *ctx, ut64 address)
int winkd_bkpt(RZ_BORROW RZ_NONNULL KdCtx *ctx, const ut64 addr, const int set, const int hw, RZ_BORROW RZ_NONNULL int *handle)
static ut64 winkd_read_ptr_at(RZ_BORROW RZ_NONNULL WindCtx *ctx, RZ_BORROW RZ_NONNULL WindReadAt *read_at_func, ut64 at)
RzList * winkd_list_process(RZ_BORROW RZ_NONNULL WindCtx *ctx)
int winkd_get_bits(RZ_BORROW RZ_NONNULL WindCtx *ctx)