joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400050b8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rbp + 0x27], rax
and dword [rbp - 0x29], 0
mov esi, r9d
mov eax, r8d
mov qword [rbp - 0x19], rax
lea rax, [rdx - 0x10001]
mov qword [rbp - 0x11], rdx
movabs rdx, 0x7ffffffefffd
cmp rax, rdx
ja 0x140005174
mov ecx, ecx
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140005174
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140005174
lea rdx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdi, qword gs:[0x188]
lea rcx, [rbp - 0x29]
mov eax, dword [0x140012284]
lea r8, [rbp - 0x19]
add rdi, rax
mov qword [rsp + 0x20], rcx
mov r9d, esi
lea rdx, [rbp - 0x11]
or rcx, 0xffffffffffffffff
mov bl, byte [rdi]
mov byte [rdi], 0
mov rax, qword [0x140012308]
call qword [0x14000b408]
lea rcx, [rbp - 9]
mov byte [rdi], bl
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rbp - 0x29]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140009430
add rsp, 0x98
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140005200
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [rdx - 0x10001]
mov rbp, rdx
movabs rdx, 0x7ffffffefffd
mov r14, r8
mov esi, 0xc0000001
cmp rax, rdx
ja 0x1400052cb
mov ecx, ecx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
test eax, eax
js 0x1400052cb
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400052cb
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdi, qword gs:[0x188]
lea rcx, [rsp + 0x48]
mov eax, dword [0x140012284]
mov r9, r14
add rdi, rax
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov qword [rsp + 0x20], 0x30
mov rdx, rbp
or rcx, 0xffffffffffffffff
mov bl, byte [rdi]
mov byte [rdi], 0
mov rax, qword [0x140012300]
call qword [0x14000b408]
lea rcx, [rsp + 0x50]
mov byte [rdi], bl
mov esi, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140009430
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140005a50
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov ebx, ecx
movups xmm0, xmmword [rdx]
movdqu xmmword [rsp + 0x70], xmm0
and qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0x1000
and qword [rsp + 0x50], 0
test ecx, ecx
jne 0x140005a9f
mov rax, 0xffffffffc0000001
jmp 0x140005bb0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, [0x140009e70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [0x140009e90]
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.14000818c
mov rdi, rax
mov rcx, rbx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x140005af7
cdqe
jmp 0x140005bb0
mov rcx, qword [rsp + 0x38]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
test rax, rax
setne bl
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x70]
mov rcx, rdi
test bl, bl
je 0x140005b34
call fcn.140006628
jmp 0x140005b39
call fcn.140006340
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9b, 1
xor edx, edx
lea r8d, [rdx + 4]
mov rcx, rax
call fcn.1400060a4
movsxd rax, dword [rsp + 0x30]
test eax, eax
js 0x140005bb0
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax + 0x5e0]
mov qword [rsp + 0x50], rbx
mov r9d, 0x8000
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
jmp 0x140005b94
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140009430
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400061c4
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 [0x140012250], r14
mov dword [rbp + 0x28], r14d
je 0x140006202
test rcx, rcx
je 0x140006320
mov eax, dword [0x140012258]
mov dword [rcx], eax
jmp 0x140006320
xorps xmm0, xmm0
lea r8, [0x140009eb0]
movups xmmword [rbp - 0x10], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], r14w
je 0x14000622e
add rax, rdx
sub rcx, 1
jne 0x14000621d
jmp 0x140006248
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
je 0x140006329
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 0xb]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rbp + 0x28]
test eax, eax
je 0x140006329
mov edx, eax
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.140009900
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rdx, rbx
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x14000630d
mov r9d, dword [rbx]
mov edx, r14d
test r9d, r9d
je 0x14000630d
lea rcx, [rbx + 0x20]
mov r8, qword [rcx - 8]
cmp rsi, r8
jb 0x1400062d7
mov eax, dword [rcx]
add rax, r8
cmp rsi, rax
jb 0x1400062e7
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x14000630d
jmp 0x1400062c4
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x140012250], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x140012258], eax
test rdi, rdi
je 0x14000630d
mov dword [rdi], eax
test rbx, rbx
je 0x140006320
mov edx, 0x656e6f42
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140012250]
jmp 0x14000632b
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140006340
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
xor r14d, r14d
mov dword [rsp + 0x28], 0x40
mov eax, 0x1000
mov qword [rbp + 0x30], r14
mov rdi, rdx
mov qword [rbp + 0x38], rax
mov rsi, rcx
mov qword [rbp - 0x44], r14
lea rdx, [rbp + 0x30]
mov qword [rbp - 0x30], r14
or rcx, 0xffffffffffffffff
mov qword [rbp - 0x24], r14
lea r9, [rbp + 0x38]
mov qword [rbp - 0x14], r14
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov dword [rbp - 0x50], 0x28ec8348
mov dword [rbp - 0x4c], 0x48c93148
mov dword [rbp - 0x48], 0xb849d231
mov qword [rbp - 0x3c], 0xb949
mov dword [rbp - 0x34], 0xb8480000
mov dword [rbp - 0x28], 0xba48d0ff
mov dword [rbp - 0x1c], 0x1e7e02c7
mov dword [rbp - 0x18], 0xba48c037
mov dword [rbp - 0xc], 0x83480289
mov word [rbp - 8], 0x28c4
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140006493
mov rbx, qword [rbp + 0x30]
mov rdx, rdi
add rbx, 0x200
mov rcx, rbx
mov dword [rbx], 0x3d00000
mov rax, qword [rbp + 0x30]
add rax, 0x210
mov qword [rbx + 8], rax
call fcn.140006e54
mov rcx, qword [rbp + 0x30]
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp - 0x40]
movzx eax, word [rbp - 8]
movups xmmword [rcx], xmm0
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rcx + 0x20], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rcx + 0x30], xmm1
movsd qword [rcx + 0x40], xmm0
mov word [rcx + 0x48], ax
mov byte [rcx + 0x4a], 0xc3
mov rax, qword [rbp + 0x30]
mov qword [rax + 0xc], rbx
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5e0]
mov qword [rcx + 0x16], rax
mov rax, qword [rbp + 0x30]
mov qword [rax + 0x20], rsi
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5e8]
mov qword [rcx + 0x2c], rax
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5ec]
mov qword [rcx + 0x3c], rax
mov rax, qword [rbp + 0x30]
jmp 0x140006495
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400064b0
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 [0x140011ca0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
call fcn.1400061c4
mov rsi, rax
mov rax, qword [0x140012248]
test rax, rax
jne 0x1400065a0
test rsi, rsi
je 0x14000659e
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 0x14000659e
lea rbx, [rdi + 8]
mov ecx, dword [rbx + 0x1c]
and ecx, 0x2a000000
cmp ecx, 0x28000000
jne 0x140006585
mov eax, dword [rbx - 8]
cmp eax, 0x54494e49
je 0x140006585
cmp eax, 0x45474150
je 0x140006585
movups xmm0, xmmword [0x140009ed0]
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.140005bd4
test eax, eax
jns 0x1400065c2
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 0x140006522
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009430
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 [0x140012248], rax
jmp 0x1400065a0
Function at 0x140006628
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov eax, 0x1000
mov dword [rsp + 0x28], 0x40
mov rsi, rdx
mov qword [rbp + 0x38], rax
mov rdi, rcx
mov dword [rsp + 0x20], eax
xor ebx, ebx
mov dword [rbp - 0x30], 0x68
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x30], rbx
or rcx, 0xffffffffffffffff
mov dword [rbp - 0x1c], ebx
lea r9, [rbp + 0x38]
mov dword [rbp - 0x2c], 0x6800
xor r8d, r8d
mov dword [rbp - 0x28], 0x6a0000
mov dword [rbp - 0x24], 0xe8006a
mov dword [rbp - 0x20], 0xba000000
mov dword [rbp - 0x18], 0x1e7e02c7
mov dword [rbp - 0x14], 0xbac037
mov dword [rbp - 0x10], 0x89000000
mov dword [rbp - 0xc], 0x4c202
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140006747
movzx eax, word [rsi]
mov rbx, qword [rbp + 0x30]
add rbx, 0x200
mov word [rbx], ax
movzx eax, word [rsi + 2]
mov word [rbx + 2], ax
mov eax, dword [rbp + 0x30]
add eax, 0x210
mov dword [rbx + 4], eax
movzx r8d, word [rsi]
mov rdx, qword [rsi + 8]
mov ecx, eax
call fcn.140009640
mov rax, qword [rbp + 0x30]
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rax], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rax + 0x10], xmm1
movsd qword [rax + 0x20], xmm0
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5e0]
mov dword [rcx + 1], eax
mov rax, qword [rbp + 0x30]
mov dword [rax + 6], ebx
mov rax, qword [rbp + 0x30]
sub edi, eax
sub edi, 0x13
mov dword [rax + 0xf], edi
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5e8]
mov dword [rcx + 0x14], eax
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5ec]
mov dword [rcx + 0x1f], eax
mov rax, qword [rbp + 0x30]
jmp 0x140006749
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006d20
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
lea rdx, [rbp - 0x40]
xor edi, edi
mov qword [rbp - 0x50], rdi
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], rdi
mov qword [rsp + 0x28], rax
mov ebx, 0x1fffff
mov r9d, 0x240
mov dword [rsp + 0x20], edi
mov r8d, ebx
xor edx, edx
or rcx, 0xffffffffffffffff
call fcn.140006c00
test eax, eax
js 0x140006dd1
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rbp - 0x48]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_NtClose]
mov rcx, qword [rbp - 0x50]
test ebx, ebx
cmovs rcx, rdi
mov qword [rbp - 0x50], rcx
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140009430
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140006f44
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, 0xa0
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov ebx, ecx
xorps xmm0, xmm0
lea rdx, [0x140009e70]
lea rcx, [rbp - 0x19]
movups xmmword [rbp - 0x19], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movaps xmm0, xmmword [rbp - 0x19]
lea r8, [0x140009ea0]
lea rdx, [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
mov ecx, ebx
call fcn.14000818c
and qword [rbp - 0x21], 0
lea rdx, [rbp - 0x21]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rbp - 0x29], eax
mov ebx, eax
test eax, eax
jne 0x140006fff
mov rcx, qword [rbp - 0x21]
lea rdx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp - 0x29]
mov r9b, 1
lea r8d, [rbx + 4]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call fcn.1400060a4
mov ebx, dword [rbp - 0x29]
test ebx, ebx
js 0x140006fff
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140009430
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007108
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
lea rdx, [0x140009fa0]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x38], rcx
xor esi, esi
mov qword [rbp + 0x28], rsi
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov rax, qword [rax]
xor r8d, r8d
lea edi, [rsi + 0x40]
mov byte [rsp + 0x28], sil
mov edx, edi
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
test eax, eax
js 0x1400072a5
lea rdx, [0x140009fd0]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov qword [rbp + 0x30], rsi
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov rax, qword [rax]
mov edx, edi
mov byte [rsp + 0x28], sil
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
mov edi, eax
test eax, eax
jns 0x1400071e7
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400071d4
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x14000a000]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
jmp 0x1400072a5
mov rax, qword [rbp + 0x30]
mov r8, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
jmp 0x14000725a
cmp qword [rbx + 8], rsi
jne 0x14000725f
mov rax, qword [r8 + 8]
jmp 0x140007251
cmp qword [rbx + 8], rsi
jne 0x140007256
cmp qword [rax + 0x10], rsi
jne 0x140007215
cmp qword [rbx], rsi
jne 0x140007215
mov qword [rbx], rax
mov rdi, qword [rcx + 0x40]
mov rdx, rsi
mov r9, qword [rcx + 0x138]
sub r9, rdi
shr r9, 2
test r9, r9
je 0x14000724d
cmp qword [rdi + rdx*8], rax
jne 0x14000723f
mov r10, qword [rdi + rdx*8 + 8]
cmp r10, r8
ja 0x140007249
inc rdx
cmp rdx, r9
jae 0x14000724d
jmp 0x14000722f
mov qword [rbx + 8], r10
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140007201
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1400071f5
cmp qword [rbx], rsi
jne 0x14000727e
mov rax, qword [r8 + 8]
test rax, rax
je 0x14000727e
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14000727b
mov rax, rcx
jmp 0x14000726d
mov qword [rbx], rax
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rbx], rsi
je 0x1400072a0
cmp qword [rbx + 8], rsi
je 0x1400072a0
xor eax, eax
jmp 0x1400072a5
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400072b8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
lea rdx, [0x140009fa0]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x38], rcx
xor esi, esi
mov qword [rbp + 0x28], rsi
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov rax, qword [rax]
xor r8d, r8d
lea edi, [rsi + 0x40]
mov byte [rsp + 0x28], sil
mov edx, edi
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
test eax, eax
js 0x140007455
lea rdx, [0x14000a020]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov qword [rbp + 0x30], rsi
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov rax, qword [rax]
mov edx, edi
mov byte [rsp + 0x28], sil
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
mov edi, eax
test eax, eax
jns 0x140007397
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140007384
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x14000a040]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
jmp 0x140007455
mov rax, qword [rbp + 0x30]
mov r8, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
jmp 0x14000740a
cmp qword [rbx + 8], rsi
jne 0x14000740f
mov rax, qword [r8 + 8]
jmp 0x140007401
cmp qword [rbx + 8], rsi
jne 0x140007406
cmp qword [rax + 0x10], rsi
jne 0x1400073c5
cmp qword [rbx], rsi
jne 0x1400073c5
mov qword [rbx], rax
mov rdi, qword [rcx + 0x40]
mov rdx, rsi
mov r9, qword [rcx + 0x138]
sub r9, rdi
shr r9, 2
test r9, r9
je 0x1400073fd
cmp qword [rdi + rdx*8], rax
jne 0x1400073ef
mov r10, qword [rdi + rdx*8 + 8]
cmp r10, r8
ja 0x1400073f9
inc rdx
cmp rdx, r9
jae 0x1400073fd
jmp 0x1400073df
mov qword [rbx + 8], r10
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400073b1
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1400073a5
cmp qword [rbx], rsi
jne 0x14000742e
mov rax, qword [r8 + 8]
test rax, rax
je 0x14000742e
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14000742b
mov rax, rcx
jmp 0x14000741d
mov qword [rbx], rax
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rbx], rsi
je 0x140007450
cmp qword [rbx + 8], rsi
je 0x140007450
xor eax, eax
jmp 0x140007455
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400076fc
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
mov eax, edx
lea rdx, [rbp - 0x40]
mov ecx, ecx
mov qword [rbp - 0x48], rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140007792
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140007792
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rbp - 0x48]
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov r8, qword [rbp - 0x48]
xor edx, edx
mov rcx, qword [rbp - 0x50]
call fcn.140009900
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rbp - 0x50]
jmp 0x140007794
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140009430
add rsp, 0x80
pop rbp
ret

Function at 0x1400077ac
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x20]
mov eax, r8d
mov ecx, ecx
mov qword [rsp + 0x28], rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140007828
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140007828
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140009430
add rsp, 0x70
pop rbx
ret

Function at 0x1400078bc
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x50
lea rax, [rdx - 0x10001]
mov esi, r9d
mov rdi, rdx
mov rbp, r8
movabs rdx, 0x7ffffffefffd
mov ebx, 0xc0000001
cmp rax, rdx
ja 0x140007933
mov ecx, ecx
lea rdx, [r11 + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140007933
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x68]
mov r9, rbp
mov r8, rax
mov rdx, rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov ebx, eax
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret