Function at 0x140179f90
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 r9, qword [rcx + 0x18]
mov rax, r9
inc rax
je 0x14017a0ef
mov r14, rdx
mov r8, qword [rcx + 8]
lea rbx, [r8 + 1]
mov rdx, rbx
shr rdx, 3
mov rdi, rbx
and rdi, 0xfffffffffffffff8
sub rdi, rdx
cmp r8, 8
mov rdx, rdi
mov qword [rsp + 0x50], r8
cmovb rdx, r8
movabs rsi, 0x7ffffffffffffff0
mov r8, rdx
shr r8, 1
cmp rax, r8
mov qword [rsp + 0x48], r9
jbe 0x14017a023
lea r8, [rdx + 1]
cmp rax, rdx
cmova r8, rax
cmp r8, 8
jae 0x14017a054
mov r15, rcx
xor eax, eax
cmp r8, 4
setae al
lea r12, [rax*4 + 4]
jmp 0x14017a0a5
mov qword [rsp + 0x40], rcx
mov r12, qword [rcx]
mov rcx, rbx
shr rcx, 4
xor eax, eax
test bl, 0xf
setne al
add rax, rcx
je 0x14017a383
cmp rax, 1
jne 0x14017a313
xor edx, edx
jmp 0x14017a367
movabs rax, 0x1ffffffffffffffe
or rax, 1
cmp r8, rax
ja 0x14017a0ef
mov r15, rcx
shl r8, 3
movabs rdx, 0x2492492492492493
mov rax, r8
mul rdx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 2
dec r8
bsr rcx, r8
not ecx
mov r12, 0xffffffffffffffff
shr r12, cl
inc r12
mov ecx, 0x88
mov rax, r12
mul rcx
jo 0x14017a0ef
mov r13, rax
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [r12 + 0x10]
mov rdx, r13
add rdx, rbp
jb 0x14017a0ef
cmp rdx, rsi
ja 0x14017a0ef
mov qword [rsp + 0x30], rbx
test rdx, rdx
je 0x14017a0f1
movzx eax, byte [0x141ada129]
xor ecx, ecx
call fcn.14014fee0
mov rbx, rax
test rax, rax
jne 0x14017a0f6
ud2
mov ebx, 0x10
lea rdi, [r12 - 1]
mov rax, r12
shr rax, 3
mov rcx, r12
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r12, 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 rsi, r15
mov r13, qword [r15]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14017a2ab
mov qword [rsp + 0x40], rsi
movdqa xmm0, xmmword [r13]
pmovmskb r15d, xmm0
not r15d
mov rcx, qword [r14]
mov qword [rsp + 0x58], rcx
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov rsi, rax
mov r12, r13
mov qword [rsp + 0x20], r13
jmp 0x14017a1cb
lea r14d, [r15 - 1]
and r14d, r15d
dec rsi
shr rax, 0x39
lea rcx, [r8 - 0x10]
and rcx, rdi
mov byte [rbx + r8], al
mov byte [rbx + rcx + 0x10], al
not r13
mov rax, r13
shl rax, 7
lea rdx, [rax + r13*8]
mov r13, qword [rsp + 0x20]
add rdx, r13
not r8
mov rax, r8
shl rax, 7
lea rcx, [rax + r8*8]
add rcx, rbx
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
mov r15d, r14d
test rsi, rsi
je 0x14017a29f
test r15w, r15w
jne 0x14017a200
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb r15d, xmm0
add rbp, 0x10
cmp r15d, 0xffff
je 0x14017a1e0
not r15d
tzcnt r13d, r15d
add r13, rbp
mov rax, r13
neg rax
lea rcx, [r13*8]
shl rax, 7
sub rax, rcx
mov rcx, qword [rsp + 0x20]
mov r8, qword [rcx + rax - 0x80]
mov r9, qword [rcx + rax - 0x78]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
call fcn.140179690
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14017a277
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 0x14017a260
tzcnt r8d, edx
add r8, rcx
and r8, rdi
cmp byte [rbx + r8], 0
js 0x14017a170
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt r8d, ecx
jmp 0x14017a170
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
jmp 0x14017a2ad
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 r8, qword [rsp + 0x50]
test r8, r8
movabs rsi, 0x7ffffffffffffff0
je 0x14017a917
mov ecx, 0x88
mov rax, qword [rsp + 0x30]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add r8, rax
cmp r8, 0xffffffffffffffef
je 0x14017a917
sub r13, rax
mov rcx, qword [0x141ada118]
xor edx, edx
mov r8, r13
call fcn.1401cdfe4
jmp 0x14017a917
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x14021faa0]
nop dword [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r12 + r8]
por xmm1, xmm0
movdqa xmmword [r12 + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r12 + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [r12 + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x14017a330
test al, 1
je 0x14017a383
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r12 + rdx]
por xmm0, xmmword [0x14021faa0]
movdqa xmmword [r12 + rdx], xmm0
cmp rbx, 0x10
jae 0x14017a3a5
lea rcx, [r12 + 0x10]
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memmove
test rbx, rbx
jne 0x14017a3b1
xor ecx, ecx
jmp 0x14017a909
movdqu xmm0, xmmword [r12]
movdqu xmmword [r12 + rbx], xmm0
mov qword [rsp + 0x68], rdi
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x38], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x28], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x30], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x60], rax
lea rax, [r12 - 0x88]
mov qword [rsp + 0x70], rax
xor r14d, r14d
mov rbx, r12
mov rsi, qword [rsp + 0x50]
jmp 0x14017a44b
shr rax, 0x39
lea rcx, [r14 - 0x10]
and rcx, rsi
mov byte [r12 + r14], al
mov byte [r12 + rcx + 0x10], al
lea rax, [r14 + 1]
add rbx, 0xffffffffffffff78
cmp r14, rsi
mov r14, rax
je 0x14017a8f2
cmp byte [r12 + r14], 0x80
jne 0x14017a434
imul rcx, r14, 0xffffffffffffff78
mov rax, qword [rsp + 0x70]
add rax, rcx
mov qword [rsp + 0x80], rax
add rcx, r12
mov qword [rsp + 0x78], rcx
mov rax, r14
not rax
mov rcx, rax
shl rcx, 7
lea rdx, [rcx + rax*8]
add rdx, r12
mov rcx, r14
neg rcx
lea rax, [r14*8]
shl rcx, 7
sub rcx, rax
add rcx, r12
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x20], r14
jmp 0x14017a54c
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rcx]
movups xmm3, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm2
movups xmmword [rdx + 0x10], xmm3
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm2
movups xmmword [rdx + 0x30], xmm3
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmm1, xmmword [rdx + 0x50]
movups xmm2, xmmword [rcx + 0x40]
movups xmm3, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm2
movups xmmword [rdx + 0x50], xmm3
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm1
movdqu xmm0, xmmword [rdx + 0x60]
movdqu xmm1, xmmword [rdx + 0x70]
movups xmm2, xmmword [rcx + 0x60]
movups xmm3, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x60], xmm2
movups xmmword [rdx + 0x70], xmm3
movdqu xmmword [rcx + 0x60], xmm0
movdqu xmmword [rcx + 0x70], xmm1
mov rax, qword [rdx + 0x80]
mov r8, qword [rcx + 0x80]
mov qword [rdx + 0x80], r8
mov qword [rcx + 0x80], rax
mov rax, qword [rsp + 0x58]
mov r8, qword [rax - 0x80]
mov rdi, qword [rax - 0x78]
mov rax, rdi
and rax, 0xfffffffffffffff8
je 0x14017a5f0
mov r11, qword [rsp + 0x30]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x60]
xor r9d, r9d
mov r13, qword [rsp + 0x38]
nop dword [rax]
add r13, r15
rol r15, 0xd
mov rcx, qword [r8 + r9]
xor r15, r13
rol r13, 0x20
xor rbp, rcx
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r13, rbp
rol rbp, 0x15
add r11, r15
rol r15, 0x11
xor r15, r11
rol r11, 0x20
xor rbp, r13
xor r13, rcx
add r9, 8
cmp r9, rax
jb 0x14017a580
mov r14d, edi
and r14d, 7
cmp r14d, 4
jb 0x14017a614
mov r10d, dword [r8 + r9]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r14
jb 0x14017a625
jmp 0x14017a644
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x28]
mov r11, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
xor r9d, r9d
mov r14d, edi
and r14d, 7
cmp r14d, 4
jae 0x14017a5d0
xor r10d, r10d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r14
jae 0x14017a644
lea rcx, [r8 + rax]
movzx esi, word [r9 + rcx]
lea ecx, [rax*8]
shl rsi, cl
or r10, rsi
mov rsi, qword [rsp + 0x50]
or rax, 2
cmp rax, r14
jae 0x14017a660
add r9, rax
movzx r8d, byte [r8 + r9]
shl eax, 3
mov ecx, eax
shl r8, cl
or r10, r8
jmp 0x14017a665
test r14, r14
je 0x14017a6b8
lea ecx, [r14*8]
mov eax, 0xff
shl rax, cl
or rax, r10
cmp r14, 7
jne 0x14017a6c0
add r13, r15
rol r15, 0xd
xor rbp, rax
xor r15, r13
rol r13, 0x20
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r13, rbp
rol rbp, 0x15
xor rbp, r13
add r11, r15
rol r15, 0x11
xor r15, r11
rol r11, 0x20
xor r13, rax
xor eax, eax
jmp 0x14017a6c0
mov eax, 0xff
nop dword [rax]
mov r14, qword [rsp + 0x20]
shl rdi, 0x38
movabs rcx, 0x100000000000000
add rdi, rcx
add r13, r15
rol r15, 0xd
or rdi, rax
xor r15, r13
rol r13, 0x20
xor rbp, rdi
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r13, rbp
rol rbp, 0x15
add r11, r15
rol r15, 0x11
xor rbp, r13
xor r15, r11
rol r11, 0x20
xor r13, rdi
add r13, r15
rol r15, 0xd
xor r15, r13
rol r13, 0x20
xor r11, 0xff
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r13, rbp
rol rbp, 0x15
add r11, r15
rol r15, 0x11
xor r15, r11
rol r11, 0x20
xor rbp, r13
add r13, r15
rol r15, 0xd
xor r15, r13
rol r13, 0x20
add r11, rbp
rol rbp, 0x10
xor rbp, r11
add r13, rbp
rol rbp, 0x15
add r11, r15
rol r15, 0x11
xor r15, r11
rol r11, 0x20
xor rbp, r13
add r13, r15
rol r15, 0xd
add r11, rbp
rol rbp, 0x10
xor rbp, r11
rol rbp, 0x15
xor r15, r13
add r11, r15
rol r15, 0x11
mov rax, r11
rol rax, 0x20
xor rax, r15
xor rax, rbp
xor rax, r11
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [r12 + rcx]
pmovmskb r8d, xmm0
mov r9, rcx
test r8d, r8d
jne 0x14017a7ea
mov r10d, 0x10
mov r9, rcx
nop word [rax + rax]
add r9, r10
and r9, rsi
movdqu xmm0, xmmword [r12 + r9]
pmovmskb r8d, xmm0
add r10, 0x10
test r8d, r8d
je 0x14017a7d0
tzcnt r8d, r8d
add r8, r9
and r8, rsi
cmp byte [r12 + r8], 0
js 0x14017a80c
movdqa xmm0, xmmword [r12]
pmovmskb r8d, xmm0
tzcnt r8d, r8d
mov r9, r14
sub r9, rcx
mov r10, r8
sub r10, rcx
xor r10, r9
and r10, rsi
cmp r10, 0x10
jb 0x14017a420
mov rcx, r8
not rcx
mov r9, rcx
shl r9, 7
lea rcx, [r9 + rcx*8]
add rcx, r12
movzx r9d, byte [r12 + r8]
shr rax, 0x39
lea r10, [r8 - 0x10]
and r10, rsi
mov byte [r12 + r8], al
mov byte [r12 + r10 + 0x10], al
cmp r9b, 0xff
je 0x14017a8d0
imul rax, r8, 0xffffffffffffff78
add rax, r12
cmp qword [rsp + 0x80], rax
jae 0x14017a4b0
cmp rcx, qword [rsp + 0x78]
jae 0x14017a4b0
mov rcx, 0xffffffffffffff78
nop word cs:[rax + rax]
movzx r8d, byte [rbx + rcx]
movzx r9d, byte [rax + rcx]
mov byte [rbx + rcx], r9b
mov byte [rax + rcx], r8b
movzx r8d, byte [rbx + rcx + 1]
movzx r9d, byte [rax + rcx + 1]
mov byte [rbx + rcx + 1], r9b
mov byte [rax + rcx + 1], r8b
add rcx, 2
jne 0x14017a890
jmp 0x14017a54c
lea rax, [r14 - 0x10]
and rax, rsi
mov byte [r12 + r14], 0xff
mov byte [r12 + rax + 0x10], 0xff
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
jmp 0x14017a434
cmp rsi, 8
mov rcx, qword [rsp + 0x68]
cmovb rcx, rsi
movabs rsi, 0x7ffffffffffffff0
sub rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
add rsi, 0x11
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret