joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1477c
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
movabs rax, 0xfffff78000000014
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rcx, [rsp + 0x30]
call fcn.0001450c
movzx eax, byte [rsp + 0x34]
movzx r11d, byte [rsp + 0x35]
add r11d, eax
movzx eax, byte [rsp + 0x33]
lea rcx, [0x000290e0]
add r11d, eax
movzx eax, byte [rsp + 0x32]
add eax, dword [rsp + 0x38]
add eax, r11d
mov dword [rsp + 0x38], eax
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jne 0x147fe
cmp dword [0x000290e4], 6
jb 0x147fe
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_srand]
call qword [sym.imp.ntoskrnl.exe_rand]
jmp 0x1482c
mov eax, dword [rsp + 0x38]
mov ecx, 0x3039
test eax, eax
jne 0x14819
mov eax, dword [0x00026268]
imul eax, eax, 0x41c64e6d
add eax, ecx
imul eax, eax, 0x3e39b193
sub ecx, eax
shr ecx, 0x10
and ecx, 0x7fff
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14838
Capabilities:
Create device object

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
and qword [rax + 0x10], 0
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
mov rdi, rcx
lea rdx, [0x000211c0]
lea rcx, [rax - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x40]
mov edx, 0x80
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
mov ebx, eax
test eax, eax
jns 0x148a5
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1489e
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x14983
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x78]
xor r8d, r8d
mov r9d, dword [rcx + 0x48]
mov qword [rsp + 0x30], rax
mov eax, dword [rcx + 0x34]
lea edx, [r8 + 0x28]
mov rcx, rdi
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
jns 0x148f0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14981
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov rsi, rax
test rax, rax
jne 0x1491d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
and qword [rsp + 0x78], rsi
jmp 0x148dd
mov rax, qword [rsp + 0x78]
xor edx, edx
mov rbx, qword [rax + 0x40]
lea r8d, [rdx + 0x28]
mov rcx, rbx
call fcn.00021090
mov dword [rbx], 0x28
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x20], rax
mov rax, qword [rsp + 0x88]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov ecx, dword [rax + 0x30]
and ecx, 0x14
or dword [rdx + 0x30], ecx
mov rax, qword [rsp + 0x78]
mov qword [0x000262a0], rax
mov eax, edi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x19ef4
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
or qword [r11 - 0x48], 0xffffffffffffffff
lea rax, [r11 - 0x40]
mov r12, r9
mov qword [r11 - 0x70], rax
lea rax, [r11 - 0x38]
mov r13, r8
movzx r14d, dx
mov r15d, ecx
mov qword [r11 - 0x78], rax
call fcn.00019288
mov esi, eax
test eax, eax
js 0x1a04e
mov rbx, qword [rsp + 0x58]
mov ecx, ebx
shr ecx, 0xc
inc ecx
shl ecx, 0xc
mov ebp, ecx
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x1a04e
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.00021090
and qword [rsp + 0x58], 0
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov r9, r13
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
movzx r8d, r14w
mov edx, r15d
mov qword [rsp + 0x20], r12
call fcn.00019530
mov rcx, qword [rsp + 0x50]
mov esi, eax
cmp rcx, 0xffffffffffffffff
je 0x19fc3
call fcn.000110ec
test esi, esi
js 0x1a043
or r8d, 0xffffffff
test ebx, ebx
je 0x19ffc
mov r9, rdi
mov r10d, ebx
movzx ecx, byte [r9]
mov eax, r8d
inc r9
xor rcx, rax
shr eax, 8
movzx edx, cl
lea rcx, [0x00028680]
mov r8d, dword [rcx + rdx*4]
xor r8d, eax
sub r10, 1
jne 0x19fd5
not r8d
cmp dword [rsp + 0xc0], r8d
je 0x1a01b
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000001
jmp 0x1a050
cmp byte [rdi], 0x4d
jne 0x1a026
cmp byte [rdi + 1], 0x5a
je 0x1a037
mov edx, ebx
shr edx, 3
test edx, edx
je 0x1a037
mov rcx, rdi
call fcn.00015614
mov edx, ebx
mov rcx, rdi
call fcn.0001cd24
mov esi, eax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1ada4
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 [0x00024100]
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 0x1adf9
mov eax, dword [0x000262e4]
cmp eax, edi
cmovne edi, eax
jmp 0x1afc1
mov r13d, 0x38
xor ecx, ecx
mov rdx, r13
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
cmp rax, rdi
je 0x1af99
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.00021090
or qword [rsi + 0x10], 0xffffffffffffffff
mov r13d, 2
mov dword [rsi], r13d
neg rsi
cmp rsi, 0xffffffffffffffff
je 0x1af99
mov r8, r12
xor edx, edx
mov rcx, rbp
call fcn.00021090
mov rdx, rbx
mov rcx, rbp
call fcn.0001abb0
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.0001aa68
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 0x1af15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rsi
call fcn.000110ec
mov eax, dword [0x000262e4]
cmp ebx, 0xc0000022
jne 0x1aef7
mov ecx, dword [0x000262e0]
cmp eax, edi
je 0x1aedb
mov edi, eax
jmp 0x1aeea
mov eax, ecx
lea rdi, [0x00025b90]
and eax, 3
mov edi, dword [rdi + rax*4]
inc ecx
mov dword [0x000262e0], ecx
jmp 0x1afc1
cmp eax, edi
je 0x1af02
mov edi, eax
jmp 0x1afc1
lea rcx, [0x00021820]
mov edx, ebx
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1afc1
mov r8, r12
mov dword [rsp + 0x30], r13d
call fcn.00021090
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 0x1af75
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rsi
call fcn.000110ec
mov r11d, dword [0x000262e4]
cmp r11d, edi
jne 0x1afb0
lea rcx, [0x00021840]
jmp 0x1af09
mov edx, eax
call fcn.0001acc8
mov ebx, eax
cmp eax, edi
jne 0x1af8d
mov ecx, dword [0x000262e4]
cmp ecx, edi
cmovne ebx, ecx
mov rcx, rsi
call fcn.000110ec
mov eax, ebx
jmp 0x1afc3
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r11d, dword [0x000262e4]
cmp r11d, edi
je 0x1afb5
mov edi, r11d
jmp 0x1afc1
lea rcx, [0x00021800]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.0001fa60
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 0x1b028
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, [0x00021240]
lea rcx, [rax - 0x48]
mov ebx, 4
mov dword [rax + 8], ebx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r12, [0x00028a90]
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov rcx, r12
mov r8d, ebx
mov dword [rsp + 0x20], ebx
call fcn.000128dc
lea rcx, [0x00028400]
call fcn.0001c988
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 0x1b1fe
movzx r8d, word [rsp + 0x32]
xor edx, edx
mov rcx, rax
call fcn.00021090
lea rcx, [rsp + 0x30]
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, ebx
jl 0x1b149
lea rdx, str.Enum
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
cmp eax, ebx
jl 0x1b149
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 0x1b149
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.00021090
lea rcx, [rsp + 0x30]
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, ebx
jl 0x1b1ec
lea rdx, str.Security
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
cmp eax, ebx
jl 0x1b1ec
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 0x1b1ec
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 0x1b1fe
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 0x1b268
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 0x1c150
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 [0x0002625c], r12b
je 0x1c195
inc byte [rdx + 0x43]
lea rax, [rdi + 0x48]
mov qword [rdx + 0xb8], rax
jmp 0x1c372
cmp byte [rdi], r12b
jne 0x1c364
mov rcx, qword [rdi + 0x30]
call fcn.0001d078
cmp al, r12b
jne 0x1c364
mov qword [rsp + 0x28], r12
mov word [rsp + 0x20], r12w
mov word [rsp + 0x22], r12w
mov rbp, qword [rdi + 0x30]
lea rdx, [0x00028630]
lea rcx, [rsp + 0x30]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlUpcaseUnicodeString]
cmp eax, r12d
jl 0x1c364
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.0001d178
cmp eax, r12d
jne 0x1c364
lea rdx, [0x00028640]
lea rcx, [rsp + 0x20]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
mov r13d, 0x400
cmp eax, r12d
jne 0x1c2c5
mov r8d, 0x48524452
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
cmp rax, r12
je 0x1c2c5
mov rcx, qword [rdi + 0x30]
mov rcx, qword [rcx + 0x60]
cmp rcx, r12
je 0x1c254
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.00021090
lea rdx, [0x000283f0]
mov rcx, qword [rdi + 0x30]
add rcx, 0x58
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov rcx, qword [rsp + 0x28]
cmp rcx, r12
je 0x1c2a7
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 0x1c37c
cmp byte [0x0002625f], r12b
je 0x1c352
lea rdx, [0x00028650]
lea rcx, [rsp + 0x20]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
cmp eax, r12d
jne 0x1c352
mov r8d, 0x48524452
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
cmp rax, r12
je 0x1c352
mov rcx, qword [rdi + 0x30]
mov rcx, qword [rcx + 0x60]
cmp rcx, r12
je 0x1c31a
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.00021090
lea rdx, [0x00028660]
jmp 0x1c287
mov rcx, qword [rsp + 0x28]
cmp rcx, r12
je 0x1c364
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 0x1c51c
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 [0x000262f0], rax
cmp rax, rdi
je 0x1c6fe
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.00021090
mov rcx, qword [0x00026300]
lea rax, [0x00028400]
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 0x1c5b7
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 0x1c643
mov rcx, qword [0x000262f0]
cmp rcx, rdi
je 0x1c637
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x000262f0], rdi
jmp 0x1c6fe
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 0x1c623
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 [0x000262f0]
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov dword [0x000262f8], r11d
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, edi
jl 0x1c623
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 0x1c718
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.0001c39c
mov rcx, rbx
mov rsi, rax
call fcn.0001b284
test rsi, rsi
je 0x1c971
mov rcx, rbx
call fcn.0001ba44
test eax, eax
js 0x1c971
cmp byte [0x0002625f], 0
je 0x1c76e
mov ecx, 1
call fcn.0001b338
mov rcx, rax
call fcn.0001bda0
mov edx, 0xe0
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x1c8a3
xor edx, edx
mov r8d, 0xe0
mov rcx, rax
call fcn.00021090
lea rax, [0x0001dde0]
mov dword [rdi], 0xe0
mov qword [rdi + 8], rax
lea rax, [0x0001deb0]
mov qword [rdi + 0x10], rax
lea rax, [0x0001df80]
mov qword [rdi + 0x18], rax
lea rax, [0x0001e050]
mov qword [rdi + 0x20], rax
lea rax, [0x0001e100]
mov qword [rdi + 0x28], rax
lea rax, [0x0001e1b0]
mov qword [rdi + 0x30], rax
lea rax, [0x0001e298]
mov qword [rdi + 0x38], rax
lea rax, [0x0001e35c]
mov qword [rdi + 0x40], rax
lea rax, [0x0001e3f8]
mov qword [rdi + 0x48], rax
lea rax, [0x0001e4a8]
mov qword [rdi + 0x50], rax
lea rax, [0x0001e594]
mov qword [rdi + 0x68], rax
lea rax, [0x0001e5cc]
mov qword [rdi + 0x70], rax
lea rax, [0x0001e67c]
mov qword [rdi + 0x80], rax
lea rax, [0x0001e748]
mov qword [rdi + 0x88], rax
lea rax, [0x0001e7d4]
mov qword [rdi + 0x90], rax
lea rax, [0x0001e8a0]
mov qword [rdi + 0x98], rax
lea rax, [0x0001e93c]
mov qword [rdi + 0xa0], rax
lea rax, [0x0001ea44]
mov qword [rdi + 0xa8], rax
lea rax, [0x0001eb4c]
mov qword [rdi + 0xb0], rax
lea rax, [0x0001ebd8]
mov qword [rdi + 0xb8], rax
lea rax, [0x0001ec74]
mov qword [rdi + 0xc0], rax
mov qword [rbx + 0x50], rdi
mov r9d, dword [rsi + 0x48]
xor r8d, r8d
lea rax, [0x00026300]
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 0x1c971
mov rax, qword [0x00026300]
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 [0x00026300]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStackSafe]
mov rcx, qword [0x00026300]
test eax, eax
jns 0x1c91b
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
and qword [0x00026300], 0
jmp 0x1c971
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1c971
call fcn.0001c51c
cmp byte [0x0002625f], 0
je 0x1c967
lea rdx, [0x00028620]
lea rcx, [0x00028400]
call fcn.0001b5f0
test eax, eax
js 0x1c956
call fcn.0001b028
jmp 0x1c967
mov ecx, 4
call fcn.0001b338
mov byte [0x0002625f], 0
call fcn.0001d4b8
call fcn.0001da9c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1c988
Capabilities:
Delete file
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xc0
mov rbx, qword [0x00026300]
and qword [rax + 0x18], 0
test rbx, rbx
je 0x1caef
mov rbx, qword [rbx + 0x40]
and qword [rax + 0x20], 0
lea rdi, [0x00028400]
lea r9, [0x00028420]
lea rdx, [rax + 0x20]
mov rcx, rdi
mov r8d, 0x200
call fcn.0001cb0c
mov rcx, qword [0x00026300]
and qword [rsp + 0x98], 0
and qword [rsp + 0xb0], 0
and qword [rsp + 0xb8], 0
mov dword [rsp + 0x90], 0x30
mov dword [rsp + 0xa8], 0x240
mov qword [rsp + 0xa0], rdi
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1ca2c
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], 0x60
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 0x1cadf
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 0x1caf4
mov eax, 0xc000000e
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1cb0c
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 [0x00026300]
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 0x1cb79
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 0x1cd01
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 0x1ccf3
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