joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ce350
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x400
mov edi, ecx
jb 0x100ce39c
push str.aVoice___VOICE_COUNT
push 0x8e
push str.C:Blitz3D_winmm_V1.108b_soloud_srccore_soloud_core_voiceops.cpp
lea eax, [ebp - 0xc8]
push str._s__d_:_assert__s__failed._n
push eax
call fcn.100e05e3
add esp, 0x14
lea ecx, [ebp - 0xc8]
push ecx
call ebx
int3
mov al, byte [edi + 8]
test al, al
jne 0x100ce3d0
push str.mInsideAudioThreadMutex
push 0x8f
push str.C:Blitz3D_winmm_V1.108b_soloud_srccore_soloud_core_voiceops.cpp
lea edx, [ebp - 0xc8]
push str._s__d_:_assert__s__failed._n
push edx
call fcn.100e05e3
add esp, 0x14
lea eax, [ebp - 0xc8]
push eax
call ebx
int3
mov eax, dword [edi + esi*4 + 0x50]
lea ecx, [esi + esi*2]
lea edx, [esi + ecx*4]
fld dword [edi + edx*8 + 0x1dec]
fmul dword [eax + 0x4c]
fstp dword [eax + 0x50]
mov esi, dword [edi + esi*4 + 0x50]
pop edi
fld dword [esi + 0x50]
fmul dword [esi + 0x40]
fstp dword [esi + 0x44]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100ce400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x400
mov edi, ecx
jb 0x100ce44c
push str.aVoice___VOICE_COUNT
push 0x96
push str.C:Blitz3D_winmm_V1.108b_soloud_srccore_soloud_core_voiceops.cpp
lea eax, [ebp - 0xc8]
push str._s__d_:_assert__s__failed._n
push eax
call fcn.100e05e3
add esp, 0x14
lea ecx, [ebp - 0xc8]
push ecx
call ebx
int3
mov al, byte [edi + 8]
test al, al
jne 0x100ce480
push str.mInsideAudioThreadMutex
push 0x97
push str.C:Blitz3D_winmm_V1.108b_soloud_srccore_soloud_core_voiceops.cpp
lea edx, [ebp - 0xc8]
push str._s__d_:_assert__s__failed._n
push edx
call fcn.100e05e3
add esp, 0x14
lea eax, [ebp - 0xc8]
push eax
call ebx
int3
mov eax, dword [edi + esi*4 + 0x50]
lea ecx, [esi + esi*2]
lea edx, [esi + ecx*4]
fld dword [edi + edx*8 + 0x1df0]
fmul dword [eax + 0x38]
fstp dword [eax + 0x3c]
mov eax, dword [edi + esi*4 + 0x50]
test byte [eax + 0x10], 4
je 0x100ce4c2
mov eax, 0x15c
mov ecx, dword [edi + esi*4 + 0x50]
add eax, 4
cmp eax, 0x17c
fld dword [eax + ecx - 0x148]
fmul dword [ecx + 0x3c]
fstp dword [eax + ecx - 4]
jl 0x100ce4a6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100ce580
Capabilities:
Create thread

Disassembly:
push esi
push 8
call fcn.100ddb25
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], edx
push 0
push 0
push eax
push 0x100ce5d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x100ce5b4
pop esi
ret
push 4
call fcn.100ddb25
add esp, 4
mov dword [eax], esi
pop esi
ret
Function at 0x100e384e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10114a48
cmp edx, dword [eax]
je 0x100e3870
add eax, 8
inc ecx
cmp eax, 0x10114ad8
jl 0x100e3861
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10114a48]
jne 0x100e399e
mov eax, dword [0x1011e9b4]
cmp eax, 1
je 0x100e3978
test eax, eax
jne 0x100e38a1
cmp dword [0x1011e9b8], 1
je 0x100e3978
cmp edx, 0xfc
je 0x100e399e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100e38d8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100e76c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100dcab0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100e391b
lea eax, [ebp - 0x1a4]
push eax
call fcn.100dcab0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100fb644
push edi
call fcn.100eab20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100e76c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100e76d0
lea eax, [ebp - 0xa0]
push 0x100fb624
push eax
call fcn.100e76d0
push dword [esi + 0x10114a4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100e76d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100eba8e
add esp, 0x2c
pop edi
jmp 0x100e399e
lea eax, [ebp + 8]
lea esi, [esi + 0x10114a4c]
push 0
push eax
push dword [esi]
call fcn.100dcab0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401fd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_AfxGetThread
xor ebx, ebx
cmp eax, ebx
je 0x401ff6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov esi, eax
jmp 0x401ff8
xor esi, esi
push 0x7a120
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x1c], ebp
je 0x402168
push 0x41b098
mov ecx, esi
call fcn.00405050
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x402150
push 2
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_fseek]
push esi
call ebx
push esi
call dword [sym.imp.msvcrt.dll_ftell]
push 0
push 0
push esi
mov dword [esp + 0x2c], eax
call ebx
mov eax, dword [esp + 0x2c]
push esi
push eax
push 1
push ebp
call dword [sym.imp.msvcrt.dll_fread]
mov ecx, dword [esp + 0x3c]
add esp, 0x2c
cmp ecx, eax
jne 0x402150
push esi
call dword [sym.imp.msvcrt.dll_fclose]
mov eax, dword [edi + 0x68]
push 0x41b094
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x402150
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push 1
push ebp
mov ebp, dword [sym.imp.msvcrt.dll_fwrite]
call ebp
mov edi, dword [edi + 0x60]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x30], 0x53
mov dword [esp + 0x35], 0xe8
mov dword [esp + 0x31], 0x140
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax + 0x64]
or ecx, 0xffffffff
xor eax, eax
push 9
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call ebp
push ebx
push 0xe8
lea edx, [esp + 0x54]
push 1
push edx
call ebp
add esp, 0x30
mov ecx, 0x425a00
push ebx
call fcn.00402960
push ebx
push 4
lea eax, [esp + 0x18]
push 1
push eax
call ebp
mov ebp, dword [esp + 0x2c]
add esp, 0x10
mov dword [esp + 0x14], 1
push ebp
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x402960
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.msvcrt.dll_fwrite]
push esi
push edi
mov esi, ecx
xor edi, edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4029b3
mov ecx, dword [esi + 0x2c]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x4029b3
mov edx, dword [eax + edi*4]
push ebx
push 0x989680
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 0x989680
jne 0x4029a0
inc edi
jmp 0x402972
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
push ebx
push eax
push 1
push ecx
call ebp
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x403270
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [esi + 0xac]
mov ecx, dword [esi + 0xa8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xa4]
mov ebx, eax
mov edx, ecx
sub ebp, ebx
mov ebx, dword [esi + 0xb0]
sub ebx, edx
mov dword [esp + 0x18], eax
push ebx
push ebp
push edi
mov dword [esp + 0x20], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x10]
push eax
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0xcc0020
push eax
push ecx
push edi
push ebx
push ebp
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
add esi, 0xd0
push ebx
push ebp
mov ecx, esi
call fcn.0040b170
test eax, eax
je 0x403335
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x24]
push 0
rep stosd dword es:[edi], eax
mov eax, ebx
mov word [esp + 0x36], 0x20
neg eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], 0x28
mov word [esp + 0x34], 1
mov dword [esp + 0x38], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esi + 8]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
push ebx
mov edi, eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
Function at 0x4034d0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
push eax
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40353f
mov edi, dword [edi]
mov dword [esi], 0
push edi
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je 0x403538
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push esi
call edi
push 9
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x4034d4
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
push eax
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40353f
mov edi, dword [edi]
mov dword [esi], 0
push edi
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je 0x403538
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push esi
call edi
push 9
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x403f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x3e8
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov edx, dword [esi + 0x6c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esi + 0x70]
mov dword [esp + 0x2c], eax
sub eax, edi
imul eax, edx
mov edx, ebx
mov dword [esp + 0x20], ecx
sub edx, ecx
mov dword [esp + 0x24], edi
imul edx, ebp
cmp eax, edx
mov dword [esp + 0x28], ebx
jbe 0x403fb7
mov eax, ebx
xor edx, edx
sub eax, ecx
imul eax, ebp
div dword [esi + 0x6c]
mov ecx, eax
mov eax, dword [esp + 0x3c]
sub eax, ecx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push eax
push 0
jmp 0x403fd8
mov eax, dword [esp + 0x3c]
xor edx, edx
sub eax, edi
push 0
imul eax, dword [esi + 0x6c]
div ebp
mov edx, eax
mov eax, ebx
sub eax, edx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
mov edi, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push 0
sub ecx, edi
push 0
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
lea eax, [esi + 0x78]
push edx
push eax
lea eax, [esi + 0x60]
push eax
call fcn.0040be60
add esp, 0x20
test eax, eax
je 0x4040fb
mov edi, dword [esi + 0x84]
mov eax, dword [esi + 0x90]
imul eax, edi
mov ecx, dword [esi + 0x6c]
xor edx, edx
div ecx
mov ebx, dword [esi + 0x88]
mov ebp, dword [esi + 0x70]
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x94]
imul eax, ebx
div ebp
xor edx, edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x98]
imul eax, edi
div ecx
xor edx, edx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x9c]
imul eax, ebx
div ebp
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x18], eax
jbe 0x4040f4
xor ebx, ebx
test edi, edi
jbe 0x4040e9
cmp ebp, dword [esp + 0x10]
jl 0x40409b
cmp ebx, dword [esp + 0x14]
jl 0x40409b
cmp ebp, dword [esp + 0x18]
jge 0x40409b
cmp ebx, dword [esp + 0x1c]
jl 0x4040db
xor eax, eax
mov al, byte [ecx + 2]
add eax, 0x180
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [ecx + 2], al
xor eax, eax
mov al, byte [ecx + 1]
add eax, 0x180
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [ecx + 1], al
xor eax, eax
mov al, byte [ecx]
add eax, 0x180
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [ecx], al
mov edi, dword [esi + 0x84]
add ecx, 4
inc ebx
cmp ebx, edi
jb 0x404083
mov eax, dword [esi + 0x88]
inc ebp
cmp ebp, eax
jb 0x40407d
mov ecx, esi
call fcn.004046c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x404dd0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
lea ebx, [ecx + 0xe0]
push edi
push ebx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x41b540
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x425a00
call fcn.00402660
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x41672b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 0x18], al
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], edi
call fcn.004021c0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x54], edi
mov dword [esi + 0x2c], edi
mov dword [esi], 0x417f14
mov dword [esi + 0x28], 0x10
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x405e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416756
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x417f14
mov dword [esp + 0x14], 1
call fcn.00405f40
xor ebx, ebx
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], bl
call fcn.00402270
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405ea0
Capabilities:
Capture microphone audio

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
push edi
mov eax, ecx
push 0x30000
cdq
and edx, 7
push esi
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 3
mov edi, eax
mov word [esi + 0x10], ax
imul edi, edx
lea eax, [esi + 4]
push 0x405f20
push eax
push 0xffffffffffffffff
mov word [eax], 1
lea eax, [esi + 0x54]
push eax
mov word [esi + 0x14], 0x12
mov dword [esi + 0xc], edi
mov word [esi + 6], 1
mov dword [esi + 8], edx
mov word [esi + 0x12], cx
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x405f01
pop edi
xor eax, eax
pop esi
ret 8
lea ecx, [esi + 0x30]
call fcn.00402280
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
ret 8
Function at 0x405f70
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0x3e8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x405f93
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3e8
ret
mov edx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x1c]
lea ebx, [ebp + 0x18]
mov eax, edx
cmp eax, edx
mov dword [esp + 0x10], edi
je 0x405fc7
mov ecx, 0xf8
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
add eax, 0x3e1
add edi, 0x3e1
cmp eax, edx
mov dword [esp + 0x10], edi
jne 0x405fa6
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push edi
call fcn.00402a00
mov dword [ebx + 8], edi
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 0x28]
test eax, eax
jne 0x405fe4
xor edx, edx
jmp 0x405ffc
mov ecx, dword [ebx + 0xc]
sub ecx, eax
mov eax, 0x83fef803
imul ecx
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, esi
jae 0x40606f
test esi, esi
mov eax, esi
jge 0x406008
xor eax, eax
mov edx, eax
shl edx, 5
sub edx, eax
shl edx, 5
add edx, eax
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 4]
add esp, 4
mov edi, eax
mov eax, dword [ebx + 8]
push edi
push eax
push ecx
mov ecx, ebx
call fcn.00406310
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov edx, esi
mov eax, edi
shl edx, 5
sub edx, esi
add esp, 4
shl edx, 5
add eax, edx
mov ecx, ebx
add esi, eax
mov dword [ebx + 0xc], esi
call fcn.004062e0
mov ecx, eax
mov edx, edi
shl ecx, 5
sub ecx, eax
mov dword [ebx + 4], edi
shl ecx, 5
add edx, ecx
add eax, edx
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x28]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x10], esi
jle 0x4060e1
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 8]
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x18], 0x3c0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 1
push ecx
mov ecx, ebx
call fcn.00406350
mov edx, dword [ebp + 0x1c]
push 0x20
lea eax, [edx + esi]
lea ecx, [eax + 0x21]
mov dword [eax], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x54]
add edx, esi
push edx
push eax
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x28]
inc eax
add esi, 0x3e1
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40607c
mov ecx, dword [ebp + 0x28]
xor ebx, ebx
dec ecx
test ecx, ecx
jle 0x40611d
mov edi, dword [sym.imp.WINMM.dll_waveInAddBuffer]
xor esi, esi
mov eax, dword [ebp + 0x1c]
push 0x20
lea edx, [esi + eax]
mov eax, dword [ebp + 0x54]
push edx
push eax
call edi
mov ecx, dword [ebp + 0x1c]
test eax, eax
mov byte [ecx + esi + 0x20], 1
jne 0x40612b
mov edx, dword [ebp + 0x28]
inc ebx
add esi, 0x3e1
dec edx
cmp ebx, edx
jl 0x4060f3
mov eax, dword [ebp + 0x54]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
test eax, eax
je 0x406138
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3e8
ret
mov eax, 1
pop edi
mov dword [ebp + 0x2c], eax
pop esi
pop ebp
pop ebx
add esp, 0x3e8
ret
Function at 0x407450
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
fld dword [0x417f98]
mov ebx, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
lea esi, [eax + 0x28]
mov edi, 6
mov eax, ecx
add ecx, ebx
cdq
xor eax, edx
sub esi, 8
sub eax, edx
and eax, 0x1ff
xor eax, edx
sub eax, edx
dec edi
fld dword [eax*4 + 0x41ba08]
fmul dword [esi + 8]
faddp st(1)
jne 0x40746b
pop edi
pop esi
pop ebx
ret
Function at 0x4106a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4168ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x28], edi
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov al, byte [esp + 0xb]
mov dword [esi + 0x3c], edi
mov byte [esi + 0x38], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x484c]
mov byte [esp + 0x18], 3
call fcn.004119a0
lea ecx, [esi + 0x60bc]
mov byte [esp + 0x18], 4
call fcn.004119a0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x792c], edi
mov dword [esi + 0x7968], edi
mov dword [esi], 0x418178
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x416948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x418178
mov dword [esp + 0x14], 5
call fcn.00410ff0
lea ecx, [esi + 0x60bc]
mov byte [esp + 0x14], 4
call fcn.00411a50
lea ecx, [esi + 0x484c]
mov byte [esp + 0x14], 3
call fcn.00411a50
mov eax, dword [esi + 0x3c]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x44fa71
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0044faf0
jae 0x44fa7d
xor ecx, ecx
call fcn.0044faf0
jae 0x44faa7
xor eax, eax
call fcn.0044faf0
jae 0x44fab8
mov al, 0x10
call fcn.0044faf0
adc al, al
jae 0x44fa99
jne 0x44fae5
stosb byte es:[edi], al
jmp 0x44fa7e
call fcn.0044fafc
dec ecx
loop 0x44fac4
mov eax, ebp
call fcn.0044fafa
jmp 0x44fae6
lodsb al, byte [esi]
shr eax, 1
je 0x44fb0c
adc ecx, 2
mov ebp, eax
jmp 0x44fae6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0044fafa
cmp eax, 0x7d00
jae 0x44fae4
cmp eax, 0x500
jae 0x44fae5
cmp eax, 0x7f
ja 0x44fae6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x44fa7e
pop ebp
ret 8