Function at 0x140036d20
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400a3008]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov edi, ecx
mov dword [rsp + 0x70], ecx
xor esi, esi
mov r14d, esi
call fcn.1400686a0
cmp dword [rax], 1
jg 0x140036d7d
lea r14d, [rsi + 1]
jmp 0x140037421
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x6c], esi
mov r12d, 1
mov dword [rsp + 0x64], r12d
call fcn.1400686a0
cmp dword [rax], r12d
jle 0x140037421
lea r15d, [r12 + 7]
mov r13d, 4
mov dword [rsp + 0x68], r13d
jmp 0x140036db4
mov edi, dword [rsp + 0x70]
call fcn.1400686a8
mov rcx, qword [rax]
mov rbx, qword [r15 + rcx]
movzx eax, byte [rbx]
sub al, 0x2d
test al, 0xfd
jne 0x1400372f6
inc rbx
lea rdx, str.Stop
mov rcx, rbx
call fcn.140061a84
test eax, eax
jne 0x140036e38
lea rax, str.Stopping...
mov qword [rsp + 0x30], rax
lea rbx, [0x1400868d0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9d, 2
lea r8, [0x1400a73c8]
mov edx, 0xe9
lea rcx, str.WavesSvc.cpp
call fcn.140002f50
mov rcx, qword [0x1400ab168]
test rcx, rcx
je 0x140036e30
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov r14d, esi
jmp 0x1400372fd
lea rdx, str.Install
mov rcx, rbx
call fcn.140061a84
test eax, eax
jne 0x140036e63
mov edi, 1
mov dword [rsp + 0x54], edi
mov r14d, edi
lea rbx, [0x1400868d0]
jmp 0x140037301
lea rdx, str.Uninstall
mov rcx, rbx
call fcn.140061a84
test eax, eax
jne 0x140036f31
lea rax, str.Uninstalling...
mov qword [rsp + 0x30], rax
lea rbx, [0x1400868d0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9d, 2
lea r8, [0x1400a73c8]
mov edx, 0xfc
lea rcx, str.WavesSvc.cpp
call fcn.140002f50
mov qword [rbp - 0x80], rsi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140036f16
lea rdx, str.WavesSvc
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1400ab168]
test rcx, rcx
je 0x1400372fd
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1400372fd
lea rdx, str.SSID
mov rcx, rbx
call fcn.140061a84
test eax, eax
jne 0x140036f89
lea rax, str.Get_SSID...
mov qword [rsp + 0x30], rax
lea rbx, [0x1400868d0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9d, 2
lea r8, [0x1400a73c8]
mov edx, 0x109
lea rcx, str.WavesSvc.cpp
call fcn.140002f50
call fcn.1400369a0
jmp 0x1400372fd
lea rdx, str.Jack
mov rcx, rbx
call fcn.140061a84
test eax, eax
jne 0x1400371cf
lea rax, str.Initialize_jack_sense...
mov qword [rsp + 0x30], rax
lea rbx, [0x1400868d0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9d, 2
lea r8, [0x1400a73c8]
mov edx, 0x10e
lea rcx, str.WavesSvc.cpp
call fcn.140002f50
mov r14d, 1
mov dword [rsp + 0x6c], r14d
mov byte [rsp + 0x5a], 4
mov byte [rsp + 0x59], r14b
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x59]
lea rcx, [rsp + 0x5a]
call fcn.140031a70
movzx eax, byte [rsp + 0x50]
mov dword [rbp - 0x6c], eax
add eax, 0xfffffff7
cmp eax, r14d
jbe 0x1400370bb
call fcn.140022d70
test eax, eax
je 0x140037085
mov byte [rsp + 0x51], 4
mov byte [rsp + 0x5d], r14b
mov byte [rsp + 0x5c], 0
mov byte [rsp + 0x5b], 0
lea r9, [rsp + 0x5b]
lea r8, [rsp + 0x5c]
lea rdx, [rsp + 0x5d]
lea rcx, [rsp + 0x51]
call fcn.140031a70
mov eax, esi
cmp byte [rsp + 0x51], 2
sete al
mov dword [0x1400b0688], eax
lea rax, vtable.CJackSense.0
mov qword [0x1400b05d8], rax
call fcn.140039f20
jmp 0x1400372fd
lea rax, str.Jack_sense_failed_to_initialize.
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [0x1400a73c8]
mov edx, 0x124
lea rcx, str.WavesSvc.cpp
call fcn.140002f50
jmp 0x1400372fd
bt edi, 0x1a
jae 0x140037142
mov dword [rsp + 0x60], 0x1f4
mov qword [rbp - 0x78], 0
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWaves_AudioMaxxAudioGeneral
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14003713e
mov dword [rsp + 0x78], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
xor r8d, r8d
lea rdx, str.MuteOnJack
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [rsp + 0x60]
xor ebx, ebx
lea rdi, [0x1400ab230]
lea r12, [0x1400868d0]
lea r13, str.Jack_sense_failed_to_initialize.
nop dword [rax]
mov r9d, r14d
mov edx, ebx
mov rcx, rdi
call fcn.140025fe0
test eax, eax
jne 0x14003719f
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400a73c8]
mov edx, 0x137
lea rcx, str.WavesSvc.cpp
call fcn.140002f50
mov edx, esi
mov rcx, rdi
call fcn.14002ad50
inc ebx
add rdi, 0x2e0
cmp ebx, 0x1d
jl 0x140037160
mov byte [0x1400ab178], r14b
mov r12d, dword [rsp + 0x64]
mov r13d, dword [rsp + 0x68]
xor esi, esi
jmp 0x1400372f6
lea rdx, str.Retask
mov rcx, rbx
call fcn.140061a84
test eax, eax
jne 0x1400372f6
lea rax, str.WavesSvc_Retask_Start
mov qword [rsp + 0x30], rax
lea rbx, [0x1400868d0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9d, 3
lea r8, [0x1400a73c8]
mov edx, 0x143
lea rcx, str.WavesSvc.cpp
call fcn.140002f50
call fcn.1400686a0
cmp r13d, dword [rax]
jge 0x1400372bd
call fcn.1400686a8
mov rcx, qword [rax]
mov rcx, qword [rcx + r15 + 8]
call fcn.14006241c
movsxd r14, eax
call fcn.1400686a8
mov rcx, qword [rax]
mov rcx, qword [r15 + rcx + 0x10]
call fcn.14006241c
mov edi, eax
add r12d, 3
add r13d, 3
add r15, 0x18
call fcn.1400686a8
mov rcx, qword [rax]
mov rcx, qword [r15 + rcx]
call fcn.14006241c
mov esi, eax
test r14d, r14d
js 0x1400372bb
test edi, edi
js 0x1400372bb
test eax, eax
js 0x1400372bb
imul rbx, r14, 0x2e0
lea rax, [0x1400ab230]
add rbx, rax
xor r9d, r9d
mov edx, r14d
mov rcx, rbx
call fcn.140025fe0
test eax, eax
je 0x1400372b4
mov r8d, esi
mov edx, edi
mov rcx, rbx
call fcn.140026230
lea rbx, [0x1400868d0]
xor esi, esi
mov r14d, esi
lea rax, str.WavesSvc_Retask_End
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9d, 3
lea r8, [0x1400a73c8]
mov edx, 0x15c
lea rcx, str.WavesSvc.cpp
call fcn.140002f50
jmp 0x1400372fd
lea rbx, [0x1400868d0]
mov edi, dword [rsp + 0x54]
inc r12d
mov dword [rsp + 0x64], r12d
inc r13d
mov dword [rsp + 0x68], r13d
add r15, 8
call fcn.1400686a0
cmp r12d, dword [rax]
jl 0x140036db0
test edi, edi
je 0x140037421
lea rax, str.Installing...
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9d, 2
lea r8, [0x1400a73c8]
mov edx, 0x163
lea rcx, str.WavesSvc.cpp
call fcn.140002f50
mov r8d, 0x104
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [rbp - 0x50], 0
je 0x140037421
call fcn.1400018d0
mov rcx, rax
test rax, rax
jne 0x140037393
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r8, [rbp - 0x50]
lea rdx, str.__s_
lea rcx, [rsp + 0x70]
call fcn.140013160
or rdi, 0xffffffffffffffff
mov eax, dword [rsp + 0x6c]
test eax, eax
je 0x1400373e6
lea rdx, str.__Jack
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x1400373d0
mov r8d, eax
lea rcx, [rsp + 0x70]
call fcn.14002ce90
mov rbx, qword [rsp + 0x70]
mov r9, rbx
lea r8, str.WavesSvc
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call fcn.14002f2c0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140037421
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14003cd10
lea r11, [rsp + 0x1d0]
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