Function at 0x180006d10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x180087020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov ecx, dword [0x180089430]
mov rax, qword gs:[0x58]
mov r14, qword [rax + rcx*8]
mov eax, 0x130
xor r13d, r13d
lea r12, [0x18008a6d0]
mov eax, dword [rax + r14]
cmp dword [0x18008a6c8], eax
jle 0x180006dc2
lea rcx, [0x18008a6c8]
call fcn.18003f3c4
cmp dword [0x18008a6c8], 0xffffffff
jne 0x180006dc2
mov qword [0x18008a6d0], r13
mov qword [0x18008a6e0], r13
mov qword [0x18008a6e8], 7
lea r8d, [r13 + 2]
lea rdx, [0x1800798c0]
mov rcx, r12
call fcn.180002ce0
lea rcx, [0x180068d30]
call fcn.18003f83c
nop
lea rcx, [0x18008a6c8]
call fcn.18003f364
call fcn.180045878
cmp eax, 0x98
jne 0x180006dd4
add dword [0x180087be8], eax
movdqa xmm0, xmmword [0x180079e30]
mov word [rbp - 0x18], 0x5a74
mov ecx, 0x390
mov eax, dword [rcx + r14]
test al, 1
jne 0x180006e4a
or eax, 1
mov dword [rcx + r14], eax
mov eax, 0x5d8
mov ebx, eax
lea rcx, [rax + r14]
mov byte [rcx + 0x13], 1
lea rax, [rcx + 0x12]
lea rdx, [rbp - 0x16]
cmp rcx, rdx
ja 0x180006e2c
lea rdx, [rbp - 0x28]
cmp rax, rdx
jb 0x180006e2c
movups xmmword [rcx], xmm0
movzx eax, word [rbp - 0x18]
mov word [rcx + 0x10], ax
mov byte [rcx + 0x12], 0xc9
jmp 0x180006e3b
movups xmmword [rcx], xmm0
movzx eax, word [rbp - 0x18]
mov word [rcx + 0x10], ax
mov byte [rcx + 0x12], 0xc9
lea rcx, [0x180068d00]
call fcn.18003f1a4
nop
jmp 0x180006e4f
mov ebx, 0x5d8
lea r9, [r14 + rbx]
cmp byte [r9 + 0x13], 0
je 0x180006e91
mov rdx, r13
movabs r8, 0xd5b16f5727c90d07
nop word [rax + rax]
movzx ecx, dl
and cl, 7
shl cl, 3
mov rax, r8
shr rax, cl
xor byte [rdx + r9], al
inc rdx
cmp rdx, 0x13
jb 0x180006e70
mov byte [r9 + 0x13], 0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], 0xf
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [r9 + r8], 0
jne 0x180006eb0
mov rdx, r9
lea rcx, [rbp - 0x28]
call fcn.180002e80
mov rsi, rdi
cmp qword [rdi + 0x18], 8
jb 0x180006ed3
mov rsi, qword [rdi]
lea rdx, [rbp - 0x28]
mov ecx, 1
call fcn.1800122a0
mov rcx, rsi
call rax
mov esi, eax
cmp eax, 0xffffffff
jne 0x1800070f7
call fcn.180045878
cmp eax, 0x89
jne 0x180006f03
add dword [0x180087be8], eax
cmp qword [0x18008a6e8], 8
cmovae r12, qword [0x18008a6d0]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x180006f20
mov rcx, qword [rdi]
mov rsi, qword [rdi + 0x10]
mov rax, qword [0x18008a6e0]
mov qword [rsp + 0x20], rax
mov r9, r12
mov rdx, rsi
call fcn.1800093d0
cmp rax, rbx
je 0x180006fc4
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r13w
cmp rsi, rax
cmovb rax, rsi
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x180006f6d
mov rdx, qword [rdi]
mov r8, rax
lea rcx, [rbp - 0x28]
call fcn.180002ce0
nop
lea rcx, [rbp - 0x28]
call fcn.180006d10
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180006fc4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006fbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007125
call fcn.18003f0cc
call fcn.180045878
cmp eax, 2
jne 0x180006fd4
add dword [0x180087be8], eax
movdqa xmm0, xmmword [0x180079cf0]
mov ecx, 0x528
mov eax, dword [rcx + r14]
test al, 1
jne 0x180007033
or eax, 1
mov dword [rcx + r14], eax
mov eax, 0x5c0
mov esi, eax
add rax, r14
mov byte [rax + 0x11], 1
lea rcx, [rax + 0x10]
lea rdx, [rbp - 0x18]
cmp rax, rdx
ja 0x18000701d
lea rdx, [rbp - 0x28]
cmp rcx, rdx
jb 0x18000701d
movups xmmword [rax], xmm0
mov byte [rax + 0x10], 0xcd
jmp 0x180007024
movups xmmword [rax], xmm0
mov byte [rax + 0x10], 0xcd
lea rcx, [0x180068cd0]
call fcn.18003f1a4
nop
jmp 0x180007038
mov esi, 0x5c0
lea r9, [r14 + rsi]
cmp byte [r9 + 0x11], 0
je 0x180007071
mov rdx, r13
movabs r8, 0x497df58f9d6d63cd
movzx ecx, dl
and cl, 7
shl cl, 3
mov rax, r8
shr rax, cl
xor byte [rdx + r9], al
inc rdx
cmp rdx, 0x11
jb 0x180007050
mov byte [r9 + 0x11], 0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], 0xf
inc rbx
cmp byte [r9 + rbx], 0
jne 0x180007081
mov r8, rbx
mov rdx, r9
lea rcx, [rbp - 0x28]
call fcn.180002e80
cmp qword [rdi + 0x18], 8
jb 0x1800070a4
mov rdi, qword [rdi]
lea rdx, [rbp - 0x28]
mov ecx, 1
call fcn.1800122a0
xor edx, edx
mov rcx, rdi
call rax
test eax, eax
je 0x180007121
call fcn.180045878
cmp eax, 0x62
jne 0x1800070cd
add dword [0x180087be8], eax
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18003f070
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
call fcn.180045878
cmp eax, 5
jne 0x180007107
add dword [0x180087be8], eax
test esi, 0x410
jne 0x1800070bd
call fcn.180045878
cmp eax, 0x92
jne 0x180007121
add dword [0x180087be8], eax
xor eax, eax
jmp 0x1800070d2
call fcn.180045aec
int3