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

Disassembly:
push 0xffffffffffffffff
push 0x448cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
call fcn.004290da
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40af21
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push 0x80000001
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40afbe
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x10]
push str.Jack_d
push eax
mov dword [esp + 0x20], 4
call fcn.00406e40
mov esi, dword [esp + 0x18]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0xc
or ecx, eax
jge 0x40af8e
push edi
lea ecx, [esp + 0x10]
call fcn.00401370
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40afb3
mov edi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x40b260
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x448d18
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
call fcn.004290da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b29e
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
lea ecx, [esp + 0xc]
push ecx
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push 0x80000001
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40b2e9
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40b35c
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0xc]
push str.Jack_d
push edx
call fcn.00406e40
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0xc
or ecx, eax
jge 0x40b322
push 0
lea ecx, [esp + 0xc]
call fcn.00401370
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b368
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 8
Function at 0x40b380
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x448d56
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x46974c]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
push 0x44fda4
mov edi, ecx
xor ebx, ebx
push str.kernel32
mov dword [esp + 0x1c], ebx
mov dword [edi + 0xec], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40b4db
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x14], ebx
je 0x40b4db
lea ecx, [esp + 0x18]
call fcn.0042c73d
mov dword [esp + 0x244], ebx
call fcn.004290da
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b42f
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x208
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x24c], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x14]
push str._sSysWOW64mmdriver.inf
push eax
call fcn.00406e40
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0xc
or ecx, eax
jge 0x40b48f
push ebx
lea ecx, [esp + 0x14]
call fcn.00401370
mov esi, dword [esp + 0x10]
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.0042c7cb
test eax, eax
jne 0x40b4a4
mov dword [edi + 0xec], ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x244], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x244], 0xffffffff
call fcn.0042c763
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00432688
add esp, 0x238
ret
Function at 0x417680
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x44a18b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0042a47d
mov eax, dword [eax + 0xc]
push 0xd0
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [esi + 0xe8]
test ecx, ecx
mov dword [esi + 0xe4], eax
je 0x4176db
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0xe8], 0
mov edi, dword [0x46aeac]
test edi, edi
je 0x417719
push 0x30
call fcn.00422d57
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x417709
push edi
mov ecx, eax
call fcn.0041a2f0
jmp 0x41770b
xor eax, eax
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 0xe8], eax
push 0
push 0
mov ecx, esi
mov dword [esi + 0x110], 0xffffffff
call fcn.004174a0
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x418ef0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44a2c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004290da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418f31
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov al, byte [esp + 0x28]
cmp byte [esi + 0x44], al
mov dword [esp + 0x20], 0
je 0x418fdb
mov byte [esi + 0x44], al
movzx ecx, al
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x28]
push eax
push esi
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea edx, [esp + 0x18]
push str._sPanel_dJack_d
push edx
mov dword [esp + 0x28], ecx
call fcn.00406e40
mov edi, dword [esp + 0x20]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0x14
or ecx, eax
jge 0x418fa1
push 0
lea ecx, [esp + 0x10]
call fcn.00401370
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x418fdb
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push eax
push 0x455740
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418fff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x419020
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44a2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004290da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419061
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
cmp dword [esp + 0x30], 0
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 4
je 0x419128
movzx edx, byte [esi + 0x44]
cmp edx, 0xffff
jne 0x419143
cmp ecx, edx
je 0x419143
cmp eax, edx
je 0x419143
push eax
push ecx
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea eax, [esp + 0x18]
push str._sPanel_dJack_d
push eax
call fcn.00406e40
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0
lea ecx, [esp + 0x14]
call fcn.004014a0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x419143
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x455740
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x18]
push ecx
mov byte [esi + 0x44], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x419143
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.smwdmif.dll_GetJackDevice]
mov eax, dword [esp + 0x38]
add esp, 8
push eax
mov ecx, esi
call fcn.00418ef0
mov eax, dword [esp + 0xc]
mov bl, byte [esi + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41916e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x419190
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44a328
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004290da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4191d3
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x30]
test ebx, ebx
mov dword [esp + 0x28], 0
je 0x4192ad
cmp ebx, 0xff
je 0x4192ad
mov ebp, dword [esp + 0x34]
cmp ebp, 0xf
je 0x4192ad
mov eax, dword [edi + 0xc]
mov edi, dword [edi + 0x28]
push eax
push edi
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea ecx, [esp + 0x20]
push str._sPanel_dJack_d
push ecx
call fcn.00406e40
mov esi, dword [esp + 0x28]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0x14
or ecx, eax
jge 0x419251
push 0
lea ecx, [esp + 0x18]
call fcn.00401370
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4192ad
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.LAST_DID
push ecx
mov dword [esp + 0x30], ebx
call edi
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push str.LAST_FID
push eax
mov dword [esp + 0x30], ebp
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4192d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x4192f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44a358
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004290da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419331
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov eax, dword [esi + 0x28]
cmp eax, 0xffff
mov esi, dword [esi + 0xc]
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 4
je 0x419435
cmp esi, 0xffff
je 0x419435
push esi
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea ecx, [esp + 0x18]
push str._sPanel_dJack_d
push ecx
call fcn.00406e40
mov edi, dword [esp + 0x20]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0x14
or ecx, eax
jge 0x4193a9
push 0
lea ecx, [esp + 0x10]
call fcn.00401370
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x419435
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.LAST_DID
push eax
mov dword [esp + 0x28], 4
call esi
test eax, eax
jne 0x4193f7
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.LAST_FID
push eax
mov dword [esp + 0x28], 4
call esi
test eax, eax
jne 0x41942a
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x41a560
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x44a43b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [esp + 0x4c]
xor eax, eax
mov dword [ebp + 4], 0xa
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x14], eax
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
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jle 0x41a5e7
mov eax, dword [ebx + 8]
add eax, 0x20
jmp 0x41a5d0
mov edx, dword [eax]
cmp edx, 0xa
jae 0x41a5df
mov dword [esp + edx*4 + 0x14], 1
add eax, 0x64
sub ecx, 1
jne 0x41a5d0
xor ecx, ecx
mov eax, 0xa
mov edx, 0x58
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00422d87
add esp, 4
mov dword [esp + 0x4c], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x44], edi
je 0x41a63e
push fcn.0041b410
push 0x41bc60
push 0xa
lea esi, [eax + 4]
push 0x58
push esi
mov dword [eax], 0xa
call fcn.00433e7e
jmp 0x41a640
xor esi, esi
mov dword [ebp + 8], esi
mov dword [esp + 0x44], 0xffffffff
xor esi, esi
cmp dword [esp + edi*4 + 0x14], 0
je 0x41a66a
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + ecx + 0x54], edx
mov ecx, dword [ebp + 8]
push ebx
push edi
add ecx, esi
call fcn.0041bc80
add esi, 0x58
add edi, 1
cmp esi, 0x370
jl 0x41a64d
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
Function at 0x41bdf0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44a648
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004290da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41be33
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ebx, dword [esi + 0x18]
push ebx
push str.SoftwareAnalog_DevicesSMax4PNPSettings
lea ecx, [esp + 0x24]
push str._sPanel_d
push ecx
mov dword [esp + 0x38], 0
call fcn.00406e40
mov ebp, dword [esp + 0x2c]
mov ecx, dword [ebp - 8]
mov eax, 1
sub eax, dword [ebp - 4]
add esp, 0x10
or ecx, eax
jge 0x41be88
push 0
lea ecx, [esp + 0x20]
call fcn.00401370
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ebp
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41bf66
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.NAME_IDX
push edx
mov dword [esp + 0x2c], eax
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x1c]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.JACK_CNT
push edx
mov dword [esp + 0x2c], eax
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 8]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.CURR_SPKR_CFG
push edx
mov dword [esp + 0x2c], eax
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.PREV_SPKR_CFG
push edx
mov dword [esp + 0x2c], eax
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.BG_COLOR
push edx
mov dword [esp + 0x2c], eax
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x48]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.BORDER
push edx
mov dword [esp + 0x2c], eax
call edi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp dword [esi + 0x1c], edi
jle 0x41bf89
mov ecx, dword [esi + 0x38]
cmp dword [ecx + edi*4], 0
lea eax, [ecx + edi*4]
je 0x41bf81
mov ecx, dword [eax]
push ebx
call fcn.004196f0
add edi, 1
cmp edi, dword [esi + 0x1c]
jl 0x41bf6d
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bfad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x41c9e0
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x44a6b4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esi + 0xc], 0xa
mov dword [esi + 8], 1
mov dword [esi + 0xa8], ebp
mov eax, dword [0x46af04]
cmp eax, 5
je 0x41ca38
cmp eax, 6
je 0x41ca38
cmp eax, 7
je 0x41ca38
cmp eax, 8
jne 0x41ca46
mov dword [esi + 0xc], 5
mov dword [esi + 8], 3
call fcn.0041c510
mov ecx, dword [esi + 0xa8]
cmp ecx, ebp
mov dword [esi + 0x30], eax
je 0x41ca67
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0xa8], ebp
push 0x34
call fcn.00422d57
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x38], ebp
je 0x41caa0
mov ecx, dword [esi + 0x18]
push ecx
push 0xf
xor edx, edx
cmp dword [esi + 0x30], ebp
push ebp
push ebp
setne dl
push ebp
push ebp
push ebp
mov ecx, eax
add edx, 0xa6
push edx
call fcn.00403260
jmp 0x41caa2
xor eax, eax
mov ecx, esi
mov dword [esp + 0x38], 0xffffffff
mov dword [esi + 0xa8], eax
call fcn.0041c680
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
push eax
push ecx
mov ecx, dword [esi + 0xa8]
call fcn.00402db0
cmp dword [esi + 0x2c], ebp
mov dword [esi + 0xac], ebp
je 0x41cb6a
mov edi, dword [esi + 0x40]
mov ebx, dword [esi + 0x44]
push 0x34
call fcn.00422d57
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x38], 1
je 0x41cb0c
push ebp
push ebp
push ebp
push ebp
push ebp
push 0xab
mov ecx, eax
call fcn.00403980
jmp 0x41cb0e
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov dword [esi + 0xac], eax
mov eax, dword [eax + 4]
push 0x18
push eax
mov dword [esp + 0x44], 0xffffffff
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x30], ebp
mov ecx, 0x3e
jne 0x41cb45
mov ecx, 0x31
sub ecx, eax
mov eax, dword [esp + 0x20]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov eax, 0x1b
sub eax, edx
add ebx, eax
add edi, ecx
mov ecx, dword [esi + 0xac]
push ebx
push edi
call fcn.00402db0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x41cca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44a720
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.004066d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.004066d0
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.004066d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call fcn.00414030
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push 0
push 0
push str.DeviceConnect
mov byte [esp + 0x2c], 3
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], edx
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
push eax
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00414080
push eax
lea ecx, [esp + 0x14]
call fcn.00406860
push 0x71
lea ecx, [esp + 0x10]
call fcn.00406860
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_n_s
push edx
call fcn.00406e40
add esp, 0x10
push 0x2710
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00402c90
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x20], 2
call fcn.00414040
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x20], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cdb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cdd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cdfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0xc