joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe14
mov eax, dword [0x4161c0]
push ebx
mov dword [esp + 0xe14], eax
push esi
push edi
mov esi, ecx
xor eax, eax
xor edx, edx
mov word [esp + 0x218], dx
mov ecx, 0xff
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x618], dx
mov ecx, 0xff
lea edi, [esp + 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x10], dx
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_LR____zj1.G_1sW_x43h__fXWou___TnJ__x1]
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push str.tvt_gina.dll
lea ecx, [esp + 0x14]
push ecx
push str._s_s
lea edx, [esp + 0x224]
push 0x200
push edx
call ebx
push str.tvt_gina_api.dll
lea eax, [esp + 0x28]
push eax
push str._s_s
lea ecx, [esp + 0x638]
push 0x200
push ecx
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x28
lea edx, [esp + 0x218]
push edx
call edi
test eax, eax
jne 0x4017ce
lea eax, [esp + 0x218]
push eax
jmp 0x4017e4
lea ecx, [esp + 0x618]
push ecx
call edi
test eax, eax
jne 0x40180e
lea edx, [esp + 0x618]
push edx
push str.IsACGinaEnabled:__s_not_found
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0xe1c]
call fcn.00409e63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov word [esp + 0xa18], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xa1a]
rep stosd dword es:[edi], eax
push str.ACGina.dll
mov ecx, esi
stosw word es:[edi], ax
call fcn.004011f0
push eax
push str._s_s
lea eax, [esp + 0xa24]
push 0x200
push eax
call ebx
mov edi, dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
lea ecx, [esp + 0xa2c]
add esp, 0x14
push ecx
call edi
mov ebx, dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
push eax
call ebx
add esp, 8
lea edx, [esp + 0xa18]
push edx
mov ecx, esi
call fcn.004011b0
test al, al
je 0x4018a2
push str.IsACGinaEnabled:_TVT_IsGinaInPluginList_returned_TRUE
call edi
push eax
call ebx
mov eax, 1
add esp, 8
mov ecx, dword [esp + 0xe1c]
call fcn.00409e63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.IsACGinaEnabled:_TVT_IsGinaInPluginList_returned_FALSE
call edi
push eax
call ebx
mov ecx, dword [esp + 0xe24]
mov eax, dword [esp + 0x14]
add esp, 8
call fcn.00409e63
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b80
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x404
mov eax, dword [0x4161c0]
mov dword [esp + 0x400], eax
push 0x200
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401bdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Ac_Profile_Manager_Service
push str.AcPrfMgrSvc::CmdInstallService:_Unable_to_install__s___Error_Code___d
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 0x10
mov ecx, dword [esp + 0x400]
call fcn.00409e63
add esp, 0x404
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x401c9d
push ebx
push esi
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.Ac_Profile_Manager_Service
push 0x40c724
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x401c68
push str.Ac_Profile_Manager_Service
push str.AcPrfMgrSvc::CmdInstallService:__s_installed
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
add esp, 0xc
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x400]
call fcn.00409e63
add esp, 0x404
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AcPrfMgrSvc::CmdInstallService:_CreateService_failed___Error_Code___d
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 0xc
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x400]
call fcn.00409e63
add esp, 0x404
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AcPrfMgrSvc::CmdInstallService:_OpenSCManager_failed___Error_Code___d
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
mov ecx, dword [esp + 0x410]
add esp, 0xc
pop edi
call fcn.00409e63
add esp, 0x404
ret
Function at 0x401f40
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push str.Ac_Profile_Manager_Service
push str.AcPrfMgrSvc::ControlHandler_:_Debugging__s
mov esi, eax
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
add esp, 0xc
push 1
push 0x401e60
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00408800
add esp, 8
pop esi
pop ecx
ret

Function at 0x402090
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
cmp ebx, 1
push esi
push edi
mov dword [esp + 0xc], 0x40c724
mov dword [esp + 0x10], 0x401f90
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jle 0x402138
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x4020d2
cmp cl, 0x2f
jne 0x402138
mov edi, dword [sym.imp.MSVCR71.dll__stricmp]
inc eax
push eax
push str.install
call edi
add esp, 8
test eax, eax
jne 0x4020ef
call fcn.00401b80
jmp 0x402130
mov eax, dword [esi + 4]
inc eax
push eax
push str.remove
call edi
add esp, 8
test eax, eax
jne 0x402109
call fcn.00401cd0
jmp 0x402130
mov ecx, dword [esi + 4]
inc ecx
push ecx
push str.debug
call edi
add esp, 8
test eax, eax
jne 0x402138
push esi
push ebx
mov dword [0x4168c4], 1
call fcn.00401f40
add esp, 8
push 0
call dword [sym.imp.MSVCR71.dll_exit]
mov esi, dword [sym.imp.MSVCR71.dll_printf]
push str.AcPrfMgrSvc
push str._s__install__________to_install_the_service_n
call esi
push str.AcPrfMgrSvc
push str._s__remove___________to_remove_the_service_n
call esi
push str.AcPrfMgrSvc
push str._s__debug__params____to_run_as_a_console_app_for_debugging_n
call esi
push str._nStartServiceCtrlDispatcher_being_called._n
call esi
push str.This_may_take_several_seconds.__Please_wait._n
call esi
add esp, 0x20
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x402197
push str.AcPrfMgrSvc::main:_StartServiceCtrlDispatcher_failed
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x402df0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40a49a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4161c0]
push ebx
push esi
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], eax
xor esi, esi
mov dword [esp + 8], ebx
call sub.AcPrfMgr.dll_public:_void___thiscall_CAcPrfMgr::constructor_void_
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], ebx
call dword [sym.imp.AcCryptHlpr.dll_public:_void___thiscall_CAcCryptHlpr::constructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
lea eax, [esp + 8]
push eax
push 0x20019
push ebx
push str.SOFTWARELenovoAccess_ConnectionsInstall
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x5c], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402ead
mov ecx, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push ebx
push str.szCcpData
push ecx
call edi
test eax, eax
jne 0x402e99
mov edx, dword [esp + 0xc]
push ebx
push ebx
push ebx
push ebx
push str.szCcpDataLen
push edx
call edi
test eax, eax
jne 0x402e99
mov esi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov dword [esp + 0xc], ebx
pop edi
jne 0x402ed9
push str.AcPrfMgrSvr::RestoreDefaultCCPSettingsIfMissing:_CCP_Settings_NOT_detected._Writing_default
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
add esp, 8
lea ecx, [esp + 0x10]
call dword [sym.imp.AcCryptHlpr.dll_Ordinal_15]
push ebx
push ebx
lea ecx, [esp + 0x14]
call sub.AcPrfMgr.dll_public:_unsigned_long_int___thiscall_CAcPrfMgr::WriteCcpSettings_unsigned_long_int__unsigned_long_int_
jmp 0x402eee
push str.AcPrfMgrSvr::RestoreDefaultCCPSettingsIfMissing:_CCP_Settings_detected.
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], bl
call dword [sym.imp.AcCryptHlpr.dll_public_virtual:_void___thiscall_CAcCryptHlpr::destructor_void_]
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0xffffffff
call sub.AcPrfMgr.dll_public:_void___thiscall_CAcPrfMgr::destructor_void_
mov ecx, dword [esp + 0x40]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x38]
pop ebx
call fcn.00409e63
add esp, 0x44
ret
Function at 0x408f90
Capabilities:
Reference wmi statements

Disassembly:
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
call dword [0x41613c]
mov ecx, dword [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::clear_void_]
mov esi, dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push str.CAcWin32Bios::GetSystemModelNumber:_Function_Entry
call esi
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
mov eax, dword [ebx]
add esp, 8
test eax, eax
jne 0x408fdf
push str.CAcWin32Bios::GetSystemModelNumber:_QCWmiClass__is_not_initialized
call esi
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
push ebp
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x411e58
call edi
push str.SELECT__FROM_Win32_ComputerSystem
mov esi, eax
call edi
lea edx, [esp + 0x14]
push edx
push 0
push 0x20
mov edi, eax
mov eax, dword [ebx + 0xc]
push edi
push esi
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebp, eax
call edi
push esi
call edi
xor esi, esi
cmp ebp, esi
je 0x40904d
push str.CAcWin32Bios::GetSystemModelNumber:_Error_during_exec_query
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
pop edi
mov dword [ebx + 4], ebp
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, esi
jge 0x409073
mov dword [ebx + 4], eax
cmp dword [esp + 0x18], esi
je 0x4090ac
cmp eax, esi
jl 0x4090ac
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push str.Model
push ecx
mov ecx, ebx
call fcn.00408eb0
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret 4
push str.CAcWin32Bios::GetSystemModelNumber:_No_objects_found
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x4090d0
Capabilities:
Reference wmi statements

Disassembly:
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
call dword [0x41613c]
mov ecx, dword [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::clear_void_]
mov esi, dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push str.CAcWin32Bios::GetBIOSVersion:_Function_Entry
call esi
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
mov eax, dword [ebx]
add esp, 8
test eax, eax
jne 0x40911f
push str.CAcWin32Bios::GetBIOSVersion:_QCWmiClass__is_not_initialized
call esi
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
push ebp
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x411e58
call edi
push str.SELECT__FROM_Win32_BIOS
mov esi, eax
call edi
lea edx, [esp + 0x14]
push edx
push 0
push 0x20
mov edi, eax
mov eax, dword [ebx + 0xc]
push edi
push esi
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebp, eax
call edi
push esi
call edi
xor esi, esi
cmp ebp, esi
je 0x40918d
push str.CAcWin32Bios::GetBIOSVersion:_Error_during_exec_query
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
pop edi
mov dword [ebx + 4], ebp
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, esi
jge 0x4091b3
mov dword [ebx + 4], eax
cmp dword [esp + 0x18], esi
je 0x4091ec
cmp eax, esi
jl 0x4091ec
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push str.SMBIOSBIOSVersion
push ecx
mov ecx, ebx
call fcn.00408eb0
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret 4
push str.CAcWin32Bios::GetBIOSVersion:_No_objects_found
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x409230
Capabilities:
Set registry value

Disassembly:
sub esp, 8
test byte [esp + 0xc], 2
mov dword [esp], 0
mov dword [esp + 4], vtable.CACGinaHelper.0
lea ecx, [esp + 4]
je 0x409254
call fcn.00401360
jmp 0x409259
call fcn.00401540
push esi
mov esi, dword [esp + 0x10]
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareLenovoAccess_ConnectionsOptions
and esi, 0xfffffffd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x409294
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push 0x4122e4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x4092d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareLenovoAccess_ConnectionsOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esi], 0xc70
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40931a
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 4]
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push 0
push 0x4122e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CACGinaHelper.0
call fcn.004016f0
mov edx, dword [esi]
neg eax
sbb eax, eax
and eax, 2
or edx, eax
xor eax, eax
test edi, edi
pop edi
mov dword [esi], edx
sete al
pop esi
add esp, 0xc
ret
Function at 0x409b90
Capabilities:
Set registry value

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareLenovoAccess_ConnectionsOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x409bc5
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push esi
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.NotificationOptions
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x409c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x4161c0]
mov dword [esp + 0x134], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 4
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
xor eax, eax
mov ecx, 0x46
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x10], 0
mov dword [esi], 7
mov dword [esp + 0x1c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x28], 2
jne 0x409c73
cmp dword [esp + 0x1c], 6
jb 0x409c73
cmp dword [esp + 0x20], 1
jb 0x409c73
mov dword [esi], 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.SoftwareLenovoAccess_ConnectionsOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409ca7
xor eax, eax
mov ecx, dword [esp + 0x13c]
call fcn.00409e63
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push 0
push str.NotificationOptions
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x13c]
xor eax, eax
test esi, esi
sete al
call fcn.00409e63
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4010d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406678
push eax
mov al, byte [0x409cc1]
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, 1
push esi
push edi
test bl, al
jne 0x40111a
mov dl, al
push 0x4012b0
or dl, bl
mov dword [0x409cc4], 0x4072b4
mov byte [0x409cc1], dl
call fcn.00401450
add esp, 4
call fcn.00406030
push 0
mov ecx, eax
call fcn.004060c0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00401670
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [str.Readme_]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
push ecx
mov ecx, esi
call fcn.00404fa0
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], bl
call fcn.00401412
mov edx, dword [str.Readme]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x3c], 3
call dword [eax + 0xc]
lea ecx, [esp + 0x10]
mov edi, eax
mov byte [esp + 0x34], bl
call fcn.00401412
cmp edi, 0xfffffc18
je 0x40127d
cmp edi, 0xfffffc19
je 0x40127d
mov eax, dword [str.Readme_]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
push 0x409064
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [str.Path]
mov byte [esp + 0x34], 4
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x20]
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x44], 5
call dword [edx + 0x18]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 6
call fcn.00401406
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.00401412
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call fcn.00401412
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], bl
call fcn.00401412
push 0x40805c
lea ecx, [esp + 0x10]
call fcn.00401400
mov ecx, dword [str.Readme.txt]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401400
mov edx, dword [esp + 0xc]
push ebx
push 0
push 0
push edx
push str.open
push 0
call dword [0x4071d4]
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 0
call fcn.00401412
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.00401760
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret