joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026060
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x24], 0xc0000001
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x20]
mov r8d, 0x6e556353
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400260c3
mov rax, qword [rsp + 0x40]
jmp 0x1400261f3
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140024220
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140026102
mov dword [rsp + 0x28], 1
jmp 0x14002610a
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x140026128
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x40]
jmp 0x1400261f3
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
jmp 0x14002616d
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
test rax, rax
je 0x1400261ba
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x40], 0
je 0x1400261b8
mov rax, qword [rsp + 0x30]
add rax, 0x38
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x1400261b8
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x50]
call fcn.1400286c0
mov qword [rsp + 0x40], rax
jmp 0x1400261ba
jmp 0x140026156
jmp 0x1400261e1
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x40]
add rsp, 0x60
pop rdi
ret
Function at 0x140026420
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, 0xa0
mov rax, qword [0x140093f70]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0xc0], 0
je 0x140026463
mov rax, qword [rsp + 0xc0]
mov qword [rax], 0
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x14002647f
xor eax, eax
jmp 0x140026696
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400264b3
xor eax, eax
jmp 0x140026696
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov r8d, 1
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x40]
add rax, 0x20
mov qword [rsp + 0x30], rax
mov r8d, 1
mov edx, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov r8d, 1
mov edx, 8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
je 0x14002666a
mov rax, qword [rsp + 0x28]
sub rax, 0x10
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rax, 0x58
mov r8d, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x20]
add rax, 0x60
mov r8d, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x20]
add rax, 0x30
mov r8d, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x20]
add rax, 0x40
mov r8d, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x140026642
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x40]
mov qword [rax], rcx
jmp 0x14002666a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov r8d, 1
mov edx, 8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
jmp 0x14002654d
jmp 0x140026686
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14006ea30
add rsp, 0xa0
pop rdi
ret
Function at 0x1400266b0
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, 0xa0
mov rax, qword [0x140093f70]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0xc0], 0
je 0x1400266f3
mov rax, qword [rsp + 0xc0]
mov qword [rax], 0
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x14002670f
xor eax, eax
jmp 0x140026922
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140026743
xor eax, eax
jmp 0x140026922
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov qword [rsp + 0x40], rax
mov r8d, 1
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x30], rax
mov r8d, 1
mov edx, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov qword [rsp + 0x28], rax
mov r8d, 1
mov edx, 8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
je 0x1400268f6
mov rax, qword [rsp + 0x28]
sub rax, 8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rax, 0x2c
mov r8d, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x20]
add rax, 0x30
mov r8d, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x20]
add rax, 0x20
mov r8d, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x30]
mov edx, eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x1400268cf
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
jmp 0x1400268f6
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov qword [rsp + 0x28], rax
mov r8d, 1
mov edx, 8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
jmp 0x1400267db
jmp 0x140026912
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14006ea30
add rsp, 0xa0
pop rdi
ret
Function at 0x140026c00
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140093f70]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x60], 0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x28], 0
jne 0x140026c5d
xor eax, eax
jmp 0x140026d7a
mov dword [rsp + 0x20], 0xc0000001
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
call fcn.140026da0
lea rcx, [rsp + 0x70]
call sub.ntoskrnl.exe_wcslen
test rax, rax
jbe 0x140026d63
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14002d0f0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14002a600
movzx eax, word [rsp + 0x40]
test eax, eax
jle 0x140026d2e
cmp qword [rsp + 0x2a8], 0
je 0x140026d2e
mov r8, qword [rsp + 0x48]
lea rdx, [0x14006f5f0]
mov rcx, qword [rsp + 0x2a8]
call sub.ntoskrnl.exe_swprintf
mov dword [rsp + 0x20], 0
movzx eax, word [rsp + 0x50]
test eax, eax
jle 0x140026d63
cmp qword [rsp + 0x2b0], 0
je 0x140026d63
mov r8, qword [rsp + 0x58]
lea rdx, [0x14006f5f0]
mov rcx, qword [rsp + 0x2b0]
call sub.ntoskrnl.exe_swprintf
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x28], 0
je 0x140026d76
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14006ea30
add rsp, 0x290
pop rdi
ret
Function at 0x140027340
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [0x140093f70]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x80], 0
je 0x140027376
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe_strlen
test rax, rax
ja 0x14002737d
xor eax, eax
jmp 0x140027443
mov qword [rsp + 0x28], 0
xor edx, edx
lea rcx, [0x140071b80]
call fcn.14002a900
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400273a8
xor eax, eax
jmp 0x140027443
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
cmp qword [0x140097f50], 0
jne 0x1400273e9
xor edx, edx
lea rcx, [0x140071c20]
call fcn.140024e60
mov qword [0x140097f50], rax
cmp qword [0x140097f50], 0
jne 0x140027408
xor edx, edx
lea rcx, [0x140071bb0]
call fcn.140024e60
mov qword [0x140097f50], rax
cmp qword [0x140097f50], 0
je 0x140027431
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [0x140097f50]
call fcn.140025730
mov qword [rsp + 0x28], rax
jmp 0x140027433
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14006ea30
add rsp, 0x70
pop rdi
ret

Function at 0x140027870
Capabilities:
Print debug messages

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x80], 0
jne 0x1400278a1
mov rax, qword [rsp + 0x48]
jmp 0x14002798b
mov rcx, qword [rsp + 0x80]
call fcn.140027990
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jge 0x1400278e0
call fcn.140027b60
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax*4]
sub eax, 0x1000
mov eax, eax
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jge 0x1400278f2
mov rax, qword [rsp + 0x48]
jmp 0x14002798b
mov rcx, qword [rsp + 0x80]
call fcn.140027340
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x50]
call fcn.140027460
mov qword [rsp + 0x58], rax
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x140027929
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14002793b
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8d, 0x4de
lea rdx, [0x140072ca0]
lea rcx, [0x140072cc0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140027986
mov rax, qword [rsp + 0x48]
add rsp, 0x78
ret
Function at 0x140027990
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x60], 0xffffffffffffffff
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [0x140072c70]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x40
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
lea r8, [rsp + 0x90]
mov edx, 4
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
test eax, eax
jge 0x140027a65
mov rax, qword [rsp + 0x60]
jmp 0x140027b54
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jge 0x140027ae4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0x60]
jmp 0x140027b54
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x58]
call fcn.140025730
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140027b20
mov rcx, qword [rsp + 0x68]
call fcn.140027490
cwde
sub eax, 0x1000
cdqe
mov qword [rsp + 0x60], rax
jmp 0x140027b22
cmp qword [rsp + 0x50], 0
je 0x140027b35
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x58], 0
je 0x140027b4f
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov rax, qword [rsp + 0x60]
add rsp, 0xc0
pop rdi
ret

Function at 0x140028430
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x1400284ae
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0x1fffff
xor r8d, r8d
mov edx, 0x240
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
jge 0x1400284a3
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x48]
add rsp, 0x58
ret
Function at 0x1400286c0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x20], 0
je 0x1400286f5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14002a9e0
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x140093f70]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x90], 0
jge 0x14002aa0e
xor eax, eax
jmp 0x14002aada
cmp qword [0x140097f60], 0
jne 0x14002aa24
call fcn.14002aaf0
mov qword [0x140097f60], rax
cmp qword [0x140097f60], 0
jne 0x14002aa35
xor eax, eax
jmp 0x14002aada
xor edx, edx
lea rcx, [0x140071b80]
call fcn.14002a900
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [0x140097f60]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [0x140097f60]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x90], rax
jb 0x14002aa9c
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor eax, eax
jmp 0x14002aada
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
sar eax, 4
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
add rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14006ea30
add rsp, 0x80
pop rdi
ret
Function at 0x14002bae0
Capabilities:
Access pe header

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x140093f70]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ecx, ecx
call fcn.14002b480
mov qword [rsp + 0x40], rax
cmp qword [0x140097b00], 0
je 0x14002bb1b
mov rax, qword [0x140097b00]
jmp 0x14002bc7d
cmp qword [rsp + 0x40], 0
jne 0x14002bb2a
xor eax, eax
jmp 0x14002bc7d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x108
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
jmp 0x14002bb64
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x30], rax
jae 0x14002bc7b
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x8000000
test eax, eax
je 0x14002bc76
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x14002bc76
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x2000000
test eax, eax
jne 0x14002bc76
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x54494e49
je 0x14002bc76
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x45474150
je 0x14002bc76
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x60]
lea rcx, [0x140072930]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0xf
mov dl, 0xcc
lea rcx, [rsp + 0x60]
call fcn.14002cfc0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x14002bc76
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 3]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 7]
mov qword [0x140097b00], rax
mov rax, qword [0x140097b00]
jmp 0x14002bc7d
jmp 0x14002bb56
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14006ea30
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x14002ce60
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0xa0], 0
jne 0x14002ce8d
mov eax, 0xc000000d
jmp 0x14002cfb0
xor ecx, ecx
call fcn.14002b480
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14002ceab
mov eax, 0xc0000225
jmp 0x14002cfb0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14002cecd
mov eax, 0xc000007b
jmp 0x14002cfb0
mov rax, qword [rsp + 0x38]
add rax, 0x108
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
jmp 0x14002cef7
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x30], rax
jae 0x14002cfab
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rax, qword [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x14002cfa6
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8, qword [rsp + 0x98]
movzx edx, byte [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.14002cfc0
jmp 0x14002cfb0
jmp 0x14002cee9
mov eax, 0xc0000225
add rsp, 0x78
ret
Function at 0x14002d210
Capabilities:
Print debug messages

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0xc0000001
cmp dword [rsp + 0x60], 0
je 0x14002d247
cmp qword [rsp + 0x50], 0
je 0x14002d247
cmp qword [rsp + 0x58], 0
jne 0x14002d250
mov eax, dword [rsp + 0x20]
jmp 0x14002d3c5
movzx eax, byte [rsp + 0x68]
test eax, eax
jne 0x14002d291
mov rcx, qword [rsp + 0x50]
call fcn.140028180
movzx eax, al
test eax, eax
jne 0x14002d291
mov r9, qword [rsp + 0x50]
mov r8d, 0x798
lea rdx, [0x140072de0]
lea rcx, [0x140072e00]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x20]
jmp 0x14002d3c5
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x14002d2db
mov rcx, qword [rsp + 0x50]
call fcn.140028200
movzx eax, al
test eax, eax
jne 0x14002d2db
movzx eax, byte [rsp + 0x70]
test eax, eax
jne 0x14002d2db
mov r9, qword [rsp + 0x50]
mov r8d, 0x7a1
lea rdx, [0x140072de0]
lea rcx, [0x140072e30]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x20]
jmp 0x14002d3c5
jmp 0x14002d302
movsxd rax, dword [rsp + 0x60]
xor r9d, r9d
movzx r8d, byte [rsp + 0x70]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1400247f0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14002d333
mov eax, dword [rsp + 0x20]
jmp 0x14002d3c5
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 0
je 0x14002d388
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x14002d365
movsxd rax, dword [rsp + 0x60]
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.14006f1c0
jmp 0x14002d380
movsxd rax, dword [rsp + 0x60]
mov r8, rax
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x58]
call fcn.14006f1c0
mov dword [rsp + 0x20], 0
jmp 0x14002d3af
cmp qword [rsp + 0x30], 0
je 0x14002d3c1
mov rcx, qword [rsp + 0x30]
call fcn.140024c10
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret