joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e5d
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x434a61
call fcn.004118f8
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00402a40
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x409ee5
lea ecx, [ebp - 0x28]
call fcn.00402a40
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.ExtMonitor
call fcn.0040504b
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0040a229
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.004034e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403720
lea ecx, [ebp - 0x28]
call fcn.00403560
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00403720
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409fc4
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040a229
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00403560
push eax
push 0x48
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x409fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x48
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 0xc], edi
test edi, edi
je 0x409fae
test ebx, ebx
je 0x409f9c
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 4
xor ebx, ebx
mov dword [edi + 4], ebx
lea ecx, [edi + 0x14]
mov dword [edi], vtable.NGLogging::CExtMonitorSettings.0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
call fcn.00402a40
mov byte [ebp - 4], 5
lea ecx, [edi + 0x2c]
call fcn.00402a40
mov byte [ebp - 4], 6
mov dword [edi + 0x44], ebx
mov byte [ebp - 4], 3
jmp 0x409f9e
xor ebx, ebx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
inc dword [ecx]
jmp 0x409fb0
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00403720
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403720
mov eax, esi
call fcn.004118a2
ret 4
Function at 0x40b43b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x31c
mov eax, 0x434e51
call fcn.004118f8
mov esi, edx
mov edi, ecx
and dword [ebp - 0x324], 0
mov eax, dword [ebp + 8]
push ecx
push ecx
push 0x29
push str.NGUtils::CFileUtils::EnumerateFiles
push 0x44d834
push dword [0x44d884]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x328], eax
call fcn.00404822
and dword [ebp - 4], 0
mov ecx, edi
call fcn.00402980
test al, al
jne 0x40b606
mov ecx, esi
call fcn.00402980
test al, al
je 0x40b4ac
push edi
lea ecx, [ebp - 0x58]
call fcn.00402d00
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
jmp 0x40b4c0
push ecx
push esi
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0040ad80
pop ecx
pop ecx
push 2
pop ebx
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x324], ebx
call fcn.0040a19e
mov dword [ebp - 4], 4
test bl, 2
je 0x40b4ec
and ebx, 0xfffffffd
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x324], ebx
call fcn.00403720
mov byte [ebp - 4], 5
test bl, 1
je 0x40b506
and ebx, 0xfffffffe
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x324], ebx
call fcn.00403720
lea ecx, [ebp - 0x40]
call fcn.00403560
push eax
push str.Searching_for__s
push 0x35
lea eax, [ebp - 0xd0]
push 0x10
push eax
call fcn.00404b23
add esp, 0x14
lea eax, [ebp - 0x320]
lea ecx, [ebp - 0x40]
push eax
call fcn.00403560
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b5d9
lea eax, [ebp - 0x2f4]
push eax
push str.Found_a_file__s
push 0x3b
lea eax, [ebp - 0xd0]
push 0x10
push eax
call fcn.00404b23
mov ebx, dword [ebp - 0x328]
add esp, 0x14
test byte [ebp - 0x320], 0x10
jne 0x40b5be
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x28]
call fcn.004029e0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.0040ad80
pop ecx
pop ecx
mov byte [ebp - 4], 7
mov ecx, ebx
push eax
call fcn.0040b61b
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.00403720
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00403720
lea eax, [ebp - 0x320]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b56d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40b5fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
push str.No_files_found__fileHandle___d__GetLastError___d
push 0x49
lea eax, [ebp - 0xd0]
push 0x10
push eax
call fcn.00404b23
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403720
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.0040488b
call fcn.004118a2
ret
Function at 0x40c735
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], ebx
mov esi, edi
jmp 0x40c74a
mov ebx, dword [ebp - 4]
add edi, 0x200
test esi, esi
je 0x40c75b
push esi
call fcn.00411879
pop ecx
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041187e
mov esi, eax
pop ecx
test esi, esi
je 0x40c7bc
xor eax, eax
lea ecx, [ebx + 4]
mov word [esi], ax
call fcn.00403560
push eax
push edi
push esi
push 0x442afc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
lea ecx, [edi - 1]
cmp ebx, ecx
jae 0x40c747
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00402990
push esi
call fcn.00411879
xor eax, eax
cmp eax, ebx
pop ecx
sbb eax, eax
neg eax
jmp 0x40c7be
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40da91
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x435494
call fcn.0041192f
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.NGUtils::AFileVersionInfo.0
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.NGUtils::CFileVersionInfo.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x40db67
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40db67
mov byte [ebp - 4], 1
push ebx
call fcn.0041187e
pop ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 4], edi
jmp 0x40db10
cmp dword [esi + 0xc], 0
je 0x40db67
push dword [esi + 0xc]
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40db67
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10]
push eax
push 0x444188
push dword [esi + 0xc]
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x40db55
mov eax, dword [ebp + 8]
shr eax, 2
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 4]
push eax
push 0x44382c
push dword [esi + 0xc]
call edi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041188d
ret 4

Function at 0x40dd80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x40dd90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteW]

Function at 0x40df00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CreateProcessW]

Function at 0x40df50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CreateThread]
Function at 0x40df60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0043322f
add esp, 0x18
pop ebp
ret

Function at 0x40dfc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TerminateThread]

Function at 0x40e0a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]

Function at 0x40e5d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]

Function at 0x40f76d
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x43569a
call fcn.004118f8
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40f88a
cmp byte [ebx + 0x3e], 0
je 0x40f88a
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.00411887
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x40f7b9
xor al, al
jmp 0x40f88c
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0040fa90
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x40f7e9
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.00411887
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x40f81e
sub eax, 1
je 0x40f822
dec eax
sub eax, 1
je 0x40f878
xor bl, bl
jmp 0x40f87a
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x40f832
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x40f85a
cmp eax, 0x10
jae 0x40f841
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0042086a
add esp, 0x10
cmp esi, eax
jne 0x40f81a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x40f878
test esi, esi
jne 0x40f7dd
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004099fc
jmp 0x40f7d7
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004093a0
mov al, bl
jmp 0x40f88c
mov al, 1
call fcn.004118a2
ret

Function at 0x427d14
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004279d7

Function at 0x427d1f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427b58

Function at 0x42bf0d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b87b

Function at 0x42bf18
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bab6
Function at 0x401cc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4146b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x1c]
push 5
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.00406350
lea edi, [esi + 0x94]
mov dword [esp + 0x14], 0
mov ecx, edi
call fcn.00408090
push 0x9c
push 0x11c
push 0xffffff64
push 0xfffffee4
mov ecx, esi
mov byte [esp + 0x24], 1
mov dword [esi], 0x415408
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
call fcn.00405fc0
mov edx, dword [esi + 0x74]
push 0x96
add edx, 0x30
push 0x117
push edx
mov ecx, edi
call fcn.00408560
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.00401e50
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x403c61
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x417530
cmp edx, dword [eax]
je 0x403c83
add eax, 8
inc ecx
cmp eax, 0x4175c0
jl 0x403c74
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x417530]
jne 0x403db1
mov eax, dword [0x419940]
cmp eax, 1
je 0x403d8b
test eax, eax
jne 0x403cb4
cmp dword [0x417488], 1
je 0x403d8b
cmp edx, 0xfc
je 0x403db1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403ceb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004051d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004052c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403d2e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004052c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4157dc
push edi
call fcn.00405700
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004051d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004051e0
lea eax, [ebp - 0xa0]
push 0x4157bc
push eax
call fcn.004051e0
push dword [esi + 0x417534]
lea eax, [ebp - 0xa0]
push eax
call fcn.004051e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405675
add esp, 0x2c
pop edi
jmp 0x403db1
lea eax, [ebp + 8]
lea esi, [esi + 0x417534]
push 0
push eax
push dword [esi]
call fcn.004052c0
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 0x408780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push str.MSGTEXT
mov eax, dword [ebp + 4]
lea edi, [ebp + 0x30]
push 0x65
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40882b
mov eax, dword [ebp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [ebp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x40882b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [eax + ebx - 1]
test cl, cl
je 0x40880e
mov ecx, ebx
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0xff
rep movsb byte es:[edi], byte [esi]
jl 0x4087f8
mov ebx, 0xff
mov esi, dword [esp + 0x10]
mov byte [ebx + ebp + 0x30], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x100
push eax
push edi
call fcn.00405700
add esp, 0xc
mov byte [ebp + 0x12f], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x408ab0
Capabilities:
Find taskbar

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
push edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi], 0x41592c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movsx ecx, ax
push ecx
call fcn.00411f6c
add esp, 4
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
push ebp
cmp ebx, ebp
je 0x408b70
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebp
push 0xa
push edi
mov dword [esi + 0x10], eax
call ebp
push edi
push 0
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
sub eax, edx
cmp eax, ecx
jl 0x408b96
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
sub ecx, edx
add eax, ecx
pop edi
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
push 0xa
push edi
mov dword [esi + 0x10], eax
call ebx
push edi
push ebp
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x408df0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30c
push esi
mov esi, dword [esp + 0x318]
cmp byte [esi], 0
je 0x408e2d
mov al, byte [esi]
movsx ecx, al
sub ecx, 0x2d
je 0x408e27
sub ecx, 4
je 0x408e68
dec ecx
je 0x408e3a
test al, al
je 0x408e28
cmp al, 0x20
je 0x408e28
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x408e19
jmp 0x408e28
inc esi
cmp byte [esi], 0
jne 0x408e03
mov eax, 1
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x408e5e
push esi
call fcn.004124dc
add esp, 4
test eax, eax
je 0x408e5e
push esi
call fcn.004124dc
add esp, 4
test eax, eax
jne 0x408e51
xor eax, eax
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x408f1f
push ebx
push edi
push 0x417958
push esi
call fcn.004122e6
mov edi, eax
add esp, 8
test edi, edi
jne 0x408ea0
push 0x417958
push esi
call fcn.004122e6
mov edi, eax
add esp, 8
test edi, edi
je 0x408e8c
mov ecx, dword [esp + 0x31c]
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
push 0x417954
push edx
call fcn.004122e6
mov ebx, eax
push ebx
call fcn.004122ac
add esp, 0xc
cmp eax, 0xffffffff
je 0x408eec
push edi
push eax
call fcn.00412288
push ebx
call fcn.004122ac
add esp, 0xc
cmp eax, 0xffffffff
jne 0x408ed7
push edi
call fcn.00412232
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push esi
push str._s__2__s
push ecx
call fcn.004121e0
add esp, 0x14
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x30c
ret

Function at 0x409490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 1
call fcn.00409210
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x41795c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4094c5
push esi
call fcn.004097e0
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4094e1
push esi
call fcn.004097e0
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
call fcn.00409240
add esp, 4
test eax, eax
jne 0x40950c
push esi
call fcn.004097e0
add esp, 4
xor eax, eax
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x4098d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4098f4
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x409907
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push esi
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call fcn.00409a80
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x40993a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x409960
mov cx, word [eax + 0xe]
imul ecx, dword [eax + 4]
add ecx, 0x1f
shr ecx, 3
and ecx, 0x1ffffffc
imul ecx, dword [eax + 8]
mov edx, dword [eax + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
lea edi, [ecx + edx*4]
mov ecx, dword [eax]
add edi, ecx
call ebp
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov ebx, eax
test ebx, ebx
jne 0x409991
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [0x419b18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
add esi, edx
mov edx, dword [eax + 0x20]
push ebx
lea edi, [eax + edx*4]
mov edx, dword [eax]
mov eax, ecx
add 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]
call ebp
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret

Function at 0x409e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
and eax, 0xffff
push 0x417f20
mov byte [edi], 0
mov ecx, dword [0x419b1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x409e8c
pop edi
pop esi
ret
mov edx, dword [0x419b1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x409ea3
pop edi
pop esi
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.00405700
add esp, 0xc
mov byte [edi + ebx - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, 1
pop esi
ret
Function at 0x40b390
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0x14]
push edi
lea edi, [esi + 0x14]
xor ebx, ebx
test cl, cl
mov ecx, esi
setne bl
call fcn.0040b330
test ebx, ebx
je 0x40b3ba
inc dword [esi + 0x11c]
mov eax, dword [esp + 0x120]
test eax, eax
jne 0x40b3ca
mov eax, str.IDM_MUSIC
push str.MIDI
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40b46a
mov ecx, dword [esi]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40b46a
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi]
push ebx
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push 0
lea ecx, [esp + 0x20]
push 0x419b14
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x417958
push edi
call fcn.004122e6
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x18]
push ebx
push edx
push 1
push eax
call fcn.004124e7
push ebx
call fcn.00412232
add esp, 0x1c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esi + 8]
push edi
push ecx
mov ecx, esi
call fcn.0040b480
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4