joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f0e8
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 [0x0002ac9c], r12b
je 0x1f12d
inc byte [rdx + 0x43]
lea rax, [rdi + 0x48]
mov qword [rdx + 0xb8], rax
jmp 0x1f30a
cmp byte [rdi], r12b
jne 0x1f2fc
mov rcx, qword [rdi + 0x30]
call fcn.00020220
cmp al, r12b
jne 0x1f2fc
mov qword [rsp + 0x28], r12
mov word [rsp + 0x20], r12w
mov word [rsp + 0x22], r12w
mov rbp, qword [rdi + 0x30]
lea rdx, [0x0002d090]
lea rcx, [rsp + 0x30]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlUpcaseUnicodeString]
cmp eax, r12d
jl 0x1f2fc
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.00020320
cmp eax, r12d
jne 0x1f2fc
lea rdx, [0x0002d0a0]
lea rcx, [rsp + 0x20]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
mov r13d, 0x400
cmp eax, r12d
jne 0x1f25d
mov r8d, 0x48524452
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
cmp rax, r12
je 0x1f25d
mov rcx, qword [rdi + 0x30]
mov rcx, qword [rcx + 0x60]
cmp rcx, r12
je 0x1f1ec
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.00024250
lea rdx, [0x0002ce50]
mov rcx, qword [rdi + 0x30]
add rcx, 0x58
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov rcx, qword [rsp + 0x28]
cmp rcx, r12
je 0x1f23f
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 0x1f314
cmp byte [0x0002ad39], r12b
je 0x1f2ea
lea rdx, [0x0002d0b0]
lea rcx, [rsp + 0x20]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
cmp eax, r12d
jne 0x1f2ea
mov r8d, 0x48524452
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
cmp rax, r12
je 0x1f2ea
mov rcx, qword [rdi + 0x30]
mov rcx, qword [rcx + 0x60]
cmp rcx, r12
je 0x1f2b2
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.00024250
lea rdx, [0x0002d0c0]
jmp 0x1f21f
mov rcx, qword [rsp + 0x28]
cmp rcx, r12
je 0x1f2fc
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 0x1f4b4
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 [0x0002ad40], rax
cmp rax, rdi
je 0x1f696
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.00024250
mov rcx, qword [0x0002ad48]
lea rax, [0x0002ce60]
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 0x1f54f
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 0x1f5db
mov rcx, qword [0x0002ad40]
cmp rcx, rdi
je 0x1f5cf
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x0002ad40], rdi
jmp 0x1f696
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 0x1f5bb
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 [0x0002ad40]
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov dword [0x0002ad3c], r11d
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, edi
jl 0x1f5bb
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 0x1f6b0
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.0001f334
mov rcx, rbx
mov rsi, rax
call fcn.0001e054
test rsi, rsi
je 0x1f909
mov rcx, rbx
call fcn.0001e9dc
test eax, eax
js 0x1f909
cmp byte [0x0002ad39], 0
je 0x1f706
mov ecx, 1
call fcn.0001e108
mov rcx, rax
call fcn.0001ed38
mov edx, 0xe0
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x1f83b
xor edx, edx
mov r8d, 0xe0
mov rcx, rax
call fcn.00024250
lea rax, [0x00020f88]
mov dword [rdi], 0xe0
mov qword [rdi + 8], rax
lea rax, [0x00021058]
mov qword [rdi + 0x10], rax
lea rax, [0x00021128]
mov qword [rdi + 0x18], rax
lea rax, [0x000211f8]
mov qword [rdi + 0x20], rax
lea rax, [0x000212a8]
mov qword [rdi + 0x28], rax
lea rax, [0x00021358]
mov qword [rdi + 0x30], rax
lea rax, [0x00021440]
mov qword [rdi + 0x38], rax
lea rax, [0x00021504]
mov qword [rdi + 0x40], rax
lea rax, [0x000215a0]
mov qword [rdi + 0x48], rax
lea rax, [0x00021650]
mov qword [rdi + 0x50], rax
lea rax, [0x0002173c]
mov qword [rdi + 0x68], rax
lea rax, [0x00021774]
mov qword [rdi + 0x70], rax
lea rax, [0x00021824]
mov qword [rdi + 0x80], rax
lea rax, [0x000218f0]
mov qword [rdi + 0x88], rax
lea rax, [0x0002197c]
mov qword [rdi + 0x90], rax
lea rax, [0x00021a48]
mov qword [rdi + 0x98], rax
lea rax, [0x00021ae4]
mov qword [rdi + 0xa0], rax
lea rax, [0x00021bec]
mov qword [rdi + 0xa8], rax
lea rax, [0x00021cf4]
mov qword [rdi + 0xb0], rax
lea rax, [0x00021d80]
mov qword [rdi + 0xb8], rax
lea rax, [0x00021e1c]
mov qword [rdi + 0xc0], rax
mov qword [rbx + 0x50], rdi
mov r9d, dword [rsi + 0x48]
xor r8d, r8d
lea rax, [0x0002ad48]
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 0x1f909
mov rax, qword [0x0002ad48]
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 [0x0002ad48]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStackSafe]
mov rcx, qword [0x0002ad48]
test eax, eax
jns 0x1f8b3
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
and qword [0x0002ad48], 0
jmp 0x1f909
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1f909
call fcn.0001f4b4
cmp byte [0x0002ad39], 0
je 0x1f8ff
lea rdx, [0x0002d080]
lea rcx, [0x0002ce60]
call fcn.0001e540
test eax, eax
js 0x1f8ee
call fcn.0001ddf8
jmp 0x1f8ff
mov ecx, 4
call fcn.0001e108
mov byte [0x0002ad39], 0
call fcn.00020660
call fcn.00020c44
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1f920
Capabilities:
Delete file
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xc0
mov rbx, qword [0x0002ad48]
and qword [rax + 0x18], 0
test rbx, rbx
je 0x1fa87
mov rbx, qword [rbx + 0x40]
and qword [rax + 0x20], 0
lea rdi, [0x0002ce60]
lea r9, [0x0002ce80]
lea rdx, [rax + 0x20]
mov rcx, rdi
mov r8d, 0x200
call fcn.0001faa4
mov rcx, qword [0x0002ad48]
and qword [rsp + 0x98], 0
and qword [rsp + 0xb0], 0
and qword [rsp + 0xb8], 0
mov dword [rsp + 0x90], 0x30
mov dword [rsp + 0xa8], 0x40
mov qword [rsp + 0xa0], rdi
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1f9c4
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
mov ebx, 1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x800
and qword [rsp + 0x60], 0
and dword [rsp + 0x58], 0
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x1060
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 4
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0xe0]
mov edx, 0x10000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
test eax, eax
js 0x1fa77
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 0x1fa8c
mov eax, 0xc000000e
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1faa4
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 [0x0002ad48]
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 0x1fb11
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 0x1fc99
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 0x1fc8b
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
Function at 0x1fcbc
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 [0x0002ad48]
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 0x1fd29
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], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov ebx, eax
test eax, eax
js 0x1feb1
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 0x1fea3
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
Function at 0x220dc
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
and qword [rax + 0x20], 0
mov edi, r8d
mov ebx, edx
call fcn.000221f0
and qword [0x0002ad70], 0
lea rcx, [0x0002cde0]
mov edx, 1
mov dword [0x00029b30], ebx
mov dword [0x00029b34], edi
mov byte [0x0002ad3a], 0
call qword [sym.imp.ntoskrnl.exe_KeInitializeTimerEx]
lea rcx, [0x0002cde0]
xor r9d, r9d
mov rdx, 0xffffffffca5b1700
mov r8d, 0x15f90
call qword [sym.imp.ntoskrnl.exe_KeSetTimerEx]
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [0x00021f80]
mov ebx, 0x1fffff
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x98]
xor r9d, r9d
mov edx, ebx
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x200
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x221dc
mov rcx, qword [rsp + 0x98]
and qword [rsp + 0x28], 0
lea rax, [0x0002ad70]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x98]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x22268
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x80
xor ebx, ebx
mov qword [r11 + 0x10], rbx
cmp byte [0x0002ad39], bl
jne 0x223c3
mov dword [rsp + 0x50], 0x30
lea rax, [0x0002daf0]
mov qword [r11 - 0x30], rbx
mov dword [rsp + 0x68], 0x200
mov qword [r11 - 0x28], rax
lea rax, [r11 + 8]
mov qword [r11 - 0x58], rax
lea r8, [r11 - 0x38]
lea rcx, [r11 + 0x10]
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], ebx
mov qword [r11 - 0x18], rbx
mov qword [r11 - 0x10], rbx
mov qword [r11 - 0x68], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp qword [rsp + 0x98], rbx
je 0x223c3
lea rdx, [0x000251d0]
lea rcx, [rsp + 0x40]
mov ebx, 1
mov dword [rsp + 0x90], ebx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x98]
lea edi, [rbx + 3]
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00024400]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], ebx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x000251f0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], ebx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x30064
Capabilities:
Create device object
Create thread

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00030008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.000136ec
Function at 0x2fc4d9d40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4da742
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4da7da
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4da7be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4da7b2
cmp qword [rbp - 0x10], 0
je 0x2fc4da7b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4da778
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da7db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da8e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4da908
mov eax, 0
jmp 0x2fc4da956
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4da931
mov eax, 0
jmp 0x2fc4da956
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4da951
mov eax, 0
jmp 0x2fc4da956
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da95c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4da9da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da9d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4da9d1
mov rax, qword [rbp - 8]
jmp 0x2fc4da9ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4da9a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4140
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d4b42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d4bda
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d4bbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d4bb2
cmp qword [rbp - 0x10], 0
je 0x2fc4d4bb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4b78
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d4bdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4ce0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4d08
mov eax, 0
jmp 0x2fc4d4d56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4d31
mov eax, 0
jmp 0x2fc4d4d56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4d51
mov eax, 0
jmp 0x2fc4d4d56
mov eax, 1
add rsp, 0x20
pop rbp
ret