joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009ffc
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov rsi, rcx
mov word [rbp + 0x73], 0x500
xor r15d, r15d
mov dword [rbp - 0x69], 0x101
lea rcx, [rbp - 0x59]
mov dword [rbp + 0x6f], r15d
mov r8b, 2
mov qword [rbp - 0x65], 0x1000000
lea rdx, [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x59]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea edx, [r15 + 1]
lea rcx, [rbp - 0x59]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea rcx, [rbp - 0x59]
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlLengthSid]
lea rcx, [rbp - 0x69]
mov r14d, eax
call qword [sym.imp.ntdll.dll_RtlLengthSid]
add eax, 0x48
lea edx, [r15 + 8]
add r14d, eax
mov rax, qword gs:[0x30]
mov r8d, r14d
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000a113
lea edx, [r15 + 1]
mov rcx, rax
lea rdi, [rax + 0x28]
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
lea edx, [r14 - 0x28]
mov rcx, rdi
lea r8d, [r15 + 2]
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
lea r9, [rbp - 0x59]
mov r8d, 0x1f0001
lea edx, [r15 + 2]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea r9, [rbp - 0x69]
mov rcx, rdi
lea edx, [r15 + 2]
lea r8d, [r15 + 1]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
xor r9d, r9d
mov r8, rdi
mov dl, 1
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
lea rdx, str.KduPort
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x19]
mov dword [rbp - 0x49], 0x30
mov qword [rbp - 0x39], rax
lea rdi, [rbp - 9]
xor eax, eax
mov qword [rbp - 0x41], r15
lea r8, [rbp - 9]
mov dword [rbp - 0x31], 0x40
lea rdx, [rbp - 0x49]
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], r15
lea ecx, [rax + 0x48]
rep stosb byte [rdi], al
mov rcx, rsi
mov qword [rbp + 7], 0xa8
call qword [sym.imp.ntdll.dll_NtAlpcCreatePort]
mov edi, eax
test rbx, rbx
je 0x14000a18d
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xd0]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000a434
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov edx, 8
mov rax, qword gs:[0x30]
lea r8d, [rdx + 0x28]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000a4d5
mov rcx, qword [rsp + 0x60]
lea rax, [0x140004f14]
mov qword [rbx], rax
lea r8, [0x14000a1ac]
lea rax, [0x140004f00]
mov qword [rbx + 0x20], rcx
mov qword [rbx + 8], rax
mov r9, rbx
lea rax, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000a4b7
mov qword [rbx + 0x28], rax
jmp 0x14000a4d5
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14000ac48
Capabilities:
Access pe header
Check for peb beingdebugged flag

Disassembly:
push rdi
sub rsp, 0x3e0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword [rax + 0x58]
mov dword [rsp + 0x30], ecx
lea rax, str.Mon_Apr_17_01:32:36_2023
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x900
mov edx, 1
mov r9d, edx
lea r8d, [rdx + 2]
lea rcx, str.___Kernel_Driver_Utility_v_lu._lu._lu__build__lu__started___c_2020___2023_KDU_Project_r_n___Built_at__s__header_checksum_0x_lX_r_n___Supported_x64_OS_:_Windows_7_and_above_r_n
call fcn.14000220c
lea rdi, [rsp + 0xd0]
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdi, [rsp + 0x1d0]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [rsp + 0x3f0], 0x1030100
movzx ecx, word [rax + 0x58]
or ecx, 0x23040000
mov dword [rsp + 0x3f4], ecx
lea r10, [rsp + 0xd0]
mov r11, qword [rsp + 0x3f0]
mov word [rsp + 0xce], 0x5f2d
xor edi, edi
mov r8b, dil
lea r9, [rsp + 0xc4]
movzx ecx, r8b
lea edx, [r8 + 0x61]
lea eax, [rdx - 0x20]
mov byte [r9 - 0x34], al
mov byte [rsp + rcx + 0xaa], dl
cmp cl, 0xa
jae 0x14000ad48
sub dl, 0x31
mov byte [r9], dl
inc r8b
inc r9
cmp r8b, 0x1a
jl 0x14000ad27
mov ecx, 0xd
mov rax, r11
shr r11, 5
and eax, 0x3f
movsx eax, byte [rsp + rax + 0x90]
mov word [r10], ax
lea r10, [r10 + 2]
sub rcx, 1
jne 0x14000ad59
mov word [r10], di
lea r9, [rsp + 0xd0]
lea r8, str.BaseNamedObjects_ws
mov edx, 0x104
lea rcx, [rsp + 0x1d0]
call fcn.1400024e8
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x70], 0x40
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor r9d, r9d
lea r8, [rsp + 0x58]
mov edx, 0x1f0001
lea rcx, [rsp + 0x3f8]
call qword [sym.imp.ntdll.dll_NtCreateMutant]
mov ecx, 0xb7
cmp eax, 0xc0000035
cmove edi, ecx
cmp edi, ecx
je 0x14000ae25
call fcn.14000a7a8
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x14000ae36
lea rdx, str.____Another_instance_is_running__close_it_before_r_n
mov ecx, 1
call fcn.14000e264
mov edx, edi
lea rcx, str.___Return_value:__d._Bye_bye__r_n
call fcn.14000220c
mov eax, edi
add rsp, 0x3e0
pop rdi
ret
Function at 0x14000cdcc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, r9
mov r15d, ecx
mov r14, qword [rsp + 0x80]
and dword [r14], 0
mov eax, ecx
sub eax, 1
je 0x14000ce2f
sub eax, 1
je 0x14000ce26
sub eax, 1
je 0x14000ce1d
cmp eax, 1
jne 0x14000ce2f
lea rdi, [0x14000bcd0]
jmp 0x14000ce36
lea rdi, [0x14000bf5c]
jmp 0x14000ce36
lea rdi, [0x14000c440]
jmp 0x14000ce36
lea rdi, [0x14000c700]
mov rcx, rdi
call fcn.14000c9d8
mov esi, eax
mov r9d, 0x794
cmp eax, r9d
jbe 0x14000ce66
mov r8d, esi
lea rdx, str.____Bootstrap_code_size_0x_lX_exceeds_limit_0x_lX__abort_r_n
mov ecx, 1
call fcn.14000e264
xor eax, eax
jmp 0x14000cf86
mov r9d, 0x40
mov r8d, 0x3000
mov r12d, 0x800
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000ce5f
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov rcx, rbx
test eax, eax
jne 0x14000ceae
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000ce5f
mov eax, dword [rsp + 0x78]
mov dword [rbx + 0x7a4], eax
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x7b8], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x7a8], rax
movdqa xmm0, xmmword [0x140035e10]
movups xmmword [rbx], xmm0
xor r8d, r8d
cmp r15d, 4
setne r8b
add r8, 0xc
lea rax, [0x14003ad10]
lea rdx, [0x14003ad00]
cmp r15d, 4
cmove rdx, rax
call fcn.140012ca0
lea rcx, str.___Resolving_base_shellcode_import_r_n
call fcn.14000220c
mov r9, r13
mov r8, qword [rsp + 0x70]
mov rdx, rbx
call fcn.14000ca80
test eax, eax
jne 0x14000cf58
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualUnlock]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.____Failed_to_resolve_base_shellcode_import_r_n
mov ecx, 1
call fcn.14000e264
jmp 0x14000ce5f
mov r8, rsi
mov rdx, rdi
lea rcx, [rbx + 0x10]
call fcn.140012ca0
nop
mov dword [r14], esi
mov rax, rbx
jmp 0x14000cf86
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000d090
Capabilities:
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 + 0x10], 0
mov r10, rdx
and r10, 0xfffffffffffff000
mov eax, r8d
sub rax, r10
mov qword [r11 - 0x10], r10
add rax, rdx
lea r8, [r11 + 0x10]
mov qword [r11 - 0x18], rax
neg r9d
sbb eax, eax
xor r9d, r9d
and eax, 2
or rdx, 0xffffffffffffffff
add eax, 2
mov dword [rsp + 0x48], eax
lea rax, [r11 - 0x18]
and dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x10]
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], 0
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x14000d111
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000d116
mov rax, qword [rsp + 0x78]
add rsp, 0x68
ret
Function at 0x14000d49c
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, edx
xor ebp, ebp
mov r14, r8
mov rsi, r9
mov r8, rcx
mov rdx, rcx
mov r10d, ebp
lea r11d, [rdi + 1]
shr r11d, 1
je 0x14000d4ee
movzx eax, word [rdx]
lea rdx, [rdx + 2]
add r10d, eax
mov ecx, r10d
movzx r10d, r10w
shr ecx, 0x10
add r10d, ecx
add r11d, 0xffffffff
jne 0x14000d4d1
mov ebx, r10d
mov rcx, r8
shr ebx, 0x10
add bx, r10w
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000d525
movzx ecx, word [rax + 0x58]
cmp bx, cx
adc cx, bp
sub bx, cx
movzx ecx, word [rax + 0x5a]
cmp bx, cx
adc cx, bp
sub bx, cx
mov ecx, dword [rax + 0x58]
jmp 0x14000d52a
mov ecx, edi
movzx ebx, bp
movzx eax, bx
add eax, edi
test r14, r14
je 0x14000d537
mov dword [r14], ecx
test rsi, rsi
je 0x14000d53e
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
cmp eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
sete al
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000d560
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r14, 0xffffffff80000002
mov rdi, rdx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor esi, esi
test eax, eax
je 0x14000d5c7
lea rax, [rbp + 0x190]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000d5e3
cmp eax, 2
jne 0x14000d6a3
mov eax, 1
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdi
test rdi, rdi
jne 0x14000d5f0
mov rbx, rsi
jmp 0x14000d5fe
cmp word [rdi], si
je 0x14000d5fe
add rbx, 2
cmp word [rbx], si
jne 0x14000d5f5
mov eax, 0x5c
cmp word [rbx - 2], ax
je 0x14000d613
mov word [rbx], ax
add rbx, 2
mov word [rbx], si
mov r15d, 0x104
jmp 0x14000d63d
mov r9, r15
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.14000143c
mov rdx, rdi
mov rcx, r14
call fcn.14000d560
test eax, eax
je 0x14000d67e
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x180], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000d61b
mov rcx, qword [rbp + 0x190]
mov word [rbx - 2], si
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14000d5c7
xor eax, eax
jmp 0x14000d5cc
Function at 0x14000d6ac
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rdi, rcx
mov rbx, r8
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r8d, r8d
test rbx, rbx
je 0x14000d705
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x14000d705
movzx ecx, word [rbx]
lea rax, [rsp + 0x40]
test cx, cx
je 0x14000d701
lea rdx, [rsp + 0x40]
sub rbx, rdx
mov word [rax], cx
add rax, 2
movzx ecx, word [rbx + rax]
test cx, cx
jne 0x14000d6f1
mov word [rax], r8w
lea rax, [rsp + 0x40]
cmp word [rsp + 0x40], r8w
je 0x14000d71c
add rax, 2
cmp word [rax], r8w
jne 0x14000d712
lea rcx, [rsp + 0x40]
mov r9d, 1
sub rax, rcx
lea rdx, [rsp + 0x30]
sar rax, 1
mov rcx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x14000d764
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
mov rbx, rdx
mov qword [rbp + 0x30], rsi
mov rdi, rcx
mov qword [rbp - 8], rsi
mov dword [rbp - 0x10], esi
test rcx, rcx
je 0x14000d7af
xor r9d, r9d
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x14000d7af
mov eax, 0xc00000f0
jmp 0x14000d8f1
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000d7f2
mov ebx, 0xc0000022
jmp 0x14000d8da
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov r14d, 4
mov dword [rbp + 0x20], 1
mov dword [rsp + 0x28], r14d
lea rdx, str.ErrorControl
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000d8c5
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Type
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000d8c5
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Start
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000d8c5
test rdi, rdi
je 0x14000d8c5
movzx eax, word [rbp - 0x10]
lea r9d, [r14 - 2]
mov rcx, qword [rbp + 0x30]
lea rdx, str.ImagePath
add eax, r9d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg ebx
mov ebx, 0xc0000022
sbb ecx, ecx
and ebx, ecx
test rdi, rdi
je 0x14000d8ef
cmp qword [rbp - 8], rsi
je 0x14000d8ef
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000d908
Capabilities:
Install driver
Unload driver

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x250
xor r14d, r14d
mov rbx, rdx
mov rsi, r9
mov bpl, r8b
mov rdx, rcx
test rcx, rcx
je 0x14000da08
test rbx, rbx
jne 0x14000d94b
mov eax, 0xc00000f0
jmp 0x14000da0d
xor eax, eax
mov qword [rsp + 0x20], rdx
lea rdi, [rsp + 0x40]
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r9, str.RegistryMachine
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.1400024e8
test eax, eax
js 0x14000da08
lea rdx, [rsp + 0x64]
mov rcx, rbx
call fcn.14000d764
test eax, eax
js 0x14000da0d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rsi, rsi
je 0x14000d9bc
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x30]
call rsi
test eax, eax
js 0x14000da0d
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test bpl, bpl
je 0x14000d9fd
cmp eax, 0xc000010e
je 0x14000d9e1
cmp eax, 0xc0000035
je 0x14000d9e1
cmp eax, 0x40000000
jne 0x14000da0d
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
js 0x14000da0d
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x14000da0d
cmp eax, 0x40000000
cmove eax, r14d
jmp 0x14000da0d
mov eax, 0xc00000ef
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14000da2c
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x660
mov rdx, rcx
lea rdi, [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x20], rdx
mov ecx, 0x20a
lea r9, str.RegistryMachine
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.1400024e8
test eax, eax
jns 0x14000da77
mov eax, 0xc00000ef
jmp 0x14000dae5
lea rdx, [rsp + 0x64]
xor ecx, ecx
call fcn.14000d764
test eax, eax
js 0x14000dae5
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov ebx, eax
test eax, eax
js 0x14000dae3
xor eax, eax
lea rdi, [rsp + 0x250]
mov ecx, 0x410
lea r8, [rsp + 0x64]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x250]
mov r9d, 0x104
mov edx, 0x208
call fcn.14000143c
lea rdx, [rsp + 0x250]
call fcn.14000d560
mov eax, ebx
mov rbx, qword [rsp + 0x670]
add rsp, 0x660
pop rdi
ret

Function at 0x14000dc90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
call fcn.14000189c
test rax, rax
je 0x14000dcc2
mov rcx, qword gs:[0x30]
mov r8, rax
mov rbx, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14000dd24
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov r12d, r9d
mov r13, r8
mov r15d, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, qword [rsp + 0x2a0]
mov r14, rax
xor eax, eax
mov ebp, eax
test rbx, rbx
je 0x14000dd6b
mov dword [rbx], eax
lea rdi, [rsp + 0x40]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov r9d, 0x104
xor edx, edx
lea rax, [rsp + 0x2a0]
mov rcx, r14
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140001284
xor r8d, r8d
test eax, eax
je 0x14000de1d
cmp dword [rsp + 0x2a0], r8d
je 0x14000de1d
lea rcx, [rsp + 0x40]
mov rax, rsi
cmp rcx, rsi
je 0x14000dde3
test rsi, rsi
je 0x14000dddd
lea rdx, [rsp + 0x40]
sub rdx, rsi
movzx ecx, word [rdx + rax]
movzx edi, word [rax]
lea rax, [rax + 2]
test cx, cx
je 0x14000ddd9
cmp cx, di
je 0x14000ddc4
sub ecx, edi
je 0x14000dde3
inc ebp
mov edx, ebp
jmp 0x14000dd7f
test r15d, r15d
je 0x14000de16
lea rax, [rsp + 0x2a0]
mov r9d, r12d
lea edx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r8, r13
mov rcx, r14
call fcn.140001284
test rbx, rbx
je 0x14000de1f
mov ecx, dword [rsp + 0x2a0]
mov dword [rbx], ecx
jmp 0x14000de1f
mov eax, 1
jmp 0x14000de1f
xor eax, eax
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000def0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rcx], 0
lea rdi, [rbp - 0x20]
and dword [rbp + 0x20], 0
mov r15, rcx
and qword [rdx], 0
xor eax, eax
mov word [rbp + 0x24], 0x500
mov ebx, 8
mov r14, rdx
mov edx, ebx
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea r8d, [rbx + 0x20]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x14000df62
mov edi, 0xc000009a
jmp 0x14000e0b5
mov ecx, 1
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
mov ecx, 2
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
add eax, 0x18
mov edx, ebx
add edi, eax
mov rax, qword gs:[0x30]
mov r8d, edi
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x14000dfad
mov edi, 0xc000009a
jmp 0x14000e099
mov r8d, 2
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
mov edi, eax
test eax, eax
js 0x14000e07d
mov r8b, 1
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edi, 0x10000000
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x12
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov r8b, 2
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edx, 1
lea rcx, [rbp - 0x20]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
mov edi, eax
test eax, eax
js 0x14000e07d
xor r9d, r9d
mov r8, rbx
mov dl, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
mov edi, eax
test eax, eax
jns 0x14000e0b9
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
xor esi, esi
mov qword [r15], rsi
mov eax, edi
mov qword [r14], rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret