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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push edi
push eax
push 0x20119
push 0
push str.SoftwareLenovoImControllerPluginDataLenovoVisionProtectionPlugin
push SysReAllocStringLen
mov dword [0x669980], 0
mov dword [0x65fb0c], 0x1964
mov byte [0x669978], 0
call esi
test eax, eax
jne 0x412ce4
mov edi, dword [ebp - 0x14]
jmp 0x412d06
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.SoftwareLenovoImControllerPluginDataLenovoVisionProtectionPlugin
push SysReAllocStringLen
call esi
test eax, eax
jne 0x412dd2
mov edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push ebx
push str.EyeModeState
push edi
call esi
mov ecx, dword [0x669980]
test eax, eax
lea eax, [ebp - 0xc]
cmove ecx, dword [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [0x669980], ecx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push ebx
push str.Temp_UserSet
push edi
call esi
mov ecx, dword [0x65fb0c]
test eax, eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
cmove ecx, dword [ebp - 8]
push eax
lea eax, [ebp - 8]
mov dword [0x65fb0c], ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.MyScheduleState
push edi
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
cmove ebx, dword [ebp - 8]
test edi, edi
je 0x412d9b
push edi
call esi
xor edi, edi
mov eax, dword [0x65fb0c]
mov ecx, 0x1964
test eax, eax
cmovle eax, ecx
test ebx, ebx
mov dword [0x65fb0c], eax
setne byte [0x669978]
test edi, edi
je 0x412ddd
push edi
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret 0xc
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058fc43
mov esp, ebp
pop ebp
ret 0xc

Function at 0x413310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xdc], eax
mov dword [ebp + 0xc], eax
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004515b9
Function at 0x413e80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x65f018]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.0043f130
cmp dword [esp + 0x1c], 0
je 0x413f1b
cmp dword [esp + 0x20], 8
lea esi, [esp + 0xc]
cmovae esi, dword [esp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413f1b
mov eax, dword [edi + 0x1dd8]
test eax, eax
je 0x413f17
add eax, 0x428
mov edx, str.support
push eax
push esi
mov ecx, str.eyecaremode
call fcn.0043f060
mov edx, dword [edi + 0x1dd8]
add esp, 8
test eax, eax
je 0x413f0d
lea eax, [edx + 0x42c]
mov ecx, str.eyecaremode
push eax
push esi
mov edx, str.status
call fcn.0043f060
add esp, 8
mov bl, 1
jmp 0x413f1d
mov dword [edx + 0x428], 0xffffffff
mov bl, 1
jmp 0x413f1d
xor bl, bl
mov ecx, dword [esp + 0x20]
cmp ecx, 8
jb 0x413f55
mov edx, dword [esp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413f4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413f69
push ecx
push edx
call fcn.0058fc74
add esp, 8
mov ecx, dword [esp + 0x24]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
call fcn.005ae1ee
int3
Function at 0x41d1c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xd8], eax
mov dword [ebp + 0xc], eax
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004515b9
Function at 0x41dc40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [ecx + 0x1a8], 0
je 0x41dca9
push str.Features.Toolbar.PowerInformation
mov edx, 0x629f50
mov ecx, str.Features.Toolbar.PowerInformation.GoToVantageDashboardPage
call fcn.00424f30
sub esp, 0x14
xorps xmm0, xmm0
mov ecx, esp
push 0x17
movups xmmword [ecx], xmm0
push str.lenovo_vantage3:toolbar
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00409d40
call fcn.0041e2d0
add esp, 0x18
test al, al
je 0x41dca9
push 3
push 0
push 0
push str.lenovo_vantage3:toolbar
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x41dcb0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7455
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ecx + 0x1d8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41ddea
push str.Features.Toolbar.PowerInformation
mov edx, 0x629f50
mov ecx, str.Features.Toolbar.PowerInformation.GoToWarrantyServiceHomePage
call fcn.00424f30
add esp, 4
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x41de08
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, str.lenovo_vantage3:support
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x41dd5e
movzx eax, ax
push eax
call fcn.00403100
jmp 0x41dd6a
push 0x17
push str.lenovo_vantage3:support
call fcn.00403300
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x41ddcb
sub esp, 0x18
mov ecx, esi
mov edx, esp
xorps xmm0, xmm0
lea edi, [ecx + 2]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dd96
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00409d40
call fcn.0041e2d0
add esp, 0x18
test al, al
je 0x41ddcb
push 3
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41ddea
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00403700
int3
Function at 0x41ebd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0xd8], 0
call fcn.0041ef80
mov dword [0x669988], eax
call fcn.0041fbd0
mov edx, dword [0x669988]
mov ecx, eax
mov dword [0x669984], ecx
test edx, edx
jne 0x41ec0e
cmp ecx, 3
jl 0x41ec1b
mov dword [esi + 0xd8], 1
cmp ecx, 3
setge al
mov byte [esi + 0x15d], al
movzx eax, al
push eax
push ecx
push edx
push dword [esi + 0xd8]
push str.SupportITS____d___ITSVersion____d___DispatcherVersion____d___IsSupportDispater____d_
call fcn.0043eb40
add esp, 0x14
cmp dword [esi + 0xd8], 1
jl 0x41ed82
mov ebx, dword [ebp + 8]
mov ecx, esi
push 0xffffff
push 0xffffff
push 0xffffff
push 0xffffff
push 0x18d
push 0x193
push 0x17e
push 0x188
push ebx
call fcn.0042beb0
cmp byte [esi + 0x15d], 0
lea eax, [esi + 0x140]
push 0
push 0
push eax
push 0x409b00
push 0
push 0
mov dword [eax + 8], esi
mov dword [eax + 0x14], reloc.OLEAUT32.dll_SysReAllocString
je 0x41ed35
mov dword [eax + 4], 0x4204d0
mov dword [eax + 0x18], str.SYSTEMCurrentControlSetServicesLenovoProcessManagementPerformancePowerSlider
call fcn.005ae60d
add esp, 0x18
test eax, eax
je 0x41ecc9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
call fcn.00420300
test al, al
je 0x41ed5d
mov eax, dword [esp + 0xc]
mov edi, 0xa3
test eax, eax
je 0x41ed1d
cmp eax, 1
jne 0x41ed12
mov edi, 0xa4
jmp 0x41ed1d
cmp eax, 3
mov ecx, 0xa5
cmove edi, ecx
cmp edi, dword [esi + 0x110]
je 0x41ed5d
push edi
mov ecx, esi
call fcn.00420060
mov dword [esi + 0x110], edi
jmp 0x41ed5d
mov dword [eax + 4], 0x41fb80
mov dword [eax + 0x18], str.SYSTEMCurrentControlSetServicesLITSSVCLNBITSICMMC
call fcn.005ae60d
add esp, 0x18
test eax, eax
je 0x41ed56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041f8e0
mov cl, 1
call fcn.0041edd0
test ebx, ebx
je 0x41ed8f
push 0
push 0
push 5
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str._Idea_ITS_or_Dispatcher_dont_support
call fcn.0043eb40
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41edd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x65f018]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [0x669988]
test eax, eax
push esi
setne dl
test eax, eax
jne 0x41ee00
cmp dword [0x669984], 3
jl 0x41eebe
test cl, cl
je 0x41ee10
mov esi, str.IdeaITSToolbarInitTime
mov eax, str.IdeaDispatcherToolbarInitTime
jmp 0x41ee1a
mov esi, str.IdeaITSToolbarExitTime
mov eax, str.IdeaDispatcherToolbarExitTime
push 0x100
test dl, dl
mov dword [esp + 8], 0
push str.SOFTWARELenovoBatteryGauge
push SysReAllocStringLen
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
cmove esi, eax
mov dword [esp + 0x18], 0
call fcn.004090d0
test eax, eax
je 0x41ee7a
push 0x2001f
push str.SOFTWARELenovoBatteryGauge
push SysReAllocStringLen
lea ecx, [esp + 0x10]
call fcn.004090d0
test eax, eax
je 0x41ee7a
mov eax, dword [esp + 4]
test eax, eax
je 0x41eebe
push eax
jmp 0x41eeb8
call fcn.005b5d3c
lea eax, [esp + 0x10]
push eax
call fcn.005b52ac
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push 8
push eax
push 0xb
push 0
push esi
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x41eebe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
Function at 0x41ef80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8d3d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x24], xmm0
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x669988], 0
mov dword [ebp - 0x24], vtable.CRegistry.0
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesLITSSVCLNBITSIC
push esi
call edi
test eax, eax
jne 0x41f004
mov esi, dword [ebp - 0x14]
mov eax, 1
mov dword [ebp - 0x20], esi
jmp 0x41f006
xor eax, eax
test eax, eax
jne 0x41f057
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push str.SYSTEMCurrentControlSetServicesLITSSVCLNBITSIC
push esi
call edi
test eax, eax
jne 0x41f02e
mov esi, dword [ebp - 0x14]
mov eax, 1
mov dword [ebp - 0x20], esi
jmp 0x41f030
xor eax, eax
test eax, eax
jne 0x41f057
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41f043
push esi
call edi
xor esi, esi
mov ebx, dword [0x669988]
test esi, esi
je 0x41f050
push esi
call edi
mov eax, ebx
jmp 0x41f142
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x18]
xor edi, edi
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push str.Version
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f085
mov edi, dword [ebp - 0x18]
lea ebx, [eax + 1]
jmp 0x41f087
xor ebx, ebx
test esi, esi
je 0x41f097
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x20], esi
test ebx, ebx
je 0x41f132
cmp edi, 0x4000
jb 0x41f132
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x18], 0
call fcn.0041f9a0
test al, al
je 0x41f132
mov ecx, str.LITSSVC
call fcn.0043cbd0
test al, al
je 0x41f132
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push str..EnergyDrv
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x41f132
test eax, eax
je 0x41f113
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x6000
jb 0x41f122
mov eax, 5
jmp 0x41f12d
cmp edi, 0x5000
sbb eax, eax
add eax, 4
mov dword [0x669988], eax
test esi, esi
je 0x41f13d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x669988]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
Function at 0x41f9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [eax], 0
movlpd qword [ebp - 0x28], xmm0
mov dword [ecx], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebx], 0
mov dword [ebp - 0x28], vtable.CRegistry.0
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesLITSSVCLNBITSICMMC
push esi
call edi
test eax, eax
jne 0x41fa3b
mov esi, dword [ebp - 0x18]
mov eax, 1
mov dword [ebp - 0x24], esi
jmp 0x41fa3d
xor eax, eax
test eax, eax
jne 0x41fa7d
lea eax, [ebp - 0x18]
push eax
push 0x20119
push 0
push str.SYSTEMCurrentControlSetServicesLITSSVCLNBITSICMMC
push esi
call edi
test eax, eax
jne 0x41fa65
mov esi, dword [ebp - 0x18]
mov eax, 1
mov dword [ebp - 0x24], esi
jmp 0x41fa67
xor eax, eax
test eax, eax
jne 0x41fa7d
test esi, esi
je 0x41fa76
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41fb40
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.Capability
push esi
call edi
test eax, eax
jne 0x41faac
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.CurrentSetting
push esi
call edi
test eax, eax
jne 0x41fad5
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.AutomaticModeSetting
push esi
call edi
test eax, eax
jne 0x41fafb
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41fb0d
push esi
call edi
xor esi, esi
mov dword [ebp - 0x24], esi
push dword [ebx]
mov eax, dword [ebp - 0x2c]
push dword [eax]
mov eax, dword [ebp - 0x30]
push dword [eax]
push str._Idea_ITSGetStatus__Capability_d_CurrentSetting_d_AutomaticModeSetting_d_
call fcn.0043eb40
mov ecx, dword [ebp - 0x34]
xor eax, eax
add esp, 0x10
cmp dword [ebx], 2
sete al
mov dword [ecx + 0xe0], eax
test esi, esi
je 0x41fb3e
push esi
call edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41fbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8d3d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x24], xmm0
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x669984], 0
mov dword [ebp - 0x24], vtable.CRegistry.0
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesLenovoProcessManagementPerformancePowerSlider
push esi
call edi
test eax, eax
jne 0x41fc51
mov esi, dword [ebp - 0x14]
mov eax, 1
mov dword [ebp - 0x20], esi
jmp 0x41fc53
xor eax, eax
test eax, eax
jne 0x41fca4
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push str.SYSTEMCurrentControlSetServicesLenovoProcessManagementPerformancePowerSlider
push esi
call edi
test eax, eax
jne 0x41fc7b
mov esi, dword [ebp - 0x14]
mov eax, 1
mov dword [ebp - 0x20], esi
jmp 0x41fc7d
xor eax, eax
test eax, eax
jne 0x41fca4
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41fc90
push esi
call edi
xor esi, esi
mov ebx, dword [0x669984]
test esi, esi
je 0x41fc9d
push esi
call edi
mov eax, ebx
jmp 0x41fd8c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x18]
xor edi, edi
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push str.Version
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41fcd2
mov edi, dword [ebp - 0x18]
lea ebx, [eax + 1]
jmp 0x41fcd4
xor ebx, ebx
test esi, esi
je 0x41fce4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x20], esi
test ebx, ebx
je 0x41fd7c
cmp edi, 0x1000
jb 0x41fd7c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
call fcn.00420300
test al, al
je 0x41fd7c
mov ecx, str.LenovoProcessManagement
call fcn.0043cbd0
test al, al
je 0x41fd7c
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push str..EnergyDrv
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x41fd7c
test eax, eax
je 0x41fd5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x3000
jb 0x41fd6c
mov eax, 4
jmp 0x41fd77
cmp edi, 0x2000
sbb eax, eax
add eax, 3
mov dword [0x669984], eax
test esi, esi
je 0x41fd87
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x669984]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
Function at 0x420300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [eax], 0
movlpd qword [ebp - 0x28], xmm0
mov dword [ecx], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebx], 0
mov dword [ebp - 0x28], vtable.CRegistry.0
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesLenovoProcessManagementPerformancePowerSlider
push esi
call edi
test eax, eax
jne 0x420398
mov esi, dword [ebp - 0x18]
mov eax, 1
mov dword [ebp - 0x24], esi
jmp 0x42039a
xor eax, eax
test eax, eax
jne 0x4203da
lea eax, [ebp - 0x18]
push eax
push 0x20119
push 0
push str.SYSTEMCurrentControlSetServicesLenovoProcessManagementPerformancePowerSlider
push esi
call edi
test eax, eax
jne 0x4203c2
mov esi, dword [ebp - 0x18]
mov eax, 1
mov dword [ebp - 0x24], esi
jmp 0x4203c4
xor eax, eax
test eax, eax
jne 0x4203da
test esi, esi
je 0x4203d3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x42048c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.ITS_FN_Capability
push esi
call edi
test eax, eax
jne 0x420409
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.ITS_CurrentSetting
push esi
call edi
test eax, eax
jne 0x420432
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.ITS_AutomaticModeSetting
push esi
call edi
test eax, eax
jne 0x420458
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42046a
push esi
call edi
xor esi, esi
mov dword [ebp - 0x24], esi
push dword [ebx]
mov eax, dword [ebp - 0x2c]
push dword [eax]
mov eax, dword [ebp - 0x30]
push dword [eax]
push str._Idea_DispatcherGetStatus__Capability_d_CurrentSetting_d_AutomaticModeSetting_d_
call fcn.0043eb40
add esp, 0x10
test esi, esi
je 0x42048a
push esi
call edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret 0xc
Function at 0x422880
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6ea5
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x88], 0
je 0x4229d7
cmp byte [esi + 0x89], 0
jne 0x4229d7
cmp byte [esi + 0x110], 0
je 0x4228d9
call fcn.00422a00
jmp 0x4229d7
mov cl, byte [esi + 0x112]
lea edi, [esi + 0x112]
test cl, cl
sete al
mov byte [edi], al
xor eax, eax
cmp byte [esi + 0x111], al
je 0x4228fd
test cl, cl
sete al
jmp 0x422902
test cl, cl
setne al
push eax
mov ecx, esi
mov dword [esi + 0xe0], eax
call fcn.00422e30
push 0
push 0
push edi
push 0x422d60
push 0
push 0
call fcn.005ae60d
add esp, 0x18
test eax, eax
je 0x422931
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xe0], 0
mov eax, str.F1F12_Function_Enabled
mov edi, str.Special_Function_Enabled
cmove edi, eax
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x4229f2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test edi, 0xffff0000
jne 0x42297c
movzx eax, di
lea ecx, [ebp - 0x14]
push eax
call fcn.00403100
jmp 0x42299a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422981
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.00403300
mov dword [ebp - 4], 1
mov ecx, str.Features.Toolbar.QuickSettings.KeyboardTopRow
mov esi, dword [ebp - 0x14]
mov edx, esi
push str.Features.Toolbar.QuickSettings
call fcn.00424f30
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4229d7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403700
int3