joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11fcc
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 rbp, r8
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
call fcn.00016bc0
lea r8d, [r13 + 0x14]
lea rcx, [rsp + 0x74]
xor edx, edx
mov dword [rsp + 0x70], r13d
call fcn.00016bc0
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], 0x68
lea eax, [r13 + 1]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0xe0]
mov edx, 0x80100000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x88], 0x30
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
mov ebx, eax
jl 0x1215a
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
mov ebx, eax
jl 0x1215a
mov edi, dword [rsp + 0x78]
cmp edi, r13d
je 0x12155
cmp dword [rsp + 0x7c], r13d
jne 0x12155
lea ebx, [rdi + 1]
xor ecx, ecx
mov edx, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
cmp rax, r13
je 0x12155
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.00016bc0
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], edi
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, r13d
mov ebx, eax
jl 0x1215a
mov qword [r12], rsi
mov dword [rbp], edi
jmp 0x1215a
mov ebx, 0xc0000098
mov rcx, qword [rsp + 0xe0]
cmp rcx, r13
je 0x1216d
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xc0]
mov eax, ebx
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 0x12194
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rdi
sub rsp, 0x70
and qword [rax - 0x30], 0
and qword [rax - 0x18], 0
and qword [rax - 0x10], 0
mov rdi, rcx
mov qword [rax - 0x28], rcx
lea r8, [rax - 0x38]
lea rcx, [rax + 0x10]
mov edx, 0xf003f
mov dword [rax - 0x38], 0x30
mov dword [rax - 0x20], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x1227f
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov ebx, eax
test eax, eax
js 0x12263
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
and qword [rsp + 0x48], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x88]
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x240
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov ebx, eax
test eax, eax
js 0x12281
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x12298
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x0001b100]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor ebx, ebx
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], ebx
mov word [rsp + 0x80], bx
call fcn.00016bc0
lea rdx, [0x00017440]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call fcn.00012194
lea rdx, [0x000174c0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.00011fcc
cmp eax, ebx
jne 0x1236b
mov r9, qword [rsp + 0x20]
lea r8, [0x000174f0]
lea rcx, [rsp + 0x80]
mov edx, 0x208
call fcn.00011008
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.00016430
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rdx, [0x00017560]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.00011fcc
cmp eax, ebx
jne 0x12407
mov r9, qword [rsp + 0x20]
lea r8, [0x00017590]
lea rcx, [rsp + 0x80]
mov edx, 0x208
call fcn.00011008
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.00016ad0
add rsp, 0x2a0
pop rbx
ret
Function at 0x125a8
Capabilities:
Get file attributes
Print debug messages
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xd0
mov rbx, rcx
xor edi, edi
mov byte [rax + 0x10], dil
mov dword [rax - 0x38], 0x30
mov qword [rax - 0x30], rdi
mov dword [rax - 0x20], 0x240
mov qword [rax - 0x28], rcx
mov qword [rax - 0x18], rdi
mov qword [rax - 0x10], rdi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 0x1020
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rdi
lea r9, [rax - 0x70]
lea r8, [rax - 0x38]
mov edx, 0x110002
lea rcx, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp eax, edi
jge 0x12798
cmp eax, 0xc0000022
jne 0x12798
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xa0]
mov edx, 0x100180
lea rcx, [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp eax, edi
jl 0x12788
mov dword [rsp + 0x78], edi
xor edx, edx
lea r8d, [rdi + 0x24]
lea rcx, [rsp + 0x7c]
call fcn.00016bc0
mov dword [rsp + 0x20], 4
lea r9d, [rdi + 0x28]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x60], eax
cmp eax, edi
jge 0x126e3
mov rdx, rbx
lea rcx, [0x00017800]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x98], 0x80
mov dword [rsp + 0x20], 4
mov r9d, 0x28
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [rsp + 0x60], eax
cmp eax, edi
jge 0x12728
lea rcx, [0x00017830]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 0x1020
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xa0]
mov edx, 0x110002
lea rcx, [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp eax, edi
jge 0x12798
lea rcx, [0x00017850]
call sub.ntoskrnl.exe_DbgPrint
mov byte [rsp + 0xe8], 1
mov dword [rsp + 0x20], 0xd
mov r9d, 1
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov ebx, eax
mov dword [rsp + 0x60], eax
cmp eax, edi
jge 0x127f1
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [0x00017830]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x12813
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x12811
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret
Function at 0x1282c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x68
mov rdx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x48], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
test eax, eax
jns 0x12883
lea rcx, [rsp + 0x20]
call fcn.000125a8
add rsp, 0x68
ret
Function at 0x12890
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov esi, 0x208
xor ebp, ebp
xor ecx, ecx
and dword [rsp + 0xa8], ebp
mov rdx, rsi
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x128db
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x128ed
mov rsi, qword [rsp + 0xa8]
mov edi, 0xc0000001
jmp 0x12ada
mov edx, 0xc8060
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
jne 0x1290c
mov edi, 0xc0000001
jmp 0x12aea
mov ebp, 0x208
xor edx, edx
mov rcx, rdi
mov r8, rbp
call fcn.00016bc0
mov r8, rbp
xor edx, edx
mov rcx, rbx
call fcn.00016bc0
xor edx, edx
mov r8d, 0xc8060
mov rcx, rsi
call fcn.00016bc0
mov rdx, qword [rsp + 0xa0]
or rcx, 0xffffffffffffffff
mov rdi, rdx
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx + rcx - 2]
mov rcx, rbx
call fcn.00016d60
mov edi, 0xc8060
mov rdx, rsi
mov r8d, edi
mov rcx, rbx
call fcn.000169ac
mov rbp, rax
mov qword [rsp + 0xb8], rax
cmp rax, 0xffffffffffffffff
jne 0x1298d
mov eax, 0xc0000001
jmp 0x12b1f
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.00016bc0
xor edi, edi
lea rax, [rsp + 0x60]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x40], dil
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 0xc8060
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
cmp eax, edi
jge 0x129e9
mov edi, 0xc0000001
jmp 0x12ada
mov rbp, qword [rsp + 0xb0]
mov eax, dword [rsp + 0xa8]
mov edi, eax
lea rdx, [0x00017890]
add rdi, rsi
lea rcx, [rdi + 0x5e]
call qword [sym.imp.ntoskrnl.exe__wcsicmp]
test eax, eax
je 0x12a99
lea rdx, [0x000178a0]
lea rcx, [rdi + 0x5e]
call qword [sym.imp.ntoskrnl.exe__wcsicmp]
test eax, eax
je 0x12a99
xor edx, edx
mov r8d, 0x208
mov rcx, rbp
call fcn.00016bc0
xor edx, edx
mov r8d, 0x208
mov rcx, rbx
call fcn.00016bc0
mov r8d, dword [rdi + 0x3c]
lea rdx, [rdi + 0x5e]
mov rcx, rbp
call fcn.00016d60
test byte [rdi + 0x38], 0x10
mov r9, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rbp
lea r8, [0x000178b0]
mov edx, 0x208
mov rcx, rbx
je 0x12a8c
call fcn.00011008
mov rcx, rbx
call fcn.00012890
jmp 0x12a99
call fcn.00011008
mov rcx, rbx
call fcn.0001282c
cmp dword [rdi], 0
je 0x12ab3
mov eax, dword [rsp + 0xa8]
add eax, dword [rdi]
mov dword [rsp + 0xa8], eax
jmp 0x129f8
mov rbp, qword [rsp + 0xb8]
test rbp, rbp
je 0x12acb
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor ebp, ebp
mov rcx, qword [rsp + 0xa0]
call fcn.0001282c
mov edi, eax
test rsi, rsi
je 0x12aea
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x12afa
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x12b0f
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbp, rbp
je 0x12b1d
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14330
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
xor edi, edi
lea rcx, [rax - 0x30]
xor edx, edx
lea r8d, [rdi + 0x28]
mov qword [rax + 8], rdi
call fcn.00016bc0
lea edx, [rdi + 0x3c]
lea eax, [rdi + 0x3e]
mov word [rsp + 0x32], ax
lea rax, [0x00017b10]
mov word [rsp + 0x30], dx
mov qword [rsp + 0x38], rax
lea eax, [rdi + 0xe]
lea r8, [rsp + 0x50]
mov word [rsp + 0x40], ax
lea eax, [rdi + 0x10]
lea rcx, [rsp + 0x90]
mov word [rsp + 0x42], ax
lea rax, [0x00017b50]
mov edx, 0xf003f
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, edi
jl 0x1440b
or rcx, 0xffffffffffffffff
lea rdx, [0x00017b60]
xor eax, eax
mov rdi, rdx
mov r9d, 7
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x80
pop rdi
ret

Function at 0x14560
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
xor edi, edi
lea rcx, [rax - 0x30]
xor edx, edx
lea r8d, [rdi + 0x28]
mov qword [rax + 8], rdi
call fcn.00016bc0
mov edx, 0x8e
lea r8, [rsp + 0x50]
lea eax, [rdx + 2]
mov word [rsp + 0x30], dx
lea rcx, [rsp + 0x90]
mov word [rsp + 0x32], ax
lea rax, [0x00017d20]
mov edx, 0xf003f
mov qword [rsp + 0x38], rax
lea eax, [rdi + 0xa]
mov dword [rsp + 0x50], 0x30
mov word [rsp + 0x40], ax
lea eax, [rdi + 0xc]
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x42], ax
lea rax, [0x00017db0]
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, edi
jl 0x1463d
or rcx, 0xffffffffffffffff
lea rdx, [0x00017dc0]
xor eax, eax
mov rdi, rdx
mov r9d, 1
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x80
pop rdi
ret

Function at 0x15a5c
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
and qword [rsp + 0x68], 0
lea rdx, [0x00015a0c]
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_IoRegisterDriverReinitialization]
and qword [rsp + 0x30], 0
lea rax, [0x0001465c]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x15ab3
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x48
ret
Function at 0x160d0
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, rdx
xor edx, edx
mov r12, rcx
lea edi, [rdx + 5]
lea r9, [rax + 0x18]
xor r13d, r13d
mov ecx, edi
xor r8d, r8d
mov dword [rax + 0x18], r13d
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ebx, dword [rsp + 0x50]
cmp ebx, r13d
jne 0x1611b
mov eax, 0xc0000001
jmp 0x1619c
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
cmp rax, r13
je 0x16111
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rax
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, r13d
mov ebx, eax
jl 0x1618f
mov ebx, 0xc0000001
mov rdi, rsi
mov eax, dword [rdi]
add rdi, rax
je 0x16179
cmp qword [rdi + 0x50], r13
je 0x16179
cmp word [rdi + 0x38], r13w
je 0x16179
mov rcx, qword [rdi + 0x40]
cmp rcx, r13
je 0x16179
mov rdx, r12
call sub.ntoskrnl.exe__wcsicmp
cmp eax, r13d
je 0x16180
cmp dword [rdi], r13d
je 0x1618f
jmp 0x1614f
mov rcx, qword [rdi + 0x50]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x161bc
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
cmp al, dil
jne 0x161f3
xor eax, eax
jmp 0x1627b
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x161ec
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x161ec
mov eax, dword [rax + rbx + 0x88]
mov esi, edi
add rax, rbx
mov r13d, dword [rax + 0x1c]
mov r12d, dword [rax + 0x20]
mov r14d, dword [rax + 0x24]
mov r15d, dword [rax + 0x18]
add r13, rbx
add r12, rbx
add r14, rbx
cmp r15d, edi
jbe 0x16278
mov ebp, dword [r12]
add rbp, rbx
je 0x1625c
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
cmp al, dil
je 0x1625c
mov rcx, qword [rsp + 0x58]
mov rdx, rbp
call sub.ntoskrnl.exe__stricmp
cmp eax, edi
je 0x16269
inc esi
add r12, 4
cmp esi, r15d
jae 0x16278
jmp 0x16234
mov eax, esi
movzx ecx, word [r14 + rax*2]
mov edi, dword [r13 + rcx*4]
add rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x162a0
Capabilities:
Delete file
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xd0
xor edi, edi
xor eax, eax
mov rbx, rcx
mov word [rsp + 0x78], di
lea rcx, [r11 - 0x38]
lea r8d, [rdi + 0x28]
xor edx, edx
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x5e], rax
mov dword [r11 - 0x56], eax
mov word [r11 - 0x52], ax
mov dword [r11 - 0x40], edi
call fcn.00016bc0
xor eax, eax
lea rcx, [rsp + 0x78]
mov rdx, rbx
mov dword [rsp + 0x88], edi
mov dword [rsp + 0x8c], eax
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], eax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], rdi
mov dword [rsp + 0xb0], 0x240
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], rdi
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
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], 0x68
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x98]
lea rcx, [rsp + 0xf8]
mov edx, 0x40100000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
cmp eax, edi
mov ebx, eax
jl 0x16402
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [0x0001b3c0]
mov dword [rsp + 0x30], 0x19a9a8
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
mov rcx, qword [rsp + 0xf8]
cmp rcx, rdi
je 0x16415
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret
Function at 0x16430
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
and qword [rax - 0x28], 0
and qword [rax - 0x20], 0
mov qword [rax - 0x38], rcx
mov qword [rax - 0x40], rdx
lea rcx, [rax + 0x10]
lea r8, [rax - 0x48]
mov edx, 0xf003f
mov dword [rax - 0x48], 0x30
mov dword [rax - 0x30], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x1663e
mov rcx, qword [rsp + 0x98]
xor r9d, r9d
lea rax, [rsp + 0x90]
lea esi, [r9 + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x16630
mov edx, dword [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x16630
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rax
call fcn.00016bc0
mov r9d, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
lea r11, [rsp + 0x90]
mov r8, rdi
mov edx, esi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
test eax, eax
js 0x16625
mov eax, dword [rdi + 0x14]
test eax, eax
je 0x16607
xor esi, esi
test eax, eax
je 0x16607
cmp esi, 0xa
jae 0x16625
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x16625
mov edx, dword [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbp, rax
test rax, rax
je 0x16625
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rax
call fcn.00016bc0
mov ecx, dword [rsp + 0x90]
lea r11, [rsp + 0x90]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x98]
mov r9, rbp
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
test eax, eax
js 0x165f1
movzx eax, word [rbp + 0xc]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x30]
mov word [rsp + 0x30], ax
movzx eax, word [rbp + 0xc]
mov word [rsp + 0x32], ax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
call fcn.00016430
mov ebx, eax
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc esi
cmp esi, dword [rdi + 0x14]
jb 0x16523
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x98]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x169ac
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xb0
and qword [rax + 0x20], 0
mov rbx, rdx
mov rdx, rcx
lea rcx, [rax - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x88], 0
and qword [rsp + 0xa0], 0
and qword [rsp + 0xa8], 0
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0xd8]
mov edx, 0x100001
mov dword [rsp + 0x28], 0x4021
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x80], 0x30
mov dword [rsp + 0x98], 0x240
mov dword [rsp + 0x20], 3
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x16aa5
mov rcx, qword [rsp + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x16aa5
mov byte [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x38], 3
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0xc8060
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_ZwQueryDirectoryFile]
test eax, eax
js 0x16a97
mov rax, qword [rsp + 0xd8]
jmp 0x16aa9
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
or rax, 0xffffffffffffffff
add rsp, 0xb0
pop rbx
ret

Function at 0x1b7064
Capabilities:
Create device object

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.001b7008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00015ae4