Skip to content

Commit

Permalink
chore: fix wronge indents in asm file
Browse files Browse the repository at this point in the history
  • Loading branch information
f1zm0 committed Apr 8, 2023
1 parent 21f66df commit 12e929d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/resolver/asm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ TEXT ·getNtdllBaseAddr(SB),$0
MOVQ 0x30(GS), AX
MOVQ 0x60(AX), AX

// PEB->Ldr
MOVQ 0x18(AX), AX
// PEB->Ldr
MOVQ 0x18(AX), AX

// PEB->Ldr->InMemoryOrderModuleList
MOVQ 0x20(AX), AX
// PEB->Ldr->InMemoryOrderModuleList
MOVQ 0x20(AX), AX

// PEB->Ldr->InMemoryOrderModuleList->Flink (ntdll.dll)
MOVQ (AX), AX

// PEB->Ldr->InMemoryOrderModuleList->Flink DllBase
MOVQ 0x20(AX), AX

MOVQ AX, ret+0(FP)
RET
MOVQ AX, ret+0(FP)
RET


// func getModuleEATAddr (moduleBase uintptr) uintptr
Expand All @@ -41,7 +41,7 @@ TEXT ·getModuleEATAddr(SB),$0-8
// AX = ntdll base + IMAGE_DATA_DIRECTORY.VirtualAddress
ADDL 0x0(R15), R14
ADDQ R14, AX

MOVQ AX, ret+8(FP)
RET

Expand Down

0 comments on commit 12e929d

Please sign in to comment.