joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1416fe058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1416fe1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1416fe089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416fe06f
add dl, dl
jne 0x1416fe096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416fe0f6
xor eax, eax
add dl, dl
jne 0x1416fe0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416fe1ad
add dl, dl
jne 0x1416fe0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416fe0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416fe0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416fe0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416fe0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1416fe07e
mov eax, 1
add dl, dl
jne 0x1416fe106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416fe113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416fe0fb
sub eax, ebx
mov ebx, 1
jne 0x1416fe14c
mov ecx, 1
add dl, dl
jne 0x1416fe12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416fe13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416fe123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416fe07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1416fe168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416fe175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416fe15d
cmp eax, 0x7d00
jae 0x1416fe19b
cmp eax, 0x500
jb 0x1416fe196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416fe07e
cmp eax, 0x7f
ja 0x1416fe19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416fe07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416fe1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1416fe07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100148000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x140001020
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000fff0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov qword [rsp + 0x30], 0
lea rax, [0x140001140]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1400010a0
lfence
mov r9d, dword [rsp + 0x40]
lea r8, [0x140006d80]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, dword [rsp + 0x40]
jmp 0x1400010d1
lea r8, [0x140006db0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0x60]
lea rcx, [0x1400010e0]
mov qword [rax + 0x68], rcx
xor eax, eax
add rsp, 0x58
ret

Function at 0x140002200
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0xc0000001
mov byte [0x140010090], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [0x1400022d0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1400022a2
lfence
mov eax, dword [rsp + 0x40]
jmp 0x1400022be
movzx eax, byte [0x140010090]
test eax, eax
jne 0x1400022af
jmp 0x1400022a2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x70]
add rsp, 0x88
ret
Function at 0x1400023b0
Capabilities:
Create thread
Find process by pid

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x1400023ed
lfence
mov eax, dword [rsp + 0x44]
jmp 0x140002515
mov r8d, 0x65786354
mov edx, 0x18
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140002422
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000009a
jmp 0x140002515
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x90]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [0x140005290]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x1400024b3
lfence
mov edx, 0x65786354
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x44]
jmp 0x140002515
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x14]
mov byte [rsp + 0x40], al
mov edx, 0x65786354
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x140002509
mov dword [rsp + 0x48], 0
jmp 0x140002511
mov dword [rsp + 0x48], 0xc0000001
mov eax, dword [rsp + 0x48]
add rsp, 0x78
ret
Function at 0x140002520
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, 0x70726354
mov edx, 0x20
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140002562
mov eax, 0xc000009a
jmp 0x140002631
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x88]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [0x140002640]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1400025f6
lfence
mov edx, 0x70726354
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x40]
jmp 0x140002631
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x40], eax
mov edx, 0x70726354
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x140002850
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov rax, qword [0x14000e500]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc0]
lea r8, [0x140006dd0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0xc8], 0
jne 0x1400028af
xor eax, eax
jmp 0x1400029bd
mov qword [rsp + 0x40], 0
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400028f0
xor eax, eax
jmp 0x1400029bd
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14000291c
jmp 0x1400029ad
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x38]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
cmp qword [rsp + 0x48], 0
je 0x140002975
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call fcn.1400029e0
mov qword [rsp + 0x40], rax
jmp 0x140002998
mov rcx, qword [rsp + 0x38]
call sub.ntoskrnl.exe_PsGetProcessPeb
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.140002be0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor eax, eax
test eax, eax
jne 0x1400028f0
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140006420
add rsp, 0xb0
pop rdi
ret
Function at 0x1400030b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [0x14000e500]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0x40
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x14000315b
lfence
mov eax, dword [rsp + 0x30]
jmp 0x1400032b1
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x48]
mov edx, 0x80000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400031d5
lfence
mov r9d, dword [rsp + 0x30]
lea r8, [0x140006e10]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, dword [rsp + 0x30]
jmp 0x1400032b1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x30], 0
jge 0x14000323e
lfence
lea r8, [0x140006e30]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, dword [rsp + 0x30]
jmp 0x1400032b1
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x4c], 1
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x4f], 1
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x49], 0
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rax + 0x10], 0
xor edx, edx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400032ad
lfence
mov r9d, dword [rsp + 0x30]
lea r8, [0x140006e50]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140006420
add rsp, 0xe0
pop rdi
ret
Function at 0x1400032d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, 0x66726554
mov edx, 0x20
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000330d
mov eax, 0xc000009a
jmp 0x1400033cd
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [0x1400033e0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140003392
lfence
mov edx, 0x66726554
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x40]
jmp 0x1400033cd
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x40], eax
mov edx, 0x66726554
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret

Function at 0x140003690
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 4
jmp 0x1400036b7
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffff
jae 0x14000371d
lfence
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x14000371b
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call sub.ntoskrnl.exe_strcmp
test eax, eax
jne 0x140003710
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x140003722
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400036a9
mov eax, 0xc0000225
add rsp, 0x38
ret
Function at 0x1400048d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x28], 0x30
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0x40
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
lea r8, [rsp + 0x28]
mov edx, 0x1f0003
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwOpenEvent]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14000494d
lfence
mov rdx, qword [rsp + 0x70]
lea rcx, [0x140006f10]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x20]
jmp 0x140004960
mov rdx, qword [rsp + 0x70]
lea rcx, [0x140006f30]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x68
ret

Function at 0x140004c40
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x240
lea rax, [rsp + 0x70]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x90]
mov edx, 0x80000000
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x140004d21
lfence
mov eax, dword [rsp + 0x60]
jmp 0x140004dc3
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x60], eax
cmp qword [rsp + 0xd8], 0
je 0x140004db4
mov rcx, qword [rsp + 0xd8]
call sub.ntoskrnl.exe_wcslen
test rax, rax
jbe 0x140004db4
lfence
mov rcx, qword [rsp + 0xd8]
call sub.ntoskrnl.exe_wcslen
mov r8, rax
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd8]
call sub.ntoskrnl.exe_wcsncpy
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x60]
add rsp, 0xc8
ret
Function at 0x140004f50
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140004f95
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
jmp 0x140005017
mov rax, qword [0x14000e568]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov r9, qword [0x14000e568]
lea r8, [0x1400071f0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x28]
call fcn.140003010
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x20]
lea r8, [0x140007200]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlAvlRemoveNode]
xor eax, eax
add rsp, 0x48
ret

Function at 0x140005310
Capabilities:
Find process by pid

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e500]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
cmp dword [rsp + 0x90], 0
jne 0x140005348
mov eax, 0xc0000001
jmp 0x1400053dc
movsxd rax, dword [rsp + 0x90]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140005371
mov eax, dword [rsp + 0x30]
jmp 0x1400053dc
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, [0x140006f50]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x38]
call fcn.140003730
mov qword [0x140010048], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov r9, qword [0x140010048]
lea r8, [0x140006f70]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140006420
add rsp, 0x80
pop rdi
ret