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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x50
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x158]
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], 0
lea rax, [rsp + 0x6a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x148], 0x1000
jbe 0x417ee5
mov r8d, 0x486e7367
mov rdx, qword [rsp + 0x148]
xor ecx, ecx
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x417ee5
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x50]
call fcn.004319d0
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x68]
call sub.ntoskrnl.exe_RtlCopyUnicodeString
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x130]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jl 0x418030
mov rcx, qword [rsp + 0x78]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
je 0x418030
mov qword [rsp + 0xf0], 0
lea rax, [rsp + 0xf8]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x78]
call fcn.004154f0
movzx eax, al
test eax, eax
je 0x417f93
lea rdx, [0x00434380]
lea rcx, [0x00434350]
call fcn.00425ae0
cmp qword [rsp + 0x78], 0
je 0x417f89
mov rcx, qword [rsp + 0x78]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov eax, 0xc000010a
jmp 0x418049
cmp qword [rsp + 0x140], 0
jne 0x417fb6
cmp qword [rsp + 0x148], 0x3e8
jae 0x417fb6
cmp qword [rsp + 0x70], 0
jne 0x417fb6
jmp 0x418030
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x78]
call sub.ntoskrnl.exe_KeStackAttachProcess
nop
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], 1
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call fcn.00416da0
mov dword [rsp + 0x80], eax
jmp 0x418023
lea rcx, [rsp + 0xf0]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
cmp qword [rsp + 0x78], 0
je 0x418042
mov rcx, qword [rsp + 0x78]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov eax, dword [rsp + 0x80]
add rsp, 0x120
pop rdi
ret
Function at 0x418d90
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 0xc0000001
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x40]
call fcn.00418d30
movzx eax, al
test eax, eax
jne 0x418e51
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x418dea
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x418dee
xor al, al
jmp 0x418e53
call fcn.00418a30
movzx eax, al
test eax, eax
jne 0x418e08
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_ObfDereferenceObject
xor al, al
jmp 0x418e53
mov rcx, qword [rsp + 0x20]
call fcn.00418c60
movsxd rax, dword [0x004449b0]
imul rax, rax, 0x18
lea rcx, [0x004431b0]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax], rdx
mov eax, dword [0x004449b0]
inc eax
mov dword [0x004449b0], eax
cmp qword [rsp + 0x20], 0
je 0x418e4d
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov al, 1
jmp 0x418e53
xor al, al
add rsp, 0x38
ret
Function at 0x418f40
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.00418e70
movzx eax, al
test eax, eax
jne 0x41917a
cmp dword [0x00442190], 0xff
jge 0x41917a
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x68], 0
movsxd rax, dword [0x00442190]
imul rax, rax, 0x18
lea rcx, [0x00440990]
mov rdx, qword [rsp + 0xb0]
mov qword [rcx + rax], rdx
movsxd rax, dword [0x00442190]
imul rax, rax, 0x18
lea rcx, [0x00440990]
mov rdx, qword [rsp + 0xb8]
mov qword [rcx + rax + 8], rdx
movsxd rax, dword [0x00442190]
imul rax, rax, 0x18
lea rcx, [0x00440990]
mov rdx, qword [rsp + 0xc0]
mov qword [rcx + rax + 0x10], rdx
mov eax, dword [0x00442190]
inc eax
mov dword [0x00442190], eax
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0xb0]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x419164
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
je 0x419164
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_KeStackAttachProcess
cmp dword [0x004c5c30], 0x2581
jbe 0x41907b
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x28]
call fcn.00413300
mov dword [rsp + 0x88], eax
jmp 0x419099
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x28]
call fcn.004133c0
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x419158
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
xor edx, edx
mov ecx, 0x40
call fcn.00413280
mov r8d, eax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x28]
call fcn.00413470
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x70], rax
jmp 0x419104
mov rax, qword [rsp + 0x70]
add rax, 0x1000
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x70], rax
jae 0x419158
mov rcx, qword [rsp + 0x70]
call fcn.00413190
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
movabs rcx, 0x7fffffffffffffff
mov rax, qword [rax]
and rax, rcx
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
jmp 0x4190f4
lea rcx, [rsp + 0x38]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
jmp 0x419164
cmp qword [rsp + 0x28], 0
je 0x419176
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov al, 1
jmp 0x41917c
xor al, al
add rsp, 0xa8
ret
Function at 0x41a650
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
xor r8d, r8d
mov edx, 1
lea rcx, [0x004ca440]
call sub.ntoskrnl.exe_KeInitializeEvent
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 1
jne 0x41a6c1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [0x0041a100]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe_PsCreateSystemThread
mov dword [rsp + 0x40], eax
jmp 0x41a702
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 2
jne 0x41a702
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [0x0041a380]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe_PsCreateSystemThread
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x41a730
mov rcx, qword [rsp + 0x48]
call sub.ntoskrnl.exe_ZwClose
mov qword [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
lea rcx, [0x004ca440]
call sub.ntoskrnl.exe_KeWaitForSingleObject
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x41a740
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov byte [rsp + 0xa8], 0
mov word [rsp + 0x80], 0
lea rax, [rsp + 0x82]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x98], 0
cmp qword [0x004ca5c8], 0
je 0x41a807
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x41a80c
jmp 0x41a9e8
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
test rax, rax
je 0x41a82a
mov dword [rsp + 0xb8], 1
jmp 0x41a835
mov dword [rsp + 0xb8], 0
movzx eax, byte [rsp + 0xb8]
mov byte [rsp + 0xa8], al
lea rdx, [rsp + 0x20]
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_KeStackAttachProcess
movzx eax, byte [rsp + 0xa8]
cmp eax, 1
jne 0x41a929
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0xc]
mov eax, dword [rax + 0x14]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
sub rax, 8
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x80]
call sub.ntoskrnl.exe_RtlInitUnicodeString
mov r8b, 1
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0xd0]
call sub.ntoskrnl.exe_RtlEqualUnicodeString
movzx eax, al
test eax, eax
je 0x41a8fa
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x41a91d
cmp qword [rsp + 0x70], 0
je 0x41a90e
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x70], rax
jne 0x41a89d
jmp 0x41a924
jmp 0x41a9d7
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_PsGetProcessPeb
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
sub rax, 0x10
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x60]
lea rcx, [rsp + 0x80]
call sub.ntoskrnl.exe_RtlInitUnicodeString
mov r8b, 1
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0xd0]
call sub.ntoskrnl.exe_RtlEqualUnicodeString
movzx eax, al
test eax, eax
je 0x41a9af
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x58], rax
jmp 0x41a9d3
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x41a9c7
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x60], rax
jne 0x41a95c
jmp 0x41a9d7
lea rcx, [rsp + 0x20]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov rax, qword [rsp + 0x58]
jmp 0x41a9f4
lea rcx, [rsp + 0x20]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
xor eax, eax
add rsp, 0xc0
pop rdi
ret
Function at 0x41aa40
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x50], rax
cmp qword [0x004ca5c8], 0
je 0x41aabd
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x41aad4
mov dword [rsp + 0x88], 0x80
mov eax, dword [rsp + 0x88]
jmp 0x41ad08
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xe0]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jl 0x41ab08
mov rcx, qword [rsp + 0x40]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x41ab0d
jmp 0x41acd6
mov qword [rsp + 0x98], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x8c], 0xfe
mov dword [rsp + 0x90], 0x101
lea rdx, [rsp + 0x58]
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_KeStackAttachProcess
mov rcx, qword [rsp + 0xe8]
call fcn.00418980
movzx eax, al
test eax, eax
je 0x41ab8c
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf8]
lea rax, [rax + rcx - 1]
mov rcx, rax
call fcn.00418980
movzx eax, al
test eax, eax
jne 0x41ab91
jmp 0x41acf1
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
test eax, eax
jl 0x41acf1
mov eax, dword [rsp + 0x8c]
mov ecx, dword [rsp + 0xbc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41abf6
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0xbc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41abfb
jmp 0x41acf1
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x98]
call fcn.00431d40
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf8]
lea rax, [rax + rcx - 1]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
test eax, eax
jl 0x41acf1
mov eax, dword [rsp + 0x8c]
mov ecx, dword [rsp + 0xbc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41ac85
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0xbc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41ac87
jmp 0x41acf1
lea rcx, [rsp + 0x58]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
jmp 0x41ac95
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov dword [rsp + 0x88], eax
cmp qword [rsp + 0x40], 0
je 0x41ace8
mov rcx, qword [rsp + 0x40]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov eax, dword [rsp + 0x88]
jmp 0x41ad08
lea rcx, [rsp + 0x58]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov dword [rsp + 0x88], 0x80
jmp 0x41acd6
add rsp, 0xd0
pop rdi
ret
Function at 0x41afe0
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rax
cmp qword [0x004ca5c8], 0
je 0x41b059
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x41b06a
mov dword [rsp + 0x60], 0x80
mov al, byte [rsp + 0x60]
jmp 0x41b1df
lea rdx, [rsp + 0x30]
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_KeStackAttachProcess
mov r8d, 0x486e7367
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
xor r8d, r8d
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x10]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xc0000004
jne 0x41b169
cmp qword [rsp + 0x70], 0
je 0x41b0f8
mov edx, 0x486e7367
mov rcx, qword [rsp + 0x70]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x68], 0
jne 0x41b11a
mov rax, qword [rsp + 0x78]
add rax, 0x5000
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov r8d, 0x486e7367
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
xor r8d, r8d
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x10]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x30]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
jmp 0x41b1a3
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
call fcn.004319d0
cmp qword [rsp + 0x70], 0
je 0x41b1dd
mov edx, 0x486e7367
mov rcx, qword [rsp + 0x70]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov qword [rsp + 0x70], 0
mov al, 1
add rsp, 0x80
pop rdi
ret
Function at 0x41b210
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
cmp qword [0x004ca5c8], 0
je 0x41b27f
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x41b290
mov dword [rsp + 0x30], 0x80
mov al, byte [rsp + 0x30]
jmp 0x41b4bb
mov r8d, 0x486e7367
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0x18]
xor ecx, ecx
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x41b2bb
jmp 0x41b468
mov rax, qword [rsp + 0xf0]
mov r8, qword [rax + 0x18]
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
call fcn.004319d0
nop
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0xa0], 0xcc
mov dword [rsp + 0xa4], 0x101
lea rdx, [rsp + 0x70]
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_KeStackAttachProcess
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0x10]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
test eax, eax
jl 0x41b4a7
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xcc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b38e
mov eax, dword [rsp + 0xa4]
mov ecx, dword [rsp + 0xcc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b393
jmp 0x41b4a7
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x18]
lea rax, [rax + rcx - 1]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
test eax, eax
jl 0x41b4a7
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xcc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b410
mov eax, dword [rsp + 0xa4]
mov ecx, dword [rsp + 0xcc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b415
jmp 0x41b4a7
mov r8d, 1
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0x18]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x10]
call sub.ntoskrnl.exe_ProbeForWrite
mov rax, qword [rsp + 0xf0]
mov r8, qword [rax + 0x18]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x10]
call fcn.004319d0
lea rcx, [rsp + 0x70]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
jmp 0x41b468
cmp qword [rsp + 0x38], 0
je 0x41b47f
mov edx, 0x486e7367
mov rcx, qword [rsp + 0x38]
call sub.ntoskrnl.exe_ExFreePoolWithTag
cmp dword [rsp + 0x30], 0
jl 0x41b493
mov dword [rsp + 0xd8], 1
jmp 0x41b49e
mov dword [rsp + 0xd8], 0
mov al, byte [rsp + 0xd8]
jmp 0x41b4bb
lea rcx, [rsp + 0x70]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov dword [rsp + 0x30], 0x80
jmp 0x41b468
add rsp, 0xe0
pop rdi
ret
Function at 0x41b4f0
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x38], 0
cmp qword [0x004ca5c8], 0
je 0x41b54d
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x41b552
jmp 0x41b6c6
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x74], 0xfe
mov dword [rsp + 0x78], 0x101
lea rdx, [rsp + 0x40]
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_KeStackAttachProcess
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x10]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
test eax, eax
jl 0x41b6cc
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0xa4]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b5f6
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0xa4]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b5fb
jmp 0x41b6cc
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x18]
lea rax, [rax + rcx - 1]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
test eax, eax
jl 0x41b6cc
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0xa4]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b672
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0xa4]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b674
jmp 0x41b6cc
mov rax, qword [rsp + 0xc0]
add rax, 0x18
mov rcx, qword [rsp + 0xc0]
add rcx, 0x10
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0xc0]
mov r9d, dword [rdx + 0x38]
mov r8, rax
mov rdx, rcx
mov rcx, 0xffffffffffffffff
call fcn.0042b330
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x40]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
jmp 0x41b6c6
mov eax, dword [rsp + 0x70]
jmp 0x41b6e0
lea rcx, [rsp + 0x40]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov dword [rsp + 0x70], 0x80
jmp 0x41b6c6
add rsp, 0xb0
pop rdi
ret
Function at 0x41b710
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0
cmp qword [0x004ca5c8], 0
je 0x41b764
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x41b775
mov dword [rsp + 0x68], 0x80
mov eax, dword [rsp + 0x68]
jmp 0x41b938
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x6c], 0xfe
mov dword [rsp + 0x70], 0x101
lea rdx, [rsp + 0x38]
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_KeStackAttachProcess
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rax, qword [rsp + 0x100]
mov rdx, qword [rax + 0x10]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
test eax, eax
jl 0x41b924
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0xcc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b841
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0xcc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41b846
jmp 0x41b924
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x90], 0x200
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x38], 1
jne 0x41b8a5
mov dword [rsp + 0xe0], 1
jmp 0x41b8b0
mov dword [rsp + 0xe0], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x20], 0
je 0x41b8d5
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xe8], rax
jmp 0x41b8e1
mov qword [rsp + 0xe8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
movzx r9d, byte [rsp + 0xe0]
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.0042daf0
lea rcx, [rsp + 0x38]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
jmp 0x41b91e
mov eax, dword [rsp + 0x68]
jmp 0x41b938
lea rcx, [rsp + 0x38]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov dword [rsp + 0x68], 0x80
jmp 0x41b91e
add rsp, 0xf0
pop rdi
ret