Function at 0x14000a000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400c9948]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [0x1400b9410]
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.1400196f0
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.140010140
mov edi, eax
test eax, eax
je 0x14000a0fc
mov rax, qword [rbx]
test rax, rax
je 0x14000a2d2
cmp qword [rax + 0x20], 0
je 0x14000a2d2
cmp dword [0x1400d06f0], 1
jl 0x14000a2d2
cmp edi, 0xffff9700
je 0x14000a2d2
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.140018360
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 0x14000a2d2
cmp dword [rbx + 0xe8], 0x16
je 0x14000a142
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.1400196f0
mov r8b, 0xa
mov dl, 2
mov rcx, rbx
call fcn.140011720
mov edi, 0xffff8900
jmp 0x14000a2d2
mov rcx, qword [rbx + 0xd8]
cmp byte [rcx], 0x14
jne 0x14000a12b
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 0x14000a1ad
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.1400196f0
mov r8b, gethostbyname
mov dl, 2
mov rcx, rbx
call fcn.140011720
mov edi, 0xffff8d00
jmp 0x14000a2d2
cmp dl, 1
mov byte [rsp + 0x30], 0
mov eax, 4
mov r9d, recv
cmovne r9d, eax
xor r8d, r8d
add r9, rcx
lea rax, [rsp + 0x38]
sub r9, rax
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x38]
add rax, r8
inc r8
movzx ecx, byte [r9 + rax]
movzx edx, byte [rax]
movzx eax, byte [rsp + 0x30]
xor dl, cl
or dl, al
mov byte [rsp + 0x30], dl
cmp r8, 0xc
jb 0x14000a1e0
movzx eax, byte [rsp + 0x30]
test al, al
je 0x14000a24c
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.1400196f0
mov r8b, gethostbyname
mov dl, 2
mov rcx, rbx
call fcn.140011720
mov edi, 0xffff9200
jmp 0x14000a2d2
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]
mov rcx, qword [rbx]
cmp byte [rax], 0
je 0x14000a29b
movzx eax, byte [rcx + 8]
test al, al
jne 0x14000a28e
mov dword [rbx + 8], 0xa
movzx eax, byte [rcx + 8]
cmp al, 1
jne 0x14000a29e
mov dword [rbx + 8], reloc.WS2_32.dll_ntohs
jmp 0x14000a29e
inc dword [rbx + 8]
cmp byte [rcx + 9], 1
jne 0x14000a2ac
mov rcx, rbx
call fcn.14000e3e0
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.1400196f0
mov rax, qword [fcn.140080540]
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.1400946f0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret