joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008730
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov r12d, 0x656e6f42
mov ebx, 0x100000
mov r8d, r12d
mov edx, ebx
xor ecx, ecx
mov rbp, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov rdi, rax
test r14, r14
jne 0x140008789
mov eax, 0xc000000d
jmp 0x1400088ab
test rsi, rsi
jne 0x1400087b1
lea r9, [0x14000ef90]
xor edx, edx
lea r8, [0x14000efb0]
lea ecx, [rsi + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000017
jmp 0x1400088ab
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebx, eax
lfence
test eax, eax
jns 0x1400087de
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400088a9
mov ebx, 0xc0000225
cmp qword [rsi + 0x50], rbp
je 0x1400087f8
mov eax, dword [rdi]
test eax, eax
je 0x1400087fa
add rdi, rax
cmp qword [rdi + 0x50], rbp
jne 0x1400087e9
xor ebx, ebx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne r12b
test ebx, ebx
js 0x140008876
lfence
xor ebp, ebp
mov ebx, 0xc0000225
cmp dword [rdi + 4], ebp
jbe 0x14000888f
lea rcx, [rbp*4]
add rcx, rbp
add rcx, rcx
mov r15, qword [rdi + rcx*8 + 0x130]
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
cmp r15, rax
je 0x14000886d
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov rcx, qword [r14]
mov ebx, eax
test rcx, rcx
je 0x14000888f
mov dl, r12b
call fcn.140008f84
test al, al
je 0x14000888f
mov rcx, qword [r14]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [r14], 0
inc ebp
cmp ebp, dword [rdi + 4]
jb 0x14000881d
jmp 0x14000888f
xor edx, edx
lea r9, [0x14000ef90]
lea r8, [0x14000eff0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov edx, 0x656e6f42
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [r14], 0
mov eax, 0xc0000225
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400088cc
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xb8
and qword [rbp + 0x6f], 0
xorps xmm0, xmm0
and dword [rbp - 0x15], 0
and dword [rbp + 3], 0
and qword [rbp + 0x77], 0
and qword [rbp + 0x7f], 0
and qword [rbp - 0x11], 0
and qword [rbp - 9], 0
mov dword [rbp - 0x19], 0x30
mov dword [rbp - 1], 0x200
movups xmmword [rbp - 0x29], xmm0
movdqu xmmword [rbp + 7], xmm0
test rcx, rcx
jne 0x140008925
mov eax, 0xc000000d
jmp 0x140008a12
mov qword [rsp + 0x30], rcx
lea rax, [0x140008a20]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x19]
lea rax, [rbp - 0x29]
xor r9d, r9d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
jns 0x140008980
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x14000f260]
lea r8, [0x14000f270]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140008a10
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rax, [rbp + 0x7f]
mov rcx, qword [rbp + 0x6f]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, 0x1fffff
lea rax, [rbp + 0x77]
mov r8, qword [r8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test eax, eax
js 0x140008a01
mov rcx, qword [rbp + 0x77]
xorps xmm0, xmm0
and dword [rbp + 0x67], 0
mov r9b, 1
and qword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov r9d, 0x30
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x17]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationThread]
mov ebx, dword [rbp + 0x17]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140008a10
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
ret
Function at 0x140009660
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov r14, rax
test rax, rax
je 0x1400096f3
lea r8d, [rbx + 0xa]
mov dword [rsp + 0x58], ebx
lea r9, [rsp + 0x58]
mov dl, 1
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test rax, rax
je 0x1400096f8
mov r15d, 0x20b
lea rsi, [rax + 0x3c]
lea rdi, [rax + 0x58]
cmp word [r14 + 0x18], r15w
jne 0x1400096ba
mov rax, qword [rdi]
jmp 0x1400096bc
mov eax, dword [rsi]
test rax, rax
je 0x1400096f8
mov rax, rbp
lea rcx, [rsp + 0x60]
shr rax, 0x20
xor eax, ebp
mov dword [rsp + 0x60], eax
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov ecx, eax
xor rcx, rbp
cmp word [r14 + 0x18], r15w
jne 0x1400096ed
mov rax, qword [rdi]
mov qword [rax], rcx
jmp 0x1400096f8
mov eax, dword [rsi]
mov dword [rax], ecx
jmp 0x1400096f8
mov ebx, 0xc000007b
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009860
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x67], 0x1000
mov rsi, rcx
test rcx, rcx
jne 0x140009899
mov eax, 0xc000000d
jmp 0x140009a2d
lea r14, [rcx + 8]
mov dword [rsp + 0x28], 0x40
and qword [r14], 0
lea r9, [rbp + 0x67]
mov rdx, r14
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140009a2b
lfence
mov rcx, qword [rsi]
mov rdi, qword [r14]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
lea rdx, [0x14000f370]
mov r15, rax
lea rcx, [rbp + 7]
call fcn.140001050
mov rbx, qword [rsi]
lea rdx, [rbp + 7]
test r15, r15
mov rcx, rbx
setne r8b
call fcn.1400084b0
mov rcx, rax
lea rdx, [0x14000fbd0]
xor r9d, r9d
mov r8, rbx
call fcn.140008158
test rax, rax
je 0x140009a26
lfence
and dword [rbp + 0x1b], 0
lea rcx, [rdi + 0x100]
and dword [rbp + 0x33], 0
mov qword [rcx], 0xffffffffffff3cb0
test r15, r15
je 0x14000995f
mov byte [rdi], 0x68
mov dword [rdi + 1], ecx
mov word [rdi + 5], 0x16a
mov byte [rdi + 7], 0xb8
mov dword [rdi + 8], eax
mov dword [rdi + 0xc], 0xf0ebd0ff
jmp 0x140009987
mov word [rdi], 0xb948
mov qword [rdi + 2], 1
mov word [rdi + 0xa], 0xba48
mov qword [rdi + 0xc], rcx
mov word [rdi + 0x14], 0xb848
mov qword [rdi + 0x16], rax
mov dword [rdi + 0x1e], 0xdeebd0ff
and qword [rsp + 0x50], 0
lea r8, [rbp + 0x17]
mov rax, qword [r14]
lea rcx, [rsi + 0x10]
and qword [rbp + 0x1f], 0
xorps xmm0, xmm0
and qword [rbp + 0x27], 0
mov r14d, 0x1fffff
mov qword [rsp + 0x48], 0x100000
or r9, 0xffffffffffffffff
mov qword [rsp + 0x40], 0x1000
mov edx, r14d
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x17], 0x30
mov dword [rbp + 0x2f], 0x200
movdqu xmmword [rbp + 0x37], xmm0
call fcn.140001a84
mov ebx, eax
test eax, eax
js 0x140009a2b
lfence
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rax, [rsi + 0x18]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsi + 0x10]
mov edx, r14d
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
jmp 0x140009a2b
mov ebx, 0xc0000225
mov eax, ebx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000a39c
Capabilities:
Access pe header
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140005090]
xor rax, rsp
mov qword [rbp + 0x37], rax
and qword [rbp - 0x29], 0
xor eax, eax
and dword [rbp - 0xd], 0
xorps xmm0, xmm0
and dword [rbp + 0xb], 0
xorps xmm1, xmm1
mov qword [rbp + 0x2f], rax
mov rsi, rdx
mov rdi, rcx
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp + 0x1f], xmm1
test rcx, rcx
je 0x14000a5ae
test rdx, rdx
je 0x14000a5ae
and dword [rsp + 0x50], eax
lea r9, [rbp - 0x21]
and qword [rsp + 0x48], rax
lea r8, [rbp - 0x11]
and qword [rbp - 9], rax
mov edx, 0x100001
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov qword [rbp - 1], rcx
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], rax
mov dword [rbp - 0x11], 0x30
mov dword [rbp + 7], 0x200
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
jns 0x14000a489
lfence
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x14000fb80]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f0a0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
jmp 0x14000a5cc
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x1f]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x14000a4c7
mov rdx, qword [rbp + 0x27]
mov r8d, 0x656e6f42
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsi], rax
jmp 0x14000a4ec
lfence
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x14000fb80]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f0e0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
and qword [rsp + 0x40], 0
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
mov eax, dword [rbp + 0x27]
xor edx, edx
mov rcx, qword [rbp - 0x29]
mov dword [rsp + 0x30], eax
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x14000a55b
mov rcx, qword [rsi]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
jne 0x14000a580
lea r9, [0x14000fb80]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f120]
xor edx, edx
lea ecx, [rax + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc000007b
jmp 0x14000a580
lfence
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x14000fb80]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f160]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
jns 0x14000a482
mov rcx, qword [rsi]
test rcx, rcx
je 0x14000a482
mov edx, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000a482
xor edx, edx
lea r9, [0x14000fb80]
lea r8, [0x14000fba0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc000000d
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400025d0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000bae0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rdi, r8
test dl, dl
je 0x14000baf9
lea rax, [r8 + rbx]
jmp 0x14000bb46
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
je 0x14000bb44
mov ecx, 0xf8
lea r8d, [rcx + 0x13]
cmp word [rax + 0x18], r8w
lea edx, [rcx + 0x10]
cmovne ecx, edx
lea rdx, [rcx + rax]
movzx eax, word [rax + 6]
lea rcx, [rax + rax*4]
lea r8, [rdx + rcx*8]
jmp 0x14000bb3f
mov ecx, dword [rdx + 0xc]
cmp ebx, ecx
jb 0x14000bb3b
add ecx, dword [rdx + 8]
cmp ebx, ecx
jb 0x14000bb51
add rdx, 0x28
cmp rdx, r8
jb 0x14000bb2d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lfence
sub ebx, dword [rdx + 0xc]
mov eax, dword [rdx + 0x14]
mov ecx, ebx
add rcx, rdi
add rax, rcx
jmp 0x14000bb46

Function at 0x14000bc38
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rdi, rcx
cmp qword [0x140005480], 0
je 0x14000bc6f
test rcx, rcx
je 0x14000bd6e
mov eax, dword [0x140005488]
mov dword [rcx], eax
jmp 0x14000bd6e
lea rdx, [0x14000fc90]
lea rcx, [rsp + 0x20]
call fcn.140001050
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
jne 0x14000bc9a
xor eax, eax
jmp 0x14000bd75
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x14000bcd2
lea r9, [0x14000fcb0]
xor edx, edx
lea r8, [0x14000fcc0]
lea ecx, [rax + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000bc93
mov rdx, rax
xor ecx, ecx
mov r8d, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140002640
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000bd5b
mov r9d, dword [rbx]
xor ecx, ecx
test r9d, r9d
je 0x14000bd5b
mov eax, ecx
imul rdx, rax, 0x128
mov r8, qword [rbx + rdx + 0x18]
cmp rsi, r8
jb 0x14000bd3a
mov eax, dword [rbx + rdx + 0x20]
add rax, r8
cmp rsi, rax
jb 0x14000bd43
inc ecx
cmp ecx, r9d
jb 0x14000bd1b
jmp 0x14000bd5b
mov qword [0x140005480], r8
mov eax, dword [rbx + rdx + 0x20]
mov dword [0x140005488], eax
test rdi, rdi
je 0x14000bd5b
mov dword [rdi], eax
test rbx, rbx
je 0x14000bd6e
mov edx, 0x656e6f42
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140005480]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000be00
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140005090]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
call fcn.14000bc38
mov rsi, rax
mov rax, qword [0x140005490]
test rax, rax
jne 0x14000bef1
test rsi, rsi
je 0x14000beef
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rbp, rax
movzx ecx, word [rax + 6]
lea rdi, [rax + 0x108]
lea rdx, [rcx + rcx*4]
lea rcx, [rdi + rdx*8]
cmp rdi, rcx
jae 0x14000beef
lfence
lea rbx, [rdi + 8]
mov eax, dword [rbx + 0x1c]
and eax, 0x2a000000
cmp eax, 0x28000000
jne 0x14000bed6
mov eax, dword [rbx - 8]
cmp eax, 0x54494e49
je 0x14000bed6
cmp eax, 0x45474150
je 0x14000bed6
movups xmm0, xmmword [0x14000fd00]
mov r9d, dword [rbx + 4]
lea rcx, [rsp + 0x30]
mov eax, dword [rbx]
add r9, rsi
and qword [rsp + 0x30], 0
mov r8d, 0xf
mov qword [rsp + 0x28], rcx
mov dl, 0xcc
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x38], xmm0
call fcn.140001fbc
test eax, eax
jns 0x14000bf13
movzx eax, word [rbp + 6]
add rbx, 0x28
lea rcx, [rax + rax*4]
lea rdx, [rdi + rcx*8]
lea rax, [rbx - 8]
cmp rax, rdx
jb 0x14000be75
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400025d0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + 3]
add rax, 7
add rax, rcx
mov qword [0x140005490], rax
jmp 0x14000bef1
Function at 0x14000c37c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
test rcx, rcx
je 0x14000c515
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140005090]
xor rax, rsp
mov qword [rbp - 0x10], rax
and qword [rbp - 0x50], 0
mov rbx, rcx
and qword [rbp - 0x48], 0
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov r14d, 2
cmp rax, qword [rbx]
jne 0x14000c3ce
lea edi, [r14 - 1]
jmp 0x14000c3fd
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rbx]
lea rdx, [rbp - 0x48]
xor edi, edi
cmp rax, qword [rbx + 0x10]
cmove edi, r14d
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000c439
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000c410
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
lea rdx, [rbx + 0x38]
mov cl, 1
call fcn.14000c2d4
cmp edi, 1
je 0x14000c42a
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000c439
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp edi, r14d
je 0x14000c464
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000c4aa
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rbp - 0x50]
jmp 0x14000c46a
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rbx + 0x30]
mov r8b, 1
mov rcx, rax
call fcn.14000d534
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000c48c
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
cmp edi, r14d
je 0x14000c49b
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000c4aa
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rbx + 0x20], 0
je 0x14000c4d9
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14000c4c5
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
and qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
mov edx, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rbx + 0x20], 0
lea rdx, [rbx + 0x38]
xor ecx, ecx
call fcn.14000c2d4
mov rdx, rbx
lea rcx, [0x140005500]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTableAvl]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400025d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000d604
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rax + 8], 0
mov rbx, rcx
mov ecx, dword [rcx + 0xc]
mov eax, dword [rbx]
mov rdx, qword [rbx]
lea rbp, [rcx + 0xfff]
and eax, 0xfff
add rbp, rax
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov r8, qword [rax]
cmp rdx, r8
jae 0x14000d7d4
lea rax, [rdx + rcx]
cmp rax, r8
ja 0x14000d7d4
lea rcx, [0x1400054c0]
call qword [sym.imp.ntoskrnl.exe_KeAcquireGuardedMutex]
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x14000d69d
lfence
mov ecx, dword [rbx + 8]
lea r9, [0x140010530]
xor edx, edx
mov dword [rsp + 0x20], ecx
lea r8, [0x140010370]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000d6db
mov rcx, qword [rsp + 0x40]
call fcn.140001ee8
mov edx, dword [rbx + 8]
test al, al
je 0x14000d6ef
mov dword [rsp + 0x20], edx
lea r9, [0x140010530]
xor edx, edx
lea r8, [0x14000e9c0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edi, 0xc000010a
lea rcx, [0x1400054c0]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, edi
jmp 0x14000d7d9
mov rcx, rdx
xor edx, edx
call fcn.14000c8cc
mov rdi, rax
test rax, rax
jne 0x14000d72b
mov eax, dword [rbx + 8]
lea r9, [0x140010530]
lea r8, [0x140010550]
mov dword [rsp + 0x20], eax
xor edx, edx
lea ecx, [rdi + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc0000225
jmp 0x14000d7b3
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp qword [rdi], rax
je 0x14000d756
xor edx, edx
lea r9, [0x140010530]
lea r8, [0x1400103e0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc000000d
jmp 0x14000d7b3
mov rsi, qword [rbx]
lea rcx, [rdi + 0x38]
and rsi, 0xfffffffffffff000
and ebp, 0xfffff000
mov r8d, ebp
mov rdx, rsi
mov qword [rbx], rsi
mov dword [rbx + 0xc], r8d
call fcn.14000c568
test rax, rax
je 0x14000d790
mov rdx, rdi
mov rcx, rax
call fcn.14000d7f0
mov ebx, eax
jmp 0x14000d7b3
xor edx, edx
mov qword [rsp + 0x20], rsi
lea r9, [0x140010530]
lea r8, [0x140010590]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc0000141
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000d7c3
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x1400054c0]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, ebx
jmp 0x14000d7d9
mov eax, 0xc0000141
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d894
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140005090]
xor rax, rsp
mov qword [rbp + 0x37], rax
and qword [rbp - 0x19], 0
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14000d8d0
mov eax, 0xc000000d
jmp 0x14000d9c6
mov ecx, dword [rcx + 0x10]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14000d995
mov rax, qword [rbx]
lea rdx, [rbp + 7]
mov rcx, qword [rbp - 0x19]
mov qword [rbp - 1], rax
mov rax, qword [rbx + 8]
mov qword [rbp - 9], rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
cmp byte [rbx + 0x1c], 0
je 0x14000d957
cmp byte [rbx + 0x1d], 0
je 0x14000d921
mov rcx, qword [rbp - 0x19]
mov r8, rsi
mov rdx, rbx
call fcn.14000d9e8
jmp 0x14000d987
mov eax, dword [rbx + 0x14]
lea r9, [rbp - 9]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 1]
mov eax, dword [rbx + 0x18]
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov edi, eax
mov rax, qword [rbp - 1]
mov qword [rsi], rax
mov rax, qword [rbp - 9]
mov qword [rsi + 8], rax
jmp 0x14000d989
mov rdx, qword [rbx]
lea r8, [rbp - 0x11]
mov rcx, qword [rbp - 0x19]
and dword [rbp - 0x11], 0
call fcn.14000e854
cmp dword [rbp - 0x11], 1
je 0x14000d910
mov r9d, dword [rbx + 0x18]
lea r8, [rbp - 9]
lea rdx, [rbp - 1]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov edi, eax
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000d9b5
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x140010770]
lea r8, [0x14000ec80]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14000d9c4
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400025d0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret