Function at 0x180064b88
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x180201ac0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13, rcx
xor r12d, r12d
mov r15d, r12d
mov dword [rsp + 0x50], r12d
lea rax, [rcx + 0x40]
mov rbx, rcx
cmp qword [rcx + 0x50], r12
cmovne rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x30]
call fcn.18006472c
cmp byte [rax + 2], r12b
je 0x180064c20
mov r8d, r12d
mov cl, r8b
and cl, 7
shl cl, 3
movabs rdx, 0xe3912dfd25097b7b
shr rdx, cl
xor byte [r8 + rax], dl
inc r8
cmp r8, 2
jb 0x180064bf9
mov byte [rax + 2], r12b
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, rbx
call fcn.180065584
lea rcx, [rsp + 0x30]
call fcn.1800644f8
cmp byte [rax + 0x17], r12b
je 0x180064c6a
mov r10, r12
mov cl, r10b
and cl, 7
shl cl, 3
movabs r9, 0x57fb21ed7b6501a9
shr r9, cl
xor byte [r10 + rax], r9b
inc r10
cmp r10, 0x17
jb 0x180064c43
mov byte [rax + 0x17], r12b
mov r8d, 1
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.18002e090
nop
mov rbx, qword [rsp + 0x38]
mov r14, rbx
cmp rbx, qword [rsp + 0x40]
je 0x18006503d
movabs rdi, 0x2aaaaaaaaaaaaaab
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xc0], r12
mov rdx, r14
lea rcx, [rbp + 0xa8]
call fcn.18002e610
nop
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x80], r12
mov byte [rbp - 0x78], r12b
movdqa xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x60], xmm1
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x48], r12b
movdqa xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x30], r12b
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov byte [rbp - 0x18], r12b
lea rcx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0x10
cmovae rcx, qword [rbp + 0xa8]
mov r8, qword [rbp + 0xb8]
add r8, rcx
lea rdx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0x10
cmovae rdx, qword [rbp + 0xa8]
mov dword [rsp + 0x20], r12d
lea r9, [rbp + 0x80]
lea rcx, [rbp - 0x10]
call fcn.180063fe4
nop
jmp 0x180064f73
mov rcx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x20]
sub rcx, r8
mov rax, rdi
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 5
jne 0x180064f6a
mov qword [rbp + 0xf0], r12
mov qword [rbp + 0x100], r12
lea eax, [rdx + 0xa]
mov qword [rbp + 0x108], rax
mov byte [rbp + 0xf0], r12b
mov qword [rbp + 0x110], r12
mov qword [rbp + 0x120], r12
mov qword [rbp + 0x128], rax
mov byte [rbp + 0x110], r12b
mov qword [rbp + 0x130], r12
mov qword [rbp + 0x140], r12
mov qword [rbp + 0x148], rax
mov byte [rbp + 0x130], r12b
mov qword [rbp + 0x150], r12
mov qword [rbp + 0x160], r12
mov qword [rbp + 0x168], rax
mov byte [rbp + 0x150], r12b
lea rcx, [r8 + 0x18]
lea rdx, [rbp + 0xc8]
call fcn.180066b0c
or r15d, 3
movups xmm0, xmmword [rbp + 0xc8]
movaps xmmword [rbp + 0xf0], xmm0
movups xmm1, xmmword [rbp + 0xd8]
movaps xmmword [rbp + 0x100], xmm1
mov rcx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x20]
sub rcx, r8
mov rax, rdi
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 2
lea rcx, [rbp + 0x68]
jbe 0x180064e4e
lea rcx, [r8 + 0x30]
lea rdx, [rbp + 0xc8]
call fcn.180066b0c
movups xmm0, xmmword [rbp + 0xc8]
movaps xmmword [rbp + 0x110], xmm0
movups xmm1, xmmword [rbp + 0xd8]
movaps xmmword [rbp + 0x120], xmm1
mov rcx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x20]
sub rcx, r8
mov rax, rdi
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 3
lea rcx, [rbp + 0x68]
jbe 0x180064ea3
lea rcx, [r8 + 0x48]
lea rdx, [rbp + 0xc8]
call fcn.180066b0c
movups xmm0, xmmword [rbp + 0xc8]
movaps xmmword [rbp + 0x130], xmm0
movups xmm1, xmmword [rbp + 0xd8]
movaps xmmword [rbp + 0x140], xmm1
mov rcx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x20]
sub rcx, r8
mov rax, rdi
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 4
lea rcx, [rbp + 0x68]
jbe 0x180064ef8
lea rcx, [r8 + 0x60]
lea rdx, [rbp + 0xc8]
call fcn.180066b0c
or r15d, 0xfc
movups xmm0, xmmword [rbp + 0xc8]
movaps xmmword [rbp + 0x150], xmm0
movups xmm1, xmmword [rbp + 0xd8]
movaps xmmword [rbp + 0x160], xmm1
lea rdi, [r13 + 0x160]
mov rdx, qword [rdi + 8]
lea r8, [rbp + 0xf0]
mov rcx, rdi
cmp rdx, qword [rdi + 0x10]
je 0x180064f4e
call fcn.180063c28
sub qword [rdi + 8], 0xffffffffffffff80
jmp 0x180064f54
call fcn.180062e7c
nop
lea rcx, [rbp + 0xf0]
call fcn.18002cc00
movabs rdi, 0x2aaaaaaaaaaaaaab
lea rcx, [rbp - 0x10]
call fcn.180064448
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x10]
call fcn.1800643c4
test al, al
je 0x180064d55
lea rcx, [rbp + 0x20]
call fcn.180066a4c
nop
mov r8, qword [rbp - 0x70]
test r8, r8
je 0x180064fed
mov rcx, qword [rbp - 0x60]
sub rcx, r8
mov rax, rdi
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x180064fe4
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800650db
mov rcx, r8
call fcn.180133ca4
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x18006502e
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180065029
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800650cf
call fcn.180133ca4
add r14, 0x20
cmp r14, qword [rsp + 0x40]
jne 0x180064c9d
lea rcx, [rbp + 0x80]
call fcn.18002cd50
nop
test rbx, rbx
je 0x1800650a3
mov rdi, rbx
cmp rbx, qword [rsp + 0x40]
je 0x18006506e
xor edx, edx
mov rcx, rdi
call fcn.18002ca60
add rdi, 0x20
cmp rdi, qword [rsp + 0x40]
jne 0x180065059
mov rdx, qword [rsp + 0x48]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18006509b
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800650d5
mov rcx, rbx
call fcn.180133ca4
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.180133630
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18013a40c
nop
call fcn.18013a40c
nop
call fcn.18013a40c
int3