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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
call fcn.140001f10
test al, al
je 0x140002903
xor r8d, r8d
lea r9, [rbp + 0x5b8]
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
js 0x140002903
xor r9d, r9d
lea r8, [rbp + 0x370]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x140002903
xor r9d, r9d
lea r8, [rbp + 0x160]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x140002903
lea rdx, [rbp + 0x370]
lea rcx, str.Fullpath____s_n
call fcn.140001190
lea rdx, [rbp + 0x160]
lea rcx, str.Fullpath____s_n
call fcn.140001190
lea rdx, [rbp + 0x160]
mov dword [rsp + 0x30], 1
lea rcx, [0x140064a90]
call fcn.1400021f0
lea rdx, [0x140064a90]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
mov ebx, eax
test eax, eax
js 0x14000271b
movzx ecx, word [0x140039238]
movsd xmm0, qword [0x140039230]
mov word [rsp + 0x58], cx
lea rcx, [rsp + 0x50]
sub rcx, 2
movsd qword [rsp + 0x50], xmm0
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140002670
lea r8, [rbp + 0x160]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140002690
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400026b0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x50]
xor ecx, ecx
lea rdx, [0x140064a90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor ecx, ecx
lea rdx, [0x140064a90]
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
js 0x140002903
lea rdx, [rbp + 0x370]
mov dword [rsp + 0x30], 1
lea rcx, [0x140064880]
call fcn.1400021f0
lea rdx, [0x140064880]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
mov ebx, eax
test eax, eax
js 0x14000283b
movzx ecx, word [0x140039238]
movsd xmm0, qword [0x140039230]
mov word [rsp + 0x58], cx
lea rcx, [rsp + 0x50]
sub rcx, 2
movsd qword [rsp + 0x50], xmm0
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140002790
lea r8, [rbp + 0x370]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400027b0
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400027d0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x50]
xor ecx, ecx
lea rdx, [0x140064880]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor ecx, ecx
lea rdx, [0x140064880]
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
js 0x140002903
mov r8, qword [0x140064a88]
mov edx, 0xffffffff
mov rax, qword [0x140064ca0]
add r8, 2
mov qword [rsp + 0x20], rax
call fcn.1400023c0
mov r8d, 8
mov qword [rsp + 0x38], 8
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 8
lea rdx, [rsp + 0x38]
lea ecx, [r8 + 0x5f]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test byte [rsp + 0x3c], 3
je 0x14000291d
mov r8, qword [0x140064a88]
mov edx, 1
mov rax, qword [0x140064ca0]
add r8, 2
mov qword [rsp + 0x20], rax
call fcn.1400023c0
xor eax, eax
mov qword [rsp + 0x38], 8
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 8
lea rdx, [rsp + 0x38]
lea r8d, [rax + 8]
lea ecx, [rax + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test byte [rsp + 0x3c], 3
je 0x14000291d
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, [0x140064a90]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rdx, qword [rsp + 0x40]
lea rcx, str.Load____s_n
call fcn.140001190
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov r8, qword [0x140064ca0]
mov edx, 0xffffffff
mov ebx, eax
lea r9, [r8 - 4]
mov qword [rsp + 0x20], r9
call fcn.1400023c0
mov r8d, 8
mov qword [rsp + 0x38], 8
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 8
lea rdx, [rsp + 0x38]
lea ecx, [r8 + 0x5f]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test byte [rsp + 0x3c], 3
jne 0x1400029b3
mov r8, qword [0x140064ca0]
mov edx, 1
lea rax, [r8 - 4]
mov qword [rsp + 0x20], rax
call fcn.1400023c0
lea rdx, [0x140064880]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rdx, qword [rsp + 0x40]
lea rcx, str.Unload____s_n
call fcn.140001190
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x1400648a4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test ebx, ebx
js 0x1400029fe
test r14d, r14d
je 0x140002a12
lea rdx, [0x140064ab4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
jmp 0x140002905