Function at 0x18006c840
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x18014b040]
xor rax, rsp
mov qword [rbp + 0xe8], rax
xor ebx, ebx
cmp qword [0x18019e5b0], rbx
je 0x18006cc4c
movdqa xmm0, xmmword [0x180130770]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x180130ae0]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x180130790]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x180130780]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x180130110]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x180130100]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [0x180130130]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x18012ffd0]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [str._XIV_LSNS]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x180130ec0]
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmm0, xmmword [0x180130d30]
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x180130c00]
movdqa xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmmword [0x180130c50]
movdqa xmmword [rbp], xmm0
movdqa xmm1, xmmword [0x180130c80]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x180130bb0]
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmm1, xmmword [0x180130da0]
movdqa xmmword [rbp + 0x30], xmm1
movdqa xmm0, xmmword [0x180130630]
movdqa xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x180130b30]
movdqa xmmword [rbp + 0x50], xmm1
movdqa xmm0, xmmword [0x18012ff50]
movdqa xmmword [rbp + 0x60], xmm0
movdqa xmm1, xmmword [0x18012ff90]
movdqa xmmword [rbp + 0x70], xmm1
mov dword [rbp + 0x80], 0x1309160e
mov dword [rbp + 0x84], 0x5a535931
mov word [rbp + 0x88], 0x35
mov byte [rbp + 0x8a], 1
mov ecx, ebx
nop dword [rax]
lea eax, [rcx - 9]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0x149
jb 0x18006c9b0
mov byte [rbp + 0x8a], bl
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc0], xmm1
lea rax, [rsp + 0x40]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], bl
jne 0x18006c9f0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xb0]
call fcn.18001ac10
nop
mov dword [rbp + 0xa4], 0x203d20
movdqa xmm0, xmmword [0x180130a20]
movdqu xmmword [rbp + 0x90], xmm0
mov dword [rbp + 0xa0], 0x72657961
mov byte [rbp + 0xa8], 0
lea rax, [rbp + 0x90]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x18006ca40
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xb0]
call fcn.1800181f0
mov rsi, rax
mov rcx, qword [0x18019e5b0]
test rcx, rcx
je 0x18006cab1
lea rax, section..text
mov qword [rbp + 0x90], rax
mov rax, qword [0x18019e7a0]
mov qword [rbp + 0x98], rax
xor eax, eax
mov qword [rbp + 0xa0], rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.18009c2a0
mov ebx, eax
lea r9, [rbp + 0xe5]
test ebx, ebx
jns 0x18006caf0
neg ebx
nop
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x18006cac0
dec r9
mov byte [r9], 0x2d
jmp 0x18006cb16
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x18006caf0
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
lea rax, [rbp + 0xe5]
cmp r9, rax
jne 0x18006cb50
movdqa xmm0, xmmword [0x18012fe20]
movdqu xmmword [rbp + 0xa0], xmm0
mov byte [rbp + 0x90], 0
jmp 0x18006cb6a
lea r8, [rbp + 0xe5]
sub r8, r9
mov rdx, r9
lea rcx, [rbp + 0x90]
call fcn.18001ac10
nop
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
mov rcx, rsi
call fcn.1800181f0
mov word [rsp + 0x30], 0xa
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x30]
mov r8, rdi
inc r8
cmp byte [rcx + r8], 0
jne 0x18006cba4
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1800181f0
nop
lea rcx, [rbp + 0x90]
call fcn.180017e00
mov dword [rbp + 0xa8], 0x297265
movdqa xmm0, xmmword [0x180130920]
movdqu xmmword [rbp + 0x90], xmm0
mov dword [rbp + 0xa0], 0x64657463
mov dword [rbp + 0xa4], 0x79616c50
mov byte [rbp + 0xac], 0
lea rax, [rbp + 0x90]
inc rdi
cmp byte [rax + rdi], 0
jne 0x18006cc04
mov r8, rdi
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xb0]
call fcn.1800181f0
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 0xf
cmova rcx, qword [rbp + 0xb0]
call fcn.18006a320
nop
lea rcx, [rbp + 0xb0]
call fcn.180017e00
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.18009cbe0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret