joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404420
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 0x404444
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 0x404457
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.004045e0
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x40448a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4044b0
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 eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
lea edi, [eax + edx*4]
add edi, ecx
call ebp
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
jne 0x4044dc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
jmp 0x4044de
mov ebx, eax
test ebx, ebx
je 0x404513
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [0x41fdd8]
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 0x405450
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x405476
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x1000
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x4054a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x1000
call fcn.00410b80
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x14], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x4054ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 1
call fcn.004058e0
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x41a8d4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x405bd5
push esi
call fcn.00405ef0
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 0x405bf1
push esi
call fcn.00405ef0
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.00405910
add esp, 4
test eax, eax
jne 0x405c1c
push esi
call fcn.00405ef0
add esp, 4
xor eax, eax
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x4065a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x4065c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x318
mov edx, dword [esp + 0x31c]
lea eax, [esp + 0x214]
lea ecx, [esp]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push eax
push ecx
push edx
call fcn.004110f0
add esp, 0x14
lea eax, [esp + 0x224]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ebx
push ebx
push eax
push ecx
push edx
call fcn.00411270
mov al, byte [esp + 0x30]
add esp, 0x14
xor esi, esi
cmp al, bl
je 0x406689
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp esi, 3
jle 0x406658
mov al, byte [esp + esi + 0x1c]
push eax
call fcn.00407120
add esp, 4
test eax, eax
je 0x406658
lea ecx, [esp + 0x120]
mov byte [esp + esi + 0x120], bl
push ecx
call edi
cmp eax, 0xffffffff
jne 0x406658
lea edx, [esp + 0x120]
push ebx
push edx
call ebp
test eax, eax
je 0x40667c
mov al, byte [esp + esi + 0x1c]
mov byte [esp + esi + 0x120], al
mov al, byte [esp + esi + 0x1d]
inc esi
cmp al, bl
jne 0x40661d
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x318
ret

Function at 0x406710
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push esi
push eax
push 0x418368
push 1
push 0
push 0x418278
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x4067ce
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x224]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x418668
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4067c4
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
add esp, 0x210
ret 0x10
Function at 0x4067e0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 2
mov ebx, ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40693e
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x406939
mov edi, 0x41ab80
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x41ab80
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..lnk
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
mov ecx, ebp
push eax
and ecx, 3
push 0x41fdf4
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
call fcn.00406710
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x10
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x10
Function at 0x406980
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push edi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4069a0
xor eax, eax
pop edi
ret 0x10
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4069ce
xor eax, eax
pop edi
ret 0x10
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
pop edi
inc eax
ret 0x10

Function at 0x4069f0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406a15
xor eax, eax
ret 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x406a2e
xor eax, eax
ret 0xc
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x406a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov byte [0x420000], 0
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406a92
xor eax, eax
add esp, 8
ret 0xc
mov edx, dword [esp + 0x14]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push 0x420000
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406aca
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
not eax
and eax, 0x420000
add esp, 8
ret 0xc

Function at 0x406b50
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x408
lea eax, [esp + 4]
push esi
mov esi, ecx
push 0x104
push eax
mov ecx, dword [esi + 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x20c]
lea eax, [esp + 0x10c]
push edx
lea ecx, [esp + 0x310]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call fcn.004110f0
add esp, 0x14
lea ecx, [esp + 0x20c]
lea edx, [esp + 0x10c]
push ecx
push edx
mov ecx, esi
call fcn.00406950
push eax
push str._s_s_s
push 0x41fdf8
call fcn.00410860
add esp, 0x14
push 0x41fdf8
call fcn.004065c0
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 4
push pe_nt_image_headers32
push 0x41fdf8
call esi
push 0
lea eax, [esp + 0xc]
push 0x41fdf8
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push pe_nt_image_headers32
push 0x41fdf8
call esi
mov eax, 0x41fdf8
pop esi
add esp, 0x408
ret
Function at 0x406f20
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 0x406fcb
mov ecx, dword [ebp + 4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 4]
push esi
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x406fcb
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebx + eax - 1]
test cl, cl
je 0x406fae
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 0x406f98
mov ebx, 0xff
mov esi, dword [esp + 0x10]
mov byte [ebp + ebx + 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.00410a30
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 0x408320
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0x14]
xor eax, eax
lea ebp, [esi + 0x14]
push edi
test cl, cl
setne al
mov ecx, esi
mov edi, eax
call fcn.004082c0
test edi, edi
je 0x408347
inc dword [esi + 0x11c]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x408354
mov eax, str.IDM_MUSIC
mov ecx, dword [esi]
push str.MIDI
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x408404
mov edx, dword [esi]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x408404
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x7d00
mov dword [esp + 0x18], eax
jbe 0x4083b0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push ebp
push 0
push 0x41fdf4
push 0x41ad0c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x41ad08
push ebp
call fcn.00410eb0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add esp, 8
mov edi, eax
push edi
push ecx
push 1
push edx
call fcn.00411360
add esp, 0x10
push edi
call fcn.00411070
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 8]
push ebp
push eax
mov ecx, esi
call fcn.00408410
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x408650
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30c
push ebx
push esi
mov esi, dword [esp + 0x31c]
push edi
cmp byte [esi], 0
je 0x4087a0
mov al, byte [esi]
movsx ecx, al
sub ecx, 0x2d
je 0x40868d
sub ecx, 4
je 0x4086d8
dec ecx
je 0x4086a2
test al, al
je 0x40868e
cmp al, 0x20
je 0x40868e
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40867f
jmp 0x40868e
inc esi
cmp byte [esi], 0
jne 0x408669
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x408794
push esi
call fcn.00411350
add esp, 4
test eax, eax
je 0x408794
push esi
call fcn.00411350
add esp, 4
test eax, eax
jne 0x4086c1
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x408794
push 0x41ad08
push esi
call fcn.00410eb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x40870e
push 0x41ad08
push esi
call fcn.00410eb0
mov edi, eax
add esp, 8
test edi, edi
je 0x4086fa
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 0x41ab74
push edx
call fcn.00410eb0
add esp, 8
mov ebx, eax
push ebx
call fcn.004114e0
add esp, 4
cmp eax, 0xffffffff
je 0x408760
push edi
push eax
call fcn.004114b0
add esp, 8
push ebx
call fcn.004114e0
add esp, 4
cmp eax, 0xffffffff
jne 0x408748
push edi
call fcn.00411070
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push esi
push str._s__2__s
push ecx
call fcn.00410860
add esp, 0x10
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
Function at 0x40a460
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40a550
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40a550
mov ecx, dword [esi + 8]
push edi
push ebp
lea eax, [esp + 0xc]
push ebx
mov ebp, 1
push eax
push ecx
mov dword [esi + 0x40], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, edx
sub ebx, ecx
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push ebp
or eax, 0xffffffff
push ebx
sub edx, ebx
push edi
sub eax, edi
push edx
push eax
push ecx
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 8]
mov dword [esi + 0x48], 0
push edx
push 0x40a250
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edx
push ebp
call fcn.004015c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
add esp, 0x10
push eax
push ecx
push edx
push ebp
call fcn.004015c0
add esp, 0x10
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push ebp
push ebx
push edi
push eax
push ecx
push edx
mov dword [esi + 0x48], 1
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
push ebp
push ebp
push eax
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 0x40], ebp
pop ebx
pop ebp
pop edi
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040a100
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
add esp, 0x50
ret 4
Function at 0x40aaa0
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], 0x4181d8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movsx ecx, ax
push ecx
call fcn.004103d0
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 0x40ab60
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 0x40ab86
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
sub ecx, edx
add eax, ecx
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
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 0x40c550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
and eax, 0xffff
push str.WAVE
mov ecx, dword [esi + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c599
mov edx, dword [esi + 0xa4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [esp + 0xc]
test eax, eax
mov dword [esi + edi*4 + 4], eax
je 0x40c599
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + edi*4 + 0x54], eax
pop edi
pop esi
ret 8
Function at 0x411320
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x411337
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411339
xor eax, eax
test eax, eax
je 0x41134a
push eax
call fcn.00414bf0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x411870
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418920
push 0x414e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x421c08], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x421c04], ecx
shl ecx, 8
add ecx, edx
mov dword [0x421c00], ecx
shr eax, 0x10
mov dword [0x421bfc], eax
call fcn.004133f0
test eax, eax
jne 0x4118da
push 0x1c
call fcn.00411a10
add esp, 4
mov dword [ebp - 4], 0
call fcn.00414390
call fcn.00414ad0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4230f4], eax
call fcn.004154f0
mov dword [0x421bd4], eax
test eax, eax
je 0x41190d
mov eax, dword [0x4230f4]
test eax, eax
jne 0x411917
push 0xffffffffffffffff
call fcn.004132a0
add esp, 4
call fcn.00415240
call fcn.00415150
call fcn.00413270
mov esi, dword [0x4230f4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4119f6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x41195e
test al, al
je 0x41195e
and eax, 0xff
push eax
call fcn.004150f0
add esp, 4
test eax, eax
je 0x411938
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411938
cmp byte [esi], 0x22
jne 0x411967
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x411977
cmp al, 0x20
ja 0x411977
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411967
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x411998
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x41199d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004132a0
jmp 0x4119db
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x411967
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4119f6