joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403866
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
push ebx
push esi
push edi
push str.:RepeatDEL___s_if_exist___s__goto_RepeatDEL___s_
lea ecx, [ebp - 0x10]
call fcn.00407ed4
push str._selfdestruct.bat
lea eax, [ebp - 0xc]
push 0x4950a8
push eax
call fcn.00408321
mov edx, dword [0x48be0c]
mov esi, 0x81
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x428]
mov dword [ebp - 0x42c], edx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x220]
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x634], edx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x630]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x224]
mov esi, 0x104
push eax
push esi
call edi
lea eax, [ebp - 0x634]
push eax
push esi
call edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x224]
push eax
call fcn.0046e402
pop ecx
lea eax, [ebp - 0x42c]
pop ecx
xor ebx, ebx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [ebp - 0x42c]
mov ecx, esp
push eax
call fcn.00407ed4
lea eax, [ebp - 8]
push eax
call fcn.0045b906
pop ecx
lea eax, [ebp - 0x224]
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x403a00
push dword [ebp - 0xc]
mov eax, dword [0x481530]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 8]
push dword [ebp - 0x10]
push eax
call fcn.004017cb
add esp, 0x14
lea ecx, [ebp - 4]
push 0x481a5c
push 0x481a54
call fcn.00401b5c
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x403992
xor esi, esi
jmp 0x4039c1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0046d370
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x18]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
push ebx
push ecx
push dword [eax - 8]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x634]
push ebx
push eax
lea eax, [ebp - 0x224]
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.0040139b
lea ecx, [ebp - 8]
call fcn.0040139b
lea ecx, [ebp - 0xc]
call fcn.0040139b
lea ecx, [ebp - 0x10]
call fcn.0040139b
lea esp, [ebp - 0x640]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ce1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
push edi
push 0x48be0c
lea ecx, [ebp - 8]
call fcn.00407ed4
lea ecx, [ebp - 0x48]
call fcn.00469123
push 0x104
push 0x400
lea ecx, [ebp - 0x40]
call fcn.004016d3
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x3ea
push eax
push ebx
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.0040173b
push ecx
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00401355
lea eax, [ebp - 0xc]
push eax
call fcn.0044d294
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401521
lea ecx, [ebp - 0xc]
call fcn.0040139b
lea eax, [ebp - 8]
push eax
push 1
push ecx
mov ecx, esp
push 0x48be08
call fcn.00407ed4
push dword [esi + 4]
lea ecx, [ebp - 0x48]
call fcn.00469298
test eax, eax
jne 0x403d84
xor esi, esi
jmp 0x403dff
push dword [esi + 0x30]
mov eax, dword [0x481530]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push dword [ebp - 8]
push str._s_s
push eax
call fcn.004017cb
lea eax, [ebp - 4]
push eax
call fcn.0044d09c
add esp, 0x14
push ebx
push dword [esi + 4]
call edi
push dword [ebp - 4]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push ebx
push 0x146
push edi
call esi
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.004016d3
push eax
push dword [ebp - 0xc]
push 0x14a
push edi
call esi
push ebx
push dword [ebp - 0xc]
push 0x14e
push edi
call esi
lea ecx, [ebp - 4]
call fcn.0040139b
push 1
pop esi
lea ecx, [ebp - 0x48]
call fcn.00469160
lea ecx, [ebp - 8]
call fcn.0040139b
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405824
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x40584e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push ebx
push esi
lea eax, [ebp + 0xc]
push edi
mov edi, ecx
push eax
je 0x4058b4
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0xb
push dword [ebp + 8]
call ebx
mov esi, 0x400
lea ecx, [edi + 0x24]
push esi
mov dword [ebp - 0xc], ecx
call fcn.004016d3
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
call ebx
lea ecx, [edi + 0x20]
push esi
mov dword [ebp - 8], ecx
call fcn.004016d3
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp + 0xc]
push eax
push 2
jmp 0x405903
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x16
push dword [ebp + 8]
call ebx
mov esi, 0x400
lea ecx, [edi + 0x24]
push esi
mov dword [ebp - 0xc], ecx
call fcn.004016d3
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp + 0xc]
push eax
push 0x19
push dword [ebp + 8]
call ebx
lea ecx, [edi + 0x20]
push esi
mov dword [ebp - 8], ecx
call fcn.004016d3
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp + 0xc]
push eax
push 0x17
push dword [ebp + 8]
call ebx
lea ecx, [edi + 0x28]
push esi
mov dword [ebp - 4], ecx
call fcn.004016d3
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp + 0xc]
push eax
push 0x1a
push dword [ebp + 8]
call ebx
add edi, 0x2c
push esi
mov ecx, edi
call fcn.004016d3
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [ebp - 4]
or esi, 0xffffffff
push esi
call fcn.0040173b
mov ecx, dword [ebp - 8]
push esi
call fcn.0040173b
mov ecx, dword [ebp - 0xc]
push esi
call fcn.0040173b
push esi
mov ecx, edi
call fcn.0040173b
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405aae
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
push ebx
push esi
push edi
mov ebx, ecx
push 0x4b2
mov dword [ebp - 0x38], 6
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push edi
push 0xf0
push eax
call esi
push eax
mov ecx, ebx
push dword [ebx + 4]
mov dword [ebx + 0x1c], eax
call fcn.0040584e
push edi
push edi
push 0x101c
push dword [ebp + 8]
call esi
push edi
push edi
push 0x1009
push dword [ebp + 8]
call esi
mov eax, dword [0x48be0c]
push dword [ebx + 0x28]
mov dword [ebp - 0x4b8], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x4b4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4b8]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x10]
xor edi, edi
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], 0x48be0c
mov dword [ebp - 0x28], 0x100
sub eax, 0x14
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push edi
push 0x1061
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x2b0]
xor ebx, ebx
push eax
lea eax, [ebp - 0x4b8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405c3c
mov eax, dword [0x481530]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x284]
test eax, eax
je 0x405bb4
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x284]
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.0040148c
push 0x481ea0
push dword [ebp - 4]
call fcn.0046ded5
pop ecx
test eax, eax
pop ecx
je 0x405c13
push 0x481e9c
push dword [ebp - 4]
call fcn.0046ded5
pop ecx
test eax, eax
pop ecx
je 0x405c13
lea eax, [ebp - 0x284]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
push edi
push 0x104d
mov dword [ebp - 0x58], edi
push dword [ebp + 8]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x60], 7
call esi
inc ebx
lea ecx, [ebp - 4]
call fcn.0040139b
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405b95
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405c43
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov edx, dword [0x48be0c]
push esi
mov esi, ecx
push edi
mov ecx, 0xff
xor eax, eax
cmp dword [esi + 0x1c], eax
lea edi, [ebp - 0x800]
mov dword [ebp - 0x804], edx
mov dword [ebp - 0x404], edx
rep stosd dword es:[edi], eax
mov ecx, 0xff
lea edi, [ebp - 0x400]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
je 0x405c8b
push 2
jmp 0x405c8d
push 0x17
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push 0x481ba4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x34]
push 0x3e9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00405aae
pop edi
pop esi
leave
ret 8

Function at 0x405ced
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
lea eax, [ebp - 0x24c]
push 0x104
push eax
push dword [0x496348]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor esi, esi
push 0x3c
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0046d310
add esp, 0xc
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 4]
mov dword [ebp - 0x44], 0x3c
push eax
call fcn.00407ed4
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x40], esi
call fcn.004016d3
mov dword [ebp - 0x34], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push str._install__runas
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], 1
call fcn.0040836d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], 0x481eb8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0040139b
lea ecx, [ebp - 4]
call fcn.0040139b
lea ecx, [ebp + 8]
call fcn.0040139b
mov eax, esi
pop esi
leave
ret
Function at 0x406a35
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov dword [ebp - 0xc], ecx
push ebx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
xor edi, edi
lea eax, [ecx - 0xc]
mov word [ebp - 0x1c], 0x5c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp dword [eax], edi
jl 0x406a6a
push eax
mov dword [ebp - 4], ecx
call esi
jmp 0x406a7b
mov eax, dword [0x481530]
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.004080f7
mov eax, dword [ebp - 4]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], edi
jl 0x406a93
mov dword [ecx], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
push eax
call esi
jmp 0x406aa2
mov eax, dword [0x481530]
mov dword [ecx], eax
push dword [ebp - 4]
call fcn.004080f7
call fcn.0044d24f
pop ecx
push 1
pop ebx
cmp eax, ebx
jne 0x406afa
mov eax, dword [ebp - 4]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], edi
jl 0x406ac7
mov dword [ecx], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
push eax
call esi
jmp 0x406ad6
mov eax, dword [0x481530]
mov dword [ecx], eax
push dword [ebp - 4]
call fcn.004080f7
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.00406c95
cmp eax, edi
jne 0x406aec
mov dword [esi + 0x1c], ebx
jmp 0x406bf6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406bf6
lea eax, [ebp - 4]
push eax
call fcn.00406c28
lea ecx, [ebp - 8]
mov dword [esp], 0x48207c
call fcn.004013c7
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push eax
push dword [eax - 8]
call fcn.00401657
lea ecx, [ebp - 8]
call fcn.0040139b
push dword [ebp - 4]
lea ecx, [ebp - 0x474]
call fcn.00408ad7
test eax, eax
je 0x406be2
lea ecx, [ebp - 0x474]
call fcn.00408b7a
lea ecx, [ebp - 0x474]
mov esi, eax
call fcn.00408a9d
test eax, eax
jne 0x406bda
push 0x10
lea ecx, [ebp - 0x474]
call fcn.00408a81
test eax, eax
je 0x406ba2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x474]
push eax
call fcn.004089b3
push eax
lea ecx, [ebp - 4]
call fcn.00401521
lea ecx, [ebp - 0x10]
call fcn.0040139b
push ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.00401355
mov ecx, dword [ebp - 0xc]
call fcn.00406a35
jmp 0x406bda
lea eax, [ebp - 8]
lea ecx, [ebp - 0x474]
push eax
call fcn.004089b3
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.00401355
mov ecx, dword [ebp - 0xc]
call fcn.00406c95
test eax, eax
je 0x406c18
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.0040139b
cmp esi, edi
jne 0x406b3f
lea ecx, [ebp - 0x474]
call fcn.00408ba4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 4]
call fcn.0040139b
lea ecx, [ebp - 0x474]
call fcn.00408ba4
lea ecx, [ebp + 8]
call fcn.0040139b
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [eax + 0x1c], ebx
call fcn.0040139b
jmp 0x406bf6
Function at 0x406c95
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406ca9
xor esi, esi
jmp 0x406cc3
test al, 1
je 0x406cd0
push 0x80
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x406ca5
push 1
pop esi
lea ecx, [esp + 8]
call fcn.0040139b
mov eax, esi
jmp 0x406cdc
lea ecx, [esp + 8]
call fcn.0040139b
push 1
pop eax
pop esi
ret 4
Function at 0x4074f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
ret
Function at 0x407fb9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov byte [ebp - 1], 1
mov eax, dword [esi + 0x50]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x40800e
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x408068
shr eax, 2
test al, 1
je 0x408037
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
jmp 0x408005
xor ebx, ebx
push 1
push ebx
push ebx
push dword [esi + 0x24]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x408068
or byte [esi + 0x54], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e372
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
je 0x40e4b6
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x14], eax
xor eax, eax
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
lea eax, [ebp - 0x30]
push ebx
push eax
mov dword [ebp - 0x10], 1
call fcn.0046d310
mov ecx, dword [esi + 0x3c]
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 0x30], 0xffffffff
add esp, 0xc
cmp ecx, ebx
mov byte [ebp - 0x28], 4
mov byte [ebp - 0x27], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 0xb2a9
je 0x40e3de
push 0xb28e
call fcn.00413ec2
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x14]
test dword [ebp - 0x10], eax
je 0x40e4a5
mov eax, dword [0x481530]
push 1
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0040144b
test eax, eax
je 0x40e40f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add eax, 0x41
mov word [ecx], ax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.00401355
mov edi, 0x482774
mov eax, edi
test eax, eax
je 0x40e42d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp - 4]
call fcn.00401657
cmp dword [esi + 0x3c], ebx
je 0x40e495
push ebx
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.0045ec58
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.00401521
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x3c]
push ebx
add eax, 0xb28f
push 7
push eax
push ebx
call fcn.00413f60
mov edi, eax
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x60]
call fcn.00401521
mov eax, dword [esi + 0xbc]
push 1
lea ecx, [ebp - 0x1c]
mov dword [edi + 0x2c], eax
call fcn.0045ee1f
lea ecx, [ebp - 0x1c]
mov dword [edi + 0x28], eax
call fcn.0045e710
lea ecx, [ebp - 4]
call fcn.0040139b
lea ecx, [ebp - 8]
call fcn.0040139b
shl dword [ebp - 0x10], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x1a
jl 0x40e3e1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e4f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
jne 0x40e510
xor eax, eax
jmp 0x40e5d4
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 4]
cmp dword [esi + 0xc4], ebx
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], eax
jne 0x40e59f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xb
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
mov edi, str.NotifyWnd_123
push eax
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x38], 0x40e4ba
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
push ebx
push dword [ebp - 8]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push SHChangeNotifyDeregister
push ebx
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push ebx
push eax
mov dword [esi + 0xc4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push 0xffffffffffffffeb
push dword [esi + 0xc4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x40e5b0
push eax
call dword [sym.imp.SHELL32.dll_SHChangeNotifyDeregister]
mov dword [esi + 0x40], ebx
lea eax, [ebp - 0x10]
push eax
push 1
push 0x400
push 0x201ff
push 2
push dword [esi + 0xc4]
call dword [sym.imp.SHELL32.dll_SHChangeNotifyRegister]
push 1
mov dword [esi + 0x40], eax
pop eax
pop esi
pop ebx
leave
ret

Function at 0x40e9e1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.004666e1
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
lea ecx, [esi + 0x50]
mov dword [esi + 0x30], edi
call fcn.0045e724
lea ecx, [esi + 0x58]
call fcn.0045ba66
lea ecx, [esi + 0xf8]
mov dword [esi + 0xec], edi
call fcn.0045e724
mov dword [esi], 0x47bd9c
mov dword [esi + 0x3c], edi
mov dword [esi + 0x28], edi
push 0x3c0
mov dword [esi + 0x24], edi
call fcn.0046d854
mov ebx, 0xc4
mov dword [esi + 0xe0], eax
push ebx
call fcn.0046d854
pop ecx
cmp eax, edi
pop ecx
je 0x40ea75
push 0x30
pop ecx
mov dword [eax], ecx
add eax, 4
mov edx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [0x481530]
mov dword [edx], ecx
add edx, 4
dec dword [ebp - 4]
jne 0x40ea63
jmp 0x40ea77
xor eax, eax
push ebx
mov dword [esi + 0xe4], eax
call fcn.0046d854
cmp eax, edi
pop ecx
je 0x40eaa2
push 0x30
pop ecx
mov dword [eax], ecx
add eax, 4
mov edx, eax
mov ebx, dword [0x481530]
mov dword [edx], ebx
add edx, 4
dec ecx
jne 0x40ea92
jmp 0x40eaa4
xor eax, eax
mov dword [esi + 0xe8], eax
lea eax, [esi + 0xf4]
push eax
push edi
push edi
mov dword [esi + 0xdc], edi
mov dword [eax], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esi + 0xd8]
push eax
mov dword [eax], edi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f830
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 0xc]
push ebx
push esi
cmp edx, 1
push edi
mov ebx, ecx
je 0x40f975
cmp edx, 0x6e
jle 0x40f910
cmp edx, 0x7a
jle 0x40f924
cmp edx, 0x463
je 0x40f919
cmp edx, 0x84e5
jne 0x40f910
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
add dword [ebp - 4], 0x15e
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0xc], eax
jne 0x40f8cd
push 0x1b4
call fcn.0046d854
test eax, eax
pop ecx
je 0x40f8a9
mov ecx, eax
call fcn.0041065e
jmp 0x40f8ab
xor eax, eax
mov ecx, dword [ebx + 4]
push 0x43
sub esp, 0x10
mov dword [ebx + 0x3c], eax
lea esi, [ebp - 0x10]
mov edi, esp
mov dword [eax + 0x24], ecx
push dword [ebx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040f9ab
mov eax, dword [ebx + 0xdc]
test eax, eax
je 0x40f8df
mov ecx, dword [ebx + 0x3c]
mov dword [ecx + 0x24], eax
jmp 0x40f8e8
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 4]
mov dword [eax + 0x24], ecx
lea eax, [ebx + 0xf8]
lea ecx, [ebx + 0xfc]
neg eax
sbb eax, eax
lea esi, [ebp - 0x10]
and eax, ecx
mov ecx, dword [ebx + 0x3c]
push dword [eax]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040fdd1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push 0
mov ecx, ebx
call fcn.0040ffb1
jmp 0x40f910
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x2c]
lea ecx, [ebp - 0x20]
push ecx
push edx
push 0x43f
push eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40f962
push 0
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.0040ef83
jmp 0x40f910
cmp dword [ebx + 0xdc], 0
je 0x40f910
push 0
push dword [ebx + 0xf4]
jmp 0x40f959
mov edi, dword [ebx + 0xec]
lea esi, [ebx + 0xec]
call dword [sym.imp.USER32.dll_GetFocus]
cmp edi, eax
jne 0x40f910
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 1
pop eax
jmp 0x40f912