joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40efcb
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4bb668]
sub esp, 0x604
push ebx
push esi
push edi
test eax, eax
jne 0x40effd
push 0x45f8cc
push 0x200000
call fcn.0041ae2d
mov dword [0x4bb668], eax
pop ecx
pop ecx
test eax, eax
je 0x40f002
xor ecx, ecx
mov word [eax], cx
xor ebx, ebx
cmp dword [0x4c6f1c], ebx
jne 0x40f024
push 4
push 0x3000
push 0x22000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4c6f1c], eax
push dword [0x4ba0c0]
mov dword [0x4c6f20], ebx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, 0x4ba0bc
mov ecx, esi
call fcn.00403f78
push 0x470070
mov ecx, esi
call fcn.00403846
push dword [0x4ba0c0]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
jne 0x40f075
push ebx
push dword [0x4ba0c0]
call esi
push str.Crashes
mov ecx, 0x4ba0bc
call fcn.00403846
push dword [0x4ba0c0]
call edi
cmp eax, 0xffffffff
jne 0x40f09a
push ebx
push dword [0x4ba0c0]
call esi
push str.MT5WEBSETUP
mov ecx, 0x4ba2d4
call fcn.0040349c
push str.MetaTrader_Web_Setup
mov ecx, 0x4ba4ec
call fcn.0040349c
mov eax, 0xe5d
mov dword [0x4bb600], 0x1f4
mov dword [0x4bb604], eax
mov ecx, 0x4ba704
mov dword [0x4bb608], 0x283c
push ebx
mov dword [0x4c6f50], eax
call fcn.0040349c
mov eax, dword [0x4bb660]
or eax, dword [0x4bb664]
jne 0x40f105
push ebx
call fcn.0042a818
pop ecx
mov dword [0x4bb660], eax
mov dword [0x4bb664], edx
push str.11_Apr_2023
mov ecx, 0x4bb60c
call fcn.0040349c
mov edi, 0x4baf64
mov ecx, edi
call fcn.00401b89
test al, al
je 0x40f1ed
push 0x200
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0041cce0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x1c]
add esp, 0xc
push 0x100
push eax
push str.CLIENTNAME
call esi
test eax, eax
jne 0x40f16b
push 0x100
lea eax, [esp + 0x14]
push eax
push str.COMPUTERNAME
call esi
test eax, eax
je 0x40f1a4
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0040349c
push 0x100
lea eax, [esp + 0x14]
push eax
push str.USERDOMAIN
call esi
test eax, eax
je 0x40f1a4
push 0x46cfb0
mov ecx, edi
call fcn.00403846
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00403846
push 0x100
push 0x1fe
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_SoftwareSettings
push eax
push str.MQL5.Login
mov ecx, closesocket
call fcn.00403dd1
add esp, 0x10
test al, al
je 0x40f1ed
cmp word [esp + 0x10], bx
je 0x40f1ed
push str._for
mov ecx, edi
call fcn.00403846
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00403846
mov esi, 0x400
lea eax, [esp + 0x210]
push esi
push ebx
push eax
call fcn.0041cce0
pop ecx
pop ecx
lea ecx, [esp + 0x214]
call fcn.0040ee38
lea eax, [esp + 0x210]
mov ecx, 0x4bb17c
push eax
call fcn.0040349c
lea eax, [esp + 0x210]
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x40f228
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40f69c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40f718
xor edi, edi
cmp word [esi], di
je 0x40f718
call fcn.0040f372
test al, al
je 0x40f718
push 0x471cd0
push esi
push str._scheckwritepermissions._s
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push 0x103
push eax
call fcn.00401ea4
add esp, 0x18
lea eax, [ebp - 0x208]
push edi
push 0x80
push 2
push edi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40f718
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
jmp 0x40f71a
xor al, al
pop edi
pop esi
leave
ret
Function at 0x41008f
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x10], 0
push ebx
push esi
je 0x410166
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x410166
mov eax, dword [0x4c6f24]
cmp esi, dword [0x4c6f28]
jbe 0x410106
test eax, eax
je 0x4100e2
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x4c6f24], ebx
push 4
push 0x3000
push esi
push ebx
mov dword [0x4c6f28], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4c6f24], eax
test eax, eax
je 0x410166
mov dword [0x4c6f28], esi
push eax
push esi
push ebx
push dword [esp + 0x24]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x410162
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push 0x46cfbc
push dword [0x4c6f24]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x410162
mov edx, dword [esp + 0x10]
test edx, edx
je 0x410162
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + 0x10]
mov edx, dword [edx + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dword [eax], edx
test ecx, ecx
je 0x410162
test edx, edx
je 0x410162
mov bl, 1
mov al, bl
jmp 0x410168
xor al, al
pop esi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x410ffc
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push dword [0x4ba0c0]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411023
mov ecx, dword [0x4ba0c0]
call fcn.00410f6c
cmp word [0x4bb5ac], 0
je 0x411100
or dword [ebp - 8], 0xffffffff
lea ecx, [ebp - 0x228]
mov dword [ebp - 0xc], 0x4679a8
call fcn.00403638
push 0x4bb5ac
push dword [0x4ba2d8]
mov eax, ecx
push dword [0x4ba0c0]
push 0x472d48
push eax
call fcn.004011fb
add esp, 0x10
lea ecx, [ebp - 0xc]
push 2
push 3
push 0x40000000
push dword [ebp - 0x224]
call fcn.00401442
mov esi, dword [ebp - 8]
test al, al
je 0x4110dc
and dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x4110a3
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x472cf4
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [0x4bb668]
mov ecx, ebx
call fcn.004095cd
and dword [ebp - 4], 0
add eax, eax
cmp esi, 0xffffffff
je 0x4110dc
test ebx, ebx
je 0x4110d2
test eax, eax
je 0x4110d2
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
and dword [ebp - 0x224], 0
and dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0x4654d8
cmp esi, 0xffffffff
je 0x411100
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret

Function at 0x4111d1
Capabilities:
Create process memory minidump
Delete file

Disassembly:
sub esp, 0x224
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x238]
test edi, edi
je 0x4111fd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
push 0x4bb5ac
push dword [0x4ba2d8]
lea eax, [esp + 0x30]
push dword [0x4ba0c0]
push str._s_s._s.dmp
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401ea4
add esp, 0x1c
lea eax, [esp + 0x28]
xor ebp, ebp
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4112c4
mov ecx, 0x4ba91c
call fcn.00401b89
test al, al
je 0x411269
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
jmp 0x41128d
mov eax, dword [0x4ba920]
mov dword [esp + 0x20], 0x411104
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x20]
push ecx
xor edx, edx
lea ecx, [esp + 0x18]
push ebp
test edi, edi
cmove ecx, edx
push ecx
push 0x61105
push ebx
push esi
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x28]
push eax
call fcn.00411598
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret 8
Function at 0x411598
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xa30
push ebx
mov ebx, dword [esp + 0xa38]
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
push ebp
push esi
push edi
test ebx, ebx
je 0x411794
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push ebp
push closesocket
push ebx
mov dword [esp + 0x30], ebp
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x411794
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x411603
cmp dword [esp + 0x24], ebp
jne 0x41164b
cmp dword [esp + 0x20], 0x10000000
ja 0x41164b
push 0x4bb5ac
push dword [0x4ba2d8]
lea eax, [esp + 0x40]
push dword [0x4ba0c0]
push 0x472d48
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401ea4
add esp, 0x1c
lea eax, [esp + 0x38]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x411657
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411794
push 2
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
push ebp
push edi
movlpd qword [esp + 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x50000
push eax
push edi
call ebp
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x14]
jne 0x411696
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call ebp
push ebx
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.0042338c
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push 0x4698c0
lea edx, [eax + eax]
call fcn.0044cacc
add esp, 0x10
lea eax, [esp + 0x10]
xor ebx, ebx
push ebx
push eax
mov eax, dword [esp + 0x20]
add eax, eax
push eax
lea eax, [esp + 0x44]
push eax
push edi
call ebp
push ebx
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
jmp 0x41176a
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x411788
xor eax, eax
mov ecx, eax
test edx, edx
je 0x411756
mov eax, ebx
and eax, 0xf
mov al, byte [eax*4 + 0x472d60]
add al, byte [esp + 0x14]
xor byte [esp + ecx + 0x240], al
inc ebx
movsx eax, byte [esp + ecx + 0x240]
inc ecx
mov dword [esp + 0x14], eax
cmp ecx, edx
jb 0x41172b
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push edx
lea eax, [esp + 0x24c]
push eax
push edi
call ebp
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
push 0x800
lea eax, [esp + 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41171b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa30
ret 4
Function at 0x412831
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x412841
push 0xd
pop eax
jmp 0x412886
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x18], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x412853
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x41284e
push esi
push edx
push 7
xor eax, eax
push eax
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x412de4
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, ecx
lea ecx, [esp + 8]
push ebp
push esi
xor ebp, ebp
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0x10], ebp
push eax
push dword [esp + 0x230]
mov dword [esp + 0x1c], ebp
push dword [ebx]
mov dword [esp + 0x24], ebp
call fcn.00412d88
mov esi, eax
test esi, esi
jne 0x412eb3
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x412e88
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00412de4
mov esi, eax
test esi, esi
jne 0x412eb3
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call ebp
test eax, eax
je 0x412e4d
jmp 0x412e8a
xor esi, esi
cmp dword [esp + 0x10], 0
je 0x412e9f
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
push dword [esp + 0x22c]
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.00412f70
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x412ec4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 4
Function at 0x4137dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor ebp, ebp
push edi
push 0x60
push ebp
push dword [esp + 0x428]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call esi
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x41382d
push eax
push ebp
push dword [esp + 0x428]
call esi
mov edi, eax
test edi, edi
jne 0x41382d
call fcn.00412358
mov esi, eax
jmp 0x4138f2
push dword [esp + 0x428]
push dword [esp + 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x413852
call fcn.00412358
jmp 0x4138e5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413848
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x413878
mov esi, 0x8007000e
jmp 0x4138e7
push 2
pop ecx
mul ecx
cmp edx, ebp
ja 0x413914
jb 0x413890
cmp eax, 0xffffffff
ja 0x413914
cmp eax, 0x400
jbe 0x4138a3
push eax
lea ecx, [esp + 0x1c]
call fcn.00412336
jmp 0x4138ab
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x413871
push esi
push dword [esp + 0x1c]
push esi
push ebx
push ebp
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x413848
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [esp + 0x42c]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.004136bb
mov esi, eax
test edi, edi
je 0x4138f2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x413905
lea ecx, [esp + 0x18]
call fcn.0041232d
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 0x10
push 0x80070216
call fcn.00412c3c
int3
Function at 0x41468b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov byte [ebp - 1], 1
push esi
push edi
mov ecx, dword [ebx + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x4146d8
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [ebx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.USER32.dll_GetParent]
push dword [ebx + 4]
mov esi, eax
call edi
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x4e
jmp 0x4146ff
shr ecx, 2
test cl, 1
je 0x414708
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [ebx + 4]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push edi
movzx eax, ax
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x414736
push 1
xor esi, esi
push esi
push esi
push dword [ebx + 0x28]
push 0x46cfdc
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
jbe 0x414736
or byte [ebx + 0x58], 2
push 1
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415348
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
xor ebx, ebx
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
movzx eax, word [esp + 0x18]
push 0x473350
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x41547d
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, 0x10
jbe 0x41547c
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x41547c
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41547c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x415475
push esi
push ebp
push eax
mov dword [esp + 0x28], ebx
call fcn.0041c760
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41546e
mov ecx, dword [esp + 0x1c]
call fcn.004154c0
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebp, ebp
je 0x41546e
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push 0xfc
push 0x1e0
mov dword [esp + 0x1c], ebx
call fcn.0041564e
test al, al
je 0x415465
push dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push dword [ebp + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x41543e
mov dword [ebp + 8], eax
jmp 0x415465
mov esi, dword [esp + 0x10]
test esi, esi
je 0x415465
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test esi, esi
je 0x415463
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov bl, 1
mov eax, dword [ebp]
mov ecx, ebp
push 1
call dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebp
mov al, bl
pop ebx
pop ecx
pop ecx
ret 0x10

Function at 0x416c01
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, ecx
call fcn.00416c82
xor ebx, ebx
test ebp, ebp
je 0x416c77
cmp word [ebp], bx
je 0x416c77
push edi
push 0x44
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.0041cce0
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 8
push ebx
push ebx
push ebx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x416c77
mov eax, dword [esp + 0xc]
mov bl, 1
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x54
ret 0x14
Function at 0x416e23
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x416f33
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x416f33
lea ecx, [ebp - 0x240]
call fcn.00403638
push edi
push ebx
mov eax, ecx
push str._sFonts_s
push eax
call fcn.004011fb
add esp, 0x10
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416f33
cmp byte [ebx + 0x3ab0], 0
jne 0x416f33
lea ecx, [ebp - 0x458]
call fcn.00403638
push edi
mov eax, ecx
push str.https:__download.mql5.com_cdn_web_components__s
push eax
call fcn.004011fb
lea esi, [ebx + 0x210]
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x454]
call dword [eax + 0x3c]
cmp eax, 0xc8
jne 0x416f33
lea ecx, [ebp - 0x28]
call fcn.00403ac5
mov eax, ecx
lea ecx, [ebx + 0x3a80]
push eax
call fcn.00403522
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x416ee8
cmp dword [ebp - 0x20], 0x4e20
jbe 0x416f2b
push ecx
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x28]
call fcn.0040427c
test al, al
je 0x416f2b
push ecx
push edi
push ecx
push dword [ebp + 8]
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403d10
push edi
push str.value_sunitfile
push str.Install_Component
push esi
push esi
push 0x4b40d0
call fcn.0043f28c
add esp, 0x28
lea ecx, [ebp - 0x28]
call fcn.00403ae8
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x416f3a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
cmp dword [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
je 0x41702f
lea ecx, [ebp - 0x240]
call fcn.00403638
push dword [ebp + 0xc]
mov eax, ecx
push edi
push 0x470fa8
push eax
call fcn.004011fb
add esp, 0x10
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41702f
cmp byte [edi + 0x3ab0], 0
jne 0x41702f
lea ecx, [ebp - 0x458]
call fcn.00403638
push dword [ebp + 8]
mov eax, ecx
push str.https:__download.mql5.com_cdn_web_components__s
push eax
call fcn.004011fb
lea esi, [edi + 0x210]
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x454]
call dword [eax + 0x3c]
cmp eax, 0xc8
jne 0x41702f
lea ecx, [ebp - 0x28]
call fcn.00403ac5
mov eax, ecx
lea ecx, [edi + 0x3a80]
push eax
call fcn.00403522
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x416ff7
cmp dword [ebp - 0x20], 0x186a0
jbe 0x417027
push ecx
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x28]
call fcn.0040427c
test al, al
je 0x417027
push dword [ebp + 8]
push str.value_sunitfile
push str.Install_Component
push esi
push esi
push 0x4b40d0
call fcn.0043f28c
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.00403ae8
pop edi
pop esi
leave
ret 8
Function at 0x4170d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x493460]
sub esp, 0x11c
push esi
push edi
xor edi, edi
mov esi, ecx
test eax, eax
jg 0x417139
push pe_nt_image_headers32
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0041cce0
add esp, 0xc
mov dword [ebp - 0x11c], 0x11c
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4171a8
imul eax, dword [ebp - 0x118], 0x64
add eax, dword [ebp - 0x114]
mov dword [0x493464], eax
mov eax, dword [ebp - 0x110]
mov dword [0x493460], eax
cmp eax, 0x1db1
jl 0x4171a8
push esi
push edi
push edi
push 0x24
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4171a8
push ebx
mov ecx, esi
call fcn.00416d5a
push str.oledlg.dll
mov bl, al
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x417177
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esi + 0x3ab1], 1
cmp byte [esi + 0x3ab1], 0
je 0x417184
test bl, bl
je 0x4171a7
lea edi, [esi + 0x208]
mov ecx, edi
call fcn.00403ba4
test al, al
jne 0x4171a7
push 0x400000
push esi
push 0x41709e
mov ecx, edi
call fcn.00403b43
pop ebx
pop edi
pop esi
leave
ret