joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4308c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 8]
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
test edi, edi
je 0x409508
mov ecx, dword [ebp + 0xc]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc eax
mov edi, ecx
mov ecx, dword [ebp + 8]
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x409508
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409508
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409508
test edi, edi
jle 0x409491
xor edx, edx
dec edi
mov dx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409485
xor edi, edi
mov di, word [esi]
add esi, 2
test edi, edi
jle 0x409508
lea eax, [edi + edi + 2]
mov dword [ebp - 4], 0
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
push edi
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov word [ebx + edi*2], 0
push ebx
call sub.MFC42.DLL_CString::operator_2
test ebx, ebx
je 0x4094e2
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CClientDC::CClientDC
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x28], 0
test eax, eax
je 0x409b1e
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esi + 0x44]
lea edx, [esp + 4]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], ecx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], ecx
lea ecx, [esp + 0xc]
call fcn.0042f2e6
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x40a390
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x430b0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esp + 8], esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x24]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 8
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 9
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 0xa
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 0xb
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 0xc
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x14], 0xd
mov dword [esi], 0x436560
call fcn.0040a5d0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40e3f0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x110]
mov edx, dword [eax - 8]
test edx, edx
jne 0x40e402
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 0x40e6a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430feb
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 0x40e734
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.0042f26e
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 0x40e77b
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 0x40e763
mov eax, dword [edi + 4]
test eax, eax
jle 0x40e821
mov esi, dword [edi + 0x11c]
test esi, esi
je 0x40e7aa
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 0x40e7e7
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_3
lea esi, [eax + 4]
push ebp
push 4
push esi
mov dword [eax], ebp
call fcn.0042f812
jmp 0x40e7e9
xor esi, esi
mov dword [edi + 0x11c], esi
mov esi, ebx
mov dword [esp + 0x20], 0xffffffff
cmp byte [esi], 0
je 0x40e821
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 0x40e800
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 0x40fa70
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 0x40fad0
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x480], eax
je 0x40fabe
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 0x40fabe
mov dword [esi + 0x458], 1
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x4116d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436bf8
push 0x42f988
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.0042fa40
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 0x411be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431428
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 0x411c8f
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 0x411c94
mov ebx, 0xffff0000
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [esp + 0x10], eax
je 0x411cb6
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.00411ce0
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 0x4156a0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x41574f
call fcn.004157b0
test eax, eax
jl 0x41574f
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 0x415748
cmp eax, 0x88780046
jg 0x415732
je 0x415723
cmp eax, 0x80070057
je 0x415714
cmp eax, 0x88780032
jne 0x41574f
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 0x41574f
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 0x415810
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 0x41583f
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 0x41587b
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 0x4158f1
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 0x4158f5
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 0x4169d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x431c20
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 0x416b62
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 0x416b56
cmp dword [esp + 0x10], esi
jne 0x416b56
mov al, byte [esp + 0x24]
mov esi, dword [esp + 0x74]
test al, al
je 0x416adf
push 0xda
lea ecx, [esp + 0x10]
call fcn.00408d60
push 0x43f114
lea ecx, [esp + 0x10]
call fcn.0042f280
lea edx, [esp + 0x24]
lea ecx, [esp + 0xc]
push edx
call fcn.0042f280
push 0x409
push 0xda
lea ecx, [esp + 0x10]
call fcn.00408e30
push 0x43f114
lea ecx, [esp + 0xc]
call fcn.0042f280
lea eax, [esp + 0x24]
lea ecx, [esp + 8]
push eax
call fcn.0042f280
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push esi
mov ecx, edi
call fcn.004119d0
mov al, byte [esp + 0x44]
test al, al
je 0x416b56
push 0xdb
lea ecx, [esp + 0x10]
call fcn.00408d60
push 0x43f114
lea ecx, [esp + 0x10]
call fcn.0042f280
lea eax, [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
call fcn.0042f280
push 0x409
push 0xdb
lea ecx, [esp + 0x10]
call fcn.00408e30
push 0x43f114
lea ecx, [esp + 0xc]
call fcn.0042f280
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0xc]
call fcn.0042f280
lea edx, [esp + 8]
push 0
lea eax, [esp + 0x10]
push edx
push eax
push 0
push esi
mov ecx, edi
call fcn.004119d0
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 0x416ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x431c46
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 0x416ccd
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 0x416cc2
mov edx, dword [esp + 0xc]
push esi
add edx, 0xfffffffe
lea esi, [esp + 0x1c]
test edx, edx
jle 0x416c53
cmp byte [esp + eax + 0x1c], 0
lea ecx, [esp + eax + 0x1d]
jne 0x416c4e
mov esi, ecx
inc eax
cmp eax, edx
jl 0x416c41
push 0xad
lea ecx, [esp + 0x10]
call fcn.00408d60
push 0x43f114
lea ecx, [esp + 0x10]
call fcn.0042f280
push esi
lea ecx, [esp + 0x10]
call fcn.0042f280
push 0x409
push 0xad
lea ecx, [esp + 0x10]
call fcn.00408e30
push 0x43f114
lea ecx, [esp + 0xc]
call fcn.0042f280
push esi
lea ecx, [esp + 0xc]
call fcn.0042f280
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.004119d0
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 0x416d10
Capabilities:
Get cpu information
Get system information on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x431c71
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.0040ff50
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.00410040
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 0x416db5
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.004119d0
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 0x416e20
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 0x416e39
lea ecx, [esp + 0x50]
call fcn.00410050
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x416e93
cmp eax, 0x3e8
jb 0x416e6c
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 0x416e7f
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.004119d0
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.0040ffe0
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 0x417700
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x431d80
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 0x4177b8
push str.GlobalMemoryStatusEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4177b8
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.0042fa80
jmp 0x4177ca
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.004119d0
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 0x4187f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x431ec8
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_3
mov eax, dword [esp + 0x20]
mov cl, byte [esi + 0x44]
cmp cl, al
mov dword [esp + 0x18], 0
je 0x418897
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 0x418897
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 0x419040
Capabilities:
Resume thread

Disassembly:
push esi
push 0
push 4
mov esi, ecx
push 0
push 0
push esi
push 0x4190e0
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x370], eax
jne 0x419062
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