joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x716a4bf7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x38b10cef
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4013ee
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
push ebx
push esi
push edi
mov esi, 0x4276d4
push 0x4276d0
mov ebx, ecx
push esi
call fcn.00414020
pop ecx
test eax, eax
pop ecx
je 0x401490
push dword [0x41f454]
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.0040f30d
lea eax, [ebp - 0x400]
push eax
call fcn.0040f445
test eax, eax
jne 0x40143d
push esi
call fcn.0040f47f
jmp 0x401490
cmp dword [ebx + 8], 0x1f4
jae 0x401490
mov edi, 0x400
lea eax, [ebp - 0x800]
push edi
push 0
push eax
call fcn.00413fc0
add esp, 0xc
lea eax, [ebp - 0x800]
mov ecx, ebx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004016e2
test eax, eax
jne 0x401495
lea eax, [ebp - 0x400]
push eax
call fcn.0040f4b9
test eax, eax
je 0x401495
push esi
call fcn.0040f47f
test eax, eax
je 0x401495
push 1
pop eax
jmp 0x401500
cmp byte [ebp - 0x800], 0
lea esi, [ebp - 0x800]
je 0x4014fe
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0xc00]
push edi
push eax
push dword [0x41f464]
push esi
push dword [0x41f458]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xc00]
push eax
call fcn.0040f4b9
test eax, eax
je 0x4014e9
push 0
lea eax, [ebp - 0x400]
push esi
push eax
mov ecx, ebx
call fcn.00401715
jmp 0x4014ec
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 0x4014a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401797
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.0040cdfc
push 1
mov ecx, esi
mov edi, eax
call fcn.0040cde1
mov ecx, esi
call fcn.0040cdda
push eax
mov ecx, esi
call fcn.0040cd61
mov ecx, edi
call fcn.0040e2c4
push eax
mov ecx, esi
call fcn.0040cd9c
lea eax, [ebp - 0x800]
push 0x400
push eax
mov ecx, ebx
call fcn.00401914
test eax, eax
jne 0x401816
mov edi, 0x47f
mov ecx, esi
mov dword [0x42937c], edi
call fcn.0040cda9
shr eax, 0xa
push eax
push edi
call fcn.0040eabb
pop ecx
pop ecx
jmp 0x401908
lea eax, [ebp - 0x400]
push eax
push 0
lea eax, [ebp - 0x800]
push 0x423150
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x400]
push eax
call fcn.0040f4b9
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.004141a0
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.0040f462
test eax, eax
jne 0x40186c
lea eax, [ebp - 0x400]
push eax
call fcn.0040f3b8
lea eax, [ebp - 0x400]
mov edi, 0x4276d4
push eax
push edi
call fcn.004140b0
pop ecx
pop ecx
push dword [0x423f60]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040d442
test eax, eax
jne 0x4018bb
push 2
mov ecx, esi
call fcn.0040cde1
push dword [0x423f60]
mov ecx, esi
call fcn.0040cd95
push eax
push 0x4284b0
call fcn.0040f30d
jmp 0x4018d7
push dword [0x423f60]
push edi
push 0x4284b0
call fcn.0040f30d
mov ecx, esi
call fcn.0040d487
test eax, eax
je 0x401908
mov ecx, ebx
call fcn.004019d5
test eax, eax
jne 0x4018f4
mov eax, 0x481
push 0
mov dword [0x42937c], eax
push eax
jmp 0x40180a
cmp dword [esi + 0x1420], 5
jne 0x40190c
mov ecx, esi
call fcn.0040d5cf
test eax, eax
jne 0x40190c
xor eax, eax
jmp 0x40190f
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401914
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.0040cda9
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 0x401955
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.004019aa
test eax, eax
jne 0x4019a1
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x401971
push esi
push edi
mov ecx, ebx
call fcn.004019aa
test eax, eax
jne 0x4019a1
push 0x4276d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.0040f0f4
add esp, 0xc
test eax, eax
jge 0x4019a1
push edi
push esi
push 4
call fcn.0040f0f4
add esp, 0xc
test eax, eax
jge 0x4019a1
xor eax, eax
jmp 0x4019a4
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4019d5
Capabilities:
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
call fcn.00401046
mov ebp, eax
mov esi, 0x400
push esi
push 0
lea edi, [ebp + 0x410]
push edi
call fcn.00413fc0
add esp, 0xc
mov ebx, 0x4276d0
push 0x4284b0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push dword [0x41f470]
push dword [0x41f46c]
call edi
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401ae3
lea eax, [ebp + 0x810]
push esi
push 0
push eax
call fcn.00413fc0
add esp, 0xc
lea eax, [ebp + 0x810]
push 0x4284b0
push esi
push eax
push ebx
push dword [0x41f478]
push dword [0x41f46c]
call edi
lea eax, [ebp + 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401ae3
lea eax, [ebp + 0x10]
push esi
push 0
push eax
call fcn.00413fc0
add esp, 0xc
lea eax, [ebp + 0x10]
push 0x4284b0
push esi
push eax
push ebx
push dword [0x41f474]
push dword [0x41f46c]
call edi
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401ae3
push 2
lea eax, [esp + 0x16]
push 0
push eax
call fcn.00413fc0
add esp, 0xc
lea eax, [esp + 0x12]
push 0x4284b0
push 2
push eax
push ebx
push dword [0x41f47c]
push dword [0x41f46c]
call edi
lea eax, [esp + 0x12]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x401aea
xor eax, eax
jmp 0x401bfb
and dword [ebp + 0xc], 0
cmp dword [0x429380], 0
jne 0x401b12
lea eax, [esp + 0x12]
push 0x423158
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401b12
mov dword [ebp + 0xc], 1
and byte [esp + 0x14], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [esp + 0x15]
push 0x4284b0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
push ebx
push dword [0x41f480]
push dword [0x41f484]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
mov dword [ebp + 0x1014], 0x1f40
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401b71
lea eax, [esp + 0x14]
push eax
call fcn.004141d5
pop ecx
mov dword [ebp + 0x1014], eax
lea edi, [ebp + 0x1018]
push ebx
push edi
call fcn.00414020
pop ecx
test eax, eax
pop ecx
jne 0x401bd0
push 0x4284b0
push esi
push edi
push ebx
push dword [0x41f488]
push dword [0x41f46c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call fcn.004141c7
pop ecx
mov ebx, eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 0x1420], 5
je 0x401bd0
push 1
push edi
push 0x423154
mov ecx, ebp
call fcn.0040d840
add ebp, 0x1420
cmp dword [ebp], 0
jne 0x401bf8
push 0x4284b0
push 0
push dword [0x41f48c]
push dword [0x41f46c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp], eax
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x401da8
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x41e656
call fcn.00414644
sub esp, 0x428
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00401f67
test al, al
je 0x401ddb
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x401f57
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
mov byte [ebp - 0x434], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00401f8f
mov edi, 0x400
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
mov dword [esi + 0x5c], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
push eax
push 0xffffffffffffffff
mov dword [esi + 0x60], eax
push dword [ebp + 0xc]
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
call fcn.004141c7
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x401e78
mov eax, dword [esi + 0x5c]
lea ecx, [edi + 8]
push eax
mov dword [edi], ebx
mov dword [edi + 4], esi
call fcn.00402159
mov dword [edi + 0x18], 0x1000
mov byte [edi + 0x1c], 1
jmp 0x401e7a
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 0x401d62
push ebx
push ebx
mov dword [esi + 0x64], edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 4
mov dword [ebp - 0x10], edi
call fcn.004141c7
mov dword [eax], edi
pop ecx
mov edi, 0xff
mov dword [ebp + 8], eax
push edi
push 0xffffffffffffffff
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x401efc
push 1
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401ef3
cmp dword [ebp - 0x30], 0x8032
jne 0x401ee7
mov ecx, dword [esi + 0x64]
call fcn.00402210
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401ec3
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
jmp 0x401eb3
push dword [ebp + 8]
call fcn.00414663
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [esi + 0x5c]
call edi
push dword [esi + 0x60]
call edi
mov esi, dword [esi + 0x64]
pop edi
cmp esi, ebx
je 0x401f2c
lea ecx, [esi + 8]
call fcn.0040205e
push esi
call fcn.00403020
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x401f36
xor eax, eax
jmp 0x401f57
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
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], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40219e
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 + 0xc]
test ebx, ebx
jne 0x4021b7
xor esi, esi
jmp 0x4021e4
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.00414820
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 0x402206
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4021fd
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x4021a9
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4052f6
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41e84c
call fcn.00414644
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 0x40532e
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
mov cl, byte [eax]
cmp cl, 0x78
je 0x40536d
cmp cl, 0x58
je 0x40536d
push edi
call fcn.00414260
pop ecx
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
push 0x452
call fcn.00401754
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401797
test eax, eax
je 0x405436
mov ecx, dword [ebp + 0x10]
call fcn.0040d425
test eax, eax
je 0x405378
push 0x4276d4
jmp 0x405381
push eax
call esi
push eax
call fcn.004052b3
jmp 0x405333
mov ecx, dword [ebp + 0x10]
call fcn.0040cd95
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 [0x423f60]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.0040f30d
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 0x405436
push edi
push 0x423484
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 0x4276d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405436
lea eax, [ebp - 0x2c]
push eax
call fcn.004052b3
pop ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x405455
inc edi
cmp edi, ebx
jb 0x4053e1
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040178c
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 0x405438
Function at 0x4057b6
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
mov eax, 0x41e87f
call fcn.00414644
sub esp, 0x730
push esi
lea eax, [ebp - 0x33c]
push edi
mov esi, 0x104
push eax
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x33c]
push 0x4234cc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x73c]
push 0x400
push eax
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x73c]
lea ecx, [ebp - 0x238]
push eax
call fcn.0040e100
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x238]
push dword [0x423f60]
call fcn.0040e35b
test eax, eax
je 0x40586d
lea eax, [ebp - 0x110]
add edi, 4
push eax
push esi
push edi
push 0x4276d0
push str.PASSWORD
push 0x4234bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0040e23e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40588a
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 0x4058e1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x42837c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058d8
mov byte [0x428480], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4059c8
Capabilities:
Hide graphical window

Disassembly:
push dword [0x42849c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4059f4
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x42849c]
call esi
push 0
push dword [0x428490]
call esi
pop esi
ret
Function at 0x4059f5
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 [0x42849c]
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.0040cd44
cmp dword [eax], 1
je 0x405a5f
cmp dword [eax + 4], ebx
je 0x405ab4
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 0x405ab4
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 [0x42849c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4060ab
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00406afc
test eax, eax
pop ecx
jne 0x406208
mov esi, 0x428ad8
push esi
call fcn.00406b93
test eax, eax
pop ecx
jne 0x406208
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x428ad8]
push 0x428acc
mov dword [eax], ecx
call fcn.00406b4c
test eax, eax
pop ecx
jne 0x406208
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x428acc]
mov dword [ebx], eax
cmp dword [0x428ad8], 1
jne 0x40610e
xor eax, eax
jmp 0x406208
lea eax, [ebp + 8]
push eax
push 0x428ad0
call fcn.00406097
test eax, eax
jne 0x406208
mov eax, dword [0x428ad8]
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 [0x428adc], eax
jne 0x40614d
push 0xfffffffffffffffc
pop eax
jmp 0x406208
push esi
call fcn.00406bbb
mov edi, eax
pop ecx
test edi, edi
je 0x406183
push dword [0x428adc]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x428adc]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x406206
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x428ac8], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x4288bc], eax
movzx eax, word [ebp + 0x14]
push 0x4063a8
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x4288bc]
test eax, eax
je 0x4061c6
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x4061cf
xor edi, edi
jmp 0x4061d7
cmp edi, 2
jne 0x4061d7
or edi, 0xffffffff
mov eax, dword [0x428adc]
test eax, eax
je 0x4061ff
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x428adc]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x428acc], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40665d
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 0x4067e4
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 0x4067e4
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x4066cf
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 0x4067e4
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.00406cff
push 1
push 0x423540
push esi
mov edi, eax
call fcn.00406cff
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 0x4067e4
test edi, edi
je 0x4067e4
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 0x40676e
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 0x406774
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x406784
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x4067e4
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 0x406b4c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4289c4
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x4276d0
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x406b7b
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x423558
push eax
call fcn.004151b0
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x406b93
Capabilities:
Read .ini file

Disassembly:
push 0x4289c4
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 0x406bbb
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 0x406c3b
push esi
push 0x423484
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 0x4289c4
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x4276d0
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x406c38
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x423558
push eax
call fcn.004151b0
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 0x406bd2
jmp 0x406c3b
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret