Function at 0x1402e6f80
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 [0x140463cc0]
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 0x1402e6ff0
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 0x1402e7037
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 0x1402e7020
movzx eax, byte [rbx + 0xf]
or rcx, rax
mov byte [rbx + 0xf], 1
cmp rcx, rsi
je 0x1402e7051
mov eax, 0xffffffff
jmp 0x1402e72c5
lea rax, [rsi + 0xf]
or rax, 8
shr rax, 3
add qword [rbx + 0x20], rax
movabs rax, 0x2000000000000000
cmp qword [rbx + 0x20], rax
jbe 0x1402e707b
mov eax, 0xfffffffe
jmp 0x1402e72c5
mov rdi, rsi
shr rdi, 4
test rdi, rdi
je 0x1402e7103
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 0x1402e7103
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 0x1402e710c
test rdi, rdi
jne 0x1402e70d0
test rdx, rdx
jne 0x1402e70d0
jmp 0x1402e710c
test rsi, rsi
je 0x1402e7277
mov edx, r15d
test rsi, rsi
je 0x1402e7131
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 0x1402e7120
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 0x1402e724e
lea eax, [rsi - 1]
mov ecx, eax
lea r8, [rax + r14]
lea rax, [rsp + 0x50]
add rax, rcx
cmp r14, rax
ja 0x1402e7184
lea rax, [rsp + 0x50]
cmp r8, rax
jae 0x1402e724e
lea rax, [rcx + rbp]
cmp r14, rax
ja 0x1402e7196
cmp r8, rbp
jae 0x1402e724e
cmp rsi, 0x40
jb 0x1402e7226
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 0x1402e71b0
movzx eax, sil
and al, 0x3f
cmp al, 8
jb 0x1402e724e
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 0x1402e7230
mov ecx, edx
cmp rcx, rsi
jae 0x1402e727c
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 0x1402e7260
jmp 0x1402e727c
mov rdi, qword [rsp + 0x38]
sub r12d, r13d
cmp r12d, 0x10
jae 0x1402e729b
mov r8d, reloc.WS2_32.dll_recv
mov ecx, r12d
sub r8d, r12d
add rcx, rbx
xor edx, edx
call fcn.1403743d0
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.14016e4d0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret