Function at 0x1402e98f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx edi, byte [rcx]
mov rsi, r9
mov r9, qword [rcx + 0x30]
mov r14, r8
mov r10, qword [rsp + 0xe0]
mov rbp, rdx
mov rax, qword [rcx + 0x28]
mov rbx, rcx
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x48], r10
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x40], rax
test dil, 0x40
jne 0x1402e9960
lea rdx, [rcx + 0x10]
mov r8, r9
call rax
inc qword [rbx + 0x20]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x48]
mov r12d, reloc.WS2_32.dll_ntohs
xor r15d, r15d
mov r13d, edi
mov eax, r12d
and r13d, 7
mov ecx, r15d
sub eax, r13d
mov byte [rbx], r13b
cmp eax, r12d
jae 0x1402e99a7
mov edx, eax
add rdx, rbx
mov r8d, r13d
nop dword [rax]
movzx eax, byte [rdx]
mov byte [rdx], r15b
lea rdx, [rdx + 1]
or rcx, rax
shl rcx, 8
sub r8, 1
jne 0x1402e9990
movzx eax, byte [rbx + 0xf]
or rcx, rax
mov byte [rbx + 0xf], 1
cmp rcx, rsi
je 0x1402e99c1
mov eax, 0xffffffff
jmp 0x1402e9c35
lea rax, [rsi + 0xf]
or rax, 8
shr rax, 3
add qword [rbx + 0x20], rax
movabs rax, 0x2000000000000000
cmp qword [rbx + 0x20], rax
jbe 0x1402e99eb
mov eax, 0xfffffffe
jmp 0x1402e9c35
mov rdi, rsi
shr rdi, 4
test rdi, rdi
je 0x1402e9a73
lea rax, [rbx + 0x10]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call r10
shl rdi, 4
add rbp, rdi
add r14, rdi
sub rsi, rdi
je 0x1402e9a73
shr rdi, 4
lea r8, [rbx + 0x10]
mov r9, 0xfffffffffffffff8
mov rdx, r15
sub r9, rbx
nop word [rax + rax]
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
add rdx, rax
movzx ecx, dil
add rdx, rcx
shr rdi, 8
mov byte [r8], dl
lea rax, [r9 + r8]
shr rdx, 8
test rax, rax
je 0x1402e9a7c
test rdi, rdi
jne 0x1402e9a40
test rdx, rdx
jne 0x1402e9a40
jmp 0x1402e9a7c
test rsi, rsi
je 0x1402e9be7
mov edx, r15d
test rsi, rsi
je 0x1402e9aa1
mov rcx, r15
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
inc edx
xor byte [rcx + rbx + 0x10], al
mov ecx, edx
cmp rcx, rsi
jb 0x1402e9a90
mov rdi, qword [rsp + 0x38]
lea rcx, [rbx + 0x10]
mov r8, rdi
mov rdx, rcx
call qword [rsp + 0x40]
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [rsp + 0x40]
mov edx, r15d
cmp rsi, 8
jb 0x1402e9bbe
lea eax, [rsi - 1]
mov ecx, eax
lea r8, [rax + r14]
lea rax, [rsp + 0x50]
add rax, rcx
cmp r14, rax
ja 0x1402e9af4
lea rax, [rsp + 0x50]
cmp r8, rax
jae 0x1402e9bbe
lea rax, [rcx + rbp]
cmp r14, rax
ja 0x1402e9b06
cmp r8, rbp
jae 0x1402e9bbe
cmp rsi, 0x40
jb 0x1402e9b96
mov r8, rsi
and r8, 0xffffffffffffffc0
mov r9d, 0x20
nop dword [rax]
movdqu xmm0, xmmword [rsp + r15 + 0x50]
lea eax, [r9 - 0x10]
add edx, 0x40
movdqu xmm1, xmmword [r15 + rbp]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rsp + rax + 0x50]
movdqu xmmword [r15 + r14], xmm1
mov r15d, edx
movdqu xmm1, xmmword [rax + rbp]
xorps xmm1, xmm0
movdqu xmmword [rax + r14], xmm1
mov eax, r9d
movdqu xmm0, xmmword [rsp + rax + 0x50]
movdqu xmm1, xmmword [rax + rbp]
xorps xmm1, xmm0
movdqu xmmword [rax + r14], xmm1
lea eax, [r9 + 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rax + rbp]
movdqu xmm0, xmmword [rsp + rax + 0x50]
xorps xmm1, xmm0
movdqu xmmword [rax + r14], xmm1
cmp r15, r8
jb 0x1402e9b20
movzx eax, sil
and al, 0x3f
cmp al, 8
jb 0x1402e9bbe
mov rcx, rsi
and rcx, 0xfffffffffffffff8
mov eax, edx
nop
movq xmm1, qword [rax + rbp]
add edx, 8
movq xmm0, qword [rsp + rax + 0x50]
xorps xmm1, xmm0
movq qword [rax + r14], xmm1
mov eax, edx
cmp rax, rcx
jb 0x1402e9ba0
mov ecx, edx
cmp rcx, rsi
jae 0x1402e9bec
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
inc edx
xor al, byte [rsp + rcx + 0x50]
mov byte [rcx + r14], al
mov ecx, edx
cmp rcx, rsi
jb 0x1402e9bd0
jmp 0x1402e9bec
mov rdi, qword [rsp + 0x38]
sub r12d, r13d
cmp r12d, 0x10
jae 0x1402e9c0b
mov r8d, reloc.WS2_32.dll_recv
mov ecx, r12d
sub r8d, r12d
add rcx, rbx
xor edx, edx
call fcn.140376d40
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x58]
xor qword [rbx + 0x18], rax
movzx eax, byte [rsp + 0x30]
mov byte [rbx], al
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140170e40
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret