joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463f80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov eax, ecx
mov esi, edx
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test edi, edi
je 0x463faf
test esi, 7
je 0x463faf
movzx edx, byte [esi]
inc esi
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [ebp + edx*4]
dec edi
jne 0x463f94
cmp edi, 0x10
jb 0x464038
mov dword [esp + 0x14], edi
sub edi, 8
and edi, 0xfffffff8
sub dword [esp + 0x14], edi
add edi, esi
xor eax, dword [esi]
mov ebx, dword [esi + 4]
movzx ecx, bl
mov edx, dword [ebp + ecx*4 + 0xc00]
movzx ecx, bh
xor edx, dword [ebp + ecx*4 + 0x800]
shr ebx, 0x10
movzx ecx, bl
xor edx, dword [ebp + ecx*4 + 0x400]
xor edx, dword [esi + 8]
movzx ecx, al
movzx ebx, bh
xor edx, dword [ebp + ebx*4]
mov ebx, dword [esi + 0xc]
xor edx, dword [ebp + ecx*4 + 0x1c00]
movzx ecx, ah
add esi, 8
shr eax, 0x10
xor edx, dword [ebp + ecx*4 + 0x1800]
movzx ecx, al
xor edx, dword [ebp + ecx*4 + 0x1400]
movzx ecx, ah
mov eax, dword [ebp + ecx*4 + 0x1000]
movzx ecx, bl
xor eax, edx
cmp esi, edi
jne 0x463fd0
xor eax, dword [esi]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x46404f
movzx edx, byte [esi]
inc esi
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [ebp + edx*4]
dec edi
jne 0x46403c
pop ebp
pop edi
pop esi
pop ebx
ret 8
Function at 0x40cf72
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416004]
jne 0x40cf7c
repz ret
jmp fcn.0040d132

Function at 0x40f203
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040e0e3
and dword [ebp - 4], 0
cmp dword [0x43ff08], 0
mov ebx, eax
jne 0x40f2b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f365
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f365
push eax
call fcn.0040e071
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ff08], eax
call esi
push eax
call fcn.0040e071
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43ff0c], eax
call esi
push eax
call fcn.0040e071
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ff10], eax
call esi
push eax
call fcn.0040e071
pop ecx
mov dword [0x43ff18], eax
test eax, eax
je 0x40f2b4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e071
pop ecx
mov dword [0x43ff14], eax
mov eax, dword [0x43ff14]
cmp eax, ebx
je 0x40f30c
cmp dword [0x43ff18], ebx
je 0x40f30c
push eax
call fcn.0040e0ec
push dword [0x43ff18]
mov esi, eax
call fcn.0040e0ec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f30c
test edi, edi
je 0x40f30c
call esi
test eax, eax
je 0x40f303
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f303
test byte [ebp - 0xc], 1
jne 0x40f30c
or dword [ebp + 0x10], 0x200000
jmp 0x40f345
mov eax, dword [0x43ff0c]
cmp eax, ebx
je 0x40f345
push eax
call fcn.0040e0ec
pop ecx
test eax, eax
je 0x40f345
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f345
mov eax, dword [0x43ff10]
cmp eax, ebx
je 0x40f345
push eax
call fcn.0040e0ec
pop ecx
test eax, eax
je 0x40f345
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ff08]
call fcn.0040e0ec
pop ecx
test eax, eax
je 0x40f365
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f367
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
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.00416f48
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.00416fc0
pop ecx
test eax, eax
pop ecx
je 0x401600
push dword [0x423454]
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.00412012
lea eax, [ebp - 0x400]
push eax
call fcn.00412174
test eax, eax
jne 0x4015ad
push esi
call fcn.004121ae
jmp 0x401600
cmp dword [ebx + 8], 0x1f4
jae 0x401600
mov edi, 0x400
lea eax, [ebp - 0x800]
push edi
push 0
push eax
call fcn.00416f60
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.004121e8
test eax, eax
je 0x401605
push esi
call fcn.004121ae
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.004121e8
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.0040f4f4
push 1
mov ecx, esi
mov edi, eax
call fcn.0040f4d9
mov ecx, esi
call fcn.0040f4d2
push eax
mov ecx, esi
call fcn.0040f459
mov ecx, edi
call fcn.00410f10
push eax
mov ecx, esi
call fcn.0040f494
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.0040f4a1
shr eax, 0xa
push eax
push edi
call fcn.0041171c
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.004121e8
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.00417140
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.00412191
test eax, eax
jne 0x4019dc
lea eax, [ebp - 0x400]
push eax
call fcn.004120e7
lea eax, [ebp - 0x400]
mov edi, 0x42bab4
push eax
push edi
call fcn.00417050
pop ecx
pop ecx
push dword [0x4281dc]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040fea9
test eax, eax
jne 0x401a2b
push 2
mov ecx, esi
call fcn.0040f4d9
push dword [0x4281dc]
mov ecx, esi
call fcn.0040f48d
push eax
push 0x42db88
call fcn.00412012
jmp 0x401a47
push dword [0x4281dc]
push edi
push 0x42db88
call fcn.00412012
mov ecx, esi
call fcn.0040febd
test eax, eax
je 0x401aa8
push dword [0x4281f0]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040fea9
test eax, eax
je 0x401a77
push 0
push 1
push dword [0x4281f0]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.004100a6
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.00410005
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.0040f4a1
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.00411d67
add esp, 0xc
test eax, eax
jge 0x401b41
push edi
push esi
push 4
call fcn.00411d67
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, 0x4216e6
call fcn.004175d4
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.00416f48
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.00416f48
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.004167f5
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.004167f5
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.004176d0
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 0x405e5d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4219ac
call fcn.004175d4
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 0x405e95
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
mov cl, byte [eax]
cmp cl, 0x78
je 0x405ed4
cmp cl, 0x58
je 0x405ed4
push edi
call fcn.004171f2
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 0x405f9d
mov ecx, dword [ebp + 0x10]
call fcn.0040fe8c
test eax, eax
je 0x405edf
push 0x42bab4
jmp 0x405ee8
push eax
call esi
push eax
call fcn.00405e1a
jmp 0x405e9a
mov ecx, dword [ebp + 0x10]
call fcn.0040f48d
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.00412012
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 0x405f9d
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 0x405f9d
lea eax, [ebp - 0x2c]
push eax
call fcn.00405e1a
pop ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x405fbc
inc edi
cmp edi, ebx
jb 0x405f48
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 0x405f9f

Function at 0x406323
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40637a
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 0x406371
mov byte [0x42d75c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40649f
Capabilities:
Hide graphical window

Disassembly:
push dword [0x42d778]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4064cb
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 0x4064cc
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.0040f3a5
cmp dword [eax], 1
je 0x406536
cmp dword [eax + 4], ebx
je 0x40658b
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 0x40658b
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 0x406b90
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00407635
test eax, eax
pop ecx
jne 0x406ced
mov esi, 0x42e1b0
push esi
call fcn.004076cc
test eax, eax
pop ecx
jne 0x406ced
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x42e1b0]
push 0x42e1a4
mov dword [eax], ecx
call fcn.00407685
test eax, eax
pop ecx
jne 0x406ced
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x42e1a4]
mov dword [ebx], eax
cmp dword [0x42e1b0], 1
jne 0x406bf3
xor eax, eax
jmp 0x406ced
lea eax, [ebp + 8]
push eax
push 0x42e1a8
call fcn.00406b7c
test eax, eax
jne 0x406ced
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 0x406c32
push 0xfffffffffffffffc
pop eax
jmp 0x406ced
push esi
call fcn.004076f4
mov edi, eax
pop ecx
test edi, edi
je 0x406c68
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 0x406ceb
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 0x406f1c
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 0x406cab
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x406cb4
xor edi, edi
jmp 0x406cbc
cmp edi, 2
jne 0x406cbc
or edi, 0xffffffff
mov eax, dword [0x42e1b4]
test eax, eax
je 0x406ce4
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 0x4071d1
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 0x407358
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 0x407358
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x407243
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 0x407358
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.00407838
push 1
push 0x427694
push esi
mov edi, eax
call fcn.00407838
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 0x407358
test edi, edi
je 0x407358
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 0x4072e2
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 0x4072e8
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x4072f8
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x407358
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 0x407685
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 0x4076b4
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x42767c
push eax
call fcn.00418150
add esp, 0xc
xor eax, eax
leave
ret