joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1a604
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
and qword [rax + 0x10], 0
lea rdx, [rax + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x1a689
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1a689
lea rax, [rsp + 0x98]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [0x00042018]
mov byte [rsp + 0x28], 0
mov rdx, qword [rax]
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
test eax, eax
mov ebx, eax
cmovns rdi, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1a691
mov rdi, qword [rsp + 0x88]
test ebx, ebx
js 0x1a70f
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and dword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x90]
xor edx, edx
mov dword [rsp + 0x40], 0x30
call qword [sym.imp.ntoskrnl.exe_ZwCreateJobObject]
mov ebx, eax
test eax, eax
js 0x1a70f
mov rcx, qword [rsp + 0x90]
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwAssignProcessToJobObject]
mov rcx, qword [rsp + 0x90]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwTerminateJobObject]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x1a874
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov edx, 8
mov rcx, rbx
call fcn.0001a7f4
test eax, eax
jne 0x1a8a3
xor eax, eax
jmp 0x1a91f
mov ebp, 4
mov rcx, rdi
mov edx, ebp
call fcn.0001a7f4
test eax, eax
je 0x1a89f
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x1a89f
lea rcx, [rdi + 0x3c]
mov edx, ebp
call fcn.0001a7f4
test eax, eax
je 0x1a89f
movsxd rsi, dword [rdi + 0x3c]
mov edx, ebp
add rsi, rdi
mov rcx, rsi
call fcn.0001a7f4
test eax, eax
je 0x1a89f
cmp dword [rsi], 0x4550
jne 0x1a89f
lea rcx, [rsi + 8]
mov edx, ebp
call fcn.0001a7f4
test eax, eax
je 0x1a89f
lea rcx, [rsi + 0x58]
mov edx, ebp
call fcn.0001a7f4
test eax, eax
je 0x1a89f
mov ecx, dword [rsi + 8]
test rbx, rbx
je 0x1a91a
mov eax, dword [rsi + 0x58]
mov dword [rbx], ecx
mov dword [rbx + 4], eax
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1a93c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov ebp, 4
mov rsi, rcx
mov edx, ebp
call fcn.0001a7f4
test eax, eax
je 0x1aa36
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x1aa36
lea rcx, [rsi + 0x3c]
mov edx, ebp
call fcn.0001a7f4
test eax, eax
je 0x1aa36
movsxd rdi, dword [rsi + 0x3c]
mov edx, ebp
add rdi, rsi
mov rcx, rdi
call fcn.0001a7f4
test eax, eax
je 0x1aa36
cmp dword [rdi], 0x4550
jne 0x1aa36
lea rcx, [rdi + 8]
mov edx, ebp
call fcn.0001a7f4
test eax, eax
je 0x1aa36
lea rcx, [rdi + 0x58]
mov edx, ebp
call fcn.0001a7f4
test eax, eax
je 0x1aa36
mov ecx, dword [rdi + 8]
mov edx, dword [rdi + 0x58]
test rbx, rbx
je 0x1a9df
mov dword [rbx + 0xc], edx
mov dword [rbx + 8], ecx
mov rax, qword [0x00063ba8]
lea r8, [0x00063ba8]
cmp rax, r8
je 0x1aa01
cmp edx, dword [rax + 0x14]
jne 0x1a9fc
cmp ecx, dword [rax + 0x10]
je 0x1aa2f
mov rax, qword [rax]
jmp 0x1a9ed
cmp dword [0x000620e0], 0
je 0x1aa36
mov rax, qword [0x00063bc0]
lea r8, [0x00063bc0]
cmp rax, r8
je 0x1aa36
cmp edx, dword [rax + 0x14]
jne 0x1aa27
cmp ecx, dword [rax + 0x10]
je 0x1aa36
mov rax, qword [rax]
cmp rax, r8
jne 0x1aa1d
mov eax, 1
jmp 0x1aa38
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1bde4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rdi
push r12
sub rsp, 0x90
mov rax, qword [0x0004b108]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x0006a668]
xor ebx, ebx
mov dword [rsp + 0x40], 0x30
and qword [r11 - 0x60], rbx
mov dword [rsp + 0x58], 0x40
and qword [r11 - 0x48], rbx
and qword [r11 - 0x40], rbx
xor edi, edi
mov r12, r8
mov rbp, rdx
mov qword [r11 - 0x58], rcx
lea r8, [r11 - 0x68]
mov edx, 0x20019
lea rcx, [r11 - 0x70]
test rax, rax
je 0x1be4f
call rax
jmp 0x1be55
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x1be60
xor eax, eax
jmp 0x1bf8d
mov rax, qword [0x0006a678]
lea r9, [rsp + 0x70]
mov r8d, 2
mov rdx, rbp
test rax, rax
je 0x1be95
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0x10
call rax
jmp 0x1beb2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x1bec8
cmp eax, 0x80000005
je 0x1bec8
cmp eax, 0xc0000023
jne 0x1bf6f
mov edx, dword [rsp + 0x30]
xor ecx, ecx
mov r8d, 0x57445247
add edx, 0x10
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1bf6f
mov ecx, dword [rsp + 0x30]
mov rax, qword [0x0006a678]
mov r9, rbx
add ecx, 0x10
mov r8d, 2
test rax, rax
je 0x1bf1f
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
call rax
jmp 0x1bf3b
lea rax, [rsp + 0x30]
mov rdx, rbp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x1bf6f
mov edx, dword [rsp + 0x30]
xor ecx, ecx
mov r8d, 0x57445247
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1bf6f
mov ecx, dword [rbx + 8]
lea rdx, [rbx + 0xc]
mov dword [r12], ecx
mov r8, rcx
mov rcx, rax
call fcn.00040300
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test rbx, rbx
je 0x1bf8a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.00040240
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r12
pop rdi
pop rbp
ret
Function at 0x1bfb8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rax, qword [0x0006a668]
xor ebx, ebx
mov dword [rsp + 0x30], 0x30
mov qword [r11 - 0x40], rbx
mov dword [rsp + 0x48], 0x40
mov rbp, r8
mov r12, rdx
mov qword [r11 - 0x38], rcx
mov edi, r9d
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rbx
lea r8, [r11 - 0x48]
mov edx, 0x20019
lea rcx, [r11 + 8]
cmp rax, rbx
je 0x1c013
call rax
jmp 0x1c019
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x1c07d
mov rax, qword [0x0006a680]
mov rsi, qword [rsp + 0x80]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov r9d, 3
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbp
cmp rax, rbx
je 0x1c04d
call rax
jmp 0x1c053
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
cmp eax, ebx
mov edi, eax
jl 0x1c06a
mov rax, cr8
cmp al, bl
jne 0x1c06a
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, ebx
setge bl
lea r11, [rsp + 0x60]
movzx eax, bl
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x1e000
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x0004b108]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, r8
xor r8d, r8d
cmp rcx, r8
je 0x1e08f
cmp rbx, r8
je 0x1e08f
cmp edx, r8d
mov dword [rsp + 0x34], r8d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x38], 0x67452301
mov dword [rsp + 0x3c], 0xefcdab89
mov dword [rsp + 0x40], 0x98badcfe
mov dword [rsp + 0x44], 0x10325476
jle 0x1e07b
mov eax, edx
mov r9d, edx
shl eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.0001de14
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.0001def8
mov eax, 1
jmp 0x1e091
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.00040240
add rsp, 0xa0
pop rbx
ret
Function at 0x1e0b0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0xc0
xor r13d, r13d
xor eax, eax
mov rbx, rcx
mov r12, rdx
mov dword [r11 - 0x78], r13d
mov dword [rsp + 0x64], eax
lea r8d, [r13 + 0x28]
lea rcx, [r11 - 0x48]
xor edx, edx
mov qword [r11 + 8], r13
mov qword [r11 - 0x70], rax
mov dword [r11 - 0x50], r13d
call fcn.000407c0
lea r8d, [r13 + 0x14]
lea rcx, [rsp + 0x74]
xor edx, edx
mov rdi, r13
mov dword [rsp + 0x70], r13d
call fcn.000407c0
mov esi, r13d
cmp rbx, r13
je 0x1e284
cmp r12, r13
je 0x1e284
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], 0x60
lea eax, [r13 + 1]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x88]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xe0]
mov edx, 0x80100000
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x90], r13
mov dword [rsp + 0xa0], 0x240
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb0], r13
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, r13d
jl 0x1e284
mov rcx, qword [rsp + 0xe0]
lea r9d, [r13 + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, r13d
jne 0x1e25d
mov ebx, dword [rsp + 0x78]
cmp ebx, r13d
je 0x1e25d
cmp dword [rsp + 0x7c], r13d
jne 0x1e25d
cmp ebx, 0x4000000
ja 0x1e25d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
cmp rax, r13
je 0x1e25d
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.000407c0
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, r13d
jne 0x1e25d
lea r9d, [r13 + 0x10]
mov r8, r12
mov edx, ebx
mov rcx, rdi
call fcn.0001e000
mov esi, eax
mov rcx, qword [rsp + 0xe0]
cmp rcx, r13
je 0x1e270
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp rdi, r13
je 0x1e280
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x1e286
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1e2ac
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0xc0
xor r13d, r13d
xor eax, eax
mov rbx, rcx
mov r12, rdx
mov dword [r11 - 0x78], r13d
mov dword [rsp + 0x64], eax
lea r8d, [r13 + 0x28]
lea rcx, [r11 - 0x48]
xor edx, edx
mov qword [r11 + 8], r13
mov qword [r11 - 0x70], rax
mov dword [r11 - 0x50], r13d
call fcn.000407c0
lea r8d, [r13 + 0x14]
lea rcx, [rsp + 0x74]
xor edx, edx
mov rdi, r13
mov dword [rsp + 0x70], r13d
call fcn.000407c0
mov esi, r13d
cmp rbx, r13
je 0x1e480
cmp r12, r13
je 0x1e480
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], 0x60
lea eax, [r13 + 1]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x88]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xe0]
mov edx, 0x80100000
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x90], r13
mov dword [rsp + 0xa0], 0x240
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb0], r13
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, r13d
jl 0x1e480
mov rcx, qword [rsp + 0xe0]
lea r9d, [r13 + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, r13d
jne 0x1e459
mov ebx, dword [rsp + 0x78]
cmp ebx, r13d
je 0x1e459
cmp dword [rsp + 0x7c], r13d
jne 0x1e459
cmp ebx, 0x8000000
ja 0x1e459
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
cmp rax, r13
je 0x1e459
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.000407c0
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, r13d
jne 0x1e459
lea r9d, [r13 + 0x10]
mov r8, r12
mov edx, ebx
mov rcx, rdi
call fcn.0001e000
mov esi, eax
mov rcx, qword [rsp + 0xe0]
cmp rcx, r13
je 0x1e46c
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp rdi, r13
je 0x1e47c
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x1e482
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1e4a8
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xe0
xor edi, edi
mov rbx, rcx
mov r14, rdx
lea rcx, [rax - 0x74]
lea r8d, [rdi + 0x14]
xor edx, edx
mov r13d, edi
mov rsi, rdi
mov dword [rax - 0x78], edi
call fcn.000407c0
mov rax, qword [0x00042018]
lea r11, [rsp + 0x70]
mov rdx, qword [rax]
mov qword [rsp + 0x30], r11
mov byte [rsp + 0x28], dil
mov qword [rsp + 0x20], rdx
mov r9d, 0x1f0fff
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
cmp eax, edi
jge 0x1e51f
xor eax, eax
jmp 0x1e71a
mov ebx, 0x1000
mov ecx, 1
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbp, rax
cmp rax, rdi
jne 0x1e547
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1e518
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.000407c0
mov rcx, qword [rsp + 0x70]
lea r11, [rsp + 0x128]
mov r9d, ebx
mov r8, rbp
mov edx, 0x1b
mov qword [rsp + 0x20], r11
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov rcx, qword [rsp + 0x70]
cmp eax, edi
jge 0x1e58b
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1e70d
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa8]
lea rcx, [rsp + 0x78]
mov edx, 0x80100000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0xa8], 0x30
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0xb0], rdi
mov dword [rsp + 0xc0], 0x240
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xd0], rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
cmp eax, edi
jl 0x1e70a
mov rcx, qword [rsp + 0x78]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, edi
jne 0x1e6ef
mov ebx, dword [rsp + 0x98]
cmp ebx, edi
je 0x1e6ef
cmp dword [rsp + 0x9c], edi
jne 0x1e6ef
cmp ebx, 0x4000000
ja 0x1e6ef
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
cmp rax, rdi
je 0x1e6ef
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.000407c0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, edi
jne 0x1e6ef
mov r9d, 0x10
mov r8, r14
mov edx, ebx
mov rcx, rsi
call fcn.0001e000
mov r13d, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp rsi, rdi
je 0x1e70a
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edi, r13d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1ea40
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
lea rdx, [rax - 0x18]
xor ebx, ebx
mov qword [rax - 0x18], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jge 0x1ea6e
xor eax, eax
jmp 0x1eb5d
lea rax, [rsp + 0x48]
mov r9d, 0x1f0fff
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [0x00042018]
mov byte [rsp + 0x28], bl
mov rcx, qword [rax]
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov rcx, qword [rsp + 0x40]
cmp eax, ebx
jge 0x1eab7
cmp rcx, rbx
je 0x1ea67
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1ea67
cmp rcx, rbx
je 0x1eac2
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, 0x1000
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
cmp rax, rbx
jne 0x1eae7
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1ea67
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.000407c0
mov rcx, qword [rsp + 0x48]
lea r11, [rsp + 0x78]
mov r9d, 0x1000
mov r8, rdi
mov edx, 0x1b
mov qword [rsp + 0x20], r11
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov rcx, qword [rsp + 0x48]
cmp eax, ebx
jge 0x1eb2b
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1eb50
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0x248
cmp ax, word [rdi]
jbe 0x1eb4b
movzx r8d, word [rdi]
mov rdx, qword [rdi + 8]
mov rcx, rsi
call fcn.00040300
mov ebx, 1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1eb74
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc0
xor r14d, r14d
xor eax, eax
mov rbx, rcx
mov r13, rdx
mov dword [rsp + 0x64], eax
lea rcx, [r11 - 0x58]
lea r8d, [r14 + 0x28]
xor edx, edx
mov dword [rsp + 0x60], r14d
mov r12, r9
mov qword [r11 + 8], r14
mov qword [r11 - 0x80], rax
mov dword [r11 - 0x60], r14d
call fcn.000407c0
lea r8d, [r14 + 0x14]
lea rcx, [rsp + 0x74]
xor edx, edx
mov rdi, r14
mov dword [rsp + 0x70], r14d
call fcn.000407c0
mov ebp, r14d
cmp rbx, r14
je 0x1ed6d
cmp r13, r14
je 0x1ed6d
cmp r12, r14
je 0x1ed6d
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 0x60
lea eax, [r14 + 1]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x88]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xf0]
mov edx, 0x80100000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x90], r14
mov dword [rsp + 0xa0], 0x240
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xb0], r14
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, r14d
jl 0x1ed6d
mov rcx, qword [rsp + 0xf0]
lea r9d, [r14 + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, r14d
jne 0x1ed46
mov ebx, dword [rsp + 0x78]
cmp ebx, r14d
je 0x1ed46
cmp dword [rsp + 0x7c], r14d
jne 0x1ed46
cmp ebx, 0x4000000
ja 0x1ed46
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
cmp rax, r14
je 0x1ed46
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.000407c0
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, r14d
jne 0x1ed46
lea r9d, [r14 + 0x10]
mov r8, r13
mov edx, ebx
mov rcx, rdi
call fcn.0001e000
lea r9d, [r14 + 0x14]
mov r8, r12
mov edx, ebx
mov rcx, rdi
mov ebp, eax
call fcn.0001f540
mov rcx, qword [rsp + 0xf0]
cmp rcx, r14
je 0x1ed59
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp rdi, r14
je 0x1ed69
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebp
jmp 0x1ed6f
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1ed94
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc0
xor r14d, r14d
xor eax, eax
mov rdi, rcx
mov r13, rdx
mov dword [rsp + 0x64], eax
lea rcx, [r11 - 0x58]
lea r8d, [r14 + 0x28]
xor edx, edx
mov dword [rsp + 0x60], r14d
mov r12, r9
mov qword [r11 + 8], r14
mov qword [r11 - 0x80], rax
mov dword [r11 - 0x60], r14d
call fcn.000407c0
lea r8d, [r14 + 0x14]
lea rcx, [rsp + 0x74]
xor edx, edx
mov rbx, r14
mov dword [rsp + 0x70], r14d
call fcn.000407c0
mov ebp, r14d
cmp rdi, r14
je 0x1efa6
cmp r13, r14
je 0x1efa6
cmp r12, r14
je 0x1efa6
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 0x60
lea eax, [r14 + 1]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x88]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xf0]
mov edx, 0x80100000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x90], r14
mov dword [rsp + 0xa0], 0x240
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xb0], r14
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, r14d
jl 0x1efa6
mov rcx, qword [rsp + 0xf0]
lea r9d, [r14 + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, r14d
jne 0x1ef7f
mov edi, dword [rsp + 0x78]
cmp edi, r14d
je 0x1ef7f
cmp dword [rsp + 0x7c], r14d
jne 0x1ef7f
cmp edi, 0x4000000
ja 0x1ef7f
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
cmp rax, r14
je 0x1ef7f
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.000407c0
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, r14d
jne 0x1ef7f
lea r9d, [r14 + 0x10]
mov r8, r13
mov edx, edi
mov rcx, rbx
call fcn.0001e000
lea r9d, [r14 + 0x14]
mov r8, r12
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
add byte [rax - 0x75], cl
xchg esp, eax
and al, 0x18
add dword [rax], eax
add byte [rcx + 0x3b], cl
invalid
mov rcx, qword [rsp + 0xf0]
cmp rcx, r14
je 0x1ef92
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp rbx, r14
je 0x1efa2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebp
jmp 0x1efa8
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret