joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d335
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebp
push esi
xor eax, eax
push 0x208
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
call fcn.0041cd00
add esp, 0xc
cmp dword [esp + 0x21c], 0
je 0x44d431
cmp dword [esp + 0x220], 0
je 0x44d431
cmp dword [esp + 0x228], 0
je 0x44d431
mov ebp, dword [esp + 0x22c]
test ebp, ebp
je 0x44d431
mov esi, dword [esp + 0x230]
test esi, esi
je 0x44d431
lea eax, [esp + 8]
push eax
push dword [esp + 0x21c]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x44d431
cmp dword [esp + 8], 0
je 0x44d431
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [esp + 8]
test eax, eax
je 0x44d42b
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [esp + 0x224]
lea eax, [esp + 0x10]
push eax
push str._s_s.lnk
lea eax, [ebp - 1]
push eax
push dword [esp + 0x238]
call fcn.00403c67
add esp, 0x14
xor eax, eax
cmp word [esi], ax
cmove esi, dword [esp + 0x220]
push eax
push esi
push ecx
push ecx
push dword [esp + 0x238]
push dword [esp + 0x234]
push dword [esp + 0x234]
call fcn.0044d07a
jmp 0x44d433
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
pop esi
pop ebp
add esp, 0x20c
ret 0x1c

Function at 0x44d4c8
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
mov esi, 0x208
lea eax, [ebp - 0x428]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.0041cd00
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44d5f9
cmp dword [ebp + 0x10], ebx
je 0x44d5f9
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x44d5f9
cmp dword [ebp - 4], ebx
je 0x44d5f9
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x44d5e7
push 0x46cfbc
mov edx, esi
lea ecx, [ebp - 0x428]
call fcn.00415d7c
push dword [ebp + 0xc]
mov edx, esi
lea ecx, [ebp - 0x428]
call fcn.00415d7c
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44d5c5
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x21c], 0x4654d8
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x21c]
xor eax, eax
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x210], 0x104
call fcn.0040349c
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x46cfd4
call fcn.00410f8c
mov bl, al
jmp 0x44d5c7
mov bl, 1
mov edx, dword [ebp + 0x14]
and edx, 0x7fffffff
je 0x44d5e7
push SysReAllocString
lea eax, [ebp - 0x428]
push eax
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0044cc63
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
test bl, bl
setne al
jmp 0x44d5fb
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x44d652
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 0x208]
push ebx
mov ebx, 0x208
push ebx
push 0
push eax
call fcn.0041cd00
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x44d6cf
mov ecx, dword [ebp + 0xc]
call fcn.004095cd
cmp eax, 1
jb 0x44d6cf
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x44d6cf
push 0x46cfbc
mov edx, ebx
lea ecx, [ebp - 0x208]
call fcn.00415d7c
push dword [ebp + 0xc]
mov edx, ebx
lea ecx, [ebp - 0x208]
call fcn.00415d7c
sub esp, 0xc
lea eax, [ebp - 0x208]
push eax
call fcn.0044cd12
pop ebx
leave
ret 8

Function at 0x44d708
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x44d720
xor eax, eax
jmp 0x44d7b7
push SysReAllocString
push esi
push ecx
mov edx, 0x208
lea ecx, [ebp - 0x410]
call fcn.0044cc63
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x412]
jmp 0x44d756
cmp word [eax], 0x5c
je 0x44d762
sub eax, 2
lea ecx, [ebp - 0x410]
cmp eax, ecx
ja 0x44d74d
jmp 0x44d79d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44d79d
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44d79d
lea eax, [ebp - 0x410]
mov ecx, 0x4c7270
push eax
call fcn.0044d708
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44d7b4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x44d7b7
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x453d03
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
mov esi, ecx
call fcn.0041cd00
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x468]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004049dc
mov ecx, dword [esi + 0x58]
lea eax, [ecx + 0x4a4]
push eax
lea eax, [ecx + 0x29c]
push eax
lea eax, [ebp - 0x468]
push str.__s_s___install
push eax
call fcn.004011fb
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp - 0x464]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x453d85
mov eax, str.Install_Fail_Start_Program
jmp 0x453db4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x453da3
push 0xea60
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], ebx
je 0x453dad
push dword [ebp - 0xc]
call esi
mov bl, 1
mov eax, str.Install_Executed
push eax
mov ecx, 0x4b40d0
call fcn.0043f335
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x453dc6
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x69c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x58]
cmp dword [eax + 8], 3
jne 0x453fc5
xor ebp, ebp
cmp dword [edi + 0x879c], ebp
ja 0x453df6
cmp dword [edi + 0x8798], 0x40
jb 0x453fc5
lea ecx, [esp + 0x80]
call fcn.00403638
lea ecx, [esp + 0x298]
call fcn.004049dc
lea ecx, [esp + 0x10]
call fcn.0044ca78
mov eax, dword [edi + 0x58]
lea ecx, [esp + 0x80]
add eax, 0x29c
push eax
call fcn.0040349c
mov edx, dword [esp + 0x84]
test edx, edx
je 0x453e4f
mov eax, dword [esp + 0x88]
inc eax
push eax
push edx
call fcn.0042d2aa
mov edx, dword [esp + 0x8c]
pop ecx
pop ecx
lea ecx, [esp + 0x10]
call fcn.0044c9ec
mov eax, dword [esp + 0x88]
add eax, eax
push eax
push edx
call fcn.0044cac3
lea ecx, [esp + 0x10]
call fcn.0044cb7b
push dword [esp + 0x8c]
lea ecx, [esp + 0x14]
push dword [esp + 0x88]
call fcn.0044cbeb
push dword [esp + 0x29c]
push ebp
push ebp
push 0x1a
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x298]
call fcn.00403f78
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebp
push dword [esp + 0x2a0]
call esi
push 0x470070
lea ecx, [esp + 0x29c]
call fcn.00403846
push ebp
push dword [esp + 0x2a0]
call esi
push str.Terminal_
lea ecx, [esp + 0x29c]
call fcn.00403846
push ebp
push dword [esp + 0x2a0]
call esi
push dword [esp + 0x84]
lea ecx, [esp + 0x29c]
call fcn.00403846
push ebp
push dword [esp + 0x2a0]
call esi
push 0x475fbc
lea ecx, [esp + 0x29c]
call fcn.00403846
push ebp
push dword [esp + 0x2a0]
call esi
push str._server.ini
lea ecx, [esp + 0x29c]
call fcn.00403846
push ecx
push ecx
push dword [esp + 0x2a4]
lea ebx, [edi + 0x8790]
mov ecx, ebx
call fcn.0040427c
test al, al
je 0x453f96
mov eax, dword [edi + 0x58]
add eax, 0x29c
push eax
lea eax, [esp + 0x29c]
push str._sconfig_servers.dat
push eax
call fcn.004011fb
add esp, 0xc
push dword [esp + 0x29c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call fcn.0043ec6a
push str.Account_Request_Finish
mov ecx, 0x4b40d0
call fcn.0043f335
mov esi, str.Account_Request_Success
jmp 0x453f9b
mov esi, str.Account_Request_Error
mov edi, 0x4b40d0
push esi
mov ecx, edi
call fcn.0043f335
push ebp
push esi
push ebp
push ebp
push edi
call fcn.0043f10b
add esp, 0x14
mov ecx, ebx
call fcn.00404918
lea ecx, [esp + 0x10]
call fcn.0044ca97
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x69c
ret
Function at 0x453fd0
Capabilities:
Check if file exists
Get file attributes
Set registry value

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x14]
push edi
call fcn.00403638
mov eax, dword [ebp + 0x58]
xor ebx, ebx
add eax, 0x6ac
mov dword [esp + 0x10], ebx
push eax
mov eax, ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [esp + 0x14]
mov edx, 0x20206
mov ecx, 0x20106
push eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0x58]
push ebx
cmp dword [eax + 4], 2
cmovne ecx, edx
push ecx
push ebx
push ebx
push ebx
push dword [esp + 0x38]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x45420f
mov esi, dword [ebp + 0x58]
add esi, 0x94
mov ecx, esi
call fcn.004095cd
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push str.DisplayName
push dword [esp + 0x24]
call edi
mov esi, dword [ebp + 0x58]
add esi, 0x29c
mov ecx, esi
call fcn.004095cd
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push str.InstallLocation
push dword [esp + 0x24]
call edi
mov eax, dword [ebp + 0x58]
add eax, 0x29c
push eax
lea eax, [esp + 0x1c]
push str._s_terminal.ico
push eax
call fcn.004011fb
add esp, 0xc
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4540df
mov ecx, dword [ebp + 0x58]
lea eax, [ecx + 0x4a4]
push eax
lea eax, [ecx + 0x29c]
push eax
lea eax, [esp + 0x20]
push 0x470fa8
push eax
call fcn.004011fb
add esp, 0x10
mov eax, dword [esp + 0x20]
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x20]
push 1
push ebx
push str.DisplayIcon
push dword [esp + 0x24]
call edi
push 0x20
push 0x46c8e0
push 1
push ebx
push str.Publisher
push dword [esp + 0x24]
call edi
push 0x36
mov esi, 0x475e7c
push esi
push 1
push ebx
push str.HelpLink
push dword [esp + 0x24]
call edi
push 0x36
push esi
push 1
push ebx
push str.UrlInfoAbout
push dword [esp + 0x24]
call edi
mov esi, dword [esp + 0x234]
mov eax, dword [esi + 8]
lea eax, [eax*2 + 2]
push eax
push dword [esi + 4]
push 1
push ebx
push str.UninstallString
push dword [esp + 0x24]
call edi
mov eax, dword [ebp + 0x58]
push 0xa
cmp dword [eax + 8], 9
jae 0x454183
push str.5.00
push 1
push ebx
push str.DisplayVersion
push dword [esp + 0x24]
call edi
push 4
push 0x475f30
jmp 0x45419d
push str.4.00
push 1
push ebx
push str.DisplayVersion
push dword [esp + 0x24]
call edi
push 4
push 0x475f7c
push 1
push ebx
push 0x475f34
push dword [esp + 0x24]
call edi
push 4
push 0x475f50
push 1
push ebx
push 0x475f54
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x8848]
call fcn.00401b89
test al, al
jne 0x45420d
push dword [ebp + 0x884c]
lea eax, [esp + 0x1c]
push 0x475f80
push eax
call fcn.004011fb
mov eax, dword [ebp + 0x58]
add esp, 0xc
add eax, 0x29c
push 1
push dword [esi + 4]
push ecx
push ecx
push dword [esp + 0x2c]
push dword [esi + 4]
push eax
call fcn.0044d07a
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x220
ret 4
Function at 0x45421e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x218]
call fcn.00403638
lea ecx, [ebp - 0x430]
call fcn.00403638
push dword [ebp - 0x20c]
xor ebx, ebx
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
call fcn.00403f78
mov eax, dword [esi + 0x58]
add eax, 0x29c
push eax
lea eax, [ebp - 0x430]
push str._suninstall.exe
push eax
call fcn.004011fb
add esp, 0xc
push ebx
push dword [ebp - 0x42c]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4542a5
lea eax, [ebp - 0x430]
mov ecx, esi
push eax
mov bl, 1
call fcn.00453fd0
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4542ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x218]
call fcn.00403638
lea ecx, [ebp - 0x648]
call fcn.00403638
lea ecx, [ebp - 0x430]
call fcn.00403638
mov eax, dword [esi + 0x58]
xor bl, bl
cmp dword [eax + 8], 0xb
je 0x4542f0
cmp dword [eax + 8], 0xd
je 0x4542f0
cmp dword [eax + 8], 3
jne 0x454331
add eax, 0x29c
push eax
lea eax, [ebp - 0x430]
push str._s_terminal.ico
push eax
call fcn.004011fb
add esp, 0xc
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454331
and dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x454331
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esi + 0x58]
lea eax, [ecx + 0x4a4]
push eax
lea eax, [ecx + 0x29c]
push eax
lea eax, [ebp - 0x648]
push 0x470fa8
push eax
call fcn.004011fb
mov ecx, dword [esi + 0x58]
add esp, 0x10
push dword [ebp - 0x42c]
lea eax, [ecx + 0x94]
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
push eax
push dword [ebp - 0x644]
lea eax, [ecx + 0x29c]
push eax
call fcn.0044d462
test eax, eax
je 0x4543c3
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4543ae
push dword [ebp - 0x20c]
push eax
call fcn.0041eb0c
pop ecx
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x214]
pop ecx
jmp 0x4543b5
and dword [ebp - 0x210], 0
push eax
lea ecx, [esi + 0x88c]
call fcn.0041741f
mov bl, al
mov ecx, dword [esi + 0x58]
cmp dword [ecx + 8], 0xb
je 0x4543d6
cmp dword [ecx + 8], 3
jne 0x4544a5
and dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4543ec
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esi + 0x58]
mov edx, 0x4679ec
mov eax, 0x4757dc
cmp dword [ecx + 4], 2
cmovne eax, edx
push eax
lea eax, [ecx + 0x29c]
push eax
lea eax, [ebp - 0x648]
push str._smetaeditor_s.exe
push eax
call fcn.004011fb
add esp, 0x10
push dword [ebp - 0x644]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4544a5
push dword [ebp - 0x42c]
mov ecx, dword [esi + 0x58]
mov edx, str.MetaEditor_5
push dword [ebp - 0x20c]
mov eax, str.MetaEditor_4
push dword [ebp - 0x214]
cmp dword [ecx + 8], 0xb
cmovne eax, edx
push eax
push dword [ebp - 0x644]
lea eax, [ecx + 0x29c]
push eax
call fcn.0044d462
test eax, eax
je 0x4544a5
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x454490
push dword [ebp - 0x20c]
push eax
call fcn.0041eb0c
pop ecx
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x214]
pop ecx
jmp 0x454497
and dword [ebp - 0x210], 0
push eax
lea ecx, [esi + 0x88c]
call fcn.0041741f
mov bl, al
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4545d5
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x10a4
call fcn.0041be30
cmp dword [esp + 0x10b0], 0
push ebx
push ebp
push esi
push edi
jne 0x4545f4
xor al, al
jmp 0x4547df
push ecx
lea eax, [esp + 0xb4]
push eax
call fcn.0043f3a4
test al, al
je 0x454637
mov ecx, dword [esp + 0x10bc]
push 0x475bfc
call fcn.004038a1
test eax, eax
jle 0x454637
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x10c8]
push eax
push dword [esp + 0x10c8]
call fcn.0045da46
mov ebx, dword [esp + 0x10b8]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebp, ebp
cmp eax, 0xffffffff
je 0x4546e2
lea ecx, [esp + 0x40]
call fcn.0044ca78
push ebx
lea ecx, [esp + 0x44]
call fcn.0044c7ce
lea ecx, [esp + 0x40]
call fcn.0044cb7b
lea esi, [esp + 0x98]
lea edi, [esp + 0x20]
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0044c9ec
push dword [esp + 0x10c4]
push dword [esp + 0x10c4]
call fcn.0044cac3
lea ecx, [esp + 0x40]
call fcn.0044cb7b
lea esi, [esp + 0x98]
mov ecx, ebp
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x30]
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x4546d9
inc ecx
cmp ecx, 4
jne 0x4546bb
lea ecx, [esp + 0x40]
call fcn.0044ca97
mov al, 1
jmp 0x4547df
lea ecx, [esp + 0x40]
call fcn.0044ca97
or dword [esp + 0x1c], 0xffffffff
mov esi, 0x40000000
push ecx
push 2
push 3
push esi
push dword [ebx + 4]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x4679a8
call fcn.00401442
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x454757
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45472c
push 0x80
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
push 2
push 3
push esi
push dword [ebx + 4]
lea ecx, [esp + 0x2c]
call fcn.00401442
test al, al
jne 0x454757
push str.Install_Fail_File_Write_Open
mov ecx, 0x4b40d0
call fcn.0043f335
mov esi, dword [esp + 0x1c]
jmp 0x4547be
mov esi, dword [esp + 0x1c]
mov eax, ebp
mov dword [esp + 0x14], eax
cmp esi, 0xffffffff
je 0x454792
cmp eax, dword [esp + 0x10c4]
jae 0x454799
push ebp
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10cc]
push dword [esp + 0x10cc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10c4]
je 0x4547c2
push str.Install_Fail_File_Write
mov ecx, 0x4b40d0
call fcn.0043f335
cmp esi, 0xffffffff
je 0x4547b5
push esi
call edi
or esi, 0xffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
jmp 0x4547d5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x4547d3
push esi
call edi
or esi, 0xffffffff
mov bl, 1
cmp esi, 0xffffffff
je 0x4547dd
push esi
call edi
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10a4
ret 0x10
Function at 0x45541c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x29c
mov eax, dword [esi + 0x58]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45544e
mov eax, dword [esi + 0x58]
add eax, edi
push eax
call fcn.0045e06e
mov eax, dword [esi + 0x58]
add eax, edi
push eax
call fcn.0044d708
xor ebx, ebx
test eax, eax
je 0x45546d
mov ecx, dword [esi + 0x58]
add ecx, edi
call fcn.0040f6bd
test al, al
jne 0x4554a9
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4554a9
mov ecx, dword [esi + 0x58]
lea eax, [ecx + 0x94]
push eax
lea eax, [esp + 0x14]
push eax
push 0x470fa8
lea eax, [ecx + 0x29c]
push 0x103
push eax
call fcn.00416bb2
add esp, 0x14
mov eax, dword [esi + 0x58]
add eax, edi
push eax
call fcn.0044d708
test eax, eax
je 0x455560
push dword [esi + 0x60]
mov ecx, esi
call fcn.00454a91
test al, al
jne 0x4554e9
push str.Install_Fail_Extract_Core
mov ecx, 0x4b40d0
call fcn.0043f335
lea ecx, [esi + 0x49d0]
call fcn.0045d595
jmp 0x45556f
mov ecx, esi
call fcn.004544ab
test al, al
je 0x45556f
mov ecx, esi
call fcn.00454bda
mov byte [esi + 0x8a62], al
test al, al
je 0x45556f
mov ecx, esi
call fcn.00454b94
test al, al
je 0x45556f
mov ecx, esi
call fcn.004542ab
mov edi, 0x4b40d0
test al, al
jne 0x45552c
push str.Install_Fail_Create_Shortcut
mov ecx, edi
call fcn.0043f335
mov ecx, esi
call fcn.0045421e
test al, al
jne 0x455543
push str.Install_Fail_Create_Uninstall
mov ecx, edi
call fcn.0043f335
mov ecx, esi
call fcn.00453dc6
mov ecx, esi
call fcn.00453d03
test al, al
je 0x45556f
mov ecx, esi
call fcn.004550db
mov al, 1
jmp 0x455582
push str.Install_Fail_Create_Folder
mov ecx, 0x4b40d0
call fcn.0043f335
push ebx
push 7
push 0x464
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4555d6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
push 1
lea ecx, [esi + 0x49d0]
call fcn.0045d374
mov ecx, esi
call fcn.00455661
cmp byte [ebp + 8], 0
je 0x455632
mov byte [esi + 0x8a60], 1
mov dword [esi + 0x8760], 3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push 2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 4
lea ecx, [esi + 4]
call fcn.00416c04
jmp 0x455659
xor ebx, ebx
push ebx
push dword [esi + 0x8ae4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebx
mov ecx, esi
call fcn.0045617f
mov word [esi + 0x8a60], 0x100
mov dword [esi + 0x8760], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4559be
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1238
call fcn.0041be30
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x8a61], 0
jne 0x455bc9
cmp byte [esi + 0x8a60], 0
je 0x455bc9
mov eax, dword [esi + 0x58]
xor edi, edi
cmp byte [eax + 0xc40], 0
jne 0x455b5f
test byte [eax], 4
mov ebp, 0x46cfdc
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteW]
je 0x455a57
lea ecx, [esp + 0x238]
call fcn.004049dc
push ecx
lea eax, [esp + 0x13c]
push eax
push ecx
call fcn.00443aa2
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x23c]
push str.https:__www.mql5.com__utm_campaignmql5.welcome.openutm_mediumspecialutm_sourceweb.installer_S
push eax
call fcn.004011fb
add esp, 0xc
push 1
push edi
push edi
push dword [esp + 0x248]
push ebp
push edi
call ebx
mov ecx, dword [esi + 0x58]
lea eax, [ecx + 0x4a4]
push eax
lea eax, [ecx + 0x29c]
push eax
push str.__s_s_
push 0xffffffffffffffff
lea eax, [esp + 0xa58]
push 0x400
push eax
call fcn.00401ea4
add esp, 0x18
call fcn.00408be7
cmp eax, 0x258
jl 0x455ab1
mov eax, dword [esi + 0x58]
push 1
add eax, 0x29c
push eax
lea eax, [esp + 0xa50]
push eax
push str.explorer.exe
push ebp
push edi
call ebx
jmp 0x455b5f
movaps xmm0, xmmword [0x478180]
lea ecx, [esp + 0x238]
or eax, 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov esi, 0x4654d8
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x248]
mov dword [esp + 0x23c], eax
xor eax, eax
mov word [esp + 0x248], ax
lea eax, [esp + 0xa48]
push eax
mov dword [esp + 0x20], edi
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x23c], esi
mov dword [esp + 0x244], edi
mov dword [esp + 0x248], 0x400
call fcn.0040349c
sub esp, 0x10
mov dword [esp + 0x248], 0x46cfd8
lea eax, [esp + 0x248]
lea ecx, [esp + 0x20]
push eax
call fcn.00416c21
lea ecx, [esp + 0x10]
mov dword [esp + 0x238], esi
mov dword [esp + 0x23c], edi
mov dword [esp + 0x240], edi
call fcn.00416ca2
push 0x100
push 0xfe
lea eax, [esp + 0x40]
mov ebp, str.Install.Time
push eax
mov esi, str.SOFTWAREMetaQuotes_Software
mov ebx, closesocket
push ebp
mov edx, esi
mov ecx, ebx
call fcn.00403dd1
add esp, 0x10
test al, al
jne 0x455c09
push edi
call fcn.0042a838
pop ecx
push edx
push eax
push str._I64d
lea eax, [esp + 0x44]
push 0x7f
push eax
call fcn.00403c67
add esp, 0x10
mov edx, esi
mov ecx, ebx
call fcn.00403d45
lea eax, [esp + 0x3c]
mov edx, esi
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.00403d10
add esp, 0x10
jmp 0x455c09
cmp byte [esi + 0x8a62], 0
je 0x455be0
mov eax, dword [esi + 0x58]
add eax, 0x6ac
push eax
call fcn.0044d6d4
xor edi, edi
cmp dword [esi + 0x898], edi
jbe 0x455c09
mov eax, dword [esi + 0x8a0]
imul eax, edi
add eax, dword [esi + 0x894]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x898]
jb 0x455bea
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret