Function at 0x18000a420
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rdi, rcx
movaps xmmword [rsp + 0x40], xmm6
movzx ecx, byte [rdx]
xor r13d, r13d
mov rsi, rdx
test ecx, ecx
je 0x18000aba3
sub ecx, 1
je 0x18000a84d
sub ecx, 1
je 0x18000a66d
sub ecx, 1
je 0x18000a650
sub ecx, 1
je 0x18000a620
sub ecx, 1
je 0x18000a5a0
sub ecx, 1
je 0x18000a537
sub ecx, 1
je 0x18000a4a1
cmp ecx, 1
jne 0x18000abb9
lea r8d, [r13 + 0xb]
lea rdx, str._discarded_
jmp 0x18000abb0
movsd xmm6, qword [rdx + 8]
movaps xmm0, xmm6
call fcn.1800474a8
test ax, ax
jg 0x18000aba3
lea rsi, [rdi + 0x10]
movaps xmm0, xmm6
mov rbx, rsi
call fcn.1800474c4
test eax, eax
je 0x18000a4d8
xorps xmm6, xmmword [0x18007e190]
lea rbx, [rsi + 1]
mov byte [rsi], 0x2d
ucomisd xmm6, qword [0x18007e0f8]
jp 0x18000a4f3
jne 0x18000a4f3
mov word [rbx], 0x2e30
lea rax, [rbx + 3]
mov byte [rbx + 2], 0x30
jmp 0x18000a523
movaps xmm3, xmm6
mov dword [rsp + 0x30], r13d
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], r13d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180015050
mov r8d, dword [rsp + 0x34]
mov rcx, rbx
mov edx, dword [rsp + 0x30]
call fcn.180003948
mov rcx, qword [rdi]
sub rax, rsi
mov r8, rax
mov rdx, rsi
mov r9, qword [rcx]
jmp 0x18000a86a
mov r8, qword [rdx + 8]
test r8, r8
jne 0x18000a547
mov dl, 0x30
jmp 0x18000ab99
lea rbx, [rdi + 0x10]
mov rsi, r13
mov r10, rbx
movabs rax, 0xcccccccccccccccd
inc rsi
mul r8
mov r9, rdx
shr r9, 3
lea ecx, [r9 + r9*4]
add ecx, ecx
sub r8d, ecx
mov eax, r8d
mov r8, r9
cdq
xor eax, edx
sub eax, edx
add al, 0x30
mov byte [r10], al
inc r10
test r9, r9
jne 0x18000a551
lea rdx, [rbx + rsi]
mov rcx, rbx
call fcn.18001f9b4
mov r8, rsi
mov rdx, rbx
jmp 0x18000abb0
mov r9, qword [rdx + 8]
test r9, r9
je 0x18000a540
mov r10, r9
lea rsi, [rdi + 0x10]
shr r10, 0x3f
mov r11, rsi
mov rbx, r13
movabs rax, 0x6666666666666667
inc rbx
imul r9
mov r8, rdx
sar r8, 2
mov rcx, r8
shr rcx, 0x3f
add r8, rcx
lea ecx, [r8 + r8*4]
add ecx, ecx
sub r9d, ecx
mov eax, r9d
mov r9, r8
cdq
xor eax, edx
sub eax, edx
add al, 0x30
mov byte [r11], al
inc r11
test r8, r8
jne 0x18000a5ba
test r10b, r10b
je 0x18000a609
mov byte [rbx + rdi + 0x10], 0x2d
inc rbx
lea rdx, [rsi + rbx]
mov rcx, rsi
call fcn.18001f9b4
mov r8, rbx
mov rdx, rsi
jmp 0x18000abb0
mov rcx, qword [rdi]
mov rax, qword [rcx]
cmp byte [rdx + 8], r13b
je 0x18000a63e
mov r8d, 4
lea rdx, str.true
jmp 0x18000abb6
mov r8d, 5
lea rdx, str.false
jmp 0x18000abb6
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rsi + 8]
mov rcx, rdi
call fcn.18000ca38
mov dl, 0x22
jmp 0x18000ab99
mov rdx, qword [rdx + 8]
mov rcx, qword [rdi]
mov rax, qword [rdx + 8]
mov r9, qword [rcx]
cmp qword [rdx], rax
jne 0x18000a68c
lea rdx, [0x18007c7b4]
jmp 0x18000a864
test r8b, r8b
je 0x18000a7e8
mov ebp, 2
lea rdx, [0x18007c7b8]
mov r8d, ebp
call qword [r9 + 8]
mov r15d, dword [rsp + 0xb0]
mov r14d, dword [rsp + 0xb8]
mov rdx, qword [rdi + 0x270]
lea r12d, [r15 + r14]
mov r13d, r12d
cmp rdx, r13
jae 0x18000a6fb
add rdx, rdx
lea rcx, [rdi + 0x260]
cmp rdx, qword [rcx + 0x10]
ja 0x18000a6ef
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 0x10
jb 0x18000a6e9
mov rcx, qword [rcx]
mov byte [rcx + rdx], 0
jmp 0x18000a6fb
sub rdx, qword [rcx + 0x10]
mov r8b, 0x20
call fcn.18000d970
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 8]
mov rbx, qword [rax]
sub rcx, 0x10
cmp rbx, rcx
je 0x18000a77a
lea r14, [rdi + 0x260]
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
mov rcx, qword [rdi]
jb 0x18000a726
mov rdx, qword [r14]
mov rax, qword [rcx]
mov r8, r13
call qword [rax + 8]
xor r9d, r9d
mov dword [rsp + 0x28], r12d
mov r8b, 1
mov dword [rsp + 0x20], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.18000a420
mov rcx, qword [rdi]
lea rdx, [0x18007c7ac]
mov r8, rbp
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsi + 8]
add rbx, 0x10
mov rax, qword [rax + 8]
sub rax, 0x10
cmp rbx, rax
jne 0x18000a716
mov r14d, dword [rsp + 0xb8]
mov rcx, qword [rdi]
lea rbx, [rdi + 0x260]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x18000a791
mov rdx, qword [rbx]
mov rax, qword [rcx]
mov r8, r13
call qword [rax + 8]
mov rax, qword [rsi + 8]
xor r9d, r9d
mov dword [rsp + 0x28], r12d
mov r8b, 1
mov rcx, rdi
mov dword [rsp + 0x20], r15d
mov rdx, qword [rax + 8]
sub rdx, 0x10
call fcn.18000a420
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rdi]
jb 0x18000a7d5
mov rbx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
mov r8d, r14d
call qword [rax + 8]
mov dl, 0x5d
jmp 0x18000ab99
mov dl, 0x5b
call qword [r9]
mov rdx, qword [rsi + 8]
mov ebp, dword [rsp + 0xb8]
mov r14d, dword [rsp + 0xb0]
mov rbx, qword [rdx]
jmp 0x18000a81f
mov rdx, rbx
call fcn.18000a420
mov rcx, qword [rdi]
mov dl, 0x2c
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rsi + 8]
add rbx, 0x10
mov rax, qword [rdx + 8]
xor r9d, r9d
sub rax, 0x10
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov rcx, rdi
cmp rbx, rax
jne 0x18000a805
mov rdx, qword [rdx + 8]
sub rdx, 0x10
call fcn.18000a420
jmp 0x18000a7e1
mov rax, qword [rdx + 8]
mov rcx, qword [rdi]
mov r9, qword [rcx]
cmp qword [rax + 8], r13
jne 0x18000a873
lea rdx, [0x18007c7a0]
mov r8d, 2
call qword [r9 + 8]
jmp 0x18000abb9
test r8b, r8b
je 0x18000aa77
mov ebp, 2
lea rdx, [0x18007c7a4]
mov r8d, ebp
call qword [r9 + 8]
mov r13d, dword [rsp + 0xb0]
mov r15d, dword [rsp + 0xb8]
mov rdx, qword [rdi + 0x270]
lea r14d, [r15 + r13]
mov r8d, r14d
mov dword [rsp + 0x30], r14d
cmp rdx, r8
jae 0x18000a8ea
add rdx, rdx
lea rcx, [rdi + 0x260]
cmp rdx, qword [rcx + 0x10]
ja 0x18000a8db
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 0x10
jb 0x18000a8d5
mov rcx, qword [rcx]
mov byte [rcx + rdx], 0
jmp 0x18000a8ea
sub rdx, qword [rcx + 0x10]
mov r8b, 0x20
call fcn.18000d970
mov r8d, r14d
mov rax, qword [rsi + 8]
xor r12d, r12d
cmp qword [rax + 8], 1
mov rbx, qword [rax]
mov rbx, qword [rbx]
je 0x18000a9e7
mov r15d, dword [rsp + 0x30]
lea r14, [rdi + 0x260]
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
mov rcx, qword [rdi]
jb 0x18000a91e
mov rdx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
mov rcx, rdi
call fcn.18000ca38
mov rcx, qword [rdi]
lea rdx, [0x18007c7a8]
mov r8d, 3
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov r8b, 1
mov rcx, rdi
call fcn.18000a420
mov rcx, qword [rdi]
lea rdx, [0x18007c7ac]
mov r8, rbp
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx + 0x10]
inc r12
xor edx, edx
cmp byte [rax + 0x19], dl
je 0x18000a9aa
mov rax, qword [rbx + 8]
jmp 0x18000a9a0
cmp rbx, qword [rax + 0x10]
jne 0x18000a9a5
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], dl
je 0x18000a993
mov rbx, rax
jmp 0x18000a9c3
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], dl
jne 0x18000a9c3
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], dl
je 0x18000a9b5
mov rax, qword [rsi + 8]
mov r8, r15
mov rcx, qword [rax + 8]
dec rcx
cmp r12, rcx
jb 0x18000a90e
mov r15d, dword [rsp + 0xb8]
mov r14d, dword [rsp + 0x30]
mov rcx, qword [rdi]
lea rsi, [rdi + 0x260]
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x18000a9fe
mov rdx, qword [rsi]
mov rax, qword [rcx]
mov r8d, r14d
call qword [rax + 8]
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
mov rcx, rdi
call fcn.18000ca38
mov rcx, qword [rdi]
lea rdx, [0x18007c7a8]
mov r8d, 3
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov r8b, 1
mov rcx, rdi
call fcn.18000a420
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [rsi + 0x18], 0x10
mov rcx, qword [rdi]
jb 0x18000aa66
mov rsi, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
mov r8d, r15d
call qword [rax + 8]
jmp 0x18000ab97
mov dl, 0x7b
call qword [r9]
mov rax, qword [rsi + 8]
mov r14, r13
mov r15d, dword [rsp + 0xb8]
mov ebp, 2
mov r12d, dword [rsp + 0xb0]
cmp qword [rax + 8], 1
mov rbx, qword [rax]
mov rbx, qword [rbx]
je 0x18000ab52
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
mov rcx, rdi
call fcn.18000ca38
mov rcx, qword [rdi]
lea rdx, [0x18007c7b0]
mov r8, rbp
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
call fcn.18000a420
mov rcx, qword [rdi]
mov dl, 0x2c
mov rax, qword [rcx]
call qword [rax]
mov rax, qword [rbx + 0x10]
inc r14
cmp byte [rax + 0x19], r13b
je 0x18000ab23
mov rax, qword [rbx + 8]
jmp 0x18000ab18
cmp rbx, qword [rax + 0x10]
jne 0x18000ab1e
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r13b
je 0x18000ab0b
mov rbx, rax
jmp 0x18000ab3e
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], r13b
jne 0x18000ab3e
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], r13b
je 0x18000ab2f
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 8]
dec rcx
cmp r14, rcx
jb 0x18000aaa9
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
mov rcx, rdi
call fcn.18000ca38
mov rcx, qword [rdi]
lea rdx, [0x18007c7b0]
mov r8, rbp
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
call fcn.18000a420
mov dl, 0x7d
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax]
jmp 0x18000abb9
lea rdx, str.null
mov r8d, 4
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret