joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140127274
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 0x1401272a4
xor eax, eax
jmp 0x140127367
mov rbp, rbx
cmp word [rax], si
je 0x1401272c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401272b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401272ac
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.1401259f8
movsxd r14, eax
test eax, eax
jne 0x140127307
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14012729d
mov rcx, r14
call fcn.14011ec7c
mov rdi, rax
test rax, rax
jne 0x140127320
xor ecx, ecx
call fcn.14011ec40
jmp 0x1401272fc
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.1401259f8
test eax, eax
jne 0x140127351
mov rcx, rdi
call fcn.14011ec40
jmp 0x14012735b
xor ecx, ecx
call fcn.14011ec40
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 0x14012d9a8
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.14012058c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14012058c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14012daf8
cmp rax, 0xffffffffffffffff
je 0x14012daf8
xor edi, edi
test rbp, rbp
jle 0x14012daa3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401209dc
mov rbx, rax
test rax, rax
jne 0x14012da30
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14012da99
mov edx, 0x8000
mov ecx, r14d
call fcn.14011b800
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.1401222a0
cmp eax, 0xffffffff
je 0x14012da79
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14012da40
mov edx, r15d
mov ecx, r14d
call fcn.14011b800
jmp 0x14012da99
cmp byte [rsi + 0x38], dil
je 0x14012da90
cmp dword [rsi + 0x34], 5
jne 0x14012da90
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14012da99
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14011ec40
jmp 0x14012db0c
jns 0x14012db0c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14012058c
cmp rax, 0xffffffffffffffff
jne 0x14012dac4
cmp byte [rsi + 0x30], dil
je 0x14012db0c
mov edi, dword [rsi + 0x2c]
jmp 0x14012db0c
mov ecx, r14d
call fcn.140127b4c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14012db0c
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 0x14012db0c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14012db05
mov eax, dword [rsi + 0x2c]
jmp 0x14012db0a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14012058c
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 0x27292cef0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x27292cf60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x272939074]
mov rbx, rcx
test esi, esi
jle 0x27292d090
mov rax, qword [0x272939078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x27292cfab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x27292d035
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x27292cf90
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x27292d0b2
mov rax, qword [0x272939078]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x272939078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x27292d097
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x27292d02e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x27292d040
add dword [0x272939074], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x272939078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x27292d02e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x27292cfb8
mov rax, qword [0x272939078]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x27292d430
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2729390a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x272939080]
test rbx, rbx
je 0x27292d48c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x27292d483
test rsi, rsi
je 0x27292d483
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x27292d468
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x27292d6a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x27292d6b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x27292d6c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x27292d6d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x27292d71d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x27292d714
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x27292d71f
add rax, 0x28
cmp rax, r9
jne 0x27292d700
xor eax, eax
ret

Function at 0x27292d720
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x27292d7b0
mov rdx, qword [0x272936970]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x27292d79e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x27292d79e
cmp word [rax + 0x18], 0x20b
jne 0x27292d79e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x27292d7b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x27292d789
add rbx, 0x28
cmp rbx, rdi
je 0x27292d7b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x27292d780
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x27292d7c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x272936970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x27292d7e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x27292d7e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x27292d7e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x27292d83d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x27292d834
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x27292d7e0
add rax, 0x28
cmp rax, r9
jne 0x27292d820
xor eax, eax
ret

Function at 0x27292d840
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x272936970]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x27292d85f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x27292d868
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x27292d85f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x27292d880
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x272936970]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x27292d8a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x27292d8a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x27292d8a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x27292d8f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x27292d8e7
test rcx, rcx
je 0x27292d8a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x27292d8d8
xor eax, eax
ret

Function at 0x27292d900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x272936970]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x27292d91f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x27292d928
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x27292d940
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x272936970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x27292d960
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x27292d968
ret
cmp word [r8 + 0x18], 0x20b
jne 0x27292d960
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x27292d960
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x27292d9b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x27292d9c0
add rdx, 0x28
cmp r9, rdx
jne 0x27292d9a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x27292d9d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x272936970]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x27292d9f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x27292da00
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x27292d9f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x27292d9f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x27292d9f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x27292da55
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x27292da68
add rdx, 0x28
cmp rdx, r10
jne 0x27292da40
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x27292da77
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x27292da87
mov edx, dword [rax + 0xc]
test edx, edx
je 0x27292da5e
test ecx, ecx
jg 0x27292da70
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400014f0
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rax, [0x140001350]
mov rdi, rcx
mov qword [rcx + 0x70], rax
lea rbx, [0x140005750]
mov qword [rcx + 0x80], rax
lea rdx, [0x140002680]
lea rax, [0x140001370]
mov qword [rcx + 0xe0], rax
lea rax, [0x1400015c0]
mov qword [rcx + 0x68], rax
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x140005760]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
mov r8, rbx
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x1400015b5
lea rdx, [0x1400026a0]
lea rcx, [0x140005740]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, rbx
lea rcx, [0x140005740]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x1400015a8
mov rcx, qword [0x140005760]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x1400015b5
mov rax, qword [rdi + 0x28]
or dword [rax + 0x68], 0x20
call fcn.140001fe0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400015e8
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
and qword [rbp - 0x48], 0
mov rdi, r8
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x50]
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001645
lea rcx, [0x140002700]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x14000169b
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rbp - 0x40]
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140001685
mov rcx, qword [rbp - 0x48]
mov qword [rdi], rcx
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002120
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400016b4
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x80], rsp
mov r14, r8
mov rbx, rdx
mov rsi, rcx
and qword [r11 - 0x78], 0
xorps xmm0, xmm0
movups xmmword [r11 - 0x50], xmm0
movups xmmword [r11 - 0x40], xmm0
movups xmmword [r11 - 0x30], xmm0
and qword [r11 - 0x80], 0
and qword [r11 - 0x70], 0
lea rdx, [0x1400026d0]
lea rcx, [r11 - 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rdi, rax
test rax, rax
jne 0x140001768
lea rdx, [0x140001742]
mov rcx, rsp
call sub.ntoskrnl.exe__local_unwind
nop
nop
xor eax, eax
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140002120
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x60], eax
test eax, eax
jns 0x14000179b
lea rdx, [0x140001794]
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe__local_unwind
nop
nop
mov eax, 0xc0000001
jmp 0x140001744
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
test rbx, rbx
je 0x14000181c
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rbx
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
or rcx, 0xffffffffffffffff
mov rax, rdi
call qword [0x140003168]
mov dword [rsp + 0x60], eax
test eax, eax
js 0x14000181c
mov qword [rsp + 0x78], 0xffffffffdc3cba00
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rdx, [0x140001832]
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe__local_unwind
nop
nop
mov eax, dword [rsp + 0x60]
jmp 0x140001744
Function at 0x14000183c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor edi, edi
lea rdx, [rbp - 0x60]
mov r14, r8
mov qword [rbp - 0x60], rdi
movdqu xmmword [rbp - 0x48], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rbp - 0x60]
mov r15d, eax
test rcx, rcx
jne 0x1400018a4
mov eax, 0xc0000001
jmp 0x140001989
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x60]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
test rbx, rbx
je 0x140001924
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 0x140001979
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x140001911
mov edx, ecx
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x14000191f
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jmp 0x1400018e3
mov edi, dword [rbx + 0x18]
jmp 0x140001979
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 0x140001979
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140001965
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140001975
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jmp 0x14000193b
mov rdi, qword [rbx + 0x30]
lea rcx, [rbp - 0x38]
mov qword [r14], rdi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, r15d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002120
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001c24
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r9
mov esi, r8d
mov rbx, rdx
and qword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r15d, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140001c85
mov eax, 0xc0000001
jmp 0x140001d70
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140001ccc
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001c7b
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov rdi, rax
test rax, rax
jne 0x140001d24
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x140001c7b
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.140002340
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, r15d
jmp 0x140001d70
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140002120
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001d8c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r9
mov esi, r8d
mov rbx, rdx
and qword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r15d, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140001ded
mov eax, 0xc0000001
jmp 0x140001ed8
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140001e34
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001de3
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov rdi, rax
test rax, rax
jne 0x140001e8c
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x140001de3
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.140002340
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, r15d
jmp 0x140001ed8
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140002120
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret