joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400029b4
Capabilities:
Attach user process memory
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x118], rax
movups xmm0, xmmword [rcx]
movdqu xmmword [r11 - 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [r11 - 0x40], xmm0
movups xmmword [r11 - 0x30], xmm0
movups xmmword [r11 - 0x20], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x98], xmm1
movups xmmword [r11 - 0x80], xmm1
movups xmmword [r11 - 0x70], xmm1
xor edi, edi
mov qword [r11 - 0x98], rdi
movups xmmword [r11 - 0x50], xmm0
mov qword [r11 - 0xa0], rdi
mov byte [rsp + 0x80], dil
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
test al, al
je 0x140002a36
mov eax, 0xc0000001
jmp 0x140002c00
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rdx, [rsp + 0xe8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x80], 1
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], rdi
mov dword [rsp + 0xb0], 0x240
lea rax, [rsp + 0xc8]
mov qword [rsp + 0xa8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x68], 0x800
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x98]
mov edx, 0x100181
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
test eax, eax
jns 0x140002b00
mov eax, 0xc0000001
jmp 0x140002c00
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jns 0x140002b36
mov eax, 0xc0000001
jmp 0x140002c00
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 0x28]
mov qword [rcx + 0x10], rdi
mov rax, qword [rsp + 0x88]
mov byte [rax + 0x4c], 1
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140002b7d
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [rsp + 0x88], rdi
lea rcx, [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x80], dil
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
or qword [rsp + 0x90], 0xffffffffffffffff
test ebx, ebx
js 0x140002bb2
xor eax, eax
jmp 0x140002c00
mov eax, 0xc0000001
jmp 0x140002c00
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140003f00
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret

Function at 0x140002c24
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x40], 0
mov rbx, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call section..text
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140002c54
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
and qword [rbp - 0x48], 0
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x50]
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002cad
lea rcx, [0x140004750]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002ceb
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x38]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140003f00
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x140002d08
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor edi, edi
lea rdx, [rbp - 0x60]
mov r14, r8
mov qword [rbp - 0x60], rdi
movdqu xmmword [rbp - 0x48], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rbp - 0x60]
mov r15d, eax
test rcx, rcx
jne 0x140002d70
mov eax, 0xc0000001
jmp 0x140002e59
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x60]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
test rbx, rbx
je 0x140002df2
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rsi, rax
mov ecx, dword [rax + 0xc]
add rcx, 0xc
mov ebx, dword [rcx]
cmp rbx, rcx
je 0x140002e49
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x140002ddd
mov edx, ecx
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140002ded
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jne 0x140002db5
jmp 0x140002e49
mov edi, dword [rbx + 0x18]
jmp 0x140002e49
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140002e49
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140002e33
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140002e45
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jne 0x140002e0b
jmp 0x140002e49
mov rdi, qword [rbx + 0x30]
lea rcx, [rbp - 0x38]
mov qword [r14], rdi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, r15d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140003f00
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002e7c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rsi, rcx
xor r14d, r14d
test rdx, rdx
jne 0x140002ead
cmp qword [0x140006098], r14
je 0x140002ead
lea ebx, [rdx + 1]
jmp 0x140002f97
mov ebx, 1
cmp rdx, rbx
jne 0x140002ec4
cmp qword [0x140006098], r14
je 0x140002f97
test rsi, 0xfffffffffffffffb
je 0x140002f97
mov qword [rsp + 0x48], r14
mov byte [rsp + 0x20], r14b
test rdx, rdx
jne 0x140002f3f
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002ef7
movzx eax, bx
jmp 0x140002f9a
mov byte [rsp + 0x20], bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov byte [rsp + 0x20], r14b
mov rdi, qword [rsp + 0x48]
lea rcx, [rdi + 0x440]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140002f3a
mov qword [rdi + 0x440], r14
mov rcx, qword [rsp + 0x48]
mov qword [0x140006098], rcx
movzx eax, r14w
jmp 0x140002f9a
movzx eax, bx
jmp 0x140002f9a
mov rdi, qword [0x140006098]
lea rcx, [rdi + 0x440]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140002f79
cmp qword [rdi + 0x440], r14
jne 0x140002f74
mov qword [rdi + 0x440], rsi
mov qword [0x140006098], r14
movzx eax, r14w
jmp 0x140002f9a
movzx eax, bx
jmp 0x140002f9a
movzx eax, bx
jmp 0x140002f9a
movzx eax, bx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140002fb0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x60], rax
test rcx, 0xfffffffffffffffb
je 0x14000309a
xor esi, esi
mov qword [r11 - 0x50], rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x21], sil
mov byte [rsp + 0x20], sil
lea rdx, [r11 - 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140003014
lea eax, [rsi + 1]
jmp 0x14000309f
mov edi, 1
mov byte [rsp + 0x21], dil
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov byte [rsp + 0x21], sil
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x20], dil
xor edx, edx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov ebx, eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x20], sil
test ebx, ebx
jns 0x14000306a
movzx eax, di
jmp 0x14000309f
movzx eax, si
jmp 0x14000309f
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003f00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400030c0
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x98
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov esi, r9d
mov ebx, r8d
mov qword [rsp + 0x48], rdx
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x31], r14b
mov byte [rsp + 0x30], r14b
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140003126
lea eax, [r14 + 1]
jmp 0x1400031c4
mov edi, 1
mov byte [rsp + 0x31], dil
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov byte [rsp + 0x31], r14b
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], 0x40
mov r9d, esi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov ebx, eax
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x30], r14b
test ebx, ebx
jns 0x140003195
movzx eax, di
jmp 0x1400031c4
movzx eax, r14w
jmp 0x1400031c4
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003f00
add rsp, 0x98
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400031e4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, r9
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x40], r9
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r15d, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x14000325e
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140004440
mov eax, 0xc0000001
jmp 0x140003398
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x14000328e
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140003247
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400032cc
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140004440
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140003254
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov r14, rax
mov r8, rdi
mov rcx, rsi
test rax, rax
jne 0x140003331
xor edx, edx
call fcn.140004440
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x140003254
mov rdx, r14
call fcn.140004180
mov cl, 2
call qword [sym.imp.ntoskrnl.exe_KfRaiseIrql]
mov cl, al
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, r15d
jmp 0x140003398
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003f00
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400033b8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, r9
mov edi, r8d
mov r15, rdx
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x48], r9
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r12d, eax
test eax, eax
js 0x14000354f
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000354f
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x14000345c
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov r8d, edi
xor edx, edx
mov rcx, rsi
call fcn.140004440
mov eax, 0xc0000001
jmp 0x14000354f
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1400034b4
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140004440
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x140003452
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400034df
mov r8, rdi
mov rdx, r15
mov rcx, r14
call fcn.140004180
mov cl, 2
call qword [sym.imp.ntoskrnl.exe_KfRaiseIrql]
mov cl, al
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
lfence
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, r12d
jmp 0x14000354f
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140003f00
add rsp, 0x98
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003570
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r9
mov edi, r8d
mov r14, rdx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x38], r9
xor ebx, ebx
mov qword [rsp + 0x30], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r15d, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x1400035e5
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140004440
mov eax, 0xc0000001
jmp 0x140003664
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test r15d, r15d
jns 0x1400035fe
lea rcx, [0x140004750]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400035de
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140003628
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400035d1
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.140004180
mov dword [rsp + 0x20], ebx
jmp 0x140003657
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003f00
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003680
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r15d, r8d
mov qword [rax - 0x28], rbx
mov r14, r9
mov qword [rax - 0x20], rbx
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rbp, rax
test rax, rax
je 0x14000371c
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000371c
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000371c
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r9, r14
mov byte [rsp + 0x28], bl
mov r8, rbp
mov rdx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntoskrnl.exe_MmCopyVirtualMemory]
test eax, eax
mov ecx, 0xc0000001
cmovs ebx, ecx
mov eax, ebx
jmp 0x140003721
mov eax, 0xc0000001
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000373c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x20], 0
xorps xmm0, xmm0
mov rdi, rdx
mov ebx, r8d
lea rdx, [rsp + 0x20]
mov rsi, r9
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
mov ebp, eax
test rcx, rcx
je 0x140003804
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400037f9
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov r8d, 4
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmMapIoSpace]
mov rdi, rax
test rax, rax
je 0x1400037f9
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call fcn.140004180
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnmapIoSpace]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebp
jmp 0x140003816
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.140004440
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003f00
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000382c
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r14, rdx
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x28], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov esi, r8d
mov edx, r8d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14000389c
lea rcx, [0x140004730]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140003944
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.140004180
lea rdx, [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400038d5
lea rcx, [0x140004750]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140003892
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400038ff
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140003892
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.140004180
mov dword [rsp + 0x20], ebx
jmp 0x140003921
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140003f00
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003960
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r15, r9
mov r14d, r8d
mov rdi, rdx
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x48], r9
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r12d, eax
test eax, eax
js 0x140003af9
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140003af9
cmp qword [rsp + 0x38], 0
je 0x140003af9
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140003a30
mov r8d, r14d
xor edx, edx
mov rcx, r15
call fcn.140004440
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, 0xc0000001
jmp 0x140003af9
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140003a89
mov rax, cr0
btr rax, 0x10
mov cr0, rax
cli
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.140004180
mov cl, 2
call qword [sym.imp.ntoskrnl.exe_KfRaiseIrql]
mov cl, al
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
mov rax, cr0
bts rax, 0x10
mov qword [rsp + 0x58], rax
sti
mov cr0, rax
lfence
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, r12d
jmp 0x140003af9
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140003f00
add rsp, 0xa8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret