joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407380
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
mov esi, 0x629f50
mov ecx, str.Features.Toolbar.QuickSettings.GoToVantageBatteryDetailsPage
push str.Features.Toolbar.PowerInformation
mov edx, esi
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 0x4074e2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
test esi, 0xffff0000
jne 0x407418
movzx eax, si
push eax
call fcn.00403100
jmp 0x407424
push 0
push 0x629f50
call fcn.00403300
mov dword [ebp - 4], 1
call fcn.00591625
xor edx, edx
mov ecx, 0x186a0
div ecx
lea eax, [ebp - 0x18]
push edx
push str.lenovo_vantage3:device_settings_batterydetail_d
push eax
call fcn.0040ab60
mov esi, dword [ebp - 0x18]
add esp, 0xc
test esi, esi
je 0x4074a5
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 0x407470
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00409d40
call fcn.00409680
add esp, 0x18
test al, al
je 0x4074a5
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 0x4074c4
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 0x4074f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, 0x629f50
mov ecx, str.Features.Toolbar.QuickSettings.GoToVantageAllSettingsPage
push str.Features.Toolbar.PowerInformation
call fcn.00424f30
add esp, 4
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x1f
movups xmmword [ecx], xmm0
push str.lenovo_vantage3:device_settings
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00409d40
call fcn.00409680
add esp, 0x18
test al, al
je 0x40755b
push 3
push 0
push 0
push str.lenovo_vantage3:device_settings
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret
Function at 0x4086b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7610
mov eax, dword fs:[0]
push eax
sub esp, 0x228
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 edi, ecx
cmp byte [edi + 0xf4], 0
jne 0x4088ee
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x100
push str.SOFTWARELenovoBatteryGauge
push SysReAllocStringLen
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.004090d0
test eax, eax
je 0x40876d
push 0x2001f
push str.SOFTWARELenovoBatteryGauge
push SysReAllocStringLen
lea ecx, [ebp - 0x224]
call fcn.004090d0
test eax, eax
je 0x40876d
mov esi, dword [ebp - 0x224]
jmp 0x4088dc
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x230], 4
push eax
push 0
push str.ThinkITSSupport
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4088bf
cmp dword [ebp - 0x228], 4
jne 0x4088bf
cmp dword [ebp - 0x22c], 0x5000
jb 0x4088bf
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005aaec0
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
push str.ThinkITSStatusText
call fcn.00408f70
test eax, eax
jne 0x4088b9
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408820
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x1ce4]
call fcn.00403300
mov ecx, str.LITSSVC
call fcn.0043cbd0
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push str..IBMPmDrv
mov byte [ebp - 0x231], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x408880
cmp eax, 0xffffffff
je 0x408880
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x408882
xor al, al
cmp byte [ebp - 0x231], 0
je 0x40889c
test al, al
je 0x40889c
cmp byte [0x66997a], 0
jne 0x40889c
mov al, 1
jmp 0x40889e
xor al, al
push dword [edi + 0x1ce4]
mov byte [edi + 0x13f4], al
lea eax, [edi + 0x1c88]
push eax
call fcn.004267c0
add esp, 8
mov esi, dword [ebp - 0x224]
test esi, esi
je 0x4088d2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
mov ecx, edi
call fcn.00408910
test esi, esi
je 0x4088ee
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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
Function at 0x4089f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, 0x629f50
mov ecx, str.Features.Toolbar.PowerInformation.GoToPowerSmartSettingsByThinkIntelligentCooling
push str.Features.Toolbar.PowerInformation
call fcn.00424f30
add esp, 4
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x15
movups xmmword [ecx], xmm0
push str.lenovo_vantage3:power
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00409d40
call fcn.00409680
add esp, 0x18
test al, al
je 0x408a5b
push 3
push 0
push 0
push str.lenovo_vantage3:power
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x408b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d768d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 + 0xf4], 0
jne 0x408c6e
cmp byte [ebp + 8], 0
je 0x408b87
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x100
push str.SOFTWARELenovoBatteryGauge
push SysReAllocStringLen
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.004090d0
test eax, eax
je 0x408bf2
push 0x2001f
push str.SOFTWARELenovoBatteryGauge
push SysReAllocStringLen
lea ecx, [ebp - 0x20]
call fcn.004090d0
test eax, eax
je 0x408bf2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x408c6e
push eax
jmp 0x408c68
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 4
push eax
push 0
push str.PowerStatusInfo
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408c63
cmp dword [ebp - 0x28], 4
jne 0x408c63
mov edx, dword [ebp - 0x14]
mov ecx, esi
mov eax, edx
and eax, 1
mov dword [esi + 0x12c], eax
mov eax, edx
shr eax, 1
and eax, 1
mov dword [esi + 0x100], eax
mov eax, edx
shr eax, 2
shr edx, 3
and eax, 1
and edx, 1
mov dword [esi + 0x108], eax
mov dword [esi + 0x128], edx
call fcn.00406010
test edi, edi
je 0x408c6e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 4
Function at 0x408f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408ffb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x408fbd
cmp eax, 2
jne 0x408fd9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x408ff5
test ecx, ecx
je 0x408ff0
test cl, 1
jne 0x408fd9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x408ff5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0058fc43
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004515b9

Function at 0x40ac60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d77d5
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 eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ecx + 0x88], 0
je 0x40ad5e
cmp byte [ecx + 0x89], 0
jne 0x40ad5e
cmp dword [ecx + 0xe0], 1
mov eax, 0x627ab0
mov esi, 0x627aa8
cmovne esi, eax
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x40ad78
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test esi, 0xffff0000
jne 0x40acee
movzx eax, si
lea ecx, [ebp - 0x14]
push eax
call fcn.00403100
jmp 0x40ad0c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40acf3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00403300
mov dword [ebp - 4], 1
mov ecx, str.Features.Toolbar.QuickSettings.Camera
mov esi, dword [ebp - 0x14]
mov edx, esi
push str.Features.Toolbar.QuickSettings
call fcn.00424f30
add esp, 4
push 3
push 0
push 0
push str.ms_settings:privacy_webcam
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 0x40ad5e
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 esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403700
int3
Function at 0x40b920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
js 0x40ba8d
test edi, edi
je 0x40ba8d
mov ecx, dword [edi]
test ecx, ecx
je 0x40b952
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], 0
call fcn.004535de
push 0x62a550
mov ecx, dword [eax + 8]
movzx eax, si
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40ba77
push ebx
call fcn.004535de
push esi
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40ba76
call fcn.004535de
push esi
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40ba76
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ba76
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40ba76
push ebx
push dword [ebp - 8]
push eax
call fcn.005aa940
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0xc]
xor edx, edx
test eax, eax
push esi
cmovne ecx, edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40ba76
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x40ba6c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
movups xmmword [esi], xmm0
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov dword [edi], esi
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
cmp dword [edi], 0
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [edi], esi
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
pop ebx
cmp dword [edi], 0
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
Function at 0x40ca10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x440
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
cmp dword [0x65fb10], 1
je 0x40ca4b
mov al, 1
jmp 0x40ca85
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ca83
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40caa1
test edi, edi
je 0x40ca83
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
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
xor bl, bl
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x40cbec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, str.C:Windows
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
test eax, 0xffff0000
jne 0x40cae4
movzx eax, ax
push eax
call fcn.00403100
jmp 0x40caf0
push 0xa
push str.C:Windows
call fcn.00403300
mov dword [ebp - 4], 0xffffffff
nop word [eax + eax]
lea eax, [ebp - 0x428]
push str.PowerMgr.exe
push eax
call fcn.005b474e
mov esi, dword [ebp - 0x220]
add esp, 8
test eax, eax
je 0x40cb35
lea eax, [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40cb00
jmp 0x40cbc2
push dword [ebp - 0x444]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x40cbae
cmp eax, 0xffffffff
je 0x40cbc2
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005aaec0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push dword [esi - 0xc]
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.005b489e
add esp, 0xc
test eax, eax
jne 0x40cbc2
push dword [ebp - 0x220]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cbc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
test edi, edi
je 0x40cbcd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40cbe5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x40ca85
push 0x80004005
call fcn.00403700
int3
Function at 0x40d690
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x88], 0
je 0x40d70d
cmp byte [esi + 0x89], 0
jne 0x40d70d
xor eax, eax
mov byte [esi + 0x138], 0
cmp dword [esi + 0x134], eax
sete al
push eax
mov dword [esi + 0x134], eax
mov dword [esi + 0xe0], eax
call fcn.0040d840
cmp dword [esi + 0x134], 0
mov eax, 0x627ab0
mov edx, 0x627aa8
mov ecx, str.Features.Toolbar.QuickSettings.ConservationMode
push str.Features.Toolbar.QuickSettings
cmove edx, eax
call fcn.00424f30
push 0
push 0
push esi
push 0x40d710
push 0
push 0
call fcn.005ae60d
add esp, 0x1c
test eax, eax
je 0x40d70d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x40f570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp byte [edi + 0x88], 0
je 0x40f6bc
cmp byte [edi + 0x89], 0
jne 0x40f6bc
cmp byte [edi + 0x114], 0
je 0x40f664
mov eax, dword [edi + 0xa0]
mov dword [edi + 0xe4], 0x1a4
mov dword [edi + 0xe8], 2
mov byte [edi + 0x89], 1
test eax, eax
je 0x40f5d7
cmp dword [eax], 0x1a4
je 0x40f61f
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x40f5e9
cmp dword [eax], 0x1a4
je 0x40f61f
mov eax, dword [edi + 0xa8]
test eax, eax
je 0x40f5fb
cmp dword [eax], 0x1a4
je 0x40f61f
mov eax, dword [edi + 0xac]
test eax, eax
je 0x40f60d
cmp dword [eax], 0x1a4
je 0x40f61f
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x40f625
cmp dword [eax], 0x1a4
jne 0x40f625
mov dword [edi + 0xb4], eax
cmp dword [edi + 0xb4], 0
je 0x40f6bc
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 0x20]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
push esi
xor eax, eax
lea esi, [edi + 0xe0]
cmp dword [esi], 1
setne al
push eax
mov dword [esi], eax
call fcn.0040f850
cmp dword [esi], 1
mov eax, 0x627ab0
mov edx, 0x627aa8
mov ecx, str.Features.Toolbar.QuickSettings.Dolby
push str.Features.Toolbar.QuickSettings
cmovne edx, eax
call fcn.00424f30
push 0
push 0
push esi
push 0x40f6d0
push 0
push 0
call fcn.005ae60d
add esp, 0x1c
pop esi
test eax, eax
je 0x40f6bc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
Function at 0x410e30
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
cmp byte [ecx + 0x88], 0
je 0x410f4c
cmp byte [ecx + 0x89], 0
jne 0x410f4c
lea edi, [ecx + 0xe0]
mov eax, 1
sub eax, dword [edi]
push eax
mov dword [edi], eax
call fcn.00411060
push 0
push 0
push edi
push 0x410f90
push 0
push 0
call fcn.005ae60d
add esp, 0x18
test eax, eax
je 0x410eaa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi], 1
mov eax, 0x627ab0
mov esi, 0x627aa8
cmovne esi, eax
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x410f67
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test esi, 0xffff0000
jne 0x410ef1
movzx eax, si
lea ecx, [ebp - 0x14]
push eax
call fcn.00403100
jmp 0x410f0f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410ef6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00403300
mov dword [ebp - 4], 1
mov ecx, str.Features.Toolbar.QuickSettings.EyeCareModeToggle
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 0x410f4c
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
Function at 0x411f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xd4], eax
mov dword [ebp + 0xc], eax
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004515b9

Function at 0x411f70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x65f018]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00451de2
push 1
mov ecx, ebx
call fcn.004523bc
sub esp, 0xc
call fcn.00412c90
mov eax, dword [0x669980]
lea ecx, [ebx + 0x170]
push 0xffffff
push 0xa75b50
push 0
push 0xd
push 3
mov dword [ebx + 0x42c], eax
mov eax, dword [0x669980]
push 0
push dword [ebx + 0x420]
mov dword [0x66997c], eax
mov eax, dword [0x65fb0c]
mov dword [0x65fb08], eax
call fcn.00426fe0
cmp dword [ebx + 0x3b4], 0xa2
jne 0x411ffa
cmp dword [ebx + 0x3bc], 0
je 0x4120a8
lea edx, [ebx + 0x3b0]
mov dword [ebx + 0x3b4], 0xa2
mov ecx, 0xa2
mov dword [ebx + 0x3bc], 0
call fcn.0040b920
mov ecx, dword [ebx + 0x3bc]
test ecx, ecx
jle 0x412035
lea edx, [ebx + 0x3b8]
call fcn.0040b920
jmp 0x41204f
mov ecx, dword [ebx + 0x3b8]
test ecx, ecx
je 0x41204f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x3b8], 0
mov eax, dword [ebx + 0x348]
test eax, eax
je 0x4120a8
lea ecx, [esp + 0xc]
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0xc]
push eax
lea ecx, [ebx + 0x328]
call fcn.00454148
mov edi, dword [esp + 0xc]
lea ecx, [ebx + 0x328]
mov esi, dword [esp + 0x10]
mov eax, edi
mov edx, dword [esp + 0x18]
sub eax, esi
add eax, edx
sub edx, esi
push 1
push edx
mov dword [esp + 0x1c], eax
sub eax, edi
push eax
push esi
push edi
call fcn.00450603
lea ecx, [ebx + 0x248]
call fcn.004295d0
push 1
push dword [ebx + 0x42c]
mov ecx, ebx
call fcn.004122d0
push 0
push 0
push ebx
push 0x4124b0
push 0
push 0
call fcn.005ae60d
add esp, 0x18
test eax, eax
je 0x4120e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
Function at 0x412370
Capabilities:
Query or enumerate registry value
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
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov byte [esp + 0xf], cl
push eax
push 0xf003f
xor edi, edi
mov esi, SysReAllocStringLen
push edi
push str.SoftwareLenovoBatteryGaugeToast
push esi
mov ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4123b5
mov esi, dword [esp + 0x10]
jmp 0x412402
lea eax, [esp + 0x14]
push eax
push 0xf013f
push 0
push str.SoftwareLenovoBatteryGaugeToast
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4123d7
mov esi, dword [esp + 0x14]
jmp 0x412402
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareLenovoBatteryGaugeToast
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412460
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push str.ResetEyeCareMode
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove edi, dword [esp + 0x1c]
cmp byte [esp + 0xf], 0
je 0x41245c
test ebx, ebx
je 0x41245c
mov eax, dword [ebx]
cmp edi, eax
je 0x41245c
push 4
mov edi, eax
lea eax, [esp + 0x20]
push eax
push 4
push 0
push str.ResetEyeCareMode
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x412467
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c]
cmp edi, 3
pop edi
pop esi
setb al
pop ebx
xor ecx, esp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret