joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001da55
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140024dd0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x140083341]
call fcn.14001df69
cmp qword [rbp + 0x160], 0
je 0x140024e26
mov rax, qword [rbp + 0x160]
mov byte [rax], 0
cmp qword [rbp + 0x168], 0
je 0x140024e3a
mov rax, qword [rbp + 0x168]
mov byte [rax], 0
cmp qword [rbp + 0x170], 0
je 0x140024e4e
mov rax, qword [rbp + 0x170]
mov byte [rax], 0
mov dword [rbp + 0x68], 8
lea r9, [rbp + 0x24]
mov r8d, 8
lea rdx, [rbp + 0x68]
mov ecx, 0x67
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x140024f4f
mov eax, dword [rbp + 0x6c]
and eax, 1
test eax, eax
je 0x140024e9d
mov eax, dword [rbp + 0x6c]
and eax, 0x400
test eax, eax
je 0x140024e9d
mov dword [rbp + 0x134], 1
jmp 0x140024ea7
mov dword [rbp + 0x134], 0
movzx eax, byte [rbp + 0x134]
mov byte [rbp + 4], al
cmp qword [rbp + 0x160], 0
je 0x140024ec8
mov rax, qword [rbp + 0x160]
movzx ecx, byte [rbp + 4]
mov byte [rax], cl
cmp qword [rbp + 0x168], 0
je 0x140024f0d
movzx eax, byte [rbp + 4]
cmp eax, 1
jne 0x140024ef3
mov eax, dword [rbp + 0x6c]
and eax, 0x1000
test eax, eax
je 0x140024ef3
mov dword [rbp + 0x134], 1
jmp 0x140024efd
mov dword [rbp + 0x134], 0
mov rax, qword [rbp + 0x168]
movzx ecx, byte [rbp + 0x134]
mov byte [rax], cl
cmp qword [rbp + 0x170], 0
je 0x140024f49
mov eax, dword [rbp + 0x6c]
and eax, 0x2000
test eax, eax
jbe 0x140024f2f
mov dword [rbp + 0x134], 1
jmp 0x140024f39
mov dword [rbp + 0x134], 0
mov rax, qword [rbp + 0x170]
movzx ecx, byte [rbp + 0x134]
mov byte [rax], cl
mov al, 1
jmp 0x140024f62
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14005c220]
call fcn.14001dcb2
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x14001da69
Capabilities:
Set registry value

Disassembly:
jmp 0x14004a910
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
lea rcx, [0x1400854e4]
call fcn.14001df69
mov rdx, qword [rbp + 0x1d8]
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rdx, qword [rbp + 0x1e0]
lea rcx, [rbp + 0x60]
call fcn.14001d267
lea rcx, [rbp + 0x60]
call fcn.14001d325
lea rax, [rax + rax + 2]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14006bd00]
call fcn.14001dcb2
mov rax, rdi
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x14001da7d
Capabilities:
Delete file

Disassembly:
jmp 0x140048b20
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
lea rcx, [0x1400854e4]
call fcn.14001df69
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov rcx, qword [rbp + 0x1e0]
call fcn.14001d325
lea rax, [rax + rax + 0x800]
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.14001d2da
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140048bb4
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140048d25
movzx eax, byte [rbp + 0x1e8]
test eax, eax
je 0x140048c1d
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
je 0x140048c18
mov r8d, 0x104
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140048c18
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rbp + 4], eax
jmp 0x140048d16
mov r8d, 0x104
mov rdx, qword [rbp + 0x88]
lea rcx, str._temp__
call fcn.14001d5b4
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x140048c51
cmp dword [rbp + 0xe4], 0x104
jbe 0x140048c61
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140048d16
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x68], rax
mov byte [rsp + 0x20], 1
mov r9d, 0xf62e6ce0
lea r8, [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov ecx, 0x7d1
call fcn.14001d1f9
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140048d0b
mov rdx, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
call fcn.14001dec9
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x1b8], rax
mov ecx, dword [rbp + 0x24]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8d, ecx
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x88]
call fcn.14001d6f9
mov rcx, qword [rbp + 0x1b8]
cmp rcx, rax
jne 0x140048d09
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140048d09
mov dword [rbp + 4], 1
jmp 0x140048d16
mov ecx, 0x3ee
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x88]
call fcn.14001da19
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14006bbb0]
call fcn.14001dcb2
mov rax, rdi
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x14001daaf
Capabilities:
Parse pe header

Disassembly:
jmp 0x140053570
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140053590
xor al, al
jmp 0x140053611
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400535a3
xor al, al
jmp 0x140053611
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400535cd
xor al, al
jmp 0x140053611
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400535e1
xor al, al
jmp 0x140053611
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400535f3
xor al, al
jmp 0x140053611
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14005360f
xor al, al
jmp 0x140053611
mov al, 1
add rsp, 0x38
ret

Function at 0x14001daeb
Capabilities:
Map section object

Disassembly:
jmp 0x14002abb0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
lea rcx, [0x140083552]
call fcn.14001df69
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x68], 0
lea rdx, [rbp + 0x24]
mov rax, qword [rbp + 0x160]
mov ecx, dword [rax + 8]
call fcn.14001d45b
mov eax, dword [rbp + 0x24]
add rax, 0xfff
and rax, 0xfffffffffffff000
mov qword [rbp + 0x48], rax
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x1000
xor r9d, r9d
lea r8, [rbp + 0x68]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x14002aced
mov rax, qword [rbp + 0x160]
mov eax, dword [rax + 8]
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 1
je 0x14002acc1
cmp dword [rbp + 0x134], 2
je 0x14002aca6
cmp dword [rbp + 0x134], 3
je 0x14002acc1
jmp 0x14002acc1
mov rax, qword [rbp + 0x68]
mov r8, qword [rax + 0x10]
lea rdx, str.___Shellcode_result__system_worker:_0x_p_r_n
mov ecx, 2
call fcn.14001d46f
jmp 0x14002acda
mov rax, qword [rbp + 0x68]
mov r8d, dword [rax + 8]
lea rdx, str.___Shellcode_result:_NTSTATUS__0x_lX__r_n
mov ecx, 2
call fcn.14001d46f
mov rdx, qword [rbp + 0x68]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x14002ad02
mov r8d, dword [rbp + 4]
lea rdx, str.____Cannot_map_shellcode_section__NTSTATUS___lX__r_n
mov ecx, 1
call fcn.14001d46f
lea rcx, [rbp - 0x50]
lea rdx, [0x14005dfe0]
call fcn.14001dcb2
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14001db4a
Capabilities:
Disable driver code integrity
Get common file path

Disassembly:
jmp 0x14002d140
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x778]
lea rcx, [0x140083657]
call fcn.14001df69
mov qword [rbp + 8], 0
mov qword [rbp + 0x48], 0
cmp dword [rbp + 0x750], 0x23f0
jae 0x14002d1ad
lea rax, str.ntoskrnl.exe
mov qword [rbp + 0x68], rax
lea rax, str.g_CiEnabled
mov qword [rbp + 0x88], rax
jmp 0x14002d1c6
lea rax, str.CI.dll
mov qword [rbp + 0x68], rax
lea rax, str.g_CiOptions
mov qword [rbp + 0x88], rax
call fcn.14001d546
test eax, eax
jne 0x14002d1d6
xor eax, eax
jmp 0x14002d31c
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov word [rbp + rax + 0xd0], cx
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14002d206
xor eax, eax
jmp 0x14002d31c
lea rdx, [0x14005fb28]
lea rcx, [rbp + 0xd0]
call fcn.14001dec9
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0xd0]
call fcn.14001dec9
mov r8d, 1
xor edx, edx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x14002d2fa
mov rdx, qword [rbp + 0x68]
lea rcx, str.___Module___ws__loaded_for_symbols_lookup_r_n
call fcn.14001de79
call fcn.14001e06d
mov qword [rbp + 0x28], rax
xor r8d, r8d
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x68]
call fcn.14001d9f6
test eax, eax
je 0x14002d2da
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x88]
call fcn.14001e054
test eax, eax
je 0x14002d2c7
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
sub rax, qword [rbp + 0xa8]
mov qword [rbp + 8], rax
mov r8, qword [rbp + 8]
lea rdx, str.___Symbol_resolved_to_0x_llX_address_r_n
mov ecx, 2
call fcn.14001d46f
jmp 0x14002d2d8
lea rdx, str.____Unable_to_find_specified_symbol_r_n
mov ecx, 1
call fcn.14001d46f
jmp 0x14002d2eb
lea rdx, str.____Unable_to_load_symbols_for_file_r_n
mov ecx, 1
call fcn.14001d46f
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002d318
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp + 0x68]
lea rdx, str.____Could_not_load___ws___GetLastError__lu_r_n
mov ecx, 1
call fcn.14001d46f
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14005f770]
call fcn.14001dcb2
mov rax, rdi
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret
Function at 0x14001db5e
Capabilities:
Access pe header

Disassembly:
jmp 0x14004ab90
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400854e4]
call fcn.14001df69
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
add rax, 0x18
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
cmp dword [rax + 0x6c], 1
ja 0x14004abdd
jmp 0x14004ad4c
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x70]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14004abfe
jmp 0x14004ad4c
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0
jne 0x14004ac39
mov rax, qword [rbp + 0x68]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
jmp 0x14004ac53
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov dword [rbp + 0xc4], 0
jmp 0x14004ac7f
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x88]
add rax, 8
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
cmp qword [rax], 0
je 0x14004ad4c
mov rax, qword [rbp + 0x68]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x88]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
jne 0x14004ad13
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
add rax, 2
mov r8, rax
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1d0]
call fcn.14001e068
mov ecx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x48]
mov qword [rdx + rcx*8], rax
jmp 0x14004ad47
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
and rax, 0xffff
mov r8, rax
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1d0]
call fcn.14001e068
mov ecx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x48]
mov qword [rdx + rcx*8], rax
jmp 0x14004ac5f
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x14001dc44
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140047560
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x488]
lea rcx, [0x1400854e4]
call fcn.14001df69
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x294], 0
cmp qword [rbp + 0x470], 0
je 0x1400475d1
mov rax, qword [rbp + 0x470]
mov dword [rax], 0
mov edx, 0x20a
lea rcx, [rbp + 0x50]
call fcn.14001dad2
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rbp + 0x50]
mov edx, dword [rbp + 0x294]
mov rcx, qword [rbp + 0x28]
call fcn.14001de42
test eax, eax
je 0x14004769f
cmp dword [rbp + 0x274], 0
jne 0x14004761a
jmp 0x14004769f
mov rdx, qword [rbp + 0x450]
lea rcx, [rbp + 0x50]
call fcn.14001d041
test eax, eax
jne 0x14004768c
cmp dword [rbp + 0x458], 0
je 0x140047685
mov eax, dword [rbp + 0x294]
inc eax
lea rcx, [rbp + 0x274]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp + 0x468]
mov r8, qword [rbp + 0x460]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.14001de42
mov dword [rbp + 4], eax
cmp qword [rbp + 0x470], 0
je 0x140047680
mov rax, qword [rbp + 0x470]
mov ecx, dword [rbp + 0x274]
mov dword [rax], ecx
mov eax, dword [rbp + 4]
jmp 0x1400476a1
mov eax, 1
jmp 0x1400476a1
mov eax, dword [rbp + 0x294]
inc eax
mov dword [rbp + 0x294], eax
jmp 0x1400475df
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14006b510]
call fcn.14001dcb2
mov rax, rdi
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret

Function at 0x14001dc49
Capabilities:
Access pe header

Disassembly:
jmp 0x140048a00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
lea rcx, [0x1400854e4]
call fcn.14001df69
mov dword [rbp + 0x24], 2
mov qword [rbp + 0x78], 0
mov rax, qword [rbp + 0x198]
mov qword [rax], 0
mov rdx, qword [rbp + 0x190]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [rbp + 0x78]
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x24]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140048a8f
cmp qword [rbp + 0x78], 0
jne 0x140048a94
mov eax, dword [rbp + 4]
jmp 0x140048ac6
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
jne 0x140048ab6
mov eax, 0xc000007b
jmp 0x140048ac6
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x78]
mov qword [rax], rcx
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14006be30]
call fcn.14001dcb2
mov rax, rdi
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14001dd48
Capabilities:
Delete file

Disassembly:
jmp 0x14003f520
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1400850cb]
call fcn.14001df69
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x160]
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x160]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x160]
call fcn.14001de2e
test eax, eax
jne 0x14003f57f
xor eax, eax
jmp 0x14003f5d2
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x68]
call fcn.14001d532
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x14003f5b6
mov r8, qword [rbp + 0x68]
lea rdx, str.___Vulnerable_driver___ws__loaded_r_n
mov ecx, 2
call fcn.14001d46f
mov dword [rbp + 4], 1
jmp 0x14003f5cf
mov edx, dword [rbp + 0x24]
lea rcx, str.____Unable_to_load_vulnerable_driver
call fcn.14001d230
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14001dd93
Capabilities:
Disable system features via registry on windows
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140046940
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
lea rcx, [0x1400854e4]
call fcn.14001df69
lea rax, str.SystemCurrentControlSetControlCIConfig
mov qword [rbp + 8], rax
lea rax, str.VulnerableDriverBlocklistEnable
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x64], 4
mov dword [rbp + 0x84], 4
mov dword [rbp + 0xa4], 0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cdqe
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x140046adc
lea rax, [rbp + 0x84]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x64]
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdqe
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x140046a5b
cmp dword [rbp + 0x64], 4
jne 0x140046a5b
cmp dword [rbp + 0xa4], 0
jbe 0x140046a42
mov dword [rbp + 0x194], 1
jmp 0x140046a4c
mov dword [rbp + 0x194], 0
mov rax, qword [rbp + 0x1c0]
mov ecx, dword [rbp + 0x194]
mov dword [rax], ecx
cmp dword [rbp + 0x1c8], 0
je 0x140046ab0
mov dword [rbp + 0x84], 4
mov dword [rbp + 0xa4], 0
mov eax, dword [rbp + 0x84]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cdqe
mov qword [rbp + 0xc8], rax
jmp 0x140046ad2
cmp qword [rbp + 0xc8], 2
jne 0x140046ad2
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 0x1c0]
mov dword [rax], 1
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp + 0xc8], 0
jne 0x140046af2
mov dword [rbp + 0x194], 1
jmp 0x140046afc
mov dword [rbp + 0x194], 0
mov eax, dword [rbp + 0x194]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14006c958]
call fcn.14001dcb2
mov eax, edi
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x14001ddbb
Capabilities:
Install driver
Unload driver

Disassembly:
jmp 0x1400487e0
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x458
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x478]
lea rcx, [0x1400854e4]
call fcn.14001df69
cmp qword [rbp + 0x440], 0
jne 0x14004883b
mov eax, 0xc00000ef
jmp 0x14004896f
cmp qword [rbp + 0x448], 0
jne 0x14004884f
mov eax, 0xc00000f0
jmp 0x14004896f
mov edx, 0x20a
lea rcx, [rbp + 0x80]
call fcn.14001dad2
mov qword [rbp + 8], 0x12
mov rax, qword [rbp + 0x440]
mov qword [rsp + 0x20], rax
lea r9, str.RegistryMachine
lea r8, str._wSSystemCurrentControlSetServices_wS
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.14001da14
test eax, eax
jge 0x1400488a1
mov eax, 0xc00000ef
jmp 0x14004896f
mov rax, qword [rbp + 8]
lea rax, [rbp + rax*2 + 0x80]
mov rdx, rax
mov rcx, qword [rbp + 0x448]
call fcn.14001d154
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x1400488cd
mov eax, dword [rbp + 0x24]
jmp 0x14004896f
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp qword [rbp + 0x458], 0
je 0x140048907
mov rdx, qword [rbp + 0x460]
lea rcx, [rbp + 0x48]
call qword [rbp + 0x458]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x140048907
mov eax, dword [rbp + 0x24]
jmp 0x14004896f
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov dword [rbp + 0x24], eax
movzx eax, byte [rbp + 0x450]
test eax, eax
je 0x14004895c
cmp dword [rbp + 0x24], 0xc000010e
je 0x14004893a
cmp dword [rbp + 0x24], 0xc0000035
je 0x14004893a
cmp dword [rbp + 0x24], 0x40000000
jne 0x14004895a
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x14004895a
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov dword [rbp + 0x24], eax
jmp 0x14004896c
cmp dword [rbp + 0x24], 0x40000000
jne 0x14004896c
mov dword [rbp + 0x24], 0
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14006aec0]
call fcn.14001dcb2
mov rax, rdi
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x14001ddca
Capabilities:
Access pe header

Disassembly:
jmp 0x140045e50
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1400854e4]
call fcn.14001df69
mov eax, dword [rbp + 0x168]
inc eax
shr eax, 1
mov r8d, eax
mov rdx, qword [rbp + 0x160]
xor ecx, ecx
call fcn.14001d26c
mov word [rbp + 0x44], ax
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140045f70
mov rax, qword [rbp + 0x28]
add rax, 0x58
mov qword [rbp + 8], rax
movzx eax, word [rbp + 0x44]
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rbp + 8]
movzx ecx, word [rdx + rcx]
cmp eax, ecx
jge 0x140045edf
mov dword [rbp + 0x134], 1
jmp 0x140045ee9
mov dword [rbp + 0x134], 0
movzx eax, word [rbp + 0x44]
sub eax, dword [rbp + 0x134]
mov word [rbp + 0x44], ax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 8]
movzx eax, word [rcx + rax]
movzx ecx, word [rbp + 0x44]
sub ecx, eax
mov eax, ecx
mov word [rbp + 0x44], ax
movzx eax, word [rbp + 0x44]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rbp + 8]
movzx ecx, word [rdx + rcx]
cmp eax, ecx
jge 0x140045f39
mov dword [rbp + 0x134], 1
jmp 0x140045f43
mov dword [rbp + 0x134], 0
movzx eax, word [rbp + 0x44]
sub eax, dword [rbp + 0x134]
mov word [rbp + 0x44], ax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rbp + 8]
movzx eax, word [rcx + rax]
movzx ecx, word [rbp + 0x44]
sub ecx, eax
mov eax, ecx
mov word [rbp + 0x44], ax
jmp 0x140045f76
xor eax, eax
mov word [rbp + 0x44], ax
movzx eax, word [rbp + 0x44]
add eax, dword [rbp + 0x168]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret