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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
movzx eax, word [ebp + 0xc]
push 0x565828
push eax
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x461749
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esp + 0x14], eax
je 0x461749
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x461749
mov edi, dword [esp + 0x14]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x461749
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4617bd
push edi
push esi
push eax
call fcn.0052bf80
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x461749
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
push edx
push esi
call fcn.00461c00
test eax, eax
jge 0x46177e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x461761
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x461773
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00424f90
test eax, eax
je 0x4617a8
cmp dword [ebp + 0x10], 0
je 0x461799
mov eax, dword [esp + 0x10]
push eax
call fcn.00461bc0
jmp 0x4617a2
mov eax, dword [esi + 4]
push eax
call fcn.00461b00
mov dword [esi + 0x30], eax
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4617c0
mov esi, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4617d5
mov ebx, esi
call fcn.00461820
call fcn.00424f90
test eax, eax
je 0x46180a
xor eax, eax
test edi, edi
setne al
mov ecx, esi
lea eax, [eax*4 + 3]
push eax
call fcn.004618f0
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x46180a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x30], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x474960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5428cb
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x5b3720]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x4749b2
xor eax, eax
jmp 0x474b51
cmp dword [esi + 0x84], 0
je 0x4749ab
cmp dword [esi + 0x8c], 0
je 0x4749cf
lea eax, [esi + 0x88]
call fcn.00402420
call fcn.005081a0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4749e9
push 0x80004005
call fcn.004021d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x82
lea ecx, [esp + 0xe0]
push ecx
mov dword [esp + 0x200], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0xdc]
lea ecx, [esi + 0x1c8]
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x474a27
sub eax, edi
push eax
lea edx, [esp + 0xe0]
push edx
call fcn.00475600
mov eax, dword [esi + 0x84]
test eax, eax
je 0x474a84
mov eax, dword [eax + 0x154]
and al, 0x40
xor ecx, ecx
cmp al, 0x40
sete cl
mov eax, ecx
test eax, eax
je 0x474a84
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x214]
add eax, 0xfffffd00
cmp eax, 1
push esi
ja 0x474a7d
call fcn.00474f00
jmp 0x474a8a
call fcn.00475100
jmp 0x474a8a
push esi
call fcn.00474b80
push 0xc8
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00526c60
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx + 0x14]
add esp, 0xc
push 0
push 0
push 0xc7
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x474ad0
mov ebx, dword [0x5bf040]
sub eax, edx
mov edi, eax
call fcn.004759d0
test eax, eax
je 0x474b08
mov eax, dword [0x5bf064]
test eax, eax
je 0x474b08
add edi, 1
push edi
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
call eax
add esp, 0x10
jmp 0x474b0a
xor al, al
mov edx, dword [esi + 0x78]
movzx edi, al
lea eax, [esi + 0x78]
push 0
push eax
mov eax, dword [edx]
mov dword [esi + 0x1c4], 1
call eax
mov dword [esp + 0x1f8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474b4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.00524c67
mov esp, ebp
pop ebp
ret
Function at 0x482370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5419f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CMicBssSetting.0
mov dword [esp + 0x14], 0
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4823bd
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0x30], 0
mov ecx, esi
call fcn.004b9220
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x487d00
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x54c8d1
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x24]
push ebx
call fcn.004c3700
xor ebp, ebp
mov dword [esp + 0x1c], ebp
lea ecx, [ebx + 0x1e0]
mov dword [ebx], vtable.CMicBssV2SettingDlg.0
mov dword [ebx + 0x78], vtable.CMicBssV2SettingDlg.1.0
call fcn.0050e4b5
mov dword [ebx + 0x254], ebp
mov dword [ebx + method.CFont.virtual_0], vtable.CFont.0
lea edi, [ebx + 0x258]
mov byte [esp + 0x1c], 2
call fcn.004b1000
lea edi, [ebx + 0x310]
mov byte [esp + 0x1c], 3
call fcn.004b1000
lea edi, [ebx + 0x3c8]
mov byte [esp + 0x1c], 4
call fcn.004b1000
lea edi, [ebx + 0x480]
mov byte [esp + 0x1c], 5
call fcn.004b1000
lea edi, [ebx + 0x538]
mov byte [esp + 0x1c], 6
call fcn.004b1000
lea edi, [ebx + 0x5f0]
mov byte [esp + 0x1c], 7
call fcn.004b1000
lea edi, [ebx + 0x6a8]
mov byte [esp + 0x1c], 8
call fcn.004b1000
lea edi, [ebx + 0x760]
mov byte [esp + 0x1c], 9
call fcn.004b1000
lea edi, [ebx + 0x818]
mov byte [esp + 0x1c], 0xa
call fcn.004b1000
lea edi, [ebx + 0x8d0]
mov byte [esp + 0x1c], 0xb
call fcn.004b1000
lea edi, [ebx + 0x988]
mov byte [esp + 0x1c], 0xc
call fcn.004b1000
lea edi, [ebx + 0xa40]
mov byte [esp + 0x1c], 0xd
call fcn.004b1000
lea edi, [ebx + 0xaf8]
mov byte [esp + 0x1c], 0xe
call fcn.004b1000
lea edi, [ebx + 0xbb0]
mov byte [esp + 0x1c], 0xf
call fcn.004b1000
lea edi, [ebx + 0xc68]
mov byte [esp + 0x1c], 0x10
call fcn.004b1000
lea edi, [ebx + 0xd20]
mov byte [esp + 0x1c], 0x11
call fcn.004b0750
lea edi, [ebx + 0xdbc]
mov byte [esp + 0x1c], 0x12
call fcn.004b0750
lea edi, [ebx + 0xe58]
mov byte [esp + 0x1c], 0x13
call fcn.004b0750
lea edi, [ebx + 0xef4]
mov byte [esp + 0x1c], 0x14
call fcn.004b0750
lea edi, [ebx + 0xf90]
mov byte [esp + 0x1c], 0x15
call fcn.004b0750
lea edi, [ebx + 0x102c]
mov byte [esp + 0x1c], 0x16
call fcn.004b0750
lea edi, [ebx + 0x10c8]
mov byte [esp + 0x1c], 0x17
call fcn.004b0750
lea eax, [ebx + 0x1190]
push eax
mov byte [esp + 0x20], 0x18
call fcn.004ac160
lea ecx, [ebx + 0x11e4]
push ecx
mov byte [esp + 0x20], 0x19
call fcn.004ac160
lea esi, [ebx + 0x1240]
call fcn.004621a0
mov dword [esi], vtable.CImageEx.0
mov dword [esi + 0x30], ebp
lea esi, [ebx + 0x1274]
mov ecx, esi
mov byte [esp + 0x1c], 0x1b
call fcn.004ffdf5
mov dword [esi], vtable.CStatic.0
mov byte [esp + 0x1c], 0x1c
call fcn.005089e3
cmp eax, ebp
je 0x487f25
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
cmp eax, ebp
jne 0x487f29
xor eax, eax
jmp 0x487f37
mov eax, dword [eax + 0x60]
cmp eax, ebp
je 0x487f25
add dword [eax + 0x1ab8], 1
mov dword [ebx + 0x1c0], eax
mov dword [ebx + 0x1c4], ebp
mov dword [ebx + 0x1d8], ebp
mov dword [ebx + 0x1238], ebp
mov dword [ebx + 0x123c], ebp
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x490b10
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10008
call fcn.00528ef0
mov eax, dword [0x5b3720]
xor eax, esp
mov dword [esp + 0x10004], eax
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x490b47
mov ecx, dword [esp + 0x10004]
xor ecx, esp
call fcn.00524c67
add esp, 0x10008
ret
push ebx
mov ebx, dword [esi + 0x88]
add eax, 0x1a5c
call fcn.004ab110
test eax, eax
je 0x490c56
push 0
lea ecx, [esi + 0x274]
push ecx
add eax, 0x70
push eax
call sub.DSOUND.dll_DirectSoundCaptureCreate
test eax, eax
jl 0x490c56
mov edx, dword [esi + 0x34c]
add edx, edx
push ebp
add edx, edx
lea ecx, [esi + 0x300]
push edi
mov word [esi + 0x348], 1
mov word [esi + 0x356], 0x10
mov word [esi + 0x34a], 2
mov word [esi + 0x354], 4
mov dword [esi + 0x350], edx
xor eax, eax
mov dword [esp + 0xc], ecx
lea edi, [esi + 0x280]
mov edx, dword [esi + 0x350]
add edx, edx
add edx, edx
lea ebx, [eax + 1]
add edx, edx
mov ecx, edx
shr ecx, 4
imul ecx, ebx
add ecx, 0xffffffff
mov dword [edi], ecx
mov eax, dword [esi + 0x350]
movzx ebp, word [esi + 0x354]
add eax, eax
add eax, eax
add eax, eax
shr eax, 4
xor edx, edx
div ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
sub ecx, edx
mov dword [edi], ecx
call ebp
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov dword [edi + 4], eax
mov eax, ebx
add ecx, 4
add edi, 8
cmp eax, 0x10
mov dword [esp + 0xc], ecx
jl 0x490bc2
push 0
push 0
push 0
push 0
call ebp
mov dword [esi + 0x340], eax
lea eax, [esp + 0x10]
push eax
push 0x7fff
mov dword [esi + 0x2f8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
pop edi
pop ebp
jne 0x490c6e
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10004]
xor ecx, esp
call fcn.00524c67
add esp, 0x10008
ret
cmp word [esp + eax*2 + 6], 0x5c
je 0x490c8d
push 0x56a3d4
lea ecx, [esp + 0xc]
push 0x7fff
push ecx
call fcn.0052599d
add esp, 0xc
push str.MicCal.wav
lea edx, [esp + 0xc]
push 0x7fff
push edx
call fcn.0052599d
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x360]
call fcn.00406220
mov ecx, dword [esp + 0x10008]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00524c67
add esp, 0x10008
ret
Function at 0x490cd0
Capabilities:
Resume thread

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, eax
xor esi, esi
xor eax, eax
cmp dword [edi + 0x274], esi
je 0x490e4c
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00490e60
push 0x94
call fcn.004fe8de
add esp, 4
cmp eax, esi
je 0x490d33
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 0x90], esi
mov dword [eax + 0x30], esi
mov dword [eax + 0x80], esi
mov ecx, eax
jmp 0x490d35
xor ecx, ecx
cmp ecx, esi
mov dword [edi + 0x344], ecx
jne 0x490d49
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [edi + 0x360]
lea ebx, [edi + 0x348]
call fcn.004faf70
test eax, eax
jl 0x490d3f
mov eax, dword [edi + 0x350]
add eax, eax
add eax, eax
add eax, eax
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x274]
lea ebp, [edi + 0x278]
push ebp
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x1c
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x490d3f
lea esi, [edi + 0x300]
mov ebx, 0x11
mov eax, dword [esi]
test eax, eax
je 0x490db1
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
add esi, 4
sub ebx, 1
jne 0x490da4
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx]
lea esi, [edi + 0x27c]
push esi
push 0x56622c
push eax
call edx
test eax, eax
jl 0x490d3f
mov esi, dword [esi]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
lea ecx, [edi + 0x280]
push ecx
push 0x10
push esi
call edx
test eax, eax
jl 0x490d3f
push ebx
push 4
push ebx
push ebx
push edi
push 0x4911b0
call fcn.005093c6
mov esi, eax
test esi, esi
je 0x490d3f
push 2
push ebx
push ebx
add edi, 0x35c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
mov eax, dword [esi + 0x2c]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp]
mov edx, dword [eax]
push ebx
push eax
mov eax, dword [edx + 0x24]
call eax
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x490e60
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [edi + 0x35c], ebx
push esi
mov dword [esp + 8], ebx
je 0x490eba
mov eax, dword [edi + 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [edi + 0x35c]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x490ead
cmp dword [esp + 8], 0x103
jne 0x490ead
mov eax, dword [edi + 0x35c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x27c]
cmp eax, ebx
mov dword [edi + 0x35c], ebx
je 0x490ed8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x27c], ebx
mov eax, dword [edi + 0x278]
cmp eax, ebx
je 0x490f02
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
mov eax, dword [edi + 0x278]
cmp eax, ebx
je 0x490f02
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x278], ebx
mov esi, dword [edi + 0x344]
cmp esi, ebx
je 0x490f39
call fcn.004fb070
cmp dword [esi + 0x80], ebx
jne 0x490f2a
mov eax, dword [esi]
cmp eax, ebx
je 0x490f2a
push eax
call fcn.004fe90e
add esp, 4
mov dword [esi], ebx
push esi
call fcn.004fe90e
add esp, 4
mov dword [edi + 0x344], ebx
lea esi, [edi + 0x360]
push 0x566c94
push esi
call fcn.00411320
add esp, 8
test al, al
je 0x490f5a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x1ec]
push ebx
push ebx
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop ebx
pop ecx
ret
Function at 0x4912c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x549c40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
push str.DosDevices_
lea ecx, [esp + 0x1c]
call fcn.00405ee0
lea ecx, [ebp + 0x360]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x30], 0
call fcn.00411120
add esp, 0xc
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49133d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
lea esi, [eax + eax + 2]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fe909
mov edi, eax
add esp, 4
test edi, edi
jne 0x491392
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x49138b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x491422
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
lea edx, [eax + 1]
test edx, edx
je 0x4913b5
cmp edx, 0x7fffffff
ja 0x4913b5
push ecx
mov eax, DirectSoundCreate
mov ecx, edi
call fcn.0045d370
mov edx, dword [0x56626c]
mov ecx, dword [ebp + 0xa4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x566270]
mov dword [eax + 4], edx
mov edx, dword [0x566274]
push esi
mov dword [eax + 8], edx
mov edx, dword [0x566278]
push 0x1c
push ecx
mov ecx, 1
mov dword [eax + 0xc], edx
call fcn.00422be0
add esp, 0x1c
push edi
mov esi, eax
call fcn.004fe90e
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x491420
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4974a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0x2001f
push 0
push str.SOFTWARERealtekAudioWOV
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x497553
push esi
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push 0
push str.EnableDefaultKeyword
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x497522
cmp dword [esp + 0x10], 4
jne 0x497522
cmp dword [esp + 8], eax
je 0x497522
test esi, esi
je 0x497518
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x10
ret
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.EnableDefaultKeyword
push esi
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x49754c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x497d30
Capabilities:
Print debug messages

Disassembly:
push ecx
cmp dword [ecx], 0
mov eax, 1
je 0x497d74
mov eax, dword [ecx + 8]
push esi
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x10]
mov dword [esp + 8], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
test esi, esi
jl 0x497d66
cmp dword [esp + 4], 0
je 0x497d73
push str._ZZ__HWKWS::SetDefaultKeywordEnable___fail_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
pop esi
pop ecx
ret 4
Function at 0x4999a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x545056
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 esi
call fcn.004b9160
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CMicSetting.0
call fcn.005081a0
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4999f2
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 + 0x15c], eax
push edi
push 0x566c94
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 1
call fcn.004062a0
push 0x80
lea ecx, [esi + 0x7c]
push edi
push ecx
mov dword [esi + 0x14], 2
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x164], edi
mov dword [esi + 0x168], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
call fcn.00526c60
push 0x44
lea edx, [esi + 0xfc]
push edi
push edx
call fcn.00526c60
xor eax, eax
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], eax
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], eax
mov word [esi + 0x154], ax
mov dword [esi + 0x158], edi
mov dword [esi + 0x194], edi
mov dword [esi + 0x198], edi
mov dword [esi + 0x19c], edi
mov dword [esi + 0x160], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x16c], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x174], eax
mov dword [esi + 0x178], eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], eax
add esp, 0x18
mov dword [esi + 0x184], eax
mov dword [esi + 0x188], eax
push 0xb
mov dword [esi + 0x18c], eax
push 0x57cf4c
lea ecx, [esi + 4]
mov dword [esi + 0x190], eax
call fcn.004062a0
mov dword [esi + 0x170], 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 0x49b890
Capabilities:
Resume thread

Disassembly:
sub esp, 0x1c
push esi
push edi
mov esi, eax
xor edi, edi
xor eax, eax
cmp dword [esi + 0x70], edi
je 0x49b9df
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ebp
mov eax, esi
mov dword [esp + 0xc], edi
mov dword [esi + 0x194], edi
call fcn.0049b9f0
mov ecx, dword [esi + 0x198]
imul ecx, dword [esi + 0x14c]
mov eax, 0x10624dd3
mul ecx
mov eax, dword [esi + 0x70]
shr edx, 6
mov dword [esp + 0x14], edx
push edi
lea edx, [esi + 0x144]
mov dword [esp + 0x20], edx
lea ebp, [esi + 0x74]
push ebp
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x49b992
mov ecx, dword [esi + 0x19c]
add ecx, 1
test ecx, ecx
jle 0x49b949
push ebx
lea ebx, [esi + 0xfc]
mov eax, dword [ebx]
test eax, eax
je 0x49b935
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi + 0x19c]
add edi, 1
add edx, 1
add ebx, 4
cmp edi, edx
jl 0x49b928
pop ebx
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx]
lea edi, [esi + 0x78]
push edi
push 0x56622c
push eax
call edx
test eax, eax
jl 0x49b992
mov edi, dword [edi]
mov edx, dword [esi + 0x19c]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
lea ecx, [esi + 0x7c]
push ecx
push edx
push edi
call eax
test eax, eax
jl 0x49b992
push 0
push 4
push 0
push 0
push esi
push 0x49bac0
call fcn.005093c6
mov edi, eax
test edi, edi
jne 0x49b99b
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
push 2
push 0
push 0
add esi, 0x158
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]
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0
push eax
call edx
xor ecx, ecx
test eax, eax
setge cl
pop ebp
mov eax, ecx
pop edi
pop esi
add esp, 0x1c
ret