Function at 0x7ff713e4ff10
Capabilities:
Delete registry key
Get system information on windows
Install driver
Unload driver

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x7ff71438e600]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rdi, rcx
movzx r14d, r8b
lea rcx, [rsp + 0x40]
mov rsi, rdx
call fcn.7ff713e4f3c0
test eax, eax
js 0x7ff713e5024d
xor r8d, r8d
mov qword [rsp + 0x4b0], rbx
lea r9, [rsp + 0x30]
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
jns 0x7ff713e4ff88
lea rcx, [0x7ff713f758e0]
call fcn.7ff713e4f080
jmp 0x7ff713e50243
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x160]
mov edx, 0x208
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x7ff713e50245
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov edx, 0x208
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x7ff713e50245
lea rdx, [rsp + 0x50]
lea rcx, [0x7ff7143953d0]
call fcn.7ff713e4f620
test eax, eax
js 0x7ff713e50245
xor r9d, r9d
mov qword [rsp + 0x38], 8
lea rdx, [rsp + 0x38]
lea r8d, [r9 + 8]
lea ecx, [r9 + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x7ff713e50022
mov edx, eax
lea rcx, [0x7ff713f75778]
call fcn.7ff713e4f080
mov eax, dword [rsp + 0x3c]
and al, 3
cmp al, 1
je 0x7ff713e5005a
lea rcx, [0x7ff713f75948]
call fcn.7ff713e4f080
lea rdx, [0x7ff7143953d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x7ff713e50245
lea rdx, [rbp + 0x160]
lea rcx, [0x7ff7143955e0]
call fcn.7ff713e4f620
test eax, eax
js 0x7ff713e50245
mov rdi, qword [rsp + 0x40]
lea r9, [rsp + 0x38]
mov rdx, rdi
lea rcx, [0x7ff7143955e0]
xor r8d, r8d
call fcn.7ff713e4fcb0
mov ebx, eax
test eax, eax
jns 0x7ff713e500aa
mov edx, eax
lea rcx, [0x7ff713f75970]
call fcn.7ff713e4f080
jmp 0x7ff713e50218
lea rcx, [0x7ff713f759ac]
call fcn.7ff713e4f080
lea rdx, [0x7ff7143953d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x7ff713e50196
cmp eax, 0xc000010e
jne 0x7ff713e50181
lea rdx, [0x7ff7143953d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov ebx, eax
test eax, eax
jns 0x7ff713e50128
lea rcx, [0x7ff713f759b0]
call fcn.7ff713e4f080
mov edx, ebx
lea rcx, [0x7ff713f759c8]
call fcn.7ff713e4f080
jmp 0x7ff713e501b5
lea rdx, [0x7ff7143953d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
test eax, eax
jns 0x7ff713e50167
lea rcx, [0x7ff713f759b0]
call fcn.7ff713e4f080
mov edx, ebx
lea rcx, [0x7ff713f759e8]
call fcn.7ff713e4f080
jmp 0x7ff713e501b5
lea rcx, [0x7ff713f75a08]
call fcn.7ff713e4f080
lea rcx, [0x7ff713f75a28]
call fcn.7ff713e4f080
jmp 0x7ff713e501b5
lea rcx, [0x7ff713f75a48]
call fcn.7ff713e4f080
lea rdx, [0x7ff713f75a60]
jmp 0x7ff713e501a9
lea rcx, [0x7ff713f75a88]
call fcn.7ff713e4f080
lea rdx, [0x7ff713f75aa0]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.7ff713e4f0e0
mov r8d, dword [rsp + 0x38]
lea rcx, [0x7ff7143955e0]
xor r9d, r9d
mov rdx, rdi
call fcn.7ff713e4fcb0
mov ebx, eax
test eax, eax
jns 0x7ff713e501e2
mov edx, eax
lea rcx, [0x7ff713f75ac8]
call fcn.7ff713e4f080
xor ebx, ebx
lea rdx, [0x7ff7143955e0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x7ff714395604]
mov rcx, 0xffffffff80000002
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
test r14b, r14b
je 0x7ff713e5022c
lea rdx, [0x7ff7143953f4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.shlwapi.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x30]
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov eax, ebx
mov rbx, qword [rsp + 0x4b0]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.7ff713f6da60
mov rsi, qword [rsp + 0x4b8]
add rsp, 0x480
pop r14
pop rdi
pop rbp
ret