joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b420
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45b4c3
test eax, eax
jbe 0x45b4c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45b4c3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45b46e
xor esi, esi
jmp 0x45b474
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45b49f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0045ed60
add esi, eax
push esi
mov ebx, esi
call fcn.0045ed60
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45b480
pop ebp
test edi, edi
pop edi
jne 0x45b4c3
test ebx, ebx
je 0x45b4c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004611e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x45b5e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45b6fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45b6fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00471d85
mov esi, eax
test esi, esi
je 0x45b6fd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45b6fd
mov ecx, esi
call fcn.0045b570
cmp edi, eax
jge 0x45b6fd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45b683
mov dword [esp + 0x34], 1
jmp 0x45b6de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45b6fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045ab30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x472728
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x472760
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004707df
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004707b7
jmp 0x47276c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x473e1d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473e5f
call fcn.00479b5d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473e5f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473e56
xor eax, eax
jmp 0x473e67
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473e6d
pop edi
pop esi
pop ebx
ret 4

Function at 0x47a08d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47a0bb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47a0d9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00479ff3
jmp 0x47a0d9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47a0d9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00479ff3
test edi, edi
mov eax, edi
jne 0x47a0c3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401460
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.00402650
sub esp, eax
lea eax, [ebp - 0x1018]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1000
lea eax, [ebp - 0x1014]
mov dword [esp], eax
call sym._EnumProcesses_12
sub esp, 0xc
test eax, eax
je 0x40152e
mov eax, dword [ebp - 0x1018]
shr eax, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x401526
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x1014]
cmp eax, dword [ebp + 8]
je 0x401522
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x1014]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401522
mov edx, dword [0x408020]
mov dword [esp + 0xc], 4
lea eax, [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x21
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call edx
sub esp, 0x10
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x4014af
nop
leave
ret

Function at 0x401586
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
call sym._GetForegroundWindow_0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetWindowThreadProcessId_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._SetIoPriorityAllProcessesExcept
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x13c], 0x128
lea eax, [ebp - 0x13c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32First_8
sub esp, 8
test eax, eax
je 0x401653
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x14]
cmp edx, eax
je 0x401624
mov eax, dword [ebp - 0x134]
mov dword [esp + 4], 0x4000
mov dword [esp], eax
call sym._SetPriorityByProcessId
jmp 0x401637
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], pe_overlay
mov dword [esp], eax
call sym._SetPriorityByProcessId
lea eax, [ebp - 0x13c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32Next_8
sub esp, 8
test eax, eax
jne 0x4015ff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x4017c6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
call sym._GetForegroundWindow_0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x140]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetWindowThreadProcessId_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x13c], 0x128
lea eax, [ebp - 0x13c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32First_8
sub esp, 8
test eax, eax
je 0x4018a8
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x140]
cmp edx, eax
je 0x40188c
mov eax, dword [ebp - 0x134]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40188c
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._SetProcessAffinityMask_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
lea eax, [ebp - 0x13c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32Next_8
sub esp, 8
test eax, eax
jne 0x40182f
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x40190e
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x54
call sym.___main
mov dword [esp], str.ntdll.dll
call sym._LoadLibraryA_4
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401952
mov dword [esp], str.Failed_to_load_ntdll.dll
call sym._puts
mov eax, 1
jmp 0x401ab2
mov dword [esp + 4], str.NtSetInformationProcess
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [0x408020], eax
mov eax, dword [0x408020]
test eax, eax
jne 0x40199a
mov dword [esp], str.Failed_to_get_NtSetInformationProcess_function_address
call sym._puts
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FreeLibrary_4
sub esp, 4
mov eax, 1
jmp 0x401ab2
call sym._CalculateAffinityMasks
test eax, eax
jne 0x4019b9
mov dword [esp], str.Failed_to_calculate_affinity_masks__exiting_program.
call sym._puts
mov eax, 1
jmp 0x401ab2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._BackgroundTask_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._WinEventProc_28
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], 3
call sym._SetWinEventHook_28
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401a67
mov dword [esp], str.Error:_Failed_to_set_event_hook__exiting_program.
call sym._puts
mov eax, 1
jmp 0x401ab2
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._TranslateMessage_4
sub esp, 4
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._DispatchMessageA_4
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetMessageA_16
sub esp, 0x10
test eax, eax
jne 0x401a4b
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._UnhookWinEvent_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FreeLibrary_4
sub esp, 4
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x402110
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x40215b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402154
test esi, esi
je 0x402154
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402130
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402340
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402468
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4023ce
cmp eax, 4
jne 0x4023f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4023de
cmp edx, 4
je 0x4023de
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402340
Function at 0x401070
Capabilities:
Create process on windows

Disassembly:
cmp dword [esp + 8], 0x411
jne 0x401092
push 1
push 0
push 0
push 0x40d018
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x406120
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x100
mov ecx, 0x40
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
push str.data.dat
push 0x40dc84
lea eax, [esp + 0xc]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
push 0x40d6b0
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4061a3
mov edx, dword [0x40dc74]
push esi
mov esi, dword [edx + 0x174]
test esi, esi
je 0x406198
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
push 0x178
push esi
call ebx
mov esi, dword [esi + 0x174]
add esp, 0x10
test esi, esi
jne 0x40617f
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop esi
pop edi
add esp, 0x100
ret

Function at 0x4061b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x100
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push edi
push 0x178
call ebp
mov dword [0x40dc74], eax
add esp, 4
mov dword [eax + 0x174], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push str.data.dat
push 0x40dc84
lea eax, [esp + 0x10]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x18]
push 0x40d6bc
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x18
test edi, edi
je 0x406294
push ebx
push esi
push 0x178
call ebp
mov edx, dword [0x40dc74]
add esp, 4
mov dword [edx + 0x174], eax
mov eax, dword [0x40dc74]
mov ebx, eax
mov esi, dword [eax + 0x174]
mov al, byte [edi + 0xc]
test al, 0x10
jne 0x406277
push edi
push 1
push 0x178
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov al, byte [edi + 0xc]
add esp, 0x10
test al, 0x10
jne 0x406277
push 0x178
mov ebx, esi
call ebp
mov dword [esi + 0x174], eax
mov esi, eax
mov al, byte [edi + 0xc]
add esp, 4
test al, 0x10
je 0x406243
push esi
mov dword [ebx + 0x174], 0
call dword [sym.imp.MSVCRT.dll_free]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x100
ret
Function at 0x4065b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x100
mov ecx, 0x40
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
push 0x40dc84
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push str._sSkin.set
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
lea ecx, [esp + 0x14]
push 0x40d6bc
push ecx
call edi
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4066f4
push esi
mov ecx, 0x40
xor eax, eax
mov edi, 0x40e554
push 1
push 0x100
rep stosd dword es:[edi], eax
push 0x40e554
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push 0x40d738
push 0x40e554
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0
push 0
test eax, eax
push 0x40d730
jne 0x40668d
mov edx, dword [0x40dc70]
push edx
call sub.SkinMagic.dll....._Ordinal_1
push str.SKINMAGIC
push 0x40d71c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.SkinMagic.dll....._Ordinal_4
push str.Dialog
call sub.SkinMagic.dll....._Ordinal_8
mov eax, dword [esp + 0x10c]
push str.MainFrame
push eax
call sub.SkinMagic.dll....._Ordinal_5
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
add esp, 0x100
ret
mov ecx, dword [0x40dc70]
push ecx
call sub.SkinMagic.dll....._Ordinal_1
lea edx, [esp + 8]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 8]
push 0x100
push edx
rep stosd dword es:[edi], eax
push 0x40e554
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 8]
push eax
call sub.SkinMagic.dll....._Ordinal_3
push str.Dialog
call sub.SkinMagic.dll....._Ordinal_8
mov ecx, dword [esp + 0x10c]
push str.MainFrame
push ecx
call sub.SkinMagic.dll....._Ordinal_5
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
add esp, 0x100
ret
lea edx, [esp + 8]
push 0x40d6b0
push edx
call edi
add esp, 8
mov esi, eax
mov ecx, 0x40
xor eax, eax
mov edi, 0x40e554
push 0x40d738
rep stosd dword es:[edi], eax
push 0x40e554
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push 1
push 0x100
push 0x40e554
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x40dc70]
add esp, 0x14
push 0
push 0
push 0x40d730
push eax
call sub.SkinMagic.dll....._Ordinal_1
push str.SKINMAGIC
push 0x40d71c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.SkinMagic.dll....._Ordinal_4
push str.Dialog
call sub.SkinMagic.dll....._Ordinal_8
mov ecx, dword [esp + 0x10c]
push str.MainFrame
push ecx
call sub.SkinMagic.dll....._Ordinal_5
pop edi
pop esi
add esp, 0x100
ret
Function at 0x4067a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
mov ecx, 0x40
xor eax, eax
push esi
push edi
lea edi, [esp + 0xc]
push 0x40d6bc
rep stosd dword es:[edi], eax
push str.D:windows.ini
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
lea eax, [esp + 0x10]
push esi
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [esp + 0x28]
add esp, 0x20
sub ecx, eax
add ecx, 0x93a80
jns 0x4067f9
xor ecx, ecx
mov eax, ecx
mov esi, 0x15180
cdq
idiv esi
mov eax, 0x91a2b3c5
mov esi, edx
imul esi
add edx, esi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xc22e4507
push edx
imul ecx
add edx, ecx
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0x14]
push 0x40d750
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x120]
add esp, 0x10
lea eax, [esp + 0xc]
push 0x34
push 0x40d16c
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x406887
mov ecx, dword [0x40dc70]
push 0
push 0x40b150
push esi
push 0x8f
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret

Function at 0x4068c0
Capabilities:
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ecx
push esi
push edi
call fcn.0040b5b0
cmp eax, 1
jne 0x4068d6
pop edi
mov dword [0x40dde0], eax
pop esi
pop ecx
ret
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x40d6bc
push str.D:windows.ini
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x406959
push 0x40d6b0
push str.D:windows.ini
call edi
push 0
mov esi, eax
call dword [sym.imp.MSVCRT.dll_time]
mov dword [esp + 0x14], eax
push esi
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x20
push 6
push str.D:windows.ini
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [0x40dde0], 2
jne 0x406955
mov edx, dword [esp + 0x10]
push 0x4068a0
push 0x1f4
push 0x388
push edx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ecx
ret
push esi
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov edx, dword [esp + 0x20]
add esp, 0x18
sub eax, edx
cmp eax, 0x93a80
jle 0x406996
pop edi
mov dword [0x40dde0], 3
pop esi
pop ecx
ret
mov dword [0x40dde0], 2
jmp 0x40693b
Function at 0x4069c0
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x7a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x80
push esi
call ebx
push 0
mov dword [0x40dc80], esi
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
mov ecx, 0x40
xor eax, eax
mov edi, 0x40dc84
push 0x40dc84
push 0x100
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.004061b0
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push esi
call edi
push eax
call fcn.00406bc0
push esi
call fcn.00408830
mov ebp, dword [sym.imp.USER32.dll_SetTimer]
add esp, 8
push 0x404f20
push 0xc8
push 3
push esi
call ebp
push 0x4069b0
push 0xea60
push 0x20
push esi
call ebp
call fcn.0040ade0
push esi
call fcn.004068c0
add esp, 4
push 0x406
push esi
call edi
push 0x40d7e4
mov edi, eax
push 0xffffffffffffffff
push 0x14a
push edi
call ebx
push 0x40d7d8
push 0xffffffffffffffff
push 0x14a
push edi
call ebx
push str.24
push 0xffffffffffffffff
push 0x14a
push edi
call ebx
push 0x40d7c0
push 0xffffffffffffffff
push 0x14a
push edi
call ebx
push 0x40d7b4
push 0xffffffffffffffff
push 0x14a
push edi
call ebx
push 0x40d7a8
push 0xffffffffffffffff
push 0x14a
push edi
call ebx
push 0x40d79c
push 0xffffffffffffffff
push 0x14a
push edi
call ebx
push 0x40d794
push 0xffffffffffffffff
push 0x14a
push edi
call ebx
mov eax, dword [0x40d6d0]
push 0
push eax
push 0x14e
push edi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetMenu]
push 0
push esi
mov dword [0x40dd84], eax
call dword [sym.imp.USER32.dll_SetMenu]
push esi
call fcn.004065b0
push esi
call fcn.00406b40
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406f40
Capabilities:
Create directory
Delete file
Write file on windows

Disassembly:
sub esp, 0x200
push ebx
mov ebx, dword [esp + 0x208]
push ebp
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x24
push 0x40d668
push 0x40d8b0
push ebx
call ebp
cmp eax, 6
jne 0x4070a4
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x40dc84
lea eax, [esp + 0x14]
push str._smusic
push eax
call esi
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 0x10
lea edx, [esp + 0x10]
push 0x40d894
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
push str.DefautMusic
lea ecx, [esp + 0x18]
push str.Music
push ecx
call fcn.0040ad60
add esp, 0x10
mov ecx, 0x40
xor eax, eax
mov edi, 0x40def8
push 0x40dc84
push 0x40d868
rep stosd dword es:[edi], eax
push 0x40def8
call esi
add esp, 0xc
mov dword [0x40dff8], 0x3e8
call fcn.0040acf0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x110]
push 0x40dc84
lea edx, [esp + 0x114]
push str._sSkin.set
rep stosd dword es:[edi], eax
push edx
call esi
lea eax, [esp + 0x11c]
push 0x40d6b0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x14
mov esi, eax
mov ecx, 0x40
xor eax, eax
mov edi, 0x40e554
push 0x40d738
rep stosd dword es:[edi], eax
push 0x40e554
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push 1
push 0x100
push 0x40e554
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push str.SKINMAGIC
push 0x40d71c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.SkinMagic.dll....._Ordinal_4
push 0
push 0x40d16c
push 0x40d83c
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret