Function at 0x40cfe0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x180
xor eax, eax
mov rsi, rcx
mov r12d, edx
mov ecx, 0x19
mov rbx, r8
lea rbp, [rsp + 0xb0]
mov rdi, rbp
rep stosq qword [rdi], rax
mov rcx, rbp
cmp edx, 0x87
jle 0x40d3a7
sub r12d, 0x88
mov edx, 0xf0f0f0f1
movdqu xmm0, xmmword [rsi]
movdqu xmm1, xmmword [rsi + 0x10]
mov eax, r12d
movdqu xmm2, xmmword [rsi + 0x20]
movdqu xmm3, xmmword [rsi + 0x30]
add rsi, 0x88
mul edx
movdqu xmm4, xmmword [rsi - 0x48]
movdqu xmm5, xmmword [rsi - 0x38]
shr edx, 7
pxor xmm0, xmmword [rsp + 0xb0]
mov edi, edx
mov r8, qword [rsi - 8]
movaps xmmword [rsp + 0xb0], xmm0
pxor xmm1, xmmword [rsp + 0xc0]
movdqu xmm0, xmmword [rsi - 0x28]
and edi, 1
movaps xmmword [rsp + 0xc0], xmm1
pxor xmm2, xmmword [rsp + 0xd0]
movdqu xmm1, xmmword [rsi - 0x18]
movaps xmmword [rsp + 0xd0], xmm2
pxor xmm3, xmmword [rsp + 0xe0]
pxor xmm4, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0xe0], xmm3
pxor xmm5, xmmword [rsp + 0x100]
movaps xmmword [rsp + 0xf0], xmm4
pxor xmm0, xmmword [rsp + 0x110]
pxor xmm1, xmmword [rsp + 0x120]
xor qword [rsp + 0x130], r8
movaps xmmword [rsp + 0x100], xmm5
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x120], xmm1
call fcn.00408600
cmp r12d, 0x87
jle 0x40d3a7
test edi, edi
je 0x40d1f0
movdqu xmm2, xmmword [rsi]
movdqu xmm3, xmmword [rsi + 0x10]
mov rcx, rbp
sub r12d, 0x88
pxor xmm2, xmmword [rsp + 0xb0]
movdqu xmm4, xmmword [rsi + 0x20]
add rsi, 0x88
movaps xmmword [rsp + 0xb0], xmm2
pxor xmm3, xmmword [rsp + 0xc0]
movdqu xmm5, xmmword [rsi - 0x58]
movaps xmmword [rsp + 0xc0], xmm3
movdqu xmm0, xmmword [rsi - 0x48]
movdqu xmm1, xmmword [rsi - 0x38]
movdqu xmm2, xmmword [rsi - 0x28]
movdqu xmm3, xmmword [rsi - 0x18]
pxor xmm4, xmmword [rsp + 0xd0]
mov r9, qword [rsi - 8]
movaps xmmword [rsp + 0xd0], xmm4
pxor xmm5, xmmword [rsp + 0xe0]
pxor xmm0, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0xe0], xmm5
pxor xmm1, xmmword [rsp + 0x100]
xor qword [rsp + 0x130], r9
pxor xmm2, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0xf0], xmm0
pxor xmm3, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0x100], xmm1
movaps xmmword [rsp + 0x110], xmm2
movaps xmmword [rsp + 0x120], xmm3
call fcn.00408600
cmp r12d, 0x87
jle 0x40d3a7
nop dword [rax]
movdqu xmm4, xmmword [rsi]
movdqu xmm5, xmmword [rsi + 0x10]
mov rcx, rbp
sub r12d, 0x110
pxor xmm4, xmmword [rsp + 0xb0]
movdqu xmm0, xmmword [rsi + 0x20]
add rsi, 0x110
movaps xmmword [rsp + 0xb0], xmm4
pxor xmm5, xmmword [rsp + 0xc0]
movdqu xmm1, xmmword [rsi - 0xe0]
movaps xmmword [rsp + 0xc0], xmm5
movdqu xmm2, xmmword [rsi - 0xd0]
mov r10, qword [rsi - 0x90]
movdqu xmm3, xmmword [rsi - 0xc0]
movdqu xmm4, xmmword [rsi - 0xb0]
movdqu xmm5, xmmword [rsi - 0xa0]
pxor xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0xd0], xmm0
pxor xmm1, xmmword [rsp + 0xe0]
pxor xmm2, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0xe0], xmm1
pxor xmm3, xmmword [rsp + 0x100]
xor qword [rsp + 0x130], r10
pxor xmm4, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0xf0], xmm2
pxor xmm5, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0x100], xmm3
movaps xmmword [rsp + 0x110], xmm4
movaps xmmword [rsp + 0x120], xmm5
call fcn.00408600
movdqu xmm0, xmmword [rsi - 0x88]
movdqu xmm1, xmmword [rsi - 0x78]
mov rcx, rbp
pxor xmm0, xmmword [rsp + 0xb0]
movdqu xmm2, xmmword [rsi - 0x68]
movaps xmmword [rsp + 0xb0], xmm0
pxor xmm1, xmmword [rsp + 0xc0]
movdqu xmm3, xmmword [rsi - 0x58]
movaps xmmword [rsp + 0xc0], xmm1
movdqu xmm4, xmmword [rsi - 0x48]
movdqu xmm5, xmmword [rsi - 0x38]
movdqu xmm0, xmmword [rsi - 0x28]
movdqu xmm1, xmmword [rsi - 0x18]
pxor xmm2, xmmword [rsp + 0xd0]
mov r11, qword [rsi - 8]
movaps xmmword [rsp + 0xd0], xmm2
pxor xmm3, xmmword [rsp + 0xe0]
pxor xmm4, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0xe0], xmm3
pxor xmm5, xmmword [rsp + 0x100]
xor qword [rsp + 0x130], r11
pxor xmm0, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0xf0], xmm4
pxor xmm1, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0x100], xmm5
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x120], xmm1
call fcn.00408600
cmp r12d, 0x87
jg 0x40d1f0
lea r8, [rsp + 0x20]
movsxd rax, r12d
mov rdi, r8
cmp rax, 8
jb 0x40d3c2
mov rcx, rax
shr rcx, 3
rep movsq qword [rdi], qword [rsi]
xor r9d, r9d
test al, 4
je 0x40d3d3
mov edx, dword [rsi]
mov r9d, 4
mov dword [rdi], edx
test al, 2
je 0x40d3e5
movzx r10d, word [rsi + r9]
mov word [rdi + r9], r10w
add r9, 2
test al, 1
je 0x40d3f2
movzx esi, byte [rsi + r9]
mov byte [rdi + r9], sil
lea r12d, [r12 + 1]
mov byte [rsp + rax + 0x20], 1
mov eax, 0x88
sub eax, r12d
cdqe
movsxd rcx, r12d
add rcx, r8
cmp rax, 8
jae 0x40d5d0
test al, 4
jne 0x40d5fc
test rax, rax
je 0x40d42e
mov byte [rcx], 0
test al, 2
jne 0x40d60f
movdqa xmm2, xmmword [rsp + 0xb0]
pxor xmm2, xmmword [rsp + 0x20]
mov rcx, rbp
movaps xmmword [rsp + 0xb0], xmm2
movdqa xmm3, xmmword [rsp + 0xc0]
pxor xmm3, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0xc0], xmm3
movdqa xmm4, xmmword [rsp + 0xd0]
pxor xmm4, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xd0], xmm4
movdqa xmm5, xmmword [rsp + 0xe0]
pxor xmm5, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0xe0], xmm5
movdqa xmm0, xmmword [rsp + 0xf0]
pxor xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xf0], xmm0
movdqa xmm1, xmmword [rsp + 0x100]
pxor xmm1, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x100], xmm1
movdqa xmm2, xmmword [rsp + 0x110]
or byte [rsp + 0xa7], 0x80
pxor xmm2, xmmword [rsp + 0x80]
mov r8, qword [rsp + 0xa0]
movaps xmmword [rsp + 0x110], xmm2
movdqa xmm3, xmmword [rsp + 0x120]
xor qword [rsp + 0x130], r8
pxor xmm3, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x120], xmm3
call fcn.00408600
mov rbp, qword [rsp + 0x170]
movdqa xmm4, xmmword [rsp + 0xb0]
movups xmmword [rbx], xmm4
movdqa xmm5, xmmword [rsp + 0xc0]
mov qword [rbx + 0xc0], rbp
movdqa xmm0, xmmword [rsp + 0xd0]
movdqa xmm1, xmmword [rsp + 0xe0]
movups xmmword [rbx + 0x10], xmm5
movdqa xmm2, xmmword [rsp + 0xf0]
movups xmmword [rbx + 0x20], xmm0
movdqa xmm3, xmmword [rsp + 0x100]
movdqa xmm4, xmmword [rsp + 0x110]
movups xmmword [rbx + 0x30], xmm1
movdqa xmm5, xmmword [rsp + 0x120]
movdqa xmm0, xmmword [rsp + 0x130]
movups xmmword [rbx + 0x40], xmm2
movdqa xmm1, xmmword [rsp + 0x140]
movdqa xmm2, xmmword [rsp + 0x150]
movups xmmword [rbx + 0x50], xmm3
movdqa xmm3, xmmword [rsp + 0x160]
movups xmmword [rbx + 0x60], xmm4
movups xmmword [rbx + 0x70], xmm5
movups xmmword [rbx + 0x80], xmm0
movups xmmword [rbx + 0x90], xmm1
movups xmmword [rbx + 0xa0], xmm2
movups xmmword [rbx + 0xb0], xmm3
add rsp, 0x180
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdi, [rcx + 8]
mov qword [rcx], 0
and rdi, 0xfffffffffffffff8
mov qword [rcx + rax - 8], 0
sub rcx, rdi
add rcx, rax
xor eax, eax
shr rcx, 3
rep stosq qword [rdi], rax
jmp 0x40d42e
mov dword [rcx], 0
mov dword [rcx + rax - 4], 0
jmp 0x40d42e
xor r11d, r11d
mov word [rcx + rax - 2], r11w
jmp 0x40d42e