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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x38]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 8], ebx
je 0x4284e5
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edi
mov dword [ebp], 0xffffffff
mov ecx, dword [0x491164]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], eax
call fcn.00424f40
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4283e2
lea edx, [esp + 0x18]
push edx
push edi
call fcn.00426c10
add esp, 8
test eax, eax
jne 0x4283e2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push edi
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x4283ef
mov eax, SysReAllocString
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebx
push str.SoftwareATIACESettingsGraphics
push eax
call esi
test eax, eax
je 0x42845d
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push str.SoftwareATIACESettingsGraphics
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x42845d
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.SoftwareWOW6432NodeATIACESettingsGraphics
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42844a
push str.GetACEPrbPath___ACE_REMAP_PATH_is_OK
jmp 0x428462
push str.GetACEPrbPath___ACE_PATH_failed_n
call fcn.0040aab0
add esp, 4
mov dword [esp + 0x10], ebx
jmp 0x4284b5
push str.GetACEPrbPath___ACE_PATH_is_OK
call fcn.0040aab0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x4284b5
mov ecx, 4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.Notification
push eax
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4284aa
mov edx, dword [esp + 0x40]
mov dword [ebp], edx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop esi
je 0x4284e4
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x4284d1
push str.RevertToOriginalUser:_RevertToSelf_failed
call fcn.0040aab0
add esp, 4
mov ecx, dword [esp + 0x34]
push ecx
push edi
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x428520
Capabilities:
Impersonate user

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push ebx
push esi
mov dword [esi], 0
call fcn.00424ff0
add esp, 8
test eax, eax
jne 0x428550
push str.ImpersonateTheUser__GetCurrentUserInfo_failed
call fcn.0040aab0
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
cmp dword [esi], 0
jne 0x42856a
push str.ImpersonateTheUser__GetCurrentUserInfo_returns_NULL_hToken
call fcn.0040aab0
add esp, 4
pop esi
mov eax, 1
pop ebx
ret
push edi
mov edi, dword [esp + 0x14]
mov dword [edi], 0x20
mov dword [edi + 8], ebx
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.USERENV.dll_LoadUserProfileA]
test eax, eax
jne 0x4285a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_to_LoadUserProfile___d
call fcn.0040aab0
mov ecx, dword [esi]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4285cc
push str.ImpersonateLoggedOnUser_success_n
call fcn.0040aab0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret
push str.Fail_to_impersonate
call fcn.0040aab0
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi]
add esp, 4
push eax
push ecx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x428600
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2120
call fcn.0045ef00
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x20], eax
xor ebp, ebp
mov eax, str.ati2evxx.exe
mov dword [esp + 0x18], ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428630
sub eax, edx
mov dword [esp + 0x1c], eax
call fcn.00427740
test eax, eax
jne 0x42865d
mov eax, dword [0x4900e8]
test ah, 4
je 0x42865d
push str.StopGlobalService_fails
call fcn.0040aab0
add esp, 4
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x1130]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x1138]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x428781
mov edi, dword [esp + 0x18]
shr edi, 2
xor ebx, ebx
cmp edi, ebp
mov dword [esp + 0x24], edi
jbe 0x428781
mov eax, dword [esp + ebx*4 + 0x1130]
cmp dword [esp + 0x20], eax
je 0x428778
push eax
push ebp
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
je 0x428778
xor eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x134], ebp
mov ecx, 0x3ff
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [esp + 0x138]
push eax
push esi
mov dword [esp + 0x24], ebp
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x42876b
test dword [esp + 0x14], 0xfffffffc
jbe 0x42876b
lea ebx, [ebx]
mov edx, dword [esp + ebp*4 + 0x130]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x28]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x428754
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push str.ati2evxx.exe
push ecx
call fcn.0045f6e1
add esp, 0xc
test eax, eax
je 0x428762
mov edx, dword [esp + 0x14]
inc ebp
shr edx, 2
cmp ebp, edx
jb 0x428710
jmp 0x42876b
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
xor ebp, ebp
inc ebx
cmp ebx, edi
jb 0x4286a1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d950
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ebx, eax
call edi
mov ecx, eax
sub ecx, ebx
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
ja 0x42d996
push 0
push ebp
call fcn.0044d370
add esp, 8
test eax, eax
je 0x42d99d
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42d966
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, eax
call edi
mov ecx, eax
sub ecx, ebx
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
ja 0x42da05
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.0044d370
add esp, 8
test eax, eax
jne 0x42da05
push str.CDisplayDeviceMan::WaitUntilDeviceAttached__Driver_not_attached_yet_n
call fcn.0040aab0
add esp, 4
push 0xfa
call ebp
jmp 0x42d9c8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x432120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
mov ebx, ecx
xor eax, eax
xor esi, esi
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.00416270
lea ecx, [esp + 0x20]
push ecx
push str.CAutoDisplayProfile::SaveAdapterIdentifier_._SubKey__s_n
call fcn.0040aab0
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0x2001f
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4321c7
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4321c7
lea ecx, [esp + 0x18]
push ecx
push str.Failed_to_open_registry_key__s.
call fcn.0040aab0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x10]
push 0x44
push ebx
push 3
push 0
push str.AdapterInfo
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x432520
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
push 0x70
mov esi, ecx
lea eax, [esi + 0x44]
push eax
push 3
xor ebp, ebp
push ebp
push str.DisplayLimits
push edi
call ebx
test eax, eax
je 0x432565
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DisplayLimits
push str.CAutoDisplayProfile::FlushToRegistry.__s_failed._err_d_n
call fcn.0040aab0
add esp, 0xc
jmp 0x43256a
mov ebp, 1
push 0xe4
lea ecx, [esi + 0x254]
push ecx
push 3
push 0
push str.Device1
push edi
call ebx
test eax, eax
je 0x4325a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Device1
push str.CAutoDisplayProfile::FlushToRegistry.__s_failed._err_d_n
call fcn.0040aab0
add esp, 0xc
jmp 0x4325a6
mov ebp, 1
push 0xe4
lea edx, [esi + 0x338]
push edx
push 3
push 0
push str.Device2
push edi
call ebx
test eax, eax
je 0x4325dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Device2
push str.CAutoDisplayProfile::FlushToRegistry.__s_failed._err_d_n
call fcn.0040aab0
add esp, 0xc
jmp 0x4325e2
mov ebp, 1
push 4
lea eax, [esi + 0x41c]
push eax
push 4
push 0
push str.ProfileFlags
push edi
call ebx
test eax, eax
je 0x432616
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ProfileFlags
push str.CAutoDisplayProfile::FlushToRegistry.__s_failed._err_d_n
call fcn.0040aab0
add esp, 0xc
jmp 0x43261b
mov ebp, 1
push 0x1a0
lea ecx, [esi + 0xb4]
push ecx
push 3
push 0
push str.DeviceProfile
push edi
call ebx
test eax, eax
je 0x4326b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceProfile
push str.CAutoDisplayProfile::FlushToRegistry.__s_failed._err_d_n
call fcn.0040aab0
add esp, 0xc
test ebp, ebp
je 0x4326a5
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
lea eax, [esp + 0x10]
mov dword [esp + 0x18], edx
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push 3
push 0
push str.Timestamp
push edi
call ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esi, 0x420
mov dword [esi], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ebp, 1
jmp 0x432654
Function at 0x43b6c0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x68
cmp dword [esp + 0x6c], 3
mov dword [esp], 0
jb 0x43b6e6
push str.bPostMessageToCCC:_ulAceCommand_out_of_range
call fcn.0040aab0
add esp, 4
xor eax, eax
add esp, 0x68
ret 0xc
mov eax, dword [0x4955b0]
test eax, eax
je 0x43b6ff
push str.04874F40_A61B_405c_8206_7116B598FD8A
push eax
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
jne 0x43b716
push 0
push 0x439bd0
mov dword [0x4955b0], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x4955b0]
test eax, eax
jne 0x43b734
push str.bPostMessageToCCC:_failed_to_get_CCC_window_handle
call fcn.0040aab0
add esp, 4
xor eax, eax
add esp, 0x68
ret 0xc
mov eax, dword [esp + 0x74]
test eax, eax
push edi
je 0x43b749
mov eax, dword [esp + 0x74]
push eax
call fcn.004398b0
jmp 0x43b753
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00439860
mov edi, eax
add esp, 4
lea eax, [edi - 0x20]
cmp eax, 0xa
push esi
ja case.0x43b76c.35
movzx edx, byte [eax + 0x43b85c]
jmp dword [edx*4 + 0x43b854]
push str.bPostMessageToCCC:_PowerXpress_related_msg
call fcn.0040aab0
push 0xc
call fcn.0045f9c9
mov esi, eax
add esp, 8
test esi, esi
je case.0x43b76c.35
mov eax, dword [0x4955b0]
push edi
push 0x8486
push eax
lea ecx, [esp + 0x18]
push str.SendMessage_to__.8X_with_message_id:_.8X__lparam:__.8x
push ecx
call fcn.0045e6a9
lea edx, [esp + 0x20]
push edx
call fcn.00411050
mov eax, dword [0x4955b0]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push esi
push 0x439c00
mov dword [esi], eax
mov dword [esi + 4], 0x8486
mov dword [esi + 8], edi
call fcn.00423c00
add esp, 0x2c
test eax, eax
je 0x43b7f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
add esp, 0x68
ret 0xc
push esi
call fcn.0045f918
add esp, 4
mov edx, dword [0x4955b0]
push edi
push 0
push 0x8486
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
je 0x43b834
mov eax, dword [0x4955b0]
push eax
push str.bPostMessageToCCC:_PostMessage_success_ccc0x_x
call fcn.0040aab0
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x68
ret 0xc
mov ecx, dword [0x4955b0]
push ecx
push str.bPostMessageToCCC:_PostMessage_failed_ccc0x_x
call fcn.0040aab0
add esp, 8
pop esi
xor eax, eax
pop edi
add esp, 0x68
ret 0xc
Function at 0x43f780
Capabilities:
Read file via mapping

Disassembly:
mov al, byte [esp + 0xc]
test al, al
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
mov bl, 1
push edi
jne 0x43f808
push ebp
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x43f7f1
cmp eax, 0xffffffff
je 0x43f7f1
push edi
push str.CSharedDataBase::Init:_success_to_CreateFileMapping_for__s
call fcn.0040aab0
mov eax, dword [esi + 4]
add esp, 8
push ebp
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
push edi
jne 0x43f83d
push str.CSharedDataBase::Init:_failed_to_MapViewOfFile_for__s
call fcn.0040aab0
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
push edi
push str.CSharedDataBase::Init:_failed_to_CreateFileMapping_for__s
call fcn.0040aab0
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x43f826
cmp eax, 0xffffffff
je 0x43f826
push edi
push str.CSharedDataBase::Init:_success_to_OpenFileMapping_for__s
jmp 0x43f7ba
push edi
push str.CSharedDataBase::Init:_failed_to_OpenFileMapping_for__s
call fcn.0040aab0
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
push str.CSharedDataBase::Init:_success_to_MapViewOfFile_for__s
call fcn.0040aab0
add esp, 8
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc
Function at 0x441dd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc0
push esi
push edi
push 0xffffffffffffffff
mov ecx, 0x492d68
call fcn.004158e0
test eax, eax
jne 0x441e11
test dword [0x4900e8], 0x10000
je 0x441f03
push str.PowerXpressCreateProcess:_failed_to_acquire_PX_mutex_lock
call fcn.0040aab0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x492d68
call fcn.00415870
test eax, eax
je 0x441eea
xor eax, eax
mov ecx, 0x19
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
lea ecx, [esp + 0x6c]
push str.Ati2evxx.exe__PowerXpress__d__d__d
push ecx
call fcn.0045e6a9
add esp, 0x14
xor edx, edx
xor eax, eax
mov dword [esp + 8], edx
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x1c]
push ecx
push edx
push edx
push 0x20
push edx
push edx
push edx
mov dword [esp + 0x34], edx
lea edx, [esp + 0x80]
push edx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, dword [0x4900e8]
je 0x441ed0
test eax, 0x10000
je 0x441eb6
push str.PowerXpressCreateProcess:_create_PowerXpress_process_n
call fcn.0040aab0
add esp, 4
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test eax, 0x10000
je 0x441f03
push str.PowerXpressCreateProcess:_failed_to_create_PowerXpress_process_n
call fcn.0040aab0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test dword [0x4900e8], 0x10000
je 0x441f03
push str.PowerXpressCreateProcess:_failed_to_unlock_PX_mutex
call fcn.0040aab0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x441f10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2120
call fcn.0045ef00
push ebx
push ebp
xor ebx, ebx
push esi
xor ebp, ebp
mov eax, str.dwm.exe
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441f38
sub eax, edx
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x1130]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x1000
lea ecx, [esp + 0x1138]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x44206e
mov edi, dword [esp + 0x1c]
shr edi, 2
cmp edi, ebx
mov dword [esp + 0x24], edi
jbe 0x44206e
jmp 0x441f90
mov edx, dword [esp + ebx*4 + 0x1130]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor edx, edx
cmp esi, edx
je 0x442065
xor eax, eax
mov dword [esp + 0x130], edx
mov ecx, 0x3ff
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x138]
push ecx
push esi
mov dword [esp + 0x28], edx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x442056
mov eax, dword [esp + 0x18]
xor ebp, ebp
test eax, 0xfffffffc
jbe 0x442056
jmp 0x442000
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + ebp*4 + 0x134]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x442044
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push str.dwm.exe
push edx
call fcn.0045f6e1
add esp, 0xc
test eax, eax
je 0x442052
mov eax, dword [esp + 0x18]
inc ebp
shr eax, 2
cmp ebp, eax
jb 0x442000
jmp 0x442056
inc dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
inc ebx
cmp ebx, edi
jb 0x441f90
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442080
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x3a8
mov eax, dword [esp + 0x3ac]
push ebp
push esi
xor ebp, ebp
push 8
push ebp
push ebp
push 0x485fbc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
je 0x442278
lea ecx, [esp + 0x1c8]
push ecx
push esi
mov dword [esp + 0x1d0], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
je 0x442271
lea edx, [esp + 0x1c]
push edx
push ebp
push esi
mov dword [esp + 0x28], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x442271
push ebx
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push edi
mov edi, 4
nop
lea eax, [esp + 0x10]
push eax
push 0xc8
lea ecx, [esp + 0x2f8]
push ecx
lea edx, [esp + 0x20]
push edx
push 1
lea eax, [esp + 0x38]
push eax
push esi
call ebx
test eax, eax
jne 0x44214e
test dword [0x4900e8], 0x10000
je 0x44214e
push str.PowerXpressSetDesktopPreference:_fail_to_get_SPDRP_HARDWAREID
call fcn.0040aab0
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0xc8
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x20]
push eax
push 9
lea ecx, [esp + 0x38]
push ecx
push esi
call ebx
test eax, eax
jne 0x44218c
test dword [0x4900e8], 0x10000
je 0x44218c
push str.PowerXpressSetDesktopPreference:_fail_to_get_SPDRP_DRIVER
call fcn.0040aab0
add esp, 4
lea edx, [esp + 0x108]
push edx
push str.SYSTEMCurrentControlSetControlClass
lea eax, [esp + 0x48]
push str._s_s
push eax
call fcn.0045e6a9
mov eax, dword [0x4900e8]
add esp, 0x10
test eax, 0x10000
je 0x4421c9
lea ecx, [esp + 0x40]
push ecx
push str.PowerXpressSetDesktopPreference:_registry:_s_n
call fcn.0040aab0
add esp, 8
lea edx, [esp + 0x18]
push edx
push 0x2001f
push 0
lea eax, [esp + 0x4c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44224e
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.PXACAutoSwitch
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x44224e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3bc]
push edi
lea eax, [esp + 0x24]
push eax
push edi
push 0
push str.PXPreference
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x24]
push eax
inc ebp
push ebp
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x442110
pop edi
pop ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop esi
pop ebp
add esp, 0x3a8
ret
Function at 0x446a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x490918]
sub esp, 0x114
cmp eax, 0xffffffff
jne 0x446ae7
lea eax, [esp + 0xc]
push eax
call fcn.0040ba20
add esp, 4
test eax, eax
je 0x446ae2
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x18]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x446ae2
mov edx, dword [esp + 4]
lea eax, [esp]
push eax
push 0x490918
lea ecx, [esp + 0x10]
push ecx
push 0
push str.ExtEvent_VideoPlaybackCpuThrottle
push edx
mov dword [esp + 0x20], 4
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x446ae2
cmp dword [esp], 4
jne 0x446ae2
mov eax, dword [0x490918]
cmp eax, 0x64
jbe 0x446ae7
mov eax, 0x64
mov dword [0x490918], eax
add esp, 0x114
ret
mov eax, SysReAllocString
add esp, 0x114
ret