joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002970
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x140007620]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0x1000
mov dword [rsp + 0x38], 0
lea rdx, [0x140005160]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400095a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140002aef
lea rdx, [0x140005180]
mov rcx, qword [rsp + 0x30]
call fcn.140003750
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140002aef
mov byte [rsp + 0x68], 0x48
mov byte [rsp + 0x69], 0xb8
mov byte [rsp + 0x6a], 0
mov byte [rsp + 0x6b], 0
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 0
mov byte [rsp + 0x6e], 0
mov byte [rsp + 0x6f], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0xff
mov byte [rsp + 0x73], pe_nt_image_headers64
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + rax + 0x68], rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call fcn.1400048b0
test eax, eax
jl 0x140002acb
lea rdx, [0x140005180]
mov rcx, qword [rsp + 0x30]
call fcn.140003750
lea rcx, [rsp + 0x68]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov eax, dword [0x140007c38]
mov qword [rsp + 0x50], rax
mov rdi, qword [0x140007c30]
xor eax, eax
mov rcx, qword [rsp + 0x50]
rep stosb byte [rdi], al
mov al, 1
jmp 0x140002af1
lea rdx, [0x140005180]
mov rcx, qword [rsp + 0x30]
call fcn.140003750
mov rdx, rax
lea rcx, [0x1400051a0]
call sub.ntoskrnl.exe_DbgPrint
xor al, al
jmp 0x140002af1
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004d00
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x140002d30
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
mov rax, qword [0x140007620]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0xffffffffffffffff
lea rax, [rsp + 0xc8]
lea rcx, [0x140005030]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2e
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
lea r8, [rsp + 0x88]
mov edx, 0xf001f
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jge 0x140002e1a
xor eax, eax
jmp 0x140002ed1
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140002e34
cmp qword [rsp + 0x50], 0
jne 0x140002e3b
xor eax, eax
jmp 0x140002ed1
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x128]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x5c], 0
jne 0x140002ec3
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
jmp 0x140002ecc
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140004d00
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x140003f50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x24], 0xc0000001
lea rdx, [0x140005250]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 0
je 0x140004037
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x18]
lea rcx, [0x1400053f0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 8]
add rax, 0x38
mov rdx, rax
lea rcx, [0x140005400]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 8]
add rax, 0x38
mov r8b, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x140004027
jmp 0x140004037
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
jmp 0x140003fbe
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 0
jne 0x14000404c
mov eax, dword [rsp + 0x24]
jmp 0x140004198
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140004194
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x18], rcx
je 0x140004089
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
jmp 0x14000405d
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x48], rax
mov qword [0x140007ca0], 0
mov dword [rsp + 0x20], 0
jmp 0x1400040c3
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x20], 0x1000
jge 0x140004178
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x1400040e8
jmp 0x140004178
cmp qword [0x140007ca0], 0
je 0x140004106
cmp qword [0x140007ca8], 0
je 0x140004106
mov dword [rsp + 0x24], 0
jmp 0x140004178
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x40], rax
jne 0x140004130
mov rax, qword [rsp + 0x30]
mov qword [0x140007ca0], rax
jmp 0x1400040ac
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x40], rax
jbe 0x140004173
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x40], rax
jae 0x140004173
lfence
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x140004173
mov rax, qword [rsp + 0x40]
mov qword [0x140007ca8], rax
jmp 0x1400040ac
cmp dword [rsp + 0x24], 0
jne 0x140004181
jmp 0x140004194
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
jmp 0x14000405d
mov eax, dword [rsp + 0x24]
add rsp, 0x78
ret
Function at 0x1400041a0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x20], 0xc0000001
lea rdx, [0x1400052a0]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 0
je 0x140004296
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x18]
lea rcx, [0x1400053f0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 8]
add rax, 0x38
mov rdx, rax
lea rcx, [0x140005400]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 8]
add rax, 0x38
mov r8b, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x140004283
lea rcx, [0x140005410]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140004296
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
jmp 0x14000420e
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 0
jne 0x1400042ab
mov eax, dword [rsp + 0x20]
jmp 0x1400043ff
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400043fb
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x18], rcx
je 0x1400042e8
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
jmp 0x1400042bc
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x48], rax
mov qword [0x140007cb0], 0
mov dword [rsp + 0x24], 0
jmp 0x140004322
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x24], 0x1000
jge 0x1400043df
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x140004347
jmp 0x1400043df
cmp qword [0x140007cb0], 0
je 0x140004365
cmp qword [0x140007cb8], 0
je 0x140004365
mov dword [rsp + 0x20], 0
jmp 0x1400043df
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x40], rax
jne 0x14000438f
mov rax, qword [rsp + 0x30]
mov qword [0x140007cb0], rax
jmp 0x14000430b
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x40], rax
jbe 0x1400043da
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x40], rax
jae 0x1400043da
lfence
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x1400043da
mov rax, qword [rsp + 0x40]
mov qword [0x140007cb8], rax
mov dword [rsp + 0x20], 0
jmp 0x14000430b
cmp dword [rsp + 0x20], 0
jne 0x1400043e8
jmp 0x1400043fb
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
jmp 0x1400042bc
mov eax, dword [rsp + 0x20]
add rsp, 0x78
ret
Function at 0x140009b00
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
cmp qword [0x140007b20], 0
je 0x140009b57
cmp qword [rsp + 0x70], 0
je 0x140009b4b
mov rax, qword [rsp + 0x70]
mov ecx, dword [0x140007b28]
mov dword [rax], ecx
mov rax, qword [0x140007b20]
jmp 0x140009d1b
lea rdx, [0x14000bdb0]
lea rcx, [rsp + 0x50]
call fcn.1400045e0
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140009b87
xor eax, eax
jmp 0x140009d1b
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x24], 0
jne 0x140009bcb
lea r9, [0x14000bdd0]
lea r8, [0x14000bde0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
jmp 0x140009d1b
mov eax, dword [rsp + 0x24]
mov r8d, 0x656e6f42
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x24]
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x48]
rep stosb byte [rdi], al
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x140009cfc
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x140009c46
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140009cfc
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
cmp qword [rsp + 0x40], rax
jb 0x140009cf7
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rdx + rcx + 0x18]
mov rdx, qword [rsp + 0x38]
add rcx, qword [rdx + rax + 0x10]
mov rax, rcx
cmp qword [rsp + 0x40], rax
jae 0x140009cf7
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
mov qword [0x140007b20], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x18]
mov dword [0x140007b28], eax
cmp qword [rsp + 0x70], 0
je 0x140009cf5
mov rax, qword [rsp + 0x70]
mov ecx, dword [0x140007b28]
mov dword [rax], ecx
jmp 0x140009cfc
jmp 0x140009c3c
cmp qword [rsp + 0x30], 0
je 0x140009d14
mov edx, 0x656e6f42
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140007b20]
add rsp, 0x60
pop rdi
ret
Function at 0x140009e20
Capabilities:
Access pe header

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x140007620]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ecx, ecx
call fcn.140009b00
mov qword [rsp + 0x40], rax
cmp qword [0x140007b30], 0
je 0x140009e5b
mov rax, qword [0x140007b30]
jmp 0x140009fc0
cmp qword [rsp + 0x40], 0
jne 0x140009e6a
xor eax, eax
jmp 0x140009fc0
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 0x140009ea4
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 0x140009fbe
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x8000000
test eax, eax
je 0x140009fb9
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x140009fb9
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x2000000
test eax, eax
jne 0x140009fb9
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x54494e49
je 0x140009fb9
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x45474150
je 0x140009fb9
lfence
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x60]
lea rcx, [0x14000be10]
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.140004af0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x140009fb9
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 3]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 7]
mov qword [0x140007b30], rax
mov rax, qword [0x140007b30]
jmp 0x140009fc0
jmp 0x140009e96
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140004d00
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x14000a7e0
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 [0x140007620]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0xb8], 0
jne 0x14000a829
mov dword [rsp + 0x40], 1
jmp 0x14000a831
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
je 0x14000a85f
xor r9d, r9d
mov r8d, 0x187
lea rdx, [0x14000bf20]
lea rcx, [0x14000bfa0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x48], 0
jmp 0x14000a867
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0xb8], 0
jne 0x14000a87c
mov eax, 0xc000000d
jmp 0x14000aa31
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x10]
lea rdx, [rsp + 0x38]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x14000a9f4
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x1c]
test eax, eax
je 0x14000a977
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x1d]
test eax, eax
je 0x14000a918
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
call fcn.14000aa50
mov dword [rsp + 0x30], eax
jmp 0x14000a975
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 + 0x50]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
jmp 0x14000a9e7
mov dword [rsp + 0x44], 0
lea r8, [rsp + 0x44]
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x38]
call fcn.14000ba10
cmp dword [rsp + 0x44], 1
jne 0x14000a9c0
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
call fcn.14000aa50
mov dword [rsp + 0x30], eax
jmp 0x14000a9e7
mov rax, qword [rsp + 0xb0]
mov r9d, dword [rax + 0x18]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
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 0x14000aa1a
lfence
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x14000bfb0]
lea r8, [0x14000bee0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x38], 0
je 0x14000aa2d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140004d00
add rsp, 0xa8
ret
Function at 0x14000b170
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 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 0x14000b36c
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x1c]
test eax, eax
je 0x14000b2a6
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
cmp qword [0x140007b50], 0
jne 0x14000b273
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 + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmCopyVirtualMemory]
mov dword [rsp + 0x40], eax
cmp qword [0x140007b50], 1
jne 0x14000b2a1
mov r9, qword [rsp + 0x48]
mov rax, qword [rsp + 0x90]
mov r8d, dword [rax + 0x10]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140001a30
mov dword [rsp + 0x40], eax
jmp 0x14000b36a
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
cmp qword [0x140007b48], 0
jne 0x14000b330
lea rcx, [0x14000bf60]
call sub.ntoskrnl.exe_DbgPrint
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 + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmCopyVirtualMemory]
mov dword [rsp + 0x40], eax
cmp qword [0x140007b48], 1
jne 0x14000b36a
lea rcx, [0x14000bf80]
call sub.ntoskrnl.exe_DbgPrint
mov r9, qword [rsp + 0x48]
mov rax, qword [rsp + 0x90]
mov r8, qword [rax + 0x10]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call fcn.140001880
mov dword [rsp + 0x40], eax
jmp 0x14000b392
lfence
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [0x14000bf90]
lea r8, [0x14000bee0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x68], 0
je 0x14000b3a5
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x14000e3e0
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, 0x98
cmp qword [rsp + 0xc0], 0
jne 0x14000e410
mov dword [rsp + 0x38], 1
jmp 0x14000e418
mov dword [rsp + 0x38], 0
cmp dword [rsp + 0x38], 0
je 0x14000e446
xor r9d, r9d
mov r8d, 0xe7
lea rdx, [0x14000eb80]
lea rcx, [0x14000ebc0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x48], 0
jmp 0x14000e44e
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0xc0], 0
jne 0x14000e463
mov eax, 0xc000000d
jmp 0x14000e5bf
xor ecx, ecx
call fcn.140009b00
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000e481
mov eax, 0xc0000225
jmp 0x14000e5bf
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000e4a3
mov eax, 0xc000007b
jmp 0x14000e5bf
mov rax, qword [rsp + 0x50]
add rax, 0x108
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
jmp 0x14000e4cd
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 0x14000e5ba
lfence
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rax, qword [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x14000e5b5
lfence
mov qword [rsp + 0x60], 0
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 + 0x60]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8, qword [rsp + 0xb8]
movzx edx, byte [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call fcn.140004af0
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x14000e5af
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov eax, dword [rsp + 0x3c]
jmp 0x14000e5bf
jmp 0x14000e4bf
mov eax, 0xc0000225
add rsp, 0x98
ret