Function at 0x1402e6ba0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140463cc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx r14d, byte [rcx]
mov rbp, r9
mov r12, qword [rcx + 0x28]
mov rsi, r8
mov r13, qword [rcx + 0x30]
mov rdi, rdx
mov byte [rsp + 0x20], r14b
mov rbx, rcx
test r14b, 0x40
jne 0x1402e6bf4
lea rdx, [rcx + 0x10]
mov r8, r13
call r12
inc qword [rbx + 0x20]
mov r8d, r14d
mov r15d, reloc.WS2_32.dll_ntohs
and r8d, 7
xor r14d, r14d
mov eax, r15d
mov dword [rsp + 0x24], r8d
sub eax, r8d
mov byte [rbx], r8b
mov ecx, r14d
cmp eax, r15d
jae 0x1402e6c37
mov edx, eax
add rdx, rbx
nop
movzx eax, byte [rdx]
mov byte [rdx], r14b
lea rdx, [rdx + 1]
or rcx, rax
shl rcx, 8
sub r8, 1
jne 0x1402e6c20
movzx eax, byte [rbx + 0xf]
or rcx, rax
mov byte [rbx + 0xf], 1
cmp rcx, rbp
je 0x1402e6c51
mov eax, 0xffffffff
jmp 0x1402e6ebe
lea rax, [rbp + 0xf]
or rax, 8
shr rax, 3
add qword [rbx + 0x20], rax
movabs rax, 0x2000000000000000
cmp qword [rbx + 0x20], rax
jbe 0x1402e6c7b
mov eax, 0xfffffffe
jmp 0x1402e6ebe
cmp rbp, 0x10
jb 0x1402e6d0c
mov r15, rbp
shr r15, 4
imul rax, r15, 0xfffffffffffffff0
add rbp, rax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi]
lea rdx, [rbx + 0x10]
xor qword [rbx + 0x10], rax
lea rcx, [rbx + 0x10]
mov rax, qword [rdi + 8]
mov r8, r13
xor qword [rbx + 0x18], rax
call r12
mov r8, r13
lea rdx, [rsp + 0x28]
mov rcx, rbx
call r12
mov eax, 8
dec eax
add byte [rax + rbx + 8], 1
jne 0x1402e6ce0
test eax, eax
jne 0x1402e6cd0
nop dword [rax]
mov rax, qword [rsp + 0x28]
xor rax, qword [rdi]
mov qword [rsi], rax
mov rax, qword [rsp + 0x30]
xor rax, qword [rdi + 8]
add rdi, 0x10
mov qword [rsi + 8], rax
add rsi, 0x10
sub r15, 1
jne 0x1402e6ca0
mov r15d, reloc.WS2_32.dll_ntohs
test rbp, rbp
je 0x1402e6e74
mov edx, r14d
mov rcx, r14
nop dword [rax + rax]
movzx eax, byte [rcx + rdi]
inc edx
xor byte [rcx + rbx + 0x10], al
mov ecx, edx
cmp rcx, rbp
jb 0x1402e6d20
lea rcx, [rbx + 0x10]
mov r8, r13
mov rdx, rcx
call r12
mov r8, r13
lea rdx, [rsp + 0x28]
mov rcx, rbx
call r12
mov edx, r14d
cmp rbp, 8
jb 0x1402e6e4d
lea eax, [rbp - 1]
mov ecx, eax
lea r8, [rax + rsi]
lea rax, [rsp + 0x28]
add rax, rcx
cmp rsi, rax
ja 0x1402e6d7d
lea rax, [rsp + 0x28]
cmp r8, rax
jae 0x1402e6e4d
lea rax, [rcx + rdi]
cmp rsi, rax
ja 0x1402e6d8f
cmp r8, rdi
jae 0x1402e6e4d
cmp rbp, 0x40
jb 0x1402e6e23
mov r8, rbp
and r8, 0xffffffffffffffc0
mov r9d, 0x20
nop word [rax + rax]
movdqu xmm0, xmmword [rsp + r14 + 0x28]
lea eax, [r9 - 0x10]
add edx, 0x40
movdqu xmm1, xmmword [r14 + rdi]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rsp + rax + 0x28]
movdqu xmmword [r14 + rsi], xmm1
mov r14d, edx
movdqu xmm1, xmmword [rdi + rax]
xorps xmm1, xmm0
movdqu xmmword [rsi + rax], xmm1
mov eax, r9d
movdqu xmm0, xmmword [rsp + rax + 0x28]
movdqu xmm1, xmmword [rax + rdi]
xorps xmm1, xmm0
movdqu xmmword [rsi + rax], xmm1
lea eax, [r9 + 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rax + rdi]
movdqu xmm0, xmmword [rsp + rax + 0x28]
xorps xmm1, xmm0
movdqu xmmword [rsi + rax], xmm1
cmp r14, r8
jb 0x1402e6db0
movzx eax, bpl
and al, 0x3f
cmp al, 8
jb 0x1402e6e4d
mov rcx, rbp
and rcx, 0xfffffffffffffff8
mov eax, edx
nop dword [rax]
movq xmm1, qword [rax + rdi]
add edx, 8
movq xmm0, qword [rsp + rax + 0x28]
xorps xmm1, xmm0
movq qword [rax + rsi], xmm1
mov eax, edx
cmp rax, rcx
jb 0x1402e6e30
mov ecx, edx
cmp rcx, rbp
jae 0x1402e6e74
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + rdi]
inc edx
xor al, byte [rsp + rcx + 0x28]
mov byte [rcx + rsi], al
mov ecx, edx
cmp rcx, rbp
jb 0x1402e6e60
sub r15d, dword [rsp + 0x24]
cmp r15d, 0x10
jae 0x1402e6e95
mov r8d, reloc.WS2_32.dll_recv
mov ecx, r15d
sub r8d, r15d
add rcx, rbx
xor edx, edx
call fcn.140374500
mov r8, r13
lea rdx, [rsp + 0x28]
mov rcx, rbx
call r12
mov rax, qword [rsp + 0x28]
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x30]
xor qword [rbx + 0x18], rax
movzx eax, byte [rsp + 0x20]
mov byte [rbx], al
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14016e5c0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret