Function at 0x1400ea580
Capabilities:
Persist via run registry key

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4b0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402f2080]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r13, rcx
lea rax, [0x14022a4b0]
mov qword [rsp + 0x20], rax
lea r9, str.WavesSvc
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x30]
call fcn.14001fbd0
nop
mov rdx, qword [rax]
movdqa xmm0, xmmword [0x140289df0]
movdqu xmmword [rsp + 0x50], xmm0
xor edi, edi
mov word [rsp + 0x40], di
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp word [rdx + r8*2], di
jne 0x1400ea611
lea rcx, [rsp + 0x40]
call fcn.140016750
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400ea644
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r15, [rsp + 0x40]
mov r8, qword [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r15, r8
lea rcx, [rsp + 0x40]
cmovae rcx, r8
mov rax, qword [rsp + 0x50]
lea rax, [rcx + rax*2]
lea rbx, [rsp + 0x40]
cmovae rbx, r8
mov r14, rdi
mov r12, rax
sub r12, rbx
inc r12
shr r12, 1
cmp rbx, rax
cmova r12, rdi
test r12, r12
je 0x1400ea6aa
sub r15, rbx
movzx ecx, word [rbx]
call fcn.14017d9d8
mov word [rbx + r15], ax
lea rbx, [rbx + 2]
inc r14
cmp r14, r12
jne 0x1400ea691
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call fcn.1401659c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.1401659c0
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp - 0x80]
call fcn.1401645c8
test rax, rax
je 0x1400ea6fa
mov word [rax + 2], di
jmp 0x1400ea6fe
mov word [rbp - 0x80], di
lea r8, [0x14022a4b0]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.14017d4b8
mov r9d, 0x103
lea r8, [rbp - 0x80]
lea edx, [r9 + 1]
lea rcx, [rbp + 0x190]
call fcn.14017dc84
movdqa xmm0, xmmword [0x140289df0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], di
lea rax, [rbp + 0x190]
nop word [rax + rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x1400ea750
mov r8, rsi
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x60]
call fcn.140016750
nop
lea rsi, [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
cmovae rsi, rcx
lea rax, [rsp + 0x60]
cmovae rax, rcx
mov r8, qword [rsp + 0x70]
lea rax, [rax + r8*2]
lea rbx, [rsp + 0x60]
cmovae rbx, rcx
mov r14, rax
sub r14, rbx
inc r14
shr r14, 1
cmp rbx, rax
cmova r14, rdi
test r14, r14
je 0x1400ea7e7
sub rsi, rbx
nop dword [rax]
movzx ecx, word [rbx]
call fcn.14017d9d8
mov word [rbx + rsi], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r14
jne 0x1400ea7c0
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x60]
cmp rdx, 8
cmovae r9, rcx
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r8
mov rdx, qword [rsp + 0x50]
call fcn.140031ff0
xor r8d, r8d
xor edx, edx
lea rcx, [r13 + 0xb0]
cmp rax, 0xffffffffffffffff
jne 0x1400ea888
lea r9, str.Need_to_update_WavesSvc
call fcn.1400e4380
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], 4
lea r9, str.jack
mov rdx, qword [rsp + 0x50]
call fcn.140031ff0
mov r8, qword [r13]
cmp rax, 0xffffffffffffffff
setne dl
mov rcx, r13
call qword [r8 + 0x10]
lea r9, str.WavesSvc_Running_:
movzx r8d, al
mov edx, 1
lea rcx, [r13 + 0xb0]
jmp 0x1400ea88f
lea r9, str.No_Need_to_update_WavesSvc
call fcn.1400e4380
nop
lea rcx, [rsp + 0x60]
call fcn.1400166e0
nop
lea rcx, [rsp + 0x40]
call fcn.1400166e0
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140146480
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret