joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f50
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408fa3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00433af9
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea ecx, [esp + 0x114]
push ecx
push esi
call edi
test eax, eax
je 0x40902b
cmp dword [esp + 0xc], 0x40
jne 0x40902b
mov edx, 0x5a4d
cmp word [esp + 0x108], dx
jne 0x40902b
mov eax, dword [esp + 0x144]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x144]
jne 0x40902b
push 0
lea ecx, [esp + 0x10]
push ecx
push pe_nt_image_headers32
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x40902b
cmp dword [esp + 0xc], 0xf8
jne 0x40902b
cmp dword [esp + 0x10], 0x4550
jne 0x40902b
cmp word [esp + 0x16], bx
je 0x40902b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00433af9
mov esp, ebp
pop ebp
ret

Function at 0x4091d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451840
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x463070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00408ee0
add esp, 4
test eax, eax
je 0x409229
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 8], 0
je 0x40923a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409210
cmp dword [ebp + 0xc], 0
je 0x409252
push ebx
call fcn.00408f50
add esp, 4
test eax, eax
sete al
test al, al
jne 0x409210
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.00409180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40aff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40b000
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40b010
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40b5d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x20]
push edx
xor edi, edi
or eax, 0x2001f
push eax
push edi
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
jne 0x40b645
xor eax, eax
cmp ecx, edi
je 0x40b633
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov esi, eax
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x40b653
cmp ecx, edi
je 0x40b6f0
push ecx
jmp 0x40b6ea
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40b6be
jmp 0x40b680
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040b5d0
mov ebp, eax
cmp ebp, edi
jne 0x40b70d
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40b680
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40b6d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, dword [ebx]
push ebp
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40b6f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00433af9
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40b71c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x40b6f2
Function at 0x40c1b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4504f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40c22f
call fcn.0040a8f0
mov esi, eax
jmp 0x40c311
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40c24b
call fcn.0040a8f0
jmp 0x40c308
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40c264
call fcn.0040a8f0
jmp 0x40c308
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40c298
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40c286
lea eax, [ebp]
call fcn.0040b060
lea esi, [ebp - 0x1c]
call fcn.0040b040
mov eax, 0x8007000e
jmp 0x40c323
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040a8b0
mov dword [ebp - 4], 1
jmp 0x40c2c1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40c2cf
mov esi, 0x8007000e
jmp 0x40c30a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40c2ed
call fcn.0040a8f0
jmp 0x40c308
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040c060
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40c321
lea eax, [ebp]
call fcn.0040b060
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00433af9
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410800
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, dword [esp + 8]
je 0x410833
mov eax, dword [esi - 0x60]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [esi - 0x64]
call fcn.004100e0
mov eax, dword [esi - 0x60]
call fcn.004212e0
mov eax, 1
pop esi
ret 8
mov ecx, dword [esi - 0x60]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x648], 0
je 0x410852
push 1
lea eax, [esi - 0x64]
call fcn.004100e0
mov eax, 1
pop esi
ret 8

Function at 0x410e70
Capabilities:
Hide graphical window

Disassembly:
push esi
test eax, eax
je 0x410e7a
lea esi, [eax - 0x80]
jmp 0x410e7c
xor esi, esi
cmp byte [eax + 0x1c], 0
je 0x410eb0
mov eax, dword [esi + 4]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp edi, 2
jne 0x410ea1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x410eb5
test edi, edi
jne 0x410eb0
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x410eb5
cmp edi, 1
je 0x410ecb
mov ecx, ebx
shr ecx, 0x10
movsx edx, cx
movsx eax, bx
push edx
push eax
sub esi, 0xffffff80
push esi
call fcn.00411020
xor eax, eax
pop esi
ret

Function at 0x412070
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x460
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x45c], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x4579d8
push eax
call fcn.00435bad
mov edi, eax
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x4120bc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.00433af9
mov esp, ebp
pop ebp
ret
push edi
push 0x400
lea eax, [esp + 0x68]
push 1
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.004361d3
add esp, 0x10
cmp eax, esi
je 0x412127
lea ecx, [ecx]
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0xc]
call fcn.00429ee0
push edi
push 0x400
lea edx, [esp + 0x6c]
push 1
push edx
call fcn.004361d3
add esp, 0x14
cmp eax, esi
jne 0x412100
lea esi, [esp + 8]
mov ecx, ebx
call fcn.00429f80
push edi
call fcn.00435c3b
mov ecx, dword [esp + 0x468]
add esp, 4
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00433af9
mov esp, ebp
pop ebp
ret

Function at 0x4123e0
Capabilities:
Create thread

Disassembly:
xor edx, edx
push edi
mov edi, 0x412690
lea eax, [esi + 8]
test edi, edi
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], 0x412690
mov dword [esi + 0x1c], ecx
mov dword [esi + 4], edx
mov dword [eax], 0xffffffff
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
pop edi
je 0x412427
push eax
push edx
push ecx
push 0x412690
push edx
push edx
call fcn.004364fb
add esp, 0x18
mov dword [esi + 4], eax
mov eax, esi
ret
Function at 0x412580
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x41259f
test byte [esp], 7
je 0x41259f
mov eax, 1
pop ecx
ret
call fcn.004124e0
pop ecx
ret

Function at 0x4125b0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
test esi, esi
je 0x41266a
cmp word [esi], 0
je 0x41266a
test eax, eax
je 0x412612
cmp word [eax], 0
je 0x412612
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x41266a
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00433af9
add esp, 0x414
ret
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00437380
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x41266a
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00433af9
add esp, 0x414
ret
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.00433af9
add esp, 0x414
ret

Function at 0x4127b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x820
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00437380
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x412836
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.00433af9
add esp, 0x820
ret
push str.360ver.dll
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412819
lea edx, [esp + 0x18]
push edx
lea edi, [esp + 0x14]
lea ebx, [esp + 0x24]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
call fcn.00409120
add esp, 4
cmp dword [esp + 0x10], 0
je 0x412819
mov eax, ebx
push eax
call fcn.00412750
mov esi, eax
test esi, esi
je 0x412819
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x824]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00433af9
add esp, 0x820
ret
Function at 0x4128d0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100c
call fcn.004425c0
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x1004], eax
push 0x1000
lea eax, [esp + 4]
push 0
push eax
call fcn.00437380
add esp, 0xc
push 0x800
lea ecx, [esp + 4]
push 0x457b50
push ecx
call fcn.00435a77
add esp, 0xc
push 0x800
lea edx, [esp + 4]
push esi
push edx
call fcn.004365cc
add esp, 0xc
push 0x800
lea eax, [esp + 4]
push 0x457b58
push eax
call fcn.004365cc
add esp, 0xc
push 0x800
lea ecx, [esp + 4]
push esi
push ecx
call fcn.004365cc
add esp, 0xc
push 0x800
lea edx, [esp + 4]
push str.vL
push edx
call fcn.004365cc
add esp, 0xc
push 0x800
lea eax, [esp + 4]
push edi
push eax
call fcn.004365cc
add esp, 0xc
push 0x800
lea ecx, [esp + 4]
push 0x457ba8
push ecx
call fcn.004365cc
add esp, 0xc
push 0x14
push esi
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4129f4
push 0xc8
push 0x457a58
push str.http:__down.360safe.com_setup.exe
call fcn.00446a8e
add esp, 0xc
test eax, eax
jne 0x4129dc
call fcn.004127b0
test eax, eax
je 0x4129dc
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x4129e7
push 5
push 0
push 0
push str.http:__down.360safe.com_setup.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call fcn.004368ac
int3
Function at 0x412a00
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x160
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x15c], eax
push esi
push edi
mov edi, ecx
push edi
mov dword [edi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, 2
test eax, eax
jne 0x412ad1
push 0x3f
push eax
mov byte [esp + 0x12c], al
lea eax, [esp + 0x12d]
push eax
call fcn.00437380
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x10]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x412aad
movsx ecx, byte [esp + 0x124]
lea edx, [esp + 0x126]
sub ecx, 0x30
push edx
mov dword [edi + 0x10], esi
mov dword [edi + 4], ecx
call fcn.004365c1
add esp, 4
mov dword [edi + 8], eax
jmp 0x412ad1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov edx, 4
mov dword [edi + 8], eax
cmp edx, ecx
sbb eax, eax
neg eax
inc eax
mov dword [edi + 4], ecx
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
cmp eax, 6
ja 0x412ae0
jne 0x412b49
cmp dword [edi + 8], esi
jb 0x412b49
push 0x110
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00437380
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412b49
lea edx, [esp + 0x10]
push edx
call eax
test eax, eax
mov eax, 1
jne 0x412b4e
mov ecx, 0x45
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.00433af9
add esp, 0x160
ret
mov eax, 1
mov ecx, dword [esp + 0x164]
pop edi
pop esi
xor ecx, esp
call fcn.00433af9
add esp, 0x160
ret

Function at 0x412d80
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4014
call fcn.004425c0
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x4010], eax
mov eax, dword [esp + 0x401c]
push ebp
mov ebp, dword [esp + 0x401c]
xor ecx, ecx
push 0x3ffe
push ecx
lea edx, [esp + 0x1e]
push edx
mov dword [esp + 0x14], eax
mov word [esp + 0x20], cx
call fcn.00437380
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x412e4a
cmp eax, 0x3fff
ja 0x412e4a
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412e4a
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 8]
push eax
push 0x457774
lea ecx, [esp + 0x20]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412e4a
mov eax, dword [esp + 4]
movzx edx, word [eax + 0xa]
mov word [edi], dx
mov cx, word [eax + 8]
mov word [ebx], cx
movzx edx, word [eax + 0xe]
mov ecx, dword [esp + 8]
mov word [ebp], dx
mov ax, word [eax + 0xc]
mov word [ecx], ax
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x4010]
xor ecx, esp
call fcn.00433af9
add esp, 0x4014
ret
mov ecx, dword [esp + 0x4014]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00433af9
add esp, 0x4014
ret
Function at 0x416d60
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44f15d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463070]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x34], esi
mov eax, dword [ebp + 0x40]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x416da6
lea edi, [esi + 3]
jmp 0x416dbc
cmp dword [ebp + 0x64], esi
je 0x416db2
mov edi, 2
jmp 0x416dbc
xor ecx, ecx
cmp dword [ebp + 0x68], esi
setne cl
mov edi, ecx
mov eax, dword [ebp + 0x40]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 0xa8]
push edi
push ecx
lea edi, [ebp + 0x70]
lea esi, [esp + 0x20]
call fcn.00417570
mov eax, dword [ebp + 0x40]
mov edx, esi
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [0x4674cc]
mov dword [esp + 0x3c], ecx
lea edx, [esp + 0x3c]
push edx
mov eax, 0x80
mov byte [esp + 0x38], 1
call fcn.004098d0
push 0x80
push eax
mov eax, dword [ebp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [esp + 0x3c]
call fcn.00409960
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [esi - 8], eax
mov word [esi + eax*2], cx
cmp dword [esi - 8], ecx
jne 0x416e57
mov edx, dword [ebp + 0xc0]
cmp dword [edx - 8], ecx
je 0x416ebc
cmp dword [ebp + 0xc8], ecx
jne 0x416e85
mov eax, dword [ebp + 0x40]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov ecx, dword [ebp + 0x24]
push 1
push 0
push 0
push 1
push ecx
lea edx, [ebp + 0x20]
test eax, eax
lea eax, [esp + 0x50]
push edx
push eax
mov eax, dword [ebp + 0x28]
jmp 0x416eae
mov ecx, dword [ebp + 0x24]
push 1
push 0
push 0
push 1
mov eax, 3
sub dword [esp + 0x28], eax
sub dword [esp + 0x30], eax
push ecx
lea edx, [ebp + 0x20]
push edx
add ebp, 0xc0
push ebp
mov eax, 0x424242
mov edx, ebx
lea ecx, [esp + 0x34]
call fcn.00424cf0
add esp, 0x1c
lea eax, [esi - 0xc]
cmp eax, 0x4674bc
je 0x416edd
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416edd
push esi
call fcn.0043406a
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x417210
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44f0fd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463070]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [0x4674cc]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
lea eax, [ebx + 0x64]
mov byte [esp + 0x50], 1
call fcn.004098d0
mov edx, dword [esi + 0x40]
push 0x64
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [esp + 0x14]
call fcn.00409960
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [edi - 8], eax
mov word [edi + eax*2], cx
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x58]
push eax
lea ebp, [esi + 0x20]
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov dword [esp + 0x28], ebx
call fcn.00424e80
mov eax, dword [esi + 0x40]
add esp, 0x10
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi + 0x28]
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x40]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x41730f
mov dword [esp + 0x18], 0xc7c7c7
cmp dword [esi + 0x64], ebx
je 0x417323
push 1
push 1
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x24]
push 1
push edx
push eax
mov eax, dword [esp + 0x24]
push ebx
push ecx
lea edx, [esp + 0x28]
push ebp
push edx
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x4c]
call fcn.00424cf0
lea eax, [edi - 0xc]
add esp, 0x1c
cmp eax, 0x4674bc
je 0x41736d
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41736d
push esi
call fcn.0043406a
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4