Function at 0x140008700
Capabilities:
Check os version
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x220], rax
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x100], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edi, edi
cmp dword [rsp + 0x104], 6
jae 0x140008906
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
lea rcx, str..AndreaFilterRealtek
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, 1
cmp rax, 0xffffffffffffffff
mov dword [rsp + 0xc0], edi
mov dword [rsp + 0xcc], esi
mov rbx, rax
mov dword [rsp + 0xf0], edi
je 0x1400087d9
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x58]
lea r9d, [rdi + 0x34]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0xc0]
mov edx, 0x222000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x58], 0x34
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp rbx, 0xffffffffffffffff
mov dword [rsp + 0xc0], esi
mov dword [rsp + 0xcc], esi
mov dword [rsp + 0xf0], edi
je 0x140008830
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x5c]
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov r9d, 0x34
mov edx, 0x222000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x5c], 0x34
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp rbx, 0xffffffffffffffff
mov dword [rsp + 0xc0], 3
mov dword [rsp + 0xcc], edi
mov dword [rsp + 0xf0], edi
je 0x14000888b
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x60]
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov r9d, 0x34
mov edx, 0x222000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x60], 0x34
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp rbx, 0xffffffffffffffff
mov dword [rsp + 0xc0], 2
mov dword [rsp + 0xcc], edi
je 0x1400088ff
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x50]
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov r9d, 0x34
mov edx, 0x222000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x50], 0x34
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [0x14032e028]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, edi
jmp 0x140008a97
mov rax, qword [0x14032dee0]
lea rcx, [rsp + 0x70]
mov ebp, edi
mov qword [rcx], rax
mov rax, qword [0x14032dee8]
mov qword [rcx + 8], rax
mov rax, qword [0x14032def0]
mov qword [rcx + 0x10], rax
mov rax, qword [0x14032def8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14032df00]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14032df08]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14032df10]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14032df18]
mov qword [rcx + 0x38], rax
mov eax, dword [0x14032df20]
mov dword [rcx + 0x40], eax
mov eax, dword [0x14032def8]
mov dword [rsp + 0x74], edi
test al, 2
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x7c], edi
mov dword [rsp + 0x80], edi
je 0x14000899a
mov esi, 1
test sil, al
mov dword [rsp + 0x78], esi
je 0x1400089ab
jmp 0x1400089a7
test al, 1
je 0x140008a92
mov esi, 1
mov dword [rsp + 0x74], esi
cmp dword [0x14032df3c], edi
mov dword [rsp + 0x70], 0xaeaeaeae
jne 0x1400089d1
lea rdx, [rsp + 0x70]
lea rcx, [0x14032dee0]
call fcn.1401e9b50
jmp 0x140008a97
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140008a72
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
lea rdx, str.CapProperties
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
mov ebx, edi
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140008a72
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_successful
lea rcx, [0x14032dee0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401e9fd0
jmp 0x140008a97
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_failed
lea rcx, [0x14032dee0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401e9fd0
jmp 0x140008a97
mov ebp, 0x80000000
test ebp, ebp
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1402272f0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret