Function at 0x1400bd920
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 [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [rcx], 0
je 0x1400bd9aa
mov ebx, r9d
mov rdi, rcx
movzx r14d, byte [rcx + 0x261]
test r14b, 8
jne 0x1400bd9ba
mov ebp, r8d
lea rcx, [rdi + 8]
and r14b, 1
neg r14b
and r14b, byte [rdi + 0x25d]
call fcn.14002b260
mov rcx, rax
call fcn.14005f410
movzx ecx, r14b
add rcx, rax
mov rax, qword [r12 + 8]
sub rax, rcx
jae 0x1400bd9be
mov dword [rsp + 0x20], 0x100
jmp 0x1400bdab8
movups xmm0, xmmword [r12]
movups xmmword [rsi], xmm0
mov dil, 1
jmp 0x1400bdd75
xor eax, eax
jmp 0x1400bd9c9
movzx r14d, byte [rdi + 0x261]
mov r8d, ebp
mov r15, qword [rsp + 0x100]
bswap r15
test r14b, 0x10
jne 0x1400bda20
mov qword [rsp + 0x80], r15
mov byte [rsp + 0x88], r8b
mov byte [rsp + 0x89], bh
mov byte [rsp + 0x8a], bl
mov r11d, ntohs
lea rbp, [rsp + 0x80]
test r14b, 8
jne 0x1400bda2f
rol ax, 8
mov word [rsp + 0x8b], ax
mov r11d, reloc.WS2_32.dll_listen
jmp 0x1400bda2f
mov rax, qword [rsp + 0x108]
mov rbp, qword [rax]
mov r11, qword [rax + 8]
mov r13d, r14d
movzx ebx, byte [rdi + 0x25c]
and r13b, 4
jne 0x1400bda5d
test rbx, rbx
je 0x1400bda96
lea rdx, [rdi + 0x250]
lea rcx, [rsp + 0x60]
mov r8, rbx
mov r12, r11
call fcn.14025bfc0
jmp 0x1400bda7b
movzx eax, byte [rdi + 0x25d]
sub rbx, rax
je 0x1400bda96
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8, rbx
mov r12, r11
call fcn.14025c7b0
mov r11, r12
mov r12, qword [rsp + 0x110]
test r14b, 1
jne 0x1400bda9e
mov qword [rsp + rbx + 0x60], r15
jmp 0x1400bdb22
xor ebx, ebx
test r14b, 1
je 0x1400bda8c
mov r13, qword [r12 + 8]
movzx r14d, byte [rdi + 0x25d]
sub r13, r14
jae 0x1400bdad8
mov dword [rsp + 0x20], 0x11b
lea r9, str..._.._third_party_boringssl_src_ssl_ssl_aead_ctx.cc
xor edi, edi
mov ecx, reloc.WS2_32.dll_recv
xor edx, edx
mov r8d, reloc.WS2_32.dll_WSASetLastError
call fcn.140044b10
jmp 0x1400bdd75
mov r15, qword [r12]
test r14, r14
je 0x1400bdb0a
lea rcx, [rsp + rbx]
add rcx, 0x60
mov rdx, r15
mov r8, r14
mov qword [rsp + 0x50], rsi
mov rsi, r12
mov r12, r11
call fcn.14025bfc0
mov r11, r12
mov r12, rsi
mov rsi, qword [rsp + 0x50]
add r15, r14
mov qword [r12], r15
mov qword [r12 + 8], r13
movzx r13d, byte [rdi + 0x261]
and r13b, 4
movzx eax, byte [rdi + 0x25d]
add rbx, rax
test r13b, r13b
je 0x1400bdd14
movzx eax, byte [rdi + 0x25c]
test rax, rax
je 0x1400bdd14
cmp al, 8
jae 0x1400bdb50
xor ecx, ecx
jmp 0x1400bdd00
cmp al, 0x20
jae 0x1400bdb5b
xor ecx, ecx
jmp 0x1400bdcd7
mov ecx, eax
movups xmm0, xmmword [rdi + 0x250]
movups xmm1, xmmword [rdi + 0x260]
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 0x1400bdcce
movups xmm0, xmmword [rdi + 0x270]
movups xmm1, xmmword [rdi + 0x280]
xorps xmm0, xmmword [rsp + 0x80]
xorps xmm1, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm1
cmp ecx, 0x40
je 0x1400bdcce
movups xmm0, xmmword [rdi + 0x290]
movups xmm1, xmmword [rdi + 0x2a0]
xorps xmm0, xmmword [rsp + 0xa0]
xorps xmm1, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0xb0], xmm1
cmp ecx, 0x60
je 0x1400bdcce
movups xmm0, xmmword [rdi + 0x2b0]
movups xmm1, xmmword [rdi + 0x2c0]
xorps xmm0, xmmword [rsp + 0xc0]
xorps xmm1, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xd0], xmm1
cmp ecx, 0x80
je 0x1400bdcce
movups xmm0, xmmword [rdi + 0x2d0]
movups xmm1, xmmword [rdi + 0x2e0]
xorps xmm0, xmmword [rsp + 0xe0]
xorps xmm1, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xf0], xmm1
cmp ecx, 0xa0
je 0x1400bdcce
movups xmm0, xmmword [rdi + 0x2f0]
movups xmm1, xmmword [rdi + 0x300]
xorps xmm0, xmmword [rsp + 0x100]
xorps xmm1, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0x110], xmm1
cmp ecx, 0xc0
je 0x1400bdcce
movups xmm0, xmmword [rdi + 0x310]
movups xmm1, xmmword [rdi + 0x320]
xorps xmm0, xmmword [rsp + 0x120]
xorps xmm1, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0x120], xmm0
movaps xmmword [rsp + 0x130], xmm1
cmp rcx, rax
je 0x1400bdd14
test al, 0x18
je 0x1400bdd00
mov rdx, rcx
mov ecx, eax
and ecx, 0xfffffff8
nop
mov r8, qword [rdi + rdx + 0x250]
xor qword [rsp + rdx + 0x60], r8
add rdx, 8
cmp rcx, rdx
jne 0x1400bdce0
cmp rcx, rax
je 0x1400bdd14
nop dword [rax + rax]
movzx edx, byte [rdi + rcx + 0x250]
xor byte [rsp + rcx + 0x60], dl
inc rcx
cmp rax, rcx
jne 0x1400bdd00
mov rdx, qword [r12]
mov r9, qword [r12 + 8]
add rdi, 8
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rbp
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.14005f870
test eax, eax
setne dil
je 0x1400bdd75
mov rax, qword [rsp + 0x58]
mov rcx, qword [r12]
mov rdx, qword [r12 + 8]
cmp rdx, rax
cmovb rax, rdx
mov qword [rsi], rcx
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140258ea0
mov eax, edi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret