Function at 0x1400172b0
Capabilities:
Check os version
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x1400a1080]
xor rax, rsp
mov qword [rbp + 0x310], rax
xor esi, esi
mov qword [rbp - 0x30], r8
mov dword [rsp + 0x60], edx
lea r8, [rsp + 0x44]
mov r14, rcx
mov dword [rsp + 0x44], esi
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x4c], esi
lea rcx, [rsp + 0x4c]
mov dword [rsp + 0x48], esi
mov r12d, esi
mov dword [rsp + 0x50], esi
mov ebx, esi
mov dword [rsp + 0x54], esi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x28], r9
call fcn.140016ad0
mov edi, dword [rsp + 0x48]
mov qword [rbp - 0x70], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x78], eax
test eax, eax
jne 0x140017b1c
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, 0x80d
xor ecx, ecx
call qword [sym.imp.WINMM.dll_waveInMessage]
test eax, eax
jne 0x140017387
mov eax, dword [rsp + 0x50]
lea ecx, [rsi + 0x40]
lea eax, [rax*2 + 2]
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r9d, dword [rsp + 0x50]
mov edx, 0x80c
mov r8, rax
mov qword [rbp - 0x80], rax
xor ecx, ecx
call qword [sym.imp.WINMM.dll_waveInMessage]
xor r9d, r9d
lea r8, [rsp + 0x54]
mov edx, 0x80d
xor ecx, ecx
call qword [sym.imp.WINMM.dll_waveOutMessage]
test eax, eax
jne 0x1400173d2
mov eax, dword [rsp + 0x54]
mov ecx, 0x40
lea eax, [rax*2 + 2]
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r9d, dword [rsp + 0x54]
mov edx, 0x80c
mov r8, rax
mov qword [rbp - 0x78], rax
xor ecx, ecx
call qword [sym.imp.WINMM.dll_waveOutMessage]
test edi, edi
jle 0x140017b05
mov rbx, qword [r14 + 0x108]
cmp qword [rbx + 0x10], rsi
jne 0x140017416
mov rdx, qword [rbx + 8]
xor r8d, r8d
mov ecx, dword [rbx]
call fcn.140023c10
test rax, rax
je 0x14001740c
mov ecx, dword [rbx]
add ecx, ecx
mov qword [rbx + 8], rax
add rax, 0x10
mov dword [rbx], ecx
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x10], rsi
je 0x140017b1c
mov edx, 0x10
lea ecx, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp - 0x58], rax
mov r12, rax
mov r13, rax
test rax, rax
je 0x140017b1c
mov rcx, qword [rbx + 0x10]
lea r15d, [rdi*8]
mov rax, qword [rcx]
mov qword [rbx + 0x10], rax
mov qword [rcx + 8], r13
mov rax, qword [rbx + 0x18]
mov qword [rcx], rax
mov qword [rbx + 0x18], rcx
mov qword [r13 + 8], 0xffffffffffffffff
mov rbx, qword [r14 + 0x108]
cmp qword [rbx + 0x10], rsi
jne 0x14001749d
mov rdx, qword [rbx + 8]
xor r8d, r8d
mov ecx, dword [rbx]
call fcn.140023c10
test rax, rax
je 0x140017493
mov ecx, dword [rbx]
add ecx, ecx
mov qword [rbx + 8], rax
add rax, 0x10
mov dword [rbx], ecx
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x10], rsi
je 0x140017b18
movsxd rdx, r15d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140017b18
mov rdx, qword [rbx + 0x10]
imul esi, edi, 0x168
mov rcx, qword [rdx]
mov qword [rbx + 0x10], rcx
mov qword [rdx + 8], rax
mov rcx, qword [rbx + 0x18]
mov qword [rdx], rcx
mov qword [rbx + 0x18], rdx
mov qword [r12], rax
mov rbx, qword [r14 + 0x108]
cmp qword [rbx + 0x10], 0
jne 0x140017519
mov rdx, qword [rbx + 8]
xor r8d, r8d
mov ecx, dword [rbx]
call fcn.140023c10
test rax, rax
je 0x14001750e
mov ecx, dword [rbx]
add ecx, ecx
mov qword [rbx + 8], rax
add rax, 0x10
mov dword [rbx], ecx
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x10], 0
je 0x140017b1c
movsxd rdx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r8, rax
test rax, rax
je 0x140017b1c
mov rdx, qword [rbx + 0x10]
xor r10d, r10d
mov qword [rsp + 0x58], r13
mov rsi, r13
mov rcx, qword [rdx]
mov qword [rbx + 0x10], rcx
mov qword [rdx + 8], rax
mov rcx, qword [rbx + 0x18]
mov qword [rdx], rcx
mov qword [rbx + 0x18], rdx
test edi, edi
jle 0x140017599
mov r9d, dword [rsp + 0x60]
mov ecx, r10d
mov rdx, rdi
mov qword [rsp + 0x58], r13
nop dword [rax]
mov dword [r8], 2
lea rcx, [rcx + 8]
mov dword [r8 + 0x10], r9d
mov qword [r8 + 8], r10
mov rax, qword [r13]
mov qword [rcx + rax - 8], r8
add r8, 0x168
sub rdx, 1
jne 0x140017570
mov edi, dword [rsp + 0x4c]
mov ebx, r10d
mov dword [rsp + 0x40], ebx
mov r14d, r10d
mov dword [rsp + 0x6c], r10d
mov dword [rsp + 0x48], edi
test edi, edi
jle 0x140017b05
mov r15, qword [rbp - 0x70]
mov rdi, r10
mov eax, dword [rsp + 0x48]
movaps xmmword [rsp + 0x430], xmm6
movsd xmm6, qword [0x140094418]
movaps xmmword [rsp + 0x420], xmm7
movsd xmm7, qword [0x140094410]
mov qword [rsp + 0x70], r10
nop dword [rax + rax]
mov r13, qword [r15]
xorps xmm0, xmm0
mov qword [rbp - 0x50], r13
movups xmmword [rbp - 0x68], xmm0
test r13, r13
je 0x140017ad3
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.140017090
test eax, eax
je 0x14001768f
mov rdi, qword [rbp - 0x60]
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14001765e
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140017633
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], 0
mov rcx, rbx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140017624
test rcx, rcx
je 0x14001765e
mov rax, qword [rdi + 0x10]
mov qword [rcx], rax
mov rax, qword [rdi + 0x18]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbx
mov rax, qword [rdi + 8]
test rax, rax
je 0x140017aba
nop dword [rax + rax]
mov rcx, qword [rax + 8]
mov rbx, qword [rax]
test rcx, rcx
je 0x140017682
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, rbx
test rbx, rbx
jne 0x140017670
jmp 0x140017aba
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x1400176b0
mov rdx, rax
lea rcx, [r13 + 8]
call fcn.140062630
mov dword [rsp + 0x4c], 1
test eax, eax
je 0x1400176b8
mov dword [rsp + 0x4c], 0
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x1400176de
mov rdx, rax
lea rcx, [r13 + 8]
call fcn.140062630
test eax, eax
jne 0x1400176de
mov r9d, 1
mov dword [rsp + 0x64], r9d
jmp 0x1400176ec
mov dword [rsp + 0x64], 0
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x68], r8d
cmp dword [r13 + 0x430], r8d
jle 0x140017a36
mov rax, qword [rbp - 0x68]
xor edx, edx
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rax
nop
mov rax, qword [r13 + 0x438]
mov r15, qword [rdx + rax]
test r15, r15
je 0x140017a05
xor ecx, ecx
mov eax, dword [r15 + 0x10]
mov r14, r12
cmp eax, 1
mov dword [rsp + 0x44], ecx
mov qword [rsp + 0x58], rsi
cmovb eax, r9d
cmp ecx, eax
jae 0x1400179fc
mov rax, qword [rsi]
mov r8d, 0x104
mov r12d, dword [r15 + 0x268]
mov rdi, qword [rax + rdi*8]
mov eax, dword [rsp + 0x60]
mov qword [rdi + 0x150], r13
lea r13, [rdi + 0x48]
mov qword [rdi + 8], r13
mov dword [rdi], 2
mov dword [rdi + 0x10], eax
mov eax, dword [r15 + 0x22c]
mov dword [rdi + 0x158], eax
mov rbx, qword [r15 + 8]
test rbx, rbx
jne 0x1400177ae
lea rdx, [r15 + 0x14]
lea rcx, [rbp + 0x100]
call fcn.1400625bc
mov dword [rdi + 0x15c], 0xffffffff
mov eax, dword [r15 + 0x230]
jmp 0x1400177d1
mov rbx, qword [rbx + rcx*8]
lea rcx, [rbp + 0x100]
mov rdx, rbx
call fcn.1400625bc
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x15c], eax
mov eax, dword [rbx + 0x210]
mov dword [rdi + 0x160], eax
mov rbx, 0xffffffffffffffff
lea rax, [rbp + 0x100]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400177e5
cmp r12d, 2
mov qword [rbp - 0x48], r14
mov eax, 0x811c9dd7
lea rdx, [rbp + 0x100]
mov r8d, 0x811feb0b
cmove r8d, eax
movzx eax, word [rbp + 0x100]
xor ecx, ecx
test ax, ax
je 0x140017835
mov qword [rbp - 0x48], r14
nop
imul ecx, r8d
lea rdx, [rdx + 2]
movzx eax, ax
xor ecx, eax
movzx eax, word [rdx]
test ax, ax
jne 0x140017820
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140017883
nop
cmp dword [rax + 8], ecx
je 0x140017850
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140017840
jmp 0x140017883
cmp dword [rax + 4], 1
jbe 0x140017883
add dword [rax], 1
mov r9d, dword [rax]
je 0x140017883
mov edx, 0x104
lea rcx, [rbp + 0x100]
sub rdx, rbx
lea rcx, [rcx + rbx*2]
lea r8, [0x140092450]
call fcn.140013860
movsxd rcx, eax
add rbx, rcx
mov r9, qword [rbp - 0x50]
lea rcx, [rbp + 0x100]
mov edx, 0x104
lea rcx, [rcx + rbx*2]
add r9, 0x448
lea r8, str.___s_
sub rdx, rbx
call fcn.140013860
xor ebx, ebx
lea r8, [rbp + 0x100]
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x104
lea r9d, [rbx - 1]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp r12d, 2
jne 0x140017910
mov eax, dword [r15 + 0x278]
mov dword [rdi + 0x14], eax
mov dword [rdi + 0x18], ebx
cmp qword [rbp - 0x80], rbx
je 0x1400178fd
cmp dword [rsp + 0x4c], ebx
je 0x14001793c
mov rdx, qword [rbp - 0x58]
mov ebx, dword [rsp + 0x40]
cmp dword [rdx + 8], 0xffffffff
jne 0x140017940
mov dword [rdx + 8], ebx
jmp 0x140017940
mov dword [rdi + 0x14], ebx
mov eax, dword [r15 + 0x278]
mov dword [rdi + 0x18], eax
cmp qword [rbp - 0x78], rbx
je 0x140017929
cmp dword [rsp + 0x64], ebx
je 0x14001793c
mov rdx, qword [rbp - 0x58]
mov ebx, dword [rsp + 0x40]
cmp dword [rdx + 0xc], 0xffffffff
jne 0x140017940
mov dword [rdx + 0xc], ebx
jmp 0x140017940
mov ebx, dword [rsp + 0x40]
mov r13, qword [rbp - 0x50]
mov ecx, dword [r13 + 0x418]
sub ecx, 1
je 0x140017973
cmp ecx, 1
jne 0x1400179c2
movabs rax, 0x3f847ae147ae147b
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
movabs rax, 0x3fa47ae147ae147b
jmp 0x1400179a8
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140017993
cmp dword [rbp - 0x1c], 6
jae 0x140017993
movaps xmm0, xmm6
jmp 0x140017996
movaps xmm0, xmm7
unpcklpd xmm0, xmm0
movabs rax, 0x3fb5d867c3ece2a5
movups xmmword [rdi + 0x20], xmm0
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], rax
movd xmm0, dword [r15 + 0x280]
cvtdq2pd xmm0, xmm0
movsd qword [rdi + 0x40], xmm0
mov rax, qword [rdi + 0x150]
test rax, rax
je 0x1400179d4
inc dword [rax + 0x668]
mov rdi, qword [rsp + 0x70]
inc ebx
mov ecx, dword [rsp + 0x44]
inc rdi
mov r12, qword [rbp - 0x48]
inc ecx
mov qword [rsp + 0x70], rdi
mov r9d, 1
mov dword [rsp + 0x40], ebx
jmp 0x140017726
mov rdx, qword [rbp - 0x40]
mov r8d, dword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
inc r8d
add rdx, 8
mov dword [rsp + 0x68], r8d
mov r9d, 1
mov qword [rbp - 0x40], rdx
cmp r8d, dword [r13 + 0x430]
jl 0x140017710
mov r14d, dword [rsp + 0x6c]
mov r15, qword [rbp - 0x70]
cmp dword [r13 + 0x668], 0
jne 0x140017a48
mov rcx, r13
call fcn.140016660
mov rdi, qword [rbp - 0x60]
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x140017a8f
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140017a64
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], 0
mov rcx, rbx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140017a55
test rcx, rcx
je 0x140017a8f
mov rax, qword [rdi + 0x10]
mov qword [rcx], rax
mov rax, qword [rdi + 0x18]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbx
mov rax, qword [rdi + 8]
test rax, rax
je 0x140017aba
nop dword [rax + rax]
mov rcx, qword [rax + 8]
mov rbx, qword [rax]
test rcx, rcx
je 0x140017ab2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, rbx
test rbx, rbx
jne 0x140017aa0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [rsp + 0x48]
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x70]
movups xmmword [rbp - 0x68], xmm0
mov rsi, qword [rsp + 0x58]
inc r14d
add r15, 8
mov dword [rsp + 0x6c], r14d
mov qword [rbp - 0x70], r15
cmp r14d, eax
jl 0x1400175f0
mov ebx, dword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x420]
movaps xmm6, xmmword [rsp + 0x430]
mov rax, qword [rbp - 0x30]
mov qword [rax], r12
mov rax, qword [rbp - 0x28]
mov dword [rax], ebx
mov eax, dword [rsp + 0x78]
jmp 0x140017b2a
mov qword [r12], rsi
mov r8d, edi
mov rdx, r12
mov rcx, r14
call fcn.140017b60
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.140052090
mov rbx, qword [rsp + 0x488]
add rsp, 0x440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret