Function at 0x140008524
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov r8d, dword [rdx]
xor r15d, r15d
mov rdi, rdx
mov rbx, rcx
test r8d, r8d
je 0x140008775
cmp r8d, 1
jne 0x1400089f9
mov eax, dword [0x14009a980]
mov rsi, qword [rcx]
mov ecx, 0xaf
mov dword [rsp + 0x40], 0x2f0082
mov dword [rsp + 0x44], 0xe00056
test r8b, al
jne 0x1400085b8
or eax, r8d
mov word [0x14009a990], cx
mov dword [0x14009a980], eax
lea rcx, [0x14007dba8]
mov rax, qword [rsp + 0x40]
mov qword [0x14009a988], rax
mov byte [0x14009a992], r8b
call fcn.140054418
cmp byte [0x14009a992], r15b
lea r10, [0x14009a988]
je 0x140008600
mov r8, r15
mov r9d, 0xff
mov cl, r8b
movabs rdx, 0x7d0149afab056bdd
and cl, 7
shl cl, 3
shr rdx, cl
and dx, r9w
xor word [r10 + r8*2], dx
inc r8
cmp r8, 5
jb 0x1400085d1
mov byte [0x14009a992], r15b
mov r9, qword [rbx + 8]
or rbx, 0xffffffffffffffff
mov rcx, qword [r9 + 0x10]
inc rbx
cmp word [r10 + rbx*2], r15w
jne 0x14000860c
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, rbx
jb 0x140008a2d
cmp qword [r9 + 0x18], 7
jbe 0x140008636
mov r9, qword [r9]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
call fcn.140007ea8
lea rdx, [rdi + 8]
xorps xmm0, xmm0
cmp qword [rdx + 0x18], 7
xorps xmm1, xmm1
mov r8, qword [rdx + 0x10]
movups xmmword [rsp + 0x70], xmm0
movdqu xmmword [rbp - 0x80], xmm1
jbe 0x140008671
mov rdx, qword [rdx]
lea rcx, [rsp + 0x70]
call fcn.140007c88
cmp qword [0x14009a4a0], 7
lea rdx, [0x14009a488]
mov r8, qword [0x14009a498]
lea rcx, [rbp - 0x70]
cmova rdx, qword [0x14009a488]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x70], xmm0
movdqu xmmword [rbp - 0x60], xmm1
call fcn.140007c88
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.140006df0
lea rdx, [rdi + 0x48]
mov rbx, rax
lea rcx, [rbp + 0x10]
call fcn.140006eb0
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.140029948
mov rdx, qword [rbp - 0x58]
mov ebx, 0x1000
cmp rdx, 7
jbe 0x14000871e
mov rcx, qword [rbp - 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, rbx
jb 0x140008719
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008a27
call fcn.140054430
mov rdx, qword [rbp - 0x78]
movdqa xmm0, xmmword [0x14008cff0]
mov word [rbp - 0x70], r15w
movdqu xmmword [rbp - 0x60], xmm0
cmp rdx, 7
jbe 0x1400089dc
mov rcx, qword [rsp + 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, rbx
jb 0x1400089d7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008a27
jmp 0x1400089d7
mov eax, dword [0x14009a998]
mov rsi, qword [rcx]
mov ecx, 0xd5
mov r14d, dword [rdx + 0x38]
mov dword [rsp + 0x40], 0x800b6
mov dword [rsp + 0x44], 0xf600fa
mov dword [rsp + 0x48], 0x9e00d5
test al, 1
jne 0x1400087dc
or eax, 1
mov word [0x14009a97c], cx
mov dword [0x14009a998], eax
lea rcx, [0x14007db88]
mov rax, qword [rsp + 0x40]
mov qword [0x14009a970], rax
mov eax, dword [rsp + 0x48]
mov dword [0x14009a978], eax
mov byte [0x14009a97e], 1
call fcn.140054418
cmp byte [0x14009a97e], r15b
lea r10, [0x14009a970]
je 0x140008824
mov r8, r15
mov r9d, 0xff
mov cl, r8b
movabs rdx, 0x55d5cd91afbf43e9
and cl, 7
shl cl, 3
shr rdx, cl
and dx, r9w
xor word [r10 + r8*2], dx
inc r8
cmp r8, 7
jb 0x1400087f5
mov byte [0x14009a97e], r15b
mov r9, qword [rbx + 8]
or rbx, 0xffffffffffffffff
mov rcx, rbx
mov rdx, qword [r9 + 0x10]
inc rcx
cmp word [r10 + rcx*2], r15w
jne 0x140008833
movabs rax, 0x7ffffffffffffffe
sub rax, rdx
cmp rax, rcx
jb 0x140008a33
cmp qword [r9 + 0x18], 7
jbe 0x14000885d
mov r9, qword [r9]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], rdx
call fcn.140007ea8
mov eax, dword [0x14009a994]
mov r12d, 0xe9
test al, 1
jne 0x1400088aa
or eax, 1
mov byte [0x14009a986], 1
lea rcx, [0x14007db7c]
mov dword [0x14009a994], eax
mov word [0x14009a984], r12w
call fcn.140054418
cmp byte [0x14009a986], r15b
je 0x1400088c2
xor word [0x14009a984], r12w
mov byte [0x14009a986], r15b
xorps xmm0, xmm0
lea rdx, [0x14009a984]
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm0
movdqu xmmword [rbp - 0x80], xmm1
inc rbx
cmp word [rdx + rbx*2], r15w
jne 0x1400088d9
mov r8, rbx
lea rcx, [rsp + 0x70]
call fcn.140007b80
cmp qword [0x14009a4a0], 7
lea rdx, [0x14009a488]
mov r8, qword [0x14009a498]
lea rcx, [rbp - 0x70]
cmova rdx, qword [0x14009a488]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x70], xmm0
movdqu xmmword [rbp - 0x60], xmm1
call fcn.140007c88
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.140006df0
lea rdx, [rdi + 0x28]
cmp qword [rdx + 0x18], 0xf
jbe 0x140008942
mov rdx, qword [rdx]
mov r9d, r14d
mov r8, rax
mov rcx, rsi
call fcn.140028c14
mov rdx, qword [rbp - 0x58]
mov ebx, 0x1000
cmp rdx, 7
jbe 0x140008991
mov rcx, qword [rbp - 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, rbx
jb 0x14000898c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008a21
call fcn.140054430
mov rdx, qword [rbp - 0x78]
movdqa xmm0, xmmword [0x14008cff0]
mov word [rbp - 0x70], r15w
movdqu xmmword [rbp - 0x60], xmm0
cmp rdx, 7
jbe 0x1400089dc
mov rcx, qword [rsp + 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, rbx
jb 0x1400089d7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008a21
call fcn.140054430
movdqa xmm0, xmmword [0x14008cff0]
lea rcx, [rsp + 0x50]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r15w
call fcn.140007a6c
mov rcx, rdi
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
jmp fcn.140006d70
call fcn.14005af0c
int3
call fcn.14005af0c
int3
call fcn.140005e1c
int3
call fcn.140005e1c
int3