joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40813e
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x4152dc
call fcn.00414a90
sub esp, 0x418
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x14]
mov esi, 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jne 0x408192
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x408188
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x40823d
lea eax, [ebp - 0x10]
push eax
push 0x4164d0
push 1
push ebx
push 0x4164e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x40822a
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x4081ca
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push 0x424a70
push eax
call dword [ecx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x50]
mov edi, eax
cmp edi, ebx
jl 0x40821a
mov eax, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov edi, eax
cmp edi, ebx
jl 0x40821a
push esi
lea eax, [ebp - 0x424]
push dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x424]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40822a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40823b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40824c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00414ad0
mov eax, dword [0x425320]
push esi
mov esi, 0x1ff
push edi
mov dword [ebp - 0x1000], eax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0xffc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1000]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x425320]
mov ecx, esi
mov dword [ebp - 0x800], eax
xor eax, eax
lea edi, [ebp - 0x7fc]
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x800]
push 9
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x800]
push 0x4247b0
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call esi
lea eax, [ebp - 0x800]
push str..lnk
push eax
call esi
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push dword [ebp + 8]
push eax
call fcn.0040813e
add esp, 0xc
pop edi
pop esi
leave
ret 4
Function at 0x408354
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
mov eax, dword [0x425320]
push esi
push edi
mov dword [ebp - 0x800], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x7fc]
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x800]
push 9
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x800]
push 0x4247b0
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call esi
lea eax, [ebp - 0x800]
push str..lnk
push eax
call esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x4083d1
xor eax, eax
jmp 0x4083dc
not al
movzx eax, al
shr eax, 4
and eax, 1
leave
ret 4

Function at 0x4090f4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 0xffffffffffffffff
mov esi, ecx
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov edi, 0x4253b8
mov dword [ebp - 4], eax
mov eax, edi
test eax, eax
je 0x409126
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
push edi
push eax
call fcn.00403080
mov eax, dword [0x425320]
mov ecx, 0x104
mov dword [ebp - 0x41c], eax
xor eax, eax
cmp word [ebp - 4], bx
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
jbe 0x409222
movzx eax, word [ebp - 4]
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
jle 0x409222
lea eax, [ebp - 0x41c]
push 0x208
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
and edi, 0x10
cmp dword [esi + 0x860], ebx
jne 0x40919c
cmp edi, ebx
je 0x409213
lea eax, [ebp - 0x41c]
test eax, eax
je 0x4091b3
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00403080
cmp dword [esi + 0x864], ebx
je 0x4091cf
cmp edi, ebx
jne 0x4091db
cmp dword [esi + 0x860], ebx
je 0x4091eb
cmp edi, ebx
jne 0x4091eb
push edi
mov ecx, esi
push dword [ebp + 0x10]
call fcn.00409405
cmp eax, 0xffffffff
je 0x409222
mov eax, dword [esi + 0x868]
cmp eax, ebx
je 0x409213
push dword [esi + 0x864]
mov ecx, dword [ebp + 0x10]
push dword [esi + 0x860]
push eax
push ebx
call fcn.004032b4
push eax
mov ecx, esi
call fcn.0040e8a0
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jl 0x409166
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_DragFinish]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x409443
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x415368
call fcn.00414a90
sub esp, 0x248
mov eax, dword [0x4316e0]
push esi
push edi
lea ecx, [ebp - 0x254]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 0x4c], 0x3c
call fcn.00402f54
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x48], esi
call fcn.004032b4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
mov dword [ebp - 0x24], esi
and eax, str.runas
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x30], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
cmp eax, esi
pop esi
je 0x4094d8
push 0xfefe
call dword [sym.imp.USER32.dll_PostQuitMessage]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402f28
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40c63b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
mov edx, dword [0x425320]
push ebx
push esi
push edi
mov esi, ecx
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x200]
mov dword [ebp - 0x204], edx
rep stosd dword es:[edi], eax
push 0x7f
lea edi, [ebp - 0x400]
pop ecx
mov dword [ebp - 0x404], edx
rep stosd dword es:[edi], eax
push 0x7f
lea edi, [ebp - 0x600]
pop ecx
mov dword [ebp - 4], esi
push 0xbb9
mov dword [ebp - 0x604], edx
push dword [esi + 0x898]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
rep stosd dword es:[edi], eax
call esi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, 0x100
lea ecx, [ebp - 0x404]
push ebx
push ecx
push eax
call edi
mov eax, dword [ebp - 4]
push 0xbba
push dword [eax + 0x898]
call esi
lea ecx, [ebp - 0x204]
push ebx
push ecx
push eax
call edi
mov eax, dword [ebp - 4]
push 0xbbb
push dword [eax + 0x898]
call esi
lea ecx, [ebp - 0x604]
push ebx
push ecx
push eax
call edi
lea eax, [ebp - 0x204]
push eax
call sub.MSVCRT.dll__wtoi
mov edi, dword [ebp + 8]
mov dword [edi], eax
lea eax, [ebp - 0x404]
push eax
call sub.MSVCRT.dll__wtoi
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 0x604]
push eax
call sub.MSVCRT.dll__wtoi
mov ecx, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
mov dword [ecx], eax
lea eax, [ebp - 0x204]
push eax
call esi
test eax, eax
jg 0x40c732
and dword [edi], 0
lea eax, [ebp - 0x404]
push eax
call esi
test eax, eax
jg 0x40c742
and dword [ebx], 0
lea eax, [ebp - 0x604]
push eax
call esi
pop edi
pop esi
test eax, eax
pop ebx
jg 0x40c758
mov eax, dword [ebp + 0x10]
and dword [eax], 0
xor eax, eax
leave
ret 0xc
Function at 0x40e0ef
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x43256c], 0
push esi
mov esi, ecx
je 0x40e11c
push dword [ebp + 0x10]
call fcn.004085e3
push dword [ebp + 0x14]
call fcn.004085e3
push dword [ebp + 0xc]
call fcn.004085e3
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40e1a1
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x83c]
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x838]
push eax
call fcn.0040c58a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x844]
push dword [ebp + 0x10]
push eax
lea eax, [esi + 0x840]
push eax
call fcn.0040c58a
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x84c]
push dword [ebp + 0x14]
add esi, 0x848
push eax
push esi
call fcn.0040c58a
add esp, 0x30
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
neg eax
sbb eax, eax
neg eax
pop esi
leave
ret 0x10
Function at 0x40eae1
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ecx
push 0
push dword [esi + 0x898]
call edi
push 0
lea ecx, [esi + 4]
call fcn.00401e79
push 5
push dword [esi + 0x898]
call edi
pop edi
pop esi
ret
Function at 0x40f1b2
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4155bc
call fcn.00414a90
push ecx
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
mov esi, 0x4248fc
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll__wfopen
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
mov dword [ebp - 0x14], ebx
jne 0x40f1e5
xor esi, esi
jmp 0x40f307
push 2
push 0
push ebx
call sub.MSVCRT.dll_fseek
push ebx
call sub.MSVCRT.dll_ftell
push ebx
mov edi, eax
call sub.MSVCRT.dll_rewind
mov ecx, dword [ebp + 0xc]
add esp, 0x14
push edi
call fcn.004032b4
and dword [ebp - 0x10], 0
push ebx
push 1
lea eax, [ebp - 0x10]
push 2
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp word [ebp - 0x10], 0xfeff
je 0x40f23d
push ebx
call sub.MSVCRT.dll_fclose
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll__wfopen
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, eax
push 0x800a
call sub.MSVCRT.dll_malloc
push ebx
mov esi, eax
push 0x4000
push 1
and byte [esi], 0
push esi
call sub.MSVCRT.dll_fread
add esp, 0x14
test eax, eax
je 0x40f2fd
cmp word [ebp - 0x10], 0xfeff
jne 0x40f291
and byte [eax + esi], 0
and byte [eax + esi + 1], 0
test esi, esi
jne 0x40f27e
xor eax, eax
jmp 0x40f285
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0xc]
push esi
push eax
call fcn.004031bc
jmp 0x40f2e4
and byte [eax + esi], 0
test esi, esi
jne 0x40f29d
xor ebx, ebx
jmp 0x40f2cc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00414ad0
mov ebx, esp
push edi
push ebx
xor eax, eax
push 0xffffffffffffffff
push esi
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test ebx, ebx
jne 0x40f2d0
xor eax, eax
jmp 0x40f2d7
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
call fcn.004031bc
mov ebx, dword [ebp - 0x14]
and byte [esi], 0
push ebx
push 0x4000
push 1
push esi
call sub.MSVCRT.dll_fread
add esp, 0x10
jmp 0x40f25d
push ebx
call sub.MSVCRT.dll_fclose
pop ecx
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402f28
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x20]
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f8f8
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x41562c
call fcn.00414a90
sub esp, 0x258
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x260]
mov dword [ebp - 0x264], ebx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 1
cmp eax, 0xffffffff
pop edi
je 0x40f9d7
lea eax, [ebp - 0x264]
push eax
call fcn.0040c57a
pop ecx
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00409405
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40f9d7
push 0x425198
lea ecx, [ebp - 0x14]
call fcn.00402ff8
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x14]
setne byte [ebp - 0xd]
call fcn.00402f28
cmp byte [ebp - 0xd], bl
je 0x40f9d7
push 0x425194
lea ecx, [ebp - 0x14]
call fcn.00402ff8
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x14]
setne byte [ebp - 0xd]
call fcn.00402f28
cmp byte [ebp - 0xd], bl
je 0x40f9d7
push edi
push edi
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.004032b4
push eax
mov ecx, esi
call fcn.0040e8a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402f28
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40fab4
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov ecx, 0x431e60
jmp fcn.00408301
Function at 0x40facf
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x415640
call fcn.00414a90
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_CreatePopupMenu]
push edi
mov edi, ecx
mov dword [ebp - 0x20], edi
call esi
mov dword [ebp - 0x18], eax
call esi
xor ebx, ebx
push ebx
push dword [edi + 0x874]
call dword [sym.imp.USER32.dll_ShowWindow]
call esi
push dword [0x4312d4]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
mov dword [ebp - 0x10], eax
push eax
push 0x410
push dword [ebp - 0x18]
call esi
push ebx
push 0x3c
call fcn.00405b3d
pop ecx
mov edi, 0x400
pop ecx
push eax
push 0x801d
push edi
push dword [ebp - 0x10]
call esi
push ebx
push 0x3d
call fcn.00405b3d
pop ecx
pop ecx
push eax
push 0x801e
push edi
push dword [ebp - 0x10]
call esi
push ebx
push 0x3e
call fcn.00405b3d
pop ecx
pop ecx
push eax
push 0x801f
push edi
push dword [ebp - 0x10]
call esi
push ebx
push 1
push 0xc00
push dword [ebp - 0x10]
call esi
push 0x4251d0
push 0x801a
push edi
push dword [ebp - 0x10]
call esi
push 0x4312d4
lea ecx, [ebp - 0x14]
call fcn.00402edf
mov ecx, 0x424b54
mov dword [ebp - 4], ebx
mov eax, ecx
test eax, eax
je 0x40fba7
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x424b54
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004031bc
push ebx
push 0x3f
call fcn.00405b3d
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x40fbc6
xor eax, eax
jmp 0x40fbcd
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00403080
push ebx
push 0x35
call fcn.00405b3d
pop ecx
pop ecx
push eax
push 0x8017
push edi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
push 0x801b
push edi
push dword [ebp - 0x10]
call esi
push ebx
push 1
push 0xc00
push dword [ebp - 0x10]
call esi
push ebx
push 0x48
call fcn.00405b3d
pop ecx
pop ecx
push eax
push 0x8020
push edi
push dword [ebp - 0x10]
call esi
call fcn.004034a2
test al, al
je 0x40fc3f
push ebx
push 0x5a
call fcn.00405b3d
pop ecx
pop ecx
push eax
push 0x8028
push edi
push dword [ebp - 0x10]
call esi
push ebx
push 0x5b
call fcn.00405b3d
pop ecx
pop ecx
push eax
push 0x8029
push edi
push dword [ebp - 0x10]
call esi
push ebx
push 1
push 0xc00
push dword [ebp - 0x10]
call esi
push ebx
push 0x5f
call fcn.00405b3d
pop ecx
pop ecx
push eax
push 0x802a
push edi
push dword [ebp - 0x10]
call esi
push ebx
push 1
push 0xc00
push dword [ebp - 0x10]
call esi
push ebx
push 0x33
call fcn.00405b3d
pop ecx
pop ecx
push eax
push 2
push edi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x18]
mov ecx, 0x431e68
call fcn.00412efd
mov esi, dword [ebp - 0x20]
push dword [esi + 0x878]
push dword [0x431e94]
call dword [sym.imp.USER32.dll_SetParent]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [esi + 0x890]
call edi
push 5
push dword [esi + 0x874]
call edi
push ebx
push dword [esi + 0x874]
call edi
mov ecx, esi
call fcn.0040fcfe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402f28
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40fd65
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
xor ebx, ebx
push 0x4253b8
mov edi, 0xc20
push ebx
push edi
push eax
mov dword [ebp - 8], eax
call esi
mov dword [ebp - 4], ebx
push ebx
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x28c]
push str._02d:_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x28c]
push eax
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
push 0x400
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 5
je 0x40fddb
cmp dword [ebp - 4], 0xb
je 0x40fddb
cmp dword [ebp - 4], 0x11
jne 0x40fde7
push 0x4253b8
push ebx
push edi
push dword [ebp - 8]
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x18
jl 0x40fd97
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push esi
push dword [eax + 0x898]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
push 0x102
push ecx
push eax
mov ecx, 0x431e68
push dword [ebp - 8]
call fcn.0041351c
mov edx, eax
cmp edx, ebx
je 0x40feea
push 0x14
xor eax, eax
pop ecx
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x8c], 0xcd
mov dword [ebp - 0x88], 0xd2
mov dword [ebp - 0x84], 0xd0
mov dword [ebp - 0x80], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
mov edi, 0x1002
push eax
mov eax, dword [ebp - 0xc]
push ebx
push edi
push dword [ebp + esi*4 - 0x10f8]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
add edx, 0xffffffe8
mov word [ebp - 0x1c], 0x7b2
push dword [eax + 0x898]
mov word [ebp - 0x1a], 1
mov word [ebp - 0x18], 1
mov word [ebp - 0x16], 1
mov word [ebp - 0x14], dx
mov word [ebp - 0x12], bx
mov word [ebp - 0x10], bx
mov word [ebp - 0xe], bx
call esi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x40feea
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
je 0x40feea
lea ecx, [ebp - 0x8c]
mov dword [ebp + 8], ecx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push edi
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x898]
call esi
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, ebx
jne 0x40fecb
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40fef1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x10], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x4253b8]
mov ebx, ecx
push 0x7f
mov word [ebp - 0x210], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x20e]
cmp dword [ebp + 8], 0x407
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
stosw word es:[edi], ax
mov edi, 0x100
jne 0x40ff76
lea eax, [ebp - 0x10]
push eax
push 0xcd
push 0xca
push dword [ebx + 0x898]
call fcn.0040c4f0
add esp, 0x10
lea eax, [ebp - 0x210]
push edi
push eax
push 0xbb9
push dword [ebx + 0x898]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
cmp dword [ebp + 8], 0x408
jne 0x40ffb7
lea eax, [ebp - 0x10]
push eax
push 0xd2
push 0xd1
push dword [ebx + 0x898]
call fcn.0040c4f0
add esp, 0x10
lea eax, [ebp - 0x210]
push edi
push eax
push 0xbba
push dword [ebx + 0x898]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
cmp dword [ebp + 8], 0x409
jne 0x40fff8
lea eax, [ebp - 0x10]
push eax
push 0xd0
push 0xce
push dword [ebx + 0x898]
call fcn.0040c4f0
add esp, 0x10
lea eax, [ebp - 0x210]
push edi
push eax
push 0xbbb
push dword [ebx + 0x898]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
sub esp, 0x10
lea esi, [ebp - 0x10]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xd2
push 0xd1
push dword [ebx + 0x898]
movsd dword es:[edi], dword [esi]
call fcn.00408586
add esp, 0xc
lea esi, [ebp - 0x10]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xd0
push 0xce
push dword [ebx + 0x898]
movsd dword es:[edi], dword [esi]
call fcn.00408586
add esp, 0xc
lea esi, [ebp - 0x10]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xcd
push 0xca
push dword [ebx + 0x898]
movsd dword es:[edi], dword [esi]
call fcn.00408586
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x1c
lea eax, [ebp - 0x210]
push eax
push 0xbb9
push dword [ebx + 0x898]
call edi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
push 0xbbb
push dword [ebx + 0x898]
call edi
push eax
call esi
lea eax, [ebp - 0x210]
push eax
push 0xbba
push dword [ebx + 0x898]
call edi
push eax
call esi
pop edi
pop esi
pop ebx
leave
ret 4