Function at 0x1801d4ee0
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 r13
mov rbp, rsp
mov eax, gethostbyaddr
call fcn.1800b9c10
sub rsp, rax
cmp dword [rbp + 0x58], 0
mov r11d, r8d
mov rsi, rdx
mov r12, rcx
je 0x1801d519a
mov rbx, qword [rbp + 0x50]
lea edi, [r11 - 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 [rbp - 8], 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 0x1801d5049
mov rbx, qword [rbp + 0x48]
lea r13d, [rdi + 8]
shr r13, 3
mov eax, r13d
neg eax
lea edi, [rdi + rax*8]
movzx edx, byte [r12]
movzx ecx, byte [r12 + 4]
movzx eax, byte [r12 + 1]
shl eax, 0x10
shl edx, 0x18
shl ecx, 0x18
or edx, eax
movzx eax, byte [r12 + 2]
add r12, 8
shl eax, 8
or edx, eax
movzx eax, byte [r12 - 5]
or edx, eax
movzx eax, byte [r12 - 3]
shl eax, 0x10
xor edx, r10d
or ecx, eax
movzx eax, byte [r12 - 2]
mov dword [rbp - 0x10], edx
shl eax, 8
mov rdx, rbx
or ecx, eax
movzx eax, byte [r12 - 1]
or ecx, eax
xor ecx, r8d
mov dword [rbp - 0xc], ecx
lea rcx, [rbp - 0x10]
call fcn.1801d4530
mov r10d, dword [rbp - 0x10]
mov r8d, dword [rbp - 0xc]
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
dec r13
mov byte [rsi - 2], al
movzx eax, r8b
mov byte [rsi - 1], al
jne 0x1801d4f83
mov rbx, qword [rbp - 8]
cmp edi, 0xfffffff8
je 0x1801d514c
xor edx, edx
lea ecx, [rdi + 8]
movsxd rax, ecx
mov r9d, edx
add r12, rax
dec ecx
cmp ecx, 7
ja case.default.0x1801d507f
movsxd rax, ecx
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x1d5430]
add rax, rcx
jmp rax
movzx edx, byte [r12 - 1]
dec r12
movzx eax, byte [r12 - 1]
dec r12
shl eax, 8
or edx, eax
movzx eax, byte [r12 - 1]
dec r12
shl eax, 0x10
or edx, eax
movzx eax, byte [r12 - 1]
dec r12
shl eax, 0x18
or edx, eax
movzx r9d, byte [r12 - 1]
dec r12
movzx eax, byte [r12 - 1]
dec r12
shl eax, 8
or r9d, eax
movzx eax, byte [r12 - 1]
dec r12
shl eax, 0x10
or r9d, eax
movzx eax, byte [r12 - 1]
shl eax, 0x18
or r9d, eax
xor edx, r8d
xor r9d, r10d
lea rcx, [rbp - 0x10]
mov dword [rbp - 0xc], edx
mov rdx, qword [rbp + 0x48]
mov dword [rbp - 0x10], r9d
call fcn.1801d4530
mov r10d, dword [rbp - 0x10]
mov r8d, dword [rbp - 0xc]
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 r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r13, qword [rbp + 0x50]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
movzx r14d, byte [r13]
movzx eax, byte [r13 + 1]
movzx r15d, byte [r13 + 4]
shl eax, 0x10
shl r14d, 0x18
shl r15d, 0x18
or r14d, eax
movzx eax, byte [r13 + 2]
lea ebx, [r8 - 8]
shl eax, 8
mov qword [rbp - 8], r13
or r14d, eax
movzx eax, byte [r13 + 3]
or r14d, eax
movzx eax, byte [r13 + 5]
shl eax, 0x10
or r15d, eax
movzx eax, byte [r13 + 6]
shl eax, 8
or r15d, eax
movzx eax, byte [r13 + 7]
or r15d, eax
test ebx, ebx
js 0x1801d52e7
lea r13d, [rbx + 8]
shr r13, 3
mov eax, r13d
neg eax
lea ebx, [rbx + rax*8]
mov dword [rbp + 0x58], ebx
nop dword [rax]
movzx edi, byte [r12]
movzx eax, byte [r12 + 1]
movzx ebx, byte [r12 + 4]
shl eax, 0x10
shl edi, 0x18
shl ebx, 0x18
or edi, eax
movzx eax, byte [r12 + 2]
lea rcx, [rbp - 0x10]
shl eax, 8
mov rdx, r9
add r12, 8
or edi, eax
movzx eax, byte [r12 - 5]
or edi, eax
movzx eax, byte [r12 - 3]
shl eax, 0x10
mov dword [rbp - 0x10], edi
or ebx, eax
movzx eax, byte [r12 - 2]
shl eax, 8
or ebx, eax
movzx eax, byte [r12 - 1]
or ebx, eax
mov dword [rbp - 0xc], ebx
call fcn.1801d4a00
xor r14d, dword [rbp - 0x10]
xor r15d, dword [rbp - 0xc]
mov r9, qword [rbp + 0x48]
mov eax, r14d
shr eax, 0x18
add rsi, 8
mov byte [rsi - 8], al
mov eax, r14d
shr eax, 0x10
mov byte [rsi - 7], al
mov eax, r14d
shr eax, 8
mov byte [rsi - 6], al
mov byte [rsi - 5], r14b
mov eax, r15d
shr eax, 0x18
mov r14d, edi
mov byte [rsi - 4], al
mov eax, r15d
shr eax, 0x10
mov byte [rsi - 3], al
mov eax, r15d
shr eax, 8
dec r13
mov byte [rsi - 2], al
mov byte [rsi - 1], r15b
mov r15d, ebx
jne 0x1801d5220
mov r13, qword [rbp - 8]
mov ebx, dword [rbp + 0x58]
cmp ebx, 0xfffffff8
je 0x1801d53d1
movzx edx, byte [r12 + 4]
movzx edi, byte [r12]
movzx eax, byte [r12 + 1]
movzx ecx, byte [r12 + 6]
shl eax, 0x10
shl edx, 0x18
shl edi, 0x18
shl ecx, 8
or edi, eax
movzx eax, byte [r12 + 2]
shl eax, 8
or edi, eax
movzx eax, byte [r12 + 3]
or edi, eax
movzx eax, byte [r12 + 5]
shl eax, 0x10
mov dword [rbp - 0x10], edi
or edx, eax
movzx eax, byte [r12 + 7]
or ecx, eax
or edx, ecx
lea rcx, [rbp - 0x10]
mov dword [rbp + 0x58], edx
mov dword [rbp - 0xc], edx
mov rdx, r9
call fcn.1801d4a00
xor r14d, dword [rbp - 0x10]
xor r15d, dword [rbp - 0xc]
lea ecx, [rbx + 8]
movsxd rax, ecx
add rsi, rax
dec ecx
cmp ecx, 7
ja case.default.0x1801d537e
movsxd rax, ecx
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x1d5450]
add rax, rcx
jmp rax
dec rsi
mov byte [rsi], r15b
dec rsi
mov eax, r15d
shr eax, 8
mov byte [rsi], al
dec rsi
mov eax, r15d
shr eax, 0x10
mov byte [rsi], al
dec rsi
shr r15d, 0x18
mov byte [rsi], r15b
dec rsi
mov byte [rsi], r14b
dec rsi
mov eax, r14d
shr eax, 8
mov byte [rsi], al
dec rsi
mov eax, r14d
shr eax, 0x10
mov byte [rsi], al
shr r14d, 0x18
mov byte [rsi - 1], r14b
mov r15d, dword [rbp + 0x58]
mov r14d, edi
mov rbx, qword [rsp + 0x70]
mov eax, r14d
shr eax, 0x18
mov byte [r13], al
mov eax, r14d
shr eax, 0x10
mov byte [r13 + 1], al
mov eax, r14d
shr eax, 8
mov byte [r13 + 2], al
mov byte [r13 + 3], r14b
mov r14, qword [rsp + 0x60]
mov eax, r15d
shr eax, 0x18
mov byte [r13 + 4], al
mov eax, r15d
shr eax, 0x10
mov byte [r13 + 5], al
mov eax, r15d
shr eax, 8
mov byte [r13 + 6], al
mov byte [r13 + 7], r15b
mov r15, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret