joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e430
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x110]
mov edx, dword [eax - 8]
test edx, edx
jne 0x40e442
xor eax, eax
ret 0xc
mov ecx, dword [ecx + 0x114]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0x440948
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0xc

Function at 0x40e6e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4310eb
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
lea esi, [edi + 0x114]
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x40e774
inc eax
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push str.res_
lea edx, [esp + 0x2c]
push eax
push edx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [edi + 0x118]
mov byte [esp + 0x24], 1
call fcn.0042f37e
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
push 0
push 0
push 0
lea eax, [edi + 0x1b4]
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [esi]
lea ebx, [edi + 0xc]
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ebp, ebx
cmp byte [ebp], 0
je 0x40e7bb
mov edx, dword [edi + 4]
push ebp
inc edx
mov dword [edi + 4], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x40e7a3
mov eax, dword [edi + 4]
test eax, eax
jle 0x40e861
mov esi, dword [edi + 0x11c]
test esi, esi
je 0x40e7ea
mov ecx, esi
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi + 0x11c], 0
mov ebp, dword [edi + 4]
lea ecx, [ebp*4 + 4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x20], 2
je 0x40e827
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_2
lea esi, [eax + 4]
push ebp
push 4
push esi
mov dword [eax], ebp
call fcn.0042f912
jmp 0x40e829
xor esi, esi
mov dword [edi + 0x11c], esi
mov esi, ebx
mov dword [esp + 0x20], 0xffffffff
cmp byte [esi], 0
je 0x40e861
xor ebp, ebp
mov ecx, dword [edi + 0x11c]
push esi
add ecx, ebp
add ebp, 4
call sub.MFC42.DLL_CString::operator_1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x40e840
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x40fab0
Capabilities:
Resume thread

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
push edi
push edi
push esi
push 0x40fb10
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x480], eax
je 0x40fafe
mov dword [eax + 0x28], 1
mov eax, dword [esi + 0x480]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40fafe
mov dword [esi + 0x458], 1
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x411710
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436bf8
push 0x42fa88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.0042fb40
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00408d50
mov edi, dword [esp + 0x24]
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], edi
push 0
mov eax, dword [edi + 0x20]
push 0
push 0x1105
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x411ccf
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
push eax
lea ecx, [esp + 0x10]
call fcn.00408d60
mov eax, dword [esp + 0xc]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 0
push 0
push eax
push 0x23
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ebx, eax
mov eax, dword [esi + 0x34]
push eax
push 0
push 0
push 0
lea ecx, [eax + 1]
push 0
push 0
mov dword [esi + 0x34], ecx
push 4
push ebx
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::SetItem
jmp 0x411cd4
mov ebx, 0xffff0000
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [esp + 0x10], eax
je 0x411cf6
mov edx, dword [eax]
mov ecx, esi
mov dword [esp + 0x10], edx
mov eax, dword [eax + 8]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00411d20
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4156e0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x41578f
call fcn.004157f0
test eax, eax
jl 0x41578f
mov eax, dword [esi + 0xf0]
push edi
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0xf0]
xor ecx, ecx
mov edx, dword [eax]
test edi, edi
setne cl
push ecx
push 0
push 0
push eax
call dword [edx + 0x30]
test eax, eax
pop edi
je 0x415788
cmp eax, 0x88780046
jg 0x415772
je 0x415763
cmp eax, 0x80070057
je 0x415754
cmp eax, 0x88780032
jne 0x41578f
push str.CDSPlay::Play____Error:__Unable_to_Play____DSERR_INVALIDCALL_n_r
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret 4
push str.CDSPlay::Play____Error:__Unable_to_Play____DSERR_INVALIDPARAM_n_r
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret 4
push str.CDSPlay::Play____Error:__Unable_to_Play____DSERR_PRIOLEVELNEEDED_n_r
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret 4
cmp eax, 0x88780096
jne 0x41578f
push str.CDSPlay::Play____Error:__Unable_to_Play____DSERR_BUFFERLOST_n_r
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret 4
mov dword [esi + 0x20], 1
pop esi
ret 4

Function at 0x415850
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
xor ecx, ecx
mov eax, dword [esi + 0xf0]
mov dword [esp + 0x10], ecx
cmp eax, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x14], ecx
jne 0x41587f
xor eax, eax
pop esi
add esp, 0x14
ret 4
push ecx
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x38]
push ecx
push eax
call dword [edx + 0x2c]
test eax, eax
je 0x4158bb
push str.Error__unable_to_lock_sound_buffer_n_r
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x14
ret 4
cmp word [esi + 0x32], 8
mov ecx, dword [esp + 4]
push ebx
push ebp
setne dl
dec edx
mov ebp, ecx
and edx, 0x80
push edi
mov byte [esp + 0x28], dl
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
and edx, 0xff
mov al, dl
mov bl, al
mov bh, bl
mov eax, ebx
shl eax, 0x10
mov ax, bx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
test edi, edi
je 0x415931
mov ecx, dword [esp + 0x14]
mov al, dl
mov eax, ebx
mov edx, ecx
shl eax, 0x10
mov ax, bx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
jmp 0x415935
mov ecx, dword [esp + 0x20]
mov ebx, dword [esi + 0x38]
lea eax, [ecx + ebp]
add eax, ebx
xor edx, edx
div dword [esi + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
push edi
push ebp
push ecx
mov dword [esi + 0x38], edx
mov esi, dword [esi + 0xf0]
push esi
mov eax, dword [esi]
call dword [eax + 0x4c]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x14
ret 4
Function at 0x416a30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x431d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push edi
mov edi, ecx
lea ecx, [esp + 8]
call fcn.00408d50
lea ecx, [esp + 4]
mov dword [esp + 0x68], 0
call fcn.00408d50
lea eax, [esp + 0x10]
mov byte [esp + 0x68], 1
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x416bc2
lea ecx, [esp + 0xc]
push esi
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
mov esi, 0x48
push str.HWInfo
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416bb6
cmp dword [esp + 0x10], esi
jne 0x416bb6
mov al, byte [esp + 0x24]
mov esi, dword [esp + 0x74]
test al, al
je 0x416b3f
push 0xda
lea ecx, [esp + 0x10]
call fcn.00408d60
push 0x43f114
lea ecx, [esp + 0x10]
call fcn.0042f390
lea edx, [esp + 0x24]
lea ecx, [esp + 0xc]
push edx
call fcn.0042f390
push 0x409
push 0xda
lea ecx, [esp + 0x10]
call fcn.00408e30
push 0x43f114
lea ecx, [esp + 0xc]
call fcn.0042f390
lea eax, [esp + 0x24]
lea ecx, [esp + 8]
push eax
call fcn.0042f390
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push esi
mov ecx, edi
call fcn.00411a10
mov al, byte [esp + 0x44]
test al, al
je 0x416bb6
push 0xdb
lea ecx, [esp + 0x10]
call fcn.00408d60
push 0x43f114
lea ecx, [esp + 0x10]
call fcn.0042f390
lea eax, [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
call fcn.0042f390
push 0x409
push 0xdb
lea ecx, [esp + 0x10]
call fcn.00408e30
push 0x43f114
lea ecx, [esp + 0xc]
call fcn.0042f390
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0xc]
call fcn.0042f390
lea edx, [esp + 8]
push 0
lea eax, [esp + 0x10]
push edx
push eax
push 0
push esi
mov ecx, edi
call fcn.00411a10
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea ecx, [esp + 4]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x60]
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x68
ret 4
Function at 0x416c00
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x431d46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push edi
mov edi, ecx
lea ecx, [esp + 8]
call fcn.00408d50
lea ecx, [esp + 4]
mov dword [esp + 0x124], 0
call fcn.00408d50
lea eax, [esp + 0x10]
mov byte [esp + 0x124], 1
push eax
push str.HardwareDescriptionSystem
push reloc.DSOUND.dll_DirectSoundEnumerateA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x416d2d
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.SystemBiosVersion
push ecx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416d22
mov edx, dword [esp + 0xc]
push esi
add edx, 0xfffffffe
lea esi, [esp + 0x1c]
test edx, edx
jle 0x416cb3
cmp byte [esp + eax + 0x1c], 0
lea ecx, [esp + eax + 0x1d]
jne 0x416cae
mov esi, ecx
inc eax
cmp eax, edx
jl 0x416ca1
push 0xad
lea ecx, [esp + 0x10]
call fcn.00408d60
push 0x43f114
lea ecx, [esp + 0x10]
call fcn.0042f390
push esi
lea ecx, [esp + 0x10]
call fcn.0042f390
push 0x409
push 0xad
lea ecx, [esp + 0x10]
call fcn.00408e30
push 0x43f114
lea ecx, [esp + 0xc]
call fcn.0042f390
push esi
lea ecx, [esp + 0xc]
call fcn.0042f390
mov edx, dword [esp + 0x130]
lea eax, [esp + 8]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push edx
mov ecx, edi
call fcn.00411a10
pop esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x11c]
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x124
ret 4
Function at 0x416d70
Capabilities:
Get cpu information
Get system information on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x431d71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x50]
call fcn.0040ff90
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x118], ebx
call fcn.00408d50
lea ecx, [esp + 0xc]
mov byte [esp + 0x118], 1
call fcn.00408d50
lea ecx, [esp + 0x50]
mov byte [esp + 0x118], 2
call fcn.00410080
push eax
lea eax, [esp + 0x10]
push str.CPU:__s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x40]
cmp eax, 1
jbe 0x416e15
push eax
lea edx, [esp + 0x18]
push str.___i_CPUs_
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
mov edi, dword [esp + 0x120]
lea ecx, [esp + 0xc]
push ebx
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push edi
mov ecx, esi
call fcn.00411a10
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ebx
push eax
push str.HardwareDescriptionSystemCentralProcessor0
push reloc.DSOUND.dll_DirectSoundEnumerateA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x416e80
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
push ebx
push str.MHz
push ecx
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x416e99
lea ecx, [esp + 0x50]
call fcn.00410090
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x416ef3
cmp eax, 0x3e8
jb 0x416ecc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
fild qword [esp + 0x20]
sub esp, 8
lea eax, [esp + 0x14]
fmul qword [0x437060]
fstp qword [esp]
push str.CPU_Speed:__.1f_GHz
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x416edf
push eax
lea ecx, [esp + 0x10]
push str.CPU_Speed:__i_MHz
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0xc]
push ebx
lea eax, [esp + 0x10]
push edx
push eax
push ebx
push edi
mov ecx, esi
call fcn.00411a10
lea ecx, [esp + 0xc]
mov byte [esp + 0x118], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x118], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0x118], 0xffffffff
call fcn.00410020
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x110
ret 4
Function at 0x417760
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x431e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.00408d50
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0
call fcn.00408d50
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 1
call fcn.00408d50
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.00408d50
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 3
call fcn.00408d50
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 4
call fcn.00408d50
push str.KERNEL32.DLL
mov byte [esp + 0x70], 5
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417818
push str.GlobalMemoryStatusEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417818
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x40
push ecx
call eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, 0x14
call fcn.0042fb80
jmp 0x41782a
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x2c]
shr eax, 0x14
lea esi, [eax + 3]
push 0xb8
shr esi, 2
lea ecx, [esp + 0x20]
shl esi, 2
call fcn.00408d60
push 0xb2
lea ecx, [esp + 0x1c]
call fcn.00408d60
push 0x409
push 0xb8
lea ecx, [esp + 0x18]
call fcn.00408e30
push 0x409
push 0xb2
lea ecx, [esp + 0x14]
call fcn.00408e30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ecx
lea edx, [esp + 0x2c]
push str._s__i__s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x14]
push eax
push esi
push ecx
push str._s__i__s
push edx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x88]
add esp, 0x14
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push eax
push ecx
push 0
push edx
mov ecx, ebp
call fcn.00411a10
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x418850
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x431fc8
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_2
mov eax, dword [esp + 0x20]
mov cl, byte [esi + 0x44]
cmp cl, al
mov dword [esp + 0x18], 0
je 0x4188f7
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 reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4188f7
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 sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x4190a0
Capabilities:
Resume thread

Disassembly:
push esi
push 0
push 4
mov esi, ecx
push 0
push 0
push esi
push 0x419140
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x370], eax
jne 0x4190c2
pop esi
ret
mov dword [eax + 0x28], 0
mov esi, dword [esi + 0x370]
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
ret
Function at 0x41c060
Capabilities:
Capture microphone audio

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x41c09e
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 8]
push 0x50000
push edi
push eax
push ecx
push edx
push esi
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
jne 0x41c09e
push 1
mov ecx, esi
call fcn.0041c390
pop edi
mov eax, 1
pop esi
ret 4
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x41d270
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 0x1ac]
sub esp, 0xc
test eax, eax
push esi
lea esi, [ecx + 0x1ac]
jne 0x41d2d2
lea eax, [esp + 4]
mov dword [esi], 3
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41d2d2
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x14]
push str.NumRearJacks
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
pop esi
add esp, 0xc
ret

Function at 0x41d2f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4326d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
lea ecx, [esp]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 4]
mov dword [esp + 0x120], 1
push eax
push str.SoftwareAnalog_DevicesSMax4PNPSettings
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41d386
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.PlatformIDString
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41d37b
lea edx, [esp + 0x14]
lea ecx, [esp]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret 4