Function at 0x140115b90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
vmovaps xmmword [rsp + 0x200], xmm6
mov rax, qword [0x1401a6c00]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r8d, edx
mov r13, rcx
mov qword [rsp + 0x78], rcx
mov edi, edx
imul edi, dword [rcx + 0x54]
mov eax, 0x88888889
imul edi
lea r12d, [rdi + rdx]
sar r12d, 6
mov eax, r12d
shr eax, 0x1f
add r12d, eax
mov edx, r8d
call fcn.1401165f0
test al, al
jne 0x140115c07
inc dword [r13 + 0x68]
jmp 0x1401165a3
mov rax, qword [r13 + 0x38]
mov rcx, qword [r13 + 0x40]
sub rcx, rax
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rcx
vmovups xmm0, xmmword [rbp + 0xe0]
vmovdqa xmmword [rbp - 0x30], xmm0
lea rdx, [rbp - 0x30]
mov rcx, r13
call fcn.140115260
test al, al
je 0x140115bfe
xor edx, edx
mov dword [r13 + 0x68], edx
mov byte [r13 + 0x64], 1
mov rax, qword [r13 + 0x38]
movzx r15d, byte [rax + 2]
movzx r14d, r15b
shr r14b, 5
and r14b, 1
movzx edi, r15b
shr dil, 3
and dil, 1
mov byte [rsp + 0x30], dil
movzx eax, r15b
and al, 7
movzx ecx, r15b
and cl, 0x40
mov byte [rsp + 0x38], cl
mov esi, 0x7d00
mov ecx, 0xbb80
cmovne esi, ecx
mov dword [rsp + 0x50], esi
shr r15b, 4
and r15b, 1
movzx ecx, al
lea eax, [rdx + 2]
lea r8d, [rdx + 3]
vmovups xmm0, xmmword [rbp - 0x60]
vmovdqa xmmword [rbp - 0x30], xmm0
test ecx, ecx
je 0x140115ecd
sub ecx, 1
je 0x140115e1d
cmp ecx, 6
lea rcx, [rbp - 0x20]
je 0x140115d74
mov ebx, r8d
lea rax, str.MPEG_surround_is_RFA
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], Ordinal_23
mov qword [rbp + 0xe0], rdx
lea rax, [rbp - 0x30]
mov qword [rbp + 0xe8], rax
vmovups xmm0, xmmword [rbp + 0xe0]
vmovdqa xmmword [rsp + 0x60], xmm0
vmovups xmm1, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
call fcn.140048a50
nop
lea rdx, [rbp - 0x20]
lea rcx, str.aac_frame_processor
call fcn.140115620
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140115f73
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115f6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140115f6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ebx, eax
lea rax, str.MPEG_surround_in_other_mode
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], 0x1b
mov qword [rsp + 0x40], rdx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x60], xmm0
vmovups xmm1, xmmword [rbp + 0xe0]
vmovdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
call fcn.140048a50
nop
lea rdx, [rbp - 0x20]
lea rcx, str.aac_frame_processor
call fcn.140115620
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140115f73
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115f6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140115f6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ebx, 1
lea rax, str.MPEG_surround_with_5.1_output_channels_is_used
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], 0x2e
mov qword [rsp + 0x40], rdx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x60], xmm0
vmovups xmm1, xmmword [rbp + 0xe0]
vmovdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140048a50
nop
lea rdx, [rbp - 0x20]
lea rcx, str.aac_frame_processor
call fcn.140115620
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140115f73
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115f6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140115f6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ebx, edx
lea rax, str.MPEG_surround_is_not_used
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], 0x19
mov qword [rsp + 0x40], rdx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x60], xmm0
vmovups xmm1, xmmword [rbp + 0xe0]
vmovdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140048a50
nop
lea rdx, [rbp - 0x20]
lea rcx, str.aac_frame_processor
call fcn.140115620
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140115f73
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115f6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140115f6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fcffc
mov dword [rbp + 0xe0], esi
mov byte [rbp + 0xe4], dil
mov byte [rbp + 0xe5], r14b
mov byte [rbp + 0xe6], r15b
movzx eax, byte [rbp + 0xe7]
mov byte [rbp + 0xe7], al
mov rdi, qword [r13 + 0xa0]
mov rsi, qword [r13 + 0xa8]
cmp rdi, rsi
je 0x140115ff1
vmovsd xmm6, qword [rbp + 0xe0]
nop word [rax + rax]
vmovsd qword [rbp + 0xe0], xmm6
mov dword [rbp + 0xe8], ebx
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1401165dc
mov rax, qword [rcx]
lea rdx, [rbp + 0xe0]
call qword [rax + Ordinal_17]
add rdi, 0x40
cmp rdi, rsi
jne 0x140115fc0
lea rax, str.AAC_decoder_parameters:_sampling_rateHz_PS_SBR_stereo
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], 0x41
mov eax, dword [rsp + 0x50]
mov dword [rbp], eax
movzx eax, byte [rsp + 0x30]
mov dword [rbp + 0x10], eax
movzx eax, r14b
mov dword [rbp + 0x20], eax
mov byte [rbp + 0x30], r15b
vmovups ymm0, ymmword [rbp]
vmovups ymmword [rbp + 0x40], ymm0
vmovups ymm1, ymmword [rbp + 0x20]
vmovups ymmword [rbp + 0x60], ymm1
mov qword [rsp + 0x40], 0x7222
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rbp - 0x30], xmm0
vmovups xmm1, xmmword [rbp + 0xe0]
vmovdqa xmmword [rsp + 0x60], xmm1
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
vzeroupper
call fcn.140048a50
nop
lea rdx, [rbp - 0x20]
lea rcx, str.aac_frame_processor
call fcn.140115620
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1401160c8
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401160c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401160c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fcffc
vmovdqu xmm0, xmmword [0x140150990]
vmovdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
cmp byte [rsp + 0x38], 0
jne 0x1401160f4
mov r15d, 4
test r14b, r14b
mov eax, 2
cmovne r15d, eax
jmp 0x140116106
mov r15d, 6
test r14b, r14b
mov ecx, 3
cmovne r15d, ecx
mov dword [rsp + 0x50], r15d
xor eax, eax
mov qword [rbp + 0xe0], rax
mov dword [rbp + 0xe8], eax
mov word [rbp + 0xec], ax
movzx r14d, r15b
lea eax, [r14 - 1]
mov rsi, qword [r13 + 0x38]
xor ecx, ecx
mov r11d, ecx
mov ebx, ecx
lea r10d, [rcx + 8]
test eax, eax
jle 0x140116156
movsxd r9, r14d
dec r9
movzx eax, cx
lea rdi, [rbp + 0xe2]
mov rcx, r9
rep stosw word [rdi], ax
xor ecx, ecx
jmp 0x14011615a
lea r9, [r14 - 1]
test r9, r9
jle 0x1401161fa
mov r8, rcx
mov r15, rcx
mov r13d, r10d
nop dword [rax]
mov eax, Ordinal_15
sub eax, r11d
mov edi, r10d
cmp r10d, eax
cmovg edi, eax
mov ecx, r13d
sub ecx, r10d
movzx eax, byte [r15 + rsi + 3]
shl eax, cl
movzx edx, al
sar edx, cl
movzx ecx, r10b
sub cl, dil
shr dl, cl
movzx edx, dl
mov ecx, edi
movzx eax, word [rbp + r8*2 + 0xe2]
shl ax, cl
or dx, ax
mov word [rbp + r8*2 + 0xe2], dx
sub r10d, edi
add r11d, edi
mov ecx, r10d
test r10d, r10d
cmove r10d, r13d
lea rax, [r15 + 1]
test ecx, ecx
cmovne rax, r15
mov r15, rax
lea eax, [rbx + 1]
cmovne eax, ebx
mov ebx, eax
cmp r11d, 0xc
jne 0x1401161eb
xor r11d, r11d
inc r8
cmp r8, r9
jl 0x140116170
mov r13, qword [rsp + 0x78]
mov r15d, dword [rsp + 0x50]
movzx eax, r12w
imul ecx, eax, 0x6e
movzx eax, r15b
mov word [rbp + rax*2 + 0xe0], cx
lea eax, [rbx + 1]
cmp r10d, 8
cmovge eax, ebx
add eax, 3
mov word [rbp + 0xe0], ax
xor r11d, r11d
mov esi, r11d
test r14d, r14d
je 0x1401165a3
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x78], rax
nop dword [rax]
movzx edx, word [rax + 2]
movzx r8d, word [rax]
mov r9d, edx
sub r9d, r8d
add r9d, 0xfffffffe
js 0x1401164ae
mov r10, qword [r13 + 0x38]
mov rdi, qword [r13 + 0x40]
sub rdi, r10
cmp rdx, rdi
jae 0x1401164ae
sub rdx, r8
lea rbx, [r10 + r8]
sub rdi, r8
cmp rdx, 0xffffffffffffffff
cmovne rdi, rdx
movsxd r12, r9d
movzx r15d, byte [rbx + rdi - 2]
shl r15w, 8
movzx eax, byte [rbx + rdi - 1]
or r15w, ax
mov r8, qword [0x1401ad5f8]
movzx edi, word [r8 + 0xa]
mov rcx, r11
test r9d, r9d
je 0x1401162d2
mov rdx, qword [r8]
nop dword [rax]
movzx eax, byte [rbx + rcx]
shl ax, 8
xor di, ax
movzx eax, di
shr rax, 8
shl di, 8
xor di, word [rdx + rax*2]
inc rcx
cmp rcx, r12
jb 0x1401162b0
xor di, word [r8 + 0xc]
cmp di, r15w
sete al
lea rcx, str._crc16__au_is_match_crc_pred:04X_crc_rx:04X
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 0x37
mov dword [rbp + 0x40], esi
mov byte [rbp + 0x50], al
movzx eax, di
mov dword [rbp + 0x60], eax
movzx eax, r15w
mov dword [rbp + 0x70], eax
vmovups ymm0, ymmword [rbp + 0x40]
vmovups ymmword [rbp + 0x90], ymm0
vmovups ymm1, ymmword [rbp + 0x60]
vmovups ymmword [rbp + 0xb0], ymm1
mov qword [rsp + 0x40], 0x2271
lea rax, [rbp + 0x90]
mov qword [rsp + 0x48], rax
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rbp - 0x40], xmm0
vmovups xmm1, xmmword [rsp + 0x60]
vmovdqa xmmword [rbp - 0x50], xmm1
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x50]
lea rcx, [rbp]
vzeroupper
call fcn.140048a50
nop
lea rdx, [rbp]
lea rcx, str.aac_frame_processor
call fcn.140115620
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x1401163ac
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401163a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401164a7
call fcn.1400fcffc
xor r11d, r11d
mov qword [rbp + 0x10], r11
mov qword [rbp + 0x18], reloc.portaudio.dll_Ordinal_15
mov byte [rbp], r11b
cmp di, r15w
je 0x140116427
mov rbx, qword [r13 + 0xb8]
mov r12, qword [r13 + 0xc0]
cmp rbx, r12
je 0x140116489
nop dword [rax]
mov word [rsp + 0x38], di
mov word [rsp + 0x30], r15w
mov dword [rbp - 0x80], r14d
mov dword [rbp - 0x78], esi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1401165e2
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x78]
call qword [rax + Ordinal_17]
add rbx, 0x40
cmp rbx, r12
jne 0x1401163e0
jmp 0x140116486
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], r12
mov rdi, qword [r13 + 0xd0]
mov rbx, qword [r13 + 0xd8]
cmp rdi, rbx
je 0x140116489
vmovups xmm6, xmmword [rbp - 0x30]
nop word [rax + rax]
mov dword [rbp - 0x70], r14d
mov dword [rsp + 0x70], esi
vmovdqa xmmword [rbp - 0x60], xmm6
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1401165d6
mov rax, qword [rcx]
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
call qword [rax + Ordinal_17]
add rdi, 0x40
cmp rdi, rbx
jne 0x140116450
xor r11d, r11d
inc esi
mov rax, qword [rsp + 0x78]
add rax, 2
mov qword [rsp + 0x78], rax
cmp esi, r14d
jl 0x140116240
jmp 0x1401165a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, str.access_unit_out_of_bounds:_i_d__d_range__d__d__N_d
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x35
mov dword [rbp + 0x90], esi
movzx eax, byte [rsp + 0x50]
mov dword [rbp + 0xa0], eax
mov dword [rbp + 0xb0], r8d
mov dword [rbp + 0xc0], edx
mov rax, qword [r13 + 0x40]
sub rax, qword [r13 + 0x38]
mov qword [rbp + 0xd0], rax
vmovups ymm0, ymmword [rbp + 0x90]
vmovups ymmword [rbp + 0x40], ymm0
vmovups ymm1, ymmword [rbp + 0xb0]
vmovups ymmword [rbp + 0x60], ymm1
vmovups xmm0, xmmword [rbp + 0xd0]
vmovups xmmword [rbp + 0x80], xmm0
mov qword [rbp - 0x30], 0x41121
lea rax, [rbp + 0x40]
mov qword [rbp - 0x28], rax
vmovups xmm0, xmmword [rbp - 0x30]
vmovdqa xmmword [rbp - 0x60], xmm0
vmovups xmm1, xmmword [rsp + 0x60]
vmovdqa xmmword [rbp - 0x50], xmm1
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x20]
vzeroupper
call fcn.140048a50
nop
lea rdx, [rbp - 0x20]
lea rcx, str.aac_frame_processor
call fcn.140115460
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1401165a3
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011659e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14011659e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fcffc
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400fd350
mov rbx, qword [rsp + 0x260]
vmovaps xmm6, xmmword [rsp + 0x200]
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3