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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
call fcn.00506c00
mov edi, dword [eax + 4]
test edi, edi
je 0x49cca1
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x18]
call fcn.0040fb70
test eax, eax
mov eax, str.IntMicRange
jne 0x49cc90
mov eax, str.ExtMicRange
push 0
push eax
push str.RtkPreset
mov ecx, edi
call fcn.0050b2fe
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 0x49cd1f
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x18]
call fcn.0040fb70
test eax, eax
mov eax, str.IntMicRange
jne 0x49ccf8
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 0x49cd1f
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 0x49cd30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call fcn.00506c00
mov edi, dword [eax + 4]
test edi, edi
je 0x49cd6e
mov esi, dword [ebx + 0x18]
call fcn.0040fb70
test eax, eax
mov eax, str.IntMicRange
jne 0x49cd5d
mov eax, str.ExtMicRange
mov ecx, dword [ebp + 8]
push ecx
push eax
push str.RtkPreset
mov ecx, edi
call fcn.0050b367
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 0x49cdcc
mov esi, dword [ebx + 0x18]
call fcn.0040fb70
test eax, eax
mov eax, str.IntMicRange
jne 0x49cdad
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 0x49cdce
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4ac080
Capabilities:
Resume thread

Disassembly:
cmp dword [esi + 0x44], 0
jle 0x4ac0eb
cmp dword [esi + 0x58], 0
jne 0x4ac09d
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 0x4abc00
call fcn.005093c6
mov edi, eax
test edi, edi
je 0x4ac0ea
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 0x4ac160
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x540d38
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5b3720]
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.00506d99
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.004174d0
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 0x4ac7c0
Capabilities:
Resume thread

Disassembly:
cmp dword [esi + 0x20], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
jne 0x4ac7da
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x20], eax
cmp dword [esi + 0x24], 0
jne 0x4ac7ed
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 0x4ac4c0
call fcn.005093c6
mov edi, eax
test edi, edi
je 0x4ac839
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 0x4ad6c8
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x14], 0
push esi
mov esi, ecx
je 0x4ad771
cmp dword [esi + 0x5c], 0
je 0x4ad771
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.00402ff0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 8
Function at 0x4b2390
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 0x4b24e6
cmp dword [esi + 0x90], 0
je 0x4b24e6
cmp dword [esi + 0x5c], 0
je 0x4b24e6
call fcn.005052f2
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 0x4b246a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x68]
mov edx, eax
sub edx, dword [esp + 0x14]
cmp ecx, edx
jge 0x4b2421
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.00402ff0
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 0x4b2483
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 0x4b249f
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.00402ff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b26a0
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 0x4b28a1
cmp dword [esi + 0x90], 0
je 0x4b28a1
cmp dword [esi + 0x5c], 0
je 0x4b28a1
call fcn.005052f2
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 0x4b27de
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 0x4b27bd
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 0x4b2861
mov eax, ebx
jmp 0x4b2861
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 0x4b2861
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.00402ff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b28b0
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 0x4b29b2
cmp dword [esi + 0x5c], eax
je 0x4b29b2
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 0x4b296b
mov dword [esp + 0x10], eax
jmp 0x4b297b
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.00402ff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b8800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x544799
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
call fcn.005081a0
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4b8843
push 0x80004005
call fcn.004021d0
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.0050b7f5
mov byte [esp + 0x18], 1
lea ebp, [esi + 0x28]
call fcn.005081a0
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4b8881
push 0x80004005
call fcn.004021d0
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 0x566c94
mov ecx, esi
mov byte [esp + 0x20], 3
call fcn.004062a0
push edi
push 0x566c94
mov ecx, ebp
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
call fcn.004062a0
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 0x4b8fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54ea78
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esp + 0xc]
call fcn.00423300
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.00402380
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.004b9090
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 0x4b906c
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 0x4be680
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
mov eax, dword [ebp]
test eax, eax
mov dword [esp + 0xc], 0
jne 0x4be6a1
pop esi
mov eax, 0xc0000008
pop ebp
ret 0xc
test esi, esi
je 0x4be754
cmp dword [esp + 0x10], 0
je 0x4be754
cmp dword [esp + 0x14], 0
je 0x4be754
push 2
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push eax
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jl 0x4be713
mov edx, dword [esp + 0xc]
push edi
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x4be718
mov esi, 0xc0000017
test edi, edi
je 0x4be710
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
pop esi
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp]
push 2
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push 0
push 0
push 0
push ebx
push esi
push edx
call sub.bcrypt.dll_BCryptEncrypt
mov esi, eax
test esi, esi
jl 0x4be6fc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
mov dword [edx], ecx
pop ebp
ret 0xc
pop esi
mov eax, 0xc000000d
pop ebp
ret 0xc

Function at 0x4beed0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.Mutex_F9DBD8FA_ABFD_4ed3_86CF_9FB6511DFB90
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 0x4beefa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x4c3b30
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.00501217
cmp dword [edi + 0x7c], 0
jne 0x4c3b56
cmp dword [esp + 0x10], 0
je 0x4c3b56
mov eax, dword [edi]
mov edx, dword [eax + 0x164]
mov ecx, edi
call edx
mov dword [edi + 0x7c], eax
lea eax, [edi + 0x124]
test eax, eax
je 0x4c3bb9
cmp dword [eax + 0x20], 0
je 0x4c3bb9
fld qword [0x5b65b0]
fmul qword [0x58c160]
call fcn.005296d0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [edi + 0x144]
push 0
push 0x418
push eax
call esi
mov ecx, dword [edi + 0x144]
push 0
push 2
push 0x415
push ecx
call esi
add eax, 0xbb8
movzx edx, ax
mov eax, dword [edi + 0x144]
push edx
push 2
push 0x403
push eax
call esi
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x4c3c01
cmp dword [edi + 0xe8], 0
ja 0x4c3bd5
cmp dword [edi + 0xd4], 0
je 0x4c3c01
cmp dword [esp + 0x10], 0
je 0x4c3bef
lea eax, [edi + 0xbc]
lea esi, [ecx + 0x1a5c]
call fcn.004aaf30
jmp 0x4c3c01
add ecx, 0x1a5c
lea ebx, [edi + 0xbc]
push ecx
call fcn.004aaf80
cmp dword [edi + 0x1a0], 0
jle 0x4c3cea
cmp dword [edi + 0x1b4], 0
jne 0x4c3c2b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x1b4], eax
cmp dword [esp + 0x10], 0
je 0x4c3c82
push 0
push 4
push 0
push 0
push edi
push 0x4c4180
call fcn.005093c6
mov esi, eax
test esi, esi
je 0x4c3cea
push 2
push 0
push 0
add edi, 0x1b0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [esi + 0x2c]
push eax
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
ret 8
cmp dword [edi + 0x1b0], 0
mov dword [esp + 0x10], 0
je 0x4c3cea
mov eax, dword [edi + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [edi + 0x1b0]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4c3ccf
cmp dword [esp + 0x10], 0x103
jne 0x4c3ccf
mov eax, dword [edi + 0x1b0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x1b0]
test eax, eax
je 0x4c3cea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1b0], 0
pop edi
pop esi
pop ebx
ret 8
Function at 0x4db1b0
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.00526c60
add esp, 0xc
call fcn.00506c00
mov eax, dword [eax + 8]
push 0x585cdc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test ebx, ebx
mov edi, eax
je 0x4db361
test edi, edi
je 0x4db361
call fcn.00506c00
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
call fcn.00506c00
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 0x4db358
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 0x4db35a
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 0x4db35a
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 0x4db358
mov ebx, 1
cmp word [esi + 0x162], bx
jne 0x4db358
cmp word [esi + 0x16e], 0x10
jne 0x4db358
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x18c]
push eax
push esi
mov dword [esi + 0x84], edx
call fcn.004db370
test eax, eax
jne 0x4db33d
push eax
push edi
call dword [sym.imp.WINMM.dll_mmioClose]
call fcn.004db7e0
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
Function at 0x4db370
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea esi, [ebp + 0xc]
push esi
push 0x4db680
call sub.DSOUND.dll_DirectSoundEnumerateW
cmp dword [esi], 0
je 0x4db3f9
mov ebx, ebp
call fcn.004db7a0
test eax, eax
je 0x4db3f9
mov ebx, dword [esp + 0x18]
mov ecx, ebp
call fcn.004db410
test eax, eax
je 0x4db3f9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
lea esi, [ebp + 0x48]
push 0
push 0
push 0
push 0
call ebx
test eax, eax
mov dword [esi], eax
je 0x4db3f9
add edi, 1
add esi, 4
cmp edi, 4
jl 0x4db3b0
push 0
push 0
push 0
push 0
call ebx
test eax, eax
mov dword [ebp + 0x44], eax
je 0x4db3f9
lea eax, [ebp + 0x5c]
push eax
push 0
push ebp
push 0x4db5d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x58], eax
jne 0x4db402
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

Function at 0x4dd0d0
Capabilities:
Terminate thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi + 0x30], edi
je 0x4dd111
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x30]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4dd104
mov edx, dword [esi + 0x30]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x4dd122
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x38], edi
mov dword [esi + 4], edi
pop edi
ret

Function at 0x4dd130
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 0x34], 0
jne 0x4dd148
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x34], eax
cmp dword [esi + 0x30], 0
jne 0x4dd177
cmp dword [esi + 0x34], 0
je 0x4dd177
lea eax, [esp]
push eax
push 0
push esi
push 0x4dd270
push 0
push 0
mov dword [esp + 0x18], 0
call fcn.00526b4e
add esp, 0x18
mov dword [esi + 0x30], eax
xor eax, eax
cmp dword [esi + 0x30], eax
setne al
pop ecx
ret