Function at 0x140130ed0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r15
mov eax, gethostbyname
call fcn.140189b00
sub rsp, rax
cmp dword [rsp + 0x88], 0
mov r11, r9
mov r15d, r8d
mov rsi, rdx
mov rbp, rcx
je 0x14013118d
mov rbx, qword [rsp + 0x80]
lea edi, [r15 - 8]
movzx r10d, byte [rbx]
movzx eax, byte [rbx + 1]
movzx r8d, byte [rbx + 4]
shl eax, 0x10
shl r10d, 0x18
shl r8d, 0x18
or r10d, eax
movzx eax, byte [rbx + 2]
mov qword [rsp + 0x28], rbx
shl eax, 8
or r10d, eax
movzx eax, byte [rbx + 3]
or r10d, eax
movzx eax, byte [rbx + 5]
shl eax, 0x10
or r8d, eax
movzx eax, byte [rbx + 6]
shl eax, 8
or r8d, eax
movzx eax, byte [rbx + 7]
or r8d, eax
test edi, edi
js 0x140131043
mov rbx, qword [rsp + 0x78]
lea r12d, [rdi + 8]
shr r12, 3
mov eax, r12d
neg eax
lea edi, [rdi + rax*8]
nop
movzx edx, byte [rbp]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rbp + 1]
shl eax, 0x10
shl edx, 0x18
shl ecx, 0x18
or edx, eax
movzx eax, byte [rbp + 2]
add rbp, 8
shl eax, 8
or edx, eax
movzx eax, byte [rbp - 5]
or edx, eax
movzx eax, byte [rbp - 3]
shl eax, 0x10
xor edx, r10d
or ecx, eax
movzx eax, byte [rbp - 2]
mov dword [rsp + 0x20], edx
shl eax, 8
mov rdx, rbx
or ecx, eax
movzx eax, byte [rbp - 1]
or ecx, eax
xor ecx, r8d
mov dword [rsp + 0x24], ecx
lea rcx, [rsp + 0x20]
call fcn.1401306d0
mov r10d, dword [rsp + 0x20]
mov r8d, dword [rsp + 0x24]
mov eax, r10d
add rsi, 8
shr eax, 0x18
mov byte [rsi - 8], al
mov eax, r10d
shr eax, 0x10
mov byte [rsi - 7], al
mov eax, r10d
shr eax, 8
mov byte [rsi - 6], al
movzx eax, r10b
mov byte [rsi - 5], al
mov eax, r8d
shr eax, 0x18
mov byte [rsi - 4], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi - 3], al
mov eax, r8d
shr eax, 8
sub r12, 1
mov byte [rsi - 2], al
movzx eax, r8b
mov byte [rsi - 1], al
jne 0x140130f80
mov rbx, qword [rsp + 0x28]
mov r11, qword [rsp + 0x78]
cmp edi, 0xfffffff8
je 0x14013113f
lea ecx, [rdi + 8]
xor edx, edx
movsxd rax, ecx
add ecx, 0xffffffff
mov r9d, edx
add rbp, rax
cmp ecx, 7
ja case.default.0x140131076
movsxd rax, ecx
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x131434]
add rax, rcx
jmp rax
movzx edx, byte [rbp - 1]
sub rbp, 1
movzx eax, byte [rbp - 1]
sub rbp, 1
shl eax, 8
or edx, eax
movzx eax, byte [rbp - 1]
sub rbp, 1
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp - 1]
sub rbp, 1
shl eax, 0x18
or edx, eax
movzx r9d, byte [rbp - 1]
sub rbp, 1
movzx eax, byte [rbp - 1]
sub rbp, 1
shl eax, 8
or r9d, eax
movzx eax, byte [rbp - 1]
sub rbp, 1
shl eax, 0x10
or r9d, eax
movzx eax, byte [rbp - 1]
shl eax, 0x18
or r9d, eax
xor edx, r8d
xor r9d, r10d
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov rdx, r11
mov dword [rsp + 0x20], r9d
call fcn.1401306d0
mov r10d, dword [rsp + 0x20]
mov r8d, dword [rsp + 0x24]
mov eax, r10d
shr eax, 0x18
mov byte [rsi], al
mov eax, r10d
shr eax, 0x10
mov byte [rsi + 1], al
mov eax, r10d
shr eax, 8
mov byte [rsi + 2], al
movzx eax, r10b
mov byte [rsi + 3], al
mov eax, r8d
shr eax, 0x18
mov byte [rsi + 4], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi + 5], al
mov eax, r8d
shr eax, 8
mov byte [rsi + 6], al
movzx eax, r8b
mov byte [rsi + 7], al
mov eax, r10d
shr eax, 0x18
mov byte [rbx], al
mov eax, r10d
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, r10d
shr eax, 8
mov byte [rbx + 2], al
mov byte [rbx + 3], r10b
mov eax, r8d
shr eax, 0x18
mov byte [rbx + 4], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 5], al
mov eax, r8d
shr eax, 8
mov byte [rbx + 6], al
mov byte [rbx + 7], r8b
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r12, qword [rsp + 0x80]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r14
movzx r13d, byte [r12]
movzx eax, byte [r12 + 1]
movzx r14d, byte [r12 + 4]
shl eax, 0x10
shl r13d, 0x18
shl r14d, 0x18
or r13d, eax
movzx eax, byte [r12 + 2]
mov qword [rsp + 0x28], r12
shl eax, 8
or r13d, eax
movzx eax, byte [r12 + 3]
or r13d, eax
movzx eax, byte [r12 + 5]
shl eax, 0x10
or r14d, eax
movzx eax, byte [r12 + 6]
shl eax, 8
or r14d, eax
movzx eax, byte [r12 + 7]
or r14d, eax
add r15d, 0xfffffff8
js 0x1401312e6
lea r12d, [r15 + 8]
shr r12, 3
mov eax, r12d
neg eax
lea r15d, [r15 + rax*8]
mov dword [rsp + 0x88], r15d
mov r15, qword [rsp + 0x78]
movzx edi, byte [rbp]
movzx eax, byte [rbp + 1]
movzx ebx, byte [rbp + 4]
shl eax, 0x10
shl edi, 0x18
shl ebx, 0x18
or edi, eax
movzx eax, byte [rbp + 2]
lea rcx, [rsp + 0x20]
shl eax, 8
mov rdx, r15
add rbp, 8
or edi, eax
movzx eax, byte [rbp - 5]
or edi, eax
movzx eax, byte [rbp - 3]
shl eax, 0x10
mov dword [rsp + 0x20], edi
or ebx, eax
movzx eax, byte [rbp - 2]
shl eax, 8
or ebx, eax
movzx eax, byte [rbp - 1]
or ebx, eax
mov dword [rsp + 0x24], ebx
call fcn.1401306d0
xor r13d, dword [rsp + 0x20]
xor r14d, dword [rsp + 0x24]
mov eax, r13d
add rsi, 8
shr eax, 0x18
mov byte [rsi - 8], al
mov eax, r13d
shr eax, 0x10
mov byte [rsi - 7], al
mov eax, r13d
shr eax, 8
mov byte [rsi - 6], al
mov byte [rsi - 5], r13b
mov eax, r14d
shr eax, 0x18
mov r13d, edi
mov byte [rsi - 4], al
mov eax, r14d
shr eax, 0x10
mov byte [rsi - 3], al
mov eax, r14d
shr eax, 8
sub r12, 1
mov byte [rsi - 2], al
mov byte [rsi - 1], r14b
mov r14d, ebx
jne 0x140131221
mov r12, qword [rsp + 0x28]
mov r15d, dword [rsp + 0x88]
mov r11, qword [rsp + 0x78]
cmp r15d, 0xfffffff8
je 0x1401313cc
movzx ebx, byte [rbp]
movzx eax, byte [rbp + 1]
movzx ecx, byte [rbp + 6]
movzx edi, byte [rbp + 4]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
movzx eax, byte [rbp + 2]
shl ecx, 8
shl eax, 8
shl edi, 0x18
mov rdx, r11
or ebx, eax
movzx eax, byte [rbp + 3]
or ebx, eax
movzx eax, byte [rbp + 5]
shl eax, 0x10
mov dword [rsp + 0x20], ebx
or edi, eax
movzx eax, byte [rbp + 7]
or ecx, eax
or edi, ecx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edi
call fcn.1401306d0
xor r13d, dword [rsp + 0x20]
xor r14d, dword [rsp + 0x24]
lea ecx, [r15 + 8]
movsxd rax, ecx
add ecx, 0xffffffff
add rsi, rax
cmp ecx, 7
ja case.default.0x140131373
movsxd rax, ecx
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x131454]
add rax, rcx
jmp rax
sub rsi, 1
mov byte [rsi], r14b
sub rsi, 1
mov eax, r14d
shr eax, 8
mov byte [rsi], al
sub rsi, 1
mov eax, r14d
shr eax, 0x10
mov byte [rsi], al
sub rsi, 1
shr r14d, 0x18
mov byte [rsi], r14b
sub rsi, 1
mov byte [rsi], r13b
sub rsi, 1
mov eax, r13d
shr eax, 8
mov byte [rsi], al
sub rsi, 1
mov eax, r13d
shr eax, 0x10
mov byte [rsi], al
shr r13d, 0x18
mov byte [rsi - 1], r13b
mov r13d, ebx
mov r14d, edi
mov rbx, qword [rsp + 0x70]
mov eax, r13d
shr eax, 0x18
mov byte [r12], al
mov eax, r13d
shr eax, 0x10
mov byte [r12 + 1], al
mov eax, r13d
shr eax, 8
mov byte [r12 + 2], al
mov byte [r12 + 3], r13b
mov r13, qword [rsp + 0x60]
mov eax, r14d
shr eax, 0x18
mov byte [r12 + 4], al
mov eax, r14d
shr eax, 0x10
mov byte [r12 + 5], al
mov eax, r14d
shr eax, 8
mov byte [r12 + 6], al
mov byte [r12 + 7], r14b
mov r14, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret