joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1a560
Capabilities:
Print debug messages

Disassembly:
test r8, r8
je 0x1a7d7
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x00027100]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, r9
mov r12, r8
movzx r13d, dx
mov edi, ecx
test r9, r9
je 0x1a7ba
lea rax, [0x0002c5a0]
test rax, rax
je 0x1a7ba
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
je 0x1a7ba
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x1a5e3
mov rcx, rsi
jmp 0x1a7b2
mov edx, 1
lea r15d, [rdx + 1]
lea r8d, [rdx + 5]
mov ecx, r15d
call fcn.0001160c
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1a612
lea rcx, [0x00023770]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1a7a4
mov word [rsp + 0x42], r13w
or r13d, 0xffffffff
mov word [rsp + 0x40], r15w
cmp edi, r13d
jne 0x1a635
mov rcx, r12
call fcn.0001ce3c
mov dword [rsp + 0x44], eax
jmp 0x1a639
mov dword [rsp + 0x44], edi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.000111cc
test eax, eax
jns 0x1a682
cmp edi, r13d
je 0x1a672
mov rcx, r12
call fcn.0001ce3c
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x40]
mov rcx, rbp
mov dword [rsp + 0x44], eax
call fcn.000111cc
test eax, eax
jns 0x1a682
lea rcx, [0x00023790]
jmp 0x1a70e
lea r8, [0x0002c5a0]
xor eax, eax
or r13, 0xffffffffffffffff
mov qword [rsp + 0x30], r8
mov rdi, r8
mov rcx, r13
repne scasb al, byte [rdi]
lea r8, [0x000237b0]
mov r9, r14
not rcx
mov edx, 0x1000
dec rcx
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], r12
call sub.ntoskrnl.exe__snprintf
xor eax, eax
mov rcx, r13
mov rdi, rsi
xor r9d, r9d
mov rdx, rsi
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbp
call fcn.000114f4
test eax, eax
jns 0x1a6ef
lea rcx, [0x00023830]
jmp 0x1a70e
xor r9d, r9d
mov r8d, 0x4000
mov rdx, rbx
mov rcx, rbp
call fcn.000113ec
test eax, eax
jns 0x1a738
lea rcx, [0x00023850]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rbp
call fcn.000110ec
jmp 0x1a7ba
mov rcx, rbp
call fcn.000110ec
lea rdx, [0x00023870]
mov r8d, 0xf
mov rcx, rbx
mov byte [rbx + 0x3fff], 0
call qword [sym.imp.ntoskrnl.exe__strnicmp]
test eax, eax
jne 0x1a786
lea rdx, [0x000238d0]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_strstr]
test rax, rax
je 0x1a786
lea rcx, [rbx + 0x4000]
add rax, 0x10
cmp rax, rcx
jb 0x1a7a4
lea rcx, [0x00023880]
mov rdx, rbx
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x000238b0]
mov rdx, rsi
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rbx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.00021d00
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1cbf0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rax, qword [0x00027100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov r12d, 0x4000
xor ecx, ecx
mov rdx, r12
xor edi, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbp, rax
cmp rax, rdi
jne 0x1cc45
mov eax, dword [0x00029dec]
cmp eax, edi
cmovne edi, eax
jmp 0x1ce0d
mov r13d, 0x38
xor ecx, ecx
mov rdx, r13
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
cmp rax, rdi
je 0x1cde5
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.00023330
or qword [rsi + 0x10], 0xffffffffffffffff
mov r13d, 2
mov dword [rsi], r13d
neg rsi
cmp rsi, 0xffffffffffffffff
je 0x1cde5
mov r8, r12
xor edx, edx
mov rcx, rbp
call fcn.00023330
mov rdx, rbx
mov rcx, rbp
call fcn.0001c9fc
mov word [rsp + 0x30], di
mov byte [rsp + 0x30], dil
mov ebx, eax
mov byte [rsp + 0x31], 0x35
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x3a], ax
mov word [rsp + 0x38], r13w
call fcn.0001c8b4
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
mov r13d, 0x10
xor r9d, r9d
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call fcn.0001155c
xor edx, edx
mov rcx, rbp
cmp eax, edi
mov ebx, eax
jge 0x1cd61
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rsi
call fcn.000110ec
mov eax, dword [0x00029dec]
cmp ebx, 0xc0000022
jne 0x1cd43
mov ecx, dword [0x00029de8]
cmp eax, edi
je 0x1cd27
mov edi, eax
jmp 0x1cd36
mov eax, ecx
lea rdi, [0x00028c58]
and eax, 3
mov edi, dword [rdi + rax*4]
inc ecx
mov dword [0x00029de8], ecx
jmp 0x1ce0d
cmp eax, edi
je 0x1cd4e
mov edi, eax
jmp 0x1ce0d
lea rcx, [0x00024180]
mov edx, ebx
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1ce0d
mov r8, r12
mov dword [rsp + 0x30], r13d
call fcn.00023330
lea r11, [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], r11
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.00011474
mov rcx, rbp
cmp eax, edi
mov ebx, eax
jge 0x1cdc1
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rsi
call fcn.000110ec
mov r11d, dword [0x00029dec]
cmp r11d, edi
jne 0x1cdfc
lea rcx, [0x000241a0]
jmp 0x1cd55
mov edx, eax
call fcn.0001cb14
mov ebx, eax
cmp eax, edi
jne 0x1cdd9
mov ecx, dword [0x00029dec]
cmp ecx, edi
cmovne ebx, ecx
mov rcx, rsi
call fcn.000110ec
mov eax, ebx
jmp 0x1ce0f
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r11d, dword [0x00029dec]
cmp r11d, edi
je 0x1ce01
mov edi, r11d
jmp 0x1ce0d
lea rcx, [0x00024160]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.00021d00
lea r11, [rsp + 0x50]
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 0x1ce74
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x80
lea rdx, [0x000234e0]
lea rcx, [rax - 0x48]
mov ebx, 4
mov dword [rax + 8], ebx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r12, [0x0002cbb0]
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov rcx, r12
mov r8d, ebx
mov dword [rsp + 0x20], ebx
call fcn.000128dc
lea rcx, [0x0002bf20]
call fcn.0001e99c
mov r13d, 0x400
xor ebx, ebx
mov rdx, r13
xor ecx, ecx
mov word [rsp + 0x30], bx
mov word [rsp + 0x32], r13w
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x38], rax
cmp rax, rbx
je 0x1d04a
movzx r8d, word [rsp + 0x32]
xor edx, edx
mov rcx, rax
call fcn.00023330
lea rcx, [rsp + 0x30]
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, ebx
jl 0x1cf95
lea rdx, str.Enum
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
cmp eax, ebx
jl 0x1cf95
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x98]
mov edx, 0xf003f
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x1cf95
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x38]
mov r8, r13
xor edx, edx
mov word [rsp + 0x30], bx
mov word [rsp + 0x32], r13w
call fcn.00023330
lea rcx, [rsp + 0x30]
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, ebx
jl 0x1d038
lea rdx, str.Security
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
cmp eax, ebx
jl 0x1d038
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x98]
mov edx, 0xf003f
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x1d038
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x1d04a
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x98]
mov edx, 0xf003f
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x1d0b4
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x1d3d4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xb0
xor ebx, ebx
cmp byte [0x00029df9], 1
mov qword [rax + 0x10], rbx
jne 0x1d5ac
lea rdx, [0x00028030]
lea rcx, [rax - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [0x00028bbc]
lea rax, [0x00028bc0]
mov rdx, qword [rax + rdx*8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, ebx
jl 0x1d5ac
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0xc0]
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x98], 0x200
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp qword [rsp + 0xc8], rbx
je 0x1d5ac
lea rdx, [0x000241d0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xc0], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xc8]
mov ebx, 4
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x000234e0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xc0], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xc8]
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x000241f0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xc0], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xc8]
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0xb0
pop rbx
ret
Function at 0x1e164
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rsi, qword [rcx + 0x40]
mov rdi, qword [rdx + 0xb8]
xor r12d, r12d
mov rbx, rdx
cmp byte [0x00029d5c], r12b
je 0x1e1a9
inc byte [rdx + 0x43]
lea rax, [rdi + 0x48]
mov qword [rdx + 0xb8], rax
jmp 0x1e386
cmp byte [rdi], r12b
jne 0x1e378
mov rcx, qword [rdi + 0x30]
call fcn.0001f29c
cmp al, r12b
jne 0x1e378
mov qword [rsp + 0x28], r12
mov word [rsp + 0x20], r12w
mov word [rsp + 0x22], r12w
mov rbp, qword [rdi + 0x30]
lea rdx, [0x0002c150]
lea rcx, [rsp + 0x30]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlUpcaseUnicodeString]
cmp eax, r12d
jl 0x1e378
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.0001f39c
cmp eax, r12d
jne 0x1e378
lea rdx, [0x0002c160]
lea rcx, [rsp + 0x20]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
mov r13d, 0x400
cmp eax, r12d
jne 0x1e2d9
mov r8d, 0x48524452
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
cmp rax, r12
je 0x1e2d9
mov rcx, qword [rdi + 0x30]
mov rcx, qword [rcx + 0x60]
cmp rcx, r12
je 0x1e268
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rdi + 0x30]
mov r8, r13
xor edx, edx
mov word [rcx + 0x58], r12w
mov rax, qword [rdi + 0x30]
mov word [rax + 0x5a], r13w
mov rax, qword [rdi + 0x30]
mov qword [rax + 0x60], rbp
mov rcx, qword [rdi + 0x30]
mov rcx, qword [rcx + 0x60]
call fcn.00023330
lea rdx, [0x0002bf10]
mov rcx, qword [rdi + 0x30]
add rcx, 0x58
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov rcx, qword [rsp + 0x28]
cmp rcx, r12
je 0x1e2bb
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edi, 0x104
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], edi
mov qword [rbx + 0x38], r12
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
jmp 0x1e390
cmp byte [0x00029df9], r12b
je 0x1e366
lea rdx, [0x0002c170]
lea rcx, [rsp + 0x20]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
cmp eax, r12d
jne 0x1e366
mov r8d, 0x48524452
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
cmp rax, r12
je 0x1e366
mov rcx, qword [rdi + 0x30]
mov rcx, qword [rcx + 0x60]
cmp rcx, r12
je 0x1e32e
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rdi + 0x30]
mov r8, r13
xor edx, edx
mov word [rcx + 0x58], r12w
mov rax, qword [rdi + 0x30]
mov word [rax + 0x5a], r13w
mov rax, qword [rdi + 0x30]
mov qword [rax + 0x60], rbp
mov rcx, qword [rdi + 0x30]
mov rcx, qword [rcx + 0x60]
call fcn.00023330
lea rdx, [0x0002c180]
jmp 0x1e29b
mov rcx, qword [rsp + 0x28]
cmp rcx, r12
je 0x1e378
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc byte [rbx + 0x43]
add qword [rbx + 0xb8], 0x48
mov rdx, rbx
mov rcx, qword [rsi + 8]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x1e530
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xe0
mov ebx, 0x40000
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edi, edi
mov qword [0x00029e00], rax
cmp rax, rdi
je 0x1e712
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.00023330
mov rcx, qword [0x00029e08]
lea rax, [0x0002bf20]
mov dword [rsp + 0xa8], 0x30
mov qword [rsp + 0xb0], rdi
mov dword [rsp + 0xc0], 0x40
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xd0], rdi
mov rbx, qword [rcx + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rbx + 0x10], rax
cmp rax, rdi
jne 0x1e5cb
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
mov ebx, 1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x800
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], ebx
mov dword [rsp + 0x30], ebx
lea r8, [rsp + 0xa8]
lea rcx, [rsp + 0xf0]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
cmp eax, edi
jge 0x1e657
mov rcx, qword [0x00029e00]
cmp rcx, rdi
je 0x1e64b
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x00029e00], rdi
jmp 0x1e712
mov rcx, qword [rsp + 0xf0]
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
jl 0x1e637
mov rcx, qword [rsp + 0xf0]
xor r8d, r8d
mov dl, bl
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov r11, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xf8]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov rax, qword [0x00029e00]
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov dword [0x00029dfc], r11d
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, edi
jl 0x1e637
mov rcx, qword [rsp + 0xf0]
xor r8d, r8d
mov dl, bl
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret
Function at 0x1e72c
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
call fcn.0001e3b0
mov rcx, rbx
mov rsi, rax
call fcn.0001d0d0
test rsi, rsi
je 0x1e985
mov rcx, rbx
call fcn.0001da58
test eax, eax
js 0x1e985
cmp byte [0x00029df9], 0
je 0x1e782
mov ecx, 1
call fcn.0001d184
mov rcx, rax
call fcn.0001ddb4
mov edx, 0xe0
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x1e8b7
xor edx, edx
mov r8d, 0xe0
mov rcx, rax
call fcn.00023330
lea rax, [0x00020004]
mov dword [rdi], 0xe0
mov qword [rdi + 8], rax
lea rax, [0x000200d4]
mov qword [rdi + 0x10], rax
lea rax, [0x000201a4]
mov qword [rdi + 0x18], rax
lea rax, [0x00020274]
mov qword [rdi + 0x20], rax
lea rax, [0x00020324]
mov qword [rdi + 0x28], rax
lea rax, [0x000203d4]
mov qword [rdi + 0x30], rax
lea rax, [0x000204bc]
mov qword [rdi + 0x38], rax
lea rax, [0x00020580]
mov qword [rdi + 0x40], rax
lea rax, [0x0002061c]
mov qword [rdi + 0x48], rax
lea rax, [0x000206cc]
mov qword [rdi + 0x50], rax
lea rax, [0x000207b8]
mov qword [rdi + 0x68], rax
lea rax, [0x000207f0]
mov qword [rdi + 0x70], rax
lea rax, [0x000208a0]
mov qword [rdi + 0x80], rax
lea rax, [0x0002096c]
mov qword [rdi + 0x88], rax
lea rax, [0x000209f8]
mov qword [rdi + 0x90], rax
lea rax, [0x00020ac4]
mov qword [rdi + 0x98], rax
lea rax, [0x00020b60]
mov qword [rdi + 0xa0], rax
lea rax, [0x00020c68]
mov qword [rdi + 0xa8], rax
lea rax, [0x00020d70]
mov qword [rdi + 0xb0], rax
lea rax, [0x00020dfc]
mov qword [rdi + 0xb8], rax
lea rax, [0x00020e98]
mov qword [rdi + 0xc0], rax
mov qword [rbx + 0x50], rdi
mov r9d, dword [rsi + 0x48]
xor r8d, r8d
lea rax, [0x00029e08]
mov qword [rsp + 0x30], rax
lea edx, [r8 + 0x18]
mov rcx, rbx
mov byte [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x1e985
mov rax, qword [0x00029e08]
mov rdx, rsi
mov rdi, qword [rax + 0x40]
and qword [rdi + 0x10], 0
lea r8, [rdi + 8]
mov qword [rdi], rbx
and qword [r8], 0
mov rcx, qword [0x00029e08]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStackSafe]
mov rcx, qword [0x00029e08]
test eax, eax
jns 0x1e92f
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
and qword [0x00029e08], 0
jmp 0x1e985
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1e985
call fcn.0001e530
cmp byte [0x00029df9], 0
je 0x1e97b
lea rdx, [0x0002c140]
lea rcx, [0x0002bf20]
call fcn.0001d5bc
test eax, eax
js 0x1e96a
call fcn.0001ce74
jmp 0x1e97b
mov ecx, 4
call fcn.0001d184
mov byte [0x00029df9], 0
call fcn.0001f6dc
call fcn.0001fcc0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1e99c
Capabilities:
Delete file
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xc0
mov rbx, qword [0x00029e08]
and qword [rax + 0x18], 0
test rbx, rbx
je 0x1eb03
mov rbx, qword [rbx + 0x40]
and qword [rax + 0x20], 0
lea rdi, [0x0002bf20]
lea r9, [0x0002bf40]
lea rdx, [rax + 0x20]
mov rcx, rdi
mov r8d, 0x200
call fcn.0001eb20
mov rcx, qword [0x00029e08]
and qword [rsp + 0x98], 0
and qword [rsp + 0xb0], 0
and qword [rsp + 0xb8], 0
mov dword [rsp + 0x90], 0x30
mov dword [rsp + 0xa8], 0x40
mov qword [rsp + 0xa0], rdi
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1ea40
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
mov ebx, 1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x800
and qword [rsp + 0x60], 0
and dword [rsp + 0x58], 0
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x1060
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 4
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0xe0]
mov edx, 0x10000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
test eax, eax
js 0x1eaf3
mov rcx, qword [rsp + 0xe0]
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0x80]
mov r9d, ebx
mov byte [rsp + 0xd8], bl
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
jmp 0x1eb08
mov eax, 0xc000000e
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1eb20
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xf0
and qword [r11 + 8], 0
mov rax, rcx
mov rcx, qword [0x00029e08]
mov rbx, qword [rcx + 0x40]
and qword [r11 - 0x38], 0
and qword [r11 - 0x20], 0
and qword [r11 - 0x18], 0
mov dword [r11 - 0x40], 0x30
mov dword [r11 - 0x28], 0x40
mov qword [r11 - 0x30], rax
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1eb8d
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x800
and qword [rsp + 0x60], 0
and dword [rsp + 0x58], 0
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 3
lea rcx, [rsp + 0x100]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 6
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov ebx, eax
test eax, eax
js 0x1ed15
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], esi
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_ZwWriteFile]
mov rcx, qword [rsp + 0x100]
xor r8d, r8d
mov dl, 1
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x100]
lea rdx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwFlushBuffersFile]
mov rcx, qword [rsp + 0x100]
mov edi, 4
lea esi, [rdi + 0x24]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp dword [rsp + 0x80], 0
jl 0x1ed07
mov ecx, 0x1c95a06
mov eax, 0xfa2b0929
lea r8, [rsp + 0x90]
mov dword [rsp + 0xa4], ecx
mov dword [rsp + 0x94], ecx
mov dword [rsp + 0xac], ecx
mov dword [rsp + 0x9c], ecx
mov rcx, qword [rsp + 0x100]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret