joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007f6e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test r8, r8
jne 0x14007f715
call fcn.140010f50
mov rdi, qword [rax + 0x18]
mov r8, qword [0x14028b1d8]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x14007f734
xor eax, eax
jmp 0x14007f780
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14007f730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x14007f775
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.14007f5a8
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1400e3440
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400e3451
xor eax, eax
jmp 0x1400e347f
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400e3614
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400e3625
xor eax, eax
jmp 0x1400e3649
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400e3650
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
jne 0x1400e3692
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x1400e37a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1400e37cf
call fcn.14000f5cc
int3
test rbx, rbx
jne 0x1400e37da
call fcn.14000f5cc
int3
test r9, r9
jne 0x1400e37e5
call fcn.14000f5cc
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400e3868
cmp dword [rsp + 0x48], 3
jne 0x1400e3868
test eax, eax
jne 0x1400e3868
cmp dword [rdi], eax
je 0x1400e3868
mov ecx, dword [rdi]
call fcn.14000f30c
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400e385c
cmp dword [rsp + 0x48], 3
jne 0x1400e385c
test eax, eax
jne 0x1400e385c
mov eax, 1
jmp 0x1400e386a
mov rcx, qword [rbx]
call fcn.14000f350
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400e3974
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140126584
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x1401265ad
mov rdi, qword [rdx + 0x10]
jmp 0x1401265fe
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x1401265ce
call fcn.140022cac
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x1401265e8
call fcn.140022cac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x1401265fe
call fcn.140022cac
call fcn.140010f50
cmp qword [rax + 0x68], 0
je 0x140126618
mov rdx, rdi
mov rcx, rbp
call fcn.140124d14
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.1401263c4
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x14012663f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x14012664e
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14014c084
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14014bef4
Function at 0x140151053
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140282f80]
jne 0x14014a1ba
rol rcx, 0x10
test cx, 0xffff
jne 0x14014a1b6
repz ret
ror rcx, 0x10
jmp 0x140150fac
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14028ebd0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14028ecc8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140151031
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14028ebd0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140151053
mov rax, qword [rsp + 0x88]
mov qword [0x14028ecc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14028ec68], rax
mov rax, qword [0x14028ecc8]
mov qword [0x14028eb40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14028ec50], rax
mov dword [0x14028eb30], 0xc0000409
mov dword [0x14028eb34], 1
mov rax, qword [0x140282f80]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140282f88]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14028ebc8], eax
mov ecx, 1
call fcn.14015b6e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1401c5af8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14028ebc8], 0
jne 0x1401510da
mov ecx, 1
call fcn.14015b6e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14015b6ec
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140282f80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14014f830
xor ebx, ebx
cmp qword [0x14028fbe8], rbx
mov rdi, rax
jne 0x14015b7ff
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14015b8d6
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14015b8d6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401c7678]
mov rcx, rsi
mov qword [0x14028fbe8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401c7660]
mov rcx, rsi
mov qword [0x14028fbf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14028fbf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14028fc08], rax
test rax, rax
je 0x14015b7f6
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14028fc00], rax
jmp 0x14015b806
mov rax, qword [0x14028fc00]
jmp 0x14015b80d
mov rax, qword [0x14028fc00]
mov r11, qword [0x14028fc08]
cmp rax, rdi
je 0x14015b874
cmp r11, rdi
je 0x14015b874
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14028fc08]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14015b874
test rax, rax
je 0x14015b874
call rsi
test rax, rax
je 0x14015b86e
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14015b86e
test byte [rsp + 0x40], 1
jne 0x14015b874
bts ebp, 0x15
jmp 0x14015b8b4
mov rcx, qword [0x14028fbf0]
cmp rcx, rdi
je 0x14015b8b4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14015b8b4
call rax
mov rbx, rax
test rax, rax
je 0x14015b8b4
mov rcx, qword [0x14028fbf8]
cmp rcx, rdi
je 0x14015b8b4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14015b8b4
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14028fbe8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14015b8d6
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14015b8d8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14014a1a0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001000
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 [section..data]
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]
mov ecx, ecx
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 0x14000105f
lea rcx, [0x140002a40]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400010b5
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 ebx, eax
test eax, eax
js 0x14000109f
mov rcx, qword [rbp - 0x48]
mov qword [rdi], rcx
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.140002400
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret

Function at 0x140001268
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
lea rcx, [0x1400029c0]
call sub.ntoskrnl.exe_DbgPrint
and qword [rbp + 0x10], 0
lea rax, [0x1400010d0]
mov qword [rdi + 0x70], rax
lea rdx, [0x1400029d0]
lea rax, [0x1400010d0]
xorps xmm0, xmm0
mov qword [rdi + 0x80], rax
lea rcx, [rbp - 0x30]
lea rax, [0x1400010f0]
xorps xmm1, xmm1
mov qword [rdi + 0xe0], rax
lea rax, [0x1400013a0]
mov qword [rdi + 0x68], rax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x30], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp + 0x10]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x30]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
jns 0x14000131d
lea rcx, [0x140002a00]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x140001383
lea rdx, [0x140002970]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x14000135a
lea rcx, [0x140002a20]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x140001319
mov rbx, qword [rdi + 0x28]
or dword [rbx + 0x68], 0x20
call fcn.140002348
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ZwClose]
movups xmm0, xmmword [rbx + 0x48]
lea rcx, [rbp - 0x10]
movdqu xmmword [rbp - 0x10], xmm0
call fcn.1400013e8
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001594
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]
mov ecx, ecx
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 0x1400015ef
lea rcx, [0x140002a40]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x14000162d
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.140002400
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x140001648
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

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
mov ecx, ecx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x60], rdi
movdqu xmmword [rbp - 0x48], xmm0
mov r15, r8
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 r14d, eax
test eax, eax
jns 0x1400016b9
lea rcx, [0x140002a40]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400017a2
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
test rbx, rbx
je 0x140001733
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 0x140001788
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x140001720
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 0x14000172e
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jmp 0x1400016f2
mov edi, dword [rbx + 0x18]
jmp 0x140001788
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 0x140001788
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140001774
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 0x140001784
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jmp 0x14000174a
mov rdi, qword [rbx + 0x30]
lea rcx, [rbp - 0x38]
mov qword [r15], rdi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, r14d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002400
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400017c8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov esi, r8d
mov rbx, rdx
mov edx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], r9
lea rdi, [rsp + 0x20]
xor eax, eax
lea ecx, [rax + 8]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x38]
lea ecx, [rax + 0x30]
rep stosb byte [rdi], al
mov ecx, edx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001832
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001832
mov eax, 0xc0000001
jmp 0x1400018a4
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000186f
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.1400025c0
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001899
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002400
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400018bc
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 r15d, ecx
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 0x14000192c
lea rcx, [0x140002a70]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400019cd
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.1400025c0
mov rcx, r15
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001965
lea rcx, [0x140002a40]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140001922
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.1400025c0
mov dword [rsp + 0x20], ebx
jmp 0x1400019aa
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.140002400
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400019e8
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x20], 0
lea rax, [rdx - 0x10001]
xorps xmm0, xmm0
mov ebx, ecx
movabs rcx, 0x7ffffffefffe
mov r14, r9
mov rdi, rdx
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
cmp rax, rcx
ja 0x140001b2f
mov edx, r8d
xor ecx, ecx
mov ebp, r8d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
jne 0x140001a5e
lea rcx, [0x140002a70]
jmp 0x140001b36
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.1400025c0
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001a9c
lea rcx, [0x140002a40]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140001b3b
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, rbp
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_MmCreateMdl]
mov rdi, rax
test rax, rax
je 0x140001b0a
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rbx, rax
test rax, rax
je 0x140001afc
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.1400025c0
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
xor ebx, ebx
jmp 0x140001b01
mov ebx, 0xc0000001
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140001b40
lea rcx, [0x140002a90]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002400
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002324
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov qword [0x140004018], rcx
mov rdx, rcx
lea rcx, [0x140002c80]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x28
ret