Function at 0x14000e350
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x60
mov rbp, qword [rcx + 0x60]
mov r13, rcx
mov rax, qword [rbp + 8]
mov rbx, qword [rax + 0x20]
mov rdi, qword [rax + 0x28]
mov rax, qword [rcx + 0x30]
sub rdi, rbx
test rax, rax
je 0x14000e3ee
cmp byte [rax], 0
je 0x14000e3ee
mov r8, rdi
mov qword [rsp + 0x20], gethostbyname
mov rdx, rbx
xor ecx, ecx
call fcn.140001490
lea rcx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000e3cc
mov r8, rdi
mov qword [rsp + 0x20], gethostbyname
mov rdx, rbx
mov rcx, rax
call fcn.140001490
mov r9, rsi
lea rdx, str.ws.recv_frame
mov r8, rdi
lea rcx, str._s__zd_:_n_s_n
call fcn.140002130
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [rbp + 0x68], 0
jne 0x14000e619
mov r8, qword [rbp + 0x70]
test r8, r8
je 0x14000e619
cmp rdi, r8
jb 0x14000e619
mov qword [rsp + 0x58], r12
movsx r12d, byte [rbx]
mov eax, r12d
mov qword [rsp + 0x48], r15
shr eax, 7
and al, 1
mov dword [rsp + 0x30], eax
and r12b, 0xf
jne 0x14000e434
movzx r12d, byte [rbp + 0x78]
movsx rax, byte [rbx + 1]
add rbx, 2
mov rdi, rax
mov r15d, eax
shr r15d, 7
and edi, 0x7f
and r15b, 1
cmp rdi, 0x7e
jb 0x14000e47d
cmp rdi, 0x7f
mov eax, 2
mov edx, 8
mov rdi, r8
cmovb edx, eax
movzx eax, r15b
lea eax, [rax*4 + 2]
add eax, edx
sub rdi, rax
mov eax, edx
add rbx, rax
test r15b, r15b
je 0x14000e4d8
movzx eax, byte [rbx]
mov r8d, 1
movzx edx, byte [rbx + 1]
test al, al
mov byte [rsp + 0x90], al
setne al
mov byte [rsp + 0x91], dl
test dl, dl
movzx ecx, al
movzx eax, byte [rbx + 2]
cmovne ecx, r8d
mov byte [rsp + 0x92], al
test al, al
movzx edx, cl
movzx ecx, byte [rbx + 3]
cmovne edx, r8d
mov byte [rsp + 0x93], cl
test cl, cl
movzx r15d, dl
cmovne r15d, r8d
add rbx, 4
mov rcx, qword [rbp + 0x18]
mov rdx, rdi
call fcn.140001170
test eax, eax
je 0x14000e4fe
mov r8, rdi
lea rdx, str.Payload__zd_exceeds_buffer_capacity
mov rcx, r13
call qword [r13 + 0x58]
jmp 0x14000e5d4
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x50], r14
xor r14d, r14d
mov rsi, qword [rax + 0x10]
test r15b, r15b
je 0x14000e541
mov edx, r14d
test rdi, rdi
je 0x14000e552
mov r8, rdi
nop
movzx ecx, byte [rbx]
mov eax, edx
and eax, 3
inc rbx
inc edx
xor cl, byte [rsp + rax + 0x90]
mov byte [rsi], cl
inc rsi
sub r8, 1
jne 0x14000e520
jmp 0x14000e552
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
add rsi, rdi
mov rax, qword [rbp + 8]
mov qword [rax + 0x20], rbx
cmp r12b, 1
jne 0x14000e5a1
mov rax, qword [rbp + 0x18]
mov r8, r14
mov r10, qword [rax + 0x10]
mov rdx, r10
test rdi, rdi
je 0x14000e5a1
lea r11, [0x140010680]
nop word [rax + rax]
movzx r9d, byte [rdx]
inc rdx
lea eax, [r14 + r9]
movzx r14d, word [r11 + rax*2]
cmp r14d, 0x800
je 0x14000e5e9
inc r8
cmp r8, rdi
jb 0x14000e580
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
mov byte [rcx], al
mov rax, qword [rsp + 0xa0]
mov byte [rax], r12b
mov rax, qword [rsp + 0xa8]
mov byte [rax], r15b
mov rax, qword [rbp + 0x18]
mov qword [rax + 0x10], rsi
xor al, al
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x48]
add rsp, 0x60
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
sub rdx, r10
lea rax, str.masked
dec rdx
lea r8, [0x140011d09]
test r15b, r15b
mov qword [rsp + 0x20], rdx
lea rdx, str.Invalid__sUTF8_character_0x_x_at__zd
mov rcx, r13
cmovne r8, rax
call qword [r13 + 0x58]
jmp 0x14000e5cf
lea rdx, str.Invalid_partial_frame
mov rcx, r13
mov rax, qword [r13 + 0x58]
add rsp, 0x60
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
jmp rax