Function at 0x140002060
Capabilities:
Delete file
Delete registry key
Unload driver
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
lea rcx, str.C:WindowsSystem32Driversetdsupp.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, str.C:WindowsSystem32Driversdriver.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
lea rcx, str.C:WindowsSystem32Driversetdsupp.sys
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x44], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14000211c
cmp rdi, 0xffffffffffffffff
je 0x1400022e6
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
mov r8d, 0x7888
lea rdx, [0x14000c150]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1400022e6
mov qword [rsp + 0x30], rsi
lea rcx, str.C:WindowsSystem32Driversdriver.sys
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x10000000
mov dword [rsp + 0x44], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x140002198
cmp rdi, 0xffffffffffffffff
je 0x1400022e6
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
mov r8d, 0x40c8
lea rdx, [0x140008080]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1400022e6
xor r8d, r8d
lea r9, [rsp + 0x40]
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test eax, eax
js 0x1400022a9
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x270]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32Driversetdsupp.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x1400022a9
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x60]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32Driversdriver.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x1400022a9
lea rdx, [rsp + 0x60]
lea rcx, [0x140014290]
call fcn.1400011f0
test eax, eax
js 0x1400022a9
lea rdx, [rsp + 0x270]
lea rcx, [0x1400144a0]
call fcn.1400011f0
mov ebx, eax
test eax, eax
js 0x1400022a9
call fcn.140001370
lea rdx, [0x1400144a0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x1400144c4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea rdx, [0x1400142b4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea rcx, str.C:WindowsSystem32Driversetdsupp.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, str.C:WindowsSystem32Driversdriver.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x1400022c3
lea rdx, str.Driver_loaded_successfully.
jmp 0x1400022ca
lea rcx, str.C:WindowsSystem32Driversetdsupp.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, str.C:WindowsSystem32Driversdriver.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, str.Failed_to_load_driver.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002c80
lea rdx, [0x140002e60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140003520
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret