joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40141d
Capabilities:
Get file size

Disassembly:
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40149f
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x401497
push ebp
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
je 0x40148f
push dword [esp + 0x18]
push dword [esp + 0x18]
push ebp
call fcn.004013bf
add esp, 0xc
mov esi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop edi
pop esi
ret

Function at 0x4014a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00416f18
mov esi, eax
pop ecx
test esi, esi
je 0x4014f2
xor edx, edx
test ebx, ebx
jbe 0x4014f2
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4014dc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40155e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
push ebx
push esi
push edi
mov esi, 0x42bab4
push 0x42bab0
mov ebx, ecx
push esi
call fcn.00416f90
pop ecx
test eax, eax
pop ecx
je 0x401600
push dword [0x423454]
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.0041200c
lea eax, [ebp - 0x400]
push eax
call fcn.00412144
test eax, eax
jne 0x4015ad
push esi
call fcn.0041217e
jmp 0x401600
cmp dword [ebx + 8], 0x1f4
jae 0x401600
mov edi, 0x400
lea eax, [ebp - 0x800]
push edi
push 0
push eax
call fcn.00416f30
add esp, 0xc
lea eax, [ebp - 0x800]
mov ecx, ebx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.00401852
test eax, eax
jne 0x401605
lea eax, [ebp - 0x400]
push eax
call fcn.004121b8
test eax, eax
je 0x401605
push esi
call fcn.0041217e
test eax, eax
je 0x401605
push 1
pop eax
jmp 0x401670
cmp byte [ebp - 0x800], 0
lea esi, [ebp - 0x800]
je 0x40166e
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0xc00]
push edi
push eax
push dword [0x423464]
push esi
push dword [0x423458]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xc00]
push eax
call fcn.004121b8
test eax, eax
je 0x401659
push 0
lea eax, [ebp - 0x400]
push esi
push eax
mov ecx, ebx
call fcn.00401885
jmp 0x40165c
inc dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x401614
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401907
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov esi, eax
mov ecx, esi
call fcn.0040f4f3
push 1
mov ecx, esi
mov edi, eax
call fcn.0040f4d8
mov ecx, esi
call fcn.0040f4d1
push eax
mov ecx, esi
call fcn.0040f458
mov ecx, edi
call fcn.00410f0a
push eax
mov ecx, esi
call fcn.0040f493
lea eax, [ebp - 0x800]
push 0x400
push eax
mov ecx, ebx
call fcn.00401ab4
test eax, eax
jne 0x401986
mov edi, 0x47f
mov ecx, esi
mov dword [0x42ea5c], edi
call fcn.0040f4a0
shr eax, 0xa
push eax
push edi
call fcn.00411716
pop ecx
pop ecx
jmp 0x401aa8
lea eax, [ebp - 0x400]
push eax
push 0
lea eax, [ebp - 0x800]
push 0x42719c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x400]
push eax
call fcn.004121b8
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.00417110
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.00412161
test eax, eax
jne 0x4019dc
lea eax, [ebp - 0x400]
push eax
call fcn.004120b7
lea eax, [ebp - 0x400]
mov edi, 0x42bab4
push eax
push edi
call fcn.00417020
pop ecx
pop ecx
push dword [0x4281dc]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040fea8
test eax, eax
jne 0x401a2b
push 2
mov ecx, esi
call fcn.0040f4d8
push dword [0x4281dc]
mov ecx, esi
call fcn.0040f48c
push eax
push 0x42db88
call fcn.0041200c
jmp 0x401a47
push dword [0x4281dc]
push edi
push 0x42db88
call fcn.0041200c
mov ecx, esi
call fcn.0040febc
test eax, eax
je 0x401aa8
push dword [0x4281f0]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040fea8
test eax, eax
je 0x401a77
push 0
push 1
push dword [0x4281f0]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.004100a5
mov ecx, ebx
call fcn.00401b75
test eax, eax
jne 0x401a94
mov eax, 0x481
push 0
mov dword [0x42ea5c], eax
push eax
jmp 0x40197a
cmp dword [esi + 0x14bc], 5
jne 0x401aac
mov ecx, esi
call fcn.00410004
test eax, eax
jne 0x401aac
xor eax, eax
jmp 0x401aaf
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401ab4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.0040f4a0
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401af5
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00401b4a
test eax, eax
jne 0x401b41
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x401b11
push esi
push edi
mov ecx, ebx
call fcn.00401b4a
test eax, eax
jne 0x401b41
push 0x42bab0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.00411d61
add esp, 0xc
test eax, eax
jge 0x401b41
push edi
push esi
push 4
call fcn.00411d61
add esp, 0xc
test eax, eax
jge 0x401b41
xor eax, eax
jmp 0x401b44
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4020fd
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x4216b6
call fcn.004175a4
sub esp, 0x428
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.0040230b
test al, al
je 0x402130
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x4022b4
and byte [ebp - 0x434], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
push esi
push eax
mov ecx, ebx
push dword [ebp + 8]
call fcn.00402333
mov esi, 0x400
xor edi, edi
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
mov dword [ebx + 0x90], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + 0x94], eax
push dword [ebp + 0xc]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x2c
call fcn.00416f18
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4021c6
push 4
push ebx
push dword [ebx + 0x90]
mov ecx, eax
call fcn.004022c4
jmp 0x4021c8
xor eax, eax
mov dword [ebx + 0x98], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push ebx
push 0x4020b1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x10], esi
call fcn.00416f18
mov dword [eax], esi
pop ecx
mov esi, 0xff
mov dword [ebp + 8], eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x402250
push 1
push edi
push edi
lea eax, [ebp - 0x34]
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x402247
cmp dword [ebp - 0x30], 0x8032
jne 0x40223b
mov ecx, dword [ebx + 0x98]
call fcn.0040273a
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402214
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
jmp 0x402204
push dword [ebp + 8]
call fcn.004167c3
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [ebx + 0x90]
call esi
push dword [ebx + 0x94]
call esi
mov ebx, dword [ebx + 0x98]
pop esi
cmp ebx, edi
je 0x402289
lea ecx, [ebx + 8]
call fcn.0040248f
push ebx
call fcn.004167c3
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x402293
xor eax, eax
jmp 0x4022b4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], edi
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4026c8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x4026e1
xor esi, esi
jmp 0x40270e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004176a0
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402730
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x402727
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x4026d3
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e5c
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x42197c
call fcn.004175a4
sub esp, 0x5a4
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
push edi
cmp byte [edi], 0x30
jne 0x405e94
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
mov cl, byte [eax]
cmp cl, 0x78
je 0x405ed3
cmp cl, 0x58
je 0x405ed3
push edi
call fcn.004171c2
pop ecx
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
push 0x452
call fcn.004018c4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401907
test eax, eax
je 0x405f9c
mov ecx, dword [ebp + 0x10]
call fcn.0040fe8b
test eax, eax
je 0x405ede
push 0x42bab4
jmp 0x405ee7
push eax
call esi
push eax
call fcn.00405e19
jmp 0x405e99
mov ecx, dword [ebp + 0x10]
call fcn.0040f48c
push eax
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and byte [ebp - 0x5b0], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5af]
rep stosd dword es:[edi], eax
push dword [0x4281dc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.0041200c
lea eax, [ebp - 0x5b0]
mov esi, str.Languages
push eax
push ebx
push str.Count
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x405f9c
push edi
push 0x4275e0
lea eax, [ebp - 0xac]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x2c]
push 0x13
push eax
lea eax, [ebp - 0xac]
push 0x42bab0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405f9c
lea eax, [ebp - 0x2c]
push eax
call fcn.00405e19
pop ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x405fbb
inc edi
cmp edi, ebx
jb 0x405f47
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004018fc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp + 0xc]
push 1
pop esi
mov dword [eax], ecx
jmp 0x405f9e

Function at 0x406322
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406379
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x42c75c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406370
mov byte [0x42d75c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40649e
Capabilities:
Hide graphical window

Disassembly:
push dword [0x42d778]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4064ca
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x42d778]
call esi
push 0
push dword [0x42d76c]
call esi
pop esi
ret
Function at 0x4064cb
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x42d778]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0040f3a4
cmp dword [eax], 1
je 0x406535
cmp dword [eax + 4], ebx
je 0x40658a
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40658a
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x42d778]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406b8f
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00407634
test eax, eax
pop ecx
jne 0x406cec
mov esi, 0x42e1b0
push esi
call fcn.004076cb
test eax, eax
pop ecx
jne 0x406cec
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x42e1b0]
push 0x42e1a4
mov dword [eax], ecx
call fcn.00407684
test eax, eax
pop ecx
jne 0x406cec
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x42e1a4]
mov dword [ebx], eax
cmp dword [0x42e1b0], 1
jne 0x406bf2
xor eax, eax
jmp 0x406cec
lea eax, [ebp + 8]
push eax
push 0x42e1a8
call fcn.00406b7b
test eax, eax
jne 0x406cec
mov eax, dword [0x42e1b0]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x42e1b4], eax
jne 0x406c31
push 0xfffffffffffffffc
pop eax
jmp 0x406cec
push esi
call fcn.004076f3
mov edi, eax
pop ecx
test edi, edi
je 0x406c67
push dword [0x42e1b4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x42e1b4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x406cea
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x42e1a0], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x42df94], eax
movzx eax, word [ebp + 0x14]
push 0x406f1b
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x42df94]
test eax, eax
je 0x406caa
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x406cb3
xor edi, edi
jmp 0x406cbb
cmp edi, 2
jne 0x406cbb
or edi, 0xffffffff
mov eax, dword [0x42e1b4]
test eax, eax
je 0x406ce3
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x42e1b4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x42e1a4], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4071d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x407357
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x407357
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x407242
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x407357
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.00407837
push 1
push 0x427694
push esi
mov edi, eax
call fcn.00407837
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x407357
test edi, edi
je 0x407357
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x4072e1
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x4072e7
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x4072f7
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x407357
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407684
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x42e09c
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x42bab0
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4076b3
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x42767c
push eax
call fcn.00418120
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x4076cb
Capabilities:
Read .ini file

Disassembly:
push 0x42e09c
push 0
push str.Count
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffffa
ret

Function at 0x4076f3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp dword [edi], esi
jbe 0x407773
push esi
push 0x4275e0
lea eax, [ebp - 0x94]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x42e09c
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x42bab0
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x407770
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x42767c
push eax
call fcn.00418120
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [eax + esi*4], ecx
inc esi
cmp esi, dword [edi]
jb 0x40770a
jmp 0x407773
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4078e5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x42db88
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0x42bab0
push dword [ebp + 0xc]
push dword [0x4235b8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jle 0x4079bc
mov edi, dword [ebp + 8]
push edi
call esi
push dword [ebp + 0x10]
xor ecx, ecx
cmp byte [eax + edi - 1], 0x20
mov dword [ebp + 8], eax
setne cl
mov dword [ebp + 0xc], ecx
call esi
push dword [ebp + 0x18]
mov ebx, eax
call esi
push dword [ebp + 0x1c]
add ebx, eax
call esi
add eax, dword [ebp + 8]
mov edx, ebx
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
setne cl
add eax, edx
lea eax, [ecx + eax + 1]
cmp dword [ebp + 0x14], eax
jl 0x4079bc
cmp dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x407996
push 0x4277dc
push edi
call esi
push dword [ebp + 0x10]
push edi
call esi
cmp dword [ebp + 0x1c], ebx
je 0x4079a7
push dword [ebp + 0x1c]
push edi
call esi
lea eax, [ebp - 0x104]
push eax
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x4079bc
push dword [ebp + 0x18]
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407afc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and byte [ebp - 0x18], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 0x42db88
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x18]
push 0x14
mov edi, 0x42bab0
and dword [ebp - 4], 0
push eax
push edi
push dword [ebp + 8]
push dword [0x4235b8]
call esi
cmp byte [ebp - 0x18], 0x79
je 0x407b48
cmp byte [ebp - 0x18], 0x59
jne 0x407b80
cmp dword [0x42ea60], 0
je 0x407b79
push ebx
lea eax, [ebp - 0x2c]
push 0x14
push eax
push edi
push dword [ebp + 0xc]
push dword [0x4235b8]
call esi
cmp byte [ebp - 0x2c], 0x79
je 0x407b80
cmp byte [ebp - 0x2c], 0x59
je 0x407b80
mov dword [ebp - 4], 1
jmp 0x407b80
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8