Function at 0x140015660
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400b34a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [0x1400a3770]
mov r9d, 0x1b4d
lea r8, str.E:mbedtls_3.2.1mbedtls_3.2.1library_ssl_tls.c
mov qword [rsp + 0x20], rax
mov edx, 2
mov rbx, rcx
call fcn.140024d00
mov rax, qword [rbx]
lea rdx, [rsp + 0x38]
mov r9, qword [rbx + 0x70]
mov rcx, rbx
movzx r8d, byte [rax + 8]
xor r8d, 1
call qword [r9 + 0x30]
mov edx, 1
mov rcx, rbx
call fcn.14001afa0
mov edi, eax
test eax, eax
je 0x14001575c
mov rax, qword [rbx]
test rax, rax
je 0x14001591b
cmp qword [rax + 0x20], 0
je 0x14001591b
cmp dword [0x1400bc2d0], 1
jl 0x14001591b
cmp edi, 0xffff9700
je 0x14001591b
mov eax, edi
lea r9, str.mbedtls_ssl_read_record
neg eax
lea r8, str._s___returned__d___0x_04x__n
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x50]
mov edx, 0x200
mov dword [rsp + 0x20], edi
call fcn.140023810
mov rax, qword [rbx]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r8, str.E:mbedtls_3.2.1mbedtls_3.2.1library_ssl_tls.c
mov r9d, 0x1b53
mov edx, 1
mov rcx, qword [rax + 0x28]
call qword [rax + 0x20]
jmp 0x14001591b
cmp dword [rbx + 0xe8], 0x16
je 0x1400157a2
lea rax, str.bad_finished_message
mov r9d, 0x1b59
lea r8, str.E:mbedtls_3.2.1mbedtls_3.2.1library_ssl_tls.c
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, rbx
call fcn.140024d00
mov r8b, 0xa
mov dl, 2
mov rcx, rbx
call fcn.14001cbb0
mov edi, 0xffff8900
jmp 0x14001591b
mov rcx, qword [rbx + 0xd8]
cmp byte [rcx], 0x14
jne 0x14001578b
mov rax, qword [rbx]
mov r8d, reloc.WS2_32.dll_recv
movzx edx, byte [rax + 9]
mov eax, 0x18
cmp dl, 1
cmovne eax, r8d
cmp qword [rbx + 0x120], rax
je 0x14001580d
lea rax, str.bad_finished_message
mov r9d, 0x1b6a
lea r8, str.E:mbedtls_3.2.1mbedtls_3.2.1library_ssl_tls.c
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, rbx
call fcn.140024d00
mov r8b, 0x32
mov dl, 2
mov rcx, rbx
call fcn.14001cbb0
mov edi, 0xffff8d00
jmp 0x14001591b
cmp dl, 1
mov byte [rsp + 0x30], 0
mov eax, 4
mov r8d, recv
cmovne r8d, eax
add r8, rcx
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
movzx ecx, byte [rsp + rdx + 0x38]
inc rdx
xor cl, al
movzx eax, byte [rsp + 0x30]
or cl, al
mov byte [rsp + 0x30], cl
cmp rdx, 0xc
jb 0x140015830
movzx eax, byte [rsp + 0x30]
test al, al
je 0x140015896
lea rax, str.bad_finished_message
mov r9d, 0x1b74
lea r8, str.E:mbedtls_3.2.1mbedtls_3.2.1library_ssl_tls.c
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, rbx
call fcn.140024d00
mov r8b, 0x33
mov dl, 2
mov rcx, rbx
call fcn.14001cbb0
mov edi, 0xffff9200
jmp 0x14001591b
mov eax, dword [rsp + 0x40]
movsd xmm0, qword [rsp + 0x38]
mov qword [rbx + 0x1c0], recv
movsd qword [rbx + 0x1d4], xmm0
mov dword [rbx + 0x1dc], eax
mov rax, qword [rbx + 0x70]
cmp byte [rax], 0
je 0x1400158e1
mov rax, qword [rbx]
cmp byte [rax + 8], 0
jne 0x1400158d2
mov dword [rbx + 8], 0xa
cmp byte [rax + 8], 1
jne 0x1400158e4
mov dword [rbx + 8], reloc.WS2_32.dll_ntohs
jmp 0x1400158e4
inc dword [rbx + 8]
mov rax, qword [rbx]
cmp byte [rax + 9], 1
jne 0x1400158f5
mov rcx, rbx
call fcn.140019800
lea rax, str.__parse_finished
mov r9d, 0x1b93
lea r8, str.E:mbedtls_3.2.1mbedtls_3.2.1library_ssl_tls.c
mov qword [rsp + 0x20], rax
mov edx, 2
mov rcx, rbx
call fcn.140024d00
mov rax, qword [fcn.14006c5b0]
lea rcx, [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 0xc]
call rax
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140068c30
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret