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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
call fcn.00503137
mov edi, dword [eax + 4]
test edi, edi
je 0x498111
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x18]
call fcn.0040de90
test eax, eax
mov eax, str.IntMicRange
jne 0x498100
mov eax, str.ExtMicRange
push 0
push eax
push str.RtkPreset
mov ecx, edi
call fcn.00507bbf
mov dword [ebx], eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, 4
push str.SoftwareRealtekCOMPreset
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [ebx], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x49818f
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x18]
call fcn.0040de90
test eax, eax
mov eax, str.IntMicRange
jne 0x498168
mov eax, str.ExtMicRange
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49818f
mov eax, dword [esp + 0x18]
mov dword [ebx], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4981a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call fcn.00503137
mov edi, dword [eax + 4]
test edi, edi
je 0x4981de
mov esi, dword [ebx + 0x18]
call fcn.0040de90
test eax, eax
mov eax, str.IntMicRange
jne 0x4981cd
mov eax, str.ExtMicRange
mov ecx, dword [ebp + 8]
push ecx
push eax
push str.RtkPreset
mov ecx, edi
call fcn.00507c28
lea edx, [esp + 0xc]
push edx
xor edi, edi
lea eax, [esp + 0xc]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareRealtekCOMPreset
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x49823c
mov esi, dword [ebx + 0x18]
call fcn.0040de90
test eax, eax
mov eax, str.IntMicRange
jne 0x49821d
mov eax, str.ExtMicRange
mov edx, dword [esp + 8]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 1
je 0x49823e
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4a7490
Capabilities:
Resume thread

Disassembly:
cmp dword [esi + 0x44], 0
jle 0x4a74fb
cmp dword [esi + 0x58], 0
jne 0x4a74ad
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x58], eax
push edi
push 0
push 4
push 0
push 0
push esi
push 0x4a6fd0
call fcn.00504fe7
mov edi, eax
test edi, edi
je 0x4a74fa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea eax, [esi + 0x54]
push eax
call ebx
mov ecx, dword [edi + 0x2c]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esi + 0x5c], 1
pop ebx
pop edi
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x53d818
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push 0xa
mov ecx, esi
call fcn.005032d0
mov dword [esi], vtable.CTypedPtrList_class_CPtrList__class_CPropRegKeyEx__.0
lea eax, [esi + 0x34]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
call fcn.00416e60
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x4a7bd0
Capabilities:
Resume thread

Disassembly:
cmp dword [esi + 0x20], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
jne 0x4a7bea
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x20], eax
cmp dword [esi + 0x24], 0
jne 0x4a7bfd
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x24], eax
push 0
push 4
push 0
push 0
push esi
push 0x4a78d0
call fcn.00504fe7
mov edi, eax
test edi, edi
je 0x4a7c49
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea eax, [esi + 0x1c]
push eax
call ebx
mov ecx, dword [edi + 0x2c]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esi + 0x28], 1
pop ebx
pop edi
ret
Function at 0x4a8af8
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x14], 0
push esi
mov esi, ecx
je 0x4a8ba1
cmp dword [esi + 0x5c], 0
je 0x4a8ba1
mov ecx, dword [esi + 0x20]
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x64]
mov edi, dword [esi + 0x68]
sub edi, dword [esi + 0xdc]
mov ebx, dword [esi + 0xd0]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0xd4]
sub edi, eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
sar ecx, 1
sub ecx, dword [esi + 0xd8]
sub ecx, ebx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi + 0xf0]
mov ebp, eax
sar ebp, 1
add ebp, dword [esp + 0x10]
neg edx
sbb edx, edx
and edx, ecx
add edx, ebx
mov ebx, dword [esp + 0x28]
neg ebx
mov eax, dword [esp + 0x24]
sbb bl, bl
mov eax, dword [eax + 4]
and bl, 0x81
add bl, 0xff
add esi, 0x58
push ebx
mov ebx, dword [esi + 0x7c]
push edi
push ecx
push ebx
push edx
push edi
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push ebp
push eax
call fcn.00407930
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 8
Function at 0x4ad820
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4ad976
cmp dword [esi + 0x90], 0
je 0x4ad976
cmp dword [esi + 0x5c], 0
je 0x4ad976
call fcn.00501825
mov ecx, dword [esi + 0x20]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x10]
push edx
push ebx
push 0x419
push eax
call edi
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x41a
push edx
call edi
test byte [esp + 0xc], 2
je 0x4ad8fa
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x68]
mov edx, eax
sub edx, dword [esp + 0x14]
cmp ecx, edx
jge 0x4ad8b1
sub eax, ecx
sub eax, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x98]
sub eax, edx
sub eax, ebx
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
and bl, 0x65
add bl, 0xff
add esi, 0x8c
push ebx
push eax
push ecx
push 0
push 0
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
push edi
call fcn.00407930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x64]
mov edi, eax
sub edi, edx
cmp ecx, edi
jge 0x4ad913
sub eax, ecx
sub eax, edx
mov ebx, eax
mov eax, dword [esi + 0x9c]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, eax
sub ecx, edi
sub edi, edx
add ecx, edx
cmp eax, edi
jg 0x4ad92f
mov edi, eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov edx, dword [ebp + 8]
sub eax, ebx
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
and bl, 0x65
add bl, 0xff
mov edx, dword [edx + 4]
push ebx
xor ebx, ebx
test ecx, ecx
setl bl
push edi
push eax
add esi, 0x8c
sub ebx, 1
and ebx, ecx
mov ecx, dword [esp + 0x2c]
push ebx
push 0
push edi
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push edx
call fcn.00407930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4adb10
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4add11
cmp dword [esi + 0x90], 0
je 0x4add11
cmp dword [esi + 0x5c], 0
je 0x4add11
call fcn.00501825
mov ecx, dword [esi + 0x20]
mov ebx, eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x30]
push edx
push 0
push 0x419
push eax
call edi
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x41a
push edx
call edi
test bl, 2
je 0x4adc4e
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 0x98]
mov edx, dword [esp + 0x24]
sub eax, edi
add eax, edx
xor ebx, ebx
test eax, eax
setl bl
mov ecx, 0
mov dword [esp + 0x14], 0
sub ebx, 1
and ebx, eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esi + 0x68]
sub eax, dword [esp + 0x34]
sets cl
sub ecx, 1
and ecx, eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x98]
mov eax, edi
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esi + 0xc4]
mov edi, eax
mov eax, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, ecx
mov ecx, dword [esp + 0x28]
sub ecx, dword [esi + 0xcc]
sub edx, dword [esi + 0xc8]
sub ecx, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
sub ecx, dword [esp + 0xc]
sar edi, 1
add edi, dword [esi + 0xc0]
sub edx, ebx
add edi, dword [esp + 0x24]
shr ebx, 1
cmp dword [esi + 0x98], eax
mov dword [esp + 0x18], ebx
jg 0x4adc2d
mov eax, dword [esi + 0x98]
mov ebx, dword [esi + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
cmp ebx, eax
jg 0x4adcd1
mov eax, ebx
jmp 0x4adcd1
mov edx, dword [esi + 0x9c]
sub edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
xor ecx, ecx
mov edi, dword [esi + 0xc0]
lea eax, [edx + ebx]
mov edx, dword [esp + 0x28]
test eax, eax
setl cl
sub edx, dword [esi + 0xc8]
add edi, dword [esp + 0x20]
sub edx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
sub ecx, 1
and eax, ecx
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0xc], eax
shr eax, 1
add ecx, eax
add ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x98]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x9c]
sub ecx, dword [esi + 0xcc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
sub ecx, dword [esp + 0xc]
sub eax, ebx
cmp dword [esi + 0x9c], eax
jg 0x4adcd1
mov eax, dword [esi + 0x9c]
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
and bl, 0x65
add bl, 0xff
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add esi, 0x8c
push ebx
mov ebx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push edx
push ecx
push edi
push eax
call fcn.00407930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4add20
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push edi
mov esi, ecx
je 0x4ade22
cmp dword [esi + 0x5c], eax
je 0x4ade22
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x419
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esi + 0x64]
sub edi, dword [esi + 0xd8]
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xe0]
mov ebx, dword [esi + 0xe4]
sub edi, eax
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0xdc]
sub eax, ecx
mov ecx, dword [esp + 0x20]
add ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
add ecx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
sub ecx, dword [esi + 0xe8]
sub ecx, edx
mov edx, dword [esp + 0x2c]
sub edx, dword [esi + 0xec]
sub ecx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
sub edx, ebx
mov ebx, edx
mov edx, dword [esp + 0x24]
sub ebx, edx
cmp eax, ebx
jg 0x4adddb
mov dword [esp + 0x10], eax
jmp 0x4addeb
mov ebx, dword [esp + 0x14]
sub ebx, dword [esi + 0xe4]
sub ebx, edx
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
mov edx, dword [ebp + 8]
mov edx, dword [edx + 4]
and bl, 0x81
add bl, 0xff
add esi, 0x58
push ebx
push eax
mov eax, dword [esi + 0x7c]
push edi
push eax
mov eax, dword [esi + 0x78]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push ecx
push eax
push edx
call fcn.00407930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b4000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5415d9
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
call fcn.00505193
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4b4043
push 0x80004005
call fcn.00402900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0xa
lea ecx, [esi + 4]
mov dword [esp + 0x1c], edi
call fcn.00507804
mov byte [esp + 0x18], 1
lea ebp, [esi + 0x28]
call fcn.00505193
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4b4081
push 0x80004005
call fcn.00402900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov dword [esi + 0x30], edi
push edi
push 0x564f30
mov ecx, esi
mov byte [esp + 0x20], 3
call fcn.00404a30
push edi
push 0x564f30
mov ecx, ebp
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
call fcn.00404a30
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x4c], reloc.OLEAUT32.dll_SysReAllocString
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x4b47e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5477f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esp + 0xc]
call fcn.00422d00
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00404600
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.004b4890
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b486c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x4ba3c0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.Mutex_B945EE5C_6F0A_4776_94CD_E9C1742AED5A
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ba3ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x4bf0c0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.004fd7d0
cmp dword [esi + 0x7c], 0
jne 0x4bf0e6
cmp dword [esp + 0x10], 0
je 0x4bf0e6
mov eax, dword [esi]
mov edx, dword [eax + 0x164]
mov ecx, esi
call edx
mov dword [esi + 0x7c], eax
lea eax, [esi + 0x124]
test eax, eax
je 0x4bf149
cmp dword [eax + 0x20], 0
je 0x4bf149
fld qword [0x5ae4b8]
fmul qword [0x5852f8]
call fcn.005261c0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [esi + 0x144]
push 0
push 0x418
push eax
call edi
mov ecx, dword [esi + 0x144]
push 0
push 2
push 0x415
push ecx
call edi
add eax, 0xbb8
movzx edx, ax
mov eax, dword [esi + 0x144]
push edx
push 2
push 0x403
push eax
call edi
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4bf184
cmp dword [esi + 0xe8], 0
ja 0x4bf165
cmp dword [esi + 0xd4], 0
je 0x4bf184
add eax, 0x19b4
cmp dword [esp + 0x10], 0
lea ebx, [esi + 0xbc]
push eax
je 0x4bf17f
call fcn.004a6360
jmp 0x4bf184
call fcn.004a63f0
cmp dword [esi + 0x1a0], 0
jle 0x4bf26d
cmp dword [esi + 0x1b4], 0
jne 0x4bf1ae
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1b4], eax
cmp dword [esp + 0x10], 0
je 0x4bf205
push 0
push 4
push 0
push 0
push esi
push 0x4bf750
call fcn.00504fe7
mov edi, eax
test edi, edi
je 0x4bf26d
push 2
push 0
push 0
add esi, 0x1b0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov ecx, dword [edi + 0x2c]
push eax
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0x1b0], 0
mov dword [esp + 0x10], 0
je 0x4bf26d
mov eax, dword [esi + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x1b0]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4bf252
cmp dword [esp + 0x10], 0x103
jne 0x4bf252
mov eax, dword [esi + 0x1b0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4bf26d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1b0], 0
pop edi
pop esi
pop ebx
ret 8
Function at 0x4c2fb0
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x5413e4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5ab720]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
mov ecx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.0050254d
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esi], vtable.CSilencePlayer.0
mov dword [esi + 0x20], vtable.CSilencePlayer::XNotifyClient.0
call fcn.00505193
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4c3041
push 0x80004005
call fcn.00402900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
lea ebp, [esi + 0x38]
mov dword [ebp], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov byte [esp + 0x34], 4
mov dword [esi + 0x44], edi
lea edi, [esi + 0x48]
mov ebx, 4
lea esp, [esp]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4c3070
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4c3094
xor eax, eax
jmp 0x4c30af
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c30a0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x24]
call fcn.00404a30
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ebp
push 0x560db4
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x2c]
push 1
mov dword [esi + 0x2c], edx
push 0
mov dword [esi + 0x30], eax
push 0x560d64
mov dword [esi + 0x34], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4c3169
mov ebp, dword [ebp]
mov edx, dword [ebp]
lea eax, [esi + 0x20]
push eax
mov eax, dword [edx + 0x18]
push ebp
call eax
test eax, eax
jl 0x4c3169
push 0
push 4
push 0
push 0
push esi
push 0x4c3690
call fcn.00504fe7
mov edi, eax
test edi, edi
je 0x4c3169
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea eax, [esi + 0x44]
push eax
call ebx
mov ecx, dword [edi + 0x2c]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
call fcn.004c35d0
test eax, eax
je 0x4c3169
mov eax, esi
call fcn.004c35d0
test eax, eax
je 0x4c3169
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4c3169
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0052151a
add esp, 0x28
ret 0x14
Function at 0x4d6560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
push 0x48
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
mov esi, ecx
call fcn.00523750
add esp, 0xc
call fcn.00503137
mov eax, dword [eax + 8]
push 0x57ed6c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test ebx, ebx
mov edi, eax
je 0x4d6711
test edi, edi
je 0x4d6711
call fcn.00503137
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
call fcn.00503137
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], edi
call dword [sym.imp.WINMM.dll_mmioOpenW]
push 0x20
push 0
lea ebx, [esi + 0x1b0]
mov edi, eax
push ebx
push edi
mov dword [esi + 0x1b8], 0x45564157
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x4d6708
push 0x10
lea eax, [esi + 0x19c]
push ebx
push eax
push edi
mov dword [eax], 0x20746d66
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
push 0
jne 0x4d670a
lea eax, [esi + 0x19c]
push eax
push edi
call dword [sym.imp.WINMM.dll_mmioAscend]
push 0x10
lea eax, [esi + 0x188]
push ebx
push eax
push edi
mov dword [eax], 0x61746164
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
push 0
jne 0x4d670a
lea eax, [esi + 0x188]
push eax
push edi
call dword [sym.imp.WINMM.dll_mmioAscend]
mov edx, dword [esi + 0x1a8]
push 0
push edx
push edi
call dword [sym.imp.WINMM.dll_mmioSeek]
mov eax, dword [esi + 0x1a0]
push eax
lea ecx, [esi + 0x160]
push ecx
push edi
call dword [sym.imp.WINMM.dll_mmioRead]
cmp dword [esi + 0x1a0], eax
jne 0x4d6708
mov ebx, 1
cmp word [esi + 0x162], bx
jne 0x4d6708
cmp word [esi + 0x16e], 0x10
jne 0x4d6708
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x18c]
push eax
push esi
mov dword [esi + 0x84], edx
call fcn.004d6720
test eax, eax
jne 0x4d66ed
push eax
push edi
call dword [sym.imp.WINMM.dll_mmioClose]
call fcn.004d6b90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x80], ebx
mov dword [esi + 0x8c], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4