Function at 0x1400316bc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push 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 qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
je 0x1400319ad
xor edx, edx
mov r8d, 0x1890
mov rcx, rax
call fcn.1401c84f0
mov rax, qword [rsp + 0x60]
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
and dword [rbx + 0xc8], 0
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 0x140031993
mov dword [rbx + 0x30c], 0x400
mov r8d, r14d
xor edx, edx
mov dword [rbx + 0x308], 0x3ff
mov rcx, rax
call fcn.1401c84f0
mov rcx, rbx
call fcn.1400315e8
test eax, eax
je 0x140031993
mov rcx, rbx
call fcn.140033560
mov rdi, rax
test rax, rax
je 0x140031993
mov byte [rax + 0x49], bpl
lea rcx, [rbx + 0x1358]
mov qword [rax + 0x240], rcx
mov rdx, rax
mov qword [rbx + 0xb0], rax
mov rcx, rbx
add dword [rax + 4], ebp
call fcn.140037f54
test eax, eax
je 0x140031993
mov rcx, rdi
call fcn.1400380a8
mov rax, qword [rdi + 0x1c0]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140031803
add dword [rax + 4], ebp
sub dword [rbx + 0x58], ebp
mov esi, gethostname
js 0x14003181e
mov rcx, qword [rbx + 0x20]
mov edx, esi
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rdi, rax
test rax, rax
jne 0x14003182c
mov rdx, rsi
mov rcx, rbx
call fcn.140032468
mov rdi, rax
test rdi, rdi
je 0x14003185e
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.1401c84f0
mov dword [rdi], 0x8004081
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x140031851
mov qword [rax + 0x10], rdi
and qword [rdi + 0x10], 0
mov qword [rdi + 8], rax
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0xc0], rdi
test rdi, rdi
je 0x140031993
add dword [rdi + 4], ebp
call fcn.140025908
movsd xmm1, qword [0x1402a0770]
xor ecx, ecx
comisd xmm0, xmm1
jb 0x14003189d
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14003189d
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 0x1400318c5
movsd xmm0, qword [rsp + 0x40]
lea r9d, [r11 + 0xa]
movsd qword [rsp + 0x40], xmm0
mov rax, qword [rsp + 0x40]
xor qword [rbx + 0xe0], rax
mov rax, qword [rbx + 0xb0]
mov r8, qword [rax + 0x40]
mov rcx, qword [r8 + 0xd8]
mov rdx, qword [r8 + 0xe0]
xor rdx, rcx
ror rcx, 9
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 0x140031942
and dword [rbx + 0x68], r9d
mov rax, rbx
and dword [rbx + 0x6c], r9d
jmp 0x1400319af
cmp qword [rbx + 0xb0], 0
je 0x1400319a5
and dword [rbx + 0x68], 0
and dword [rbx + 0x6c], 0
mov rcx, rbx
call fcn.140031444
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret