Function at 0x1400317a8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rsi, rcx
mov edx, 0x1890
mov rcx, r9
mov rdi, r9
mov rbp, r8
call rsi
mov rbx, rax
test rax, rax
je 0x140031a84
xor edx, edx
mov r8d, 0x1890
mov rcx, rax
call fcn.1401cbcd0
mov rax, qword [rsp + 0x50]
mov rcx, rdi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], r14
mov r14d, 0x2000
mov qword [rbx + 0x18], rbp
mov edx, r14d
mov qword [rbx + 0x20], rdi
mov ebp, 1
mov qword [rbx + 0x28], rax
mov eax, ebx
mov dword [rbx + 0x68], ebp
xor eax, 0x1505
mov dword [rbx + 0x6c], ebp
mov dword [rbx + 0xcc], 0x3e8
mov dword [rbx + 0xd0], eax
lea eax, [rbp + 1]
mov dword [rbx + 0x90], eax
mov dword [rbx + 0xa0], eax
call rsi
mov qword [rbx + 0x300], rax
test rax, rax
je 0x140031a6a
mov dword [rbx + 0x30c], 0x400
mov r8d, r14d
xor edx, edx
mov dword [rbx + 0x308], 0x3ff
mov rcx, rax
call fcn.1401cbcd0
mov rcx, rbx
call fcn.1400316d4
test eax, eax
je 0x140031a6a
mov rcx, rbx
call fcn.14003360c
mov rdi, rax
test rax, rax
je 0x140031a6a
lea rcx, [rbx + 0x1358]
mov byte [rax + 0x49], bpl
mov qword [rax + 0x240], rcx
mov rdx, rax
mov qword [rbx + 0xb0], rax
mov rcx, rbx
add dword [rax + 4], ebp
call fcn.140037eac
test eax, eax
je 0x140031a6a
mov rcx, rdi
call fcn.140038000
mov rax, qword [rdi + 0x1c0]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400318ea
add dword [rax + 4], ebp
sub dword [rbx + 0x58], ebp
mov edi, gethostname
js 0x140031902
mov rcx, qword [rbx + 0x20]
mov edx, edi
call qword [rbx + reloc.WS2_32.dll_htonl]
test rax, rax
jne 0x140031912
mov rdx, rdi
mov rcx, rbx
call fcn.140032544
test rax, rax
je 0x140031946
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rcx
mov dword [rax], 0x8004081
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140031939
mov qword [rcx + 0x10], rax
and qword [rax + 0x10], 0
mov qword [rax + 8], rcx
mov qword [rbx + 0x30], rax
mov qword [rbx + 0xc0], rax
test rax, rax
je 0x140031a6a
add dword [rax + 4], ebp
call fcn.140025ca4
movsd xmm1, qword [0x1402c80f8]
xor ecx, ecx
comisd xmm0, xmm1
jb 0x140031985
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140031985
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rbx + 0xd8], rax
xor r10d, r10d
mov r8, qword [rbx + 0xb0]
lea r11d, [r10 + 0x40]
mov rax, qword [r8 + 0x40]
mov r9, qword [rax + 0xd8]
movabs rax, 0x61c8864680b583eb
movabs rcx, 0xbf58476d1ce4e5b9
sub r9, rax
mov rax, r9
shr rax, 0x1e
xor rax, r9
imul rax, rcx
mov rcx, rax
shr rcx, 0x1b
xor rcx, rax
movabs rax, 0x94d049bb133111eb
imul rcx, rax
mov rax, qword [r8 + 0x40]
mov rdx, rcx
shr rdx, 0x1f
xor rdx, rcx
mov rcx, r10
and rcx, rbp
add r10, rbp
mov qword [rax + rcx*8 + 0xd8], rdx
sub r11, rbp
jne 0x1400319ad
xor qword [rbx + 0xe0], rbx
lea r9d, [r11 + 0xa]
mov rax, qword [rbx + 0xb0]
mov r8, qword [rax + 0x40]
mov rcx, qword [r8 + 0xd8]
mov rdx, rcx
ror rcx, 9
xor rdx, qword [r8 + 0xe0]
mov rax, rdx
shl rax, 0xe
xor rcx, rax
xor rcx, rdx
ror rdx, 0x1c
mov qword [r8 + 0xd8], rcx
mov qword [r8 + 0xe0], rdx
sub r9, rbp
jne 0x140031a19
and dword [rbx + 0x68], r9d
mov rax, rbx
and dword [rbx + 0x6c], r9d
jmp 0x140031a86
cmp qword [rbx + 0xb0], 0
je 0x140031a7c
and dword [rbx + 0x68], 0
and dword [rbx + 0x6c], 0
mov rcx, rbx
call fcn.14003152c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret