Code: Select all
[GLOBAL gdt_flush]
gdt_flush:
mov rax, [rsp+4]
lgdt [rax]
mov rax, 0x10
mov ds, rax
mov es, rax
mov fs, rax
mov gs, rax
mov ss, rax
lea rax, [rel .flush]
push 0x08
push rax
retf
.flush:
ret
Code: Select all
!!!! X64 Exception Type - 000000000000000D CPU Apic ID - 00000000 !!!!
RIP - 000000000673F325, CS - 0000000000000028, RFLAGS - 0000000000000246
ExceptionData - 0000000000000000
RAX - 07F94B4000000000, RCX - 00000000000000E9, RDX - 0000000000000068
RBX - 0000000006744860, RSP - 0000000007F94B18, RBP - 00000000067448C8
RSI - 0000000000000000, RDI - 00000000067448C8
R8 - 0000000000000000, R9 - 0000000000000674, R10 - 00000000000003F8
R11 - 0000000000000040, R12 - 0000000000000000, R13 - 0000000000000000
R14 - 0000000000000000, R15 - 0000000000000000
DS - 0000000000000008, ES - 0000000000000008, FS - 0000000000000008
GS - 0000000000000008, SS - 0000000000000008
CR0 - 0000000080000033, CR2 - 0000000000000000, CR3 - 0000000007F33000
CR4 - 0000000000000668, CR8 - 0000000000000000
DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 0000000007F1CE98 000000000000003F, LDTR - 0000000000000000
IDTR - 0000000007C07018 0000000000000FFF, TR - 0000000000000000
FXSAVE_STATE - 0000000007F94770
!!!! Find PE image (No PDB) (ImageBase=000000000673A000, EntryPoint=000000000673F34C) !!!!