joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064bc7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100e57c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], vtable.CProxy_ICxHDAudioFactoryEvents_class_CCxHDAudioFactory_.0
mov dword [ebp - 4], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x94], edi
lea ecx, [esi + 0x9c]
mov byte [ebp - 4], 0xb
call fcn.100394e0
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x84], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002d320
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064c76
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100e57c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], vtable.CProxy_ICxHDAudioVoiceEffectsEvents_class_CCxHDAudioVoiceEffects_.0
mov dword [ebp - 4], edi
mov dword [esi + 0x20], vtable.CCxHDAudioDeviceManager.0
mov dword [esi + 0x24], edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.1003a5e0
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [esi + 0x258], ax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x250], edi
mov dword [esi + 0x254], edi
mov dword [esi], vtable.ATL::CComContainedObject_class_CCxHDAudioVoiceEffects_.6.0
mov dword [esi + 4], vtable.ATL::CComContainedObject_class_CCxHDAudioVoiceEffects_.5.0
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_CCxHDAudioVoiceEffects_.4.0
mov dword [esi + 0x14], vtable.ATL::CComContainedObject_class_CCxHDAudioVoiceEffects_.3.0
mov dword [esi + 0x18], vtable.ATL::CComContainedObject_class_CCxHDAudioVoiceEffects_.2.0
mov dword [esi + 0x1c], vtable.ATL::CComContainedObject_class_CCxHDAudioVoiceEffects_.1.0
mov dword [esi + 0x20], vtable.ATL::CComContainedObject_class_CCxHDAudioVoiceEffects_.0
mov dword [esi + 0x28], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002e9d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064e6b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100e57c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
lea ecx, [edi + 8]
mov dword [edi], vtable.ATL::CComAggObject_class_CCxHDAudioFactory_.0
call fcn.1002bef0
mov eax, dword [ebp + 8]
mov dword [edi + 8], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.9.0
mov dword [edi + 0xc], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.8.0
mov dword [edi + 0x10], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.7.0
mov dword [edi + 0x1c], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.6.0
mov dword [edi + 0x20], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.5.0
mov dword [edi + 0x24], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.4.0
mov dword [edi + 0x28], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.3.0
mov dword [edi + 0x2c], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.2.0
mov dword [edi + 0x30], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.1.0
mov dword [edi + 0x34], vtable.ATL::CComContainedObject_class_CCxHDAudioFactory_.0
mov dword [edi + 0x38], eax
mov ecx, dword [0x100e6c84]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 4], 0
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100301a0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e57c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, str.SOFTWAREDolbyDolby_Control_Center
push esi
mov esi, dword [0x100da014]
shr eax, 0x10
push edi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
test eax, eax
jne 0x10030351
mov ecx, str.SOFTWAREDolbyDolby_Control_Center
movzx edx, cx
push edx
lea ecx, [ebp - 0x210]
call fcn.100018e0
mov esi, dword [ebp - 0x210]
mov edi, dword [0x100da014]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x21c], 0x104
call ebx
test eax, eax
je 0x10030243
lea eax, [ebp - 0x218]
push eax
push 0x101
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x100302d6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.InstallPath
call ebx
push str.InstallPath
push eax
lea ecx, [ebp - 0x210]
call fcn.100013d0
mov edi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100302c9
cmp dword [ebp - 0x21c], eax
je 0x100302c9
lea ecx, [ebp - 0x20c]
push ecx
call ebx
lea edx, [ebp - 0x20c]
push edx
push eax
lea ecx, [ebp - 0x214]
call fcn.100013d0
mov eax, dword [ebp - 0x214]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [edi - 0xc]
cmp edx, dword [0x100da010]
je 0x100302fa
add edi, 0xfffffff4
push edi
call ebx
test eax, eax
jg 0x100302fa
push edi
call fcn.1004b641
add esp, 4
lea eax, [esi - 0xc]
cmp eax, dword [0x100da010]
je 0x10030318
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10030318
push esi
call fcn.1004b641
add esp, 4
mov esi, dword [ebp - 0x214]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x100da010]
je 0x1003033c
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x1003033c
push esi
call fcn.1004b641
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004bb49
mov esp, ebp
pop ebp
ret 4
push str.SOFTWAREDolbyDolby_Control_Center
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x100301f2
push edi
lea ecx, [ebp - 0x210]
call fcn.100010e0
test eax, eax
je 0x100301ec
lea eax, [edi + edi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x100301ec
mov esi, dword [ebp - 0x210]
push eax
push str.SOFTWAREDolbyDolby_Control_Center
push esi
call fcn.1004b2e0
add esp, 0xc
jmp 0x100301f2
Function at 0x10031ae0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
push edi
push str.CCxHDAudioHDMI::get_MasterVolume
call ebx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x24], 0
jne 0x10031b9f
push str.CCxHDAudioHDMI::get_MasterVolume:_Created___
call ebx
lea eax, [ebp + 8]
push eax
call fcn.10009d00
mov ecx, dword [ebp + 8]
mov esi, eax
mov dword [edi + 0x24], ecx
test esi, esi
jns 0x10031b2c
push str.CCxHDAudioHDMI::get_MasterVolume:_Cannot_create_MasterVolumeControl
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
push str.CCxHDAudioHDMI::get_MasterVolume__:_Before_SetEndPointInfo__
call ebx
mov esi, dword [edi + 0x24]
lea eax, [edi - 0x18]
neg eax
sbb eax, eax
and eax, edi
mov dword [esi + 0x34], eax
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
lea ecx, [esi + 0x14]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [esi + 0x34]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x18]
mov dword [ebp + 8], eax
push eax
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [esi + 0x34]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x60]
push eax
call edx
push str.CCxHDAudioHDMI::get_MasterVolume__:_After_SetEndPointInfo__
call ebx
push str.CCxHDAudioHDMI::get_MasterVolume__:_Before_QI_ICxHDMasterVolumeControl_
call ebx
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
lea edx, [edi + 0x28]
push edx
push 0x10075000
push eax
mov eax, dword [ecx]
call eax
push str.CCxHDAudioHDMI::get_MasterVolume__:_After_QI_ICxHDMasterVolumeControl_
call ebx
push str.CCHDAudioSPDIF::Final_QI_ICxHDMasterVolumeControl_
call ebx
mov edx, dword [ebp + 0xc]
mov edi, dword [edi + 0x28]
mov ecx, dword [edi]
mov eax, dword [ecx]
push edx
push 0x10074ed0
push edi
call eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10032110
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100e57c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x114
xor esi, esi
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.1004bb60
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10032165
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004bb49
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x1003217b
jne 0x10032180
cmp dword [ebp - 0x110], 1
jne 0x10032180
mov esi, 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1004bb49
mov esp, ebp
pop ebp
ret
Function at 0x100357c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x100357d4
xor eax, eax
jmp 0x100357db
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [esi + 8]
call fcn.100013d0
cmp dword [esi + 0x18], 0
jne 0x10035837
mov eax, dword [ebp + 0xc]
push str.InitLock
push 0
push 1
push 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esi + 0x1c]
push 0
push 0
push esi
push ecx
push 0
push 0
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x10035837
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc

Function at 0x100361b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.10013780
mov esi, dword [ebp + 8]
cmp eax, 1
jne 0x100361ca
mov dword [esi + 0x1c], 0x10035fc0
jmp 0x100361d1
mov dword [esi + 0x1c], 0x10035ad0
push ebx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x100361de
xor eax, eax
jmp 0x100361e5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [esi + 8]
call fcn.100013d0
cmp dword [esi + 0x18], 0
pop edi
pop ebx
jne 0x10036248
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.InitLock
push 0
push 1
push 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esi + 0x1c]
push 0
push 0
push esi
push ecx
push 0
push 0
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x10036248
xor eax, eax
pop esi
pop ebp
ret 0xc
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x100365c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062d6b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100e57c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], vtable.CProxy_ICxHDAudioSDIFInputDeviceEvents_class_CCxHDAudioSDIFInputDevice_.0
lea ecx, [esi + 0x18]
mov dword [ebp - 4], edi
call fcn.10013d10
mov ecx, dword [ebp + 8]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], vtable.CCxHDAudioPlayer.0
mov eax, dword [0x100da014]
mov dword [esi + 0x54], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x50], 1
mov dword [esi + 0x44], edi
mov dword [esi], vtable.ATL::CComContainedObject_class_CCxHDAudioSDIFInputDevice_.7.0
mov dword [esi + 4], vtable.ATL::CComContainedObject_class_CCxHDAudioSDIFInputDevice_.6.0
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_CCxHDAudioSDIFInputDevice_.5.0
mov dword [esi + 0x14], vtable.ATL::CComContainedObject_class_CCxHDAudioSDIFInputDevice_.4.0
mov dword [esi + 0x18], vtable.ATL::CComContainedObject_class_CCxHDAudioSDIFInputDevice_.3.0
mov dword [esi + 0x1c], vtable.ATL::CComContainedObject_class_CCxHDAudioSDIFInputDevice_.2.0
mov dword [esi + 0x30], vtable.ATL::CComContainedObject_class_CCxHDAudioSDIFInputDevice_.1.0
mov dword [esi + 0x34], vtable.ATL::CComContainedObject_class_CCxHDAudioSDIFInputDevice_.0
mov dword [esi + 0x38], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10039740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x100397a0
push 0x20019
push 2
push edi
push 1
add ecx, 4
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x100397a0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003978a
lea edi, [eax + 1]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x100397a0
mov eax, dword [ebx]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret 0x10
Function at 0x1003a320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100657cb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100e57c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edi, dword [0x100da014]
xor ebx, ebx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x248], edi
mov esi, 0x80004005
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x234], 0x1c
call fcn.1001d3d0
lea eax, [ebp - 0x250]
push eax
push 1
lea ecx, [ebp - 0x244]
push ecx
push str.Media
mov dword [ebp - 0x250], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameW]
test eax, eax
je 0x1003a4c2
push 2
push ebx
push ebx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003a4c2
lea eax, [ebp - 0x234]
push eax
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1003a4c2
inc dword [ebp - 0x254]
push 0x20019
push 2
push 0
push 1
lea ecx, [ebp - 0x234]
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003a509
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.MatchingDeviceId
push esi
mov dword [ebp - 0x250], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a502
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x218]
push edx
push eax
lea ecx, [ebp - 0x248]
call fcn.100013d0
lea ecx, [ebp - 0x248]
call fcn.10001360
mov edi, dword [ebp - 0x248]
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [edi - 8], 0
jl 0x1003a509
push str.VEN_14F1
push edi
call fcn.1004bc2b
add esp, 8
test eax, eax
je 0x1003a509
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x1003a509
mov ecx, dword [ebp - 0x258]
lea edx, [ebp - 0x248]
push edx
call fcn.1001bc40
mov dword [ebp - 0x24c], 0
mov esi, dword [ebp - 0x24c]
lea eax, [edi - 0xc]
cmp eax, dword [0x100da010]
je 0x1003a4e4
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1003a4e4
push edi
call fcn.1004b641
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004bb49
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x234]
push eax
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1003a3e9
jmp 0x1003a4bc
Function at 0x1003b660
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065928
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100e57c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100da014]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.100014a0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0xc]
cmp eax, dword [0x100da010]
je 0x1003b6cf
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1003b6cf
push esi
call fcn.1004b641
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003ff50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1003ffb0
mov ecx, dword [esi + 4]
lea eax, [esi + 0x10]
push eax
push ecx
call fcn.1004e36f
add esp, 8
test eax, eax
jne 0x1003ffa8
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [ebp - 8]
push 8
push eax
call fcn.1004e352
add esp, 0x10
cmp eax, 1
jne 0x1003ffa8
cmp dword [ebp - 8], 0x61746164
jne 0x1003ffa8
mov eax, dword [esi + 0x18]
cmp dword [ebp - 4], eax
jne 0x1003ffa8
mov dword [esi + 0x1c], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x88890008
mov dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003ffc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x100400d7
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1003ffe2
mov eax, 0x80004003
pop esi
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x1003fff5
pop ebx
mov eax, 0x80070057
pop esi
pop ebp
ret 8
push edi
mov dword [ebp + 8], eax
cmp ebx, dword [esi + 0x1c]
jbe 0x10040042
mov edi, edi
mov eax, dword [esi + 4]
mov edi, dword [esi + 0x1c]
mov edx, dword [ebp + 8]
push eax
push edi
push 1
push edx
call fcn.1004e352
add esp, 0x10
cmp eax, edi
jne 0x10040090
add dword [ebp + 8], edi
sub ebx, edi
cmp dword [esi + 0x48], 0
mov dword [esi + 0x1c], 0
je 0x1004009f
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
jne 0x100400c6
cmp ebx, dword [esi + 0x1c]
ja 0x10040000
test ebx, ebx
jne 0x1004005d
push 0x130
push str.wavefile.cpp
push str.numBytesToCopy___0
call fcn.1004d5bc
add esp, 0xc
cmp ebx, dword [esi + 0x1c]
jbe 0x10040079
push 0x131
push str.wavefile.cpp
push str.numBytesToCopy___m_dataBytesRemaining
call fcn.1004d5bc
add esp, 0xc
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
push edx
push ebx
push 1
push eax
call fcn.1004e352
add esp, 0x10
cmp eax, ebx
je 0x100400d0
pop edi
mov eax, 0x88890008
pop ebx
mov dword [esi + 8], eax
pop esi
pop ebp
ret 8
mov ecx, dword [ebp + 8]
xor eax, eax
cmp word [esi + 0x2e], 8
push ebx
setne al
dec eax
and eax, 0x80
push eax
push ecx
call fcn.1004bb60
add esp, 0xc
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [esi + 8]
pop edi
pop ebx
pop esi
pop ebp
ret 8
sub dword [esi + 0x1c], ebx
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret 8
Function at 0x10043160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0xf003f
push str.SOFTWAREMicrosoftMultimediaSound_Mapper
xor esi, esi
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], esi
call fcn.100022e0
test eax, eax
je 0x100431b7
push 0xf013f
push str.SOFTWAREMicrosoftMultimediaSound_Mapper
push SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.100022e0
test eax, eax
jne 0x1004322d
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp - 0x10]
test esi, esi
je 0x100431ea
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.Playback
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100431ea
mov dword [ebp - 4], 1
test edi, edi
je 0x100431f5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
pop edi
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100da010]
je 0x10043224
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10043224
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.1004b641
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100431f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100431f9
Function at 0x1004a696
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100eb6b8], 0
push esi
push edi
jne 0x1004a60c
call fcn.1004a578
test eax, eax
je 0x1004a651
mov eax, dword [0x100eb6b8]
cmp eax, 1
jne 0x1004a62d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1004a651
jmp 0x1004a693
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1004a693
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1004a655
xor eax, eax
jmp 0x1004a693
mov eax, dword [esi]
push dword [0x100eb6b8]
call edi
mov edi, eax
test edi, edi
je 0x1004a677
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1004a693
lea edi, [esi + 0xff0]
push esi
push dword [0x100eb6b8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1004a67d
mov eax, esi
pop edi
pop esi
ret
jmp 0x1004a5f8

Function at 0x1004bb49
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e57c0]
jne 0x1004bb53
repz ret
jmp fcn.100528cc