Files
thomasxm-amber/loader/loader-x64/inc/memcpy.asm
T
Ege Balcı fae3275b68 Amber v3.2 release.
- Major loader update!
  - Added TLS callback support
  - Added forwarded imports support
  - Removed GetProcAddress and LoadLibrary WinAPI usage
  - Switched to NTDLL WinApi functions
  - Wiper code improved
- Added lite loader option for appending PE files on the fly!
- Added experimental raw syscall loader
- Added static build flags in makefile
- File name bug fixed
- Dockerfile updated
- Github workflows added
- README updated
2023-06-24 13:58:23 +02:00

17 lines
324 B
NASM

[BITS 64]
; memcpy(&dst, &src, size)
; RCX = &dst
; RDX = &src
; R8 = size
memcpy:
push rsi
push rdi
mov rdi,rcx
mov rsi,rdx
mov rcx,r8
copy_byte:
rep movsb ; Copy the CX number of bytes from RSI to RDI
pop rdi ; Restore RDI
pop rsi ; Restore RSI
ret ; Return