joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fd08
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
test rdx, rdx
je 0x46fea9
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
lea rax, [rsp + 0x38]
mov dword [rsp + 0x34], 0x104
mov qword [rsp + 0x28], rax
mov rbx, rdx
lea rax, [0x0048d7e0]
mov rsi, rcx
xor r14d, r14d
mov qword [rsp + 0x20], rax
mov r8, rdx
mov dword [rsp + 0x30], r14d
lea rdx, str._s.
mov word [rsp + 0x38], r14w
lea rcx, [rsp + 0x20]
call fcn.004012e8
mov rcx, qword [rsp + 0x28]
lea rdx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x46fe8d
lea r9, [rbp + 0x16c]
mov r8, rbx
lea rdx, [0x00491de8]
lea rcx, [rsp + 0x20]
call fcn.004012e8
test byte [rbp + 0x140], 0x10
je 0x46fe61
cmp word [rbp + 0x16c], 0x2e
movzx eax, word [rbp + 0x16e]
jne 0x46fdf4
test ax, ax
je 0x46fe6c
cmp word [rbp + 0x16c], 0x2e
jne 0x46fdf4
cmp ax, 0x2e
jne 0x46fdf4
cmp word [rbp + 0x170], r14w
je 0x46fe6c
mov rax, qword [rsi + 0xa8]
test byte [rax + 0x850], 1
jne 0x46fe49
lea rdx, [0x00498488]
lea rcx, [rbp + 0x16c]
call fcn.004373a8
test eax, eax
je 0x46fe6c
lea rdx, [0x00498498]
lea rcx, [rbp + 0x16c]
call fcn.004373a8
test eax, eax
je 0x46fe6c
lea rdx, str.config
lea rcx, [rbp + 0x16c]
call fcn.004373a8
test eax, eax
je 0x46fe6c
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.0046fd08
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x140]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46fd98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x470e40
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
push rbp
lea rbp, [rax - 0x728]
sub rsp, 0x820
mov rbx, rcx
mov edi, 0x400
mov r8d, edi
lea rcx, [rbp + 0x320]
xor edx, edx
call fcn.00424830
mov r8d, edi
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.00424830
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
xor edx, edx
lea rcx, [rbp + 0x748]
mov qword [rbp + 0x748], rax
call fcn.0041db0c
lea rsi, [rbx + 0xb0]
cmp qword [rsi + 8], 0
lea rdi, [rbx + 0xa8]
jne 0x470ee4
mov rax, rdi
mov edx, 0x10b
neg rax
sbb rcx, rcx
and rcx, rbx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
mov rcx, rsi
call fcn.0041abb8
lea rsi, [rbx + 0xf8]
cmp qword [rsi + 8], 0
jne 0x470f18
mov rax, rdi
mov edx, 0x10c
neg rax
sbb rcx, rcx
and rcx, rbx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
mov rcx, rsi
call fcn.0041abb8
lea rsi, [rbx + 0x140]
cmp qword [rsi + 8], 0
jne 0x470f4c
mov rax, rdi
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
neg rax
sbb rcx, rcx
and rcx, rbx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
mov rcx, rsi
call fcn.0041abb8
lea rsi, [rbx + 0x188]
cmp qword [rsi + 8], 0
jne 0x470f80
mov rax, rdi
mov edx, 0x116
neg rax
sbb rcx, rcx
and rcx, rbx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
mov rcx, rsi
call fcn.0041abb8
mov rdx, qword [rbx + 8]
mov r8d, 5
call fcn.0045f04c
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x20]
mov r8d, 0x200
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r9, qword [rdi]
lea r8, [rsp + 0x20]
mov esi, 0x85c
lea rcx, [rbp + 0x320]
add r9, rsi
mov edx, 0x200
call fcn.0041c82c
mov rcx, qword [rbx + 0xb8]
lea rdx, [rbp + 0x320]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rbx + 0x100]
lea rdx, [rsp + 0x20]
mov r8d, 0x200
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r9, qword [rdi]
lea r8, [rsp + 0x20]
add r9, rsi
lea rcx, [rbp + 0x320]
mov edx, 0x200
call fcn.0041c82c
mov rcx, qword [rbx + 0x100]
lea rdx, [rbp + 0x320]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rdx, qword [0x004b9088]
mov rcx, qword [rbx + 0x148]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rbx + 0x190]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf1
call qword [sym.imp.USER32.dll_SendMessageW]
lea r11, [rsp + 0x820]
mov eax, 1
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x472b0c
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.00424830
xor edx, edx
lea rcx, [rbp + 0x350]
mov r8d, 0x250
call fcn.00424830
xor r9d, r9d
lea rax, [rbp + 0x140]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x472c20
lea r9, [rbp + 0x140]
mov edx, 0x104
lea r8, str._sMetaQuotesWebInstall.png
lea rcx, [rsp + 0x30]
call fcn.0040457c
lea rdx, [rbp + 0x350]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x472c20
lea rax, [rbp + 0x37c]
mov edx, 0x104
lea r9, [rbp + 0x140]
mov qword [rsp + 0x20], rax
lea r8, str._sMetaQuotesWebInstall_s
lea rcx, [rsp + 0x30]
call fcn.0040457c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x472c03
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x472c03
lea edx, [rax + 0x7b]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x350]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x472ba7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x6b0]
add rsp, 0x6a0
pop rbp
ret

Function at 0x472c38
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
add rcx, 0xa584
xor ebx, ebx
cmp word [rcx], bx
je 0x472c7c
call fcn.0041ee94
cmp rax, 0x3e8
jae 0x472c7c
lea rdx, [rsp + 0x20]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x472c7c
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.00476384
add rsp, 0x230
pop rbx
ret
Function at 0x474cec
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 7]
lea r8d, [rdx + 0x40]
call fcn.00424830
or rcx, 0xffffffffffffffff
lea r13, [0x00486230]
xor ebx, ebx
mov qword [rbp - 9], r13
mov qword [rbp - 1], rcx
mov dword [rbp + 0x77], ebx
test rdi, rdi
je 0x474e51
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rbp - 1]
cmp eax, 0xffffffff
jne 0x474d55
mov bl, 1
jmp 0x474e51
cmp rcx, 0xffffffffffffffff
je 0x474d61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbx
mov r8d, 3
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 1], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x474e51
mov edi, ebx
mov r8d, 0x40
mov eax, edi
lea rdx, [rbp + 7]
mov dword [rbp + 0x6f], ebx
sub r8d, edi
mov qword [rsp + 0x20], rbx
add rdx, rax
lea r9, [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x474e4d
cmp dword [rbp + 0x6f], ebx
je 0x474ddc
add edi, dword [rbp + 0x6f]
cmp edi, 0x40
jae 0x474ddf
mov rcx, qword [rbp - 1]
jmp 0x474d9d
cmp edi, 0x40
jne 0x474e4d
movzx eax, word [rbp + 0x2b]
mov rcx, qword [rbp - 1]
mov word [rbp + 0x77], ax
movzx eax, word [rbp + 0x2d]
mov word [rbp + 0x79], ax
cmp rcx, 0xffffffffffffffff
je 0x474e51
mov eax, dword [rbp + 0x77]
lea r8, [rbp + 0x73]
mov edx, eax
mov qword [rbp + 0x6f], rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x6f], eax
cmp eax, 0xffffffff
jne 0x474e23
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x474e4d
cmp qword [rbp + 0x6f], 0xffffffffffffffff
je 0x474e4d
lea rdi, [rsi + 0x18]
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.0041f180
test al, al
je 0x474e47
lea rdi, [rsi + 0x18]
cmp dword [rdi], 1
jne 0x474e2e
cmp dword [rdi], 1
sete bl
mov rcx, qword [rbp - 1]
mov qword [rbp - 9], r13
cmp rcx, 0xffffffffffffffff
je 0x474e61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x90]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
Function at 0x475494
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, [rcx + 0x44]
mov rcx, qword [rcx + 0x358]
mov r8d, 0x7f
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x5d8]
lea rdx, [rdi + 0x144]
mov esi, 0x3f
mov r8d, esi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x620]
lea rdx, [rdi + 0x1c4]
mov r8d, esi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x668]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rdi + 0x40], eax
cmp word [rdi + 0x44], 0
jne 0x47552c
mov rcx, qword [rdi + 0x358]
call qword [sym.imp.USER32.dll_SetFocus]
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
xor al, al
jmp 0x475537
lea rdx, [rdi + 0x40]
call fcn.0045369c
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x4759c4
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rax - 0x368]
sub rsp, 0x450
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.00424830
cmp qword [rdi + 0x238], 0x400
jb 0x475b9e
xor r9d, r9d
lea rax, [rbp + 0x140]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor r15d, r15d
test eax, eax
js 0x475b9e
mov r12d, 0x104
lea r9, [rbp + 0x140]
mov edx, r12d
lea r8, str._sMetaQuotes
lea rcx, [rsp + 0x30]
call fcn.0040457c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x475a84
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.00476384
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x475a96
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r9, [rbp + 0x140]
mov rdx, r12
lea r8, str._sMetaQuotesWebInstall
lea rcx, [rsp + 0x30]
call fcn.0040457c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x475add
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.00476384
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x475aef
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
lea r8, str._s_S
mov rdx, r12
lea rcx, [rbp + 0x140]
call fcn.0040457c
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rsi, [rdi + 0x230]
mov rcx, rsi
lea rdx, [rbp + 0x140]
call fcn.00404af4
test al, al
jne 0x475b9a
lea rbx, [rdi + 0x20]
cmp word [rbx], r15w
je 0x475b9e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rbx
cmp eax, 0xffffffff
jne 0x475b5b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x475b66
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r9, rbx
mov qword [rsp + 0x20], rdi
lea r8, str._s_S
mov rdx, r12
lea rcx, [rbp + 0x140]
call fcn.0040457c
lea rdx, [rbp + 0x140]
mov rcx, rsi
call fcn.00404af4
test al, al
setne al
jmp 0x475ba0
mov al, 1
jmp 0x475ba0
xor al, al
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
Function at 0x475bc4
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x208
call fcn.00424830
xor eax, eax
xorps xmm0, xmm0
xor r9d, r9d
mov dword [rsp + 0x50], eax
lea rax, [rbp + 0x170]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x30], xmm0
lea edx, [r9 + 0x1a]
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor esi, esi
test eax, eax
js 0x475ce7
lea r9, [rbp + 0x170]
mov qword [rsp + 0x20], rbx
lea r8, str._sMetaQuotesWebInstall_S
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.0040457c
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x475cb7
lea rdi, [rbx + 0x20]
cmp word [rdi], si
je 0x475ce7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x475ce7
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, str._s_S
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.0040457c
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x475ce7
mov eax, dword [rbx + 0x228]
cmp dword [rsp + 0x50], eax
jne 0x475cdc
lea rcx, [rbx + 0x230]
lea rdx, [rsp + 0x60]
call fcn.004122a8
test al, al
je 0x475cdc
mov al, 1
jmp 0x475ce9
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x476384
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
test rcx, rcx
je 0x47651c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
xor r14d, r14d
mov edi, edx
mov rbx, rcx
cmp word [rcx], r14w
je 0x476500
cmp edx, 0xf
jg 0x476500
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x250
call fcn.00424830
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
lea rdx, str._s.
lea rax, [0x0048d7e0]
mov dword [rsp + 0x34], 0x104
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov word [rsp + 0x38], r14w
call fcn.004012e8
mov rcx, qword [rsp + 0x28]
lea rdx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x476500
lea r9, [rbp + 0x16c]
mov r8, rbx
lea rdx, [0x00491de8]
lea rcx, [rsp + 0x20]
call fcn.004012e8
mov eax, dword [rbp + 0x140]
test al, 0x10
je 0x4764c0
cmp word [rbp + 0x16c], 0x2e
movzx ecx, word [rbp + 0x16e]
jne 0x47648f
test cx, cx
je 0x4764df
cmp word [rbp + 0x16c], 0x2e
jne 0x47648f
cmp cx, 0x2e
jne 0x47648f
cmp word [rbp + 0x170], r14w
je 0x4764df
test al, 1
je 0x4764a3
mov rcx, qword [rsp + 0x28]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x28]
lea edx, [rdi + 1]
xor r8d, r8d
call fcn.00476384
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4764df
test al, 1
je 0x4764d4
mov rcx, qword [rsp + 0x28]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x140]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47643a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x476520
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov bl, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x4765be
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.00424830
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x4765b5
lea rdx, str.prxdrvpe.dll
lea rcx, [rsp + 0x50]
call fcn.004373a8
test eax, eax
je 0x4765b3
lea rdx, str.prxdrvpe64.dll
lea rcx, [rsp + 0x50]
call fcn.004373a8
test eax, eax
je 0x4765b3
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x476575
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x476fd0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x430
mov rbp, 0xffffffff80000001
mov dword [rsp + 0x28], 0x100
mov rcx, rbp
mov dword [rsp + 0x20], 0x3fe
lea r9, [rsp + 0x30]
lea r8, str.Email
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
call fcn.00404704
xor esi, esi
test al, al
je 0x47702e
cmp word [rsp + 0x30], si
jne 0x4770e9
lea rax, [rsp + 0x440]
mov qword [rsp + 0x440], rsi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftIdentityCRLUserExtendedProperties
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rsp + 0x440]
test eax, eax
cmovne rdi, rsi
mov qword [rsp + 0x440], rdi
test rdi, rdi
je 0x4770e9
mov ebx, esi
mov r9d, 0x1ff
mov word [rsp + 0x30], si
lea r8, [rsp + 0x30]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4770e0
mov edx, 0x200
lea rcx, [rsp + 0x30]
call fcn.0043771c
lea rdx, [rsp + 0x30]
call fcn.00476f2c
cmp rax, 6
ja 0x4770c0
inc ebx
cmp ebx, 0xa
jb 0x477079
jmp 0x4770e0
lea rax, [rsp + 0x30]
mov rcx, rbp
lea r8, str.Email
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
call fcn.004045c0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x478200
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x478271
lea r8, str.MetaQuotesWebInstall
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.004044ac
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.00476384
mov rcx, qword [rbx + 0x39f8]
test rcx, rcx
je 0x478271
mov rcx, qword [rcx + 0x39e0]
test rcx, rcx
je 0x478271
add rcx, 0x20
xor edx, edx
call fcn.00476384
add rsp, 0x240
pop rbx
ret
Function at 0x4783e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xf0
mov eax, 0x5a4d
cmp word [r9], ax
jne 0x4785a3
mov rbx, qword [rsp + 0x120]
mov r10d, dword [rbx]
cmp dword [r9 + 0x3c], r10d
jge 0x4785a3
movsxd r11, dword [r9 + 0x3c]
lea rax, [r11 + r9]
cmp dword [rax], 0x4550
jne 0x4785a3
mov ecx, 0x14c
cmp word [rax + 4], cx
je 0x4784dd
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x4785a3
lea rcx, [rax + 0x18]
mov edi, 0x80
movups xmm0, xmmword [rcx]
lea rax, [rsp]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x50], xmm1
movups xmmword [rax + 0x60], xmm0
add rax, rdi
movups xmm0, xmmword [rcx + 0x70]
add rcx, rdi
movups xmmword [rax - 0x10], xmm0
movups xmm1, xmmword [rcx]
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rax], xmm1
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [rax + 0x20], xmm1
movups xmm1, xmmword [rcx + 0x40]
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [rcx + 0x50]
movups xmmword [rax + 0x40], xmm1
movups xmm1, xmmword [rcx + 0x60]
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm1
mov rax, qword [rsp + 0x90]
mov qword [rdx], rax
lea eax, [rdi + 0x28]
jmp 0x47856a
movups xmm1, xmmword [rax + 0x28]
add rax, 0x18
lea rcx, [rsp]
mov edi, 0x80
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
add rcx, rdi
movups xmm0, xmmword [rax + 0x70]
add rax, rdi
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmmword [rcx + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rdx], rax
lea eax, [rdi + 0x18]
lea rcx, [r11 + rax]
test r8d, r8d
je 0x47859f
test rcx, rcx
je 0x47859f
cmp dword [rdx], 0
je 0x47859f
mov r11d, dword [rdx + 4]
test r11d, r11d
je 0x47859f
cmp rcx, r10
jge 0x4785a3
lea eax, [r11 + r8]
mov dword [rdx + 4], eax
lea eax, [r10 + r8]
mov dword [rbx], eax
mov rax, qword [rdx]
mov qword [rcx + r9], rax
mov al, 1
jmp 0x4785a5
xor al, al
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rdi
ret