joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485083
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4c0bc9
call fcn.004bf97c
sub esp, 0x23c
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax - 8], edi
jne 0x4850a9
xor eax, eax
jmp 0x485212
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push edi
push eax
lea eax, [ebp + 0x14]
mov dword [ebp - 4], edi
call fcn.004017a8
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.0048306f
mov ebx, eax
mov eax, dword [ebp + 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff4
inc bl
cmp eax, dword [0x4e4154]
je 0x4850f3
push eax
call fcn.00401377
test bl, bl
jne 0x485208
cmp dword [ebp - 0x18], edi
je 0x485208
cmp dword [ebp - 0x10], edi
je 0x485208
lea eax, [ebp - 0x248]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x144]
push eax
push edi
push 0x4ce79c
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x485208
or dword [ebp - 0x40], 0xffffffff
push 0x80
push 2
push 1
lea eax, [ebp - 0x144]
push eax
mov eax, 0xc0000000
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0x1000
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call fcn.0040d226
test eax, eax
lea eax, [ebp - 0x40]
jne 0x485189
call fcn.0040d27c
jmp 0x485208
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0041ccf7
lea eax, [ebp - 0x40]
call fcn.0040d27c
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
push 0xc
call esi
push eax
push 0xb
call esi
mov ebx, dword [ebp + 0xc]
push eax
push ecx
mov eax, esp
mov dword [ebp + 0x14], esp
lea ecx, [ebp - 0x144]
push ebx
mov dword [eax], ecx
call fcn.00485223
push 0x10
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push ecx
mov eax, esp
mov dword [ebp + 0x14], esp
push dword [ebp + 0x10]
lea ecx, [ebp - 0x144]
mov dword [eax], ecx
call fcn.00485223
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
cmp dword [ebx], edi
setne al
mov esi, eax
lea eax, [ebp - 0x40]
call fcn.0040d27c
mov edi, esi
lea esi, [ebp - 0x18]
call fcn.00482e64
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x487754
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xe0], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x48760d
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xd0], eax
je 0x4877be
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [esi + 0xe0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0xd4]
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
jmp 0x4877c3
mov edi, 0x80004005
push dword [esi + 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 0xe0], ebx
pop ebx
leave
ret
Function at 0x489146
Capabilities:
Get file size

Disassembly:
push esi
mov esi, eax
push esi
call fcn.0040d97f
test eax, eax
je 0x489157
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x34]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48917f
xor eax, eax
jmp 0x4891a7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x48917b
cmp edi, 0x400
jae 0x4891a2
xor eax, eax
inc eax
jmp 0x4891a7
mov eax, edi
shr eax, 0xa
pop edi
pop esi
ret
Function at 0x48a8da
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
call fcn.0040405d
mov ecx, eax
lea esi, [ebp - 4]
call fcn.00402f86
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x48a90a
push eax
call fcn.00401377
push dword [ebp + 8]
call fcn.0040d97f
test eax, eax
mov esi, dword [ebp - 4]
jne 0x48a94d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48a94d
test al, 1
je 0x48a94d
push edi
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, eax
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x48a948
push eax
call fcn.00401377
mov eax, edi
pop edi
jmp 0x48a961
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x48a95e
push eax
call fcn.00401377
xor eax, eax
inc eax
pop esi
leave
ret 4

Function at 0x48a966
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, eax
push edi
lea eax, [ebp - 0x18]
call fcn.0040405d
mov ecx, eax
lea esi, [ebp - 4]
call fcn.00402f86
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x48a998
push eax
call fcn.00401377
push edi
lea eax, [ebp - 0x14]
call fcn.00488f45
mov esi, eax
push edi
lea eax, [ebp - 0x10]
call fcn.00488ef5
push dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004031be
push 0x4c91a8
push eax
lea eax, [ebp - 8]
push eax
call fcn.004031be
push esi
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.0040316e
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x48a9e8
push eax
call fcn.00401377
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x48a9fc
push eax
call fcn.00401377
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x48aa10
push eax
call fcn.00401377
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x48aa24
push eax
call fcn.00401377
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x48aa5c
add ebx, 0xfffffff4
cmp ebx, dword [0x4e4154]
je 0x48aa47
push ebx
call fcn.00401377
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x48aa58
push eax
call fcn.00401377
xor eax, eax
jmp 0x48aaa2
mov esi, 0x4e5874
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x34]
lea edi, [ebp + 8]
call fcn.0040301a
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e4154]
je 0x48aa8b
push eax
call fcn.00401377
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x48aa9f
push eax
call fcn.00401377
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x48c48b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x48c4aa
cmp byte [eax], 0
je 0x48c4aa
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48c4aa
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x48e323
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
or dword [ebp - 0x160], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push edi
mov ebx, eax
or eax, 0x4008
push eax
mov edi, 0x160
push edi
lea eax, [ebp - 0x164]
push eax
push 0
push dword [ebp + 8]
call esi
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x160]
mov dword [ebp - 4], eax
je 0x48e38f
or dword [ebp - 0x160], 0xffffffff
or ebx, 0x400a
push ebx
push edi
lea eax, [ebp - 0x164]
push eax
push 0
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x48eb5b
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc

Function at 0x48eb79
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x48eb81
mov eax, dword [esp + 0xc]
push esi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc
Function at 0x48ef7f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4c0b95
call fcn.004bf97c
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4e41a8]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
cmp dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
je 0x48f00e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
cmp edi, 0x400
jg 0x48eff2
push edi
call fcn.0042434b
test al, al
pop ecx
je 0x48eff2
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.004bf900
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x48effc
mov eax, edi
lea esi, [ebp - 0x18]
call fcn.0042f88a
push dword [ebp - 0x14]
mov esi, eax
push edi
push dword [ebp + 0xc]
call fcn.004243a5
cmp eax, ebx
jne 0x48f031
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x48f027
lea eax, [ebp - 0x424]
call fcn.00485b7c
mov edi, 0x8007000e
jmp 0x48f10e
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
jne 0x48f050
call fcn.00419955
mov esi, eax
jmp 0x48f0f3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x48f072
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x48f079
call fcn.00419955
jmp 0x48f0e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
push eax
lea esi, [ebp - 0x424]
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 2
call fcn.00498e36
jmp 0x48f0a6
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], ebx
jne 0x48f0bc
mov esi, 0x8007000e
jmp 0x48f0ea
push edi
push dword [ebp + 8]
push dword [ebp - 0x424]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x424]
add esp, 0xc
push dword [ebp + 0x18]
mov byte [edi + eax], bl
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x20]
call fcn.0048fc1d
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x48f10c
lea eax, [ebp - 0x424]
call fcn.00485b7c
mov edi, esi
lea esi, [ebp - 0x18]
call fcn.0042f8a4
mov eax, edi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x497c0e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_2
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 8], ebp
jne 0x497c3c
xor eax, eax
jmp 0x497c9a
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x497c8e
cmp esi, 0x40
jbe 0x497c8e
push edi
push esi
push edi
push 2
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
cmp ebp, edi
je 0x497c8e
push edi
push edi
push edi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x497c8b
cmp word [edi], 0x5a4d
je 0x497c9e
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
xor esi, esi
push dword [esp + 0x10]
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
add esi, 0xffffffc0
push esi
lea edx, [edi + 0x40]
call fcn.00497bcd
mov esi, eax
movzx eax, word [edi + 0x26]
pop ecx
movzx ecx, word [edi + 0x24]
shl eax, 0x10
or eax, ecx
sub esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
jmp 0x497c90
Function at 0x498446
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov esi, eax
push ebx
push esi
xor edx, edx
call fcn.00490706
call fcn.00427d7e
lea eax, [esi + 0x4c]
push eax
lea edi, [ebp + 8]
call fcn.00402faf
push str.ttpres.dll
mov eax, edi
push eax
call fcn.00403081
push dword [ebp + 8]
call fcn.00497c0e
test eax, eax
pop ecx
jne 0x49849b
push 0x10
push 0x4cd14c
push str.Load_resource__ttpres.dll__failed__please_resetup_this_program_
push ebx
jmp 0x49852f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x3c], eax
je 0x498489
push eax
push 0x4e5348
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x3c]
mov ecx, dword [0x4e4150]
push 0x80
push eax
mov dword [0x4e5994], eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ecx
call fcn.0041cb6c
xor eax, eax
not word [eax + 0x4e520c]
not word [eax + 0x4e5200]
inc eax
inc eax
cmp eax, 8
jl 0x4984d9
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push 0x4e520c
push ebx
call edi
test eax, eax
pop ecx
pop ecx
je 0x49853d
push 0x4e5200
push ebx
call edi
test eax, eax
pop ecx
pop ecx
je 0x49853d
push 0x4e51ec
push ebx
call edi
test eax, eax
pop ecx
pop ecx
je 0x49853d
push 0x10
push 0x4cd14c
push str.Load_resource__ttpres.dll__failed__please_resetup_this_program_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 8]
push 0
push eax
mov eax, ebx
call fcn.00401721
pop ecx
lea ebx, [esi + 0x44]
mov edi, eax
pop ecx
mov eax, ebx
call fcn.0040301a
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x49856c
push eax
call fcn.00401377
push 0x8292
lea eax, [ebp - 8]
call fcn.00408a73
push dword [eax]
add esi, 0x48
push dword [ebx]
push str._s__s
push esi
call fcn.004058d5
mov eax, dword [ebp - 8]
add esp, 0x14
pop edi
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
pop esi
pop ebx
je 0x4985a5
push eax
call fcn.00401377
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4985b9
push eax
call fcn.00401377
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4985cd
push eax
call fcn.00401377
xor eax, eax
leave
ret 4
Function at 0x49894d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [0x4e59c4]
test esi, esi
je 0x498a0c
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x498a0c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [esi + 0xc]
push edi
push dword [eax]
lea edi, [ebp - 4]
call fcn.00402faf
call fcn.00498155
mov esi, dword [ebp - 4]
cmp dword [esi - 8], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x4989d5
mov eax, dword [ebp + 8]
push 0x4cf2ec
call fcn.00490a1a
test eax, eax
jne 0x4989bb
mov eax, dword [ebp + 8]
push 0x4cf2ec
call fcn.00490a1a
test eax, eax
je 0x4989be
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [esi - 8]
inc eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x4a
push ebx
mov dword [ebp - 8], esi
call edi
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xf120
push 0x112
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esi, 0xfffffff4
cmp esi, dword [0x4e4154]
pop edi
pop ebx
je 0x498a07
push esi
call fcn.00401377
xor eax, eax
inc eax
jmp 0x498a0e
xor eax, eax
pop esi
leave
ret
Function at 0x498a11
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call sub.ttpcomm.dll_Ordinal_1
mov ecx, 0x50201
cmp eax, ecx
je 0x498a44
push 0x10
push 0x4cd14c
push str.Error_in_ttpcomm.dll__please_resetup_this_program_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x498be3
cmp dword [0x4e59b8], 0
je 0x498ba5
mov edi, dword [0x4e59c4]
test edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
je 0x498a81
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ecx
push edi
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [edi + 4]
push eax
call esi
call ebx
push eax
add edi, 8
push edi
call esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push str.WinMain
mov dword [0x4e2b0c], eax
call ebx
push eax
call fcn.00403fcf
pop ecx
pop ecx
xor esi, esi
push esi
call sub.ole32.dll_OleInitialize
mov eax, 0x781
call fcn.00432ecd
push dword [ebp + 8]
mov edi, 0x4e5bd8
mov eax, edi
call fcn.00498446
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.ttpcomm.dll_Ordinal_3
lea eax, [ebp + 8]
push esi
push eax
mov eax, 0x4e5c24
call fcn.00401809
add esp, 0xc
push str.AddIn
lea eax, [ebp + 8]
push eax
call fcn.0041dd42
push esi
mov esi, dword [ebp + 8]
push esi
mov ebx, 0x4e6330
push ebx
call fcn.004a1b7c
test eax, eax
mov dword [ebp - 4], eax
jge 0x498b36
mov esi, edi
call fcn.004985d3
call sub.ole32.dll_OleUninitialize
push 0x10
push dword [0x4e5c1c]
push str.Sound_Library_init_failed__the_player_can_not_run_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x498ba0
push eax
call fcn.00401377
jmp 0x498ba0
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x498b47
push eax
call fcn.00401377
mov esi, 0x4e5d3c
call fcn.00490f5b
call sub.ttpcomm.dll_Ordinal_200
push dword [ebp + 0x10]
mov ecx, edi
call fcn.004985f6
mov esi, 0x4e59b8
mov dword [ebp - 4], eax
call fcn.00490cc3
call sub.ttpcomm.dll_Ordinal_201
mov esi, 0x4e5d3c
call fcn.00490fa8
mov eax, ebx
call fcn.004a1f2c
mov esi, edi
call fcn.004985d3
call sub.ole32.dll_OleUninitialize
mov eax, dword [0x4e2b0c]
cmp eax, 0xffffffff
je 0x498ba0
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [ebp - 4]
jmp 0x498be3
lea eax, [ebp - 0x14]
call fcn.0045dcee
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
call fcn.0049090b
push 0x1388
push dword [0x4e59bc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x498bd8
lea eax, [ebp - 0x14]
push eax
call fcn.0049894d
pop ecx
lea eax, [ebp - 0x14]
call fcn.004908b7
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4990a6
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp dword [0x4e664c], ebx
push esi
push edi
jne 0x49920e
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x12c], bl
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 1
push Ordinal_2
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x20], edi
je 0x499164
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x499235
cmp eax, 0x40
jbe 0x499235
push ebx
push eax
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x499235
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x49916b
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
jmp 0x499230
mov eax, dword [esi + 0x3c]
and dword [ebp - 8], 0
lea ebx, [eax + esi + 4]
xor eax, eax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x1c], 0x7b2
mov word [ebp - 0x1a], 1
mov word [ebp - 0x16], 1
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov edx, 0x989680
mul edx
add ecx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
adc edi, edx
push eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x1c]
mov dword [0x4e664c], eax
movzx eax, word [ebp - 0x1a]
mov dword [0x4e6648], eax
movzx eax, word [ebp - 0x16]
push esi
mov dword [0x4e6644], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [0x4e664c]
mov dword [eax], ecx
mov eax, dword [0x4e6648]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x4e6644]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x499164
Function at 0x499c5a
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x4e4150]
push esi
mov dword [ebp - 4], eax
push 0x26
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x499cba
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
cmp eax, esi
pop ecx
pop ecx
je 0x499cba
push str.Program_Files
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
call fcn.0040305d
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00402f86
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
pop esi
je 0x499ce9
push eax
call fcn.00401377
mov eax, dword [ebp + 8]
leave
ret

Function at 0x499d51
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword [0x4e4150]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
test esi, esi
jle 0x499d91
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 4]
call fcn.004030e2
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, esi
lea ecx, [ebp - 4]
call fcn.0040310e
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00402f86
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
pop esi
je 0x499db1
push eax
call fcn.00401377
mov eax, dword [ebp + 8]
leave
ret

Function at 0x499fec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
push ebp
push ebp
push 0x1037
push edi
call esi
mov ebx, 0x100
or eax, ebx
push eax
push ebp
push 0x1036
push edi
call esi
mov esi, dword [sym.imp.COMCTL32.dll_FlatSB_SetScrollProp]
push ebp
push 0xd
push 8
push edi
call esi
push ebp
push 0xd
push 1
push edi
call esi
push ebp
push 0xd
push 2
push edi
call esi
push ebp
push 0xd
push 4
push edi
call esi
inc ebp
push ebp
push ebp
push 0x200
push edi
call esi
push ebp
push ebp
push ebx
push edi
call esi
pop esi
pop ebp
pop ebx
ret