joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000266c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edx, dword [rcx + 0x20]
mov rdi, rcx
mov ecx, 0x400
mov r8d, 0x383838
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x140006050], rax
test rax, rax
jne 0x1400026a3
mov eax, 0xc0000001
jmp 0x140002766
lea rax, [0x140002360]
sub eax, dword [rdi + 0x18]
lea rbx, [0x1400027b0]
mov dword [0x140006058], eax
lea rax, [0x140002360]
sub eax, dword [rdi + 0x18]
mov dword [0x14000605c], eax
lea rax, [0x140002380]
sub eax, dword [rdi + 0x18]
mov dword [0x140006064], eax
lea rax, [0x140002780]
mov r8d, dword [rdi + 0x20]
mov rdx, qword [rdi + 0x18]
sub ebx, dword [rdi + 0x18]
mov qword [rdi + 0x68], rax
mov rcx, qword [0x140006050]
call fcn.140003e80
mov rcx, qword [0x140006050]
xor edx, edx
mov r8d, 0x1000
call fcn.140004140
xorps xmm0, xmm0
lea rdx, [0x1400043e0]
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, ebx
lea rcx, [rsp + 0x20]
add rdx, qword [0x140006050]
call sub.ntoskrnl.exe_IoCreateDriver
test eax, eax
jns 0x140002758
mov rcx, qword [0x140006050]
mov edx, 0x383838
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140002699
lea rcx, [0x140004400]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400028b0
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
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 rdi, r8
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 0x14000290d
lea rcx, [0x140004430]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x14000296a
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rbp - 0x40]
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov rcx, qword [rbp - 0x48]
xor edx, edx
mov r8, qword [rbp - 0x40]
mov ebx, eax
mov qword [rdi], rcx
call fcn.140004140
lea rcx, [rbp - 0x38]
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.140003bf0
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
Function at 0x140002984
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 0x140002a06
mov eax, 0xc0000001
jmp 0x140002bd0
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 0x140002ad0
mov eax, 0xc0000001
jmp 0x140002bd0
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 0x140002b06
mov eax, 0xc0000001
jmp 0x140002bd0
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 0x140002b4d
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 0x140002b82
xor eax, eax
jmp 0x140002bd0
mov eax, 0xc0000001
jmp 0x140002bd0
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140003bf0
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret

Function at 0x140002bf4
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 0x140002c24
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 0x140002c7d
lea rcx, [0x140004430]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002cbb
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.140003bf0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x140002cd8
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 0x140002d40
mov eax, 0xc0000001
jmp 0x140002e29
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 0x140002dc2
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 0x140002e19
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x140002dad
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 0x140002dbd
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jne 0x140002d85
jmp 0x140002e19
mov edi, dword [rbx + 0x18]
jmp 0x140002e19
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 0x140002e19
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140002e03
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 0x140002e15
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jne 0x140002ddb
jmp 0x140002e19
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.140003bf0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002e4c
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 0x140002e7d
cmp qword [0x140006098], r14
je 0x140002e7d
lea ebx, [rdx + 1]
jmp 0x140002f67
mov ebx, 1
cmp rdx, rbx
jne 0x140002e94
cmp qword [0x140006098], r14
je 0x140002f67
test rsi, 0xfffffffffffffffb
je 0x140002f67
mov qword [rsp + 0x48], r14
mov byte [rsp + 0x20], r14b
test rdx, rdx
jne 0x140002f0f
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002ec7
movzx eax, bx
jmp 0x140002f6a
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 0x140002f0a
mov qword [rdi + 0x440], r14
mov rcx, qword [rsp + 0x48]
mov qword [0x140006098], rcx
movzx eax, r14w
jmp 0x140002f6a
movzx eax, bx
jmp 0x140002f6a
mov rdi, qword [0x140006098]
lea rcx, [rdi + 0x440]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140002f49
cmp qword [rdi + 0x440], r14
jne 0x140002f44
mov qword [rdi + 0x440], rsi
mov qword [0x140006098], r14
movzx eax, r14w
jmp 0x140002f6a
movzx eax, bx
jmp 0x140002f6a
movzx eax, bx
jmp 0x140002f6a
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 0x140002f80
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 0x14000306a
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 0x140002fe4
lea eax, [rsi + 1]
jmp 0x14000306f
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 0x14000303a
movzx eax, di
jmp 0x14000306f
movzx eax, si
jmp 0x14000306f
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003bf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003090
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 0x14000310a
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140004140
mov eax, 0xc0000001
jmp 0x140003244
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 0x14000313a
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400030f3
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 0x140003178
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140004140
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140003100
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 0x1400031dd
xor edx, edx
call fcn.140004140
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x140003100
mov rdx, r14
call fcn.140003e80
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 0x140003244
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003bf0
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003264
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 0x1400033fb
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400033fb
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 0x140003308
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov r8d, edi
xor edx, edx
mov rcx, rsi
call fcn.140004140
mov eax, 0xc0000001
jmp 0x1400033fb
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 0x140003360
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140004140
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x1400032fe
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000338b
mov r8, rdi
mov rdx, r15
mov rcx, r14
call fcn.140003e80
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 0x1400033fb
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140003bf0
add rsp, 0x98
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000341c
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 0x140003491
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140004140
mov eax, 0xc0000001
jmp 0x140003510
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test r15d, r15d
jns 0x1400034aa
lea rcx, [0x140004430]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x14000348a
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 0x1400034d4
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000347d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.140003e80
mov dword [rsp + 0x20], ebx
jmp 0x140003503
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003bf0
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000352c
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 0x1400035c8
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400035c8
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400035c8
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 0x1400035cd
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 0x1400035e8
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 0x1400036b0
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 0x1400036a5
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 0x1400036a5
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call fcn.140003e80
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 0x1400036c2
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.140004140
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003bf0
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400036d8
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 0x140003748
lea rcx, [0x140004410]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400037f0
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.140003e80
lea rdx, [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140003781
lea rcx, [0x140004430]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000373e
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 0x1400037ab
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000373e
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.140003e80
mov dword [rsp + 0x20], ebx
jmp 0x1400037cd
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.140003bf0
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret