Function at 0x631980
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x190
xor r9d, r9d
mov r15, rcx
lea rcx, [rsp + 0xbf]
mov rbx, r8
mov r13, rdx
and rcx, 0xffffffffffffffc0
lea r14, [r15 + 0x100]
xor r8d, r8d
mov edx, 0x20
mov r12, rcx
cmp rbx, 0x40
ja 0x631bf8
mov rcx, r15
lea r12, [rsp + 0x40]
call fcn.00452370
movabs rax, 0x3636363636363636
movabs rdx, 0x3636363636363636
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
test rbx, rbx
je 0x631ca0
cmp rbx, 0x1f
jbe 0x631c90
vmovdqu ymm2, ymmword [rsp + 0x40]
mov rax, rbx
vpxor ymm0, ymm2, ymmword [r13]
shr rax, 5
vmovdqu ymmword [rsp + 0x40], ymm0
cmp rax, 2
jne 0x631b4c
vmovdqu ymm3, ymmword [rsp + 0x60]
vpxor ymm0, ymm3, ymmword [r13 + 0x20]
vmovdqu ymmword [rsp + 0x60], ymm0
mov r8d, 0x40
mov rdx, r12
mov rcx, r15
vzeroupper
call fcn.00452580
xor r9d, r9d
xor r8d, r8d
mov edx, 0x20
mov rcx, r14
call fcn.00452370
test rbx, rbx
movabs rax, 0x5c5c5c5c5c5c5c5c
movabs rdx, 0x5c5c5c5c5c5c5c5c
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov eax, 1
mov qword [rsp + 0x48], rdx
cmovne rax, rbx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], rdx
vmovdqu ymm1, ymmword [rsp + 0x40]
mov rdx, rax
vpxor ymm0, ymm1, ymmword [r13]
shr rdx, 5
vmovdqu ymmword [rsp + 0x40], ymm0
cmp rdx, 2
jne 0x631b20
vmovdqu ymm0, ymmword [r13 + 0x20]
vpxor ymm0, ymm0, ymmword [rsp + 0x60]
vmovdqu ymmword [rsp + 0x60], ymm0
vzeroupper
mov r8d, 0x40
mov rdx, r12
mov rcx, r14
call fcn.00452580
nop
add rsp, 0x190
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
cmp rax, 0x20
je 0x631d05
mov eax, 0x20
vzeroupper
nop word [rax + rax]
movzx edx, byte [r13 + rax]
xor byte [r12 + rax], dl
inc rax
cmp rax, rbx
jb 0x631b38
jmp 0x631af8
cmp rbx, 0x20
je 0x631a55
mov eax, 0x20
vzeroupper
nop
movzx edx, byte [r12 + rax]
xor dl, byte [r13 + rax]
mov byte [r12 + rax], dl
inc rax
cmp rbx, rax
ja 0x631b60
mov r8d, 0x40
mov rdx, r12
mov rcx, r15
call fcn.00452580
xor r9d, r9d
xor r8d, r8d
mov edx, 0x20
mov rcx, r14
call fcn.00452370
test rbx, rbx
movabs rax, 0x5c5c5c5c5c5c5c5c
movabs rdx, 0x5c5c5c5c5c5c5c5c
mov qword [r12], rax
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x20], rax
mov qword [r12 + 0x30], rax
mov eax, 1
mov qword [r12 + 8], rdx
cmovne rax, rbx
mov qword [r12 + 0x18], rdx
mov qword [r12 + 0x28], rdx
mov qword [r12 + 0x38], rdx
cmp rbx, 0x1f
ja 0x631ac4
xor eax, eax
jmp 0x631b38
call fcn.00452370
mov r8, rbx
mov rdx, r13
mov rcx, r12
call fcn.00452580
lea r13, [rsp + 0x20]
mov rcx, r12
mov ebx, 0x20
mov rdx, r13
lea r12, [rsp + 0x40]
call fcn.00452600
mov edx, 0x20
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call fcn.00452370
movabs rax, 0x3636363636363636
movabs rdx, 0x3636363636363636
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
vmovdqu ymm4, ymmword [rsp + 0x40]
vpxor ymm0, ymm4, ymmword [rsp + 0x20]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
vmovdqu ymmword [rsp + 0x40], ymm0
jmp 0x631a55
xor eax, eax
jmp 0x631b60
mov r8d, 0x40
mov rdx, r12
mov rcx, r15
call fcn.00452580
mov edx, 0x20
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call fcn.00452370
movabs rax, 0x5c5c5c5c5c5c5c5c
movabs rdx, 0x5c5c5c5c5c5c5c5c
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
jmp 0x631af8
vzeroupper
jmp 0x631af8