joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016978
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x48], 0
mov r14d, r8d
mov r15, rdx
test ecx, ecx
jne 0x1400169a4
mov eax, 0xc0000001
jmp 0x140016b1e
mov ecx, ecx
lea rdx, [rbp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x140016b0a
mov rcx, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov rbx, qword [rbp + 0x48]
mov rsi, qword [rcx]
test rsi, rsi
je 0x140016b0e
test rbx, rbx
je 0x140016b1c
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140016b0a
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ObGetObjectType]
test rax, rax
je 0x140016b0a
cmp rax, rsi
jne 0x140016b0a
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140016b0a
mov rcx, qword [0x1400d6b50]
add rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140016b0a
mov rax, qword [0x1400d6b50]
mov rcx, qword [rax + rbx]
test rcx, rcx
je 0x140016b0a
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140016b0a
and qword [rbp - 8], 0
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov r9d, 0x10000000
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor r8d, r8d
mov byte [rsp + 0x28], 0
mov edx, 0x240
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edi, eax
test eax, eax
js 0x140016b0a
and qword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
mov rbx, qword gs:[0x188]
mov edx, 8
add rbx, qword [0x1400d6b98]
mov sil, byte [rbx]
mov byte [rbx], 0
mov rcx, qword [rbp - 8]
call qword [sym.imp.ntoskrnl.exe_NtOpenProcessToken]
mov edi, eax
test eax, eax
js 0x140016ae9
and dword [rbp + 0x30], 0
lea rax, [rbp + 0x30]
mov rcx, qword [rbp - 0x10]
mov r9d, r14d
mov r8, r15
mov qword [rsp + 0x20], rax
mov edx, 3
call qword [sym.imp.ntoskrnl.exe_NtQueryInformationToken]
mov edi, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140016af8
call qword [sym.imp.ntoskrnl.exe_NtClose]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140016b07
call qword [sym.imp.ntoskrnl.exe_NtClose]
mov byte [rbx], sil
mov rbx, qword [rbp + 0x48]
test rbx, rbx
je 0x140016b1c
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016b34
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
and qword [r11 + 0x20], 0
movabs rax, 0xaaaaaaaaaaaaaaab
mov r8d, r8d
mov rsi, rdx
sub r8, 0x20
mov r15d, ecx
mul r8
mov r14, rdx
shr r14, 4
test ecx, ecx
jne 0x140016b80
mov eax, 0xc0000001
jmp 0x140016c52
mov rcx, r15
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x140016c3d
mov rcx, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rcx]
test rbp, rbp
je 0x140016c42
test rbx, rbx
je 0x140016c50
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140016c3d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ObGetObjectType]
test rax, rax
je 0x140016c3d
cmp rax, rbp
jne 0x140016c3d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140016c3d
mov rcx, qword [0x1400d6b50]
add rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140016c3d
mov rax, qword [0x1400d6b50]
mov rcx, qword [rax + rbx]
test rcx, rcx
je 0x140016c3d
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140016c3d
test rsi, rsi
je 0x140016c3d
mov rdx, qword [rsp + 0x58]
mov r9d, r14d
mov r8, rsi
mov ecx, r15d
call fcn.140008e34
mov edi, eax
test eax, eax
js 0x140016c3d
cmp r14d, dword [rsi]
sbb edi, edi
and edi, 0xc0000023
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140016c50
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140016c6c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor edi, edi
mov r14d, r8d
xorps xmm0, xmm0
mov qword [rbp - 0x38], rdi
mov rdx, rcx
mov qword [rbp - 0x40], rdi
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x48], rdi
movups xmmword [rbp - 0x20], xmm0
mov r13d, edi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movaps xmm0, xmmword [rbp - 0x20]
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x40]
movdqa xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x10]
call fcn.140017010
mov ebx, eax
test eax, eax
js 0x140016e55
mov rsi, qword [rbp - 0x48]
movsxd rax, dword [rsi + 0x3c]
mov r15d, dword [rax + rsi + 0x88]
mov eax, dword [r15 + rsi + 0x18]
mov r12d, dword [r15 + rsi + 0x20]
add r12, rsi
mov dword [rbp - 0x48], eax
test eax, eax
jne 0x140016d2b
mov rdx, rsi
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
jmp 0x140016e55
imul rax, r14, 0x328
mov r8d, 0x6d7467
mov ecx, 1
mov rdx, rax
mov qword [rbp - 0x30], rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
test rax, rax
je 0x140016d03
mov r8, qword [rbp - 0x30]
xor edx, edx
mov rcx, rax
call fcn.14001ea80
mov eax, edi
mov dword [rbp - 0x50], eax
cmp dword [rbp - 0x48], edi
jbe 0x140016e1f
mov edx, dword [r15 + rsi + 0x24]
add eax, eax
mov r8d, dword [r12]
add rax, rsi
add r8, rsi
inc r13d
xorps xmm0, xmm0
movzx r10d, word [rdx + rax]
mov rdx, r8
mov eax, r13d
imul r9, rax, 0x328
movups xmmword [rbp - 0x10], xmm0
mov rcx, r9
sub rcx, r8
add rcx, r14
mov al, byte [rdx]
mov byte [rcx + rdx + 0x220], al
inc rdx
test al, al
jne 0x140016da4
lea rbx, [r9 + r14]
mov rcx, r8
mov rdx, rbx
mov dword [rbx + 0x218], r10d
call fcn.140009e30
mov rdx, rbx
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rbx + 0x208], rax
add r12, 4
mov eax, dword [rbp - 0x50]
inc eax
mov dword [rbp - 0x50], eax
cmp eax, dword [rbp - 0x48]
jb 0x140016d6e
test r13d, r13d
je 0x140016e1f
mov r8, qword [rbp - 0x30]
lea eax, [r13 + 1]
mov rcx, qword [rbp + 0x48]
mov rdx, r14
mov dword [r14 + 0x21c], eax
call fcn.14001e7c0
jmp 0x140016e24
mov edi, 0xc0000001
mov edx, 0x6d7467
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdx, rsi
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140017010
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
and qword [rbp + 0x67], 0
xorps xmm0, xmm0
and qword [rbp - 0x19], 0
mov rdi, r9
and dword [rbp + 0x13], 0
lea r9, [rbp - 1]
and dword [rbp + 0x2b], 0
mov rsi, r8
and qword [rbp - 0x11], 0
lea r8, [rbp + 0xf]
and qword [rbp - 9], 0
mov r14, rdx
and qword [rbp + 0x17], 0
mov edx, 0x80000000
mov qword [rbp + 0x1f], rcx
lea rcx, [rbp + 0x67]
mov dword [rsp + 0x28], 0x20
movups xmmword [rbp - 1], xmm0
mov dword [rbp + 0xf], 0x30
movdqu xmmword [rbp + 0x2f], xmm0
mov dword [rbp + 0x27], 0x240
mov dword [rsp + 0x20], 1
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x14001714e
mov rax, qword [rbp + 0x67]
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
xor r8d, r8d
mov dword [rsp + 0x20], 4
lea edx, [r9 + 6]
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov ebx, eax
test eax, eax
jns 0x1400170e0
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14001714c
mov rcx, qword [rbp - 0x19]
lea rax, [rbp - 9]
mov dword [rsp + 0x48], 4
lea r8, [rbp - 0x11]
mov dword [rsp + 0x40], 0x100000
xor r9d, r9d
mov dword [rsp + 0x38], 1
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x400
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov ebx, eax
test eax, eax
jns 0x140017137
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1400170d4
mov rax, qword [rbp + 0x67]
mov qword [r14], rax
mov rax, qword [rbp - 0x19]
mov qword [rsi], rax
mov rax, qword [rbp - 0x11]
mov qword [rdi], rax
mov eax, ebx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140017168
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400d6a00]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r8
mov r15, rdx
and qword [rsp + 0x28], 0
mov ecx, ecx
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x14001723d
mov ebx, 0xc0000001
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
test rax, rax
je 0x140017221
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x20]
mov rsi, qword [rcx]
mov rdi, qword [rsi]
cmp rdi, rsi
je 0x140017214
lea rbx, [rdi - 0x10]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14001720f
cmp qword [rbx + 0x30], 0
je 0x14001720f
mov rdx, qword [rbx + 0x60]
mov rcx, r15
call sub.ntoskrnl.exe__wcsicmp
test eax, eax
je 0x140017214
mov rdi, qword [rdi]
jmp 0x1400171e5
mov rax, qword [rbx + 0x30]
mov qword [r14], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x140017227
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001e6e0
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400172f8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1400d6a00]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r12, r9
mov r14, r8
mov r15, rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
and qword [rsp + 0x38], 0
mov ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x1400174b0
mov edi, 0xc0000001
rdtsc
shl rdx, 0x20
or rax, rdx
mov dword [0x1400d8e44], eax
xor edx, edx
mov eax, 0x7fffffff
div dword [0x1400d69f8]
mov ebx, eax
lea rcx, [0x1400d8e44]
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
xor edx, edx
div ebx
mov r8d, eax
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400173a7
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.14001ea80
test rsi, rsi
je 0x1400174a5
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001748c
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov r15, rax
test rax, rax
je 0x140017450
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmProtectMdlSystemAddress]
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x140017444
mov r8, r14
mov rdx, r15
mov rcx, rsi
call fcn.14001e7c0
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
jmp 0x140017478
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov r8, r14
mov rdx, rsi
mov rcx, r12
call fcn.14001e7c0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14001e6e0
add rsp, 0xa8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400174d4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400d6a00]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
and qword [rsp + 0x38], 0
mov ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x1400175f5
mov edi, 0xc0000001
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400175ea
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov rsi, rax
test rax, rax
je 0x1400175bd
mov edx, 4
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmProtectMdlSystemAddress]
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400175b1
mov r8, r14
mov rdx, r15
mov rcx, rsi
call fcn.14001e7c0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
jmp 0x1400175d6
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001e6e0
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140017738
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
cmovns rbx, qword [rsp + 0x38]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140017788
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
xor esi, esi
mov rdi, rdx
mov ebx, 0xc0000001
test rcx, rcx
je 0x140017901
test rdx, rdx
je 0x140017901
xorps xmm0, xmm0
mov dword [rbp + 0x1b], esi
mov rdx, rcx
mov dword [rbp + 0x33], esi
lea rcx, [rbp - 9]
mov qword [rbp + 0x77], rsi
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 0x67], rsi
movups xmmword [rbp + 7], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x68], 0x100
lea rax, [rbp - 9]
mov qword [rsp + 0x60], rsi
lea r9, [rbp + 7]
mov dword [rsp + 0x58], esi
lea r8, [rbp + 0x17]
mov dword [rsp + 0x50], esi
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x48], rsi
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x20
mov edx, 0x80100000
mov qword [rbp + 0x27], rax
lea eax, [rsi + 1]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x17], 0x30
mov qword [rbp + 0x1f], rsi
mov dword [rbp + 0x2f], 0x240
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov ebx, eax
test eax, eax
js 0x140017901
mov rax, qword [rbp + 0x77]
lea r8, [rbp + 0x17]
mov qword [rsp + 0x30], rax
lea edx, [rsi + 5]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x1000000
xor r9d, r9d
mov dword [rsp + 0x20], 8
lea rcx, [rbp + 0x67]
mov dword [rbp + 0x17], 0x30
mov qword [rbp + 0x1f], rsi
mov dword [rbp + 0x2f], 0x200
mov qword [rbp + 0x27], rsi
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov ebx, eax
test eax, eax
js 0x1400178f7
mov rcx, qword [rbp + 0x67]
lea rax, [rbp + 0x7f]
mov dword [rsp + 0x48], 8
xor r9d, r9d
mov dword [rsp + 0x40], esi
mov r8, rdi
mov dword [rsp + 0x38], 2
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x7f], rsi
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov rcx, qword [rbp + 0x67]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140017d38
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x40], 0
mov edi, edx
lea rdx, [rsp + 0x40]
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140017d78
mov rcx, qword [0x1400d6b48]
mov r8, qword [rsp + 0x40]
mov dword [rcx + r8], edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140017ec4
Capabilities:
Find process by pid
Terminate thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov ecx, ecx
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140017fb0
mov ebx, 4
movabs rsi, 0xfffff80004093e90
mov dword [rsp + 0x40], ebx
cmp ebx, 0x40000
jae 0x140017fb0
mov ecx, ebx
call fcn.140017764
mov rdi, rax
test rax, rax
je 0x140017fa8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_IoThreadToProcess]
cmp rax, qword [rsp + 0x48]
jne 0x140017fa8
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsGetThreadId]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
js 0x140017fa8
mov rcx, qword [rsp + 0x50]
mov rax, qword [0x1400d6ba0]
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x140017fa8
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140017fa8
mov qword [rdi + 0x168], rsi
mov qword [rdi + 0x160], rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsTerminateSystemThread]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140017fa8
add ebx, 4
jmp 0x140017efc
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400d6a00]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
xor sil, sil
mov byte [rsp + 0x20], sil
mov r14d, 1
mov ebx, r14d
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400180a4
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400180a4
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [sym.imp.ntoskrnl.exe_PsInitialSystemProcess]
cmp rax, qword [rcx]
jne 0x140018041
or rdi, 0xffffffff80000000
xor ebx, ebx
mov dword [rsp + 0x38], ebx
and word [rsp + 0x24], 0
mov r8b, bl
lea rdx, [rsp + 0x24]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ObSetHandleAttributes]
mov ebx, eax
mov dword [rsp + 0x28], eax
test eax, eax
js 0x140018071
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebx, eax
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14001808d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
movzx eax, sil
test ebx, ebx
cmovns eax, r14d
jmp 0x1400180a6
xor al, al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001e6e0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x1400182e8
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x18], 0
lea rdx, [rbp + 0x18]
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x1400183c8
and qword [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x14001833e
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000010a
jmp 0x1400183ca
mov rax, qword [0x1400d6b90]
lea rcx, [rbp + 0x18]
lea rcx, [rcx + rax*8]
call qword [sym.imp.ntoskrnl.exe_ExAcquireRundownProtection]
test al, al
je 0x14001832a
mov rdx, qword [0x1400d6b78]
add rdx, qword [rbp + 0x18]
mov rax, qword [rdx + 8]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov qword [rdx + 8], rdx
mov qword [rdx], rdx
mov rdx, qword [0x1400d6b88]
add rdx, qword [rbp + 0x18]
mov rax, qword [rdx + 8]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
lea rcx, [rbp + 0x18]
mov qword [rdx + 8], rdx
mov qword [rdx], rdx
mov rax, qword [0x1400d6b90]
lea rcx, [rcx + rax*8]
call qword [sym.imp.ntoskrnl.exe_ExReleaseRundownProtection]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret