Function at 0x14005a800
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r10, qword [rcx + 0x18]
mov rax, r10
inc rax
je 0x14005b083
mov r15, rdx
mov r9, rcx
mov rdi, qword [rcx + 8]
lea r14, [rdi + 1]
mov rdx, r14
shr rdx, 3
mov rcx, r14
and rcx, 0xfffffffffffffff8
sub rcx, rdx
cmp rdi, 8
cmovb rcx, rdi
movabs r8, 0x7ffffffffffffff0
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x30], r9
jbe 0x14005a889
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
mov qword [rsp + 0x38], r10
jae 0x14005a8b6
xor eax, eax
cmp rcx, 4
setae al
lea r12, [rax*4 + 4]
jmp 0x14005a904
mov rbx, qword [r9]
mov rcx, r14
shr rcx, 4
xor eax, eax
test r14b, 0xf
setne al
add rax, rcx
je 0x14005ac11
cmp rax, 1
jne 0x14005aba1
xor edx, edx
jmp 0x14005abf7
movabs rax, 0x1ffffffffffffffe
or rax, 1
cmp rcx, rax
ja 0x14005b083
shl rcx, 3
movabs rdx, 0x2492492492492493
mov rax, rcx
mul rdx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 2
dec rcx
bsr rcx, rcx
not ecx
mov r12, 0xffffffffffffffff
shr r12, cl
inc r12
mov ecx, 0x18
mov rax, r12
mul rcx
jo 0x14005b083
mov rsi, rax
add rsi, 0xf
and rsi, 0xfffffffffffffff0
lea r13, [r12 + 0x10]
mov rbp, rsi
add rbp, r13
jb 0x14005b083
cmp rbp, r8
ja 0x14005b083
test rbp, rbp
je 0x14005a960
movzx eax, byte [0x140297030]
xor ecx, ecx
mov rdx, rbp
call fcn.1400f4570
mov rbx, rax
test rax, rax
jne 0x14005a965
mov rcx, rbp
call fcn.14003edc0
mov ebx, 0x10
add rbx, rsi
lea rsi, [r12 - 1]
mov rax, r12
shr rax, 3
mov rbp, r12
and rbp, 0xfffffffffffffff8
sub rbp, rax
cmp r12, 9
cmovb rbp, rsi
mov rcx, rbx
mov dl, 0xff
mov r8, r13
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005ab32
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x30]
mov r12, qword [rax]
movdqa xmm0, xmmword [r12]
mov rax, rcx
pmovmskb ebp, xmm0
not ebp
lea rcx, [rbx - 0x18]
mov qword [rsp + 0x60], rcx
mov rcx, qword [r15]
mov qword [rsp + 0x58], rcx
mov rcx, qword [r15 + 8]
mov qword [rsp + 0x50], rcx
lea rcx, [r12 - 0x18]
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov qword [rsp + 0x28], r12
mov r15, rax
jmp 0x14005aa5e
lea ecx, [rbp - 1]
and ecx, ebp
dec r15
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rsi
mov byte [rbx + rdx], al
mov byte [rbx + r8 + 0x10], al
shl r13, 3
lea rax, [r13*2]
add rax, r13
mov r8, qword [rsp + 0x48]
sub r8, rax
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, qword [rsp + 0x60]
sub rdx, rax
mov rax, qword [r8 + 0x10]
mov qword [rdx + 0x10], rax
movdqu xmm0, xmmword [r8]
movdqu xmmword [rdx], xmm0
mov ebp, ecx
test r15, r15
je 0x14005ab1c
test bp, bp
jne 0x14005aa8d
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb ebp, xmm0
add r14, 0x10
cmp ebp, 0xffff
je 0x14005aa70
not ebp
tzcnt r13d, ebp
add r13, r14
mov rax, r13
neg rax
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x28]
mov r8, qword [rcx + rax*8 - 0x18]
mov r9, qword [rcx + rax*8 - 0x10]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
call fcn.14005a660
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14005aaf7
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14005aae0
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x14005aa00
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14005aa00
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
jmp 0x14005ab41
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
sub rbp, rcx
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rcx
test rdi, rdi
movabs rsi, 0x7ffffffffffffff0
je 0x14005b06b
mov ecx, 0x18
mov rax, r14
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rdi, rax
cmp rdi, 0xffffffffffffffef
je 0x14005b06b
mov r8, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [0x1402970b8]
xor edx, edx
call fcn.1400f8e9c
jmp 0x14005b06b
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x1400fdba0]
nop dword [rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8]
por xmm1, xmm0
movdqa xmmword [rbx + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x14005abc0
test al, 1
je 0x14005ac11
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x1400fdba0]
movdqa xmmword [rbx + rdx], xmm0
cmp r14, 0x10
jae 0x14005ac37
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call sub.msvcrt.dll_memmove
test r14, r14
jne 0x14005ac41
xor eax, eax
mov r8, qword [rsp + 0x30]
jmp 0x14005b059
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
mov rax, qword [r15]
mov rbp, qword [r15 + 8]
movabs r13, 0x736f6d6570736575
xor r13, rax
movabs rcx, 0x646f72616e646f6d
xor rcx, rbp
add r13, rcx
rol rcx, 0xd
xor rcx, r13
rol r13, 0x20
movabs rdx, 0x6c7967656e657261
mov qword [rsp + 0x58], rcx
rol rcx, 0x11
mov qword [rsp + 0x48], rcx
xor rdx, rax
mov qword [rsp + 0x50], rdx
xor r10d, r10d
mov qword [rsp + 0x70], rdi
jmp 0x14005acc3
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rdi
mov byte [rbx + r10], al
mov byte [rbx + rcx + 0x10], al
lea rax, [r10 + 1]
cmp r10, rdi
mov r10, rax
je 0x14005b036
cmp byte [rbx + r10], 0x80
jne 0x14005acb3
lea rax, [r10*8]
lea rax, [rax + rax*2]
mov rcx, rbx
sub rcx, rax
mov qword [rsp + 0x38], rcx
neg rax
add rax, rbx
add rax, 0xffffffffffffffe8
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], r10
mov rax, r10
neg rax
lea rax, [rax + rax*2]
lea rax, [rbx + rax*8]
mov qword [rsp + 0x60], rax
nop dword [rax + rax]
mov rax, qword [rsp + 0x60]
mov r10, qword [rax - 0x18]
mov rsi, qword [rax - 0x10]
add r10, 0x10
mov rdx, rbp
xor rdx, rsi
movabs rax, 0x7465646279746573
xor rdx, rax
mov rax, qword [rsp + 0x50]
lea r14, [rax + rdx]
rol rdx, 0x10
xor rdx, r14
add r14, qword [rsp + 0x58]
mov r15, r14
rol r15, 0x20
lea r12, [rdx + r13]
xor r14, qword [rsp + 0x48]
rol rdx, 0x15
xor rdx, r12
xor r12, rsi
mov rax, rsi
xor r9d, r9d
and rax, 0xfffffffffffffff8
je 0x14005adb3
nop
add r12, r14
rol r14, 0xd
mov rcx, qword [r10 + r9]
xor r14, r12
rol r12, 0x20
xor rdx, rcx
add r15, rdx
rol rdx, 0x10
xor rdx, r15
add r12, rdx
rol rdx, 0x15
add r15, r14
rol r14, 0x11
xor r14, r15
rol r15, 0x20
xor rdx, r12
xor r12, rcx
add r9, 8
cmp r9, rax
jb 0x14005ad70
mov r8d, esi
and r8d, 7
cmp r8d, 4
jb 0x14005ade0
mov r11d, dword [r10 + r9]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r8
jb 0x14005adf1
jmp 0x14005ae1c
xor r11d, r11d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r8
jae 0x14005ae1c
lea rcx, [r10 + rax]
mov rdi, r13
mov r13, rbp
movzx ebp, word [r9 + rcx]
lea ecx, [rax*8]
shl rbp, cl
or r11, rbp
mov rbp, r13
mov r13, rdi
mov rdi, qword [rsp + 0x70]
or rax, 2
cmp rax, r8
jae 0x14005ae34
add r9, rax
movzx r8d, byte [r10 + r9]
shl eax, 3
mov ecx, eax
shl r8, cl
or r11, r8
mov r10, qword [rsp + 0x28]
shl rsi, 0x38
movabs rax, 0x800000000000000
add rsi, rax
add r12, r14
rol r14, 0xd
or rsi, r11
xor r14, r12
rol r12, 0x20
xor rdx, rsi
add r15, rdx
rol rdx, 0x10
xor rdx, r15
add r12, rdx
rol rdx, 0x15
add r15, r14
rol r14, 0x11
xor rdx, r12
xor r14, r15
rol r15, 0x20
xor r12, rsi
add r12, r14
rol r14, 0xd
xor r14, r12
rol r12, 0x20
xor r15, 0xff
add r15, rdx
rol rdx, 0x10
xor rdx, r15
add r12, rdx
rol rdx, 0x15
add r15, r14
rol r14, 0x11
xor r14, r15
rol r15, 0x20
xor rdx, r12
add r12, r14
rol r14, 0xd
xor r14, r12
rol r12, 0x20
add r15, rdx
rol rdx, 0x10
xor rdx, r15
add r12, rdx
rol rdx, 0x15
add r15, r14
rol r14, 0x11
xor r14, r15
rol r15, 0x20
xor rdx, r12
add r12, r14
rol r14, 0xd
add r15, rdx
rol rdx, 0x10
xor rdx, r15
rol rdx, 0x15
xor r14, r12
add r15, r14
rol r14, 0x11
mov rax, r15
rol rax, 0x20
xor rax, r14
xor rax, rdx
xor rax, r15
mov rcx, rdi
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x14005af58
mov r9d, 0x10
mov r8, rcx
nop dword [rax + rax]
add r8, r9
and r8, rdi
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x14005af40
tzcnt edx, edx
add rdx, r8
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x14005af74
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r10
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rdi
cmp r9, 0x10
jb 0x14005aca0
lea rcx, [rdx*8]
lea rcx, [rcx + rcx*2]
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rdi
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
cmp r8b, 0xff
je 0x14005b000
mov rax, rbx
sub rax, rcx
mov r8, qword [rsp + 0x38]
mov rcx, qword [r8 - 0x18]
mov rdx, qword [rax - 0x18]
mov qword [r8 - 0x18], rdx
mov qword [rax - 0x18], rcx
mov rcx, qword [r8 - 0x10]
mov rdx, qword [rax - 0x10]
mov qword [r8 - 0x10], rdx
mov qword [rax - 0x10], rcx
mov rcx, qword [r8 - 8]
mov rdx, qword [rax - 8]
mov qword [r8 - 8], rdx
mov qword [rax - 8], rcx
jmp 0x14005ad10
neg rcx
lea rax, [rbx + rcx]
add rax, 0xffffffffffffffe8
lea rcx, [r10 - 0x10]
and rcx, rdi
mov byte [rbx + r10], 0xff
mov byte [rbx + rcx + 0x10], 0xff
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdx + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rax], xmm0
jmp 0x14005acb3
mov r8, qword [rsp + 0x30]
mov rcx, qword [r8 + 8]
lea rax, [rcx + 1]
mov rdx, rax
shr rdx, 3
and rax, 0xfffffffffffffff8
sub rax, rdx
cmp rcx, 8
cmovb rax, rcx
sub rax, qword [r8 + 0x18]
mov qword [r8 + 0x10], rax
movabs rsi, 0x7ffffffffffffff0
add rsi, 0x11
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14003ed80
int3