joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039a20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140039af3
cmp byte [rcx + 0x71], 0
je 0x140039af3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140039aef
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140039ab4
sub eax, 1
je 0x140039ab8
cmp eax, 2
jne 0x140039aef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140074890
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140039ae6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140039aef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140039a9c
xor al, al
jmp 0x140039a9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140074890
add rsp, 0x60
pop rbx
ret
Function at 0x140075594
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400755de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400755de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400755de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400755de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400755de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400755e0
xor al, al
add rsp, 0x28
ret
Function at 0x1400010a8
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140024ed8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
lea rcx, [rbp - 0x80]
xor edx, edx
mov qword [rsp + 0x58], r14
mov r8d, 0x20a
call fcn.140018240
mov r9, rbx
mov qword [rsp + 0x60], r14
lea r8, [0x140018700]
mov edx, 0x105
lea rcx, [rbp - 0x80]
call sub.ntoskrnl.exe_swprintf_s
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.140006be4
mov ebx, eax
test eax, eax
js 0x14000121b
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x58]
call fcn.140006844
mov ebx, eax
test eax, eax
js 0x140001210
cmp qword [rsp + 0x58], 0x1000
mov ebx, 0xc0000001
jle 0x140001210
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x746b734b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140001210
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x1000
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140001205
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140001205
lfence
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
cmp dword [rax], 0x4550
jne 0x140001205
movzx ecx, word [rax + 0x18]
mov edx, 0x20b
cmp cx, dx
jne 0x1400011ee
cmp word [rax + 6], r14w
je 0x140001205
mov byte [rsi], 1
jmp 0x140001202
mov edx, 0x10b
cmp cx, dx
jne 0x140001205
cmp word [rax + 6], r14w
je 0x140001205
mov byte [rsi], r14b
mov ebx, r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140017820
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140001330
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140024ed8]
xor rax, rsp
mov qword [rbp + 0x28], rax
and qword [rsp + 0x60], 0
lea r9, [rsp + 0x70]
xor eax, eax
mov qword [rbp - 0x70], rcx
and dword [rsp + 0x50], eax
lea rcx, [rsp + 0x68]
and qword [rsp + 0x48], rax
xorps xmm0, xmm0
and qword [rbp - 0x78], rax
mov rsi, rdx
mov dword [rsp + 0x40], 0x20
mov edx, 0x80
mov dword [rsp + 0x38], 1
mov r14, r8
mov dword [rsp + 0x30], 7
lea r8, [rbp - 0x80]
mov dword [rsp + 0x28], edx
and qword [rsp + 0x20], rax
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x20], eax
mov dword [rbp - 0x80], 0x30
mov dword [rbp - 0x68], 0x240
movdqu xmmword [rbp - 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov edi, eax
test eax, eax
js 0x1400014b9
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x746b734b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1400014a1
lea rcx, [rbp - 0x50]
call fcn.140009690
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x3e8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
test eax, eax
js 0x140001496
lfence
mov r8d, dword [rsp + 0x78]
lea rcx, [rbp - 0x50]
mov rdx, rbx
call fcn.140009f24
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
add qword [rsp + 0x60], 0x3e8
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], 0x3e8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
test eax, eax
jns 0x14000143c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call fcn.140009604
mov byte [rsp + 0x30], 1
lea r8, [rbp + 0x14]
mov byte [rsp + 0x28], 0
mov r9d, 8
mov rdx, rsi
mov byte [rsp + 0x20], 0
xor ecx, ecx
call fcn.140011bbc
mov byte [rsp + 0x30], 1
lea r8, [rbp + 0x10]
mov byte [rsp + 0x28], 0
mov r9d, 0x10
xor edx, edx
mov byte [rsp + 0x20], 0
mov rcx, r14
call fcn.140011bbc
mov eax, edi
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140017820
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400016a0
Capabilities:
Encode data using xor

Disassembly:
mov al, 0x58
test rdx, rdx
je 0x1400016b4
xor byte [rcx], al
inc al
inc rcx
sub rdx, 1
jne 0x1400016a7
ret
Function at 0x1400016b8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140024ed8]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, r8
mov r14d, edx
mov rsi, rcx
xor r15d, r15d
xor edx, edx
mov qword [rsp + 0x60], r15
mov r8d, 0x258
lea rcx, [rbp - 0x40]
mov bl, r9b
call fcn.140018240
lea rcx, [rbp - 0x40]
cmp bl, 1
jne 0x140001721
mov r8, rdi
mov edx, 0x12c
call sub.ntoskrnl.exe_wcscpy_s
jmp 0x140001742
mov ebx, 0x12c
lea r8, [0x1400186f0]
mov edx, ebx
call sub.ntoskrnl.exe_wcscpy_s
mov r8, rdi
lea rcx, [rbp - 0x40]
mov edx, ebx
call sub.ntoskrnl.exe_wcscat_s
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], r15d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], r15
lea r9, [rsp + 0x78]
mov dword [rsp + 0x40], 0x20
lea r8, [rbp - 0x78]
mov dword [rsp + 0x38], 5
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], 7
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x82
mov edx, 0x40000000
mov qword [rsp + 0x20], r15
mov dword [rbp - 0x78], 0x30
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x60], 0x240
mov qword [rbp - 0x68], rax
movdqu xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140001802
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov dword [rsp + 0x30], r14d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14000180c
cmp ebx, 0xc0000043
cmove ebx, r15d
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140017820
mov rbx, qword [rsp + 0x378]
add rsp, 0x330
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003680
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140024ed8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [sym.imp.ntoskrnl.exe_InitSafeBootMode]
xor ebp, ebp
mov rsi, rdx
mov rbx, rcx
cmp dword [rax], ebp
ja 0x140003776
test rcx, rcx
je 0x140003776
mov rdi, qword [rcx + 0x28]
test rdi, rdi
je 0x140003776
or dword [rdi + 0x68], 0x20
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140011da4
mov qword [0x140025320], rax
test rax, rax
je 0x140003776
lea rcx, [rdi + 0x48]
lea rdi, [0x140025328]
mov rdx, rdi
lea r8, [0x140025350]
call fcn.140001330
mov r9, rdi
lea r8, [0x1400189f0]
lea edx, [rbp + 0x32]
lea rcx, [rsp + 0x50]
call sub.ntoskrnl.exe_swprintf_s
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x1400253f8]
xor edx, edx
mov qword [rsp + 0x30], rax
lea r9d, [rbp + 0x22]
mov byte [rsp + 0x28], bpl
lea r8, [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jns 0x14000379e
mov rcx, qword [0x140025320]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x140025320], rbp
mov eax, 0xc0000001
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140017820
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x1400253f8]
lea r8, [0x140018700]
mov r9, rdi
lea rcx, [0x140025380]
mov edx, 0x32
or dword [rax + 0x30], 4
call sub.ntoskrnl.exe_swprintf_s
lea rdx, [0x140025380]
lea rcx, [0x1400253e8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [0x1400253e8]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
jns 0x1400037f7
mov word [0x1400253e8], bp
jmp 0x140003812
lfence
mov qword [rbx + 0x68], rbp
call fcn.14001262c
mov rdx, rsi
mov rcx, rbx
call fcn.140001a78
test eax, eax
jns 0x14000383c
lfence
mov rcx, qword [0x140025320]
call fcn.140007fb8
mov rcx, qword [0x140025320]
call fcn.140008488
mov rcx, rbx
call fcn.140003860
xor eax, eax
jmp 0x14000377b
mov rcx, qword [0x140025320]
call fcn.140007fb8
mov rcx, qword [0x140025320]
call fcn.140008488
jmp 0x140003835

Function at 0x1400040c4
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
xor eax, eax
cmp byte [0x140025410], al
jne 0x140004122
xor r8d, r8d
mov byte [0x140025410], 1
xor edx, edx
lea rcx, [0x140025428]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
and qword [rsp + 0x30], 0
lea rax, [0x140003bc0]
mov qword [rsp + 0x28], rax
lea rcx, [0x140025408]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jns 0x140004122
lfence
add rsp, 0x48
ret
Function at 0x14000481c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140024ed8]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor r10d, r10d
mov dword [rsp], 0x43727453
mov r14, rcx
mov dword [rsp + 4], 0x74707972
mov eax, r10d
lea rcx, [rsp + 0x10]
mov r11, r8
mov esi, edx
mov ebx, 0x100
mov byte [rcx], al
inc eax
inc rcx
cmp eax, ebx
jb 0x140004871
test r8, r8
je 0x140004886
test r9d, r9d
jne 0x140004890
lea r11, [rsp]
mov r9d, 8
mov r8d, r10d
lea rdi, [rbp + 0x20]
mov eax, r8d
xor edx, edx
div r9d
mov eax, r9d
inc r8d
sub eax, edx
dec eax
mov cl, byte [rax + r11]
mov byte [rdi], cl
inc rdi
cmp r8d, ebx
jb 0x140004897
mov r9d, r10d
mov r8, r10
movsx edx, byte [rsp + r8 + 0x10]
movsx ecx, byte [rbp + r8 + 0x20]
add ecx, r9d
add ecx, edx
movzx r9d, cl
mov al, byte [rsp + r9 + 0x10]
mov byte [rsp + r8 + 0x10], al
inc r8
mov byte [rsp + r9 + 0x10], dl
sub rbx, 1
jne 0x1400048bd
mov ebx, r10d
mov r11d, r10d
test esi, esi
jle 0x140004939
lea eax, [rbx + 1]
mov r8d, r11d
movzx ebx, al
inc r11d
movsx r9d, byte [rsp + rbx + 0x10]
lea eax, [r10 + r9]
movzx r10d, al
mov al, byte [rsp + r10 + 0x10]
mov byte [rsp + rbx + 0x10], al
mov byte [rsp + r10 + 0x10], r9b
add r9b, byte [rsp + rbx + 0x10]
movzx eax, r9b
mov dl, byte [rsp + rax + 0x10]
xor dl, byte [r8 + r14]
xor dl, r9b
mov byte [r8 + r14], dl
cmp r11d, esi
jl 0x1400048f4
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140017820
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000663c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and dword [rbp - 0x30], 0
mov r14, r9
and dword [rbp + 0x30], 0
mov r12, r8
and qword [rbp - 0x20], 0
mov r15, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
je 0x140006821
test rdx, rdx
je 0x140006821
lea rdx, [rbp - 0x20]
call fcn.140006844
mov ebx, eax
test eax, eax
js 0x14000681d
mov eax, 0x1000
cmp qword [rbp - 0x20], rax
jle 0x14000681d
mov r8d, 0x746b734b
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x14000681d
lfence
and qword [rbp - 0x28], 0
mov ebx, 0x1000
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.140018240
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x28]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebx
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rdi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140006812
cmp eax, 0x103
je 0x140006812
cmp dword [rbp - 0x10], 0
jbe 0x140006812
lfence
mov r9, r12
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x30]
mov rcx, rdi
lea rdx, [rbp - 0x30]
call fcn.140008be0
mov ebx, eax
test eax, eax
js 0x140006812
mov eax, 0xaaaaaaab
xor ecx, ecx
mul dword [rbp + 0x30]
mov eax, dword [rbp - 0x30]
mov r8d, 0x746b734b
shr edx, 1
add eax, edx
mov qword [rbp - 0x28], rax
mov eax, 0xcccccccd
mul edx
shr edx, 4
mov dword [rbp + 0x30], edx
add rdx, 2
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
test rax, rax
je 0x140006812
lfence
mov r8d, dword [rbp + 0x30]
xor edx, edx
add r8, 2
mov rcx, rax
call fcn.140018240
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x28]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
mov eax, dword [rbp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x30], eax
xor r8d, r8d
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rsi
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140006807
cmp eax, 0x103
je 0x140006807
cmp dword [rbp - 0x10], 0
jle 0x140006807
lfence
mov edx, dword [rbp - 0x10]
mov r8, r15
mov rcx, r14
call fcn.1400082d8
mov ebx, eax
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140006826
mov eax, 0xc0000001
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x140006844
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
je 0x140006886
test rdx, rdx
je 0x140006886
xorps xmm0, xmm0
mov dword [rax - 0x48], 5
mov r9d, 0x18
lea r8, [rax - 0x28]
lea rdx, [rax - 0x38]
movups xmmword [rax - 0x38], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov rcx, qword [rsp + 0x48]
mov qword [rbx], rcx
jmp 0x14000688b
mov eax, 0xc0000001
add rsp, 0x60
pop rbx
ret
Function at 0x140007768
Capabilities:
Query or enumerate registry value

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, 0x40
and qword [rbp - 8], 0
mov r12, r8
and qword [rbp - 0x10], 0
lea r8, [rbp - 8]
mov r13b, dl
mov r15, rcx
lea rdx, [0x140019250]
xor ecx, ecx
mov ebx, 0xc0000001
call fcn.1400173b0
test eax, eax
jns 0x1400077bd
lfence
jmp 0x14000792d
xor r14d, r14d
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x48]
and dword [rbp + 0x48], 0
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, r14d
and dword [rsp + 0x20], 0
lea r8d, [r9 + 1]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov esi, eax
cmp eax, 0x80000005
je 0x1400077fa
cmp eax, 0xc0000023
jne 0x140007889
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140007889
lea rdx, [rax + 2]
xor ecx, ecx
mov r8d, 0x746b734b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140007889
mov r8d, dword [rbp + 0x48]
xor edx, edx
add r8, 2
mov rcx, rax
call fcn.140018240
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rbp + 0x48]
mov r8d, 1
mov edx, r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov esi, eax
test eax, eax
js 0x14000787e
lfence
mov edx, dword [rdi + 8]
lea r9, [rbp - 0x10]
add rdx, rdi
lea r8, [0x1400192b0]
xor ecx, ecx
call fcn.140017028
mov ebx, eax
test eax, eax
jns 0x140007899
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test esi, esi
js 0x14000791d
inc r14d
jmp 0x1400077c0
lfence
test r15, r15
je 0x1400078f5
mov rax, qword [rbp - 0x10]
xor ecx, ecx
mov r8d, 0x746b734b
mov edx, dword [rax + 8]
add rdx, 2
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [r15], rax
test rax, rax
je 0x1400078ee
mov rcx, qword [rbp - 0x10]
xor edx, edx
mov r8d, dword [rcx + 8]
mov rcx, rax
add r8, 2
call fcn.140018240
mov rdx, qword [rbp - 0x10]
mov rcx, qword [r15]
mov r8d, dword [rdx + 8]
add rdx, 0xc
call fcn.140018440
jmp 0x1400078f5
mov ebx, 0xc000000d
mov esi, ebx
mov ecx, dword [rdi + 8]
mov r8, r12
add rcx, rdi
mov dl, r13b
call fcn.1400079d0
mov rcx, qword [rbp - 0x10]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test ebx, ebx
lea rcx, [rbp - 8]
cmovns ebx, esi
call fcn.140016b00
mov eax, ebx
lea r11, [rsp + 0x40]
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 0x140007bb0
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [rbp + 0x30]
and qword [rbp - 0x40], 0
and qword [rbp - 0x38], 0
and qword [rbp - 0x30], 0
mov qword [rbp - 0x18], r8
xor r8d, r8d
mov qword [rbp - 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x10], r9
lea edx, [r8 + 1]
mov qword [rbp - 8], rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rax, [rbp - 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x30]
lea rax, [0x140007c60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x1fffff
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x140007c4a
and qword [rsp + 0x20], 0
lea rcx, [rbp - 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x80
pop rbp
ret

Function at 0x140007fb8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rdx, [rbp - 0x40]
call fcn.14000804c
xor ebx, ebx
test eax, eax
js 0x14000803f
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140008035
cmp word [rbp - 0x40], bx
jbe 0x140008035
cmp word [rax], bx
je 0x140008035
lea rax, [rbp - 0x40]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x28], rbx
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x18], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
test eax, eax
jns 0x140008035
cmp word [rbp - 0x40], 0xa
jbe 0x140008035
mov rdx, qword [rbp - 0x38]
cmp word [rdx + 0xa], 0x3a
lea rcx, [rdx + 8]
cmovne rcx, rdx
call fcn.1400091c8
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x14000809c
Capabilities:
Install driver

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
push rdi
lea rbp, [rax - 0x388]
sub rsp, 0x470
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x20a
call fcn.140018240
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140018240
lea rax, [rbp + 0x3a0]
mov r9, rbx
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov edx, 0x105
lea rcx, [rbp + 0x160]
call sub.ntoskrnl.exe__vsnwprintf_s
test eax, eax
je 0x1400081dc
mov r9, rdi
lea r8, [0x140019320]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call sub.ntoskrnl.exe_swprintf_s
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.140016b28
test eax, eax
js 0x1400081dc
mov rcx, qword [rsp + 0x30]
lea r8, [0x140019390]
mov ebx, 1
xor edx, edx
mov r9d, ebx
call fcn.140017648
mov rcx, qword [rsp + 0x30]
lea r8, [0x1400193b0]
mov r9d, ebx
xor edx, edx
call fcn.140017648
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 2]
lea r8, [0x1400193c0]
xor edx, edx
call fcn.140017648
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x160]
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
lea r8, [0x140019300]
xor edx, edx
call fcn.140017710
lea rcx, [rsp + 0x30]
call fcn.140016b00
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwLoadDriver]
add rsp, 0x470
pop rdi
pop rbx
pop rbp
ret