joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487461
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x487492
push 0x432
push str.wincore.cpp
call fcn.004dc030
test eax, eax
je 0x487492
int3
xor edx, edx
test edx, edx
jne 0x48746d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x4874de
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00484f47
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00484ed3
jmp 0x4874f6
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
mov eax, dword [edx]
call dword [eax + 0x90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48ad50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x48addc
call fcn.004e5262
mov dword [ebp - 0x10], eax
push pe_nt_image_headers32
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48addc
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48adaf
xor eax, eax
jmp 0x48ae0d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48add6
push 0xcba
push str.wincore.cpp
call fcn.004dc030
test eax, eax
je 0x48add6
int3
xor edx, edx
test edx, edx
jne 0x48adbc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0048ae16
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x48ae0a
cmp dword [ebp - 8], 0
je 0x48ae0a
mov ecx, dword [ebp - 8]
push ecx
call fcn.00407290
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x491527
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0xed
push str.filecore.cpp
mov eax, dword [ebp - 8]
push eax
call fcn.0048d4d0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xffffffff
jne 0x491563
push 0xee
push str.filecore.cpp
call fcn.004dc030
test eax, eax
je 0x491563
int3
xor edx, edx
test edx, edx
jne 0x491546
cmp dword [ebp + 0xc], 0
jne 0x491574
jmp 0x491615
cmp dword [ebp + 8], 0
jne 0x49158e
push 0xf3
push str.filecore.cpp
call fcn.004dc030
test eax, eax
je 0x49158e
int3
xor eax, eax
test eax, eax
jne 0x491574
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045b266
test eax, eax
jne 0x4915bb
push 0xf4
push str.filecore.cpp
call fcn.004dc030
test eax, eax
je 0x4915bb
int3
xor eax, eax
test eax, eax
jne 0x491594
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4915f8
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.004d85fa
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048f580
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x491615
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.004d85fa
push eax
push 0xffffffffffffffff
push 0xd
call fcn.0048f760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x491d5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x5e626c
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x491e32
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x491e28
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push str.InProcServer32
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x491e1e
push 0x104
mov ecx, dword [ebp + 0xc]
call fcn.00484d98
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0x5f2eb8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.00484ed3
xor ecx, ecx
cmp dword [ebp - 0x18], 0
sete cl
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x491e3b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x178], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
push 0x800
push 0x160
lea ecx, [ebp - 0x174]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x491e9c
mov eax, dword [ebp - 0x16c]
and eax, 0x10000
test eax, eax
jne 0x491ea3
xor eax, eax
jmp 0x491fd3
lea ecx, [ebp - 0x14]
push ecx
push 0x5c3ad8
push 0
push 0x5c3ae8
lea ecx, [ebp - 4]
call fcn.00491ad7
test eax, eax
jge 0x491ec6
xor eax, eax
jmp 0x491fd3
lea edx, [ebp - 0x10]
push edx
push 0x5cbfd0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx]
test eax, eax
jl 0x491fc5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jne 0x491f00
mov dword [ebp - 0x180], 0
jmp 0x491f4e
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
shl eax, 1
add eax, 3
and al, 0xfc
call fcn.00428a30
mov dword [ebp - 0x184], esp
mov edx, dword [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.0040b170
mov dword [ebp - 0x180], eax
push 0
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 0x14]
test eax, eax
jl 0x491fb9
push 2
mov ecx, dword [ebp + 8]
call fcn.004dee6c
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 0x4c]
test eax, eax
jl 0x491fb9
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 8]
mov eax, 1
jmp 0x491fd3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 8]
xor eax, eax
lea esp, [ebp - 0x184]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x491fdf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f15d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push esi
push edi
push 1
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.0045b266
test eax, eax
jne 0x492028
push 0x216
push str.filecore.cpp
call fcn.004dc030
test eax, eax
je 0x492028
int3
xor ecx, ecx
test ecx, ecx
jne 0x492000
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x49207e
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x492064
mov ecx, dword [ebp + 0xc]
push ecx
push str.Warning:_could_not_parse_the_path__s._n
call fcn.0045b025
add esp, 8
push 0x104
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x492171
lea ecx, [ebp - 0x1c]
call fcn.004d8557
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00492184
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004d85fa
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4920f6
lea ecx, [ebp - 0x1c]
call fcn.004d85fa
push eax
push str.Warning:_could_not_get_volume_information__s._n
call fcn.0045b025
add esp, 8
mov dword [ebp - 0x164], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004845ec
mov eax, dword [ebp - 0x164]
jmp 0x492171
mov edx, dword [ebp - 0x18]
and edx, 2
test edx, edx
jne 0x49210a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov ecx, dword [ebp - 0x18]
and ecx, 4
test ecx, ecx
jne 0x492152
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
je 0x492152
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x168], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004845ec
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x492aa9
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
push 0x5e
push str.filest.cpp
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0048d4d0
push 0x118
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004263f0
add esp, 0xc
push 0x104
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.004d85fa
push eax
mov edx, dword [ebp + 8]
add edx, 0x12
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0xffffffff
je 0x492c31
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x492b24
xor eax, eax
jmp 0x492c36
push 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0xffffffff
jne 0x492b49
xor eax, eax
jmp 0x492c36
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.004d85dc
test eax, eax
je 0x492b61
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x10], 0
jmp 0x492baa
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.004d85fa
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x492b85
mov edx, dword [ebp + 8]
mov byte [edx + 0x10], 0
jmp 0x492baa
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x1c]
mov byte [eax + 0x10], cl
mov edx, dword [ebp - 0x1c]
and dl, 0
test edx, edx
je 0x492baa
push str.Warning:_CFile::GetStatus___returns_m_attribute_without_high_order_flags._n
push 0x5e7d8c
call fcn.0045b025
add esp, 8
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0045b9cf
push eax
mov ecx, dword [ebp + 8]
call fcn.004d8cfe
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0045b9cf
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.004d8cfe
push 0xffffffffffffffff
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x28]
call fcn.0045b9cf
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.004d8cfe
mov ecx, dword [ebp + 8]
call fcn.004d8d30
test eax, eax
jne 0x492c10
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.004d8cfe
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.004d8d30
test eax, eax
jne 0x492c31
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.004d8cfe
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4a1000
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.004d85fa
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x4a1056
push 1
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x4a1054
push str.Warning:_File_save_with_new_name_failed._n
push 0x5e65b4
call fcn.0045b025
add esp, 8
xor eax, eax
jmp 0x4a1091
jmp 0x4a108c
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.004d85fa
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x4a108c
push str.Warning:_File_save_failed._n
push 0x5e65d4
call fcn.0045b025
add esp, 8
xor eax, eax
jmp 0x4a1091
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4a3b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
cmp dword [0x5f0f28], 0
je 0x4a3b3c
mov eax, dword [0x5f2ecc]
jmp 0x4a3c80
mov dword [0x5f0f28], 1
xor eax, eax
mov ax, word [0x5f2ec8]
test eax, eax
jne 0x4a3b7f
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x5f2ec4], eax
cmp dword [0x5f2ec4], 0
jne 0x4a3b76
mov word [0x5f2ec8], 1
jmp 0x4a3b7f
mov word [0x5f2ec8], 2
xor ecx, ecx
mov cx, word [0x5f2ec8]
cmp ecx, 2
jne 0x4a3bda
mov dword [ebp - 4], 0
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a3bda
cmp dword [0x5f2ec4], 0
je 0x4a3bda
push 0
push 0
mov edx, dword [0x5f2ec4]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x5f2ecc], eax
mov eax, dword [0x5f2ecc]
jmp 0x4a3c80
mov dword [0x5f2ecc], 3
cmp dword [0x5f2dec], 0
jne 0x4a3c61
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push str.Control_PanelDesktop
push OleUIEditLinksA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a3c5f
mov dword [ebp - 0x90], 0x80
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push 0
push str.WheelScrollLines
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a3c55
push 0xa
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.004275d0
add esp, 0xc
mov dword [0x5f2ecc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a3c7b
cmp dword [0x5f2de8], 0
jne 0x4a3c7b
push 0
push 0x5f2ecc
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x5f2ecc]
mov esp, ebp
pop ebp
ret

Function at 0x4aac36
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp + 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004aa860
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4aac95
push 0x20
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004aa9f4
test eax, eax
jne 0x4aac93
push 0xffffffffffffffff
push 0
mov edx, dword [ebp + 0x14]
push edx
call fcn.004aa649
mov ecx, dword [ebp + 8]
call fcn.004aa97f
jmp 0x4aacb4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0049ce13
mov dword [ebp - 4], 0
mov esp, ebp
pop ebp
ret
Function at 0x4ab324
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004aa8ae
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x4ab39d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4ab374
mov eax, dword [ebp - 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00484f47
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4ab391
push 0x100
push 0xff
mov ecx, dword [ebp + 0x10]
call fcn.00484d98
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
call fcn.00484ed3
jmp 0x4ab3ce
mov ecx, dword [ebp + 0x10]
call fcn.004d85fa
push eax
push 0xffffffffffffffff
push 0x14d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4ab3ce
mov ecx, dword [ebp + 0x10]
call fcn.004d85fa
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.0049ce13
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c59c9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c5ab8
mov eax, dword [ebp - 4]
push eax
call fcn.00485d74
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c5aa4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [ebp - 4]
je 0x4c5aa4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004c55e1
test eax, eax
je 0x4c5aa4
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x4c5a6a
mov ecx, dword [ebp - 0xc]
and ecx, 0x18000000
cmp ecx, 0x10000000
jne 0x4c5a6a
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
or ecx, 2
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
jmp 0x4c5aa4
cmp dword [ebp + 8], 0
je 0x4c5aa4
mov eax, dword [ebp - 0xc]
and eax, 0x18000000
test eax, eax
jne 0x4c5aa4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 2
test edx, edx
je 0x4c5aa4
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0xfffffffd
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
jmp 0x4c59e4
mov esp, ebp
pop ebp
ret 4
Function at 0x4c991e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x4c9942
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x4c997c
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c9996
push 0xc9
push str.dlgprop.cpp
call fcn.004dc030
test eax, eax
je 0x4c9996
int3
xor eax, eax
test eax, eax
jne 0x4c997c
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x4c9a71
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x4c9a41
push 0x5e47a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c99ee
push 0xe1
push str.dlgprop.cpp
call fcn.004dc030
test eax, eax
je 0x4c99ee
int3
xor ecx, ecx
test ecx, ecx
jne 0x4c99d4
cmp dword [ebp - 0x18], 0
je 0x4c9a3f
push 0x5e47b0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4c9a35
mov eax, 1
test eax, eax
je 0x4c9a2f
push 0xe6
push str.dlgprop.cpp
call fcn.004dc030
test eax, eax
je 0x4c9a2f
int3
xor ecx, ecx
test ecx, ecx
jne 0x4c9a12
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4c9a71
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x4c9a71
mov ecx, 1
test ecx, ecx
je 0x4c9a6b
push 0xed
push str.dlgprop.cpp
call fcn.004dc030
test eax, eax
je 0x4c9a6b
int3
xor edx, edx
test edx, edx
jne 0x4c9a4e
call fcn.004f2f73
cmp dword [eax + 0x1038], 0
je 0x4c9a8e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004c98d3
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004c9795
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x4c9abe
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x4c9ad3
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e4f2b
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4e4f52
push 0x3cc
push str.afxwin2.inl
call fcn.004dc030
test eax, eax
je 0x4e4f52
int3
xor ecx, ecx
test ecx, ecx
jne 0x4e4f35
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret