Function at 0x14002a6d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
movdqa xmm0, xmmword [0x14029fc90]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x14029fd40]
movdqu xmmword [rbp - 0x29], xmm1
mov dword [rbp - 0x19], 0xf5eba
xor r14d, r14d
mov r10d, r14d
mov r9d, r14d
movabs rdi, 0x2492492492492493
lea r11, [0x140000000]
movabs rsi, 0xcccccccccccccccd
nop dword [rax]
lea r8, [rbp - 0x39]
add r8, r9
mov rax, rdi
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
mov rcx, r9
sub rcx, rax
mov rax, rsi
mul r9
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r9, rax
movzx eax, byte [rcx + r11 + 0x290058]
add al, byte [r9 + r11 + 0x290050]
add al, r10b
xor byte [r8], al
inc r10d
movsxd r9, r10d
cmp r9, 0x23
jb 0x14002a750
mov qword [rbp + 0x3f], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x37], r14
mov byte [rbp + 0x27], r14b
or rdi, 0xffffffffffffffff
cmp byte [rbp - 0x39], r14b
jne 0x14002a7ca
mov r8, r14
jmp 0x14002a7da
lea rax, [rbp - 0x39]
mov r8, rdi
inc r8
cmp byte [rax + r8], r14b
jne 0x14002a7d1
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x27]
call fcn.1400044f0
nop
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp - 1], r14
lea rax, [rbp + 7]
mov qword [rbp - 0x11], rax
mov cl, 1
call fcn.14021685c
mov qword [rbp + 0x1f], rax
lea rcx, [rbp + 0x17]
call fcn.14002b6a0
mov qword [rbp + 7], rax
lea rcx, [rbp + 0x17]
call fcn.14000fbb0
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae rcx, qword [rbp + 0x27]
mov r8, qword [rbp + 0x37]
add r8, rcx
mov qword [rbp - 0x11], r8
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae rdx, qword [rbp + 0x27]
lea rcx, [rbp - 1]
call fcn.14002b3b0
nop
mov r8, qword [rbx + 0x18]
cmp r8, 0x10
jb 0x14002a86b
mov rcx, qword [rbx]
jmp 0x14002a86e
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
add rdx, rcx
cmp r8, 0x10
jb 0x14002a87e
mov rbx, qword [rbx]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, [rbp - 1]
mov rcx, rbx
call fcn.14002b510
movzx esi, al
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14002a8cd
lock xadd dword [rcx + 0x2c], edi
cmp edi, 1
jne 0x14002a8cd
mov rbx, qword [rbp - 1]
test rbx, rbx
je 0x14002a8cd
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], r14
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x14002a8b1
mov qword [rbp - 1], r14
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x14002a8f4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14002a8f4
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov rax, qword [rbp + 0x3f]
cmp rax, 0x10
jb 0x14002a94a
inc rax
mov rcx, qword [rbp + 0x27]
cmp rax, 0x1000
jb 0x14002a945
test cl, 0x1f
je 0x14002a918
call fcn.1402226ac
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002a927
call fcn.1402226ac
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002a936
call fcn.1402226ac
int3
cmp rcx, 0x27
jbe 0x14002a942
call fcn.1402226ac
int3
mov rcx, rax
call fcn.1402150bc
movzx eax, sil
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140215090
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret