Function at 0x1400071f0
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push r13
lea rbp, [rsp - 0xc50]
sub rsp, 0xd50
mov rax, qword [0x140057130]
xor rax, rsp
mov qword [rbp + 0xc30], rax
xor esi, esi
lea rcx, [rbp + 0x5f2]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x78], rsi
mov r13d, esi
mov dword [rsp + 0x5c], esi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x68], rsi
mov word [rbp + 0x5f0], si
call fcn.1400150f0
call fcn.140003820
test eax, eax
je 0x1400079ed
mov qword [rsp + 0xd70], rbx
mov qword [rsp + 0xd78], rdi
mov qword [rsp + 0xd80], r12
lea rdx, str.NVIDIA_TwinView_Window
lea rcx, str.NVIDIA_TwinView_Window
mov qword [rsp + 0xd48], r14
mov qword [rsp + 0xd40], r15
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x1400072b2
call qword [0x140059158]
test eax, eax
je 0x1400072b2
xor ecx, ecx
call qword [0x140059160]
mov r13d, 1
mov dword [rsp + 0x5c], r13d
lea rcx, str.SHLWAPI
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, 0x104
lea rcx, [rbp + 0x5f0]
mov edx, edi
mov qword [rbp - 0x68], rsi
mov r12, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test rbx, rbx
je 0x1400072f5
lea rdx, str.SHCopyKeyW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
call fcn.140003c60
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
xor r9d, r9d
mov rcx, rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000735f
test r12, r12
je 0x140007355
mov r8, qword [rbp - 0x68]
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
xor r9d, r9d
mov rcx, 0xffffffff80000002
call r12
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000001
mov qword [rbp - 0x78], rsi
mov dword [rsp + 0x54], 0xff
mov r15d, esi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x58], esi
mov r14d, esi
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x58]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rbp - 0x50]
lea rdx, str.SeRestorePrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x58]
lea r8, [rbp - 0x48]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rbp - 0x44], rax
mov dword [rbp - 0x48], 1
mov dword [rbp - 0x3c], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea rax, [rbp - 0x70]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400077ec
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x78]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea r8, [rbp + 0x3f0]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400077e2
xor edi, edi
lea r13, str.Ntuser.dat
nop dword [rax]
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x80]
lea rdx, [rbp + 0x3f0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007791
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x800]
lea rdx, str.ProfileImagePath
xor r8d, r8d
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x58], 0x208
mov qword [rsp + 0x20], rax
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400075bc
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x78]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r8, [rbp + 0x3f0]
mov edx, r15d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x54], 0xff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400075b7
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x60]
lea rdx, [rbp + 0x3f0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
dec r14d
inc r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400075dd
mov rcx, qword [rbp - 0x60]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x800]
lea rdx, str.ProfileImagePath
xor r8d, r8d
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x58], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400075ab
lea r9, [rbp + 0x3f0]
lea r8, [0x140043c5c]
lea rcx, [rbp - 0x30]
mov edx, 0x1fe
lea ebx, [rax + 1]
call fcn.140003b20
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400075dd
mov r15d, edi
jmp 0x1400075dd
lea r9, [rbp + 0x3f0]
lea r8, [0x140043c5c]
lea rcx, [rbp - 0x30]
mov edx, 0x1fe
mov ebx, 1
call fcn.140003b20
lea rax, [rsp + 0x70]
lea rdx, [rbp - 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000003
mov esi, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007617
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
test ebx, ebx
je 0x140007787
lea r9, [rbp + 0x5f0]
lea r8, str._.255s
lea rcx, [rbp + 0x1e0]
mov edx, 0x1fe
call fcn.140003b20
movzx edx, word [0x1400438cc]
lea rcx, [rbp + 0x1e0]
call fcn.140015790
lea rcx, [rbp + 0x802]
mov edx, 0x25
mov word [rax], di
call fcn.140015790
lea r9, [rbp + 0x1e0]
add rax, 2
lea r8, str._s_s_s
lea rcx, [rbp + 0xa10]
mov edx, 0x220
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.140003b20
test esi, esi
jne 0x1400076b6
lea r8, [rbp + 0xa10]
lea rdx, [rbp - 0x30]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x140007787
lea rax, [rsp + 0x70]
lea rdx, [rbp - 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007772
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000775c
test r12, r12
je 0x140007741
mov r8, qword [rsp + 0x68]
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
xor r9d, r9d
mov rcx, 0xffffffff80000002
call r12
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x140007787
lea rdx, [rbp - 0x30]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x78]
inc r14d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x54]
lea r8, [rbp + 0x3f0]
mov edx, r14d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x54], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x140007460
mov r13d, dword [rsp + 0x5c]
lea edi, [rax + 1]
xor esi, esi
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x78]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15, qword [rsp + 0xd40]
mov r14, qword [rsp + 0xd48]
mov r12, qword [rsp + 0xd80]
test eax, eax
jne 0x1400079c8
lea rcx, [rbp - 0x2e]
xor edx, edx
mov r8d, 0x206
mov word [rbp - 0x30], si
call fcn.1400150f0
lea rcx, [rbp + 0x1e2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1e0], si
call fcn.1400150f0
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
lea r9, [rsp + 0x50]
lea rdx, str.nwiz
xor r8d, r8d
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x5c], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [rbp - 0x30], 0
lea rbx, [rbp - 0x30]
je 0x14000796c
nop dword [rax + rax]
lea rdx, str._forceregload
mov rcx, rbx
call fcn.140006bb0
test eax, eax
jne 0x1400078d1
add rbx, 2
cmp word [rbx], ax
jne 0x1400078b0
jmp 0x14000796c
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x1e0]
mov word [rbx], si
sub rdx, rax
lea rcx, [rbp + 0x1e0]
nop dword [rax]
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140007913
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140007913
mov word [rcx], ax
add rcx, 2
dec rdi
jne 0x1400078f0
jmp 0x140007918
test rdi, rdi
jne 0x14000791c
sub rcx, 2
mov word [rcx], si
lea rcx, str._forceregload
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
movzx eax, word [rbx + rcx*2]
lea r8, [rbx + rcx*2]
test ax, ax
je 0x140007954
nop dword [rax]
cmp ax, 0x2f
je 0x14000795b
movzx eax, word [r8 + 2]
add r8, 2
test ax, ax
jne 0x140007940
cmp word [r8], 0x2f
jne 0x14000796c
lea rcx, [rbp + 0x1e0]
mov edx, 0x208
call fcn.140006eb0
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x1400079bd
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x78]
lea rdx, str.nwiz
lea eax, [rax*2 + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0xd78]
mov rbx, qword [rsp + 0xd70]
test r13d, r13d
je 0x1400079e8
mov ecx, 1
call qword [0x140059160]
mov eax, 1
mov rcx, qword [rbp + 0xc30]
xor rcx, rsp
call fcn.1400150c0
add rsp, 0xd50
pop r13
pop rsi
pop rbp
ret