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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movzx esi, dl
add rcx, 0x4e70
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x4e98]
test rcx, rcx
je 0x140080833
call fcn.140024de0
lea rcx, [rbx + 0x4e70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x4e60]
test rcx, rcx
je 0x140080857
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call fcn.140080910
test sil, sil
je 0x1400808c9
mov byte [rbx + 0x5ea8], 1
mov dword [rbx + 0x5b94], 3
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
mov edx, 2
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov r9d, 4
xor r8d, r8d
mov rcx, rax
mov edx, 0x470
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rbx + 0x5f68]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400822b0
mov rsi, qword [rsp + 0x38]
mov word [rbx + 0x5ea8], 0x100
mov dword [rbx + 0x5b94], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400837f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x20
mov r15, rcx
call fcn.140070ad0
mov rdx, qword [r15 + 0xa8]
lea rcx, reloc.WS2_32.dll_closesocket
xor r12d, r12d
mov r8d, eax
mov r9d, 0x68
mov edi, r12d
mov esi, dword [rdx + 8]
mov edx, r12d
nop dword [rax]
cmp dword [rdx + rcx], esi
jne 0x140083842
mov eax, dword [rdx + rcx + 4]
cmp eax, r8d
je 0x140083851
test eax, eax
je 0x140083851
inc rdi
add rdx, 0xc
cmp rdx, 0x54
jb 0x140083830
jmp 0x14008385a
lea rax, [rdi + rdi*2]
mov r9d, dword [rcx + rax*4 + 8]
mov rcx, qword [0x1401f3910]
lea r8, [0x1401c6ef8]
movzx edx, r9w
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140083970
mov rcx, qword [0x1401f3908]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp eax, 0x32
jbe 0x140083970
mov rcx, qword [0x1401f3908]
mov rdx, rdi
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14008396b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14008396b
mov qword [rsp + 0x48], rbp
mov eax, 2
mov qword [rsp + 0x50], r14
mov r14d, esi
shr r14, 1
lea rcx, [r14 + 1]
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1401ae572]
cmovo rax, rcx
mov rcx, rax
call fcn.14002ec60
mov rbp, rax
test rax, rax
je 0x140083958
lea rax, [rsi - 2]
lea rdx, [rdi + 2]
mov rcx, rax
shr rcx, 2
mov rdi, rbp
mov rsi, rdx
rep movsd dword [rdi], dword [rsi]
mov rcx, rax
and ecx, 3
je 0x14008393a
and rax, 0xfffffffffffffffc
lea rsi, [rax + rdx]
lea rdi, [rax + rbp]
rep movsb byte [rdi], byte [rsi]
mov word [rbp + r14*2 - 4], r12w
mov rdx, rbp
mov rcx, qword [r15 + 0xb8]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbp
call fcn.14002ec58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
Function at 0x1400855d0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x580]
sub rsp, 0x680
xor r15d, r15d
mov dword [rsp + 0x64], 0x104
mov esi, edx
mov dword [rsp + 0x60], r15d
lea rax, [rsp + 0x68]
mov word [rsp + 0x68], r15w
mov qword [rsp + 0x58], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea rax, [0x1401b7690]
mov qword [rbp + 0x5c8], r15
mov qword [rsp + 0x50], rax
mov r14, rcx
lea rax, [rbp + 0x5c8]
or esi, 0x20019
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov edi, r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140085814
mov rcx, qword [rbp + 0x5c8]
lea r9, [rbp + 0x5b8]
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0x370]
mov qword [rsp + 0x30], r15
xor edx, edx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rbp + 0x5b8], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140085807
mov qword [rsp + 0x678], rbx
cmp dword [rbp + 0x5b8], r15d
jbe 0x1400857ff
xor edx, edx
mov word [rbp + 0x170], r15w
mov r8d, 0x1fe
lea rcx, [rbp + 0x172]
call fcn.14014e180
lea r8, [rbp + 0x370]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea rcx, [rsp + 0x50]
call fcn.1400038c0
mov rdx, qword [rsp + 0x58]
xor eax, eax
mov dword [rbp + 0x5b0], 0x1fe
mov dword [rbp + 0x170], eax
test rdx, rdx
je 0x140085792
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x5c0], r15d
mov rcx, 0xffffffff80000002
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140085777
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x5b0]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x5c0]
lea rax, [rbp + 0x170]
xor r8d, r8d
lea rdx, str.InstallLocation
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete bl
test bl, bl
je 0x140085792
mov rdx, qword [0x1401f33a8]
lea rcx, [rbp + 0x170]
call fcn.14003e940
test eax, eax
je 0x1400857d9
mov rcx, qword [rbp + 0x5c8]
lea r9, [rbp + 0x5b8]
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0x370]
mov qword [rsp + 0x30], r15
inc edi
mov qword [rsp + 0x28], r15
mov edx, edi
mov qword [rsp + 0x20], r15
mov dword [rbp + 0x5b8], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400856a1
jmp 0x1400857ff
mov rcx, qword [r14 + 0xa8]
lea r8, [rbp + 0x370]
add rcx, 0x418
mov r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.14003c5c8
mov rbx, qword [rsp + 0x678]
mov rcx, qword [rbp + 0x5c8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [r14 + 0xa8]
cmp word [rax + 0x418], r15w
setne al
add rsp, 0x680
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140085c10
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x490
mov rdi, rdx
mov rsi, rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0x104
mov word [rsp + 0x38], ax
lea rax, [0x1401b7690]
mov qword [rsp + 0x20], rax
test rdx, rdx
je 0x140085cf8
mov r8, rdx
lea rdx, str._s.
lea rcx, [rsp + 0x20]
call fcn.1400038c0
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140085cf8
nop word [rax + rax]
test byte [rsp + 0x240], 0x10
je 0x140085cd9
cmp word [rsp + 0x26c], 0x2e
je 0x140085cd9
lea r9, [rsp + 0x26c]
mov r8, rdi
lea rdx, [0x1401c0df0]
lea rcx, [rsp + 0x20]
call fcn.1400038c0
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140085c10
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rdx, [rsp + 0x240]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140085c90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

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

Disassembly:
test rdx, rdx
je 0x140085eb0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x490
mov rdi, rdx
mov rbx, rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0x104
mov word [rsp + 0x38], ax
lea rax, [0x1401b7690]
mov qword [rsp + 0x20], rax
mov r8, rdx
lea rdx, str._s.
lea rcx, [rsp + 0x20]
call fcn.1400038c0
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140085e9c
nop
lea r9, [rsp + 0x26c]
mov r8, rdi
lea rdx, [0x1401c0df0]
lea rcx, [rsp + 0x20]
call fcn.1400038c0
test byte [rsp + 0x240], 0x10
je 0x140085e6e
movzx ecx, word [rsp + 0x26c]
movzx eax, word [rsp + 0x26e]
cmp cx, 0x2e
jne 0x140085dfe
test ax, ax
je 0x140085e79
cmp cx, cx
jne 0x140085dfe
cmp ax, cx
jne 0x140085dfe
cmp word [rsp + 0x270], 0
je 0x140085e79
mov rax, qword [rbx + 0xa8]
test byte [rax + 0x850], 1
jne 0x140085e56
lea rdx, str.MQL4
lea rcx, [rsp + 0x26c]
call fcn.14003e940
test eax, eax
je 0x140085e79
lea rdx, [0x1401c7098]
lea rcx, [rsp + 0x26c]
call fcn.14003e940
test eax, eax
je 0x140085e79
lea rdx, str.config
lea rcx, [rsp + 0x26c]
call fcn.14003e940
test eax, eax
je 0x140085e79
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.140085d20
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, [rsp + 0x240]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140085da0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140086990
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [rcx + 0xa8]
mov rsi, rcx
test byte [rax + 0x850], 1
je 0x1400869ba
call fcn.140085ec0
mov rdi, qword [rsi + 0xa8]
mov edx, 0x19
mov rbx, qword [0x1401f33a8]
mov r8, rbx
lea r9, [rdi + 0x85c]
call fcn.140093530
lea r9, [rdi + 0x85c]
mov r8, rbx
mov edx, reloc.WS2_32.dll_recv
call fcn.140093530
mov rax, qword [rsi + 0xa8]
cmp dword [rax + 0x858], 0xb
jne 0x140086a2f
mov rbx, qword [0x1401f33a8]
lea r9, str.MetaEditor_4
mov r8, rbx
mov edx, 0x19
call fcn.140093530
lea r9, str.MetaEditor_4
mov r8, rbx
mov edx, reloc.WS2_32.dll_recv
call fcn.140093530
mov rax, qword [rsi + 0xa8]
cmp dword [rax + 0x858], 3
jne 0x140086a6e
mov rbx, qword [0x1401f33a8]
lea r9, str.MetaEditor_5
mov r8, rbx
mov edx, 0x19
call fcn.140093530
lea r9, str.MetaEditor_5
mov r8, rbx
mov edx, reloc.WS2_32.dll_recv
call fcn.140093530
mov rdx, qword [0x1401f33a8]
mov rcx, rsi
call fcn.140085d20
mov rdx, qword [0x1401f33a8]
mov rcx, rsi
call fcn.140085c10
mov r8, qword [rsi + 0xa8]
xor ebx, ebx
add r8, 0x418
cmp word [r8], bx
je 0x140086b29
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea rax, [0x1401b7690]
mov dword [rsp + 0x34], 0x104
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov word [rsp + 0x38], bx
call fcn.1400038c0
mov rdx, qword [rsp + 0x28]
xor r9d, r9d
mov r8d, 0x20206
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov rdx, qword [rsp + 0x28]
xor r9d, r9d
mov r8d, 0x20106
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
lea rax, [0x1401b7738]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsi + 0x298]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [rsi + 0x310]
test rdx, rdx
je 0x140086b5b
mov rcx, qword [rsi + 0x298]
call qword [sym.imp.USER32.dll_KillTimer]
mov qword [rsi + 0x310], rbx
mov qword [rsi + 0x308], rbx
mov dword [rsi + 0x2f8], 8
mov dword [rsi + 0x2f4], 8
mov dword [rsi + 0x2e8], 9
mov dword [rsi + 0x2ec], ebx
mov byte [rsi + 0x2f0], bl
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor edx, edx
mov qword [rsi + 0x300], rax
mov rcx, qword [rsi + 0x298]
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov edx, 0x464
lea r8d, [r9 + 4]
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
jmp qword [sym.imp.USER32.dll_PostMessageW]
Function at 0x140087ba0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x820
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x420]
mov r8d, 0x400
call fcn.14014e180
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.14014e180
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
xor edx, edx
lea rcx, [rsp + 0x848]
mov qword [rsp + 0x848], rax
call fcn.14001dcc0
xor ebp, ebp
lea rdi, [rbx + 0xa8]
cmp qword [rbx + 0xb8], rbp
jne 0x140087c41
test rdi, rdi
mov rcx, rbx
mov edx, 0x10b
cmove rcx, rbp
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
lea rcx, [rbx + 0xb0]
call fcn.140018ae0
cmp qword [rbx + 0x100], rbp
jne 0x140087c72
test rdi, rdi
mov rcx, rbx
mov edx, 0x10c
cmove rcx, rbp
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
lea rcx, [rbx + 0xf8]
call fcn.140018ae0
cmp qword [rbx + 0x148], rbp
jne 0x140087ca3
test rdi, rdi
mov rcx, rbx
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
cmove rcx, rbp
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
lea rcx, [rbx + 0x140]
call fcn.140018ae0
cmp qword [rbx + 0x190], rbp
jne 0x140087cd4
test rdi, rdi
mov rcx, rbx
mov edx, 0x116
cmove rcx, rbp
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
lea rcx, [rbx + 0x188]
call fcn.140018ae0
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x140087d2e
lea rcx, [0x1401f35f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x1401f35e8]
cmp edx, dword [0x1401f35d8]
jae 0x140087d21
mov r8d, dword [0x1401f35e0]
mov rax, qword [0x1401f35d0]
imul r8d, edx
mov rcx, qword [r8 + rax]
test rcx, rcx
je 0x140087d21
mov r8d, 5
mov rdx, rdi
call fcn.14006edc0
lea rcx, [0x1401f35f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x20]
mov r8d, 0x200
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r9, qword [rbx + 0xa8]
lea r8, [rsp + 0x20]
add r9, 0x85c
lea rcx, [rsp + 0x420]
mov edx, 0x200
call fcn.14001bb30
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x420]
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 [rbx + 0xa8]
lea r8, [rsp + 0x20]
add r9, 0x85c
lea rcx, [rsp + 0x420]
mov edx, 0x200
call fcn.14001bb30
mov rcx, qword [rbx + 0x100]
lea rdx, [rsp + 0x420]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rdx, qword [0x1401f33a8]
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 rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14008d070
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rbx, rdx
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
lea r14, [0x1401b76b0]
mov qword [rbp - 9], r14
mov qword [rbp - 1], 0xffffffffffffffff
test rdx, rdx
je 0x14008d1e5
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008d0d4
mov bl, 1
jmp 0x14008d1e7
mov rcx, qword [rbp - 1]
cmp rcx, 0xffffffffffffffff
je 0x14008d0ec
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 1], 0xffffffffffffffff
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 1], rax
cmp rax, 0xffffffffffffffff
je 0x14008d1e5
mov ebx, esi
nop dword [rax + rax]
mov dword [rbp + 0x6f], esi
mov r8d, 0x40
sub r8d, ebx
mov eax, ebx
lea rdx, [rbp + 7]
add rdx, rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x6f]
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008d16a
mov eax, dword [rbp + 0x6f]
test eax, eax
je 0x14008d16a
add ebx, eax
cmp ebx, 0x40
jb 0x14008d130
mov eax, ebx
lock add qword [0x1401f4d70], rax
cmp ebx, 0x40
jne 0x14008d1e5
movzx eax, word [rbp + 0x2b]
mov word [rbp + 0x6f], ax
movzx eax, word [rbp + 0x2d]
mov word [rbp + 0x71], ax
mov edx, dword [rbp + 0x6f]
mov rcx, qword [rbp - 1]
cmp rcx, 0xffffffffffffffff
je 0x14008d1e5
mov qword [rbp + 0x6f], rdx
xor r9d, r9d
lea r8, [rbp + 0x73]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x6f], eax
cmp eax, 0xffffffff
jne 0x14008d1b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14008d1e5
cmp qword [rbp + 0x6f], 0xffffffffffffffff
je 0x14008d1e5
lea rbx, [rdi + 0x18]
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.14001fc30
test al, al
je 0x14008d1dd
lea rbx, [rdi + 0x18]
cmp dword [rbx], 1
jne 0x14008d1c4
cmp dword [rbx], 1
sete bl
jmp 0x14008d1e7
xor bl, bl
mov qword [rbp - 9], r14
mov rcx, qword [rbp - 1]
cmp rcx, 0xffffffffffffffff
je 0x14008d1fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14008de50
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x450
mov rdi, rcx
xor eax, eax
lea rcx, [rsp + 0x242]
mov word [rsp + 0x240], ax
xor edx, edx
mov r8d, 0x206
call fcn.14014e180
cmp qword [rdi + 0x238], 0x400
jb 0x14008e05b
xor r9d, r9d
lea rax, [rsp + 0x240]
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 0x14008e05b
lea rax, [rsp + 0x240]
mov edx, 0x104
lea r9, str._sMetaQuotes
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
call fcn.140003dd0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x14008df12
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14008f490
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008df24
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rsp + 0x240]
mov edx, 0x104
lea r9, str._sMetaQuotesWebInstall
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
call fcn.140003dd0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x14008df7a
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14008f490
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008df8c
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rdi
lea r9, str._s_S
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x240]
mov r8, 0xffffffffffffffff
call fcn.140003dd0
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x240]
lea rcx, [rdi + 0x230]
call fcn.140004520
test al, al
jne 0x14008e057
cmp word [rdi + 0x20], 0
lea rbx, [rdi + 0x20]
je 0x14008e05b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rbx
cmp eax, 0xffffffff
jne 0x14008e007
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x14008e012
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x28], rdi
lea r9, str._s_S
mov edx, 0x104
mov qword [rsp + 0x20], rbx
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x240]
call fcn.140003dd0
lea rdx, [rsp + 0x240]
lea rcx, [rdi + 0x230]
call fcn.140004520
test al, al
setne al
jmp 0x14008e05d
mov al, 1
jmp 0x14008e05d
xor al, al
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14008f490
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
test rcx, rcx
je 0x14008f616
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x490
mov edi, edx
mov rbx, rcx
cmp word [rcx], 0
je 0x14008f602
cmp edx, 0xf
jg 0x14008f602
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x240]
call fcn.14014e180
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0x104
mov word [rsp + 0x38], ax
lea rax, [0x1401b7690]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, str._s.
lea rcx, [rsp + 0x20]
call fcn.1400038c0
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14008f602
lea r9, [rsp + 0x26c]
mov r8, rbx
lea rdx, [0x1401c0df0]
lea rcx, [rsp + 0x20]
call fcn.1400038c0
mov ecx, dword [rsp + 0x240]
test cl, 0x10
je 0x14008f5bf
movzx edx, word [rsp + 0x26c]
movzx eax, word [rsp + 0x26e]
cmp dx, 0x2e
jne 0x14008f58d
test ax, ax
je 0x14008f5df
cmp dx, dx
jne 0x14008f58d
cmp ax, dx
jne 0x14008f58d
cmp word [rsp + 0x270], 0
je 0x14008f5df
test cl, 1
je 0x14008f5a2
mov edx, 0x80
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [rdi + 1]
xor r8d, r8d
mov rcx, qword [rsp + 0x28]
call fcn.14008f490
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14008f5df
test cl, 1
je 0x14008f5d4
mov edx, 0x80
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x240]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008f535
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret