joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405240
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x71c
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebp, ebp
push eax
push 3
push ebp
push str.SOFTWARENVIDIA_CorporationGlobalNvSvcThermalHistory
push 0x80000002
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40527d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x71c
ret
cmp dword [esp + 0x10], ebp
jne 0x405290
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x71c
ret
cmp dword [esp + 0x730], ebp
jbe 0x40536d
mov ecx, dword [esp + 0x734]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea esi, [ecx + 4]
test byte [esi + 0x1c], 0x10
je 0x40535a
push ebp
lea edx, [esp + 0x1c]
push str.GPU_1d
push edx
call fcn.00410593
mov ecx, 0x1c2
xor eax, eax
lea edi, [esp + 0x30]
mov edx, dword [esp + 0x1c]
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 0
push 0
push 0
push ecx
push edx
call ebx
test eax, eax
jne 0x405333
mov eax, dword [esp + 0x14]
cmp eax, 0x708
ja 0x405283
lea edx, [esp + 0x72c]
lea ecx, [esp + 0x14]
sub edx, eax
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x24]
push 0
push eax
push ecx
call ebx
lea edx, [esp + 0x25]
push 0x707
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00410610
add esp, 0xc
mov cl, byte [esi]
lea edx, [esp + 0x24]
push 0x708
push edx
mov byte [esp + 0x733], cl
mov ecx, dword [esp + 0x18]
push 3
lea eax, [esp + 0x24]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x730]
inc ebp
add esi, 0x24
cmp ebp, eax
jb 0x4052ad
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x71c
ret

Function at 0x405390
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x120
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebx
sub eax, dword [0x426a0c]
cmp eax, 0x7d0
jb 0x4053f3
mov esi, dword [esp + 0x130]
xor eax, eax
cmp esi, 8
ja 0x4053f8
push edi
mov ecx, 0x48
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00405190
add esp, 8
test eax, eax
pop edi
je 0x4053f3
lea ecx, [esp + 8]
push ecx
push esi
call fcn.00405240
add esp, 8
test eax, eax
je 0x4053f3
call ebx
mov dword [0x426a0c], eax
mov eax, 1
pop esi
pop ebx
add esp, 0x120
ret
Function at 0x405700
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x100c
call fcn.00410950
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x81a]
mov word [esp + 0x818], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x101c]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.0041056e
lea edx, [esp + 0x20]
push 0x4211a8
push edx
call fcn.00410544
mov eax, dword [esp + 0x1030]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00410544
add esp, 0x18
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x4057b7
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x100c
ret
mov esi, dword [esp + 0x1024]
mov edx, dword [esp + 0xc]
push esi
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
mov edi, eax
mov eax, dword [esp + 0xc]
cmp edi, ebx
je 0x4057e9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x100c
ret
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40585a
cmp dword [esp + 0x10], ebx
jbe 0x40585a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x828]
push ecx
mov ecx, dword [esp + 0x20]
dec eax
push edx
push eax
push ecx
mov dword [esp + 0x34], 0x800
call edi
lea edx, [esp + 0x818]
push esi
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00405700
mov eax, dword [esp + 0x1c]
add esp, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x405813
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x100c
ret
Function at 0x405970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x60
push esi
push edi
mov ecx, 0x15
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
lea edi, [esp + 0x10]
mov eax, dword [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [eax], 0xffffffff
mov ecx, dword [0x42b53c]
pop edi
cmp ecx, 1
mov dword [esp + 4], 0
mov dword [esp + 8], 4
pop esi
je 0x405a0d
push eax
mov eax, dword [0x426934]
push 0x207
push 0x95510933
push eax
call fcn.004049b0
add esp, 0x10
lea ecx, [esp]
lea edx, [esp + 8]
push ecx
push 1
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp]
test eax, eax
je 0x405a0d
mov edx, dword [esp + 0x68]
lea ecx, [esp + 4]
push ecx
push edx
push 0
push 0
push str.ChangeBrightnessWithScreenSaver
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x60
ret
Function at 0x405f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
push edi
mov ecx, 0x18
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweakState
lea edi, [esp + 0xac]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x15
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
lea edi, [esp + 0x54]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xc
lea edi, [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xac]
push eax
push 1
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x30], 8
call esi
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x405fce
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push edx
push ecx
push ebx
push ebx
push str.SmartDimmerAPI
push eax
call edi
test eax, eax
jne 0x405fc7
mov eax, dword [esp + 0x2c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [0x421950], edx
mov eax, dword [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
push 1
push ebx
push edx
push 0x80000002
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 4
call esi
mov eax, dword [esp + 0x10]
mov dword [0x4269fc], ebx
cmp eax, ebx
je 0x40602b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push ebx
push str.SmartDimmerConfig
push eax
call edi
test eax, eax
jne 0x406024
mov eax, dword [esp + 0x18]
not eax
shr eax, 1
and eax, 1
mov dword [0x4269fc], eax
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x1c]
mov dword [0x421958], edx
push ecx
mov dword [0x421954], eax
call dword [sym.imp.USER32.dll_GetLastInputInfo]
neg eax
sbb eax, eax
neg eax
mov dword [0x4269f8], eax
call fcn.004085b0
push str.NVSmartDimmerEvent
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, ebx
je 0x406081
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x4060a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
push 4
push eax
push 0
push 0
push 0x10
call sub.POWRPROF.dll_CallNtPowerInformation
test byte [esp + 4], 2
je 0x4060c7
mov eax, 1
pop esi
add esp, 0xc
ret
lea ecx, [esp + 8]
mov dword [esp + 8], 8
push ecx
call dword [sym.imp.USER32.dll_GetLastInputInfo]
mov eax, dword [0x426a00]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x406123
call esi
mov edx, dword [esp + 0xc]
mov ecx, dword [0x421950]
sub eax, edx
cmp eax, ecx
jb 0x40611a
push 0
call fcn.00405a40
add esp, 4
neg eax
sbb eax, eax
pop esi
neg eax
mov dword [0x426a00], eax
mov eax, 1
add esp, 0xc
ret
mov eax, dword [0x426a00]
test eax, eax
je 0x406153
call esi
mov edx, dword [esp + 0xc]
mov ecx, dword [0x421950]
sub eax, edx
cmp eax, ecx
jae 0x406153
push 1
call fcn.00405a40
add esp, 4
neg eax
sbb eax, eax
pop esi
inc eax
mov dword [0x426a00], eax
mov eax, 1
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x406170
Capabilities:
Identify system language via api

Disassembly:
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
cmp ax, 0x12
je 0x40618a
cmp ax, 0x11
jne 0x4061aa
mov ecx, dword [0x426934]
lea eax, [esp + 4]
push eax
push 1
push 0xc1
push 0x95510933
push ecx
call fcn.00404ad0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
lea edx, [esp]
mov dword [esp], eax
push edx
push str.CurrentSystemLCID
call fcn.00409240
add esp, 0x10
ret

Function at 0x4061d0
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 2
push 0
push str.SOFTWARENVIDIA_CorporationGlobalNVTweak
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406211
mov ecx, dword [esp]
push str.NvCplFirstInstallInitDone
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
Function at 0x407ab0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x407b74
lea eax, [esp + 0xc]
push str.SOFTWARENVIDIA_CorporationGlobal
push eax
call fcn.0041056e
lea ecx, [esp + 0x14]
push 0x4211a8
push ecx
call fcn.00410544
lea edx, [esp + 0x1c]
push str.NvSvc
push edx
call fcn.00410544
lea eax, [esp + 0x24]
push 0x4211a8
push eax
call fcn.00410544
lea ecx, [esp + 0x2c]
push str.State
push ecx
call fcn.00410544
add esp, 0x28
lea edx, [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407b74
lea edx, [esp + 0x214]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x208
ret
xor eax, eax
pop esi
add esp, 0x208
ret

Function at 0x407e50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push str.SOFTWARENVIDIA_CorporationGlobalNvSvc
push 0x80000002
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407f1c
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
push esi
push str.BitIndicators
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407f11
test byte [esp + 4], 1
je 0x407ef1
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call fcn.004079d0
call fcn.00407c60
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00407a60
mov eax, dword [esp + 0x18]
add esp, 0x14
and al, 0xfe
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push esi
push str.BitIndicators
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x18
ret
Function at 0x407fa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x26c
push esi
push edi
mov ecx, 0x15
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
lea edi, [esp + 0x14]
lea eax, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
push str.SOFTWARENVIDIA_CorporationGlobal
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
movsw word es:[edi], word [esi]
call fcn.0041056e
lea ecx, [esp + 0x74]
push 0x4211a8
push ecx
call fcn.00410544
lea edx, [esp + 0x7c]
push str.NVTweak
push edx
call fcn.00410544
add esp, 0x18
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push 1
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 8]
test eax, eax
je 0x408065
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
push ecx
push 0
push 0
push str.NvCplHotPlugAware
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40807c
mov ecx, dword [esp + 0x278]
mov eax, 1
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x26c
ret
mov edx, dword [esp + 0x278]
mov eax, 1
pop edi
pop esi
mov dword [edx], eax
add esp, 0x26c
ret
mov eax, dword [esp + 0x278]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword [eax], ecx
mov eax, 1
add esp, 0x26c
ret

Function at 0x4080a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x26c
push esi
push edi
mov ecx, 0x15
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
lea edi, [esp + 0x14]
lea eax, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
push str.SOFTWARENVIDIA_CorporationGlobal
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
movsw word es:[edi], word [esi]
call fcn.0041056e
lea ecx, [esp + 0x74]
push 0x4211a8
push ecx
call fcn.00410544
lea edx, [esp + 0x7c]
push str.NVTweak
push edx
call fcn.00410544
add esp, 0x18
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push 1
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
je 0x408163
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
push ecx
push 0
push 0
push str.FSShutDownNotification
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov eax, 1
add esp, 0x26c
ret
mov edx, dword [esp + 0x270]
xor eax, eax
mov dword [edx], eax
mov eax, 1
add esp, 0x26c
ret
Function at 0x408230
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x428
push ebp
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x2001f
push edi
mov ebp, 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4083b2
push edi
push edi
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4083b2
mov eax, dword [esp + 0xc]
push ebx
inc eax
push esi
mov dword [esp + 0x14], eax
lea ecx, [eax + eax]
push ecx
call fcn.00410e27
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
xor ebx, ebx
cmp eax, edi
jbe 0x408342
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
push edi
push edi
lea eax, [esp + 0x30]
push edi
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x44], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4083bd
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
push edi
push edi
push esi
push ecx
mov dword [esp + 0x34], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4083bd
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
mov word [esp + edx*2 + 0x2c], di
call fcn.00410cea
lea ecx, [esp + 0x2c]
push str.NVSTARTUP
push ecx
call fcn.00410bc0
add esp, 0xc
test eax, eax
je 0x4083bf
mov dword [esp + 0x20], edi
push esi
call fcn.00410c01
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, edi
pop esi
pop ebx
je 0x4083d1
cmp ebp, edi
je 0x4083d1
lea edx, [esp + 0x228]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x228]
lea ecx, [esp + 0x20]
push eax
push str.RUNDLL32.EXE__sNvCpl.dll_NvStartup
push ecx
call fcn.00410593
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 8]
lea eax, [eax + eax + 2]
lea ecx, [esp + 0x20]
push eax
push ecx
push 1
push edi
push str.NvCplDaemon
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4083d1
pop edi
xor eax, eax
pop ebp
add esp, 0x428
ret
xor ebp, ebp
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jb 0x4082c3
jmp 0x408342
mov eax, ebp
pop edi
pop ebp
add esp, 0x428
ret
Function at 0x4083f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x368
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
call fcn.00403240
mov esi, eax
test esi, esi
jne 0x408418
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
mov ebp, dword [esp + 0x380]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
lea eax, [esp + 0x74]
push 0x104
push eax
push 0xffffffffffffffff
push ebp
push 0
push 0
call ebx
lea ecx, [esp + 0x6c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x408464
push esi
call fcn.00403260
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
mov eax, dword [0x426954]
test eax, eax
jne 0x40849a
push eax
push eax
mov eax, dword [esp + 0x38c]
lea edx, [esp + 0x74]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
lea ecx, [esp + 0x6c]
push 0
push ecx
push esi
push 0
call edi
jmp 0x40858c
mov ecx, dword [esp + 0x37c]
lea edx, [esp + 0x10]
push edx
push ecx
mov dword [esp + 0x18], 0
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40858c
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x170]
mov dword [esp + 0x28], 0x44
push 0x104
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
cmp word [esp + edi*2 + 0x16e], 0x5c
je 0x408506
lea eax, [esp + 0x170]
push 0x4211a8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc edi
mov ecx, dword [esp + 0x384]
lea edx, [esp + edi*2 + 0x170]
push ecx
push ebp
push str.NVCPL.DLL
push str.rundll32.exe__s__s__s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x170]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0
push 0xa000000
push 0
push 0
push 0
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x408585
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
push esi
call fcn.00403260
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
Function at 0x4085b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 0x18
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweakState
lea edi, [esp + 0x40]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xc
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x40]
push eax
push 1
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x30
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
je 0x408649
lea edx, [esp + 4]
lea ecx, [esp + 8]
push edx
push ecx
push 0
push 0
push str.SmartDimmerAPI
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40863e
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [0x421950], edx
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x9c
ret

Function at 0x4087a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x60
push ebx
push esi
push edi
mov ecx, 0x15
mov esi, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push 1
lea ecx, [esp + 0x1c]
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 4
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408816
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x408816
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x74]
push ecx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40880b
mov ebx, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x60
ret
Function at 0x408e30
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
xor ebp, ebp
push ecx
push str.Default
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call fcn.004079d0
mov eax, dword [0x426bd4]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
cmp eax, ebp
jne 0x408edc
mov ecx, 0x64
xor eax, eax
mov edi, 0x42b380
push str.NVSvcFSTaskExit
rep stosd dword es:[edi], eax
mov ecx, 0x64
mov edi, 0x426a40
push ebp
push ebp
rep stosd dword es:[edi], eax
push ebp
call ebx
cmp eax, ebp
mov dword [0x426bf0], eax
jne 0x408ea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebp
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x426bd0], eax
jne 0x408ed2
mov eax, dword [0x426bf0]
cmp eax, ebp
je 0x408f8d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x426bf0], ebp
jmp 0x408f8d
mov dword [0x426bd4], 1
call fcn.00408de0
cmp eax, 0xffffffff
jne 0x408faf
xor esi, esi
cmp dword [esi*4 + 0x426a40], ebp
je 0x408f05
inc esi
cmp esi, 0x64
jb 0x408eec
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp esi, 0x64
jb 0x408f14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
call fcn.00409160
mov dword [0x426bf4], eax
call fcn.004092d0
push ebp
push ebp
push ebp
push ebp
mov dword [0x426bf8], eax
mov dword [0x422714], 1
call ebx
mov dword [0x426bd8], eax
lea eax, [esi*4 + 0x426a40]
push eax
push ebp
push ebp
push 0x409360
push 0x10000
push ebp
lea edi, [esi*4 + 0x42b380]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
mov eax, dword [0x426bd8]
cmp eax, ebp
je 0x408f89
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x426bd8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x426bd8], ebp
cmp dword [edi], ebp
jne 0x408faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00407a60
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00407a60
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret