Function at 0x18013d490
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 [0x18048aea8]
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 0x18013d4d6
mov rcx, qword [rcx]
mov eax, dword [rdx + 0xc]
inc eax
mov dword [rcx + 0x1b8], eax
xor ebx, ebx
mov rax, qword [rdx + 0x20]
mov ecx, dword [rax + 8]
mov r15d, ebx
cmp ecx, dword [0x18048fb78]
cmove r15, rax
test r15, r15
je 0x18013d50a
mov rcx, qword [r15 + 0x20]
mov eax, dword [0x18048fbe8]
cmp dword [rcx + 8], eax
cmove rbx, rcx
mov rbp, rbx
mov rbx, r14
jmp 0x18013d51a
mov rbp, rbx
cmp ecx, dword [0x18048fbe8]
cmove rbp, rax
mov r15, r14
mov rdi, 0xffffffffffffffff
test rbp, rbp
je 0x18013d6fc
cmp dword [rsi + 8], 1
jl 0x18013d6fc
lea rcx, [rsi + 0x90]
mov rdx, qword [rbp + 0x20]
call fcn.18012d3f0
test eax, eax
jne 0x18013d6fc
mov rax, rdx
mov qword [rsp + 0x40], rdx
mov rdx, rdi
inc rdx
cmp byte [rax + rdx], 0
jne 0x18013d557
mov qword [rsp + 0x48], rdx
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
call fcn.18012fd30
mov ebp, eax
mov rdx, qword [r15 + 0x28]
mov qword [rsp + 0x40], rdx
mov r8, rdi
inc r8
cmp byte [rdx + r8], 0
jne 0x18013d580
mov qword [rsp + 0x48], r8
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
call fcn.18012fd30
mov r15d, eax
test rbx, rbx
je 0x18013d5d0
mov rdx, qword [rbx + 0x28]
mov qword [rsp + 0x40], rdx
mov r8, rdi
inc r8
cmp byte [rdx + r8], 0
jne 0x18013d5b0
mov qword [rsp + 0x48], r8
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
call fcn.18012fd30
mov ecx, eax
jmp 0x18013d5d2
mov ecx, edi
test ebp, ebp
js 0x18013d8a1
test r15d, r15d
js 0x18013d8a1
test rbx, rbx
je 0x18013d5f0
test ecx, ecx
js 0x18013d8a1
cmp ebp, 0x400
jge 0x18013d6fc
cmp r15d, 0x400
jge 0x18013d6fc
cmp ecx, 0x400
jge 0x18013d6fc
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.18012fe90
cmp eax, 0x7fff
ja 0x18013d6fc
mov rbx, qword [rsi]
movzx ecx, ax
shl ecx, 8
or ecx, r12d
shl ecx, 8
or ecx, 0xa4
mov dword [rsp + 0x60], ecx
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x18013d672
mov dword [rdx], ecx
add qword [rbx + 0x30], 4
jmp 0x18013d680
lea r8, [rsp + 0x60]
lea rcx, [rbx + 0x28]
call fcn.180135a20
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x18013d6a1
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x18013d6a6
call fcn.180135a20
mov rbx, qword [rsi]
mov dword [rsp + 0x60], ebp
lea rcx, [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x18013d6c4
mov dword [rdx], ebp
add qword [rbx + 0x30], 4
jmp 0x18013d6ce
lea r8, [rsp + 0x60]
call fcn.180135a20
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x18013d6f2
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x18013d86b
call fcn.180135a20
jmp 0x18013d86b
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.18013e770
movzx r12d, al
cmp dword [rsi + 0xc], 1
jl 0x18013d732
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 0x18013d736
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
call fcn.18012fd30
mov r15d, eax
test eax, eax
js 0x18013d890
mov rbp, qword [rsi]
mov rdx, rdi
test rdi, rdi
je 0x18013d791
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 0x18013d773
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, 0x4d
mov dword [rsp + 0x60], ecx
mov rdx, qword [rbp + 0x30]
cmp rdx, qword [rbp + 0x38]
je 0x18013d7c2
mov dword [rdx], ecx
add qword [rbp + 0x30], 4
jmp 0x18013d7d0
lea r8, [rsp + 0x60]
lea rcx, [rbp + 0x28]
call fcn.180135a20
lea rcx, [rbp + 0x40]
lea r8, [rbp + 0x1b8]
mov rdx, qword [rbp + 0x48]
cmp rdx, qword [rbp + 0x50]
je 0x18013d7f1
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbp + 0x48], 4
jmp 0x18013d7f6
call fcn.180135a20
mov rbx, qword [rsi]
mov dword [rsp + 0x60], r15d
lea rcx, [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x18013d816
mov dword [rdx], r15d
add qword [rbx + 0x30], 4
jmp 0x18013d820
lea r8, [rsp + 0x60]
call fcn.180135a20
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x18013d841
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x18013d846
call fcn.180135a20
mov dword [rsp + 0x20], 2
mov r9d, 4
mov r8d, r12d
mov rdx, qword [r14 + 0x20]
mov rcx, rsi
call fcn.1801437d0
nop
mov dword [rsi + 0x40c], r13d
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180394080
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.180136520
nop
lea rcx, [r14 + 0xc]
lea rdx, str.Exceeded_constant_limit__simplify_the_code_to_compile
call fcn.180136520
int3