Function at 0x14008ba40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140113040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r12d, r12d
mov rbp, qword [rdx + 8]
mov rcx, rbp
call qword [sym.imp.zstd.dll_ZSTD_compressBound]
mov r15, rax
xorps xmm0, xmm0
lea rsi, [rax + 8]
movdqu xmmword [rsp + 0x38], xmm0
mov edx, r12d
mov qword [rsp + 0x48], rdx
test rsi, rsi
je 0x14008bac7
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140021fe0
mov rcx, qword [rsp + 0x38]
lea rbx, [rsi + rcx]
mov r8, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x40], rbx
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
sub rdx, rcx
lea r8, str.RSB1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x38]
sub r8, rax
lea rcx, [rax + 4]
test rcx, rcx
jne 0x14008bb00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x14008bb1e
cmp r8, 8
jb 0x14008bb0b
mov qword [rcx], rbp
jmp 0x14008bb24
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]
mov rcx, qword [rsp + 0x38]
add rcx, 8
mov dword [rsp + 0x20], eax
mov r9, rbp
mov r8, qword [r14]
mov rdx, r15
call qword [sym.imp.zstd.dll_ZSTD_compress]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.zstd.dll_ZSTD_isError]
test eax, eax
je 0x14008bbe0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
xor r8d, r8d
lea rdx, [0x1400db633]
mov rcx, rdi
call fcn.140002930
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14008bbb7
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008bbb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008bc93
call fcn.1400cec64
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ce8a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
add rbx, 8
mov r8d, 0x2a
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.xxhash.dll_XXH32]
mov dword [rsp + 0x50], eax
mov r9d, r12d
test rbx, rbx
je 0x14008bc35
mov r8, r12
nop word [rax + rax]
mov rdx, qword [rsp + 0x38]
add rdx, r8
and r8d, 3
movsx eax, r9b
imul ecx, eax, 0x29
add cl, byte [rsp + r8 + 0x50]
xor byte [rdx], cl
inc r9d
mov r8d, r9d
cmp r8, rbx
jb 0x14008bc10
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov r8, rbx
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140002930
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14008bbb7
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008bbb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008bbb2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3