Function at 0x1400a7be0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rbp - 9], rax
mov r13, rdx
mov r15, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov r12, qword [rdx + 8]
mov rcx, r12
call qword [sym.imp.zstd.dll_ZSTD_compressBound]
mov qword [rsp + 0x30], rax
lea r14, [rax + 8]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov edi, esi
mov qword [rbp - 0x79], rsi
test r14, r14
je 0x1400a7cbb
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1400a8202
cmp r14, 0x1000
jb 0x1400a7c8f
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x1400a81da
call fcn.1401056e8
test rax, rax
je 0x1400a8194
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400a7c9a
mov rcx, r14
call fcn.1401056e8
mov rbx, rax
mov qword [rsp + 0x40], rbx
lea rdi, [rbx + r14]
mov qword [rbp - 0x79], rdi
mov r8, r14
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x48], rdi
jmp 0x1400a7cc0
mov rbx, qword [rsp + 0x40]
xor edx, edx
mov cl, 0x52
call fcn.14007beb0
mov byte [rbp - 0x39], al
mov edx, 1
mov cl, 0x53
call fcn.14007beb0
mov byte [rbp - 0x38], al
mov edx, 2
mov cl, 0x42
call fcn.14007beb0
mov byte [rbp - 0x37], al
mov edx, 3
mov cl, 0x31
call fcn.14007beb0
mov byte [rbp - 0x36], al
xor eax, eax
mov byte [rbp - 0x35], al
movdqa xmm7, xmmword [0x14010f250]
mov eax, esi
movdqa xmm0, xmmword [0x14010f280]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmmword [rbp - 0x69], xmm0
lea rcx, [rbp - 0x39]
movdqa xmm6, xmmword [0x14010f260]
mov edx, dword [rbp - 0x49]
nop dword [rax]
movd xmm1, eax
pshufd xmm1, xmm1, 0
paddd xmm1, xmm7
andps xmm1, xmm6
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [rcx]
xorps xmm1, xmm0
movd dword [rcx], xmm1
add eax, 4
lea rcx, [rcx + 4]
cmp eax, 4
jb 0x1400a7d30
mov byte [rbp - 0x35], 0
sub rdi, rbx
lea r8, [rbp - 0x39]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, [rbx + 4]
test rcx, rcx
jne 0x1400a7d95
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WSOCK32.dll_shutdown
jmp 0x1400a7db6
cmp rdi, 8
jb 0x1400a7da0
mov qword [rcx], r12
jmp 0x1400a7dbc
mov r8, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
call qword [sym.imp.zstd.dll_ZSTD_maxCLevel]
lea rcx, [rbx + 8]
mov dword [rsp + 0x20], eax
mov r9, r12
mov r8, qword [r13]
mov rdx, qword [rsp + 0x30]
call qword [sym.imp.zstd.dll_ZSTD_compress]
mov r14, rax
mov rcx, rax
call qword [sym.imp.zstd.dll_ZSTD_isError]
test eax, eax
je 0x1400a810a
xor edx, edx
mov cl, 0x46
call fcn.14007beb0
mov byte [rbp - 0x31], al
mov edx, 1
mov cl, 0x61
call fcn.14007beb0
mov byte [rbp - 0x30], al
mov edx, 2
mov cl, 0x69
call fcn.14007beb0
mov byte [rbp - 0x2f], al
mov edx, 3
mov cl, 0x6c
call fcn.14007beb0
mov byte [rbp - 0x2e], al
mov edx, 4
mov cl, 0x65
call fcn.14007beb0
mov byte [rbp - 0x2d], al
mov edx, 5
mov cl, 0x64
call fcn.14007beb0
mov byte [rbp - 0x2c], al
mov edx, 6
mov cl, 0x20
call fcn.14007beb0
mov byte [rbp - 0x2b], al
mov edx, 7
mov cl, reloc.WSOCK32.dll_WSACleanup
call fcn.14007beb0
mov byte [rbp - 0x2a], al
mov edx, 8
mov cl, reloc.WSOCK32.dll_WSAGetLastError
call fcn.14007beb0
mov byte [rbp - 0x29], al
mov edx, 9
mov cl, 0x20
call fcn.14007beb0
mov byte [rbp - 0x28], al
mov edx, 0xa
mov cl, 0x63
call fcn.14007beb0
mov byte [rbp - 0x27], al
mov edx, ntohl
mov cl, reloc.WSOCK32.dll_WSAGetLastError
call fcn.14007beb0
mov byte [rbp - 0x26], al
mov edx, reloc.WSOCK32.dll_ioctlsocket
mov cl, 0x6d
call fcn.14007beb0
mov byte [rbp - 0x25], al
mov edx, reloc.WSOCK32.dll_listen
mov cl, reloc.WSOCK32.dll_WSASetLastError
call fcn.14007beb0
mov byte [rbp - 0x24], al
mov edx, reloc.WSOCK32.dll_ntohl
mov cl, WSAStartup
call fcn.14007beb0
mov byte [rbp - 0x23], al
mov edx, reloc.WSOCK32.dll_ntohs
mov cl, 0x65
call fcn.14007beb0
mov byte [rbp - 0x22], al
mov edx, select
mov cl, reloc.WSOCK32.dll_WSAStartup
call fcn.14007beb0
mov byte [rbp - 0x21], al
mov edx, select
mov cl, reloc.WSOCK32.dll_WSAStartup
call fcn.14007beb0
mov byte [rbp - 0x20], al
mov edx, reloc.WSOCK32.dll_select
mov cl, 0x20
call fcn.14007beb0
mov byte [rbp - 0x1f], al
mov edx, shutdown
mov cl, reloc.WSOCK32.dll_WSACleanup
call fcn.14007beb0
mov byte [rbp - 0x1e], al
mov edx, shutdown
mov cl, 0x68
call fcn.14007beb0
mov byte [rbp - 0x1d], al
mov edx, reloc.WSOCK32.dll_setsockopt
mov cl, 0x65
call fcn.14007beb0
mov byte [rbp - 0x1c], al
mov edx, reloc.WSOCK32.dll_shutdown
mov cl, 0x20
call fcn.14007beb0
mov byte [rbp - 0x1b], al
mov edx, 0x17
mov cl, 0x62
call fcn.14007beb0
mov byte [rbp - 0x1a], al
mov edx, 0x18
mov cl, 0x79
call fcn.14007beb0
mov byte [rbp - 0x19], al
mov edx, 0x19
mov cl, reloc.WSOCK32.dll_WSACleanup
call fcn.14007beb0
mov byte [rbp - 0x18], al
mov edx, 0x1a
mov cl, 0x65
call fcn.14007beb0
mov byte [rbp - 0x17], al
mov edx, 0x1b
mov cl, 0x63
call fcn.14007beb0
mov byte [rbp - 0x16], al
mov edx, 0x1c
mov cl, reloc.WSOCK32.dll_WSAGetLastError
call fcn.14007beb0
mov byte [rbp - 0x15], al
mov edx, 0x1d
mov cl, 0x64
call fcn.14007beb0
mov byte [rbp - 0x14], al
mov edx, 0x1e
mov cl, 0x65
call fcn.14007beb0
mov byte [rbp - 0x13], al
mov edx, 0x1f
mov cl, 0x2e
call fcn.14007beb0
mov byte [rbp - 0x12], al
xor eax, eax
mov byte [rbp - 0x11], al
lea r9, [rbp - 0x2d]
mov r10d, dword [rbp - 0x69]
nop word [rax + rax]
movd xmm1, esi
pshufd xmm1, xmm1, 0
paddd xmm1, xmm7
andps xmm1, xmm6
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd xmm0, r10d
paddb xmm1, xmm0
movd xmm0, dword [r9 - 4]
xorps xmm1, xmm0
movd dword [r9 - 4], xmm1
lea eax, [rsi + 7]
lea ecx, [rsi + 6]
lea edx, [rsi + 5]
lea r8d, [rsi + 4]
movd xmm1, eax
movd xmm2, ecx
movd xmm0, edx
movd xmm3, r8d
punpckldq xmm2, xmm1
punpckldq xmm3, xmm0
punpcklqdq xmm3, xmm2
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, r10d
paddb xmm3, xmm0
movd xmm0, dword [r9]
xorps xmm3, xmm0
movd dword [r9], xmm3
lea eax, [rsi + 0xb]
lea ecx, [rsi + 0xa]
lea edx, [rsi + 9]
lea r8d, [rsi + 8]
movd xmm1, eax
movd xmm2, ecx
movd xmm0, edx
movd xmm3, r8d
punpckldq xmm2, xmm1
punpckldq xmm3, xmm0
punpcklqdq xmm3, xmm2
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, r10d
paddb xmm3, xmm0
movd xmm0, dword [r9 + 4]
xorps xmm3, xmm0
movd dword [r9 + 4], xmm3
lea eax, [rsi + 0xf]
lea ecx, [rsi + 0xe]
lea edx, [rsi + 0xd]
lea r8d, [rsi + 0xc]
movd xmm1, eax
movd xmm2, ecx
movd xmm0, edx
movd xmm3, r8d
punpckldq xmm2, xmm1
punpckldq xmm3, xmm0
punpcklqdq xmm3, xmm2
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, r10d
paddb xmm3, xmm0
movd xmm0, dword [r9 + 8]
xorps xmm3, xmm0
movd dword [r9 + 8], xmm3
add esi, 0x10
lea r9, [r9 + 0x10]
cmp esi, 0x20
jae 0x1400a81e0
jmp 0x1400a7fe0
add r14, 8
mov r8d, 0x2a
mov rdx, r14
mov rcx, rbx
call sub.xxhash.dll_XXH32
mov dword [rbp - 0x39], eax
mov r10d, esi
test r14, r14
je 0x1400a8150
mov rax, rsi
nop dword [rax]
lea r9, [rax + rbx]
and eax, 3
movsx ecx, r10b
imul edx, ecx, 0x29
add dl, byte [rbp + rax - 0x39]
xor byte [r9], dl
inc r10d
mov eax, r10d
cmp rax, r14
jb 0x1400a8130
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rsi
mov r8, r14
mov rdx, rbx
mov rcx, r15
call fcn.14007b610
nop
test rbx, rbx
je 0x1400a81a6
mov rax, rbx
cmp rdi, 0x1000
jb 0x1400a819b
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a819b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rdi
mov rcx, rbx
call fcn.140105724
mov rax, r15
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140105ae0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14007c070
nop
mov byte [rbp - 0x11], 0
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x69]
call fcn.140095d00
lea rdx, [0x14013b0e0]
lea rcx, [rbp - 0x69]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14007c120
int3