Function at 0x1800bd158
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
movsd xmm1, qword [rbp + 0x50]
xor r11d, r11d
ucomisd xmm1, xmm1
mov ebx, dword [rbp + 0x58]
mov rsi, r9
mov r14, r8
mov r15, rdx
mov r12, rcx
mov r10d, r11d
movaps xmm3, xmm1
jnp 0x1800bd1ff
mov dword [rbp + 0x50], 0x355a525c
lea r8, [rbp + 0x50]
mov eax, 0x8d3dcb09
mul r11d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r11b
inc r11d
sub al, cl
add al, 0x32
xor byte [r8], al
inc r8
cmp r11d, 4
jl 0x1800bd1a5
mov eax, dword [rbp + 0x68]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
mov r8, r14
mov rdx, r15
mov rcx, r12
call fcn.1800be078
jmp 0x1800bd578
movsd xmm0, qword [0x18000cb10]
comisd xmm0, xmm1
jbe 0x1800bd260
mov dword [rbp + 0x50], 0x185d5d54
lea r8, [rbp + 0x50]
mov byte [rbp + 0x54], 0x36
mov eax, 0x8d3dcb09
mul r11d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r11b
inc r11d
sub al, cl
add al, 0x32
xor byte [r8], al
inc r8
cmp r11d, 5
jl 0x1800bd21c
mov eax, dword [rbp + 0x68]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], 4
jmp 0x1800bd1e7
comisd xmm1, xmmword [0x18000cae0]
jbe 0x1800bd31a
mov r10d, dword [rbp + 0x68]
mov ecx, r10d
and ecx, 4
mov eax, ecx
neg eax
sbb r8, r8
neg r8
add r8, 3
test ecx, ecx
je 0x1800bd2c6
mov dword [rbp + 0x50], 0x1e5d5d54
lea r9, [rbp + 0x50]
mov byte [rbp + 0x54], 0x36
mov eax, 0x8d3dcb09
mul r11d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r11b
inc r11d
sub al, cl
add al, 0x32
xor byte [r9], al
inc r9
cmp r11d, 5
jl 0x1800bd299
lea rcx, [rbp + 0x50]
jmp 0x1800bd2fc
mov dword [rbp + 0x50], 0x355d5d54
lea r9, [rbp + 0x50]
mov eax, 0x8d3dcb09
mul r11d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r11b
inc r11d
sub al, cl
add al, 0x32
xor byte [r9], al
inc r9
cmp r11d, 4
jl 0x1800bd2d1
lea rcx, [rbp + 0x50]
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rcx
mov r9, rsi
jmp 0x1800bd1ec
comisd xmm1, xmmword [0x18000ce58]
ja 0x1800bd55b
movsd xmm0, qword [0x18000ce70]
comisd xmm0, xmm1
ja 0x1800bd55b
xorps xmm2, xmm2
comisd xmm2, xmm1
jbe 0x1800bd34d
xorps xmm0, xmm0
subsd xmm0, xmm1
movaps xmm1, xmm0
mov edi, dword [rbp + 0x68]
mov r8d, 6
comisd xmm2, xmm3
seta r13b
bt edi, 0xa
cmovb r8d, ebx
cmp r8d, 9
jbe 0x1800bd37e
mov byte [rbp + r10 - 0x20], 0x30
dec r8d
inc r10
cmp r10, 0x20
jb 0x1800bd366
movsd xmm3, qword [0x180005f28]
lea rax, [0x18000cd20]
cvttsd2si ebx, xmm1
movaps xmm2, xmm1
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
subsd xmm2, xmm0
xorps xmm0, xmm0
mulsd xmm2, qword [rax + r8*8]
cvttsd2si r9, xmm2
mov eax, r9d
cvtsi2sd xmm0, rax
subsd xmm2, xmm0
comisd xmm2, xmm3
jbe 0x1800bd3fb
lea edx, [r9 + 1]
xorps xmm0, xmm0
mov eax, edx
lea r9, [0x18000cd20]
cvtsi2sd xmm0, rax
mov eax, r11d
comisd xmm0, xmmword [r9 + r8*8]
cmovb eax, edx
lea rdx, [0x18000cd20]
comisd xmm0, xmmword [rdx + r8*8]
mov r9d, eax
lea eax, [rbx + 1]
cmovb eax, ebx
mov ebx, eax
jmp 0x1800bd40f
comisd xmm3, xmm2
ja 0x1800bd40f
test r9d, r9d
je 0x1800bd40c
test r9b, 1
je 0x1800bd40f
inc r9d
test r8d, r8d
jne 0x1800bd43a
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
comisd xmm3, xmm1
ja 0x1800bd4d6
test bl, 1
je 0x1800bd4d6
inc ebx
jmp 0x1800bd4d6
cmp r10, 0x20
jae 0x1800bd4dc
mov eax, 0xcccccccd
dec r8d
mul r9d
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r9b, cl
add r9b, 0x30
mov byte [rbp + r10 - 0x20], r9b
inc r10
mov r9d, edx
test edx, edx
je 0x1800bd491
cmp r10, 0x20
jb 0x1800bd444
jmp 0x1800bd491
mov eax, r8d
lea rcx, [rbp - 0x20]
add rcx, r10
dec r8d
inc r10
test eax, eax
je 0x1800bd499
mov byte [rcx], 0x30
cmp r10, 0x20
jb 0x1800bd47a
jmp 0x1800bd4dc
mov byte [rcx], 0x2e
jmp 0x1800bd4d6
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov al, dl
shl al, 2
add dl, al
mov al, bl
add dl, dl
sub al, dl
add al, 0x30
mov byte [rbp + r10 - 0x20], al
mov eax, 0xcccccccd
mul ebx
inc r10
mov ebx, edx
shr ebx, 3
test ebx, ebx
je 0x1800bd4dc
cmp r10, 0x20
jb 0x1800bd49e
mov eax, edi
and al, 3
cmp al, 1
mov eax, dword [rbp + 0x60]
jne 0x1800bd510
test eax, eax
je 0x1800bd4f8
test r13b, r13b
jne 0x1800bd4f6
test dil, 0xc
je 0x1800bd4f8
dec eax
mov ecx, eax
jmp 0x1800bd50b
cmp r10, 0x20
jae 0x1800bd540
mov byte [rbp + r10 - 0x20], 0x30
inc r10
cmp r10, rcx
jb 0x1800bd4fc
cmp r10, 0x20
jae 0x1800bd540
test r13b, r13b
je 0x1800bd523
mov byte [rbp + r10 - 0x20], 0x2d
jmp 0x1800bd53d
test dil, 4
je 0x1800bd531
mov byte [rbp + r10 - 0x20], 0x2b
jmp 0x1800bd53d
test dil, 8
je 0x1800bd540
mov byte [rbp + r10 - 0x20], 0x20
inc r10
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], rax
jmp 0x1800bd312
mov eax, dword [rbp + 0x68]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ebx
movsd qword [rsp + 0x20], xmm1
call fcn.1800bca70
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret