joyce8/EMBER2024-capa huggingface dataset:
Function at 0x128b8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x80
and dword [r11 + 8], 0
mov dword [rsp + 0x48], 0x30
and qword [r11 - 0x38], 0
mov dword [rsp + 0x60], 0x240
and qword [r11 - 0x20], 0
and qword [r11 - 0x18], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x30], rcx
mov edi, r8d
mov qword [r11 - 0x58], rax
and dword [rsp + 0x28], 0
and qword [r11 - 0x68], 0
mov rbx, r9
mov rsi, rdx
lea rcx, [r11 - 0x48]
lea r8, [r11 - 0x40]
xor r9d, r9d
mov edx, 0x20006
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
js 0x12966
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
mov r9d, edi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x12984
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
and qword [rax - 0x58], 0
and qword [rax - 0x40], 0
and qword [rax - 0x38], 0
mov rbp, r8
mov qword [rax - 0x50], rcx
mov r14, rdx
lea r8, [rax - 0x60]
lea rcx, [rax - 0x68]
mov edx, 0x20019
mov r13, r9
mov dword [rax - 0x60], 0x30
mov dword [rax - 0x48], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x12a9f
mov rsi, qword [rsp + 0xc0]
xor ecx, ecx
mov ebx, dword [rsi]
add ebx, 0x10
mov edx, ebx
mov r12d, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
jne 0x12a0c
mov ebx, 0xc000009a
jmp 0x12a92
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.00024210
mov rcx, qword [rsp + 0x30]
lea r11, [rsp + 0xa0]
mov qword [rsp + 0x28], r11
mov r9, rdi
mov r8d, 2
mov rdx, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x12a7b
cmp eax, 0x80000005
je 0x12a7b
test eax, eax
js 0x12a87
test rbp, rbp
je 0x12a60
mov ecx, dword [rdi + 4]
mov dword [rbp], ecx
mov eax, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, r13
cmp dword [rsi], eax
cmovb eax, dword [rsi]
mov r8d, eax
mov dword [rsi], eax
call fcn.00022c70
jmp 0x12a87
mov eax, dword [rsp + 0xa0]
add eax, 0xfffffff4
mov dword [rsi], eax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0x70]
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 0x13788
Capabilities:
Hash data with crc32

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov ebp, 0x80000
mov dword [rax + 0x10], 3
mov dword [rax + 8], ebp
call fcn.00012ac0
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor ebx, ebx
mov rdi, rax
cmp rax, rbx
je 0x1399d
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.00024210
lea rdx, [0x00028250]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x000282d0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x00028350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r11d, dword [0x0002c1f0]
cmp r11d, ebx
je 0x1381b
cmp r11d, 0x20
jb 0x13903
movabs rsi, 0xfffff78000000014
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
mov rax, qword [rsi]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsi]
mov qword [rsp + 0xa0], rax
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
mov eax, 0xaaaaaaab
mul edi
shr edx, 2
add edx, dword [rsp + 0xa8]
mov ecx, edx
call qword [sym.imp.ntoskrnl.exe_srand]
call qword [sym.imp.ntoskrnl.exe_rand]
cdq
and edx, 0x1f
add eax, edx
and eax, 0x1f
sub eax, edx
mov dword [0x0002c1f0], eax
jne 0x138df
mov rax, qword [rsi]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0xa0], rax
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_srand]
call qword [sym.imp.ntoskrnl.exe_rand]
mov r11d, eax
mov eax, 0x84210843
imul r11d
add edx, r11d
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x1f
sub r11d, edx
inc r11d
mov dword [0x0002c1f0], r11d
lea r9, [0x0002c1f0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov r8d, 4
mov dword [rsp + 0x20], 4
call fcn.000128b8
lea rax, [rsp + 0x90]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
call fcn.00012984
mov esi, dword [rsp + 0x90]
mov r12d, eax
cmp esi, ebp
jbe 0x13963
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
cmp rax, rbx
je 0x139d0
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.00024210
cmp r12d, ebx
jl 0x13992
mov r8d, dword [0x0002c1f0]
mov edx, esi
mov rcx, rdi
mov byte [0x0002892d], 1
call fcn.00017e10
movzx ecx, byte [0x0002892d]
cmp eax, ebx
cmove ecx, ebx
mov byte [0x0002892d], cl
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [0x0002eb20]
mov eax, ebx
mov edx, 8
test al, 1
je 0x139b8
shr eax, 1
xor eax, 0xedb88320
jmp 0x139ba
shr eax, 1
sub rdx, 1
jne 0x139ab
inc ebx
mov dword [rcx], eax
add rcx, 4
cmp ebx, 0x100
jb 0x139a4
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x13c54
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
movabs rbx, 0xfffff78000000320
movabs rax, 0xfffff78000000014
lea rdx, [rsp + 0x40]
mov rbx, qword [rbx]
mov rax, qword [rax]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rcx, [rsp + 0x38]
call fcn.000139e4
lea rcx, [rsp + 0x30]
call sub.ntoskrnl.exe_RtlRandomEx
xor edx, edx
lea rcx, [0x0002f580]
lea r11d, [rax + 3]
mov eax, ebx
mov ebx, 0x114
div r11d
movzx eax, byte [rsp + 0x39]
mov r8, rbx
add edx, eax
movzx eax, byte [rsp + 0x3d]
add edx, eax
movzx eax, byte [rsp + 0x3c]
add edx, eax
movzx eax, byte [rsp + 0x3b]
add edx, eax
movzx eax, byte [rsp + 0x3a]
add eax, dword [rsp + 0x40]
add eax, edx
xor edx, edx
mov dword [rsp + 0x40], eax
call fcn.00024210
lea rcx, [0x0002f580]
mov dword [0x0002f580], ebx
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jne 0x13d1b
cmp dword [0x0002f584], 6
jb 0x13d1b
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_srand]
call qword [sym.imp.ntoskrnl.exe_rand]
jmp 0x13d49
mov eax, dword [rsp + 0x40]
mov ecx, 0x3039
test eax, eax
jne 0x13d36
mov eax, dword [0x0002c208]
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, 0x20
pop rbx
ret
Function at 0x143f4
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x0002c220]
mov rbx, rdx
cmp eax, 6
jne 0x1441c
cmp dword [0x0002c224], 2
jae 0x14422
cmp eax, eax
jbe 0x144a4
mov rdx, qword [rdx + 0xb8]
test rcx, rcx
je 0x14480
cmp rcx, qword [0x0002c260]
jne 0x14480
cmp byte [rdx], 0xe
mov r8, qword [rcx + 0x40]
jne 0x14463
mov eax, dword [rdx + 0x18]
sub eax, 0x12017
je 0x14459
cmp eax, 8
jne 0x14463
mov rdx, rbx
call fcn.000151e0
jmp 0x1449d
mov rdx, rbx
call fcn.00015628
jmp 0x1449d
inc byte [rbx + 0x43]
lea rax, [rdx + 0x48]
mov rdx, rbx
mov qword [rbx + 0xb8], rax
mov rcx, qword [r8 + 0x18]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x1449d
movzx eax, byte [rdx]
lea rdx, [0x0002c280]
mov r8, qword [rdx + rax*8]
test r8, r8
je 0x145e6
mov rdx, rbx
call r8
mov edi, eax
jmp 0x145fe
mov rdi, qword [rdx + 0xb8]
test rcx, rcx
je 0x145cb
cmp rcx, qword [0x0002c260]
jne 0x145cb
cmp byte [0x0002c1fc], 0
mov rsi, qword [rcx + 0x40]
je 0x144eb
inc byte [rdx + 0x43]
lea rax, [rdi + 0x48]
mov qword [rdx + 0xb8], rax
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x14600
cmp byte [rdi], 0
je 0x145c1
cmp byte [rdi], 0xf
je 0x1450b
cmp byte [rdi], 0x12
jne 0x14527
mov r8, rdi
call fcn.00014828
jmp 0x14600
movzx edx, byte [rdi + 1]
sub edx, 1
je 0x145b4
sub edx, 1
je 0x14557
sub edx, 5
je 0x14547
cmp edx, 4
je 0x14537
inc byte [rbx + 0x43]
lea rax, [rdi + 0x48]
mov qword [rbx + 0xb8], rax
jmp 0x145ac
mov r8, rdi
mov rdx, rbx
call fcn.00014aa4
jmp 0x14600
mov r8, rdi
mov rdx, rbx
call fcn.00014b60
jmp 0x14600
lea rcx, [0x0002ef28]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov r8, qword [rdi + 0x30]
mov rdx, qword [0x0002c250]
test r8, r8
je 0x14592
test rdx, rdx
je 0x14592
cmp qword [rdx + 8], r8
je 0x14588
mov rdx, qword [rdx + 0x38]
test rdx, rdx
jne 0x14579
test rdx, rdx
je 0x14592
and qword [rdx + 0x18], 0
lea rcx, [0x0002ef28]
mov dl, al
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
inc byte [rbx + 0x43]
add qword [rbx + 0xb8], 0x48
mov rdx, rbx
jmp 0x144dc
mov r8, rdi
mov rdx, rbx
call fcn.00014998
jmp 0x14600
mov r8, rdi
call fcn.00014618
jmp 0x14600
movzx eax, byte [rdi]
lea rdx, [0x0002c280]
mov r8, qword [rdx + rax*8]
test r8, r8
je 0x145e6
mov rdx, rbx
call r8
jmp 0x14600
and qword [rbx + 0x38], 0
mov edi, 0xc0000010
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], edi
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x15628
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
sub rsp, 0x30
mov rbx, rdx
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x50], rax
mov r13, qword [rdx + 0xb8]
mov rsi, qword [r13 + 0x30]
test rsi, rsi
jne 0x15660
xor edi, edi
jmp 0x15696
lea rcx, [0x0002ef20]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rdi, qword [0x0002c258]
test rdi, rdi
je 0x15687
cmp qword [rdi], rsi
je 0x15687
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x15679
mov dl, al
lea rcx, [0x0002ef20]
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
mov r12d, dword [r13 + 0x10]
test rdi, rdi
je 0x157c1
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_IoIs32bitProcess]
test al, al
je 0x15729
mov rsi, qword [r13 + 0x20]
mov rdx, r12
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
nop
movsxd rsi, dword [rsi]
movsxd rdx, dword [rsi]
movsxd rcx, dword [rsi + 4]
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
nop
mov eax, dword [rsi]
cmp eax, dword [rdi + 0x10]
jb 0x15707
mov r8, rax
movsxd rcx, dword [rsi + 4]
xor edx, edx
call fcn.00024210
mov r8d, dword [rdi + 0x10]
movsxd rcx, dword [rsi + 4]
mov rdx, qword [rdi + 8]
call fcn.00022c70
xor esi, esi
jmp 0x1577f
mov dword [rbx + 0x30], 0xc0000023
and qword [rbx + 0x38], 0
mov esi, 0xc0000023
jmp 0x157a6
mov rsi, qword [r13 + 0x20]
mov rdx, r12
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
nop
mov rsi, qword [rsi]
mov r8d, 1
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
nop
mov eax, dword [rsi]
cmp eax, dword [rdi + 0x10]
jb 0x15795
mov r8, rax
xor edx, edx
mov rcx, qword [rsi + 8]
call fcn.00024210
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, qword [rsi + 8]
call fcn.00022c70
xor esi, esi
and dword [rbx + 0x30], 0
mov eax, dword [rdi + 0x10]
mov qword [rbx + 0x38], rax
mov rcx, qword [r13 + 0x30]
call fcn.00013f8c
jmp 0x157a6
mov dword [rbx + 0x30], 0xc0000023
and qword [rbx + 0x38], 0
mov esi, 0xc0000023
mov dl, 2
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
jmp 0x157de
inc byte [rbx + 0x43]
add qword [rbx + 0xb8], 0x48
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x159c4
Capabilities:
Encode data using xor

Disassembly:
or r8d, 0xffffffff
mov r9, rcx
test edx, edx
je 0x159fc
mov r10d, edx
movzx edx, byte [r9]
mov eax, r8d
mov ecx, r8d
xor rdx, rax
shr ecx, 8
inc r9
movzx eax, dl
lea rdx, [0x0002eb20]
mov r8d, dword [rdx + rax*4]
xor r8d, ecx
sub r10, 1
jne 0x159d2
not r8d
mov eax, r8d
ret
Function at 0x1ead0
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 [0x0002c388], rax
cmp rax, rdi
je 0x1ecb2
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.00024210
mov rcx, qword [0x0002c398]
lea rax, [0x0002e8a0]
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 0x1eb6b
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 0x1ebf7
mov rcx, qword [0x0002c388]
cmp rcx, rdi
je 0x1ebeb
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x0002c388], rdi
jmp 0x1ecb2
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 0x1ebd7
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 [0x0002c388]
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov dword [0x0002c390], r11d
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, edi
jl 0x1ebd7
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 0x1eccc
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.0001e950
mov rcx, rbx
mov rsi, rax
call fcn.0001c070
mov rcx, rbx
call fcn.0001cd00
test rsi, rsi
je 0x1ef48
mov rcx, rbx
call fcn.0001df30
test eax, eax
js 0x1ef48
cmp byte [0x0002c1fe], 0
je 0x1ed2a
mov ecx, 1
call fcn.0001cdb4
mov rcx, rax
call fcn.0001e28c
call reloc.ntoskrnl.exe_strstr
mov edx, pe_nt_image_headers64
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x1ee64
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rax
call fcn.00024210
lea rax, [0x00020824]
mov dword [rdi], pe_nt_image_headers64
mov qword [rdi + 8], rax
lea rax, [0x000208f4]
mov qword [rdi + 0x10], rax
lea rax, [0x000209c4]
mov qword [rdi + 0x18], rax
lea rax, [0x00020a94]
mov qword [rdi + 0x20], rax
lea rax, [0x00020b44]
mov qword [rdi + 0x28], rax
lea rax, [0x00020bf4]
mov qword [rdi + 0x30], rax
lea rax, [0x00020cdc]
mov qword [rdi + 0x38], rax
lea rax, [0x00020da0]
mov qword [rdi + 0x40], rax
lea rax, [0x00020e3c]
mov qword [rdi + 0x48], rax
lea rax, [0x00020eec]
mov qword [rdi + 0x50], rax
lea rax, [0x00021010]
mov qword [rdi + 0x68], rax
lea rax, [0x00021048]
mov qword [rdi + 0x70], rax
lea rax, [0x000210f8]
mov qword [rdi + 0x80], rax
lea rax, [0x000211c4]
mov qword [rdi + 0x88], rax
lea rax, [0x00021250]
mov qword [rdi + 0x90], rax
lea rax, [0x0002131c]
mov qword [rdi + 0x98], rax
lea rax, reloc.ntoskrnl.exe_KeSetEvent
mov qword [rdi + 0xa0], rax
lea rax, [0x000214c0]
mov qword [rdi + 0xa8], rax
lea rax, [0x000215c8]
mov qword [rdi + 0xb0], rax
lea rax, reloc.ntoskrnl.exe_ZwQueryValueKey
mov qword [rdi + 0xb8], rax
lea rax, [0x000216f0]
mov qword [rdi + 0xc0], rax
mov qword [rbx + 0x50], rdi
mov r9d, dword [rsi + 0x48]
xor r8d, r8d
lea rax, [0x0002c398]
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 0x1ef48
mov rax, qword [0x0002c398]
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 [0x0002c398]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStackSafe]
mov rcx, qword [0x0002c398]
test eax, eax
jns 0x1eedc
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
and qword [0x0002c398], 0
jmp 0x1ef48
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1ef43
call fcn.0001ead0
cmp byte [0x0002c1fe], 0
je 0x1ef39
cmp qword [0x0002c398], 0
je 0x1ef18
lea rdx, [0x0002eac0]
lea rcx, [0x0002e8a0]
call fcn.0001d708
jmp 0x1ef1d
mov eax, 0xc000000e
test eax, eax
js 0x1ef28
call fcn.0001ca0c
jmp 0x1ef39
mov ecx, 4
call fcn.0001cdb4
mov byte [0x0002c1fe], 0
call fcn.0001fec0
call fcn.000204e0
call reloc.ntoskrnl.exe_strstr
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1ef60
Capabilities:
Delete file
Set file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xc0
and qword [r11 + 0x18], 0
xor eax, eax
mov rdi, rcx
lea rcx, [r11 - 0x38]
lea r8d, [rax + 0x30]
xor edx, edx
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
call fcn.00024210
mov rbx, qword [0x0002c398]
test rbx, rbx
je 0x1f0e4
mov rbx, qword [rbx + 0x40]
and qword [rsp + 0xe8], 0
lea r9, [0x0002e8c0]
lea rdx, [rsp + 0xe8]
mov r8d, 0x200
mov rcx, rdi
call fcn.0001f318
mov rcx, qword [0x0002c398]
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 0x1f021
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], 0x62
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 7
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0xe0]
mov edx, 0xc0010000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
test eax, eax
js 0x1f0d4
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 0x1f0e9
mov eax, 0xc000000e
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1f100
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 [0x0002c398]
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], 0x240
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 0x1f16d
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 0x1f2f5
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 0x1f2e7
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