joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1400a4580]
mov rax, qword [rsi]
test rax, rax
je 0x140003930
cmp qword [rax + 0x28], 0
jne 0x140003918
lea rcx, [0x1400a7088]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140003925
call fcn.140002d50
mov rax, qword [rsi]
test rax, rax
je 0x1400037c0
cmp qword [rax + 0x30], 0
jne 0x1400037e0
lea rdx, [0x140087938]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400037f4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140007a60
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003790
test rax, rax
jne 0x1400037e0
call fcn.140007a60
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1400037ae
call fcn.140002890
cmp qword [0x1400aa050], 0
mov rbx, rax
je 0x1400037ae
test rax, rax
je 0x1400037ae
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140009900
cmp eax, 1
je 0x14000399d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400127b6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140003978
cmp qword [rax + 0x30], 0
je 0x140003960
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400127b6
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000377c
mov rax, qword [rsi]
jmp 0x140003789
call fcn.140007a60
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140003768
test rax, rax
jne 0x140003918
call fcn.140007a60
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000377c
jmp 0x140003781
lea rdx, [0x140087938]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400038ee
call fcn.140007a60
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003960
test rax, rax
jne 0x1400038ea
call fcn.140007a60
jmp 0x1400038ea
call fcn.140002c20
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1400a4580]
mov rdx, qword [rax]
lea rax, [0x1400a7098]
mov qword [rdx + 0x10], rax
ret
Function at 0x140012250
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push r15
mov eax, 0x11d78
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000c080
sub rsp, rax
mov rbx, rcx
mov ecx, 0x3e8
call sub.msvcrt.dll_malloc
mov rcx, rax
mov r12, rax
call qword [sym.imp.msvcrt.dll__msize]
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll_strlen
cmp eax, esi
jle 0x1400122a2
add eax, 0x64
mov rcx, r12
movsxd rdx, eax
call sub.msvcrt.dll_realloc
mov r12, rax
call sub.msvcrt.dll_rand
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x1400122d1
add rsp, 0x11d78
mov rcx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
mov eax, ebp
mov edi, 0x65
xor ebp, ebp
cdq
lea r13, str._sBocchi_find_you_i.jpg
lea r14, [0x140091e18]
idiv edi
lea r15, [rsp + 0x11d70]
mov dword [rsp + 0x24], edx
cmp ebp, dword [rsp + 0x24]
jge 0x1400122b6
mov r9d, ebp
mov r8, rbx
mov rdx, r13
mov rcx, r12
call fcn.140012370
mov rdx, r14
mov rcx, r12
call sub.msvcrt.dll_fopen
mov r9, rax
test rax, rax
je 0x140012366
lea rdi, [rsp + 0x3e]
lea rsi, [0x140091e1b]
mov ecx, 0x11d32
rep movsb byte [rdi], byte [rsi]
lea rsi, [rsp + 0x3e]
mov rcx, rsi
mov r8d, 1
mov edx, 1
inc rsi
mov qword [rsp + 0x28], r9
call sub.msvcrt.dll_fwrite
cmp rsi, r15
mov r9, qword [rsp + 0x28]
jne 0x140012339
mov rcx, r9
call sub.msvcrt.dll_fclose
inc ebp
jmp 0x1400122f7
Function at 0x140001000
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], r12
push r15
sub rsp, 0x5c0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
je 0x1400010e2
jmp 0x140001034
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140001113
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
xor edi, edi
movsxd rcx, dword [rax + 0x3c]
mov esi, dword [rcx + rax + 0x88]
cmp dword [rsi + rax + 0x18], edi
jbe 0x1400010bf
mov r15d, dword [rsi + rax + 0x20]
lea rax, [r15 + rdi*4]
mov edx, dword [rax + rbx]
add rdx, rbx
lea rcx, [0x1400052c8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000108e
inc edi
cmp edi, dword [rsi + rbx + 0x18]
jb 0x14000106a
jmp 0x1400010bf
mov ecx, dword [rsi + rbx + 0x24]
add rcx, rbx
movzx edx, word [rcx + rdi*2]
mov ecx, dword [rsi + rbx + 0x1c]
add rcx, rbx
mov r10d, dword [rcx + rdx*4]
add r10, rbx
je 0x1400010bf
xor r9d, r9d
lea r8, str.aaaaa..
lea rdx, str.Meow_dasmeow_
xor ecx, ecx
call r10
mov eax, 1
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
xor r9d, r9d
lea r8, str.das..das
lea rdx, str.Meow_mdasdaseow_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
and qword [rsp + 0x20], 0
lea rdx, [0x140009bb0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r9d, r9d
lea r8, str.das..das
lea rdx, str.Meow_mdasdaseow_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
and qword [rsp + 0x2f0], 0
lea rdx, [0x140009bb0]
lea rcx, [rsp + 0x2f0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140001a70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aba
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001abc
xor al, al
add rsp, 0x28
ret
Function at 0x140001570
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rcx + 4]
mov rbx, rcx
imul eax, dword [rcx]
mov esi, edx
movsxd rcx, eax
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140003ca0
mov r10d, dword [rbx]
xor r11d, r11d
mov edx, dword [rbx + 4]
mov ecx, r10d
imul ecx, edx
mov rdi, rax
mov r9d, r11d
test ecx, ecx
jle 0x14000161b
mov edx, r11d
mov r8, rax
nop word [rax + rax]
mov rax, qword [rbx + 8]
lea rdx, [rdx + 2]
inc r9d
lea r8, [r8 + 4]
movzx ecx, word [rdx + rax - 2]
mov word [r8 - 4], cx
mov rax, qword [rbx + 0x10]
movzx ecx, word [rdx + rax - 2]
mov word [r8 - 2], cx
mov r10d, dword [rbx]
mov eax, r10d
mov ecx, dword [rbx + 4]
imul eax, ecx
cmp r9d, eax
jl 0x1400015e0
movzx edx, cx
mov rcx, qword [rbx + 0x18]
lea eax, [r10 - 1]
mov word [rsp + 0x3c], ax
mov r9d, r11d
lea eax, [rdx - 1]
mov word [rsp + 0x36], dx
mov word [rsp + 0x3e], ax
mov rdx, rdi
mov word [rsp + 0x34], r10w
lea rax, [rsp + 0x38]
mov r8d, dword [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], r11d
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140003c6c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003c10
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400045ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400045f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400045f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400045f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400045f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400045f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400045f8
xor al, al
add rsp, 0x28
ret

Function at 0x141758058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1417581df
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 0x141758089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14175806f
add dl, dl
jne 0x141758096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417580f6
xor eax, eax
add dl, dl
jne 0x1417580a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417581ad
add dl, dl
jne 0x1417580b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417580c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417580d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417580dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417580ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14175807e
mov eax, 1
add dl, dl
jne 0x141758106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141758113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417580fb
sub eax, ebx
mov ebx, 1
jne 0x14175814c
mov ecx, 1
add dl, dl
jne 0x14175812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14175813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141758123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14175807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141758168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141758175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14175815d
cmp eax, 0x7d00
jae 0x14175819b
cmp eax, 0x500
jb 0x141758196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14175807e
cmp eax, 0x7f
ja 0x14175819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14175807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417581d2
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 0x14175807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov edx, 0x58
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edx, edx
mov rcx, rax
mov rbp, rax
lea r8d, [rdx + 0x58]
call fcn.140003540
or byte [rsi + 0xc2], 2
lea r9, [0x1400010b0]
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov byte [rsp + 0x30], 1
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov rcx, rbp
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_KeInitializeApc]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_KeInsertQueueApc]
test al, al
jne 0x140001091
lea rcx, [0x140003920]
call sub.ntoskrnl.exe_DbgPrint
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400010d4
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x70
mov rdi, r8
and qword [rax + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
and qword [rax - 0x40], 0
mov ecx, ecx
lea rdx, [rax + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000112c
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x14000112c
mov eax, 0xc0000001
jmp 0x1400011bc
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140003540
mov rcx, qword [rsp + 0x38]
mov qword [rdi], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400011ac
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140001968
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
and qword [rbp + 0x28], 0
xorps xmm0, xmm0
mov ecx, ecx
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400019b6
lea rcx, [0x140003af0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400019f4
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x18]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x140001a40
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001a84
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001a84
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001a7d
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
jmp 0x140001aa3
mov rcx, qword [rsp + 0x40]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rax
test rcx, rcx
je 0x140001aa1
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001ab0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rbp, rdx
movsxd rcx, ecx
lea rdx, [rax + 0x20]
mov r14, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140001b7e
mov rcx, qword [rsp + 0xa8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov edx, 0x30
xor ecx, ecx
mov r8d, 0x696e666f
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
test rax, rax
je 0x140001b7e
mov rdi, qword gs:[0x188]
mov r9, rsi
mov ecx, dword [0x140005048]
xor r8d, r8d
and qword [rsp + 0x28], 0
add rdi, rcx
mov rdx, rbp
mov dword [rsp + 0x20], 0x30
or rcx, 0xffffffffffffffff
mov bl, byte [rdi]
mov byte [rdi], 0
mov rax, qword [0x140005058]
call qword [0x140004218]
mov byte [rdi], bl
lea rcx, [rsp + 0x40]
mov ebx, dword [rsi + 0x24]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [rsi + 0x24]
mov dword [r14], ecx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140001b80
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140001b98
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r15, rdx
mov edi, ecx
mov rax, cr8
xor ebx, ebx
test al, al
jne 0x140001d03
test ecx, ecx
je 0x140001d03
lea rdx, [0x140003a90]
mov qword [rbp + 0x30], rbx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x140003ad0]
mov rsi, rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov r14, rax
test rax, rax
je 0x140001d03
test rsi, rsi
je 0x140001d03
mov ecx, edi
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rbp + 0x30]
test eax, eax
js 0x140001cf8
test rcx, rcx
je 0x140001cf8
lea rdx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp + 0x30]
mov rax, rsi
call qword [0x140004218]
test rax, rax
je 0x140001c9b
mov eax, dword [rax + 0xc]
mov esi, dword [rax + 0x14]
mov edi, esi
xorps xmm0, xmm0
lea rcx, [rbp - 0x40]
movups xmmword [rbp - 0x40], xmm0
mov edx, dword [rdi + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140001c96
mov edi, dword [rdi]
cmp rdi, rsi
je 0x140001cea
jmp 0x140001c65
mov ebx, dword [rdi + 0x10]
jmp 0x140001cea
mov rcx, qword [rbp + 0x30]
mov rax, r14
call qword [0x140004218]
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
mov rdi, rsi
xorps xmm0, xmm0
lea rcx, [rbp - 0x40]
movups xmmword [rbp - 0x40], xmm0
mov rdx, qword [rdi + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140001ce6
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x140001cea
jmp 0x140001cb3
mov rbx, qword [rdi + 0x20]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
jmp 0x140001d05
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001d78
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, r9
mov ebx, r8d
mov r14, rdx
and qword [rax - 0x58], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
mov ecx, ecx
lea rdx, [rax - 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140001dd4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001dd4
mov eax, 0xc0000001
jmp 0x140001e45
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.140003640
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001e38
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x140001e58
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rbx, r9
mov r14d, r8d
mov r15, rdx
and qword [r11 - 0x68], 0
xor sil, sil
mov byte [rsp + 0xa0], sil
test ecx, ecx
je 0x140001f39
lea rax, [rdx - 1]
movabs rdx, 0x7ffffffffffe
cmp rax, rdx
ja 0x140001f39
test r8d, r8d
je 0x140001f39
test rbx, rbx
je 0x140001f39
mov ecx, ecx
lea rdx, [r11 - 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001fe1
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001fe1
cmp qword [rsp + 0x30], 0
je 0x140001fe1
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 + 0x38], rax
test rax, rax
je 0x140001f39
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140001f57
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, 0xc0000001
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x30]
cmp rax, rcx
je 0x140001f7d
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov sil, 1
mov byte [rsp + 0xa0], sil
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001fa8
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.140003640
mov cl, 2
call qword [sym.imp.ntoskrnl.exe_KfRaiseIrql]
mov cl, al
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
jmp 0x140001fbc
test sil, sil
je 0x140001fcc
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
xor eax, eax
jmp 0x140001f3e

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x70
movsxd rcx, ecx
lea rdx, [rax - 0x58]
mov ebp, r9d
mov esi, 0xc0000001
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400021d5
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdi, qword gs:[0x188]
lea rcx, [rsp + 0x90]
mov eax, dword [0x140005048]
lea r8, [rsp + 0xa0]
add rdi, rax
mov qword [rsp + 0x20], rcx
mov r9d, ebp
lea rdx, [rsp + 0x98]
or rcx, 0xffffffffffffffff
mov bl, byte [rdi]
mov byte [rdi], 0
mov rax, qword [0x140005050]
call qword [0x140004218]
lea rcx, [rsp + 0x38]
mov byte [rdi], bl
mov esi, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0xa8]
mov eax, esi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret