Function at 0x1800650e4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x180201ac0]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r14, rdx
mov rdi, rcx
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x34], r15d
lea rcx, [rsp + 0x30]
call fcn.1800645bc
mov r9, rax
cmp byte [rax + 0xb], r15b
je 0x180065162
mov r8d, r15d
mov cl, r8b
and cl, 7
shl cl, 3
movabs rax, 0xd15b1b17297d914f
shr rax, cl
xor byte [r8 + r9], al
inc r8
cmp r8, 0xb
jb 0x18006513b
mov byte [r9 + 0xb], r15b
mov r8d, 1
mov rdx, r9
lea rcx, [rbp - 0x30]
call fcn.18002e090
nop
mov rbx, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rbx, rdi
je 0x180065457
movabs r13, 0x2aaaaaaaaaaaaaab
mov r12d, 0x1000
mov qword [rbp + 0xa0], r15
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], r15
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.18002e610
nop
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], r15b
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x80], xmm1
mov qword [rbp - 0x70], r15
mov byte [rbp - 0x68], r15b
movdqa xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x50], r15b
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov byte [rbp - 0x38], r15b
lea rcx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae rcx, qword [rbp + 0xa0]
mov r8, qword [rbp + 0xb0]
add r8, rcx
lea rdx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae rdx, qword [rbp + 0xa0]
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x30]
lea rcx, [rbp]
call fcn.180063fe4
nop
jmp 0x18006539a
mov rcx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
sub rcx, r8
mov rax, r13
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 3
jne 0x180065391
lea rcx, [r8 + 0x30]
lea rdx, [rbp + 0xe0]
call fcn.180066b0c
or esi, 3
mov rcx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
sub rcx, r8
mov rax, r13
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
lea rcx, [rbp + 0x78]
jbe 0x1800652b6
lea rcx, [r8 + 0x18]
lea rdx, [rbp + 0xc0]
call fcn.180066b0c
or esi, 0xc
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0x90]
mov rcx, r14
call fcn.180063a24
mov rcx, qword [rax]
add rcx, 0x40
lea rax, [rbp + 0xe0]
cmp rcx, rax
je 0x1800652fe
mov r8b, r15b
lea rdx, [rbp + 0xe0]
call fcn.180031d20
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0x10
jb 0x18006533b
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, r12
jb 0x180065336
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180065496
call fcn.180133ca4
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xc0], r15b
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x180065391
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, r12
jb 0x18006538c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006549c
call fcn.180133ca4
lea rcx, [rbp]
call fcn.180064448
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.1800643c4
test al, al
je 0x18006524d
lea rcx, [rbp + 0x30]
call fcn.180066a4c
nop
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180065411
mov rcx, qword [rbp - 0x80]
sub rcx, r8
mov rax, r13
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r8
cmp rdx, r12
jb 0x180065408
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006548a
mov rcx, r8
call fcn.180133ca4
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x18006544a
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, r12
jb 0x180065445
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180065490
call fcn.180133ca4
add rbx, 0x20
cmp rbx, rdi
jne 0x180065195
lea rcx, [rbp - 0x30]
call fcn.18002cd50
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.180133630
mov rbx, qword [rsp + 0x260]
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18013a40c
nop
call fcn.18013a40c
nop
call fcn.18013a40c
nop
call fcn.18013a40c
int3