joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008f00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0x1000
mov byte [rsp + 0x50], 0x68
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x52], 0
mov byte [rsp + 0x53], 0
mov byte [rsp + 0x54], 0
mov byte [rsp + 0x55], 0x68
mov byte [rsp + 0x56], 0
mov byte [rsp + 0x57], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x59], 0
mov byte [rsp + 0x5a], 0x6a
mov byte [rsp + 0x5b], 0
mov byte [rsp + 0x5c], 0x6a
mov byte [rsp + 0x5d], 0
mov byte [rsp + 0x5e], 0xe8
mov byte [rsp + 0x5f], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x61], 0
mov byte [rsp + 0x62], 0
mov byte [rsp + 0x63], 0xba
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0xc7
mov byte [rsp + 0x69], 2
mov byte [rsp + 0x6a], 0x7e
mov byte [rsp + 0x6b], 0x1e
mov byte [rsp + 0x6c], 0x37
mov byte [rsp + 0x6d], 0xc0
mov byte [rsp + 0x6e], 0xba
mov byte [rsp + 0x6f], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0x89
mov byte [rsp + 0x74], 2
mov byte [rsp + 0x75], 0xc2
mov byte [rsp + 0x76], 4
mov byte [rsp + 0x77], 0
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140009130
mov rax, qword [rsp + 0x40]
add rax, 0x200
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xa8]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xa8]
movzx ecx, word [rcx + 2]
mov word [rax + 2], cx
mov rax, qword [rsp + 0x40]
add rax, 0x210
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 4]
mov rdx, qword [rsp + 0xa8]
mov edi, ecx
mov rsi, qword [rdx + 8]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
mov rsi, rax
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x40]
add rax, 0x5e0
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 6], ecx
mov rax, qword [rsp + 0x40]
add rax, 0xf
mov rcx, qword [rsp + 0xa0]
sub rcx, rax
mov rax, rcx
sub rax, 4
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0xf], eax
mov rax, qword [rsp + 0x40]
add rax, 0x5e8
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0x40]
add rax, 0x5ec
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x1f], eax
mov rax, qword [rsp + 0x40]
jmp 0x140009132
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x14000a930
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x78], 0x200
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
cmp qword [rsp + 0x100], 0
jne 0x14000a9e9
mov dword [rsp + 0x44], 1
jmp 0x14000a9f1
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x44], 0
je 0x14000aa1f
xor r9d, r9d
mov r8d, 0x38a
lea rdx, [0x1400157f0]
lea rcx, [0x140015cd0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x48], 0
jmp 0x14000aa27
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0x100], 0
jne 0x14000aa3c
mov eax, 0xc000000d
jmp 0x14000ab80
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x30], rax
lea rax, [0x14000aba0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
mov edx, 0x1fffff
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x14000aab4
lfence
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [0x140015ce0]
lea r8, [0x140015cf0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, dword [rsp + 0x40]
jmp 0x14000ab80
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [sym.imp.ntoskrnl.exe_PsThreadType]
mov r8, qword [rax]
mov edx, 0x1fffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x14000ab69
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0xb0]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationThread]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x50], 0
je 0x14000ab7c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140003e80
add rsp, 0xf0
pop rdi
ret
Function at 0x14000bec0
Capabilities:
Inspect section memory permissions

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
mov dword [rsp], 1
mov eax, dword [rsp + 0x20]
and eax, 0x2000000
test eax, eax
je 0x14000beec
mov dword [rsp], 1
jmp 0x14000bfb6
mov eax, dword [rsp + 0x20]
and eax, 0x20000000
test eax, eax
je 0x14000bf83
mov eax, dword [rsp + 0x20]
and eax, 0x80000000
test eax, eax
je 0x14000bf2e
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x14000bf1d
mov dword [rsp + 4], 4
jmp 0x14000bf25
mov dword [rsp + 4], 0x40
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x14000bf81
mov eax, dword [rsp + 0x20]
and eax, 0x40000000
test eax, eax
je 0x14000bf5f
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x14000bf4e
mov dword [rsp + 8], 2
jmp 0x14000bf56
mov dword [rsp + 8], 0x20
mov eax, dword [rsp + 8]
mov dword [rsp], eax
jmp 0x14000bf81
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x14000bf72
mov dword [rsp + 0xc], 2
jmp 0x14000bf7a
mov dword [rsp + 0xc], 0x10
mov eax, dword [rsp + 0xc]
mov dword [rsp], eax
jmp 0x14000bfb6
mov eax, dword [rsp + 0x20]
and eax, 0x80000000
test eax, eax
je 0x14000bf99
mov dword [rsp], 4
jmp 0x14000bfb6
mov eax, dword [rsp + 0x20]
and eax, 0x40000000
test eax, eax
je 0x14000bfaf
mov dword [rsp], 2
jmp 0x14000bfb6
mov dword [rsp], 1
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x14000bfc0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000c12c
mov dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
mov r8w, 0xa
mov dl, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14000c12a
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000c052
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x38], rax
jmp 0x14000c05f
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000c12a
mov rax, qword [rsp + 0x80]
shr rax, 0x20
mov ecx, dword [rsp + 0x80]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x5c]
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000c0f2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000c0d6
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x40], rax
jmp 0x14000c0e3
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
jmp 0x14000c12a
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000c112
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x48], rax
jmp 0x14000c11f
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
jmp 0x14000c134
mov dword [rsp + 0x28], 0xc000007b
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x78
ret
Function at 0x140010230
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x48
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x14001025e
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
jmp 0x140010338
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140010336
mov rax, qword [rsp + 0x28]
add rax, 0x108
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x1400102aa
mov rax, qword [rsp + 0x28]
add rax, 0xf8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x1400102c4
mov rax, qword [rsp + 0x20]
add rax, 0x28
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x20], rax
jae 0x140010336
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x50], eax
jb 0x140010334
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 8]
cmp dword [rsp + 0x50], eax
jae 0x140010334
lfence
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0xc]
mov edx, dword [rsp + 0x50]
sub edx, ecx
mov ecx, edx
mov ecx, ecx
add rax, rcx
jmp 0x140010338
jmp 0x1400102b6
xor eax, eax
add rsp, 0x48
ret
Function at 0x140010450
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
cmp qword [0x1400060a0], 0
je 0x1400104bc
cmp qword [rsp + 0x80], 0
je 0x1400104b0
mov rax, qword [rsp + 0x80]
mov ecx, dword [0x1400060a8]
mov dword [rax], ecx
mov rax, qword [0x1400060a0]
jmp 0x140010686
lea rdx, [0x140016850]
lea rcx, [rsp + 0x50]
call fcn.140001140
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400104ec
xor eax, eax
jmp 0x140010686
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x48], 0
jne 0x140010530
lea r9, [0x140016870]
lea r8, [0x140016880]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
jmp 0x140010686
mov eax, dword [rsp + 0x48]
mov r8d, 0x656e6f42
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov rcx, qword [rsp + 0x40]
rep stosb byte [rdi], al
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140010667
mov rax, qword [rsp + 0x28]
add rax, 8
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
jmp 0x1400105ab
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140010667
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax + 0x10]
cmp qword [rsp + 0x38], rax
jb 0x140010662
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x18]
mov rdx, qword [rsp + 0x30]
add rcx, qword [rdx + rax + 0x10]
mov rax, rcx
cmp qword [rsp + 0x38], rax
jae 0x140010662
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax + 0x10]
mov qword [0x1400060a0], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x18]
mov dword [0x1400060a8], eax
cmp qword [rsp + 0x80], 0
je 0x140010660
mov rax, qword [rsp + 0x80]
mov ecx, dword [0x1400060a8]
mov dword [rax], ecx
jmp 0x140010667
jmp 0x1400105a1
cmp qword [rsp + 0x28], 0
je 0x14001067f
mov edx, 0x656e6f42
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x1400060a0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x70
pop rdi
ret
Function at 0x140010790
Capabilities:
Access pe header

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ecx, ecx
call fcn.140010450
mov qword [rsp + 0x40], rax
cmp qword [0x1400060b0], 0
je 0x1400107cb
mov rax, qword [0x1400060b0]
jmp 0x140010930
cmp qword [rsp + 0x40], 0
jne 0x1400107da
xor eax, eax
jmp 0x140010930
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x108
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140010814
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x30], rax
jae 0x14001092e
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x8000000
test eax, eax
je 0x140010929
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x140010929
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x2000000
test eax, eax
jne 0x140010929
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x54494e49
je 0x140010929
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x45474150
je 0x140010929
lfence
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
lea rcx, [0x1400168c0]
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 + 0x58]
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.1400033a0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x140010929
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 3]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 7]
mov qword [0x1400060b0], rax
mov rax, qword [0x1400060b0]
jmp 0x140010930
jmp 0x140010806
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x1400131a0
Capabilities:
Attach user process memory
Find process by pid
Free user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0xb8], 0
jne 0x1400131e9
mov dword [rsp + 0x34], 1
jmp 0x1400131f1
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0
je 0x14001321f
xor r9d, r9d
mov r8d, 0x16e
lea rdx, [0x140017350]
lea rcx, [0x140017460]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x38], 0
jmp 0x140013227
mov dword [rsp + 0x38], 1
cmp qword [rsp + 0xb8], 0
jne 0x14001323c
mov eax, 0xc000000d
jmp 0x1400133f1
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x10]
lea rdx, [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1400133b4
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x1c]
test eax, eax
je 0x140013337
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x1d]
test eax, eax
je 0x1400132d8
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
call fcn.140013410
mov dword [rsp + 0x30], eax
jmp 0x140013335
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
jmp 0x1400133a7
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x40]
call fcn.140015080
cmp dword [rsp + 0x50], 1
jne 0x140013380
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
call fcn.140013410
mov dword [rsp + 0x30], eax
jmp 0x1400133a7
mov rax, qword [rsp + 0xb0]
mov r9d, dword [rax + 0x18]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400133da
lfence
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x140017470]
lea r8, [0x1400155f0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x40], 0
je 0x1400133ed
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140003e80
add rsp, 0xa8
ret
Function at 0x140013b60
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x18]
lea rdx, [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140013c9e
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x1c]
test eax, eax
je 0x140013c28
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
jmp 0x140013c5e
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmCopyVirtualMemory]
mov dword [rsp + 0x40], eax
jmp 0x140013cc4
lfence
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [0x140017450]
lea r8, [0x1400155f0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x68], 0
je 0x140013cd7
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x88
ret
Function at 0x140013cf0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
lea rdx, [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140013dbd
cmp dword [0x14000652c], 0
je 0x140013d98
mov eax, dword [0x14000652c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
or eax, 2
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
or eax, 0x20
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
or eax, 0x10
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
jmp 0x140013dbb
lea r9, [0x1400172c0]
lea r8, [0x1400172d0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x30], 0xc0000141
jmp 0x140013de3
lfence
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x1400172c0]
lea r8, [0x1400155f0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x40], 0
je 0x140013df6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x58
ret

Function at 0x140013e10
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x40], 0
cmp dword [0x140006538], 0
jne 0x140013e67
lea r9, [0x140017410]
lea r8, [0x140017420]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000141
jmp 0x140013f29
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
lea rdx, [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140013ea0
mov rcx, qword [rsp + 0x40]
call fcn.140003190
movzx eax, al
test eax, eax
je 0x140013ea0
mov dword [rsp + 0x34], 0xc000010a
cmp dword [rsp + 0x34], 0
jl 0x140013eec
mov eax, dword [0x140006538]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov r8, qword [rsp + 0x60]
lea rdx, [0x140013f40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExEnumHandleTable]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140013eea
mov dword [rsp + 0x34], 0xc0000225
jmp 0x140013f12
lfence
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
lea r9, [0x140017410]
lea r8, [0x1400155f0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x40], 0
je 0x140013f25
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x58
ret