Function at 0x1400600d0
Capabilities:
Delete file
Encode data using xor
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdi, [r13 + 0xb00]
xor r14d, r14d
mov rsi, rdi
cmp qword [rdi], r14
jne 0x140060136
lea rdx, [0x1401ae572]
mov ecx, 0x3bd8
call fcn.14002ec68
mov qword [rbp + 0x430], rax
test rax, rax
je 0x140060129
mov rcx, rax
call fcn.14005f680
jmp 0x14006012c
mov rax, r14
mov qword [rdi], rax
lea rsi, [r13 + 0xb00]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400607bf
mov rax, qword [rcx]
mov qword [rsp + 0x4f8], rbx
mov qword [rsp + 0x4f0], r12
mov qword [rsp + 0x4e8], r15
call qword [rax + 0x68]
movzx eax, byte [r13 + 0xb38]
test al, al
jne 0x140060470
mov rcx, qword [rdi]
lea rdx, str.https:__download.mql5.com_cdn_dns_dns.dat
mov rax, qword [rcx]
call qword [rax + 0x78]
cmp eax, 0xc8
jne 0x140060470
mov rcx, qword [rdi]
lea rdx, [rbp + 0x448]
mov qword [rbp + 0x448], r14
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov r15, qword [rbp + 0x448]
mov r12, rax
test rax, rax
je 0x14006079a
cmp r15, 0xf8
jb 0x14006079a
lea rbx, [r13 + 0x120]
cmp word [rbx], r14w
je 0x14006079a
lea rdi, [rbp + 0x1e0]
mov rsi, rax
mov ecx, 0x3e
rep movsd dword [rdi], dword [rsi]
cmp dword [rbp + 0x1e0], 2
jne 0x14006079a
mov rdx, r14
mov ecx, 9
lea r14, [0x140000000]
nop dword [rax]
movzx eax, word [rdx + r14 + 0x1ba290]
cmp word [rbp + rdx + 0x1e4], ax
jne 0x14006079a
add rdx, 2
sub rcx, 1
jne 0x140060210
lea rdx, [0x1401ba2a8]
lea rcx, [rbp + 0x264]
call fcn.14003e940
test eax, eax
jne 0x14006079a
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rbp + 0x440], 0xffffffffffffffff
test rbx, rbx
je 0x140060334
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x440], rax
cmp rax, 0xffffffffffffffff
je 0x140060334
xor ecx, ecx
mov rsi, r15
mov edi, ecx
nop
mov r8d, 0xfffffff
mov dword [rbp + 0x430], ecx
cmp rsi, r8
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + r12]
mov rcx, rax
cmovb r8d, esi
lea r9, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400602fc
mov eax, dword [rbp + 0x430]
mov ecx, 0
add rdi, rax
sub rsi, rax
mov rax, qword [rbp + 0x440]
jne 0x1400602b0
jmp 0x140060306
mov dword [rbp + 0x430], 0
lock add qword [0x1401f4d68], rdi
mov rcx, qword [rbp + 0x440]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x440], 0xffffffffffffffff
cmp rdi, r15
je 0x140060334
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
call fcn.140035e90
add r12, 0xf8
mov qword [rbp + 0x430], rax
sub r15, 0xf8
mov dword [r13 + 0x550], 0
mov r9, rax
cmp r15, 0x288
jbe 0x14006077b
add r15, 0xfffffffffffffd77
movabs rax, 0x948b0fcd6e9e0653
mul r15
sub r15, rdx
shr r15, 1
add r15, rdx
shr r15, 9
inc r15
nop
lea rdi, [rsp + 0x50]
mov rsi, r12
mov ecx, 0xa2
xor dl, dl
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x50]
xor esi, esi
mov r8d, 0x288
nop
movzx ecx, byte [rdi]
lea rdi, [rdi + 1]
mov rax, rsi
inc rsi
and eax, 0xf
add dl, byte [r14 + rax*4 + 0x1be080]
xor dl, cl
mov byte [rdi - 1], dl
movzx edx, cl
sub r8, 1
jne 0x1400603b0
cmp word [rsp + 0x50], r8w
je 0x14006045a
cmp word [rbp - 0x30], r8w
jne 0x1400603ef
cmp word [rbp + 0xd0], r8w
je 0x14006045a
mov rax, qword [rbp + 0x1d0]
test rax, rax
je 0x140060400
cmp rax, r9
jle 0x14006045a
lea rbx, [r13 + 0x538]
mov edx, dword [rbx + 0x18]
mov rcx, rbx
inc edx
call fcn.140002fe0
test al, al
je 0x140060453
mov edx, dword [rbx + 0x20]
lea rsi, [rsp + 0x50]
mov r8d, edx
mov ecx, edx
imul r8d, dword [rbx + 0x18]
shr rcx, 2
add r8, qword [rbx + 0x10]
mov rdi, r8
rep movsd dword [rdi], dword [rsi]
mov ecx, edx
and ecx, 3
je 0x140060450
and rdx, 0xfffffffffffffffc
lea rsi, [rsp + 0x50]
add rsi, rdx
lea rdi, [rdx + r8]
rep movsb byte [rdi], byte [rsi]
inc dword [rbx + 0x18]
mov r9, qword [rbp + 0x430]
add r12, 0x288
sub r15, 1
jne 0x140060390
jmp 0x14006077b
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x68]
movzx eax, byte [r13 + 0xb38]
test al, al
jne 0x14006079a
mov rcx, qword [rsi]
lea rdx, str.https:__download.metatrader.com_cdn_dns_dns.dat
mov rax, qword [rcx]
call qword [rax + 0x78]
cmp eax, 0xc8
jne 0x14006079a
mov rcx, qword [rsi]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov r15, qword [rsp + 0x40]
mov r12, rax
test rax, rax
je 0x14006079a
cmp r15, 0xf8
jb 0x14006079a
lea rbx, [r13 + 0x120]
cmp word [rbx], r14w
je 0x14006079a
lea rdi, [rbp + 0x2e0]
mov rsi, rax
mov ecx, 0x3e
rep movsd dword [rdi], dword [rsi]
cmp dword [rbp + 0x2e0], 2
jne 0x14006079a
mov rdx, r14
mov ecx, 9
lea r14, [0x140000000]
movzx eax, word [rdx + r14 + 0x1ba290]
cmp word [rbp + rdx + 0x2e4], ax
jne 0x14006079a
add rdx, 2
sub rcx, 1
jne 0x140060516
lea rdx, [0x1401ba2a8]
lea rcx, [rbp + 0x364]
call fcn.14003e940
test eax, eax
jne 0x14006079a
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rbp + 0x440], 0xffffffffffffffff
test rbx, rbx
je 0x140060644
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x440], rax
cmp rax, 0xffffffffffffffff
je 0x140060644
xor ecx, ecx
mov rsi, r15
mov edi, ecx
nop word [rax + rax]
mov r8d, 0xfffffff
mov dword [rbp + 0x438], ecx
cmp rsi, r8
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + r12]
mov rcx, rax
cmovb r8d, esi
lea r9, [rbp + 0x438]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006060c
mov eax, dword [rbp + 0x438]
mov ecx, 0
add rdi, rax
sub rsi, rax
mov rax, qword [rbp + 0x440]
jne 0x1400605c0
jmp 0x140060616
mov dword [rbp + 0x438], 0
lock add qword [0x1401f4d68], rdi
mov rcx, qword [rbp + 0x440]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x440], 0xffffffffffffffff
cmp rdi, r15
je 0x140060644
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
call fcn.140035e90
add r12, 0xf8
mov qword [rbp + 0x430], rax
sub r15, 0xf8
mov dword [r13 + 0x550], 0
mov r9, rax
cmp r15, 0x288
jbe 0x14006077b
add r15, 0xfffffffffffffd77
movabs rax, 0x948b0fcd6e9e0653
mul r15
sub r15, rdx
shr r15, 1
add r15, rdx
shr r15, 9
inc r15
nop
lea rdi, [rsp + 0x50]
mov rsi, r12
mov ecx, 0xa2
xor dl, dl
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x50]
xor esi, esi
mov r8d, 0x288
nop
movzx ecx, byte [rdi]
lea rdi, [rdi + 1]
mov rax, rsi
inc rsi
and eax, 0xf
add dl, byte [r14 + rax*4 + 0x1be080]
xor dl, cl
mov byte [rdi - 1], dl
movzx edx, cl
sub r8, 1
jne 0x1400606c0
cmp word [rsp + 0x50], r8w
je 0x14006076a
cmp word [rbp - 0x30], r8w
jne 0x1400606ff
cmp word [rbp + 0xd0], r8w
je 0x14006076a
mov rax, qword [rbp + 0x1d0]
test rax, rax
je 0x140060710
cmp rax, r9
jle 0x14006076a
lea rbx, [r13 + 0x538]
mov edx, dword [rbx + 0x18]
mov rcx, rbx
inc edx
call fcn.140002fe0
test al, al
je 0x140060763
mov edx, dword [rbx + 0x20]
lea rsi, [rsp + 0x50]
mov r8d, edx
mov ecx, edx
imul r8d, dword [rbx + 0x18]
shr rcx, 2
add r8, qword [rbx + 0x10]
mov rdi, r8
rep movsd dword [rdi], dword [rsi]
mov ecx, edx
and ecx, 3
je 0x140060760
and rdx, 0xfffffffffffffffc
lea rsi, [rsp + 0x50]
add rsi, rdx
lea rdi, [rdx + r8]
rep movsb byte [rdi], byte [rsi]
inc dword [rbx + 0x18]
mov r9, qword [rbp + 0x430]
add r12, 0x288
sub r15, 1
jne 0x1400606a0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rbp + 0x440]
cmp rax, 0xffffffffffffffff
je 0x14006079a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r13 + 0xb00]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r12, qword [rsp + 0x4f0]
mov rbx, qword [rsp + 0x4f8]
mov r15, qword [rsp + 0x4e8]
add rsp, 0x500
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret