Function at 0x1400d1520
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, rdx
mov r12, qword [rsp + 0x110]
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [rcx], 0
je 0x1400d15aa
mov ebx, r9d
mov ebp, r8d
mov rdi, rcx
movzx r15d, byte [rcx + 0x271]
test r15b, 8
jne 0x1400d15ba
lea rcx, [rdi + 8]
and r15b, 1
neg r15b
and r15b, byte [rdi + 0x26d]
call fcn.140034040
mov rcx, rax
call fcn.140067fa0
movzx ecx, r15b
add rcx, rax
mov rax, qword [r12 + 8]
sub rax, rcx
jae 0x1400d15be
mov dword [rsp + 0x20], 0x101
jmp 0x1400d169b
movups xmm0, xmmword [r12]
movups xmmword [rsi], xmm0
mov sil, 1
jmp 0x1400d197c
xor eax, eax
jmp 0x1400d15c6
movzx r15d, byte [rdi + 0x271]
mov r14, qword [rsp + 0x100]
test r15b, 0x10
jne 0x1400d161b
mov rcx, qword [r14]
mov qword [rsp + 0x80], rcx
mov byte [rsp + 0x88], bpl
mov byte [rsp + 0x89], bh
mov byte [rsp + 0x8a], bl
mov ebp, ntohs
lea rcx, [rsp + 0x80]
test r15b, 8
jne 0x1400d162a
rol ax, 8
mov word [rsp + 0x8b], ax
mov ebp, reloc.WS2_32.dll_listen
jmp 0x1400d162a
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax]
mov rbp, qword [rax + 8]
mov r13d, r15d
movzx ebx, byte [rdi + 0x26c]
and r13b, 4
mov qword [rsp + 0x50], rcx
jne 0x1400d1660
test rbx, rbx
je 0x1400d16bb
lea rdx, [rdi + 0x260]
lea rcx, [rsp + 0x60]
mov r8, rbx
call fcn.14027bf80
test r15b, 1
je 0x1400d16c3
jmp 0x1400d1681
movzx eax, byte [rdi + 0x26d]
sub rbx, rax
je 0x1400d16bb
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8, rbx
call fcn.14027bdc0
test r15b, 1
je 0x1400d16c3
mov r13, qword [r12 + 8]
movzx r14d, byte [rdi + 0x26d]
sub r13, r14
jae 0x1400d16e5
mov dword [rsp + 0x20], 0x11c
lea r9, str..._.._third_party_boringssl_src_ssl_ssl_aead_ctx.cc
xor esi, esi
mov ecx, reloc.WS2_32.dll_recv
xor edx, edx
mov r8d, reloc.WS2_32.dll_WSASetLastError
call fcn.140049240
jmp 0x1400d197c
xor ebx, ebx
test r15b, 1
jne 0x1400d1681
movzx r15d, byte [rdi + 0x26d]
test r15, r15
je 0x1400d1723
lea rcx, [rsp + rbx]
add rcx, 0x60
mov rdx, r14
mov r8, r15
call fcn.14027bf80
jmp 0x1400d1726
mov r15, qword [r12]
test r14, r14
je 0x1400d1701
lea rcx, [rsp + rbx]
add rcx, 0x60
mov rdx, r15
mov r8, r14
call fcn.14027bf80
add r15, r14
mov qword [r12], r15
mov qword [r12 + 8], r13
movzx r15d, byte [rdi + 0x26d]
movzx r13d, byte [rdi + 0x271]
and r13b, 4
jmp 0x1400d1726
xor r15d, r15d
movzx eax, r15b
add rbx, rax
test r13b, r13b
je 0x1400d1914
movzx eax, byte [rdi + 0x26c]
test rax, rax
je 0x1400d1914
cmp al, 8
jae 0x1400d1751
xor ecx, ecx
jmp 0x1400d1900
cmp al, 0x20
jae 0x1400d175c
xor ecx, ecx
jmp 0x1400d18d8
mov ecx, eax
movups xmm0, xmmword [rdi + 0x260]
movups xmm1, xmmword [rdi + 0x270]
xorps xmm0, xmmword [rsp + 0x60]
xorps xmm1, xmmword [rsp + 0x70]
and ecx, 0xffffffe0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm1
cmp rcx, 0x20
je 0x1400d18cf
movups xmm0, xmmword [rdi + 0x280]
movups xmm1, xmmword [rdi + 0x290]
xorps xmm0, xmmword [rsp + 0x80]
xorps xmm1, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm1
cmp ecx, 0x40
je 0x1400d18cf
movups xmm0, xmmword [rdi + 0x2a0]
movups xmm1, xmmword [rdi + 0x2b0]
xorps xmm0, xmmword [rsp + 0xa0]
xorps xmm1, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0xb0], xmm1
cmp ecx, 0x60
je 0x1400d18cf
movups xmm0, xmmword [rdi + 0x2c0]
movups xmm1, xmmword [rdi + 0x2d0]
xorps xmm0, xmmword [rsp + 0xc0]
xorps xmm1, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xd0], xmm1
cmp ecx, 0x80
je 0x1400d18cf
movups xmm0, xmmword [rdi + 0x2e0]
movups xmm1, xmmword [rdi + 0x2f0]
xorps xmm0, xmmword [rsp + 0xe0]
xorps xmm1, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xf0], xmm1
cmp ecx, 0xa0
je 0x1400d18cf
movups xmm0, xmmword [rdi + 0x300]
movups xmm1, xmmword [rdi + 0x310]
xorps xmm0, xmmword [rsp + 0x100]
xorps xmm1, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0x110], xmm1
cmp ecx, 0xc0
je 0x1400d18cf
movups xmm0, xmmword [rdi + 0x320]
movups xmm1, xmmword [rdi + 0x330]
xorps xmm0, xmmword [rsp + 0x120]
xorps xmm1, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0x120], xmm0
movaps xmmword [rsp + 0x130], xmm1
cmp rcx, rax
je 0x1400d1914
test al, 0x18
je 0x1400d1900
mov rdx, rcx
mov ecx, eax
and ecx, 0xfffffff8
mov r8, qword [rdi + rdx + 0x260]
xor qword [rsp + rdx + 0x60], r8
add rdx, 8
cmp rcx, rdx
jne 0x1400d18e0
cmp rcx, rax
je 0x1400d1914
nop dword [rax + rax]
movzx edx, byte [rdi + rcx + 0x260]
xor byte [rsp + rcx + 0x60], dl
inc rcx
cmp rax, rcx
jne 0x1400d1900
mov rdx, qword [r12]
mov r9, qword [r12 + 8]
add rdi, 8
mov qword [rsp + 0x48], rbp
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov rcx, rdi
call fcn.140068400
test eax, eax
je 0x1400d1976
mov rcx, qword [rsp + 0x58]
mov rdx, qword [r12]
mov r8, qword [r12 + 8]
cmp r8, rcx
cmovb rcx, r8
mov qword [rsi], rdx
mov qword [rsi + 8], rcx
test eax, eax
setne sil
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140279500
mov eax, esi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret