Function at 0x140031d90
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 0x140032081
xor edx, edx
mov r8d, 0x1890
mov rcx, rax
call fcn.1401cd320
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 0x140032067
mov dword [rbx + 0x30c], 0x400
mov r8d, r14d
xor edx, edx
mov dword [rbx + 0x308], 0x3ff
mov rcx, rax
call fcn.1401cd320
mov rcx, rbx
call fcn.140031cbc
test eax, eax
je 0x140032067
mov rcx, rbx
call fcn.140033c34
mov rdi, rax
test rax, rax
je 0x140032067
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.140038628
test eax, eax
je 0x140032067
mov rcx, rdi
call fcn.14003877c
mov rax, qword [rdi + 0x1c0]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140031ed7
add dword [rax + 4], ebp
sub dword [rbx + 0x58], ebp
mov esi, gethostname
js 0x140031ef2
mov rcx, qword [rbx + 0x20]
mov edx, esi
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rdi, rax
test rax, rax
jne 0x140031f00
mov rdx, rsi
mov rcx, rbx
call fcn.140032b3c
mov rdi, rax
test rdi, rdi
je 0x140031f32
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.1401cd320
mov dword [rdi], 0x8004081
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x140031f25
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 0x140032067
add dword [rdi + 4], ebp
call fcn.140025fdc
movsd xmm1, qword [0x1402be760]
xor ecx, ecx
comisd xmm0, xmm1
jb 0x140031f71
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140031f71
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 0x140031f99
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 0x140032016
and dword [rbx + 0x68], r9d
mov rax, rbx
and dword [rbx + 0x6c], r9d
jmp 0x140032083
cmp qword [rbx + 0xb0], 0
je 0x140032079
and dword [rbx + 0x68], 0
and dword [rbx + 0x6c], 0
mov rcx, rbx
call fcn.140031b18
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret