joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457cf5
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x58]
cmp word [eax + 0x414], bx
je 0x457d5e
lea ecx, [ebp - 0x218]
call fcn.00403638
mov eax, dword [esi + 0x58]
add eax, 0x414
push eax
mov eax, ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.004011fb
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
add esp, 0xc
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push ebx
push 0x20206
push dword [ebp - 0x214]
push edi
call esi
push ebx
push 0x20106
push dword [ebp - 0x214]
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x457d63
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x21c]
push esi
call fcn.00403638
cmp dword [ebp + 8], 0
je 0x457e15
push dword [ebp + 8]
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 esi, eax
cmp esi, 0xffffffff
je 0x457e15
test byte [ebp - 0x46c], 0x10
je 0x457dfc
cmp word [ebp - 0x440], 0x2e
je 0x457dfc
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x470fa8
push eax
call fcn.004011fb
add esp, 0x10
mov ecx, ebx
push dword [ebp - 0x218]
call fcn.00457d63
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x46c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x457db2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
leave
ret 4
Function at 0x457e1b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
cmp dword [ebp + 8], 0
push ebx
push edi
mov ebx, ecx
je 0x457fa4
lea ecx, [ebp - 0x46c]
call fcn.00403638
push dword [ebp + 8]
mov eax, ecx
push str._s.
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x457fa4
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x46c]
push 0x470fa8
push eax
call fcn.004011fb
add esp, 0x10
test byte [ebp - 0x254], 0x10
je 0x457f7b
mov ecx, 0x46fdec
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x457eca
test dx, dx
je 0x457ec6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x457eca
add eax, 4
add ecx, 4
test dx, dx
jne 0x457ea4
xor eax, eax
jmp 0x457ecf
sbb eax, eax
or eax, 1
test eax, eax
je 0x457f87
mov ecx, 0x470fa0
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x457f08
test dx, dx
je 0x457f04
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x457f08
add eax, 4
add ecx, 4
test dx, dx
jne 0x457ee2
xor eax, eax
jmp 0x457f0d
sbb eax, eax
or eax, 1
test eax, eax
je 0x457f87
mov eax, dword [ebx + 0x58]
test byte [eax + 0x840], 1
jne 0x457f62
lea eax, [ebp - 0x228]
push 0x476a94
push eax
call fcn.0042aae9
pop ecx
pop ecx
test eax, eax
je 0x457f87
lea eax, [ebp - 0x228]
push 0x476aa0
push eax
call fcn.0042aae9
pop ecx
pop ecx
test eax, eax
je 0x457f87
lea eax, [ebp - 0x228]
push str.config
push eax
call fcn.0042aae9
pop ecx
pop ecx
test eax, eax
je 0x457f87
push dword [ebp - 0x468]
mov ecx, ebx
call fcn.00457e1b
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x457e6e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
leave
ret 4
Function at 0x458277
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 0
jne 0x4582a7
push 0xc8
push 7
push 0
mov ecx, esi
call fcn.00449b65
mov ecx, esi
call fcn.00449cbc
jmp 0x4582c2
cmp dword [esp + 0xc], 1
jne 0x4582c2
mov ecx, esi
call fcn.00449ca1
push 0
push 8
push 8
mov ecx, esi
call fcn.00449b65
pop esi
ret 8

Function at 0x4584b4
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x208
push 0
push eax
mov ebx, ecx
call fcn.0041cce0
pop ecx
mov ecx, ebx
call fcn.00417f14
push 6
push dword [ebx + 4]
call fcn.0044b55b
push 0x102
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [ebx + 0x60]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
lea ecx, [ebx + 0x68]
call fcn.00449c27
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebx + 0x6c]
call edi
mov ebp, 0x104
lea eax, [esp + 0x10]
push ebp
push eax
push 0x10
call fcn.0044b99a
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0xdc]
call esi
sub esp, 0x10
lea ecx, [ebx + 0x100]
call fcn.00449c27
push 0
push dword [ebx + 0x104]
call edi
push ebp
lea eax, [esp + 0x14]
push eax
push 0x12
call fcn.0044b99a
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0x174]
call esi
sub esp, 0x10
lea ecx, [ebx + 0x198]
call fcn.00449c27
push 0
push dword [ebx + 0x19c]
call edi
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x11
call fcn.0044b99a
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0x20c]
call esi
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x208
ret 0x10

Function at 0x458792
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.00416be4
xor eax, eax
pop esi
ret
Function at 0x4587c0
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.0041cce0
push esi
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0041cce0
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.004179a3
push ecx
push ecx
mov ecx, ebx
call fcn.004183cb
push 5
push dword [ebx + 4]
call fcn.0044b55b
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.00416b92
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.00416b92
add esp, 0x10
lea eax, [esp + 0x414]
push eax
push dword [ebx + 0x84]
call edi
push dword [0x491ebc]
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 0x459829
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 0x459bb7
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.0041cce0
push 0x250
lea eax, [ebp - 0x660]
push esi
push eax
call fcn.0041cce0
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 0x459cb8
lea eax, [ebp - 0x410]
mov ebx, 0x104
push eax
push str._sMetaQuotesWebInstall.png
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.00403c67
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 0x459cb8
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.00403c67
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x459c9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x459c9f
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 0x459c41
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
leave
ret

Function at 0x459cbc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
add ecx, 0xa79c
push esi
xor esi, esi
cmp word [ecx], si
je 0x459d0a
call fcn.00418b6a
cmp edx, esi
ja 0x459d0a
jb 0x459ce5
cmp eax, 0x3e8
jae 0x459d0a
lea eax, [ebp - 0x208]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x459d0a
push ecx
xor edx, edx
lea ecx, [ebp - 0x208]
call fcn.0045c164
pop ecx
pop esi
leave
ret
Function at 0x459d0d
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.0041cce0
or dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x74]
add esp, 0xc
mov dword [esp + 0x18], 0x4679a8
call fcn.00403638
push dword [esp + 0x74]
push dword [esp + 0x70]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x68]
call fcn.00403f78
push ecx
push 3
push 3
push closesocket
push dword [esp + 0x7c]
lea ecx, [esp + 0x2c]
call fcn.00401442
test al, al
je 0x459edc
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x459ee0
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 0x459dbe
cmp dword [esp + 0x14], ebx
je 0x459dbe
add esi, dword [esp + 0x14]
cmp esi, ebp
jae 0x459dc0
mov ecx, dword [esp + 0x1c]
jmp 0x459d89
cmp esi, ebp
jne 0x459edc
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 0x459ee0
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 0x459e1e
call ebp
test eax, eax
jne 0x459edc
mov eax, dword [esp + 0x20]
and eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x459edc
lea ebx, [edi + 0xb148]
lea esi, [edi + 0xb15c]
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.00418dc5
test al, al
je 0x459e52
lea esi, [edi + 0xb15c]
cmp dword [esi], 2
jne 0x459e37
cmp dword [esi], 2
je 0x459e5f
push ecx
mov ecx, ebx
call fcn.00418893
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x459ee0
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 0x459e97
call ebp
test eax, eax
jne 0x459edc
mov eax, dword [esp + 0x20]
and eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x459edc
lea ebx, [edi + 0xb1b4]
lea esi, [edi + 0xb1c8]
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.00418dc5
test al, al
je 0x459ec7
lea esi, [edi + 0xb1c8]
cmp dword [esi], 3
jne 0x459eac
cmp dword [esi], 3
je 0x459ed4
push ecx
mov ecx, ebx
call fcn.00418893
mov ecx, dword [esp + 0x1c]
mov bl, 1
jmp 0x459ee2
mov ecx, dword [esp + 0x1c]
xor bl, bl
and dword [esp + 0x6c], 0
and dword [esp + 0x70], 0
mov dword [esp + 0x68], 0x4654d8
mov dword [esp + 0x18], 0x4679a8
cmp ecx, 0xffffffff
je 0x459f08
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 0x45b482
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.0041cce0
or dword [esp + 0x28], 0xffffffff
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], 0x4679a8
test esi, esi
je 0x45b5a7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45b4cd
mov bl, 1
jmp 0x45b5a7
push ecx
push 3
push 3
push closesocket
push esi
lea ecx, [esp + 0x2c]
call fcn.00401442
test al, al
je 0x45b5a7
cmp dword [esp + 0x1c], 0xffffffff
je 0x45b5a7
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 0x45b52a
cmp dword [esp + 0x10], ebx
je 0x45b52a
add esi, dword [esp + 0x10]
cmp esi, 0x40
jb 0x45b4f6
cmp esi, 0x40
jne 0x45b5a7
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 0x45b5a7
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 0x45b57d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45b5a7
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45b5a7
lea esi, [edi + 0x14]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00418dc5
test al, al
je 0x45b5a1
lea esi, [edi + 0x14]
cmp dword [esi], 1
jne 0x45b589
cmp dword [esi], 1
sete bl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0x4679a8
cmp ecx, 0xffffffff
je 0x45b5bf
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 0x45bb46
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.0041cce0
add esp, 0xc
cmp dword [edi + 0x23c], esi
ja 0x45bb82
cmp dword [edi + 0x238], 0x400
jb 0x45bcf2
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 0x45bcf2
lea eax, [esp + 0x218]
push eax
push str._sMetaQuotes
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00403c67
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 0x45bbe7
push ecx
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.0045c164
pop ecx
lea eax, [esp + 0x10]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
jne 0x45bbfa
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.00403c67
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x45bc3e
push ecx
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.0045c164
pop ecx
lea eax, [esp + 0x10]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x45bc4b
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.00403c67
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.0040427c
test al, al
jne 0x45bcee
lea esi, [edi + 0x20]
xor eax, eax
cmp word [esi], ax
je 0x45bcf2
push esi
call ebx
cmp eax, 0xffffffff
jne 0x45bcac
xor eax, eax
push eax
push esi
call ebp
jmp 0x45bcb8
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.00403c67
add esp, 0xc
lea eax, [esp + 0x220]
lea ecx, [edi + 0x230]
push eax
call fcn.0040427c
test al, al
setne al
jmp 0x45bcf4
mov al, 1
jmp 0x45bcf4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x45bcff
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.0041cce0
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 0x45bdf0
push esi
lea eax, [esp + 0x23c]
push eax
push str._sMetaQuotesWebInstall_S
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.00403c67
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 0x45bdbf
lea edi, [esi + 0x20]
cmp word [edi], bp
je 0x45bdf0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45bdf0
push esi
push edi
push str._s_S
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.00403c67
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 0x45bdf0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x228]
jne 0x45bde5
push ecx
push ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x230]
call fcn.0040e55f
test al, al
je 0x45bde5
mov al, 1
jmp 0x45bdf2
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 0x45c06f
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.00403ac5
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x258], eax
je 0x45c0af
push dword [ebp + 8]
mov ecx, esi
push 0x20
pop edx
call fcn.00404254
jmp 0x45c0b2
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 0x45c15b
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45c15b
lea ecx, [ebp - 0x7c]
call fcn.0044cb3a
lea ecx, [ebp - 0x10]
call fcn.00409110
push 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0044cb85
push 7
push str.install
lea ecx, [ebp - 0x7c]
call fcn.0044cb85
lea ecx, [ebp - 0x7c]
call fcn.0044cc3d
push 0x3f
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0044ccad
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.00403c67
add esp, 0x14
lea ecx, [ebp - 0x7c]
call fcn.0044cb59
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45c164
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 0x45c2fc
xor eax, eax
cmp word [esi], ax
je 0x45c2fc
cmp ebx, 0xf
jg 0x45c2fc
push 0x250
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0041cce0
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.00403638
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 0x45c2fc
lea eax, [ebp - 0x440]
push eax
push esi
lea eax, [ebp - 0x21c]
push 0x470fa8
push eax
call fcn.004011fb
add esp, 0x10
test byte [ebp - 0x46c], 0x10
je 0x45c2b9
mov ecx, 0x46fdec
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45c239
test dx, dx
je 0x45c235
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45c239
add eax, 4
add ecx, 4
test dx, dx
jne 0x45c213
xor eax, eax
jmp 0x45c23e
sbb eax, eax
or eax, 1
test eax, eax
je 0x45c2df
mov ecx, 0x470fa0
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45c277
test dx, dx
je 0x45c273
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45c277
add eax, 4
add ecx, 4
test dx, dx
jne 0x45c251
xor eax, eax
jmp 0x45c27c
sbb eax, eax
or eax, 1
test eax, eax
je 0x45c2df
test byte [ebp - 0x46c], 1
je 0x45c29a
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.0045c164
pop ecx
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45c2df
test byte [ebp - 0x46c], 1
je 0x45c2d3
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 0x45c1df
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45c301
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 0x45c3a0
push 0x424
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.0041cce0
add esp, 0xc
mov dword [ebp - 0x428], 0x428
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x45c391
lea eax, [ebp - 0x408]
push str.prxdrvpe.dll
push eax
call fcn.0042aae9
pop ecx
pop ecx
test eax, eax
je 0x45c397
lea eax, [ebp - 0x408]
push str.prxdrvpe64.dll
push eax
call fcn.0042aae9
pop ecx
pop ecx
test eax, eax
je 0x45c397
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x45c355
jmp 0x45c399
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret