Function at 0x140022b5c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rdi, rcx
mov edx, 0x868
xor ecx, ecx
mov rsi, r8
call rdi
mov rbx, rax
test rax, rax
je 0x140022e20
xor edx, edx
mov r8d, 0x868
mov rcx, rax
call fcn.140169620
and qword [rbx + 0x20], 0
mov eax, ebx
and dword [rbx + 0xc8], 0
xor eax, 0x1505
mov rcx, qword [rsp + 0x50]
mov qword [rbx + 0x18], rsi
mov esi, 1
mov dword [rbx + 0xd0], eax
mov qword [rbx + 0x10], rbp
mov ebp, 0x2000
mov qword [rbx + 0x28], rcx
mov edx, ebp
lea eax, [rsi + 1]
mov qword [rbx + 8], rdi
mov dword [rbx + 0x68], esi
xor ecx, ecx
mov dword [rbx + 0x6c], esi
mov dword [rbx + 0xcc], 0x3e8
mov dword [rbx + 0x90], eax
mov dword [rbx + 0xa0], eax
call rdi
mov qword [rbx + 0x300], rax
test rax, rax
je 0x140022e06
mov r8d, ebp
mov dword [rbx + 0x30c], 0x400
xor edx, edx
mov dword [rbx + 0x308], 0x3ff
mov rcx, rax
call fcn.140169620
mov rcx, rbx
call fcn.140022a88
test eax, eax
je 0x140022e06
mov rcx, rbx
call fcn.140024968
mov rdi, rax
test rax, rax
je 0x140022e06
mov byte [rax + 0x49], sil
lea rcx, [rbx + 0x358]
mov qword [rax + 0x240], rcx
mov rdx, rax
mov qword [rbx + 0xb0], rax
mov rcx, rbx
add dword [rax + 4], esi
call fcn.140029040
test eax, eax
je 0x140022e06
mov rcx, rdi
call fcn.14002917c
mov rax, qword [rdi + 0x1c0]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140022c9a
add dword [rax + 4], esi
mov ebp, gethostname
mov rcx, rbx
mov edx, ebp
call fcn.1400238c4
mov rdi, rax
test rax, rax
je 0x140022ce0
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.140169620
mov dword [rdi], 0x8004081
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x140022cd1
mov qword [rax + 0x10], rdi
and qword [rdi + 0x10], 0
mov qword [rdi + 8], rax
mov qword [rbx + 0x30], rdi
jmp 0x140022ce2
xor edi, edi
mov qword [rbx + 0xc0], rdi
test rdi, rdi
je 0x140022e06
add dword [rdi + 4], esi
call fcn.1400172b0
movsd xmm1, qword [0x140200168]
xor ecx, ecx
comisd xmm0, xmm1
jb 0x140022d21
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140022d21
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, rsi
add r10, rsi
mov qword [rax + rcx*8 + 0xd8], rdx
sub r11, rsi
jne 0x140022d49
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, 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, rsi
jne 0x140022db5
and dword [rbx + 0x68], r9d
mov rax, rbx
and dword [rbx + 0x6c], r9d
jmp 0x140022e22
cmp qword [rbx + 0xb0], 0
je 0x140022e18
and dword [rbx + 0x68], 0
and dword [rbx + 0x6c], 0
mov rcx, rbx
call fcn.1400228e4
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret