joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400088a4
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 0x1400088fd
mov eax, 0xc000000d
jmp 0x1400089ea
mov qword [rsp + 0x30], rcx
lea rax, [0x140008a00]
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 0x140008958
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x14000f280]
lea r8, [0x14000f290]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x1400089e8
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 0x1400089d9
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 0x1400089e8
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
ret
Function at 0x140009640
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 0x1400096d3
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 0x1400096d8
mov r15d, 0x20b
lea rsi, [rax + 0x3c]
lea rdi, [rax + 0x58]
cmp word [r14 + 0x18], r15w
jne 0x14000969a
mov rax, qword [rdi]
jmp 0x14000969c
mov eax, dword [rsi]
test rax, rax
je 0x1400096d8
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 0x1400096cd
mov rax, qword [rdi]
mov qword [rax], rcx
jmp 0x1400096d8
mov eax, dword [rsi]
mov dword [rax], ecx
jmp 0x1400096d8
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 0x140009840
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 0x140009879
mov eax, 0xc000000d
jmp 0x140009a0d
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 0x140009a0b
lfence
mov rcx, qword [rsi]
mov rdi, qword [r14]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
lea rdx, [0x14000f390]
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.140008488
mov rcx, rax
lea rdx, [0x14000fbf0]
xor r9d, r9d
mov r8, rbx
call fcn.140008130
test rax, rax
je 0x140009a06
lfence
and dword [rbp + 0x1b], 0
lea rcx, [rdi + 0x100]
and dword [rbp + 0x33], 0
mov qword [rcx], 0xffffffffffff3cb0
test r15, r15
je 0x14000993f
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 0x140009967
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 0x140009a0b
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 0x140009a0b
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 0x14000a384
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 0x14000a596
test rdx, rdx
je 0x14000a596
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 0x14000a471
lfence
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x14000fba0]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f0c0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
jmp 0x14000a5b4
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 0x14000a4af
mov rdx, qword [rbp + 0x27]
mov r8d, 0x6274754f
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsi], rax
jmp 0x14000a4d4
lfence
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x14000fba0]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f100]
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 0x14000a543
mov rcx, qword [rsi]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
jne 0x14000a568
lea r9, [0x14000fba0]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f140]
xor edx, edx
lea ecx, [rax + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc000007b
jmp 0x14000a568
lfence
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x14000fba0]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f180]
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 0x14000a46a
mov rcx, qword [rsi]
test rcx, rcx
je 0x14000a46a
mov edx, 0x6274754f
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000a46a
xor edx, edx
lea r9, [0x14000fba0]
lea r8, [0x14000fbc0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc000000d
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400023d0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000baf4
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 0x14000bb0d
lea rax, [r8 + rbx]
jmp 0x14000bb5a
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
je 0x14000bb58
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 0x14000bb53
mov ecx, dword [rdx + 0xc]
cmp ebx, ecx
jb 0x14000bb4f
add ecx, dword [rdx + 8]
cmp ebx, ecx
jb 0x14000bb65
add rdx, 0x28
cmp rdx, r8
jb 0x14000bb41
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 0x14000bb5a

Function at 0x14000bc48
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 [0x140005460], 0
je 0x14000bc7f
test rcx, rcx
je 0x14000bd8b
mov eax, dword [0x140005468]
mov dword [rcx], eax
jmp 0x14000bd8b
lea rdx, [0x14000fcb0]
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 0x14000bcaa
xor eax, eax
jmp 0x14000bd92
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 0x14000bce2
lea r9, [0x14000fcd0]
xor edx, edx
lea r8, [0x14000fce0]
lea ecx, [rax + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000bca3
mov rdx, rax
xor ecx, ecx
mov r8d, 0x6274754f
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 0x14000bd78
mov r8d, dword [rbx]
xor edx, edx
test r8d, r8d
je 0x14000bd78
lea rcx, [rbx + 0x20]
mov r9, qword [rcx - 8]
cmp rsi, r9
jb 0x14000bd42
mov eax, dword [rcx]
add rax, r9
cmp rsi, rax
jb 0x14000bd52
inc edx
add rcx, 0x128
cmp edx, r8d
jb 0x14000bd2f
jmp 0x14000bd78
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x140005460], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x140005468], eax
test rdi, rdi
je 0x14000bd78
mov dword [rdi], eax
test rbx, rbx
je 0x14000bd8b
mov edx, 0x6274754f
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140005460]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000be1c
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.14000bc48
mov rsi, rax
mov rax, qword [0x140005470]
test rax, rax
jne 0x14000bf0d
test rsi, rsi
je 0x14000bf0b
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 0x14000bf0b
lfence
lea rbx, [rdi + 8]
mov eax, dword [rbx + 0x1c]
and eax, 0x2a000000
cmp eax, 0x28000000
jne 0x14000bef2
mov eax, dword [rbx - 8]
cmp eax, 0x54494e49
je 0x14000bef2
cmp eax, 0x45474150
je 0x14000bef2
movups xmm0, xmmword [0x14000fd20]
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 0x14000bf2f
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 0x14000be91
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400023d0
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 [0x140005470], rax
jmp 0x14000bf0d
Function at 0x14000c39c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
test rcx, rcx
je 0x14000c535
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 0x14000c3ee
lea edi, [r14 - 1]
jmp 0x14000c41d
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 0x14000c459
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 0x14000c430
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
lea rdx, [rbx + 0x38]
mov cl, 1
call fcn.14000c2f4
cmp edi, 1
je 0x14000c44a
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000c459
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp edi, r14d
je 0x14000c484
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000c4ca
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rbp - 0x50]
jmp 0x14000c48a
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rbx + 0x30]
mov r8b, 1
mov rcx, rax
call fcn.14000d554
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000c4ac
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
cmp edi, r14d
je 0x14000c4bb
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000c4ca
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rbx + 0x20], 0
je 0x14000c4f9
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14000c4e5
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
and qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
mov edx, 0x6274754f
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rbx + 0x20], 0
lea rdx, [rbx + 0x38]
xor ecx, ecx
call fcn.14000c2f4
mov rdx, rbx
lea rcx, [0x1400054e0]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTableAvl]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400023d0
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 0x14000d624
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 rsi, [rcx + 0xfff]
and eax, 0xfff
add rsi, rax
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov r8, qword [rax]
cmp rdx, r8
jae 0x14000d7f4
lea rax, [rdx + rcx]
cmp rax, r8
ja 0x14000d7f4
lea rcx, [0x1400054a0]
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 0x14000d6bd
lfence
mov ecx, dword [rbx + 8]
lea r9, [0x140010550]
xor edx, edx
mov dword [rsp + 0x20], ecx
lea r8, [0x140010390]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000d6fb
mov rcx, qword [rsp + 0x40]
call fcn.140001ee8
mov edx, dword [rbx + 8]
test al, al
je 0x14000d70f
mov dword [rsp + 0x20], edx
lea r9, [0x140010550]
xor edx, edx
lea r8, [0x14000e9e0]
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, [0x1400054a0]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, edi
jmp 0x14000d7f9
mov rcx, rdx
xor edx, edx
call fcn.14000c8ec
mov rdi, rax
test rax, rax
jne 0x14000d74b
mov eax, dword [rbx + 8]
lea r9, [0x140010550]
lea r8, [0x140010570]
mov dword [rsp + 0x20], eax
xor edx, edx
lea ecx, [rdi + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc0000225
jmp 0x14000d7d3
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp qword [rdi], rax
je 0x14000d776
xor edx, edx
lea r9, [0x140010550]
lea r8, [0x140010400]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc000000d
jmp 0x14000d7d3
mov rbp, qword [rbx]
lea rcx, [rdi + 0x38]
and rbp, 0xfffffffffffff000
and esi, 0xfffff000
mov r8d, esi
mov rdx, rbp
mov qword [rbx], rbp
mov dword [rbx + 0xc], r8d
call fcn.14000c588
test rax, rax
je 0x14000d7b0
mov rdx, rdi
mov rcx, rax
call fcn.14000d810
mov ebx, eax
jmp 0x14000d7d3
xor edx, edx
mov qword [rsp + 0x20], rbp
lea r9, [0x140010550]
lea r8, [0x1400105b0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc0000141
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000d7e3
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x1400054a0]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, ebx
jmp 0x14000d7f9
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 0x14000d8b4
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 0x14000d8f0
mov eax, 0xc000000d
jmp 0x14000d9e6
mov ecx, dword [rcx + 0x10]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14000d9b5
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 0x14000d977
cmp byte [rbx + 0x1d], 0
je 0x14000d941
mov rcx, qword [rbp - 0x19]
mov r8, rsi
mov rdx, rbx
call fcn.14000da08
jmp 0x14000d9a7
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 0x14000d9a9
mov rdx, qword [rbx]
lea r8, [rbp - 0x11]
mov rcx, qword [rbp - 0x19]
and dword [rbp - 0x11], 0
call fcn.14000e874
cmp dword [rbp - 0x11], 1
je 0x14000d930
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 0x14000d9d5
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x140010790]
lea r8, [0x14000eca0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14000d9e4
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400023d0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000de78
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
and qword [rax + 8], 0
lea rdx, [rax + 8]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14000df02
and qword [rsp + 0x58], 0
lea rdi, [rbx + 8]
cmp byte [rbx + 0x1c], 0
je 0x14000dec6
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rbx]
mov rsi, rax
mov rax, qword [rsp + 0x50]
jmp 0x14000ded7
mov rsi, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rdi]
mov rdi, rbx
mov r9, qword [rdi]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rcx
mov r8, rax
mov rcx, qword [rbx + 0x10]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmCopyVirtualMemory]
mov edi, eax
jmp 0x14000df22
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x140010780]
lea r8, [0x14000eca0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000df32
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14000df44
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x30
mov ecx, dword [rcx]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x40], 0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x14000df9c
mov eax, dword [0x14000556c]
test eax, eax
je 0x14000df7c
mov ecx, eax
add rcx, qword [rsp + 0x40]
mov byte [rcx], 0
or dword [rcx], 0x32
jmp 0x14000dfbc
xor edx, edx
lea r9, [0x140010650]
lea r8, [0x140010660]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc0000141
jmp 0x14000dfbc
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x140010650]
lea r8, [0x14000eca0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000dfcc
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14000dfd4
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
mov rdi, rcx
cmp dword [0x140005578], 0
jne 0x14000e010
xor edx, edx
lea r9, [0x140010740]
lea r8, [0x140010750]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000141
jmp 0x14000e069
mov ecx, dword [rcx + 8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x14000e037
mov rcx, qword [rsp + 0x48]
call fcn.140001ee8
test al, al
je 0x14000e074
mov ebx, 0xc000010a
lfence
xor edx, edx
mov dword [rsp + 0x20], ebx
lea r9, [0x140010740]
lea r8, [0x14000eca0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000e067
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, dword [0x140005578]
lea rdx, [0x14000e0b0]
mov rax, qword [rsp + 0x48]
xor r9d, r9d
mov r8, rdi
mov rcx, qword [rcx + rax]
call qword [sym.imp.ntoskrnl.exe_ExEnumHandleTable]
test al, al
jne 0x14000e057
mov ebx, 0xc0000225
jmp 0x14000e057