joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180070fe4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18007101b
call fcn.18006a638
mov dword [rax], 0x16
call fcn.18006d3bc
xor eax, eax
jmp 0x1800710a9
mov rdx, r9
mov rcx, r8
call fcn.180070f80
mov rbx, rax
test rax, rax
je 0x1800710a6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180070eac]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x180071093
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18006a5ac
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18007107a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180071089
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.180078f10
jmp 0x1800710a6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800710a3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180075b0c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180075b22
mov al, 1
jmp 0x180075b82
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180075b33
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180075b80
mov ecx, dword [rcx + 0x18]
nop
call fcn.180080404
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180075b80
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180075b80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180075b80
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180075b82
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18007b4c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800b4910]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18007b51f
cmp word [rdx], r13w
jne 0x18007b51f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18007b524
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18007b649
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18007b66a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18007b55d
mov rdx, r9
mov word [rbx], cx
jmp 0x18007b584
cmp r9, r8
jae 0x18007b594
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18007b53e
jmp 0x18007b649
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18007b63e
cmp dword [rsp + 0x80], esi
je 0x18007b63e
lea r8, [0x1800b4910]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18007b616
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18007b5e6
mov word [rbx], r13w
jmp 0x18007b646
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18007b5f3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18007b646
cmp word [rsp + 0x70], r13w
jne 0x18007b623
cmp rbx, r14
je 0x18007b5e0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18007c130
cmp word [rsp + 0x70], r13w
je 0x18007b649
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800b4910]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18007b643
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18007b649
Function at 0x18007fc48
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18007fc78
xor eax, eax
jmp 0x18007fd3b
mov rbp, rbx
cmp word [rax], si
je 0x18007fc9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007fc84
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007fc80
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18007e360
movsxd r14, eax
test eax, eax
jne 0x18007fcdb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007fc71
mov rcx, r14
call fcn.18007a21c
mov rdi, rax
test rax, rax
jne 0x18007fcf4
xor ecx, ecx
call fcn.180078f10
jmp 0x18007fcd0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18007e360
test eax, eax
jne 0x18007fd25
mov rcx, rdi
call fcn.180078f10
jmp 0x18007fd2f
xor ecx, ecx
call fcn.180078f10
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180082ab0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180076010
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180082b51
cmp ebx, dword [rsp + 0x30]
je 0x180082b4a
test esi, esi
je 0x180082b4a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180082b25
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180082b32
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180082b0f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180082b36
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180082b53
mov eax, 1
jmp 0x180082b53
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180087174
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18007c130
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007c130
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800872c4
cmp rax, 0xffffffffffffffff
je 0x1800872c4
xor edi, edi
test rbp, rbp
jle 0x18008726f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800794fc
mov rbx, rax
test rax, rax
jne 0x1800871fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180087265
mov edx, 0x8000
mov ecx, r14d
call fcn.180086ff8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800789a8
cmp eax, 0xffffffff
je 0x180087245
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008720c
mov edx, r15d
mov ecx, r14d
call fcn.180086ff8
jmp 0x180087265
cmp byte [rsi + 0x38], dil
je 0x18008725c
cmp dword [rsi + 0x34], 5
jne 0x18008725c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180087265
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180078f10
jmp 0x1800872d8
jns 0x1800872d8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007c130
cmp rax, 0xffffffffffffffff
jne 0x180087290
cmp byte [rsi + 0x30], dil
je 0x1800872d8
mov edi, dword [rsi + 0x2c]
jmp 0x1800872d8
mov ecx, r14d
call fcn.180080404
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800872d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800872d8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800872d1
mov eax, dword [rsi + 0x2c]
jmp 0x1800872d6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007c130
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800879a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800879c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800879c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400069f0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov ebx, ecx
mov qword [r11 - 0x50], rdx
and qword [r11 - 0x68], 0
and qword [r11 - 0x48], 0
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [r11 - 0x40]
call fcn.1400032c0
and qword [rsp + 0x38], 0
mov ecx, ebx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001073
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001073
mov eax, 0xc0000001
jmp 0x1400010f7
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x40], eax
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1400032c0
mov rcx, qword [rsp + 0x38]
mov qword [rdi], rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400010ea
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140002e80
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x140001704
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400069f0]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor edi, edi
mov ebx, ecx
lea rcx, [rbp - 0x30]
lea r8d, [rdi + 0x28]
xor edx, edx
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x38], rdi
movdqu xmmword [rbp - 0x48], xmm0
call fcn.1400032c0
xor eax, eax
lea rdx, [rbp - 0x60]
mov ecx, ebx
mov word [rbp - 0x58], di
mov qword [rbp - 0x56], rax
mov dword [rbp - 0x4e], eax
mov word [rbp - 0x4a], ax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001774
mov rax, 0xffffffffc0000001
jmp 0x14000185c
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
test rax, rax
setne bl
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
test bl, bl
je 0x1400017f0
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rsi, rax
mov ecx, dword [rax + 0xc]
add rcx, 0xc
mov ebx, dword [rcx]
cmp rbx, rcx
je 0x140001845
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x1400017dd
mov edx, ecx
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x1400017eb
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jmp 0x1400017af
mov edi, dword [rbx + 0x18]
jmp 0x140001845
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140001845
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140001831
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x58]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140001841
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jmp 0x140001807
mov rdi, qword [rbx + 0x30]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002e80
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000187c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1400069f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
mov rdi, rdx
xor edx, edx
mov ebx, r8d
mov r14d, ecx
lea r8d, [rdx + 0x28]
lea rcx, [rsp + 0x30]
mov r15, r9
call fcn.1400032c0
lea rax, [rdi - 0x10001]
movabs rcx, 0x7ffffffefffe
cmp rax, rcx
ja 0x140001917
mov edx, ebx
xor ecx, ecx
mov ebp, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
je 0x140001917
mov r8d, ebx
mov rdx, r15
mov rcx, rax
call fcn.140003000
lea rdx, [rsp + 0x20]
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001936
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002e80
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, rbp
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_MmCreateMdl]
mov rdi, rax
test rax, rax
je 0x1400019a4
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rbx, rax
test rax, rax
je 0x140001996
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.140003000
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
xor ebx, ebx
jmp 0x14000199b
mov ebx, 0xc0000001
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x14000191c

Function at 0x1400019cc
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rbp, rdx
lea rdx, [rax - 0x18]
mov ecx, ecx
mov rdi, r9
mov esi, r8d
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140001a51
and qword [rsp + 0x48], 0
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r8, rax
lea rax, [rsp + 0x48]
mov r9, rdi
mov qword [rsp + 0x30], rax
mov rdx, rbp
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test ebx, ebx
jns 0x140001a51
mov r8d, esi
xor edx, edx
mov rcx, rdi
call fcn.1400032c0
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140001afc
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400069f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov ebx, ecx
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400032c0
mov ecx, ebx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140001b67
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001b67
mov eax, 0xc0000001
jmp 0x140001bc1
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov r8, r14
mov rdx, r15
mov rcx, rsi
call fcn.140003000
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001bb4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002e80
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140002028
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
push r15
mov r11, rdx
mov r8, rcx
test rcx, rcx
je 0x14000210b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000210b
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000210b
mov ecx, 0x20b
cmp word [rax + r8 + 0x18], cx
jne 0x140002084
mov edx, dword [rax + r8 + 0x88]
jmp 0x140002089
mov edx, dword [rax + r8 + 0x78]
add rdx, r8
xor r9d, r9d
mov r14d, dword [rdx + 0x24]
mov ebp, dword [rdx + 0x20]
mov ebx, dword [rdx + 0x1c]
mov r15d, dword [rdx + 0x14]
add r14, r8
add rbp, r8
add rbx, r8
test r15d, r15d
je 0x14000210b
xor ecx, ecx
cmp r11, 0xffff
ja 0x1400020bc
movzx r10d, r9w
jmp 0x1400020cf
cmp r9d, dword [rdx + 0x18]
jae 0x14000210b
mov ecx, dword [rbp + r9*4]
movzx r10d, word [r14 + r9*2]
add rcx, r8
cmp r11, 0xffff
ja 0x1400020e7
movzx ecx, r10w
movzx eax, r11w
add ecx, dword [rdx + 0x10]
cmp eax, ecx
jmp 0x140002101
mov rsi, r11
sub rsi, rcx
movzx eax, byte [rcx]
movzx edi, byte [rcx + rsi]
sub eax, edi
jne 0x1400020ff
inc rcx
test edi, edi
jne 0x1400020ed
test eax, eax
je 0x140002126
inc r9d
cmp r9d, r15d
jb 0x1400020ab
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
movzx eax, r10w
mov eax, dword [rbx + rax*4]
add rax, r8
jmp 0x14000210d
Function at 0x1400024cc
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400069f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
lea rcx, [0x1400035d0]
call sub.ntoskrnl.exe_DbgPrint
test rbx, rbx
je 0x140002527
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140002527
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call fcn.140002970
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002e80
add rsp, 0x60
pop rbx
ret

Function at 0x140002638
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x30], 0
and dword [rbp + 0x28], 0
mov rdi, rcx
lea rcx, [rbp - 0x10]
lea rdx, [0x140003560]
mov qword [rbp + 0x38], 0x1000
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rdx, [rbp - 0x10]
mov rcx, rax
xor r8d, r8d
call fcn.1400021b4
mov rbx, rax
test rax, rax
je 0x140002720
lea rdx, [0x140003580]
mov rcx, rax
call fcn.140002028
mov qword [rbp + 0x30], rax
test rax, rax
je 0x140002720
lea rax, [rbp + 0x28]
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x30]
mov r9d, 0x40
or rcx, 0xffffffffffffffff
mov word [rbp - 0x20], 0xb848
mov qword [rsp + 0x20], rax
mov word [rbp - 0x16], 0xe0ff
mov qword [rbp - 0x1e], rdi
call sub.ntoskrnl.exe_ZwProtectVirtualMemory
lea rdx, [0x140003580]
mov rcx, rbx
test eax, eax
js 0x14000270c
call fcn.140002028
movsd xmm0, qword [rbp - 0x20]
mov ecx, dword [rbp - 0x18]
xor edx, edx
movsd qword [rax], xmm0
mov dword [rax + 8], ecx
mov r8d, dword [0x140006a38]
mov rcx, qword [0x140006a30]
call fcn.1400032c0
mov al, 1
jmp 0x140002722
call fcn.140002028
lea rcx, [0x1400035a0]
mov rdx, rax
call sub.ntoskrnl.exe_DbgPrint
xor al, al
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400027bc
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1400069f0]
xor rax, rsp
mov qword [rbp + 0x37], rax
movups xmm0, xmmword [0x140003430]
mov eax, dword [0x140003458]
movups xmm1, xmmword [0x140003440]
mov dword [rbp + 0x2f], eax
movzx eax, word [0x14000345c]
mov rbx, rcx
mov qword [rbp - 0x59], rdx
lea rcx, [rbp - 0x39]
lea rdx, [rbp + 7]
movups xmmword [rbp + 7], xmm0
movsd xmm0, qword [0x140003450]
movups xmmword [rbp + 0x17], xmm1
xor edi, edi
mov word [rbp + 0x33], ax
mov qword [rbp - 0x51], rdi
movsd qword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x39]
lea r8, [rbp - 0x29]
xorps xmm0, xmm0
lea rcx, [rbp - 0x41]
mov edx, 0xf001f
mov qword [rbp - 0x19], rax
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp - 0x29], 0x30
mov qword [rbp - 0x21], rdi
mov dword [rbp - 0x11], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
test eax, eax
js 0x1400028d5
mov rsi, qword [rbp - 0x41]
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400028d5
mov rdx, qword [rbp - 0x59]
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], 1
lea rax, [rbp - 0x59]
lea r8, [rbp - 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x49]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rcx, rsi
or rdx, 0xffffffffffffffff
mov qword [rbp - 0x49], rbx
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
cmove rdi, qword [rbp - 0x51]
mov rax, rdi
jmp 0x1400028d7
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140002e80
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140008000
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14000802c
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400015b0