joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400070e8
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, [0x140009f50]
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 0x140007285
lea rdx, [0x140009f80]
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 0x1400071c7
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400071b4
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x140009fb0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
jmp 0x140007285
mov rax, qword [rbp + 0x30]
mov r8, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
jmp 0x14000723a
cmp qword [rbx + 8], rsi
jne 0x14000723f
mov rax, qword [r8 + 8]
jmp 0x140007231
cmp qword [rbx + 8], rsi
jne 0x140007236
cmp qword [rax + 0x10], rsi
jne 0x1400071f5
cmp qword [rbx], rsi
jne 0x1400071f5
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 0x14000722d
cmp qword [rdi + rdx*8], rax
jne 0x14000721f
mov r10, qword [rdi + rdx*8 + 8]
cmp r10, r8
ja 0x140007229
inc rdx
cmp rdx, r9
jae 0x14000722d
jmp 0x14000720f
mov qword [rbx + 8], r10
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400071e1
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1400071d5
cmp qword [rbx], rsi
jne 0x14000725e
mov rax, qword [r8 + 8]
test rax, rax
je 0x14000725e
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14000725b
mov rax, rcx
jmp 0x14000724d
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 0x140007280
cmp qword [rbx + 8], rsi
je 0x140007280
xor eax, eax
jmp 0x140007285
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007298
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, [0x140009f50]
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 0x140007435
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 0x140007377
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140007364
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x140009ff0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
jmp 0x140007435
mov rax, qword [rbp + 0x30]
mov r8, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
jmp 0x1400073ea
cmp qword [rbx + 8], rsi
jne 0x1400073ef
mov rax, qword [r8 + 8]
jmp 0x1400073e1
cmp qword [rbx + 8], rsi
jne 0x1400073e6
cmp qword [rax + 0x10], rsi
jne 0x1400073a5
cmp qword [rbx], rsi
jne 0x1400073a5
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 0x1400073dd
cmp qword [rdi + rdx*8], rax
jne 0x1400073cf
mov r10, qword [rdi + rdx*8 + 8]
cmp r10, r8
ja 0x1400073d9
inc rdx
cmp rdx, r9
jae 0x1400073dd
jmp 0x1400073bf
mov qword [rbx + 8], r10
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140007391
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140007385
cmp qword [rbx], rsi
jne 0x14000740e
mov rax, qword [r8 + 8]
test rax, rax
je 0x14000740e
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14000740b
mov rax, rcx
jmp 0x1400073fd
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 0x140007430
cmp qword [rbx + 8], rsi
je 0x140007430
xor eax, eax
jmp 0x140007435
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400076dc
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 0x140007772
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140007772
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.1400098c0
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 0x140007774
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140009400
add rsp, 0x80
pop rbp
ret

Function at 0x14000778c
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 0x140007808
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140007808
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.140009400
add rsp, 0x70
pop rbx
ret

Function at 0x14000789c
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 0x140007913
mov ecx, ecx
lea rdx, [r11 + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140007913
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
Function at 0x14000792c
Capabilities:
Find process by pid

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

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rdx
mov ecx, ecx
lea rdx, [rsp + 0x30]
mov r15d, r9d
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebp, eax
test eax, eax
js 0x140007ae0
cmp qword [rsp + 0x30], 0
je 0x140007ae0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140007ae0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rdi, rax
test rax, rax
jne 0x140007a4f
mov eax, 0xc0000001
jmp 0x140007ae2
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rsi, rax
test rax, rax
jne 0x140007a76
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x140007a45
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140007ab5
mov rbx, cr8
mov eax, 2
mov cr8, rax
mov r8, r15
mov rdx, r14
mov rcx, rsi
call fcn.140009600
movzx eax, bl
mov cr8, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, ebp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140009400
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007b28
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, rdx
mov ecx, ecx
lea rdx, [rsp + 0x30]
mov r15d, r9d
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r14d, eax
test eax, eax
js 0x140007c46
cmp qword [rsp + 0x30], 0
je 0x140007c46
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140007c46
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rsi, rax
test rax, rax
jne 0x140007bae
mov eax, 0xc0000001
jmp 0x140007c49
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rbp, rax
test rax, rax
jne 0x140007bd5
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x140007ba4
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdi, cr8
mov eax, 2
mov cr8, rax
cli
mov rbx, cr0
mov rax, rbx
btc rax, 0x10
mov cr0, rax
mov r8, r15
mov rdx, rbp
mov rcx, r12
call fcn.140009600
mov cr0, rbx
sti
movzx eax, dil
mov cr8, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, r14d
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140009400
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007df8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r13d, r9d
mov rbx, r8
mov rdi, rdx
mov esi, ecx
mov r8d, 0x3e7
mov edx, r9d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
test rax, rax
je 0x140007e49
mov r8d, r13d
mov rdx, rbx
mov rcx, rax
call fcn.140009600
mov rcx, rsi
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r15d, eax
test eax, eax
js 0x140007f55
cmp qword [rsp + 0x30], 0
je 0x140007f55
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140007f55
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov edx, 8
lea r8d, [rdx - 7]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
nop
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rdi, rax
test rax, rax
jne 0x140007ecd
mov eax, 0xc0000001
jmp 0x140007f66
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rsi, rax
test rax, rax
jne 0x140007ef4
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x140007ec3
mov rbx, cr8
mov eax, 2
mov cr8, rax
mov r8, r13
mov rdx, r14
mov rcx, rsi
call fcn.140009600
movzx eax, bl
mov cr8, rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140007f55
mov edx, 0x3e7
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, r15d
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140009400
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140008000
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov r13, rdx
mov rbx, rcx
test rcx, rcx
je 0x140008094
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008094
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140008094
mov eax, dword [rax + rcx + 0x78]
mov esi, edi
add rax, rcx
mov r14d, dword [rax + 0x1c]
mov ebp, dword [rax + 0x20]
add r14, rcx
mov r15d, dword [rax + 0x24]
add rbp, rcx
mov r12d, dword [rax + 0x18]
add r15, rcx
test r12d, r12d
je 0x140008094
mov ecx, dword [rbp]
mov rdx, r13
add rcx, rbx
call fcn.1400083a8
test eax, eax
je 0x140008085
inc esi
add rbp, 4
cmp esi, r12d
jb 0x140008066
jmp 0x140008094
movsxd rax, esi
movzx ecx, word [r15 + rax*2]
mov edi, dword [r14 + rcx*4]
add rdi, rbx
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400080b4
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov r13, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000814b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000814b
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000814b
mov eax, dword [rax + rcx + 0x88]
mov esi, edi
add rax, rcx
mov r14d, dword [rax + 0x1c]
mov ebp, dword [rax + 0x20]
add r14, rcx
mov r15d, dword [rax + 0x24]
add rbp, rcx
mov r12d, dword [rax + 0x18]
add r15, rcx
test r12d, r12d
je 0x14000814b
mov ecx, dword [rbp]
mov rdx, r13
add rcx, rbx
call fcn.1400083a8
test eax, eax
je 0x14000813c
inc esi
add rbp, 4
cmp esi, r12d
jb 0x14000811d
jmp 0x14000814b
movsxd rax, esi
movzx ecx, word [r15 + rax*2]
mov edi, dword [r14 + rcx*4]
add rdi, rbx
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

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

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm6, xmmword [rdx]
mov rbp, r8
mov r14d, ecx
mov esi, 0x400
mov r8d, 0xc0d1d
mov edx, esi
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1400081c4
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.1400098c0
mov r8, rdi
movdqa xmmword [rsp + 0x30], xmm6
lea rdx, [rsp + 0x30]
mov ecx, r14d
call fcn.140008270
mov rcx, r14
lea rdx, [rsp + 0x20]
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140008247
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
mov rdx, rbp
mov rcx, rsi
test rax, rax
je 0x14000821b
call fcn.140008000
jmp 0x140008220
call fcn.1400080b4
lea rcx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, 0xc0d1d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140009400
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008270
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140011ca0]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
mov ecx, ecx
lea rdx, [rbp - 0x60]
mov r14, r8
xor edi, edi
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400082c1
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400082c1
xor eax, eax
jmp 0x14000838c
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
test rax, rax
je 0x140008322
mov eax, dword [rax + 0xc]
mov esi, dword [rax + 0x14]
mov ebx, esi
xorps xmm0, xmm0
lea rcx, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
mov edx, dword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140008317
mov ebx, dword [rbx]
cmp rbx, rsi
je 0x140008375
jmp 0x1400082e5
mov eax, dword [rbx + 0x18]
mov edi, dword [rbx + 0x10]
mov qword [r14], rax
jmp 0x140008375
mov rcx, qword [rbp - 0x60]
call sub.ntoskrnl.exe_PsGetProcessPeb
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
mov rbx, rsi
xorps xmm0, xmm0
lea rcx, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
mov rdx, qword [rbx + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x14000836a
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x140008336
jmp 0x140008375
mov rcx, qword [rbx + 0x30]
mov rdi, qword [rbx + 0x20]
mov qword [r14], rcx
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140009400
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400083f8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x58], 0
mov rbx, rcx
mov dword [rsp + 0x50], 0xc30000
test rcx, rcx
jne 0x14000841e
mov eax, 0xc0000141
jmp 0x140008510
xor edx, edx
lea r8d, [rdx + 0x50]
call fcn.1400098c0
lea rcx, [0x14000a060]
call fcn.140008598
lea rcx, [0x14000a080]
mov dword [rbx + 0x18], eax
call fcn.140008598
lea rcx, [0x14000a090]
mov dword [rbx + 0x1c], eax
call fcn.140008598
lea rcx, [0x140009dc0]
mov dword [rbx + 0x20], eax
call fcn.140008598
cmp qword [rbx + 0x40], 0
mov dword [rbx + 0x28], eax
jne 0x14000849c
lea rdx, [0x14000a0a0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rdx, rax
mov qword [rbx + 0x40], rax
lea rcx, [0x14000a0c0]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [rbx + 0x48], 0
jne 0x1400084d3
lea rdx, [0x14000a0d0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rdx, rax
mov qword [rbx + 0x48], rax
lea rcx, [0x14000a0f0]
call sub.ntoskrnl.exe_DbgPrint
mov r9, qword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
mov r8d, 3
mov qword [rsp + 0x20], 0x20
mov dl, 0xcc
call fcn.140005bbc
test eax, eax
js 0x14000850e
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax - 2]
mov dword [rbx + 4], ecx
xor eax, eax
add rsp, 0x40
pop rbx
ret