joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41eb86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x18], ebx
mov dword [edi + 0x10c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x408e44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x10], ebx
je 0x408e44
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0xc]
mov dword [esp + 0x13c], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
push 0x104
push ecx
mov byte [esp + 0x144], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x30]
lea eax, [esp + 0xc]
push edx
push str._sSysWOW64mmdriver.inf
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
push ebx
push ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x408e20
mov dword [edi + 0x10c], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], bl
call fcn.0041d8b4
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0041db00
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret

Function at 0x409f60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x8c
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push str..pipeAEADIAPOProperties
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x409fc9
mov eax, dword [esp + 0x98]
lea ecx, [esp + 8]
push edi
push ecx
lea edx, [esp + 0x14]
push 0x88
push edx
push esi
mov dword [esp + 0x20], 0xae0ae0ae
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409fc2
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x8c
ret 4
Function at 0x40a4d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push esi
push ebx
mov dword [esp + 0x24], 4
call edi
test eax, eax
je 0x40a539
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push esi
push eax
call edi
test eax, eax
jne 0x40a539
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x40f320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f40a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0x3a0]
xor ebp, ebp
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call fcn.00410cb0
push 0x104
mov esi, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebp
mov dword [esp + 0x20], ebp
je 0x40f37e
mov ecx, eax
call fcn.00402b60
mov edi, eax
jmp 0x40f380
xor edi, edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
cmp eax, ebp
je 0x40f39d
mov ebp, dword [ebx + 0x2bc]
mov eax, dword [esi + 4]
sub ebp, eax
jmp 0x40f3a0
mov ebp, dword [esi + 4]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x3a0]
push edx
push eax
call fcn.0041cbd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [edi + 0xe8], eax
mov eax, dword [esp + 0x28]
push 0x10000000
push edx
push eax
mov dword [edi + 0xe4], ecx
push ebp
push ebx
mov ecx, edi
call fcn.00402ca0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00402d10
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push 0
push 0
push 0
push eax
push ecx
push edx
mov ecx, edi
call fcn.00403520
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x411670
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x41f6db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0xd0
push 0xe
mov esi, ecx
push 0xd0
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xbc], eax
test ecx, ecx
je 0x4116c2
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xc0], 0
mov edi, dword [0x42be64]
test edi, edi
je 0x411700
push 0x30
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x4116f0
push edi
mov ecx, eax
call fcn.00415ac0
jmp 0x4116f2
xor eax, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esi + 0xc0], eax
push 0
push 0
mov ecx, esi
mov dword [esi + 0xe8], 0xffffffff
call fcn.00414230
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x415320
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41fac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x24]
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push str._sPanel_dJack_d
push ecx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x415534
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 8]
mov dword [esp + 4], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.CODEC_ID
push ecx
call edi
mov eax, dword [esi + 0xc]
lea edx, [esp + 8]
push 4
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push 4
push 0
push 0x42b864
push eax
call edi
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x38]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0
push str.PRIMARY_FC
push edx
mov dword [esp + 0x20], eax
call edi
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.CURRENT_FC
push ecx
call edi
push 0
mov ecx, esi
call fcn.00415630
lea edx, [esp + 8]
and eax, 0xff
push 4
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push 4
push 0
push str.CURRENT_DID
push eax
call edi
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x18]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0
push str.FC_BITS
push edx
mov dword [esp + 0x20], eax
call edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.INHIBIT
push ecx
call edi
mov eax, dword [esi + 0x24]
lea edx, [esp + 8]
push 4
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push 4
push 0
push str.VREF_KEY
push eax
call edi
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x28]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0
push str.GROUP_IDX
push edx
mov dword [esp + 0x20], eax
call edi
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.JACK_CFG
push ecx
call edi
mov eax, dword [esi + 0x2c]
lea edx, [esp + 8]
push 4
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push 4
push 0
push str.COLOR
push eax
call edi
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x30]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0
push str.XPOS
push edx
mov dword [esp + 0x20], eax
call edi
mov ecx, dword [esp + 0xc]
mov esi, dword [esi + 0x34]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.YPOS
push ecx
mov dword [esp + 0x20], esi
call edi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041d8b4
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x415560
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41fae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov cl, byte [esi + 0x44]
cmp cl, al
mov dword [esp + 0x18], 0
je 0x415607
mov byte [esi + 0x44], al
and eax, 0xff
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x28]
push eax
push esi
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea eax, [esp + 0x10]
push str._sPanel_dJack_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 8]
push ecx
push 0
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x415607
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.CURRENT_DID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041d8b4
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x415630
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41fb08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], 0
test edx, edx
mov dword [esp + 0xc], 4
je 0x41570e
xor edx, edx
mov dl, byte [esi + 0x44]
cmp edx, 0xffff
jne 0x415729
cmp ecx, edx
je 0x415729
cmp eax, edx
je 0x415729
push eax
push ecx
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea eax, [esp + 0x14]
push str._sPanel_dJack_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415729
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.CURRENT_DID
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov al, byte [esp + 0x14]
push ecx
mov byte [esi + 0x44], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415729
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.SMWDMIF.dll_GetJackDevice]
mov eax, dword [esp + 0x34]
add esp, 8
mov ecx, esi
push eax
call fcn.00415560
mov bl, byte [esi + 0x44]
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041d8b4
mov ecx, dword [esp + 0x1c]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4157c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41fb28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], 0
test edi, edi
je 0x415898
cmp edi, 0xff
je 0x415898
mov ebx, dword [esp + 0x2c]
cmp ebx, 0xf
je 0x415898
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x28]
push eax
push esi
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea eax, [esp + 0x20]
push str._sPanel_dJack_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x415898
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push str.LAST_DID
push eax
mov dword [esp + 0x24], edi
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.LAST_FID
push edx
mov dword [esp + 0x24], ebx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041d8b4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8

Function at 0x4158c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41fb48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x28]
mov esi, dword [esi + 0xc]
cmp eax, 0xffff
mov dword [esp + 0x20], 0
mov dword [esp + 4], 4
je 0x4159c1
cmp esi, 0xffff
je 0x4159c1
push esi
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea eax, [esp + 0x1c]
push str._sPanel_dJack_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4159c1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.LAST_DID
push edx
mov dword [esp + 0x1c], 4
call esi
test eax, eax
jne 0x415983
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.LAST_FID
push edx
mov dword [esp + 0x1c], 4
call esi
test eax, eax
jne 0x4159b6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041d8b4
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x417580
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41fd28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esi + 0x18]
lea eax, [esp + 0x14]
push ebx
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push str._sPanel_d
push eax
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4176b2
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0xc]
push 4
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push 4
push 0
push str.NAME_IDX
push eax
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.JACK_CNT
push edx
mov dword [esp + 0x24], eax
call edi
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.CURR_SPKR_CFG
push ecx
call edi
mov eax, dword [esi + 0xc]
lea edx, [esp + 0xc]
push 4
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push 4
push 0
push str.PREV_SPKR_CFG
push eax
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.BG_COLOR
push edx
mov dword [esp + 0x24], eax
call edi
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.BORDER
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x1c]
xor edi, edi
test eax, eax
jle 0x4176d3
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x4176cb
push ebx
call fcn.00415320
mov eax, dword [esi + 0x1c]
inc edi
cmp edi, eax
jl 0x4176bb
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041d8b4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x418a40
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x41c400
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42055c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CFileFind::CFileFind
xor edi, edi
lea ecx, [esi + 0x28]
mov dword [esp + 0x128], edi
call sub.MFC42.DLL_CString::CString
mov ebx, 1
mov dword [esi], 0x423540
mov byte [esp + 0x128], bl
mov dword [esi + 8], edi
mov dword [esi + 0x34], edi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.0041c5d0
lea ecx, [esp + 0x10]
mov dword [esi + 0x2c], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push ecx
push str.SoftwareAnalog_DevicesSMax4Settings
push 0x80000001
mov dword [esp + 0x24], edi
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41c4c7
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push edi
push str.ShowAllSkins
push edx
mov dword [esp + 0x2c], 4
call ebp
test eax, eax
je 0x41c4bc
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], edi
je 0x41c4d6
mov dword [esi + 0x2c], 0xffffffff
jmp 0x41c532
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push 0x80000001
call ebx
test eax, eax
jne 0x41c532
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push edi
mov ebx, 0xfc
push str.SysCaps
push edx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x41c527
cmp dword [esp + 0x14], ebx
jne 0x41c527
cmp dword [esp + 0x58], edi
je 0x41c527
mov dword [esi + 0x2c], 2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x41c620
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, 1
call fcn.0041c5d0
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x34], eax
je 0x41c746
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetGeneral
push eax
call edi
test eax, eax
mov dword [esi + 0x48], eax
jne 0x41c65d
xor ebx, ebx
mov eax, dword [esi + 0x34]
push str.GetBitmap
push eax
call edi
test eax, eax
mov dword [esi + 0x40], eax
jne 0x41c671
xor ebx, ebx
mov ecx, dword [esi + 0x34]
push str.GetButton
push ecx
call edi
test eax, eax
mov dword [esi + 0x44], eax
jne 0x41c685
xor ebx, ebx
mov edx, dword [esi + 0x34]
push str.GetGraph
push edx
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x34]
push str.GetIcon
push eax
call edi
test eax, eax
mov dword [esi + 0x50], eax
jne 0x41c6a7
xor ebx, ebx
mov ecx, dword [esi + 0x34]
push str.GetKnob
push ecx
call edi
test eax, eax
mov dword [esi + 0x54], eax
jne 0x41c6bb
xor ebx, ebx
mov edx, dword [esi + 0x34]
push str.GetString
push edx
call edi
test eax, eax
mov dword [esi + 0x60], eax
jne 0x41c6cf
xor ebx, ebx
mov eax, dword [esi + 0x34]
push str.GetText
push eax
call edi
test eax, eax
mov dword [esi + 0x64], eax
jne 0x41c6e3
xor ebx, ebx
mov ecx, dword [esi + 0x34]
push str.GetSkinVersion
push ecx
call edi
test eax, eax
mov dword [esi + 0x58], eax
jne 0x41c6f7
xor ebx, ebx
mov edx, dword [esi + 0x34]
push str.GetVUMeter
push edx
call edi
test eax, eax
mov dword [esi + 0x68], eax
jne 0x41c70b
xor ebx, ebx
mov eax, dword [esi + 0x34]
push str.GetBackground
push eax
call edi
test eax, eax
mov dword [esi + 0x3c], eax
jne 0x41c71f
xor ebx, ebx
mov ecx, dword [esi + 0x34]
push str.GetSlider
push ecx
call edi
test eax, eax
mov dword [esi + 0x5c], eax
je 0x41c769
test ebx, ebx
je 0x41c76b
call dword [esi + 0x58]
cmp eax, 2
jne 0x41c769
push ebp
lea ecx, [esi + 0x28]
call fcn.0041d8a2
mov ecx, esi
call fcn.0041c7a0
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x2c]
test eax, edx
jne 0x41c772
mov ecx, esi
xor edi, edi
call fcn.0041c5d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
xor ebx, ebx
mov ecx, esi
call fcn.0041c5d0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 4
Function at 0x41c860
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x110
xor eax, eax
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push str.SoftwareAnalog_DevicesSMax4Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41c8c9
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.SkinPath
push ecx
mov dword [esp + 0x28], 0x104
call esi
mov edx, dword [esp + 0xc]
push edx
call edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x41c923
lea ecx, [esp + 0xc]
push ecx
push 0x101
push eax
push str.SoftwareAnalog_DevicesSMax4Settings
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c923
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.SkinPath
push edx
mov dword [esp + 0x28], 0x104
call esi
mov eax, dword [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.0041c620
test eax, eax
jne 0x41c988
mov ecx, ebx
call fcn.0041c9a0
mov esi, eax
test esi, esi
je 0x41c986
lea edx, [esp + 0xc]
push edx
push str.SoftwareAnalog_DevicesSMax4Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x41c986
mov eax, dword [ebx + 0x28]
lea ecx, [ebx + 0x28]
mov eax, dword [eax - 8]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push str.SkinPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x110
ret