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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0040d7e6
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40d6fe
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40d6f0
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x40d6b4
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x40d6dd
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x40d6ea
cmp byte [ebp - 0x838], bl
je 0x40d6f0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x40d6fe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040d2f6
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x40d723
cmp dword [ebp + 0xc], 4
jne 0x40d74f
cmp dword [ebp - 0x14], ebx
jne 0x40d74f
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x40d73b
mov ecx, edi
call fcn.0040dd01
jmp 0x40d74f
cmp ax, 4
mov ecx, edi
jne 0x40d74a
call fcn.0040dee2
jmp 0x40d74f
call fcn.0040e2b6
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x40dd01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00410c80
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40decf
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x40decf
cmp dword [ebp - 0x14], 1
jne 0x40decf
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40de92
cmp byte [ebp - 0x148], al
je 0x40de92
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40de84
lea eax, [ebp - 0x96c]
push 0x414dbc
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x4146a0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x414600
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x40dde8
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.0040d4cf
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40dedd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ee56
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x40eeb9
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x40eecb
mov eax, dword [esi + 0xdc]
jmp 0x40ef23
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x40ef21
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x40eef9
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x40eed4
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x40f668
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40f6cf
call esi
cmp eax, 0x3f0
jne 0x40f6c2
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x40f6cb
push 1
jmp 0x40f6ee
cmp eax, ebx
je 0x40f6ed
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40f6ed
call esi
cmp eax, 0x7a
je 0x40f6fd
push ebx
push dword [ebp - 4]
call fcn.0040f659
pop ecx
pop ecx
jmp 0x40f7e4
push dword [ebp - 8]
call fcn.0040cf6a
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40f743
push ebx
push dword [ebp - 4]
call fcn.0040f659
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x40f73b
push esi
call fcn.0040cf75
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x40f7e4
lea eax, [ebp - 0xc]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40f78d
push ebx
push dword [ebp - 4]
call fcn.0040f659
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x40f788
push esi
call fcn.0040cf75
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x40f7e4
cmp dword [esi], ebx
mov byte [ebp - 0x10], bl
mov dword [ebp + 8], ebx
jbe 0x40f7bc
lea edi, [esi + 4]
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40f7b8
inc dword [ebp + 8]
add edi, 8
mov eax, dword [ebp + 8]
cmp eax, dword [esi]
jb 0x40f79a
jmp 0x40f7bc
mov byte [ebp - 0x10], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040f659
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x40f7e1
push esi
call fcn.0040cf75
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410692
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x4106d4
lea ecx, [ebp - 4]
call fcn.0040ba4e
mov dword [ebp - 4], esi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x4106f5
lea ecx, [ebp - 8]
call fcn.00405685
mov dword [ebp - 8], esi
cmp dword [ebp - 8], edi
jne 0x410719
cmp dword [ebp - 4], ebx
je 0x4107c8
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jmp 0x4107c1
push edi
push edi
push edi
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x410746
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4107bd
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
jmp 0x4107bd
cmp word [edi], 0x5a4d
jne 0x410776
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4107a3
cmp dword [esi], 0x4550
jne 0x4107a3
push esi
push edi
call fcn.0041064c
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x410789
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], 0
je 0x41079b
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4107b6
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], 0
je 0x4107c8
push dword [ebp - 8]
call esi
xor eax, eax
jmp 0x41079e
Function at 0x4107cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x41081e
push eax
call fcn.0040cf6a
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41081e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x41467c
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x410822
xor al, al
jmp 0x410883
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x410881
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0040cf6a
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x410881
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x41086f
mov al, 1
pop ebx
leave
ret 4
Function at 0x402420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x402442
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
mov ecx, dword [eax + 0x20]
add edx, eax
test ecx, ecx
jne 0x40246a
mov cl, byte [eax + 0xe]
mov esi, 1
shl esi, cl
mov dword [eax + 0x20], esi
mov ecx, dword [eax + 0x20]
xor edi, edi
test ecx, ecx
jle 0x4024bf
mov ebx, 0x41ca39
mov esi, 0x41ca38
sub ebx, edx
mov ebp, esi
mov dword [esp + 0x14], ebx
mov ebx, 0x41ca3a
sub ebp, edx
sub ebx, edx
lea ecx, [edx + 1]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
mov bl, byte [ecx + 1]
inc edi
mov byte [esi], bl
mov bl, byte [ecx]
mov byte [ecx + ebp], bl
mov bl, byte [ecx - 1]
mov byte [edx + ecx], bl
mov ebx, dword [esp + 0x18]
add esi, 4
mov byte [ebx + ecx], 0
mov ebx, dword [eax + 0x20]
add ecx, 4
cmp edi, ebx
jl 0x402499
mov eax, dword [eax + 0x20]
mov ecx, dword [0x4baf40]
push 0x41ca38
push eax
mov edx, dword [ecx]
push 0
push 0
push ecx
call dword [edx + 0x18]
mov ecx, dword [esp + 0x28]
push 0x2000
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov edi, eax
test edi, edi
jne 0x402505
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push edi
push esi
call ebx
mov ebp, eax
mov eax, dword [0x4baf3c]
lea ecx, [esp + 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push 0xcc0020
push 0
push 0
push esi
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [0x4baf3c]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
push ebp
push esi
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, 0x47
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [0x4baf3c]
push ecx
push 8
push eax
mov edx, dword [eax]
call dword [edx + 0x74]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x40ef70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x40f0bd
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40f0bd
push str.WAVE
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40efab
push str.Resource_Reading_Error_n
push eax
call fcn.0040f3a0
add esp, 8
pop esi
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40efc8
push str.Resource_Reading_Error_n
push eax
call fcn.0040f3a0
add esp, 8
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40efe3
push str.Lock_Resource_Failed_n
push eax
call fcn.0040f3a0
add esp, 8
pop esi
ret
cmp dword [eax], 0x46464952
je 0x40effc
push str.RIFF_Chunk_Reading_Error_n
push 0
call fcn.0040f3a0
add esp, 8
pop esi
ret
cmp dword [eax + 8], 0x45564157
je 0x40f016
push str.WAVE_Header_Reading_Error_n
push 0
call fcn.0040f3a0
add esp, 8
pop esi
ret
mov ecx, dword [eax + 0xc]
add eax, 0xc
cmp ecx, 0x20746d66
je 0x40f035
push str.Format_Chunk_Reading_Error_n
push 0
call fcn.0040f3a0
add esp, 8
pop esi
ret
cmp word [eax + 8], 1
lea ecx, [eax + 8]
je 0x40f050
push str.Not_a_valid_Wave_Format_n
push 0
call fcn.0040f3a0
add esp, 8
pop esi
ret
mov edx, dword [eax + 4]
lea eax, [eax + edx + 8]
cmp dword [eax], 0x74636166
jne 0x40f062
add eax, 0xc
cmp dword [eax], 0x61746164
je 0x40f07b
push str.Data_Chunk_Reading_Error_n
push 0
call fcn.0040f3a0
add esp, 8
pop esi
ret
push edi
mov edi, dword [ecx]
mov edx, esi
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov edi, dword [ecx + 8]
mov dword [edx + 8], edi
mov edi, dword [ecx + 0xc]
mov dword [edx + 0xc], edi
mov cx, word [ecx + 0x10]
mov dword [esi + 0x1c], 1
pop edi
mov word [edx + 0x10], cx
lea edx, [eax + 8]
mov dword [esi + 0x20], edx
mov eax, dword [eax + 4]
mov dword [esi + 0x18], eax
mov word [esi + 0x10], 0
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40f0d0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.0040f1c0
add esp, 8
test eax, eax
jne 0x40f0ed
pop edi
pop esi
pop ebx
ret
push 0x100
push 0x8000
push edi
call fcn.00410b38
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x40f10d
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x18]
push eax
call fcn.00410a2a
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40f131
push str.Get_WaveMemory_Failed_n
push edi
call fcn.0040f3a0
add esp, 8
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esi + 0x14]
push 0
push ecx
push edi
call fcn.00410a9e
mov edx, dword [esi + 0x18]
push edx
push ebx
push edi
call fcn.00410f0c
mov ecx, dword [esi + 0x18]
add esp, 0x18
cmp ecx, eax
je 0x40f16a
push ebx
call fcn.004109fb
push str.Could_not_read_Wave_Data_n
push edi
call fcn.0040f3a0
add esp, 0xc
pop edi
pop esi
pop ebx
ret
push edi
call fcn.00410e08
add esp, 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], ebx
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x40f1c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
push ebx
push esi
push edi
push 0x100
push 0x8000
push eax
call fcn.00410b38
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x40f1ed
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov esi, dword [esp + 0x50]
mov ecx, 9
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, 0xc
lea ecx, [esp + 0x14]
push edi
push ecx
push ebx
call fcn.00410f0c
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 0x46464952
je 0x40f230
push str.RIFF_Chunk_Reading_Error_n
push ebx
call fcn.0040f3a0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
cmp dword [esp + 0x1c], 0x45564157
je 0x40f24f
push str.WAVE_Header_Reading_Error_n
push ebx
call fcn.0040f3a0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x2c]
push 8
add eax, edi
push edx
push ebx
mov dword [esi + 0x14], eax
call fcn.00410f0c
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
push eax
push ecx
push ebx
call fcn.00410f0c
mov eax, dword [esp + 0x44]
add esp, 0x18
cmp eax, 0x20746d66
je 0x40f297
push str.Format_Chunk_Reading_Error_n
push ebx
call fcn.0040f3a0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
cmp word [esp + 0x34], 1
je 0x40f2b4
push str.Not_a_valid_Wave_Format_n
push ebx
call fcn.0040f3a0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0x14]
add edx, 8
push edi
add eax, edx
mov dword [esi + 0x14], eax
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00410f0c
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x74636166
jne 0x40f315
mov ecx, dword [esi + 0x14]
push 8
add ecx, edi
mov dword [esi + 0x14], ecx
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.00410f0c
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, 0x61746164
je 0x40f33d
push str.Data_Chunk_Reading_Error_n
push ebx
call fcn.0040f3a0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
cmp eax, 0x61746164
je 0x40f331
push str.Data_Chunk_Reading_Error_n
push ebx
call fcn.0040f3a0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x14]
push ebx
add edx, 8
mov dword [esi + 0x14], edx
call fcn.00410e08
mov edx, dword [esp + 0x38]
mov ecx, esi
add esp, 4
xor eax, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x1c], eax
pop edi
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], edx
mov dx, word [esp + 0x40]
mov word [ecx + 0x10], dx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], ecx
mov word [esi + 0x10], ax
pop esi
mov eax, 1
pop ebx
add esp, 0x3c
ret

Function at 0x40f3a0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x100
lea eax, [esp + 0x10c]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.00410ebb
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x104]
test eax, eax
je 0x40f3db
cmp eax, 0xffffffff
je 0x40f3e4
push eax
call fcn.00410e08
add esp, 4
xor eax, eax
add esp, 0x100
ret
Function at 0x415259
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41c110
cmp edx, dword [eax]
je 0x41527b
add eax, 8
inc ecx
cmp eax, 0x41c1a0
jl 0x41526c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41c110]
jne 0x4153a9
mov eax, dword [0x4bbab0]
cmp eax, 1
je 0x415383
test eax, eax
jne 0x4152ac
cmp dword [0x41bb8c], 1
je 0x415383
cmp edx, 0xfc
je 0x4153a9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4152e3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00415b80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411b20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x415326
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411b20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419988
push edi
call fcn.004175c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00415b80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00415b90
lea eax, [ebp - 0xa0]
push 0x419968
push eax
call fcn.00415b90
push dword [esi + 0x41c114]
lea eax, [ebp - 0xa0]
push eax
call fcn.00415b90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00417537
add esp, 0x2c
pop edi
jmp 0x4153a9
lea eax, [ebp + 8]
lea esi, [esi + 0x41c114]
push 0
push eax
push dword [esi]
call fcn.00411b20
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