joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ac5b0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800ac5fa
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1800e6a28]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x1800ac633
cmp rbx, r14
jb 0x1800ac630
cmp rbx, r12
jae 0x1800ac630
cmp qword [rbx + 8], rsi
jne 0x1800ac795
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800ac61c
mov r15, rdi
cmp rdi, r14
jb 0x1800ac74f
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x1800ac67f
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ac6b9
cmp dword [rbp - 0x10], 0x10000
je 0x1800ac689
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1800ac6b9
sub r15, r13
cmp r15, r14
jae 0x1800ac655
jmp 0x1800ac6b9
test r15, r15
je 0x1800ac6b9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800ac75a
cmp r15, r14
jae 0x1800ac644
test rbx, rbx
jmp 0x1800ac74d
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x1800ac795
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ac795
cmp dword [rbp - 0x10], 0x10000
je 0x1800ac728
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x1800ac6e5
jmp 0x1800ac795
test rdi, rdi
je 0x1800ac795
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800ac75a
cmp rdi, r12
jbe 0x1800ac6c1
jmp 0x1800ac795
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800ac766
mov rax, qword [0x1800e6a28]
mov qword [rbx], rax
mov qword [0x1800e6a28], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800ad5b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800ad5ee
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800ad5f3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800ad63c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800b99e0]
cmp byte [rcx + rax], 0
je 0x1800ad63c
dec r8
sub rdx, 1
jne 0x1800ad622
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x128dc
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 0x1298a
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 0x129a8
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 0x12ac3
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 0x12a30
mov ebx, 0xc000009a
jmp 0x12ab6
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.00022a90
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 0x12a9f
cmp eax, 0x80000005
je 0x12a9f
test eax, eax
js 0x12aab
test rbp, rbp
je 0x12a84
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.00021500
jmp 0x12aab
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 0x13854
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.00012ae4
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor ebx, ebx
mov rdi, rax
cmp rax, rbx
je 0x13a69
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.00022a90
lea rdx, [0x00027050]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x000270d0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x00027150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r11d, dword [0x0002a8b0]
cmp r11d, ebx
je 0x138e7
cmp r11d, 0x20
jb 0x139cf
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 [0x0002a8b0], eax
jne 0x139ab
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 [0x0002a8b0], r11d
lea r9, [0x0002a8b0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov r8d, 4
mov dword [rsp + 0x20], 4
call fcn.000128dc
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.000129a8
mov esi, dword [rsp + 0x90]
mov r12d, eax
cmp esi, ebp
jbe 0x13a2f
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 0x13a9c
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.00022a90
cmp r12d, ebx
jl 0x13a5e
mov r8d, dword [0x0002a8b0]
mov edx, esi
mov rcx, rdi
mov byte [0x0002762d], 1
call fcn.00017c44
movzx ecx, byte [0x0002762d]
cmp eax, ebx
cmove ecx, ebx
mov byte [0x0002762d], cl
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [0x0002d1a0]
mov eax, ebx
mov edx, 8
test al, 1
je 0x13a84
shr eax, 1
xor eax, 0xedb88320
jmp 0x13a86
shr eax, 1
sub rdx, 1
jne 0x13a77
inc ebx
mov dword [rcx], eax
add rcx, 4
cmp ebx, 0x100
jb 0x13a70
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x13d20
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.00013ab0
lea rcx, [rsp + 0x30]
call sub.ntoskrnl.exe_RtlRandomEx
xor edx, edx
lea rcx, [0x0002d8e0]
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.00022a90
lea rcx, [0x0002d8e0]
mov dword [0x0002d8e0], ebx
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jne 0x13de7
cmp dword [0x0002d8e4], 6
jb 0x13de7
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_srand]
call qword [sym.imp.ntoskrnl.exe_rand]
jmp 0x13e15
mov eax, dword [rsp + 0x40]
mov ecx, 0x3039
test eax, eax
jne 0x13e02
mov eax, dword [0x0002a8c0]
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 0x14434
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 [0x0002a8d8]
mov rbx, rdx
cmp eax, 6
jne 0x1445c
cmp dword [0x0002a8dc], 2
jae 0x14462
cmp eax, eax
jbe 0x144e4
mov rdx, qword [rdx + 0xb8]
test rcx, rcx
je 0x144c0
cmp rcx, qword [0x0002a8f8]
jne 0x144c0
cmp byte [rdx], 0xe
mov r8, qword [rcx + 0x40]
jne 0x144a3
mov eax, dword [rdx + 0x18]
sub eax, 0x12017
je 0x14499
cmp eax, 8
jne 0x144a3
mov rdx, rbx
call fcn.00015154
jmp 0x144dd
mov rdx, rbx
call fcn.0001559c
jmp 0x144dd
inc byte [rbx + 0x43]
lea rax, [rdx + 0x48]
mov rdx, rbx
mov qword [rbx + 0xb8], rax
mov rcx, qword [r8 + 0x13]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x144dd
movzx eax, byte [rdx]
lea rdx, [0x0002a910]
mov r8, qword [rdx + rax*8]
test r8, r8
je 0x14626
mov rdx, rbx
call r8
mov edi, eax
jmp 0x1463e
mov rdi, qword [rdx + 0xb8]
test rcx, rcx
je 0x1460b
cmp rcx, qword [0x0002a8f8]
jne 0x1460b
cmp byte [0x0002a8bc], 0
mov rsi, qword [rcx + 0x40]
je 0x1452b
inc byte [rdx + 0x43]
lea rax, [rdi + 0x48]
mov qword [rdx + 0xb8], rax
mov rcx, qword [rsi + 0x13]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x14640
cmp byte [rdi], 0
je 0x14601
cmp byte [rdi], 0xf
je 0x1454b
cmp byte [rdi], 0x12
jne 0x14567
mov r8, rdi
call fcn.00014868
jmp 0x14640
movzx edx, byte [rdi + 1]
sub edx, 1
je 0x145f4
sub edx, 1
je 0x14597
sub edx, 5
je 0x14587
cmp edx, 4
je 0x14577
inc byte [rbx + 0x43]
lea rax, [rdi + 0x48]
mov qword [rbx + 0xb8], rax
jmp 0x145ec
mov r8, rdi
mov rdx, rbx
call fcn.00014ae4
jmp 0x14640
mov r8, rdi
mov rdx, rbx
call fcn.00014ba0
jmp 0x14640
lea rcx, [0x0002d5a8]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov r8, qword [rdi + 0x30]
mov rdx, qword [0x0002a8e8]
test r8, r8
je 0x145d2
test rdx, rdx
je 0x145d2
cmp qword [rdx + 8], r8
je 0x145c8
mov rdx, qword [rdx + 0x38]
test rdx, rdx
jne 0x145b9
test rdx, rdx
je 0x145d2
and qword [rdx + 0x18], 0
lea rcx, [0x0002d5a8]
mov dl, al
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
inc byte [rbx + 0x43]
add qword [rbx + 0xb8], 0x48
mov rdx, rbx
jmp 0x1451c
mov r8, rdi
mov rdx, rbx
call fcn.000149d8
jmp 0x14640
mov r8, rdi
call fcn.00014658
jmp 0x14640
movzx eax, byte [rdi]
lea rdx, [0x0002a910]
mov r8, qword [rdx + rax*8]
test r8, r8
je 0x14626
mov rdx, rbx
call r8
jmp 0x14640
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 0x1559c
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 0x155d4
xor edi, edi
jmp 0x1560a
lea rcx, [0x0002d5a0]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rdi, qword [0x0002a8f0]
test rdi, rdi
je 0x155fb
cmp qword [rdi], rsi
je 0x155fb
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x155ed
mov dl, al
lea rcx, [0x0002d5a0]
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
mov r12d, dword [r13 + 0x10]
test rdi, rdi
je 0x15735
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_IoIs32bitProcess]
test al, al
je 0x1569d
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 0x1567b
mov r8, rax
movsxd rcx, dword [rsi + 4]
xor edx, edx
call fcn.00022a90
mov r8d, dword [rdi + 0x10]
movsxd rcx, dword [rsi + 4]
mov rdx, qword [rdi + 8]
call fcn.00021500
xor esi, esi
jmp 0x156f3
mov dword [rbx + 0x30], 0xc0000023
and qword [rbx + 0x38], 0
mov esi, 0xc0000023
jmp 0x1571a
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 0x15709
mov r8, rax
xor edx, edx
mov rcx, qword [rsi + 8]
call fcn.00022a90
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, qword [rsi + 8]
call fcn.00021500
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.00014058
jmp 0x1571a
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 0x15752
inc byte [rbx + 0x43]
add qword [rbx + 0xb8], 0x48
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x13]
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 0x15938
Capabilities:
Encode data using xor

Disassembly:
or r8d, 0xffffffff
mov r9, rcx
test edx, edx
je 0x15970
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, [0x0002d1a0]
mov r8d, dword [rdx + rax*4]
xor r8d, ecx
sub r10, 1
jne 0x15946
not r8d
mov eax, r8d
ret
Function at 0x1d32c
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 [0x0002aa10], rax
cmp rax, rdi
je 0x1d50e
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.00022a90
mov rcx, qword [0x0002aa20]
lea rax, [0x0002cf20]
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 + 0x13], rax
cmp rax, rdi
jne 0x1d3c7
mov rax, qword [rbx + 0xa]
mov qword [rbx + 0x13], rax
mov rax, qword [rbx + 0x13]
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 0x1d453
mov rcx, qword [0x0002aa10]
cmp rcx, rdi
je 0x1d447
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x0002aa10], rdi
jmp 0x1d50e
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 0x1d433
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 [0x0002aa10]
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov dword [0x0002aa18], r11d
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, edi
jl 0x1d433
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 0x1d528
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.0001d1ac
mov rcx, rbx
mov rsi, rax
call fcn.0001a82c
mov rcx, rbx
call fcn.0001b55c
test rsi, rsi
je 0x1d7a5
mov rcx, rbx
call fcn.0001c78c
test eax, eax
js 0x1d7a5
cmp byte [0x0002a8be], 0
je 0x1d586
mov ecx, 1
call fcn.0001b610
mov rcx, rax
call fcn.0001cae8
call fcn.000200b4
mov edx, 0xe0
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x1d6c0
xor edx, edx
mov r8d, 0xe0
mov rcx, rax
call fcn.00022a90
lea rax, [0x0001f084]
mov dword [rdi], 0xe0
mov qword [rdi + 8], rax
lea rax, [0x0001f154]
mov qword [rdi + 0x10], rax
lea rax, [0x0001f224]
mov qword [rdi + 0x18], rax
lea rax, [0x0001f2f4]
mov qword [rdi + 0x20], rax
lea rax, [0x0001f3a4]
mov qword [rdi + 0x28], rax
lea rax, [0x0001f454]
mov qword [rdi + 0x30], rax
lea rax, [0x0001f53c]
mov qword [rdi + 0x38], rax
lea rax, [0x0001f600]
mov qword [rdi + 0x40], rax
lea rax, [0x0001f69c]
mov qword [rdi + 0x48], rax
lea rax, [0x0001f74c]
mov qword [rdi + 0x50], rax
lea rax, [0x0001f870]
mov qword [rdi + 0x68], rax
lea rax, [0x0001f8a8]
mov qword [rdi + 0x70], rax
lea rax, [0x0001f958]
mov qword [rdi + 0x80], rax
lea rax, [0x0001fa24]
mov qword [rdi + 0x88], rax
lea rax, [0x0001fab0]
mov qword [rdi + 0x90], rax
lea rax, [0x0001fb7c]
mov qword [rdi + 0x98], rax
lea rax, [0x0001fc18]
mov qword [rdi + 0xa0], rax
lea rax, [0x0001fd20]
mov qword [rdi + 0xa8], rax
lea rax, [0x0001fe28]
mov qword [rdi + 0xb0], rax
lea rax, [0x0001feb4]
mov qword [rdi + 0xb8], rax
lea rax, [0x0001ff50]
mov qword [rdi + 0xc0], rax
mov qword [rbx + 0x50], rdi
mov r9d, dword [rsi + 0x48]
xor r8d, r8d
lea rax, [0x0002aa20]
mov qword [rsp + 0x30], rax
lea edx, [r8 + 0x1b]
mov rcx, rbx
mov byte [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x1d7a5
mov rax, qword [0x0002aa20]
mov rdx, rsi
mov rdi, qword [rax + 0x40]
and qword [rdi + 0x13], 0
lea r8, [rdi + 0xa]
mov qword [rdi + 1], rbx
and qword [r8], 0
mov rcx, qword [0x0002aa20]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStackSafe]
mov rcx, qword [0x0002aa20]
test eax, eax
jns 0x1d739
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
and qword [0x0002aa20], 0
jmp 0x1d7a5
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rdi + 0x13], rax
test rax, rax
je 0x1d7a0
call fcn.0001d32c
cmp byte [0x0002a8be], 0
je 0x1d796
cmp qword [0x0002aa20], 0
je 0x1d775
lea rdx, [0x0002d140]
lea rcx, [0x0002cf20]
call fcn.0001bf64
jmp 0x1d77a
mov eax, 0xc000000e
test eax, eax
js 0x1d785
call fcn.0001b268
jmp 0x1d796
mov ecx, 4
call fcn.0001b610
mov byte [0x0002a8be], 0
call fcn.0001e720
call fcn.0001ed40
call fcn.000200b4
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1d7bc
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.00022a90
mov rbx, qword [0x0002aa20]
test rbx, rbx
je 0x1d940
mov rbx, qword [rbx + 0x40]
and qword [rsp + 0xe8], 0
lea r9, [0x0002cf40]
lea rdx, [rsp + 0xe8]
mov r8d, 0x200
mov rcx, rdi
call fcn.0001db74
mov rcx, qword [0x0002aa20]
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 + 0x13], rax
test rax, rax
jne 0x1d87d
mov rax, qword [rbx + 0xa]
mov qword [rbx + 0x13], rax
mov rax, qword [rbx + 0x13]
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 0x1d930
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 0x1d945
mov eax, 0xc000000e
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret