Function at 0x18006ebb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x18009d5d8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
xor r14d, r14d
mov ecx, dword [rcx + 0x8c]
mov rsi, rdx
test ecx, ecx
je 0x18006ec3b
mov eax, dword [rbx + 0x88]
mov edx, 1
dec eax
shl dl, cl
movsxd r8, eax
dec dl
mov eax, 8
sub eax, ecx
movzx ecx, al
shl dl, cl
and byte [r8 + rbx + 0x48], dl
mov eax, dword [rbx + 0x88]
dec eax
movsxd rdx, eax
mov eax, 7
sub eax, dword [rbx + 0x8c]
movzx ecx, byte [rdx + rbx + 0x48]
btc ecx, eax
mov byte [rdx + rbx + 0x48], cl
mov dword [rbx + 0x8c], r14d
jmp 0x18006ec4d
movsxd rax, dword [rbx + 0x88]
mov byte [rax + rbx + 0x48], 0x80
inc dword [rbx + 0x88]
mov eax, dword [rbx + 0x88]
cmp eax, 0x38
jle 0x18006ec94
cmp eax, 0x40
jge 0x18006ec7b
nop dword [rax]
movsxd rax, dword [rbx + 0x88]
mov byte [rax + rbx + 0x48], r14b
inc dword [rbx + 0x88]
cmp dword [rbx + 0x88], 0x40
jl 0x18006ec60
lea rdx, [rbx + 0x48]
mov r8d, 0x40
mov rcx, rbx
call fcn.180070450
mov dword [rbx + 0x88], r14d
cmp dword [rbx + 0x88], 0x38
jge 0x18006ecbb
nop dword [rax]
movsxd rax, dword [rbx + 0x88]
mov byte [rax + rbx + 0x48], r14b
inc dword [rbx + 0x88]
cmp dword [rbx + 0x88], 0x38
jl 0x18006eca0
add dword [rbx + 0x40], 1
jne 0x18006ecc4
inc dword [rbx + 0x44]
mov dword [rbx + 0x88], 0x40
nop
dec dword [rbx + 0x88]
movzx eax, byte [rbx + 0x40]
movsxd rcx, dword [rbx + 0x88]
mov byte [rcx + rbx + 0x48], al
shr dword [rbx + 0x40], 8
mov eax, dword [rbx + 0x88]
cmp eax, 0x3c
jg 0x18006ecd0
cmp eax, 0x38
jle 0x18006ed22
nop dword [rax]
dec dword [rbx + 0x88]
movzx eax, byte [rbx + 0x44]
movsxd rcx, dword [rbx + 0x88]
mov byte [rcx + rbx + 0x48], al
shr dword [rbx + 0x44], 8
cmp dword [rbx + 0x88], 0x38
jg 0x18006ed00
mov r8d, 0x40
lea rdx, [rbx + 0x48]
mov rcx, rbx
call fcn.180070450
movups xmm0, xmmword [rbx]
xor r8d, r8d
lea rdx, [rbp - 0x49]
movups xmm1, xmmword [rbx + 0x10]
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rbp - 0x79], xmm1
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm1
call fcn.18006ef40
mov r8d, 1
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.18006ef40
mov r8d, 2
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 9]
call fcn.18006ef40
mov r8d, 3
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.18006ef40
mov r8d, 4
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 9]
call fcn.18006ef40
mov r8d, 5
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.18006ef40
mov r8d, 6
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 9]
call fcn.18006ef40
mov r8d, 7
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.18006ef40
mov r8d, 8
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 9]
call fcn.18006ef40
mov r8d, 9
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x49]
call fcn.18006ef40
lea rdx, [rbp - 0x4d]
mov eax, r14d
lea rcx, [rbx + 0x3c]
mov r8d, 0x10
cmp rbx, rdx
ja 0x18006ee31
lea rdx, [rsp + 0x20]
cmp rcx, rdx
jae 0x18006ee7f
movdqu xmm0, xmmword [rbx]
mov eax, r8d
movdqu xmm1, xmmword [rsp + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
movdqu xmm0, xmmword [rbx + 0x10]
movdqu xmm1, xmmword [rbp - 0x79]
pxor xmm1, xmm0
movdqu xmmword [rbx + 0x10], xmm1
movdqu xmm0, xmmword [rbx + 0x20]
movdqu xmm1, xmmword [rbp - 0x69]
pxor xmm1, xmm0
movdqu xmmword [rbx + 0x20], xmm1
movdqu xmm0, xmmword [rbx + 0x30]
movdqu xmm1, xmmword [rbp - 0x59]
pxor xmm1, xmm0
movdqu xmmword [rbx + 0x30], xmm1
cmp rax, r8
jae 0x18006eeb0
lea r9, [rsp + 0x20]
mov rdx, r8
sub r9, rbx
lea rcx, [rbx + rax*4]
sub rdx, rax
nop word [rax + rax]
mov eax, dword [r9 + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x18006eea0
lea rcx, [rsi + 1]
mov rdx, rbx
sub rsi, rcx
sub rdx, rcx
mov r9, rbx
sub r9, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx + 0x20]
mov byte [rsi + rcx], al
movzx eax, byte [r9 + rcx + 0x21]
mov byte [rcx], al
lea rcx, [rcx + 2]
sub r8, 1
jne 0x18006eed0
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov qword [rbx + 0x68], r14
mov qword [rbx + 0x70], r14
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x80], r14
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180076910
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret