Function at 0x18006ac50
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, 0x70
mov rax, qword [0x180248b00]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx r12d, r8b
mov byte [rsp + 0x30], r12b
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0xc], 1
jl 0x18006ac97
mov rdx, qword [rcx]
mov eax, dword [r14 + 0xc]
inc eax
mov dword [rdx + 0x1b8], eax
xor ebx, ebx
mov rax, qword [r14 + 0x20]
mov ecx, dword [rax + 8]
mov r15d, ebx
cmp ecx, dword [0x1802a8b38]
cmove r15, rax
test r15, r15
je 0x18006accb
mov rcx, qword [r15 + 0x20]
mov eax, dword [0x1802a8ba8]
cmp dword [rcx + 8], eax
cmove rbx, rcx
mov rbp, rbx
mov rbx, r14
jmp 0x18006acdb
mov rbp, rbx
cmp ecx, dword [0x1802a8ba8]
cmove rbp, rax
mov r15, r14
mov rdi, 0xffffffffffffffff
test rbp, rbp
je 0x18006aec9
cmp dword [rsi + 8], 1
jl 0x18006aec9
lea rcx, [rsi + 0x90]
mov rdx, qword [rbp + 0x20]
call fcn.18005c260
test eax, eax
jne 0x18006aec9
mov rax, rdx
mov qword [rsp + 0x40], rdx
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x18006ad20
mov qword [rsp + 0x48], rdx
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
call fcn.18005ea60
mov ebp, eax
mov rdx, qword [r15 + 0x28]
mov qword [rsp + 0x40], rdx
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18006ad50
mov qword [rsp + 0x48], r8
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
call fcn.18005ea60
mov r15d, eax
test rbx, rbx
je 0x18006ada0
mov rdx, qword [rbx + 0x28]
mov qword [rsp + 0x40], rdx
mov r8, rdi
inc r8
cmp byte [rdx + r8], 0
jne 0x18006ad80
mov qword [rsp + 0x48], r8
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
call fcn.18005ea60
mov ecx, eax
jmp 0x18006ada2
mov ecx, edi
test ebp, ebp
js 0x18006b06e
test r15d, r15d
js 0x18006b06e
test rbx, rbx
je 0x18006adc0
test ecx, ecx
js 0x18006b06e
cmp ebp, 0x400
jge 0x18006aec9
cmp r15d, 0x400
jge 0x18006aec9
cmp ecx, 0x400
jge 0x18006aec9
shl ebp, 0xa
or ebp, r15d
shl ebp, 0xa
mov eax, ebp
or eax, ecx
or eax, 0xc0000000
bts ebp, 0x1f
test rbx, rbx
cmovne ebp, eax
mov edx, ebp
mov rcx, qword [rsi]
call fcn.18005ebc0
cmp eax, 0x7fff
ja 0x18006aec9
mov rbx, qword [rsi]
movzx ecx, ax
shl ecx, 8
or ecx, r12d
shl ecx, 8
or ecx, 0xc
mov dword [rsp + 0x60], ecx
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x18006ae3f
mov dword [rdx], ecx
add qword [rbx + 0x30], 4
jmp 0x18006ae4d
lea r8, [rsp + 0x60]
lea rcx, [rbx + 0x28]
call fcn.18004a840
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x18006ae6e
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x18006ae73
call fcn.18004a840
mov rbx, qword [rsi]
mov dword [rsp + 0x60], ebp
lea rcx, [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x18006ae91
mov dword [rdx], ebp
add qword [rbx + 0x30], 4
jmp 0x18006ae9b
lea r8, [rsp + 0x60]
call fcn.18004a840
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x18006aebf
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x18006b038
call fcn.18004a840
jmp 0x18006b038
mov qword [rsp + 0x50], rsi
mov r13d, dword [rsi + 0x40c]
mov dword [rsp + 0x58], r13d
mov rdx, qword [r14 + 0x20]
mov rcx, rsi
call fcn.18006bf50
movzx r12d, al
cmp dword [rsi + 0xc], 1
jl 0x18006aeff
mov rdx, qword [rsi]
mov ecx, dword [r14 + 0x30]
inc ecx
mov dword [rdx + 0x1b8], ecx
mov rbx, qword [r14 + 0x28]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x18006af03
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
call fcn.18005ea60
mov r15d, eax
test eax, eax
js 0x18006b05d
mov rbp, qword [rsi]
mov rdx, rdi
test rdi, rdi
je 0x18006af5e
lea r8, [rbx - 1]
add r8, rdx
mov ecx, edi
shl ecx, 5
mov eax, edi
shr eax, 2
add ecx, eax
movzx eax, byte [r8]
add ecx, eax
xor edi, ecx
lea r8, [r8 - 1]
sub rdx, 1
jne 0x18006af40
movzx ecx, dil
shl ecx, 8
or ecx, r12d
shl ecx, 8
movzx eax, byte [rsp + 0x30]
or ecx, eax
shl ecx, 8
or ecx, 0xf
mov dword [rsp + 0x60], ecx
mov rdx, qword [rbp + 0x30]
cmp rdx, qword [rbp + 0x38]
je 0x18006af8f
mov dword [rdx], ecx
add qword [rbp + 0x30], 4
jmp 0x18006af9d
lea r8, [rsp + 0x60]
lea rcx, [rbp + 0x28]
call fcn.18004a840
lea rcx, [rbp + 0x40]
lea r8, [rbp + 0x1b8]
mov rdx, qword [rbp + 0x48]
cmp rdx, qword [rbp + 0x50]
je 0x18006afbe
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbp + 0x48], 4
jmp 0x18006afc3
call fcn.18004a840
mov rbx, qword [rsi]
mov dword [rsp + 0x60], r15d
lea rcx, [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x18006afe3
mov dword [rdx], r15d
add qword [rbx + 0x30], 4
jmp 0x18006afed
lea r8, [rsp + 0x60]
call fcn.18004a840
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x18006b00e
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x18006b013
call fcn.18004a840
mov dword [rsp + 0x20], 2
mov r9d, 4
mov r8d, r12d
mov rdx, qword [r14 + 0x20]
mov rcx, rsi
call fcn.180070cd0
nop
mov dword [rsi + 0x40c], r13d
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18017a790
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [r14 + 0xc]
lea rdx, str.Exceeded_constant_limit__simplify_the_code_to_compile
call fcn.1800642d0
nop
lea rcx, [r14 + 0xc]
lea rdx, str.Exceeded_constant_limit__simplify_the_code_to_compile
call fcn.1800642d0
int3