joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c868
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.0041d6f0
push esi
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0041d6f0
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.00417408
push ecx
push ecx
mov ecx, ebx
call fcn.00417e30
push 5
push dword [ebx + 4]
call fcn.004503a4
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, 0x84c
add eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push edi
push eax
call fcn.004165f2
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.004165f2
add esp, 0x10
lea eax, [esp + 0x414]
push eax
push dword [ebx + 0x84]
call edi
push dword [0x53363c]
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 0x45d8d1
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 0x45dc5f
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.0041d6f0
push 0x250
lea eax, [ebp - 0x660]
push esi
push eax
call fcn.0041d6f0
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 0x45dd60
lea eax, [ebp - 0x410]
mov ebx, 0x104
push eax
push str._sMetaQuotesWebInstall.png
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.00403ad2
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 0x45dd60
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.00403ad2
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45dd47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x45dd47
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 0x45dce9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
leave
ret

Function at 0x45dd64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
add ecx, 0xc3fc
push esi
xor esi, esi
cmp word [ecx], si
je 0x45ddb2
call fcn.004185cf
cmp edx, esi
ja 0x45ddb2
jb 0x45dd8d
cmp eax, 0x3e8
jae 0x45ddb2
lea eax, [ebp - 0x208]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45ddb2
push ecx
xor edx, edx
lea ecx, [ebp - 0x208]
call fcn.004601ff
pop ecx
pop esi
leave
ret
Function at 0x45ddb5
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x274
push ebx
push ebp
push esi
push edi
push 0x40
pop ebp
push ebp
xor ebx, ebx
lea eax, [esp + 0x2c]
push ebx
push eax
mov edi, ecx
call fcn.0041d6f0
or dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x74]
add esp, 0xc
mov dword [esp + 0x18], 0x4f88f0
call fcn.0040337a
push dword [esp + 0x74]
push dword [esp + 0x70]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x68]
call fcn.00403e73
push ecx
push 3
push 3
push closesocket
push dword [esp + 0x7c]
lea ecx, [esp + 0x2c]
call fcn.00401140
test al, al
je 0x45df84
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x45df88
mov esi, ebx
push ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x34]
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45de66
cmp dword [esp + 0x14], ebx
je 0x45de66
add esi, dword [esp + 0x14]
cmp esi, ebp
jae 0x45de68
mov ecx, dword [esp + 0x1c]
jmp 0x45de31
cmp esi, ebp
jne 0x45df84
mov ax, word [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x14], ax
mov ax, word [esp + 0x4e]
mov word [esp + 0x16], ax
cmp ecx, 0xffffffff
je 0x45df88
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ebx
push edx
push eax
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x45dec6
call ebp
test eax, eax
jne 0x45df84
mov eax, dword [esp + 0x20]
and eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x45df84
lea ebx, [edi + 0xcda8]
lea esi, [edi + 0xcdbc]
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.0041883c
test al, al
je 0x45defa
lea esi, [edi + 0xcdbc]
cmp dword [esi], 2
jne 0x45dedf
cmp dword [esi], 2
je 0x45df07
push ecx
mov ecx, ebx
call fcn.004182f8
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x45df88
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
and dword [esp + 0x24], 0
push 0
push edx
push eax
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x45df3f
call ebp
test eax, eax
jne 0x45df84
mov eax, dword [esp + 0x20]
and eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x45df84
lea ebx, [edi + 0xce14]
lea esi, [edi + 0xce28]
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.0041883c
test al, al
je 0x45df6f
lea esi, [edi + 0xce28]
cmp dword [esi], 3
jne 0x45df54
cmp dword [esi], 3
je 0x45df7c
push ecx
mov ecx, ebx
call fcn.004182f8
mov ecx, dword [esp + 0x1c]
mov bl, 1
jmp 0x45df8a
mov ecx, dword [esp + 0x1c]
xor bl, bl
and dword [esp + 0x6c], 0
and dword [esp + 0x70], 0
mov dword [esp + 0x68], 0x5098cc
mov dword [esp + 0x18], 0x4f88f0
cmp ecx, 0xffffffff
je 0x45dfb0
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x274
ret
Function at 0x45f508
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.0041d6f0
or dword [esp + 0x28], 0xffffffff
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], 0x4f88f0
test esi, esi
je 0x45f62d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45f553
mov bl, 1
jmp 0x45f62d
push ecx
push 3
push 3
push closesocket
push esi
lea ecx, [esp + 0x2c]
call fcn.00401140
test al, al
je 0x45f62d
cmp dword [esp + 0x1c], 0xffffffff
je 0x45f62d
mov esi, ebx
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [esp + 0x2c]
add eax, esi
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45f5b0
cmp dword [esp + 0x10], ebx
je 0x45f5b0
add esi, dword [esp + 0x10]
cmp esi, 0x40
jb 0x45f57c
cmp esi, 0x40
jne 0x45f62d
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 0x45f62d
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 0x45f603
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45f62d
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45f62d
lea esi, [edi + 0x14]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0041883c
test al, al
je 0x45f627
lea esi, [edi + 0x14]
cmp dword [esi], 1
jne 0x45f60f
cmp dword [esi], 1
sete bl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0x4f88f0
cmp ecx, 0xffffffff
je 0x45f645
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 0x45fbd5
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.0041d6f0
add esp, 0xc
cmp dword [edi + 0x23c], esi
ja 0x45fc11
cmp dword [edi + 0x238], 0x400
jb 0x45fd81
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 0x45fd81
lea eax, [esp + 0x218]
push eax
push str._sMetaQuotes
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00403ad2
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 0x45fc76
push ecx
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.004601ff
pop ecx
lea eax, [esp + 0x10]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
jne 0x45fc89
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.00403ad2
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x45fccd
push ecx
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.004601ff
pop ecx
lea eax, [esp + 0x10]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x45fcda
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.00403ad2
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.00404177
test al, al
jne 0x45fd7d
lea esi, [edi + 0x20]
xor eax, eax
cmp word [esi], ax
je 0x45fd81
push esi
call ebx
cmp eax, 0xffffffff
jne 0x45fd3b
xor eax, eax
push eax
push esi
call ebp
jmp 0x45fd47
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.00403ad2
add esp, 0xc
lea eax, [esp + 0x220]
lea ecx, [edi + 0x230]
push eax
call fcn.00404177
test al, al
setne al
jmp 0x45fd83
mov al, 1
jmp 0x45fd83
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x45fd8e
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.0041d6f0
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 0x45fe8b
push esi
lea eax, [esp + 0x23c]
push eax
push str._sMetaQuotesWebInstall_S
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.00403ad2
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 0x45fe14
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x45fe5e
lea edi, [esi + 0x20]
cmp word [edi], bp
je 0x45fe8b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45fe8b
push esi
push edi
push str._s_S
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.00403ad2
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 0x45fe8b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x45fe8b
cmp eax, dword [esi + 0x228]
jne 0x45fe80
push ecx
push ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x230]
call fcn.0040df95
test al, al
je 0x45fe80
mov al, 1
jmp 0x45fe8d
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 0x46010a
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.004038b7
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x258], eax
je 0x46014a
push dword [ebp + 8]
mov ecx, esi
push 0x20
pop edx
call fcn.0040414f
jmp 0x46014d
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 0x4601f6
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4601f6
lea ecx, [ebp - 0x7c]
call fcn.00451786
lea ecx, [ebp - 0x10]
call fcn.00408ad5
push 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004517d1
push 7
push str.install
lea ecx, [ebp - 0x7c]
call fcn.004517d1
lea ecx, [ebp - 0x7c]
call fcn.00451889
push 0x3f
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004518f9
xor eax, eax
mov word [ebp - 0xdc], ax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x304]
push eax
push str._s_s
push ebx
push edi
call fcn.00403ad2
add esp, 0x14
lea ecx, [ebp - 0x7c]
call fcn.004517a5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4601ff
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 0x460397
xor eax, eax
cmp word [esi], ax
je 0x460397
cmp ebx, 0xf
jg 0x460397
push 0x250
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0041d6f0
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.0040337a
push esi
mov eax, ecx
push str._s.
push eax
call fcn.0040371e
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 0x460397
lea eax, [ebp - 0x440]
push eax
push esi
lea eax, [ebp - 0x21c]
push 0x50d448
push eax
call fcn.0040371e
add esp, 0x10
test byte [ebp - 0x46c], 0x10
je 0x460354
mov ecx, 0x50c26c
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4602d4
test dx, dx
je 0x4602d0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4602d4
add eax, 4
add ecx, 4
test dx, dx
jne 0x4602ae
xor eax, eax
jmp 0x4602d9
sbb eax, eax
or eax, 1
test eax, eax
je 0x46037a
mov ecx, 0x50d440
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460312
test dx, dx
je 0x46030e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460312
add eax, 4
add ecx, 4
test dx, dx
jne 0x4602ec
xor eax, eax
jmp 0x460317
sbb eax, eax
or eax, 1
test eax, eax
je 0x46037a
test byte [ebp - 0x46c], 1
je 0x460335
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.004601ff
pop ecx
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x46037a
test byte [ebp - 0x46c], 1
je 0x46036e
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 0x46027a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4605c0
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, closesocket
push ebp
mov ecx, ebx
call fcn.00403ccc
add esp, 0x10
test al, al
je 0x460601
cmp word [esp + 0xc], 0
jne 0x460698
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 0x460696
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 0x46068f
lea eax, [esp + 0x14]
push 0x200
push eax
call fcn.0042c22f
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
call fcn.0046053d
cmp eax, 6
ja 0x460678
inc esi
cmp esi, 0xa
jb 0x460633
jmp 0x46068f
push ecx
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_SoftwareSettings
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.00403c0b
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 0x460d81
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 0x460e01
lea eax, [ebp - 4]
mov esi, 0x104
push eax
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.00441b78
test eax, eax
js 0x460ddc
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.00441ab6
push ecx
xor edx, edx
lea ecx, [ebp - 0x210]
call fcn.004601ff
pop ecx
mov ecx, dword [edi + 0x59d0]
test ecx, ecx
je 0x460e01
push ecx
add ecx, 0x20
xor edx, edx
call fcn.004601ff
pop ecx
pop edi
pop esi
leave
ret
Function at 0x460ebf
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 0x460fb5
mov eax, dword [esp + 0x114]
mov ebx, dword [edx + 0x3c]
mov ebp, dword [eax]
cmp ebx, ebp
jge 0x460fb5
cmp dword [ebx + edx], 0x4550
jne 0x460fb5
movzx eax, word [ebx + edx + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x460f45
mov ecx, 0x8664
cmp ax, cx
jne 0x460fb5
lea esi, [edx + 0x18]
push 0x3c
add esi, ebx
lea edi, [esp + 0x14]
pop ecx
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
jmp 0x460f6f
lea esi, [edx + 0x18]
push 0x38
add esi, ebx
lea edi, [esp + 0x14]
pop ecx
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
mov dword [esi + 4], ecx
lea edi, [ebx + eax]
mov ecx, dword [esp + 0x10c]
test ecx, ecx
je 0x460fb1
test edi, edi
je 0x460fb1
cmp dword [esi], 0
je 0x460fb1
mov eax, dword [esi + 4]
test eax, eax
je 0x460fb1
cmp edi, ebp
jae 0x460fb5
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 0x460fb7
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 0x10
Function at 0x460fc4
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
xor ebx, ebx
push 0x40
mov esi, ecx
mov dword [esp + 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004011f9
cmp eax, 0x40
jne 0x461128
mov eax, 0x5a4d
cmp word [esp + 0x28], ax
jne 0x461128
mov eax, dword [esp + 0x64]
mov ecx, esi
push ebx
cdq
push edx
push eax
call fcn.004011ad
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x64]
cdq
cmp ecx, eax
jne 0x461128
cmp edi, edx
jne 0x461128
push 4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004011f9
cmp eax, 4
jne 0x461128
cmp dword [esp + 0x10], 0x4550
jne 0x461128
push 0x14
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.004011f9
cmp eax, 0x14
jne 0x461128
mov eax, 0x14c
cmp word [esp + 0x14], ax
je 0x461086
mov eax, 0x8664
cmp word [esp + 0x14], ax
jne 0x461128
mov edi, 0xe0
lea eax, [esp + 0x68]
push edi
push ebx
push eax
call fcn.0041d6f0
add esp, 0xc
lea ebp, [edi + 0x10]
lea eax, [esp + 0x148]
push ebp
push ebx
push eax
call fcn.0041d6f0
add esp, 0xc
lea eax, [edi + 0x6c]
mov ecx, esi
push 1
push ebx
push ebx
cmp word [esp + 0x20], ax
jne 0x4610f1
call fcn.004011ad
push edi
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.004011f9
cmp eax, edi
jne 0x461128
mov eax, dword [esp + 0x240]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x461124
call fcn.004011ad
push ebp
lea eax, [esp + 0x14c]
mov ecx, esi
push eax
call fcn.004011f9
cmp eax, ebp
jne 0x461128
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x1d8]
mov esi, dword [esp + 0x1dc]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov al, 1
jmp 0x46112a
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret 8
Function at 0x46159e
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esp + 0x2c], ebx
je 0x4615dc
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4615dc
push 0xf01ff
push dword [esp + 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
jne 0x4615e7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 4
push esi
mov esi, ebx
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46165e
cmp dword [esp + 0x14], 1
je 0x46165c
cmp dword [esp + 0x14], 4
je 0x461622
cmp dword [esp + 0x14], 7
je 0x461622
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jb 0x4615ea
jmp 0x46165e
lea eax, [esp + 0x10]
push eax
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x461655
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46165e
cmp dword [esp + 0x14], 1
je 0x46165c
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jb 0x461632
jmp 0x46165e
mov bl, 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push edi
call esi
mov al, bl
pop esi
jmp 0x4615de