joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b2c
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rcx, qword [0x004e1ad8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415b6c
lea rcx, [0x004e1ad0]
call fcn.00415a54
xor edi, edi
cmp word [0x004e3010], di
je 0x415cab
mov r9, qword [0x004e1cf8]
lea rax, [rsp + 0x58]
mov r8, qword [0x004e1ad8]
lea rdx, [0x004942e8]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x40]
lea rax, [0x0048d7e0]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x40], rax
or rsi, 0xffffffffffffffff
lea rax, [0x004e3010]
mov dword [rsp + 0x54], 0x104
mov qword [rsp + 0x20], rax
mov rbx, rsi
mov word [rsp + 0x58], di
call fcn.004012e8
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x415c88
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, rsi
je 0x415c88
lea r9, [rbp + 0x170]
mov dword [rbp + 0x170], edi
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
lea rdx, [0x00494288]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [0x004e30d8]
test rdx, rdx
je 0x415c51
mov rax, rsi
inc rax
cmp word [rdx + rax*2], di
jne 0x415c46
jmp 0x415c53
mov eax, edi
mov dword [rbp + 0x170], edi
lea r8d, [rax + rax]
test rdx, rdx
je 0x415c7c
test r8d, r8d
je 0x415c7c
lea r9, [rbp + 0x170]
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rsi
mov qword [rsp + 0x48], rdi
lea rax, [0x004837b8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], edi
cmp rbx, rsi
je 0x415cab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x415d74
Capabilities:
Create process memory minidump
Delete file

Disassembly:
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 - 0x178]
sub rsp, 0x270
xor r14d, r14d
xorps xmm0, xmm0
mov rdi, rdx
movups xmmword [rsp + 0x40], xmm0
test rdx, rdx
je 0x415db8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x44], rdi
lea rax, [0x004e3010]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
lea r9, str._s_s._s.dmp
mov rax, qword [0x004e1cf8]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov edx, 0x103
mov rax, qword [0x004e1ad8]
mov qword [rsp + 0x20], rax
call fcn.004020a8
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x415edf
cmp dword [0x004e2360], 1
jb 0x415e82
mov rcx, qword [0x004e2358]
test rcx, rcx
je 0x415e82
cmp word [rcx], r14w
je 0x415e82
lea rax, [0x00415cc4]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
neg rdi
lea rdx, [rsp + 0x40]
sbb rcx, rcx
and rcx, rdx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x30], rdx
jmp 0x415ea3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
neg rdi
mov qword [rsp + 0x30], r14
lea rdx, [rsp + 0x40]
sbb rcx, rcx
and rcx, rdx
mov qword [rsp + 0x28], r14
mov r9d, 0x61105
mov qword [rsp + 0x20], rcx
mov r8, rsi
mov rcx, rax
mov edx, ebx
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
call fcn.00416220
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r11, [rsp + 0x270]
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 0x416220
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
test rdx, rdx
je 0x4164b8
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x968]
sub rsp, 0xa68
xor r15d, r15d
mov r14, rdx
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov qword [rsp + 0x40], r15
lea esi, [r15 + 3]
mov rcx, r14
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or rbx, 0xffffffffffffffff
mov rdi, rax
cmp rax, rbx
je 0x4164a9
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4162ac
cmp dword [rsp + 0x44], r15d
jne 0x416318
cmp dword [rsp + 0x40], 0x10000000
ja 0x416318
lea rax, [0x004e3010]
mov r8, rbx
mov qword [rsp + 0x30], rax
lea r9, [0x004942e8]
mov rax, qword [0x004e1cf8]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov edx, 0x103
mov rax, qword [0x004e1ad8]
mov qword [rsp + 0x20], rax
call fcn.004020a8
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, esi
mov dword [rsp + 0x20], esi
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, rbx
jne 0x416320
mov rcx, rdi
jmp 0x4164a3
mov r9d, 2
mov qword [rsp + 0x48], r15
lea r8, [rsp + 0x4c]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp + 0x9a0]
mov dword [rbp + 0x9b8], 0x50000
mov r8d, 4
mov dword [rsp + 0x48], eax
lea rdx, [rbp + 0x9b8]
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc rbx
cmp word [r14 + rbx*2], r15w
jne 0x41636b
inc ebx
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x9a0]
mov dword [rbp + 0x9a8], ebx
mov r8d, 4
lea rdx, [rbp + 0x9a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, r14
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.0042e77c
mov edx, dword [rbp + 0x9a8]
lea r8, [0x00489ec0]
add edx, edx
lea rcx, [rsp + 0x50]
call fcn.00460e80
mov r8d, dword [rbp + 0x9a8]
lea r9, [rbp + 0x9a0]
add r8d, r8d
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rbp + 0x9a0]
mov qword [rsp + 0x20], r15
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, r15d
mov dword [rbp + 0x9b0], r15d
mov r14d, r15d
jmp 0x416471
mov r8d, dword [rbp + 0x9b0]
test r8d, r8d
je 0x416497
lea rcx, [rbp + 0x160]
mov edx, r8d
mov eax, r14d
lea r9, [0x00494300]
and eax, 0xf
inc r14d
add bl, byte [r9 + rax*4]
xor byte [rcx], bl
movsx ebx, byte [rcx]
inc rcx
sub rdx, 1
jne 0x416433
lea r9, [rbp + 0x9a0]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x160]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rbp + 0x9b0]
mov qword [rsp + 0x20], r15
mov r8d, 0x800
lea rdx, [rbp + 0x160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41641d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xa68
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x418120
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov edi, dword [rcx + 8]
lea rax, [rbp + 0x1a0]
xor r15d, r15d
mov qword [rsp + 0x20], rax
mov rsi, rcx
mov qword [rsp + 0x40], r15
mov rcx, qword [rcx]
or edi, 0x2001f
mov r9d, edi
mov dword [rsp + 0x48], r15d
xor r8d, r8d
mov qword [rsp + 0x50], r15
mov r14, rdx
mov qword [rbp + 0x1a0], r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x4181af
mov ebx, r15d
test rcx, rcx
je 0x418199
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rbp + 0x1a0]
and edi, 0x300
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], edi
test ebx, ebx
jne 0x41823d
mov edi, 0x100
jmp 0x4181d8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.00418120
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x41823d
lea rax, [rbp + 0x1a8]
mov dword [rbp + 0x190], edi
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x190]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4181be
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x418226
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov rdx, r14
mov dword [rsp + 0x48], r15d
mov rcx, rsi
call fcn.00418264
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x418248
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x418264
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x4182f6
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x4182d0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x4182ef
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x4182ef
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x4182df
cmp dword [rdi + 8], 0
je 0x4182ef
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x4182df
cmp byte [0x004eef78], 0
jne 0x418341
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x41832d
lea rdx, [0x004948c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x004eef70], rax
jmp 0x418334
mov r10, qword [0x004eef70]
mov eax, 1
mov byte [0x004eef78], al
jmp 0x418348
mov r10, qword [0x004eef70]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x4182d9
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x4182df
Function at 0x418e6c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x368]
sub rsp, 0x450
xor r15d, r15d
mov qword [rsp + 0x38], rcx
mov rbx, rdx
mov qword [rsp + 0x30], r15
mov r14, r8
mov qword [rsp + 0x40], r15
xor edx, edx
mov rcx, rbx
lea r8d, [r15 + 0x60]
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x418ee3
xor edx, edx
lea r8d, [r15 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x418ee3
call fcn.00417640
mov ebx, eax
jmp 0x418fd2
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x418f04
call fcn.00417640
jmp 0x418fc2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x418efa
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
inc eax
cmp eax, ebx
jae 0x418f36
mov ebx, 0x8007000e
jmp 0x418fc4
mov ecx, eax
test eax, eax
je 0x418f68
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x419007
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x418f68
lea rcx, [rsp + 0x40]
call fcn.00417614
jmp 0x418f72
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], r15
je 0x418f2c
mov rax, qword [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov r8, rsi
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x418efa
mov r8d, dword [rbp + 0x390]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov word [rax + rcx*2], r15w
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
call fcn.00418ce0
mov ebx, eax
test rdi, rdi
je 0x418fd2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x40], rax
je 0x418fe8
lea rcx, [rsp + 0x40]
call fcn.0041760c
lea r11, [rsp + 0x450]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80070216
call fcn.0041805c
int3
Function at 0x419f68
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
mov ebx, 1
mov ecx, dword [rcx + 0x90]
mov sil, bl
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x419fd6
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], rcx
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
movsxd rcx, eax
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x40], 0xfffffffe
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, qword [rdi + 8]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
movsxd r8, eax
lea r9, [rsp + 0x30]
mov edx, 0x4e
jmp 0x41a003
shr ecx, 2
test bl, cl
je 0x41a00e
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rdi, qword [rdi + 8]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
movzx r8d, ax
mov r9, rdi
mov edx, VarUI4FromDisp
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x41a04e
mov r8, qword [rdi + 0x50]
lea rdx, str.open
mov dword [rsp + 0x28], ebx
xor r9d, r9d
and qword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
seta sil
jbe 0x41a04e
or byte [rdi + 0x94], 2
mov r8d, ebx
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rbx, qword [rsp + 0x60]
mov al, sil
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x41ca50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test r8, r8
je 0x41cbe0
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x3a8]
sub rsp, 0x4a0
mov r9, r8
mov dword [rsp + 0x74], 0x104
mov r8, rcx
lea rax, [rsp + 0x78]
mov rdi, rdx
mov qword [rsp + 0x68], rax
mov rbx, rcx
lea r15, [0x0048d7e0]
xor esi, esi
mov qword [rsp + 0x60], r15
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x70], esi
lea rdx, [0x00491de8]
mov word [rsp + 0x78], si
call fcn.004012e8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41cbc4
mov al, byte [rbx + 0x3710]
test al, al
jne 0x41cbc4
lea rax, [rbp + 0x198]
mov dword [rbp + 0x190], esi
mov r8, rdi
mov qword [rbp + 0x188], rax
lea rdx, str.https:__download.mql5.com_cdn_web_components__s
mov dword [rbp + 0x194], 0x104
lea rcx, [rbp + 0x180]
mov word [rbp + 0x198], si
mov qword [rbp + 0x180], r15
call fcn.004012e8
add rbx, 0x218
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [rbp + 0x188]
call qword [rax + 0x70]
cmp eax, 0xc8
jne 0x41cbc4
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0x20000
mov qword [rsp + 0x50], rsi
call fcn.00452300
cmp qword [rsp + 0x38], 0x186a0
jbe 0x41cbb5
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.00404af4
test al, al
je 0x41cbb5
lea r9, str.value_sunitfile
mov qword [rsp + 0x20], rdi
lea r8, str.Install_Component
xor edx, edx
lea rcx, [0x004dbde0]
call fcn.0044c370
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x41cbc4
call fcn.00422660
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x41cbe4
Capabilities:
Check if file exists
Get 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 r13
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
xor r13d, r13d
lea rdi, [rcx + 0x3728]
mov r14d, r13d
lea r12, [0x0048d7e0]
mov rbx, rcx
cmp byte [rdi + 9], r13b
jne 0x41cdaa
mov r15, qword [rdi - 8]
mov rsi, qword [rdi]
test r15, r15
je 0x41cdaa
test rsi, rsi
je 0x41cdaa
lea rax, [rsp + 0x78]
mov dword [rsp + 0x70], r13d
mov r9, rsi
mov qword [rsp + 0x68], rax
mov r8, rbx
mov dword [rsp + 0x74], 0x104
lea rdx, str._sFonts_s
mov word [rsp + 0x78], r13w
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r12
call fcn.004012e8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41cdaa
mov al, byte [rbx + 0x3710]
test al, al
jne 0x41cdaa
lea rax, [rbp + 0x198]
mov dword [rbp + 0x190], r13d
mov r8, rsi
mov qword [rbp + 0x188], rax
lea rdx, str.https:__download.mql5.com_cdn_web_components__s
mov dword [rbp + 0x194], 0x104
lea rcx, [rbp + 0x180]
mov word [rbp + 0x198], r13w
mov qword [rbp + 0x180], r12
call fcn.004012e8
lea r12, [rbx + 0x218]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x60]
mov rax, qword [r12]
mov rcx, r12
mov rdx, qword [rbp + 0x188]
call qword [rax + 0x70]
cmp eax, 0xc8
jne 0x41cda3
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov rcx, r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 0x20000
mov qword [rsp + 0x50], r13
call fcn.00452300
cmp qword [rsp + 0x38], 0x4e20
jbe 0x41cd94
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.00404af4
test al, al
je 0x41cd94
mov r8, r15
mov qword [rsp + 0x20], rsi
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
mov rcx, 0xffffffff80000002
call fcn.004045c0
lea r9, str.value_sunitfile
mov qword [rsp + 0x20], rsi
lea r8, str.Install_Component
xor edx, edx
lea rcx, [0x004dbde0]
call fcn.0044c370
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x41cda3
call fcn.00422660
lea r12, [0x0048d7e0]
inc r14d
add rdi, 0x20
cmp r14d, 0xd
jb 0x41cc21
cmp byte [rbx + 0x3711], r13b
jne 0x41cdf0
lea r8, str.System32oledlg.dll
mov rcx, rbx
lea rdx, str.oledlg.dll
call fcn.0041ca50
lea r8, str.SysWOW64oledlg.dll
mov rcx, rbx
lea rdx, str.oledlg32.dll
call fcn.0041ca50
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x41e134
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
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 r13
push r14
push r15
lea rbp, [rax - 0x5b8]
sub rsp, 0x690
xor r12d, r12d
mov dword [rsp + 0x34], 0x200
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [0x0048e198]
mov qword [rsp + 0x20], rax
mov r13d, r9d
mov word [rsp + 0x38], r12w
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov bl, 1
cmp r9d, 0x80
ja 0x41e335
cmp dword [rcx + 0x10], 1
jb 0x41e335
mov rax, qword [rcx + 8]
test rax, rax
je 0x41e335
cmp word [rax], r12w
je 0x41e335
cmp dword [rcx + 0x10], 3
jbe 0x41e335
mov r9, qword [rdx + 8]
lea rcx, [rsp + 0x20]
lea rdx, [0x00491de8]
mov r8, rax
call fcn.004012e8
mov rcx, qword [rsp + 0x28]
lea rdx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x41e338
test byte [rbp + 0x340], 0x10
je 0x41e2b8
cmp word [rbp + 0x36c], 0x2e
movzx eax, word [rbp + 0x36e]
jne 0x41e248
test ax, ax
je 0x41e312
cmp word [rbp + 0x36c], 0x2e
jne 0x41e248
cmp ax, 0x2e
jne 0x41e248
cmp word [rbp + 0x370], r12w
je 0x41e312
mov r8, qword [rdi + 8]
lea r9, [rbp + 0x36c]
lea rdx, [0x00491de8]
lea rcx, [rsp + 0x20]
call fcn.004012e8
lea r9d, [r13 + 1]
mov dword [rbp + 0x5d8], r12d
lea r8, [rbp + 0x5d8]
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.0041e134
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41e2e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41e30f
mov rcx, qword [rsp + 0x28]
lea edx, [rax + 0x7b]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41e30b
mov r8, qword [rdi + 8]
lea r9, [rbp + 0x36c]
lea rdx, [0x00491de8]
lea rcx, [rsp + 0x20]
call fcn.004012e8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41e2e7
inc dword [rsi]
jmp 0x41e312
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41e30f
mov rcx, qword [rsp + 0x28]
lea edx, [rax + 0x7b]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41e312
mov bl, r12b
lea rdx, [rbp + 0x340]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e203
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41e338
mov bl, r12b
lea r11, [rsp + 0x690]
mov al, bl
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x41ee94
Capabilities:
Get disk size

Disassembly:
sub rsp, 0x28
xor eax, eax
mov qword [rsp + 0x30], rax
test rcx, rcx
je 0x41eeb9
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rax, qword [rsp + 0x30]
shr rax, 0x14
add rsp, 0x28
ret
Function at 0x41f27c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 8]
xor edi, edi
mov r9d, 0x20119
mov qword [r11 + 8], rdi
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rdx, str.SoftwareWow6432NodeMicrosoftCryptographyWintrustConfig
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [rdi + 1]
test eax, eax
jne 0x41f2fd
mov rcx, qword [rsp + 0x40]
lea rdx, str.EnableCertPaddingCheck
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
movzx ebx, dil
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x41f2fd
mov al, sil
jmp 0x41f36c
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftCryptographyWintrustConfig
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f36a
mov rcx, qword [rsp + 0x40]
lea rdx, str.EnableCertPaddingCheck
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
movzx ebx, dil
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
setne al
jmp 0x41f36c
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret