Function at 0x14005bea0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r12, qword [rcx + 0x18]
mov rax, r12
inc rax
je 0x14005c02a
mov r15, rdx
mov rsi, qword [rcx + 8]
lea r8, [rsi + 1]
mov rdx, r8
shr rdx, 3
mov rdi, r8
and rdi, 0xfffffffffffffff8
sub rdi, rdx
cmp rsi, 8
cmovb rdi, rsi
mov rdx, rdi
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x68], rsi
jbe 0x14005bf25
inc rdi
cmp rax, rdi
cmova rdi, rax
cmp rdi, 8
mov qword [rsp + 0x38], r8
jae 0x14005bf5c
mov rsi, rcx
xor eax, eax
cmp rdi, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x14005bfb9
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rcx
mov r14, qword [rcx]
mov rcx, r8
shr rcx, 4
xor eax, eax
test r8b, 0xf
setne al
add rax, rcx
je 0x14005c2d3
cmp rax, 1
jne 0x14005c25a
xor edx, edx
jmp 0x14005c2b7
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp rdi, rax
jae 0x14005c02a
mov rsi, rcx
shl rdi, 3
mov r14d, 1
cmp rdi, 0xe
jb 0x14005bfb9
movabs rcx, 0x2492492492492493
mov rax, rdi
mul rcx
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 2
dec rdi
bsr rcx, rdi
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
inc r14
mov ecx, 0x68
mov rax, r14
mul rcx
jo 0x14005c02a
mov r13, rax
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [r14 + 0x10]
mov rbx, r13
add rbx, rbp
jb 0x14005c02a
movabs rax, 0x7ffffffffffffff0
cmp rbx, rax
ja 0x14005c02a
test rbx, rbx
je 0x14005c02c
movzx eax, byte [0x140206138]
mov rcx, qword [0x140206128]
test rcx, rcx
jne 0x14005c018
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14005c02a
mov rcx, rax
mov qword [0x140206128], rax
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapAlloc
mov rbx, rax
test rax, rax
jne 0x14005c031
ud2
mov ebx, 0x10
lea rdi, [r14 - 1]
mov rax, r14
shr rax, 3
mov rcx, r14
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r14, 9
cmovb rcx, rdi
mov qword [rsp + 0x28], rcx
add rbx, r13
mov rcx, rbx
mov dl, 0xff
mov r8, rbp
call sub.msvcrt.dll_memset
mov r13, qword [rsi]
test r12, r12
je 0x14005c1f8
mov rax, r12
mov qword [rsp + 0x48], rsi
movdqa xmm0, xmmword [r13]
pmovmskb r12d, xmm0
not r12d
mov rcx, qword [r15]
mov qword [rsp + 0x30], rcx
mov rcx, qword [r15 + 8]
mov qword [rsp + 0x50], rcx
xor ebp, ebp
mov qword [rsp + 0x40], rax
mov rsi, rax
mov r14, r13
jmp 0x14005c137
lea ecx, [r12 - 1]
and ecx, r12d
dec rsi
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rdi
mov byte [rbx + rdx], al
mov byte [r8 + rbx + 0x10], al
not r15
imul rax, r15, 0x68
not rdx
imul rdx, rdx, 0x68
mov r8, qword [r13 + rax + 0x60]
mov qword [rbx + rdx + 0x60], r8
movups xmm0, xmmword [r13 + rax + 0x50]
movups xmmword [rbx + rdx + 0x50], xmm0
movups xmm0, xmmword [r13 + rax + 0x40]
movups xmmword [rbx + rdx + 0x40], xmm0
movdqu xmm0, xmmword [r13 + rax]
movdqu xmm1, xmmword [r13 + rax + 0x10]
movups xmm2, xmmword [r13 + rax + 0x20]
movups xmm3, xmmword [r13 + rax + 0x30]
movups xmmword [rbx + rdx + 0x30], xmm3
movups xmmword [rbx + rdx + 0x20], xmm2
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r12d, ecx
test rsi, rsi
je 0x14005c1ec
test r12w, r12w
jne 0x14005c15f
nop dword [rax]
movdqa xmm0, xmmword [r14 + 0x10]
add r14, 0x10
pmovmskb r12d, xmm0
add rbp, 0x10
cmp r12d, 0xffff
je 0x14005c140
not r12d
tzcnt r15d, r12d
add r15, rbp
mov rax, r15
neg rax
imul rax, rax, 0x68
mov r8, qword [r13 + rax - 0x60]
mov r9, qword [r13 + rax - 0x58]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
call fcn.140092e90
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14005c1c7
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14005c1b0
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x14005c0b0
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14005c0b0
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
jmp 0x14005c1fa
xor eax, eax
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rax
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x14005c964
mov ecx, 0x68
mov rax, qword [rsp + 0x38]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add r8, rax
cmp r8, 0xffffffffffffffef
je 0x14005c964
sub r13, rax
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
jmp 0x14005c964
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r9d, r9d
movdqa xmm0, xmmword [0x1401999c0]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r9]
por xmm1, xmm0
movdqa xmmword [r14 + r9], xmm1
lea rdx, [r9 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r9 + 0x10]
por xmm1, xmm0
movdqa xmmword [r14 + r9 + 0x10], xmm1
mov r9, rdx
add rcx, 0xfffffffffffffffe
jne 0x14005c280
test al, 1
je 0x14005c2d3
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rdx]
por xmm0, xmmword [0x1401999c0]
movdqa xmmword [r14 + rdx], xmm0
cmp r8, 0x10
jae 0x14005c2f2
lea rcx, [r14 + 0x10]
mov rdx, r14
call sub.msvcrt.dll_memmove
cmp rsi, 0xffffffffffffffff
jne 0x14005c2fd
xor ecx, ecx
jmp 0x14005c956
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + r8], xmm0
mov qword [rsp + 0x70], rdi
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x28], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x38], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x60], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x58], rax
mov r13, r14
xor r11d, r11d
jmp 0x14005c388
shr rcx, 0x39
lea rax, [r11 - 0x10]
and rax, rsi
mov byte [r14 + r11], cl
mov byte [rax + r14 + 0x10], cl
lea rax, [r11 + 1]
add r13, 0xffffffffffffff98
cmp r11, rsi
mov r11, rax
je 0x14005c951
cmp byte [r14 + r11], 0x80
jne 0x14005c374
imul rax, r11, 0xffffffffffffff98
lea rcx, [r14 + rax]
add rcx, 0xffffffffffffff98
mov qword [rsp + 0x80], rcx
add rax, r14
mov qword [rsp + 0x78], rax
mov rax, r11
not rax
imul rdi, rax, 0x68
add rdi, r14
mov rax, r11
neg rax
imul rax, rax, 0x68
add rax, r14
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], r11
jmp 0x14005c4ac
mov rcx, qword [rdi]
mov rdx, qword [rax]
mov qword [rdi], rdx
mov qword [rax], rcx
mov rcx, qword [rdi + 8]
mov rdx, qword [rax + 8]
mov qword [rdi + 8], rdx
mov qword [rax + 8], rcx
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rax + 0x10]
mov qword [rdi + 0x10], rdx
mov qword [rax + 0x10], rcx
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rax + 0x18]
mov qword [rdi + 0x18], rdx
mov qword [rax + 0x18], rcx
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rax + 0x20]
mov qword [rdi + 0x20], rdx
mov qword [rax + 0x20], rcx
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rax + 0x28]
mov qword [rdi + 0x28], rdx
mov qword [rax + 0x28], rcx
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rax + 0x30]
mov qword [rdi + 0x30], rdx
mov qword [rax + 0x30], rcx
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rax + 0x38]
mov qword [rdi + 0x38], rdx
mov qword [rax + 0x38], rcx
mov rcx, qword [rdi + 0x40]
mov rdx, qword [rax + 0x40]
mov qword [rdi + 0x40], rdx
mov qword [rax + 0x40], rcx
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rax + 0x48]
mov qword [rdi + 0x48], rdx
mov qword [rax + 0x48], rcx
mov rcx, qword [rdi + 0x50]
mov rdx, qword [rax + 0x50]
mov qword [rdi + 0x50], rdx
mov qword [rax + 0x50], rcx
mov rcx, qword [rdi + 0x58]
mov rdx, qword [rax + 0x58]
mov qword [rdi + 0x58], rdx
mov qword [rax + 0x58], rcx
mov rcx, qword [rdi + 0x60]
mov rdx, qword [rax + 0x60]
mov qword [rdi + 0x60], rdx
mov qword [rax + 0x60], rcx
mov rax, qword [rsp + 0x50]
mov rbx, qword [rax - 0x60]
mov rbp, qword [rax - 0x58]
mov rax, rbp
and rax, 0xfffffffffffffff8
je 0x14005c550
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x38]
mov r10, qword [rsp + 0x58]
xor r15d, r15d
mov r12, qword [rsp + 0x28]
nop dword [rax]
add r12, r8
rol r8, 0xd
mov rcx, qword [rbx + r15]
xor r8, r12
rol r12, 0x20
xor r10, rcx
add r9, r10
rol r10, 0x10
xor r10, r9
add r12, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r12
xor r12, rcx
add r15, 8
cmp r15, rax
jb 0x14005c4e0
mov edx, ebp
and edx, 7
cmp edx, 4
jb 0x14005c571
mov r11d, dword [rbx + r15]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jb 0x14005c582
jmp 0x14005c59b
mov r10, qword [rsp + 0x58]
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x60]
mov r12, qword [rsp + 0x28]
xor r15d, r15d
mov edx, ebp
and edx, 7
cmp edx, 4
jae 0x14005c52d
xor r11d, r11d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jae 0x14005c59b
lea rcx, [rax + r15]
movzx esi, word [rbx + rcx]
lea ecx, [rax*8]
shl rsi, cl
or r11, rsi
or rax, 2
cmp rax, rdx
jae 0x14005c5c0
add r15, rax
movzx esi, byte [rbx + r15]
shl eax, 3
mov ecx, eax
shl rsi, cl
or r11, rsi
jmp 0x14005c5c5
test rdx, rdx
je 0x14005c621
lea ecx, [rdx*8]
mov ebx, 0xff
shl rbx, cl
or rbx, r11
cmp rdx, 7
jne 0x14005c6f8
mov ecx, 8
add r12, r8
rol r8, 0xd
sub rcx, rdx
xor r8, r12
rol r12, 0x20
xor r10, rbx
add r9, r10
rol r10, 0x10
xor r10, r9
add r12, r10
rol r10, 0x15
xor r10, r12
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r12, rbx
jmp 0x14005c623
xor ecx, ecx
mov edx, 1
sub rdx, rcx
mov eax, edx
and eax, 7
and rdx, 0xfffffffffffffff8
cmp rcx, rdx
jae 0x14005c6b0
nop dword [rax]
add r12, r8
rol r8, 0xd
xor r8, r12
rol r12, 0x20
xor r10, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add r12, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r12
xor r12, 0xff
add rcx, 8
cmp rcx, rdx
jb 0x14005c640
xor edx, edx
cmp rax, 4
setae dl
cmp eax, 4
mov r11d, 0
mov ecx, 0xff
cmovae r11, rcx
shl rdx, 2
jmp 0x14005c6b5
xor r11d, r11d
xor edx, edx
mov rsi, rdx
or rsi, 1
lea ecx, [rdx*8]
mov ebx, 0xff
shl rbx, cl
mov rcx, rdx
or rcx, 2
cmp rsi, rax
mov esi, 0
cmovae rbx, rsi
cmovae rcx, rdx
or rbx, r11
cmp rcx, rax
jae 0x14005c6f8
shl ecx, 3
mov eax, 0xff
shl rax, cl
or rbx, rax
mov r11, qword [rsp + 0x30]
shl rbp, 0x38
movabs rax, 0x100000000000000
add rbp, rax
add r12, r8
rol r8, 0xd
or rbp, rbx
xor r8, r12
rol r12, 0x20
xor r10, rbp
add r9, r10
rol r10, 0x10
xor r10, r9
add r12, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r10, r12
xor r8, r9
rol r9, 0x20
xor r12, rbp
add r12, r8
rol r8, 0xd
xor r8, r12
rol r12, 0x20
xor r9, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add r12, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r12
add r12, r8
rol r8, 0xd
xor r8, r12
rol r12, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add r12, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r12
add r12, r8
rol r8, 0xd
add r9, r10
rol r10, 0x10
xor r10, r9
rol r10, 0x15
xor r8, r12
add r9, r8
rol r8, 0x11
mov rcx, r9
rol rcx, 0x20
xor rcx, r8
xor rcx, r10
xor rcx, r9
mov rsi, qword [rsp + 0x68]
mov rax, rsi
and rax, rcx
movdqu xmm0, xmmword [r14 + rax]
pmovmskb edx, xmm0
mov r8, rax
test edx, edx
jne 0x14005c828
mov r9d, 0x10
mov r8, rax
nop word cs:[rax + rax]
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [r14 + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x14005c810
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [r14 + rdx], 0
js 0x14005c846
movdqa xmm0, xmmword [r14]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r11
sub r8, rax
mov r9, rdx
sub r9, rax
xor r9, r8
and r9, rsi
cmp r9, 0x10
jb 0x14005c360
mov rax, rdx
not rax
imul rax, rax, 0x68
add rax, r14
movzx r8d, byte [r14 + rdx]
shr rcx, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [r14 + rdx], cl
mov byte [r9 + r14 + 0x10], cl
cmp r8b, 0xff
je 0x14005c900
imul rcx, rdx, 0xffffffffffffff98
add rcx, r14
cmp qword [rsp + 0x80], rcx
jae 0x14005c3e0
cmp rax, qword [rsp + 0x78]
jae 0x14005c3e0
mov rax, 0xffffffffffffff98
nop word cs:[rax + rax]
movzx edx, byte [r13 + rax]
movzx r8d, byte [rcx + rax]
mov byte [r13 + rax], r8b
mov byte [rcx + rax], dl
movzx edx, byte [r13 + rax + 1]
movzx r8d, byte [rcx + rax + 1]
mov byte [r13 + rax + 1], r8b
mov byte [rcx + rax + 1], dl
add rax, 2
jne 0x14005c8c0
jmp 0x14005c4ac
lea rcx, [r11 - 0x10]
and rcx, rsi
mov byte [r14 + r11], 0xff
mov byte [rcx + r14 + 0x10], 0xff
mov rcx, qword [rdi + 0x60]
mov qword [rax + 0x60], rcx
movups xmm0, xmmword [rdi + 0x50]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rax + 0x40], xmm0
movdqu xmm0, xmmword [rdi]
movdqu xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmm3, xmmword [rdi + 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
jmp 0x14005c374
mov rcx, qword [rsp + 0x70]
sub rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x10], rcx
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret