joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d20
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x41c3e0
push 0x80000002
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 1
call esi
test eax, eax
je 0x404d6d
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 4]
test eax, eax
jne 0x404d7c
xor eax, eax
pop esi
add esp, 0xc
ret
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 1
push 0
push 0
push str.SOFTWARENVIDIA_CorporationGlobalNvSvcThermalHistory
push 0x80000002
call esi
test eax, eax
je 0x404db2
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 8]
test eax, eax
jne 0x404dcc
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.EnableThermalHistory
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x404e06
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 8]
push edx
call fcn.00404ce0
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x404ed0
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push 0x41c3e0
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404ec2
mov eax, dword [esp]
test eax, eax
je 0x404ec2
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push str.EnableThermalHistory
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x404ea7
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SOFTWARENVIDIA_CorporationGlobalNvSvcThermalHistory
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
add esp, 8
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x404edd
jmp fcn.00404d20
jmp 0x404e40
Function at 0x405220
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 0x40525d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x71c
ret
cmp dword [esp + 0x10], ebp
jne 0x405270
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x71c
ret
cmp dword [esp + 0x730], ebp
jbe 0x40534d
mov ecx, dword [esp + 0x734]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea esi, [ecx + 4]
test byte [esi + 0x1c], 0x10
je 0x40533a
push ebp
lea edx, [esp + 0x1c]
push str.GPU_1d
push edx
call fcn.0040eb83
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 0x405313
mov eax, dword [esp + 0x14]
cmp eax, 0x708
ja 0x405263
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.0040ec00
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 0x40528d
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 0x405370
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 [0x4243b8]
cmp eax, 0x7d0
jb 0x4053d3
mov esi, dword [esp + 0x130]
xor eax, eax
cmp esi, 8
ja 0x4053d8
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.00405170
add esp, 8
test eax, eax
pop edi
je 0x4053d3
lea ecx, [esp + 8]
push ecx
push esi
call fcn.00405220
add esp, 8
test eax, eax
je 0x4053d3
call ebx
mov dword [0x4243b8], eax
mov eax, 1
pop esi
pop ebx
add esp, 0x120
ret
Function at 0x4056e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x100c
call fcn.0040ef40
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.0040eb5e
lea edx, [esp + 0x20]
push 0x41f1a8
push edx
call fcn.0040eb34
mov eax, dword [esp + 0x1030]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040eb34
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 0x405797
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 0x4057c9
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 0x40583a
cmp dword [esp + 0x10], ebx
jbe 0x40583a
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.004056e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x4057f3
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 0x405950
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 [0x4286dc]
pop edi
cmp ecx, 1
mov dword [esp + 4], 0
mov dword [esp + 8], 4
pop esi
je 0x4059ed
push eax
mov eax, dword [0x4242e0]
push 0x207
push 0x95510933
push eax
call fcn.00404990
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 0x4059ed
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 0x405ef0
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 0x405fae
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 0x405fa7
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 [0x41f930], 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 [0x4243a8], ebx
cmp eax, ebx
je 0x40600b
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 0x406004
mov eax, dword [esp + 0x18]
not eax
shr eax, 1
and eax, 1
mov dword [0x4243a8], 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 [0x41f938], edx
push ecx
mov dword [0x41f934], eax
call dword [sym.imp.USER32.dll_GetLastInputInfo]
neg eax
sbb eax, eax
neg eax
mov dword [0x4243a4], eax
call fcn.00408530
push str.NVSmartDimmerEvent
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, ebx
je 0x406061
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 0x406080
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 0x4060a7
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 [0x4243ac]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x406103
call esi
mov edx, dword [esp + 0xc]
mov ecx, dword [0x41f930]
sub eax, edx
cmp eax, ecx
jb 0x4060fa
push 0
call fcn.00405a20
add esp, 4
neg eax
sbb eax, eax
pop esi
neg eax
mov dword [0x4243ac], eax
mov eax, 1
add esp, 0xc
ret
mov eax, dword [0x4243ac]
test eax, eax
je 0x406133
call esi
mov edx, dword [esp + 0xc]
mov ecx, dword [0x41f930]
sub eax, edx
cmp eax, ecx
jae 0x406133
push 1
call fcn.00405a20
add esp, 4
neg eax
sbb eax, eax
pop esi
inc eax
mov dword [0x4243ac], eax
mov eax, 1
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x406150
Capabilities:
Identify system language via api

Disassembly:
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
cmp ax, 0x12
je 0x40616a
cmp ax, 0x11
jne 0x40618a
mov ecx, dword [0x4242e0]
lea eax, [esp + 4]
push eax
push 1
push 0xc1
push 0x95510933
push ecx
call fcn.00404ab0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
lea edx, [esp]
mov dword [esp], eax
push edx
push str.CurrentSystemLCID
call fcn.004091c0
add esp, 0x10
ret
Function at 0x407a20
Capabilities:
Set registry value

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x407ae4
lea eax, [esp + 0xc]
push str.SOFTWARENVIDIA_CorporationGlobal
push eax
call fcn.0040eb5e
lea ecx, [esp + 0x14]
push 0x41f1a8
push ecx
call fcn.0040eb34
lea edx, [esp + 0x1c]
push str.NvSvc
push edx
call fcn.0040eb34
lea eax, [esp + 0x24]
push 0x41f1a8
push eax
call fcn.0040eb34
lea ecx, [esp + 0x2c]
push str.State
push ecx
call fcn.0040eb34
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 0x407ae4
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 0x407dc0
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 0x407e8c
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 0x407e81
test byte [esp + 4], 1
je 0x407e61
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.00407940
call fcn.00407bd0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004079d0
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 0x407f10
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.0040eb5e
lea ecx, [esp + 0x74]
push 0x41f1a8
push ecx
call fcn.0040eb34
lea edx, [esp + 0x7c]
push str.NVTweak
push edx
call fcn.0040eb34
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 0x407fd5
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 0x407fec
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 0x408010
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.0040eb5e
lea ecx, [esp + 0x74]
push 0x41f1a8
push ecx
call fcn.0040eb34
lea edx, [esp + 0x7c]
push str.NVTweak
push edx
call fcn.0040eb34
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 0x4080d3
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 0x4081a0
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 0x408322
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 0x408322
mov eax, dword [esp + 0xc]
push ebx
inc eax
push esi
mov dword [esp + 0x14], eax
lea ecx, [eax + eax]
push ecx
call fcn.0040f417
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
xor ebx, ebx
cmp eax, edi
jbe 0x4082b2
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 0x40832d
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 0x40832d
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
mov word [esp + edx*2 + 0x2c], di
call fcn.0040f2da
lea ecx, [esp + 0x2c]
push str.NVSTARTUP
push ecx
call fcn.0040f1b0
add esp, 0xc
test eax, eax
je 0x40832f
mov dword [esp + 0x20], edi
push esi
call fcn.0040f1f1
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, edi
pop esi
pop ebx
je 0x408341
cmp ebp, edi
je 0x408341
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.0040eb83
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 0x408341
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 0x408233
jmp 0x4082b2
mov eax, ebp
pop edi
pop ebp
add esp, 0x428
ret
Function at 0x408360
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.00403220
mov esi, eax
test esi, esi
jne 0x408388
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 0x4083d4
push esi
call fcn.00403240
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
mov eax, dword [0x424300]
test eax, eax
jne 0x40841f
mov eax, dword [esp + 0x384]
push 0
push 0
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
push esi
call fcn.00403240
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
push esi
mov dword [esp + 0x14], 0
call fcn.00403240
mov eax, dword [esp + 0x380]
add esp, 4
lea edx, [esp + 0x10]
push edx
push eax
call dword [0x424300]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40851e
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], 0x44
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x170]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp word [esp + esi*2 + 0x16e], 0x5c
je 0x408498
lea edx, [esp + 0x170]
push 0x41f1a8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc esi
mov eax, dword [esp + 0x384]
lea ecx, [esp + esi*2 + 0x170]
push eax
push ebp
push str.NVCPL.DLL
push str.rundll32.exe__s__s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x170]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push 0
push 0xa000000
push 0
push 0
push 0
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x408517
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
Function at 0x408530
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 0x4085c9
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 0x4085be
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 [0x41f930], edx
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x9c
ret

Function at 0x408720
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 0x408796
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x408796
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 0x40878b
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