joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000961c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009666
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009666
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009666
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009666
cmp dword [rcx + 0x84], 0xe
jbe 0x140009666
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009668
xor al, al
add rsp, 0x28
ret
Function at 0x180011456
Capabilities:
Terminate process

Disassembly:
jmp 0x18001a770
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x180011609
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1800188e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x180031060]
call fcn.180011794
mov rax, qword [rbp + 0x160]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180018929
xor eax, eax
jmp 0x1800189e9
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x180018955
xor eax, eax
jmp 0x1800189e9
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x18001897b
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x64], eax
jge 0x1800189e7
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x170]
call fcn.18001185c
test eax, eax
jne 0x1800189e5
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x168]
mov rdx, qword [rbp + 0x48]
mov eax, dword [rdx + rax + 8]
mov dword [rcx], eax
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rbp + 0x160]
add rcx, rax
mov rax, rcx
jmp 0x1800189e9
jmp 0x180018973
xor eax, eax
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140001000
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x40], 0
mov rax, rdx
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000102b
xor al, al
jmp 0x1400010b7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessExitStatus]
cmp eax, 0x103
je 0x14000104a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140001024
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400015f0
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400014fc
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140001274
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400013c0
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400022dc
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140001db4
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140001b48
mov rcx, rbx
call fcn.140001818
mov rcx, rbx
call fcn.140001634
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140001160
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x11c
call fcn.140003ac0
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [rsp + 0x34], 0xa
jne 0x1400011d9
cmp dword [rsp + 0x3c], 0x2800
je 0x1400011d9
xorps xmm0, xmm0
lea rdx, [0x140003ce0]
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov ecx, dword [rax + 3]
test ecx, ecx
lea eax, [rcx - 8]
cmove eax, ecx
jmp 0x1400011db
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140003580
add rsp, 0x168
ret
Function at 0x1400013c0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.140003ac0
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [rsp + 0x24], 0xa
jb 0x1400014d8
call fcn.140001160
mov eax, eax
mov rsi, qword [rax + rsi]
mov rdi, qword [rax + rdi]
movzx eax, word [rsi + 0x58]
movzx ecx, word [rsi + 0x5a]
cmp word [rdi + 0x58], ax
jb 0x140001452
mov r8d, ecx
xor edx, edx
mov rcx, qword [rdi + 0x60]
call fcn.140003ac0
movzx r8d, word [rsi + 0x58]
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rdi + 0x60]
call fcn.140003800
mov rbp, qword [rdi + 0x60]
jmp 0x140001485
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140003ac0
movzx r8d, word [rsi + 0x58]
mov rcx, rbp
mov rdx, qword [rsi + 0x60]
call fcn.140003800
mov qword [rdi + 0x60], rbp
movzx ecx, word [rsi + 0x5a]
mov word [rdi + 0x5a], cx
movzx eax, word [rsi + 0x58]
mov word [rdi + 0x58], ax
mov rbx, qword [rdi + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400014c8
cmp word [rbx + 0x10], 0
je 0x1400014c8
cmp word [rbx + 0x12], 0
je 0x1400014c8
mov qword [rbx + 0x18], rbp
movzx eax, word [rdi + 0x58]
mov word [rbx + 0x10], ax
movzx eax, word [rdi + 0x5a]
mov word [rbx + 0x12], ax
mov rax, qword [rsi + 8]
mov qword [rdi + 8], rax
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x10], rax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140003580
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400025a8
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, 0x716171
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x140005068], rax
test rax, rax
jne 0x1400025df
mov eax, 0xc0000001
jmp 0x1400026a2
lea rax, [0x140002360]
sub eax, dword [rdi + 0x18]
lea rbx, [0x1400026e0]
mov dword [0x140005070], eax
lea rax, [0x140002360]
sub eax, dword [rdi + 0x18]
mov dword [0x140005074], eax
lea rax, [0x140002380]
sub eax, dword [rdi + 0x18]
mov dword [0x14000507c], eax
lea rax, [0x1400026b0]
mov r8d, dword [rdi + 0x20]
mov rdx, qword [rdi + 0x18]
sub ebx, dword [rdi + 0x18]
mov qword [rdi + 0x68], rax
mov rcx, qword [0x140005068]
call fcn.140003800
mov rcx, qword [0x140005068]
xor edx, edx
mov r8d, 0x1000
call fcn.140003ac0
xorps xmm0, xmm0
lea rdx, [0x140003d80]
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 [0x140005068]
call sub.ntoskrnl.exe_IoCreateDriver
test eax, eax
jns 0x140002694
mov rcx, qword [0x140005068]
mov edx, 0x716171
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400025d5
lea rcx, [0x140003da0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
and qword [rbp - 0x48], 0
mov rbx, r8
mov eax, edx
lea rdx, [rbp - 0x50]
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x40], rax
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002841
lea rcx, [0x140003db0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400028a3
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]
test eax, eax
js 0x14000287f
mov rax, qword [rbp - 0x48]
mov qword [rbx], rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rbp - 0x48]
neg rax
sbb eax, eax
not eax
and eax, 0xc0000001
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140003580
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
Function at 0x1400028c0
Capabilities:
Attach user process memory
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x120
mov rax, qword [section..data]
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 0x140002942
mov eax, 0xc0000001
jmp 0x140002b0c
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 0x140002a0c
mov eax, 0xc0000001
jmp 0x140002b0c
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 0x140002a42
mov eax, 0xc0000001
jmp 0x140002b0c
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 0x140002a89
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 0x140002abe
xor eax, eax
jmp 0x140002b0c
mov eax, 0xc0000001
jmp 0x140002b0c
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140003580
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret

Function at 0x140002b30
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 0x140002b60
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 [section..data]
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 0x140002bb9
lea rcx, [0x140003db0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002bf7
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.140003580
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x140002c14
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 [section..data]
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 0x140002c7c
mov eax, 0xc0000001
jmp 0x140002d65
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 0x140002cfe
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 0x140002d55
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x140002ce9
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 0x140002cf9
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jne 0x140002cc1
jmp 0x140002d55
mov edi, dword [rbx + 0x18]
jmp 0x140002d55
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 0x140002d55
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140002d3f
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 0x140002d51
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jne 0x140002d17
jmp 0x140002d55
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.140003580
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002d88
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 0x140002db9
cmp qword [0x140005080], r14
je 0x140002db9
lea ebx, [rdx + 1]
jmp 0x140002ea3
mov ebx, 1
cmp rdx, rbx
jne 0x140002dd0
cmp qword [0x140005080], r14
je 0x140002ea3
test rsi, 0xfffffffffffffffb
je 0x140002ea3
mov qword [rsp + 0x48], r14
mov byte [rsp + 0x20], r14b
test rdx, rdx
jne 0x140002e4b
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002e03
movzx eax, bx
jmp 0x140002ea6
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 0x140002e46
mov qword [rdi + 0x440], r14
mov rcx, qword [rsp + 0x48]
mov qword [0x140005080], rcx
movzx eax, r14w
jmp 0x140002ea6
movzx eax, bx
jmp 0x140002ea6
mov rdi, qword [0x140005080]
lea rcx, [rdi + 0x440]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140002e85
cmp qword [rdi + 0x440], r14
jne 0x140002e80
mov qword [rdi + 0x440], rsi
mov qword [0x140005080], r14
movzx eax, r14w
jmp 0x140002ea6
movzx eax, bx
jmp 0x140002ea6
movzx eax, bx
jmp 0x140002ea6
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 0x140002ebc
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 [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
test rcx, 0xfffffffffffffffb
je 0x140002fa6
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 0x140002f20
lea eax, [rsi + 1]
jmp 0x140002fab
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 0x140002f76
movzx eax, di
jmp 0x140002fab
movzx eax, si
jmp 0x140002fab
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003580
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002fcc
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 [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r9
mov esi, r8d
mov rbx, rdx
mov dword [rsp + 0x30], esi
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 0x140003046
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.140003ac0
mov eax, 0xc0000001
jmp 0x140003170
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 0x140003076
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000302f
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400030b4
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.140003ac0
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000303c
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, rsi
mov rcx, rdi
test rax, rax
jne 0x140003119
xor edx, edx
call fcn.140003ac0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x14000303c
mov rdx, r14
call fcn.140003800
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 0x140003170
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003580
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003190
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 [section..data]
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 0x140003205
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140003ac0
mov eax, 0xc0000001
jmp 0x140003284
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test r15d, r15d
jns 0x14000321e
lea rcx, [0x140003db0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400031fe
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 0x140003248
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400031f1
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.140003800
mov dword [rsp + 0x20], ebx
jmp 0x140003277
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003580
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400032a0
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 [section..data]
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 0x140003310
lea rcx, [0x140003de0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400033b8
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.140003800
lea rdx, [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140003349
lea rcx, [0x140003db0]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140003306
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
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 0x14000337e
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140003306
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.140003800
mov dword [rsp + 0x20], ebx
jmp 0x1400033a0
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
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.140003580
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret