Function at 0x140001a70
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 r13
lea rbp, [rsp - 0xc48]
sub rsp, 0xd48
mov rax, qword [0x140071008]
xor rax, rsp
mov qword [rbp + 0xc20], rax
xor r13d, r13d
lea rcx, [rbp + 0x5e0]
xor edx, edx
mov qword [rbp - 0x80], r13
mov r8d, 0x208
mov dword [rsp + 0x5c], r13d
mov qword [rsp + 0x60], r13
call fcn.1400088d0
call fcn.140001060
test eax, eax
je 0x140002216
mov qword [rsp + 0xd60], rbx
lea rcx, str.SHLWAPI
mov qword [rsp + 0xd70], rdi
mov qword [rsp + 0xd40], r12
mov qword [rsp + 0xd38], r14
mov qword [rsp + 0xd30], r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, 0x104
mov qword [rbp - 0x78], r13
mov edx, edi
lea rcx, [rbp + 0x5e0]
mov rbx, rax
mov r12, r13
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test rbx, rbx
je 0x140001b31
lea rdx, str.SHCopyKeyW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
call fcn.140001430
mov rcx, rax
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
lea rax, [rsp + 0x5c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001b9c
test r12, r12
je 0x140001b92
mov r8, qword [rbp - 0x78]
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
xor r9d, r9d
mov rcx, 0xffffffff80000002
call r12
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000001
mov qword [rbp - 0x70], r13
mov dword [rsp + 0x58], 0xff
mov r15d, r13d
mov dword [rsp + 0x54], r13d
mov r14d, r13d
mov dword [rsp + 0x50], r13d
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 - 0x60]
xor ecx, ecx
lea rdx, str.SeRestorePrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rax, qword [rbp - 0x60]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp - 0x58]
mov r9d, 0x10
mov qword [rsp + 0x28], r13
xor edx, edx
mov qword [rbp - 0x4c], rax
mov dword [rbp - 0x50], 1
mov dword [rbp - 0x44], 2
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea rax, [rsp + 0x78]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002039
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r13
lea r8, [rbp + 0x3e0]
mov qword [rsp + 0x28], r13
xor edx, edx
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14000202e
lea rdi, str.Ntuser.dat
mov qword [rsp + 0xd68], rsi
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x3e0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001fdb
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rbp + 0x7f0]
mov dword [rsp + 0x54], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProfileImagePath
mov dword [rsp + 0x50], 0x208
mov ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140001e02
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r13
lea r8, [rbp + 0x3e0]
mov qword [rsp + 0x28], r13
mov edx, r15d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x58], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140001dfd
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x68]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x3e0]
dec r14d
inc r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e23
mov rcx, qword [rbp - 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rbp + 0x7f0]
mov dword [rsp + 0x54], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProfileImagePath
mov dword [rsp + 0x50], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001df1
lea r9, [rbp + 0x3e0]
mov edx, 0x1fe
lea r8, [0x14005bdcc]
lea rcx, [rbp - 0x40]
lea ebx, [rax + 1]
call fcn.140001360
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001e23
mov r15d, r13d
jmp 0x140001e23
lea r9, [rbp + 0x3e0]
mov edx, 0x1fe
lea r8, [0x14005bdcc]
mov ebx, 1
lea rcx, [rbp - 0x40]
call fcn.140001360
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000003
mov esi, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e5e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
test ebx, ebx
je 0x140001fd0
lea r9, [rbp + 0x5e0]
mov edx, 0x1fe
lea r8, str._.255s
lea rcx, [rbp + 0x1d0]
call fcn.140001360
movzx edx, word [0x14005b634]
lea rcx, [rbp + 0x1d0]
call fcn.140008820
mov edx, 0x25
lea rcx, [rbp + 0x7f2]
mov word [rax], r13w
call fcn.140008820
add rax, 2
mov qword [rsp + 0x28], rdi
lea r9, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s_s
mov edx, 0x220
lea rcx, [rbp + 0xa00]
call fcn.140001360
test esi, esi
jne 0x140001efe
lea r8, [rbp + 0xa00]
mov rcx, 0xffffffff80000003
lea rdx, [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x140001fd0
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001fbb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001fa5
test r12, r12
je 0x140001f8a
mov r8, qword [rsp + 0x60]
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
xor r9d, r9d
mov rcx, 0xffffffff80000002
call r12
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r13
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x140001fd0
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r13
lea r8, [rbp + 0x3e0]
inc r14d
mov qword [rsp + 0x28], r13
mov edx, r14d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x58], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x140001ca0
mov rsi, qword [rsp + 0xd68]
lea edi, [rax + 1]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x80]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15, qword [rsp + 0xd30]
mov r14, qword [rsp + 0xd38]
mov r12, qword [rsp + 0xd40]
test eax, eax
jne 0x140002201
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call fcn.1400088d0
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.1400088d0
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rbp - 0x40]
mov dword [rsp + 0x50], r13d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.nwiz
mov dword [rsp + 0x54], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rbx, [rbp - 0x40]
cmp word [rbp - 0x40], r13w
je 0x1400021a7
nop dword [rax]
lea rdx, str._forceregload
mov rcx, rbx
call fcn.140001750
test eax, eax
jne 0x140002112
add rbx, 2
cmp word [rbx], r13w
jne 0x1400020f0
jmp 0x1400021a7
lea r8, [rbp - 0x40]
mov word [rbx], r13w
lea rax, [rbp + 0x1d0]
sub r8, rax
lea rdx, [rbp + 0x1d0]
nop dword [rax + rax]
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140002153
movzx eax, word [r8 + rdx]
test ax, ax
je 0x140002153
mov word [rdx], ax
add rdx, 2
sub rdi, 1
jne 0x140002130
lea rax, [rdx - 2]
test rdi, rdi
lea rcx, str._forceregload
cmovne rax, rdx
mov word [rax], r13w
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 0x1400021a7
nop
cmp ax, 0x2f
je 0x140002196
movzx eax, word [r8 + 2]
add r8, 2
test ax, ax
jne 0x140002180
jmp 0x1400021a7
mov edx, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.140001910
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x1400021f7
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1d0]
mov r9d, 1
xor r8d, r8d
lea rdx, str.nwiz
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0xd70]
mov eax, 1
mov rbx, qword [rsp + 0xd60]
mov rcx, qword [rbp + 0xc20]
xor rcx, rsp
call fcn.140006f70
add rsp, 0xd48
pop r13
pop rbp
ret