joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45377d
Capabilities:
Hide graphical window

Disassembly:
push esi
lea esi, [ecx + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push 0x3023
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
mov ecx, esi
call fcn.0041751e
xor eax, eax
pop esi
ret

Function at 0x4537ab
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x804
push ebx
push ebp
push esi
push edi
mov esi, 0x400
lea eax, [esp + 0x414]
push esi
xor ebp, ebp
mov ebx, ecx
push ebp
push eax
call fcn.0041c3f0
push esi
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0041c3f0
add esp, 0x18
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.00418279
push ecx
push ecx
mov ecx, ebx
call fcn.00418c5e
push 5
push dword [ebx + 4]
call fcn.004478f4
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x14]
mov edi, 0x200
push edi
push eax
push dword [ebx + 0x60]
call esi
mov eax, dword [ebx + 0x58]
mov ebp, 0x848
add eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push edi
push eax
call fcn.004174cc
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x424]
add esp, 0x10
push eax
push dword [ebx + 0x60]
call edi
push 0x200
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x84]
call esi
mov eax, dword [ebx + 0x58]
add eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push 0x200
push eax
call fcn.004174cc
add esp, 0x10
lea eax, [esp + 0x414]
push eax
push dword [ebx + 0x84]
call edi
push dword [0x48bebc]
push dword [ebx + 0xa8]
call edi
push 0
push 0
push 0xf1
push dword [ebx + 0xcc]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x804
ret 0x10

Function at 0x4547ed
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 0x750]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x10]
mov dword [eax], 1
xor eax, eax
ret 0x10
Function at 0x454820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd24
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x510]
push edi
call fcn.004045b8
push ecx
lea eax, [ebp - 0x100]
push eax
push ecx
call fcn.004413e5
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x510]
call fcn.004036f0
lea edi, [esi + 0xa6c6]
xor ebx, ebx
cmp word [edi], bx
je 0x4548ac
push str.ref
lea ecx, [ebp - 0x510]
call fcn.004034ba
push edi
lea ecx, [ebp - 0x510]
call fcn.004034ba
push 0x467c5c
push 0x467ee8
lea ecx, [ebp - 0x510]
call fcn.00402e95
push 0x467c64
push 0x467eec
lea ecx, [ebp - 0x510]
call fcn.00402e95
push dword [ebp - 0x50c]
lea eax, [esi + 0x9ca4]
push eax
call fcn.0043d287
xor edi, edi
inc edi
test al, al
jne 0x454934
push dword [ebp - 0x50c]
lea eax, [ebp - 0xd10]
mov dword [ebp - 0xd18], ebx
mov dword [ebp - 0xd1c], eax
xor eax, eax
mov word [ebp - 0xd10], ax
lea eax, [ebp - 0xd20]
push str.https:__www.mql5.com__lang__auth_register_nobannertrueutm_campaignmql5.registerutm_mediumspecialutm_sourceweb.installer_s
push eax
mov dword [ebp - 0xd14], 0x400
mov dword [ebp - 0xd20], 0x467f08
call fcn.004011fb
add esp, 0xc
lea eax, [ebp - 0xd20]
push str.enruzhjadeptes
push eax
call fcn.004479b2
push edi
push ebx
push ebx
push dword [ebp - 0xd1c]
push 0x467f1c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0x14]
and dword [esi + 0x9c90], 0xfffffffb
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x45495f
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
lea eax, [ebp - 0x410]
push ebx
push esi
push 0x208
xor esi, esi
push esi
push eax
call fcn.0041c3f0
push 0x250
lea eax, [ebp - 0x660]
push esi
push eax
call fcn.0041c3f0
add esp, 0x18
lea eax, [ebp - 0x410]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x454a60
lea eax, [ebp - 0x410]
mov ebx, 0x104
push eax
push str._sMetaQuotesWebInstall.png
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.0040397c
add esp, 0x10
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x454a60
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x410]
push eax
push str._sMetaQuotesWebInstall_s
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.0040397c
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x454a47
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x454a47
push 0x80
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4549e9
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
pop ebx
leave
ret
Function at 0x454a64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
add ecx, 0x9f2c
push esi
xor esi, esi
cmp word [ecx], si
je 0x454ab2
call fcn.004193f4
cmp edx, esi
ja 0x454ab2
jb 0x454a8d
cmp eax, 0x3e8
jae 0x454ab2
lea eax, [ebp - 0x208]
push eax
push 0x103
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x454ab2
push ecx
xor edx, edx
lea ecx, [ebp - 0x208]
call fcn.00456f68
pop ecx
pop esi
leave
ret
Function at 0x454ab5
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x26c
push ebx
push ebp
push esi
push edi
push 0x40
pop ebp
push ebp
xor ebx, ebx
lea eax, [esp + 0x24]
push ebx
push eax
mov edi, ecx
call fcn.0041c3f0
or dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x6c]
add esp, 0xc
mov dword [esp + 0x18], 0x4628f8
call fcn.00403195
push dword [esp + 0x6c]
push dword [esp + 0x68]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea ecx, [esp + 0x60]
call fcn.00403c53
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x64]
cmp ecx, 0xffffffff
je 0x454b1b
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x1c]
test esi, esi
je 0x454b3c
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffffffff
je 0x454c96
mov esi, ebx
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x2c]
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x454c92
cmp dword [esp + 0x10], ebx
je 0x454b80
add esi, dword [esp + 0x10]
cmp esi, ebp
jae 0x454b82
mov ecx, dword [esp + 0x1c]
jmp 0x454b47
cmp esi, ebp
jne 0x454c92
mov ax, word [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x10], ax
mov ax, word [esp + 0x46]
mov word [esp + 0x12], ax
cmp ecx, 0xffffffff
je 0x454c96
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x14]
push ebx
push eax
push ebp
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x454be0
call ebx
test eax, eax
jne 0x454c92
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x454c92
lea esi, [edi + 0xa8d8]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0041963a
test al, al
je 0x454c0c
cmp dword [edi + 0xa8ec], 2
jne 0x454bf3
cmp dword [edi + 0xa8ec], 2
je 0x454c1d
push ecx
mov ecx, esi
call fcn.0041911b
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x454c96
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x454c51
call ebx
test eax, eax
jne 0x454c92
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x454c92
lea esi, [edi + 0xa940]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0041963a
test al, al
je 0x454c79
cmp dword [edi + 0xa954], 3
jne 0x454c60
cmp dword [edi + 0xa954], 3
je 0x454c8a
push ecx
mov ecx, esi
call fcn.0041911b
mov ecx, dword [esp + 0x1c]
mov bl, 1
jmp 0x454c98
mov ecx, dword [esp + 0x1c]
xor bl, bl
and dword [esp + 0x64], 0
and dword [esp + 0x68], 0
mov dword [esp + 0x60], 0x460424
mov dword [esp + 0x18], 0x4628f8
cmp ecx, 0xffffffff
je 0x454cbe
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x26c
ret
Function at 0x4562a0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [esp + 0x24]
push ebx
push eax
mov edi, ecx
call fcn.0041c3f0
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
add esp, 0xc
mov dword [esp + 0x18], 0x4628f8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ebx
test esi, esi
je 0x4563e2
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4562f1
mov bl, 1
jmp 0x4563de
cmp dword [esp + 0x1c], 0xffffffff
je 0x456302
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffffffff
je 0x4563e2
mov esi, ebx
push ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [esp + 0x2c]
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4563de
cmp dword [esp + 0xc], ebx
je 0x456365
add esi, dword [esp + 0xc]
cmp esi, 0x40
jae 0x456368
mov ecx, dword [esp + 0x1c]
jmp 0x45632a
cmp esi, 0x40
jne 0x4563de
mov ax, word [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x10], ax
mov ax, word [esp + 0x46]
mov word [esp + 0x12], ax
cmp ecx, 0xffffffff
je 0x4563e2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4563b8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4563de
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4563de
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0041963a
test al, al
je 0x4563d7
cmp dword [edi + 0x14], 1
jne 0x4563c1
cmp dword [edi + 0x14], 1
sete bl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0x4628f8
cmp ecx, 0xffffffff
je 0x4563f6
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45697c
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x414
lea eax, [esp + 0x208]
push ebx
push ebp
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.0041c3f0
add esp, 0xc
cmp dword [edi + 0x23c], esi
ja 0x4569b8
cmp dword [edi + 0x238], 0x400
jb 0x456b25
lea eax, [esp + 0x218]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x456b25
lea eax, [esp + 0x218]
push eax
push str._sMetaQuotes
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0040397c
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea eax, [esp + 0x20]
add esp, 0x10
push eax
call ebx
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x456a1d
push ecx
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.00456f68
pop ecx
lea eax, [esp + 0x10]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp eax, 0xffffffff
jne 0x456a30
push esi
lea eax, [esp + 0x14]
push eax
call ebp
lea eax, [esp + 0x218]
push eax
push str._sMetaQuotesWebInstall
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0040397c
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x456a74
push ecx
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.00456f68
pop ecx
lea eax, [esp + 0x10]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x456a81
push esi
lea eax, [esp + 0x14]
push eax
call ebp
push edi
lea eax, [esp + 0x14]
push eax
push str._s_S
lea eax, [esp + 0x224]
push 0x104
push eax
call fcn.0040397c
add esp, 0x14
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ecx
push ecx
lea ecx, [esp + 0x220]
push ecx
lea ecx, [edi + 0x230]
call fcn.00403f55
test al, al
jne 0x456b21
lea esi, [edi + 0x20]
xor eax, eax
cmp word [esi], ax
je 0x456b25
push esi
call ebx
cmp eax, 0xffffffff
jne 0x456ae2
xor eax, eax
push eax
push esi
call ebp
jmp 0x456aee
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push edi
push esi
push str._s_S
lea eax, [esp + 0x224]
push 0x104
push eax
call fcn.0040397c
add esp, 0xc
lea eax, [esp + 0x220]
lea ecx, [edi + 0x230]
push eax
call fcn.00403f55
test al, al
je 0x456b25
mov al, 1
jmp 0x456b27
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x456b32
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x438
lea eax, [esp + 0x22c]
push ebp
push esi
push edi
push 0x208
xor ebp, ebp
mov esi, ecx
push ebp
push eax
call fcn.0041c3f0
add esp, 0xc
lea edi, [esp + 0xc]
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x238]
push eax
push ebp
push ebp
push 0x1a
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x456c23
push esi
lea eax, [esp + 0x23c]
push eax
push str._sMetaQuotesWebInstall_S
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.0040397c
add esp, 0x14
lea eax, [esp + 0xc]
push eax
push ebp
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
jne 0x456bf2
lea edi, [esi + 0x20]
cmp word [edi], bp
je 0x456c23
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x456c23
push esi
push edi
push str._s_S
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.0040397c
add esp, 0x14
lea eax, [esp + 0xc]
push eax
push ebp
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
je 0x456c23
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x228]
jne 0x456c18
push ebp
push ebp
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x230]
call fcn.0040ef75
test al, al
je 0x456c18
mov al, 1
jmp 0x456c25
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor al, al
pop edi
pop esi
pop ebp
add esp, 0x438
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x304
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x230]
mov dword [esi + 0x228], eax
call fcn.004037e2
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x258], eax
je 0x456eb3
push dword [ebp + 8]
mov ecx, esi
push 0x20
pop edx
call fcn.00403f2d
jmp 0x456eb6
mov byte [esi], 0
xor eax, eax
lea edi, [esi + 0x20]
mov word [edi], ax
mov ebx, 0x103
lea eax, [ebp - 0x304]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x456f5f
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x456f5f
lea ecx, [ebp - 0x7c]
call fcn.00448ebd
lea ecx, [ebp - 0x10]
call fcn.00408794
push 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00448f08
push 7
push str.install
lea ecx, [ebp - 0x7c]
call fcn.00448f08
lea ecx, [ebp - 0x7c]
call fcn.00448fc3
push 0x3f
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00449033
xor eax, eax
mov word [ebp - 0xdc], ax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x304]
push eax
push 0x467d2c
push ebx
push edi
call fcn.0040397c
add esp, 0x14
lea ecx, [ebp - 0x7c]
call fcn.00448edc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x456f68
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x457100
xor eax, eax
cmp word [esi], ax
je 0x457100
cmp ebx, 0xf
jg 0x457100
push 0x250
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0041c3f0
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.00403195
push esi
mov eax, ecx
push str._s.
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x457100
lea eax, [ebp - 0x440]
push eax
push esi
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call fcn.004011fb
add esp, 0x10
test byte [ebp - 0x46c], 0x10
je 0x4570bd
mov ecx, 0x46a540
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45703d
test dx, dx
je 0x457039
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45703d
add eax, 4
add ecx, 4
test dx, dx
jne 0x457017
xor eax, eax
jmp 0x457042
sbb eax, eax
or eax, 1
test eax, eax
je 0x4570e3
mov ecx, 0x46ed6c
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45707b
test dx, dx
je 0x457077
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45707b
add eax, 4
add ecx, 4
test dx, dx
jne 0x457055
xor eax, eax
jmp 0x457080
sbb eax, eax
or eax, 1
test eax, eax
je 0x4570e3
test byte [ebp - 0x46c], 1
je 0x45709e
push 0x80
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ecx, dword [ebp - 0x218]
lea edx, [ebx + 1]
push 0
call fcn.00456f68
pop ecx
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x4570e3
test byte [ebp - 0x46c], 1
je 0x4570d7
push 0x80
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x456fe3
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x457105
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4571a4
push 0x424
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.0041c3f0
add esp, 0xc
mov dword [ebp - 0x428], 0x428
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Module32FirstW]
jmp 0x457195
lea eax, [ebp - 0x408]
push str.prxdrvpe.dll
push eax
call fcn.0042a115
pop ecx
pop ecx
test eax, eax
je 0x45719b
lea eax, [ebp - 0x408]
push str.prxdrvpe64.dll
push eax
call fcn.0042a115
pop ecx
pop ecx
test eax, eax
je 0x45719b
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Module32NextW]
test eax, eax
jne 0x457159
jmp 0x45719d
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4579a2
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x404
lea eax, [esp + 4]
mov edx, str.SOFTWAREMetaQuotes_SoftwareSettings
push ebx
push ebp
push 0x100
push 0x3fe
push eax
mov ebp, str.Email
mov ebx, SysReAllocStringLen
push ebp
mov ecx, ebx
call fcn.00403acb
add esp, 0x10
test al, al
je 0x4579e3
cmp word [esp + 0xc], 0
jne 0x457a7a
push esi
push edi
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftIdentityCRLUserExtendedProperties
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
mov dword [esp + 0x10], edi
test edi, edi
je 0x457a78
xor eax, eax
push 0x1ff
mov word [esp + 0x18], ax
lea eax, [esp + 0x18]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x457a71
lea eax, [esp + 0x14]
push 0x200
push eax
call fcn.0042a3af
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
call fcn.0045791f
cmp eax, 6
ja 0x457a5a
inc esi
cmp esi, 0xa
jb 0x457a15
jmp 0x457a71
push ecx
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_SoftwareSettings
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.004039b8
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret

Function at 0x4583b2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x210]
push esi
push edi
push eax
xor eax, eax
mov edi, ecx
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x45843c
lea eax, [ebp - 4]
mov esi, 0x104
push eax
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.0043b6e1
test eax, eax
js 0x45840d
mov eax, dword [ebp - 4]
sub esi, eax
push ecx
push str.MetaQuotesWebInstall
push ecx
lea ecx, [ebp - 0x210]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.0043b61f
push ecx
xor edx, edx
lea ecx, [ebp - 0x210]
call fcn.00456f68
pop ecx
mov ecx, dword [edi + 0x3964]
test ecx, ecx
je 0x45843c
mov ecx, dword [ecx + 0x3958]
test ecx, ecx
je 0x45843c
push ecx
add ecx, 0x20
xor edx, edx
call fcn.00456f68
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4584fa
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0xf4
mov eax, 0x5a4d
push ebx
push ebp
push esi
push edi
cmp word [edx], ax
jne 0x4585f0
mov eax, dword [esp + 0x114]
mov ebx, dword [edx + 0x3c]
mov ebp, dword [eax]
cmp ebx, ebp
jge 0x4585f0
cmp dword [ebx + edx], 0x4550
jne 0x4585f0
movzx eax, word [ebx + edx + 4]
mov edi, 0x14c
cmp ax, di
je 0x458554
mov ecx, 0x8664
cmp ax, cx
jne 0x4585f0
lea esi, [edx + 0x18]
add esi, ebx
cmp ax, di
jne 0x458585
push 0x38
pop ecx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x108]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dword [esi], eax
mov eax, 0x98
jmp 0x4585aa
push 0x3c
pop ecx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x108]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esi], eax
mov eax, 0xa8
mov dword [esi + 4], ecx
lea edi, [ebx + eax]
mov ecx, dword [esp + 0x10c]
test ecx, ecx
je 0x4585ec
test edi, edi
je 0x4585ec
cmp dword [esi], 0
je 0x4585ec
mov eax, dword [esi + 4]
test eax, eax
je 0x4585ec
cmp edi, ebp
jae 0x4585f0
add eax, ecx
mov dword [esi + 4], eax
lea eax, [ecx + ebp]
mov ecx, dword [esp + 0x114]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edi + edx], eax
mov dword [edi + edx + 4], ecx
mov al, 1
jmp 0x4585f2
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 0x10