joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4afd53
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x44]
lea eax, [edi + 0x1c]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add edi, 4
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x3c], 0
mov eax, dword [esi + 8]
mov ecx, eax
shr ecx, 1
and cl, 1
and eax, 0xfffffffd
mov byte [esp + 0x17], cl
mov dword [esi + 8], eax
cmp dword [esi + 0x74], 0
jne 0x46b63e
push 0x14
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x3c], 1
test eax, eax
je 0x46b607
mov ecx, dword [esi + 4]
push 0x2000
push ecx
mov ecx, eax
call fcn.00479a70
jmp 0x46b609
xor eax, eax
mov byte [esp + 0x3c], 0
test eax, eax
mov ebx, eax
mov dword [esp + 0x18], ebx
jne 0x46b6af
push 0x4b8394
push str.FCWaveChannel___decode__
lea ecx, [esp + 0x30]
call fcn.0041d2a0
push 0x4ce1fc
lea ecx, [esp + 0x2c]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov ebp, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
add edx, ebp
cmp ebp, edx
jbe 0x46b650
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x70]
add eax, dword [esi + 0x74]
mov edi, ebp
mov ebx, ebp
shr edi, 2
and ebx, 3
cmp ebp, eax
jb 0x46b66a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x6c]
cmp eax, edi
ja 0x46b673
sub edi, eax
mov ecx, dword [esi + 0x68]
mov edx, dword [ecx + edi*4]
mov eax, dword [esi + 0x74]
test eax, eax
mov ebx, dword [edx + ebx*4]
mov dword [esp + 0x18], ebx
je 0x46b6af
mov edx, dword [esi + 0x6c]
add dword [esi + 0x70], 1
mov ecx, dword [esi + 0x70]
add edx, edx
add edx, edx
cmp edx, ecx
ja 0x46b6a0
mov dword [esi + 0x70], 0
add eax, 0xffffffff
mov dword [esi + 0x74], eax
jne 0x46b6af
mov dword [esi + 0x70], 0
push ebx
mov ecx, esi
call fcn.0046b220
test al, al
je 0x46b6cd
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x78]
call fcn.0046aa70
jmp 0x46b5d8
test ebx, ebx
je 0x46b6e1
mov ecx, ebx
call fcn.00479ab0
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esp + 0x17], 0
je 0x46b6ec
or dword [esi + 8], 2
mov dword [esp + 0x3c], 0xffffffff
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x46b720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4afd78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x18]
xor ebx, ebx
xor al, al
cmp ecx, dword [esp + 0x28]
jne 0x46b86d
mov edx, dword [esi + 8]
shr edx, 2
test dl, 1
je 0x46b81b
mov ecx, esi
call fcn.00469c30
test al, al
je 0x46b81b
lea eax, [esi + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.00409490
mov dword [esp + 0x20], ebx
cmp dword [esi + 0x88], ebx
je 0x46b7df
lea edi, [esi + 0x78]
lea ebp, [esi + 0x64]
mov ecx, edi
call fcn.00471320
mov ecx, dword [eax]
mov eax, dword [edi + 0x10]
cmp eax, ebx
mov dword [esp + 0x28], ecx
je 0x46b7cb
mov edx, dword [edi + 8]
add dword [edi + 0xc], 1
mov ecx, dword [edi + 0xc]
add edx, edx
add edx, edx
cmp edx, ecx
ja 0x46b7be
mov dword [edi + 0xc], ebx
add eax, 0xffffffff
cmp eax, ebx
mov dword [edi + 0x10], eax
jne 0x46b7cb
mov dword [edi + 0xc], ebx
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.0046aa70
cmp dword [esi + 0x88], ebx
jne 0x46b795
mov dword [esp + 0x20], 0xffffffff
mov edi, dword [esp + 0x14]
lea ecx, [edi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
and dword [esi + 8], 0xbbffffff
push 8
mov ecx, esi
call fcn.0046b420
jmp 0x46b86b
add dword [esi + 0x40], 1
mov ecx, dword [esi + 0x40]
mov edi, dword [esi + 0x3c]
cmp ecx, edi
jl 0x46b845
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov dword [esi + 0x24], ecx
mov ecx, esi
mov dword [esi + 0x28], edx
call fcn.00469c30
mov ecx, esi
call fcn.00469c20
jmp 0x46b86b
mov ebp, dword [esi + 0x2c]
mov eax, dword [esi + 0x34]
sub eax, ebp
imul eax, ecx
cdq
idiv edi
add eax, ebp
mov ebp, dword [esi + 0x30]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x38]
sub eax, ebp
imul eax, ecx
cdq
idiv edi
add eax, ebp
mov dword [esi + 0x28], eax
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x46bcf0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x46bd14
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0x10
Function at 0x46bd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x28]
xor esi, esi
test eax, eax
je 0x46bd87
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push eax
call ebp
test eax, eax
jne 0x46bd7d
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x46bd7f
mov eax, dword [edi + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push 0
push ebx
push eax
call ebp
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 8
pop edi
mov eax, esi
pop esi
pop ecx
ret 8

Function at 0x46bf40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4afe91
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esi], vtable.FCCd.0
xor ebx, ebx
mov dword [esi + 0xc], vtable.FCThread.0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea edi, [esi + 0x20]
mov dword [edi], vtable.FCEvent.0
mov dword [edi + 4], ebx
mov byte [esp + 0x20], 1
lea ebp, [esi + 0x44]
mov ecx, ebp
mov dword [ebp], vtable.FCString.0
call fcn.00439660
push ebx
push 0x100
mov ecx, ebp
call fcn.0041d850
mov byte [esp + 0x20], 2
mov eax, dword [edi]
mov edx, dword [eax + 4]
or ebp, 0xffffffff
push 1
push 1
mov ecx, edi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0x40], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
call edx
mov dword [esp + 0x20], ebp
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x46c8b0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4aff08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0x778]
lea edi, [esi + 0x1c]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ebp, [esi + 4]
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [esp + 0x40], esi
cmp dword [ebx + 0x5c], esi
je 0x46ca3f
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.FCString.0
call fcn.00439660
push str.len:
push 0x100
lea ecx, [esp + 0x28]
call fcn.0041d850
mov byte [esp + 0x40], 1
mov ebp, dword [esp + 0x48]
mov edi, dword [ebp + 4]
push 0x20
push esi
push 0xa
push edi
lea ecx, [esp + 0x30]
call fcn.0041e3f0
push str._code:
lea ecx, [esp + 0x24]
call fcn.0041d9f0
cmp edi, 0x14
mov esi, dword [ebp]
jb 0x46c968
mov edi, 0x14
test edi, edi
jbe 0x46c999
lea esp, [esp]
movsx eax, byte [esi]
push 0x30
push 2
push 0x10
push eax
lea ecx, [esp + 0x30]
call fcn.0041e3f0
push 0x4bbb00
lea ecx, [esp + 0x24]
add esi, 1
call fcn.0041d9f0
sub edi, 1
jne 0x46c970
push 0x4b2c0c
lea ecx, [esp + 0x24]
call fcn.0041d9f0
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call edi
mov ecx, dword [ebx + 0x5c]
push 0x40
push ebp
push ecx
call dword [sym.imp.WINMM.dll_midiOutLongMsg]
mov esi, eax
test esi, esi
je 0x46ca29
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.FCString.0
call fcn.00439660
push str.long_message_error:_error__0x
push 0x100
lea ecx, [esp + 0x34]
call fcn.0041d850
mov byte [esp + 0x40], 2
push 0x30
push 4
push 0x10
push esi
lea ecx, [esp + 0x3c]
call fcn.0041e3f0
push 0x4b2c0c
lea ecx, [esp + 0x30]
call fcn.0041d9f0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
push eax
call edi
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x2c]
call fcn.0041d940
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x20]
call fcn.0041d940
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x40], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
Function at 0x46ca70
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4aff48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x778]
lea ebx, [edi + 0x1c]
push ebx
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add edi, 4
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov dword [esp + 0x30], edi
cmp dword [esi + 0x5c], edi
je 0x46cbcc
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0046c2d0
test eax, eax
je 0x46cb65
mov ebp, dword [esp + 0x38]
mov ecx, dword [esi + 0x5c]
push ebp
push ecx
call dword [sym.imp.WINMM.dll_midiOutShortMsg]
mov edi, eax
test edi, edi
je 0x46cbcc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.FCString.0
call fcn.00439660
push str.short_message_error:_error__0x
push 0x100
lea ecx, [esp + 0x24]
call fcn.0041d850
mov byte [esp + 0x30], 1
push 0x30
push 4
push 0x10
push edi
lea ecx, [esp + 0x2c]
call fcn.0041e3f0
push str.code:_0x
lea ecx, [esp + 0x20]
call fcn.0041d9f0
push 0x30
push 4
push 0x10
push ebp
lea ecx, [esp + 0x2c]
call fcn.0041e3f0
push 0x4b2c0c
lea ecx, [esp + 0x20]
call fcn.0041d9f0
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x14]
jmp 0x46cbb7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.FCString.0
call fcn.00439660
push str.scan_error_:_code__0x
push 0x100
lea ecx, [esp + 0x24]
call fcn.0041d850
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x38]
push 0x30
push 4
push 0x10
push eax
lea ecx, [esp + 0x2c]
call fcn.0041e3f0
push 0x4b2c0c
lea ecx, [esp + 0x20]
call fcn.0041d9f0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x1c]
call fcn.0041d940
mov dword [esp + 0x30], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x46f180
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b0306
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esi + 0x18]
mov dword [esi], vtable.FCVSurface24.0
xor edi, edi
push eax
mov dword [esi + 0x14], vtable.FCCriticalSection.0
mov dword [esi + 0x30], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x18], edi
lea ecx, [esi + 0x34]
push 1
push edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00424070
mov byte [esp + 0x18], 1
mov ecx, esi
call fcn.00451fe0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edi
push edx
mov ecx, esi
call fcn.0044f7e0
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x46f3d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b0351
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esi + 0x14]
mov dword [esi], vtable.FCVSurface.0
xor edi, edi
push eax
mov dword [esi + 0x10], vtable.FCCriticalSection.0
mov dword [esi + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x18], edi
lea ecx, [esi + 0x30]
push 1
push edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00424070
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x78]
push ecx
mov dword [esi + 0x74], vtable.FCRect.0
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov byte [esp + 0x18], 2
mov ecx, esi
call fcn.00424160
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push edi
push eax
mov ecx, esi
call fcn.00430ab0
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x4704a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b05d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d92d4]
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.FCWaveDecoder_V.0
mov dword [esp + 0x14], 1
call fcn.00470490
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x30]
call fcn.00460810
mov dword [esp + 0x14], 0xffffffff
mov ecx, esi
call fcn.00470340
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4707a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b0663
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004702e0
xor edi, edi
mov dword [esp + 0x18], edi
lea ecx, [esi + 0x30]
mov dword [esi], vtable.FCWaveDecoder_V.0
call fcn.00460650
mov byte [esp + 0x18], 1
mov ecx, esi
mov dword [esi + 0x70], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
call fcn.00470510
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4b07a9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.FCWaveDecoder_VORBIS.0
mov dword [esp + 0x18], 3
call fcn.00470f90
mov ecx, esi
call fcn.004714d0
mov al, 2
mov byte [esp + 0x18], al
lea ecx, [esi + 0x70]
mov dword [esp + 0xc], ecx
mov byte [esp + 0x18], al
call fcn.00471250
mov al, 1
mov byte [esp + 0x18], al
lea ecx, [esi + 0x5c]
mov dword [esp + 0xc], ecx
mov byte [esp + 0x18], al
call fcn.00471250
mov byte [esp + 0x18], 0
lea ecx, [esi + 0x30]
call fcn.00460810
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
call fcn.00470340
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x471730
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b0814
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d92d4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call fcn.004702e0
xor ebx, ebx
mov dword [esp + 0x24], ebx
lea ecx, [esi + 0x30]
mov dword [esi], vtable.FCWaveDecoder_VORBIS.0
call fcn.00460650
mov byte [esp + 0x24], 1
lea edi, [esi + 0x5c]
mov eax, edi
mov dword [esp + 0x14], eax
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [esp + 0x24], 3
lea eax, [esi + 0x70]
mov dword [esp + 0x14], eax
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [esp + 0x24], 5
mov byte [esi + 0x84], bl
mov byte [esi + 0x85], bl
lea ebp, [ebx + 4]
lea esp, [esp]
push 0xc
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], 6
cmp eax, ebx
je 0x4717e0
mov ecx, eax
call fcn.004710d0
jmp 0x4717e2
xor eax, eax
mov byte [esp + 0x24], 5
mov dword [esp + 0x14], eax
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00471610
sub ebp, 1
jne 0x4717c0
mov dword [esp + 0x24], 0xffffffff
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
Function at 0x472c80
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov eax, dword [esp + 8]
test eax, 0x100000
push ebp
push esi
mov esi, dword [esp + 0xc]
je 0x472ca7
mov ecx, eax
shr ecx, 0x13
not ecx
and ecx, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0
jmp 0x472cb5
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 1
mov edx, eax
shr edx, 0x11
mov ecx, eax
shr ecx, 0xa
and edx, 3
mov ebp, 4
sub ebp, edx
and ecx, 3
cmp ecx, 3
mov dword [esi + 0x18], ebp
jne 0x472ce7
push str.Stream_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
call dword [sym.imp.MSVCR80.dll_exit]
mov edx, dword [esi + 0x10]
test edx, edx
push edi
je 0x472cf4
add ecx, 6
jmp 0x472cfc
mov edi, dword [esi + 0xc]
lea ecx, [ecx + edi*2]
add ecx, edi
mov dword [esi + 0x24], ecx
mov ecx, eax
shr ecx, 0x10
not ecx
and ecx, 1
test edx, edx
mov dword [esi + 0x1c], ecx
je 0x472d1b
mov edx, eax
shr edx, 0xc
and edx, 0xf
mov dword [esi + 0x20], edx
push ebx
mov ebx, eax
shr ebx, 4
and ebx, 3
mov dword [esi + 0x34], ebx
mov ecx, eax
shr ecx, 8
mov ebx, eax
shr ebx, 3
and ecx, 1
and ebx, 1
mov edx, eax
mov edi, eax
mov dword [esi + 0x2c], ecx
mov ecx, eax
mov dword [esi + 0x38], ebx
mov ebx, eax
and eax, 3
shr ecx, 6
shr edx, 0xc
shr edi, 9
shr ebx, 2
and ecx, 3
and edx, 0xf
and edi, 1
and ebx, 1
mov dword [esi + 0x40], eax
xor eax, eax
cmp ecx, 3
setne al
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], ecx
mov dword [esi + 0x3c], ebx
add eax, 1
test edx, edx
mov dword [esi], eax
jne 0x472d94
push str.Free_format_not_supported._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
mov eax, ebp
sub eax, 1
je 0x472df6
sub eax, 1
je 0x472df6
sub eax, 1
je 0x472db9
push str.Sorry__unknown_layer_type._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
mov ecx, dword [esi + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, edx
mov eax, dword [eax*4 + 0x4c0080]
mov edx, dword [esi + 0x24]
imul eax, eax, 0x23280
mov dword [esi + 0x44], eax
mov ebx, dword [edx*4 + 0x4bffd8]
shl ebx, cl
cdq
idiv ebx
pop ebx
lea eax, [eax + edi - 4]
pop edi
mov dword [esi + 0x44], eax
pop esi
mov eax, 1
pop ebp
ret 8
push str.Not_supported__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret 8
Function at 0x4741a0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ecx
xor eax, eax
cmp dword [esp + 0x18], 3
push ebx
setne al
push esi
push edi
push 8
mov edi, ecx
sub eax, 1
and eax, 4
mov dword [esp + 0x10], eax
call fcn.00472e10
mov ebx, dword [esp + 0x18]
cmp ebx, 1
mov esi, dword [esp + 0x14]
mov dword [esi], eax
mov ecx, edi
jne 0x4741d9
call fcn.004733f0
jmp 0x4741e0
push 2
call fcn.00472e70
test ebx, ebx
mov dword [esi + 4], eax
mov dword [esp + 0x24], 0
jle 0x47439b
add esi, 0x10
push ebp
push 0xc
mov ecx, edi
call fcn.00472e10
push 9
mov ecx, edi
mov dword [esi - 4], eax
call fcn.00472e70
cmp eax, 0x120
mov dword [esi], eax
jbe 0x474226
push str.big_values_too_large__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi], 0x120
push 8
mov ecx, edi
call fcn.00472e70
mov ecx, dword [esp + 0x10]
sub ecx, eax
cmp dword [esp + 0x20], 0
lea eax, [edi + ecx*4 + 0xed18]
mov dword [esi + 0x5c], eax
je 0x47424c
add eax, 8
mov dword [esi + 0x5c], eax
push 9
mov ecx, edi
call fcn.00472e10
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004733f0
test eax, eax
je 0x4742fe
push 2
mov ecx, edi
call fcn.00472e70
mov ecx, edi
mov dword [esi + 8], eax
call fcn.004733f0
push 5
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00472e70
push 5
mov ecx, edi
mov dword [esi + 0x10], eax
call fcn.00472e70
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
lea ebx, [esi + 0x50]
mov ebp, 3
push 3
mov ecx, edi
call fcn.00472e70
shl eax, 5
add eax, dword [esi + 0x5c]
add ebx, 4
sub ebp, 1
mov dword [ebx - 4], eax
jne 0x4742a4
mov eax, dword [esi + 8]
test eax, eax
je 0x4743a2
cmp eax, 2
jne 0x4742e1
mov dword [esi + 0x3c], 0x12
mov dword [esi + 0x40], 0x120
jmp 0x47436b
mov edx, dword [esp + 0x24]
sub edx, 8
neg edx
sbb edx, edx
and edx, 0xffffffe5
add edx, 0x36
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], 0x120
jmp 0x47436b
lea ebx, [esi + 0x10]
mov ebp, 3
push 5
mov ecx, edi
call fcn.00472e70
mov dword [ebx], eax
add ebx, 4
sub ebp, 1
jne 0x474306
push 4
mov ecx, edi
call fcn.00472e70
push 3
mov ecx, edi
mov ebx, eax
call fcn.00472e70
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + ecx*8]
add ecx, ecx
add ecx, ecx
add ecx, ecx
lea edx, [ecx + ebx]
mov dx, word [edx*2 + 0x4dc44a]
sar dx, 1
add ecx, eax
movsx edx, dx
add ecx, ebx
mov dword [esi + 0x3c], edx
mov ax, word [ecx*2 + 0x4dc44c]
sar ax, 1
movsx ecx, ax
xor eax, eax
mov dword [esi + 0x40], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, edi
call fcn.004733f0
mov ecx, edi
mov dword [esi + 0x48], eax
call fcn.004733f0
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x28]
add eax, 1
add esi, 0xd0
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
jl 0x4741f7
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 0x14
push 0x4c0698
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
call dword [sym.imp.MSVCR80.dll_exit]
int3