Function at 0x41f7e0
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcac
mov eax, dword [0x43c730]
xor eax, esp
mov dword [esp + 0xca8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x686]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x68c], ax
call fcn.00422290
add esp, 0xc
call fcn.00417f00
test eax, eax
jne 0x41f84d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xca8]
xor ecx, esp
call fcn.00422272
mov esp, ebp
pop ebp
ret
push str.NVIDIA_TwinView_Window
push str.NVIDIA_TwinView_Window
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x41f889
push 1
call fcn.00419bd0
mov eax, dword [0x4464c4]
add esp, 4
cmp eax, ebx
je 0x41f889
call eax
test eax, eax
je 0x41f889
push ebx
call dword [0x446454]
mov dword [esp + 0x48], 1
push str.SHLWAPI
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
lea edx, [esp + 0x684]
xor edi, edi
push edx
mov esi, eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp esi, ebx
je 0x41f8c9
push str.SHCopyKeyW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x44], eax
mov edi, eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareNVIDIA_CorporationGlobal_nView
call fcn.00418b80
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41f912
cmp edi, ebx
je 0x41f907
mov edx, dword [esp + 0x3c]
push ebx
push edx
push str.SoftwareNVIDIA_CorporationGlobal_nView
push 0x80000002
call edi
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x80000001
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x1c], 0xff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
lea ecx, [esp + 0x40]
push ecx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 0x58]
push edx
push str.SeRestorePrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
push ebx
push ebx
push 0x10
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
push ebx
push eax
mov dword [esp + 0x78], 1
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
call edi
test eax, eax
jne 0x41fd0a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x24]
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x494]
push ecx
push ebx
push edx
call esi
cmp eax, 0x103
je 0x41fcff
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x48c]
push ecx
push edx
call edi
test eax, eax
jne 0x41fcc6
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x88c]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push str.ProfileImagePath
push eax
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0x208
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41fb1d
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x494]
push eax
push ecx
push edx
mov dword [esp + 0x38], 0xff
call esi
cmp eax, 0x103
je 0x41fb17
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x48c]
push ecx
mov esi, 1
sub dword [esp + 0x40], esi
add dword [esp + 0x38], esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fb41
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x88c]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push str.ProfileImagePath
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41fb0a
lea ecx, [esp + 0x480]
push ecx
push 0x434dec
lea edx, [esp + 0x78]
push 0x1fe
push edx
mov edi, esi
call fcn.00419b60
add esp, 0x10
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41fb41
mov dword [esp + 0x28], ebx
jmp 0x41fb41
lea ecx, [esp + 0x480]
push ecx
push 0x434dec
lea edx, [esp + 0x78]
push 0x1fe
push edx
mov edi, 1
call fcn.00419b60
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
lea ecx, [esp + 0x7c]
push ecx
push 0x80000003
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fb72
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
cmp edi, ebx
je 0x41fcaf
lea eax, [esp + 0x680]
push eax
push str._.255s
lea ecx, [esp + 0x280]
push 0x1fe
push ecx
call fcn.00419b60
lea edx, [esp + 0x288]
push 0x5c
push edx
call fcn.00423246
lea edx, [esp + 0x8a2]
xor ecx, ecx
push 0x25
push edx
mov word [eax], cx
call fcn.00423246
push str.Ntuser.dat
add eax, 2
push eax
lea eax, [esp + 0x2a0]
push eax
push str._s_s_s
lea ecx, [esp + 0xac0]
push 0x220
push ecx
call fcn.00419b60
add esp, 0x38
cmp esi, ebx
jne 0x41fc0b
lea edx, [esp + 0xa90]
push edx
lea eax, [esp + 0x74]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
cmp eax, ebx
jne 0x41fcaf
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x7c]
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fc9b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareNVIDIA_CorporationGlobal_nView
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41fc85
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x41fc6b
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push str.SoftwareNVIDIA_CorporationGlobal_nView
push 0x80000002
call eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x41fcaf
lea eax, [esp + 0x70]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
inc eax
lea edx, [esp + 0x494]
push edx
push eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x38], 0xff
call esi
cmp eax, 0x103
jne 0x41f9f0
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x24]
push edx
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call edi
test eax, eax
jne 0x41fe5f
push 0x206
lea ecx, [esp + 0x76]
push ebx
push ecx
mov word [esp + 0x7c], ax
call fcn.00422290
push 0x206
lea eax, [esp + 0x28a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x290], dx
call fcn.00422290
add esp, 0x18
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.nwiz
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x58], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + 0x70]
cmp word [esp + 0x70], bx
je 0x41fe1b
nop
push str._forceregload
push esi
call fcn.0041d820
add esp, 8
test eax, eax
jne 0x41fdbc
add esi, 2
cmp word [esi], bx
jne 0x41fda0
jmp 0x41fe1b
lea eax, [esp + 0x70]
push eax
push 0x208
lea ecx, [esp + 0x280]
xor edx, edx
push ecx
mov word [esi], dx
call fcn.00419a20
push str._forceregload
call edi
lea ecx, [esi + eax*2]
movzx eax, word [ecx]
cmp ax, bx
je 0x41fe02
lea ebx, [ebx]
cmp ax, 0x2f
je 0x41fe08
movzx eax, word [ecx + 2]
add ecx, 2
cmp ax, bx
jne 0x41fdf0
cmp word [ecx], 0x2f
jne 0x41fe1b
push ecx
push 0x208
lea edx, [esp + 0x280]
push edx
call fcn.00419ab0
lea eax, [esp + 0x278]
push eax
call edi
cmp eax, 3
jle 0x41fe54
lea ecx, [esp + 0x278]
push ecx
call edi
mov ecx, dword [esp + 0x24]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x27c]
push eax
push 1
push ebx
push str.nwiz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x48], ebx
je 0x41fe6d
push 1
call dword [0x446454]
mov ecx, dword [esp + 0xcb4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00422272
mov esp, ebp
pop ebp
ret