Function at 0x1402ecb50
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 [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx edi, byte [rcx]
mov rbp, r9
mov r9, qword [rcx + 0x30]
mov r14, r8
mov r10, qword [rsp + 0xe0]
mov rsi, rdx
mov rax, qword [rcx + 0x28]
mov rbx, rcx
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], r10
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x48], rax
test dil, 0x40
jne 0x1402ecbc0
lea rdx, [rcx + 0x10]
mov r8, r9
call rax
inc qword [rbx + 0x20]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
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 dword [rsp + 0x40], r13d
mov byte [rbx], r13b
cmp eax, r12d
jae 0x1402ecc07
mov edx, eax
add rdx, rbx
mov r8d, r13d
nop
movzx eax, byte [rdx]
mov byte [rdx], r15b
lea rdx, [rdx + 1]
or rcx, rax
shl rcx, 8
sub r8, 1
jne 0x1402ecbf0
movzx eax, byte [rbx + 0xf]
or rcx, rax
mov byte [rbx + 0xf], 1
cmp rcx, rbp
je 0x1402ecc21
mov eax, 0xffffffff
jmp 0x1402ecea5
lea rax, [rbp + 0xf]
or rax, 8
shr rax, 3
add qword [rbx + 0x20], rax
movabs rax, 0x2000000000000000
cmp qword [rbx + 0x20], rax
jbe 0x1402ecc4b
mov eax, 0xfffffffe
jmp 0x1402ecea5
mov rdi, rbp
shr rdi, 4
test rdi, rdi
je 0x1402eccd3
lea rax, [rbx + 0x10]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call r10
shl rdi, 4
add rsi, rdi
add r14, rdi
sub rbp, rdi
je 0x1402eccd3
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 0x1402eccdc
test rdi, rdi
jne 0x1402ecca0
test rdx, rdx
jne 0x1402ecca0
jmp 0x1402eccdc
test rbp, rbp
je 0x1402ece57
mov edx, r15d
test rbp, rbp
je 0x1402ecd01
mov rcx, r15
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
inc edx
xor byte [rcx + rbx + 0x10], al
mov ecx, edx
cmp rcx, rbp
jb 0x1402eccf0
mov rdi, qword [rsp + 0x38]
lea rcx, [rbx + 0x10]
mov r8, rdi
mov rdx, rcx
call qword [rsp + 0x48]
mov r8, rdi
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rsp + 0x48]
mov eax, r15d
cmp rbp, 8
jb 0x1402ece2e
lea ecx, [rbp - 1]
mov edx, ecx
lea r8, [rcx + r14]
lea rcx, [rsp + 0x58]
add rcx, rdx
cmp r14, rcx
ja 0x1402ecd54
lea rcx, [rsp + 0x58]
cmp r8, rcx
jae 0x1402ece2e
lea rcx, [rdx + rsi]
cmp r14, rcx
ja 0x1402ecd66
cmp r8, rsi
jae 0x1402ece2e
cmp rbp, 0x40
jb 0x1402ecdfd
mov r8, rbp
and r8, 0xffffffffffffffc0
mov r9d, 0x20
nop dword [rax]
movdqu xmm0, xmmword [rsp + r15 + 0x58]
lea ecx, [r9 - 0x10]
add eax, 0x40
movdqu xmm1, xmmword [r15 + rsi]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rsp + rcx + 0x58]
movdqu xmmword [r15 + r14], xmm1
mov r15d, eax
movdqu xmm1, xmmword [rsi + rcx]
xorps xmm1, xmm0
movdqu xmmword [r14 + rcx], xmm1
mov ecx, r9d
movdqu xmm0, xmmword [rsp + rcx + 0x58]
movdqu xmm1, xmmword [rcx + rsi]
xorps xmm1, xmm0
movdqu xmmword [rcx + r14], xmm1
lea ecx, [r9 + 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rsi + rcx]
movdqu xmm0, xmmword [rsp + rcx + 0x58]
xorps xmm1, xmm0
movdqu xmmword [r14 + rcx], xmm1
cmp r15, r8
jb 0x1402ecd80
mov r13d, dword [rsp + 0x40]
movzx ecx, bpl
and cl, 0x3f
cmp cl, 8
jb 0x1402ece2e
mov rdx, rbp
and rdx, 0xfffffffffffffff8
mov ecx, eax
nop word [rax + rax]
movq xmm1, qword [rcx + rsi]
add eax, 8
movq xmm0, qword [rsp + rcx + 0x58]
xorps xmm1, xmm0
movq qword [rcx + r14], xmm1
mov ecx, eax
cmp rcx, rdx
jb 0x1402ece10
mov edx, eax
cmp rdx, rbp
jae 0x1402ece5c
nop word [rax + rax]
movzx ecx, byte [rdx + rsi]
inc eax
xor cl, byte [rsp + rdx + 0x58]
mov byte [rdx + r14], cl
mov edx, eax
cmp rdx, rbp
jb 0x1402ece40
jmp 0x1402ece5c
mov rdi, qword [rsp + 0x38]
sub r12d, r13d
cmp r12d, 0x10
jae 0x1402ece7b
mov r8d, reloc.WS2_32.dll_recv
mov ecx, r12d
sub r8d, r12d
add rcx, rbx
xor edx, edx
call fcn.140355f20
mov r8, rdi
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x60]
xor qword [rbx + 0x18], rax
movzx eax, byte [rsp + 0x30]
mov byte [rbx], al
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret