Function at 0x140169300
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 r8, qword [rcx + 0x18]
mov rax, r8
inc rax
je 0x140169acb
mov r15, rdx
mov r13, qword [rcx + 8]
lea rsi, [r13 + 1]
mov rdx, rsi
shr rdx, 3
mov r9, rsi
and r9, 0xfffffffffffffff8
sub r9, rdx
cmp r13, 8
cmovb r9, r13
mov rdx, r9
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], r8
jbe 0x14016937f
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
jae 0x1401693b1
xor eax, eax
cmp r9, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x140169414
mov qword [rsp + 0x48], r9
mov rbx, qword [rcx]
mov rcx, rsi
shr rcx, 4
xor eax, eax
test sil, 0xf
setne al
add rax, rcx
je 0x14016969a
cmp rax, 1
jne 0x14016962c
xor ecx, ecx
jmp 0x140169684
mov rax, r9
shr rax, 0x3d
jne 0x140169acb
shl r9, 3
mov r14d, 1
cmp r9, 0xe
jb 0x140169414
movabs rcx, 0x2492492492492493
mov rax, r9
mul rcx
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 2
dec r9
bsr rcx, r9
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
movabs rax, 0x7fffffffffffffe
cmp r14, rax
ja 0x140169acb
inc r14
mov rbp, r14
shl rbp, 5
lea rbx, [r14 + 0x10]
mov r12, rbp
add r12, rbx
jb 0x140169acb
movabs rax, 0x7ffffffffffffff1
cmp r12, rax
jae 0x140169acb
test r12, r12
je 0x140169488
movzx eax, byte [0x1402448a8]
mov rcx, qword [0x1402443c8]
test rcx, rcx
jne 0x14016946b
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14016947e
mov rcx, rax
mov qword [0x1402443c8], rax
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14016948d
mov rcx, r12
call fcn.140052e20
ud2
mov edi, 0x10
mov qword [rsp + 0x20], rsi
lea rsi, [r14 - 1]
mov rax, r14
shr rax, 3
mov r12, r14
and r12, 0xfffffffffffffff8
sub r12, rax
cmp r14, 9
cmovb r12, rsi
add rdi, rbp
mov rcx, rdi
mov dl, 0xff
mov r8, rbx
call sub.VCRUNTIME140.dll_memset
sub r12, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov rbx, qword [rax]
cmp r13, 0xffffffffffffffff
je 0x1401695f1
mov qword [rsp + 0x30], r12
lea r14, [rbx - 0x20]
mov r12, qword [r15]
mov r15, qword [r15 + 8]
xor ebp, ebp
jmp 0x140169539
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rsi
mov byte [rdi + rdx], al
mov byte [rcx + rdi + 0x10], al
mov rax, rbp
not rax
shl rax, 5
not rdx
shl rdx, 5
movdqu xmm0, xmmword [rbx + rax]
movdqu xmm1, xmmword [rbx + rax + 0x10]
movdqu xmmword [rdi + rdx + 0x10], xmm1
movdqu xmmword [rdi + rdx], xmm0
lea rax, [rbp + 1]
cmp rbp, r13
mov rbp, rax
je 0x1401695bc
cmp byte [rbx + rbp], 0
js 0x140169529
mov rax, rbp
shl rax, 5
mov rcx, r14
sub rcx, rax
mov r8, qword [rcx]
mov r9, qword [rcx + 0x10]
mov rcx, r12
mov rdx, r15
call fcn.1400e1860
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140169597
mov r8d, 0x10
nop word [rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140169580
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x1401694f0
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1401694f0
mov rax, qword [rsp + 0x28]
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
test r13, r13
mov rax, qword [rsp + 0x20]
je 0x140169ab0
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffef
jne 0x140169612
jmp 0x140169ab0
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r12
mov rax, qword [rsp + 0x20]
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffef
je 0x140169ab0
sub rbx, rax
mov rcx, qword [0x1402443c8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140169ab0
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x14016e160]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx]
por xmm1, xmm0
movdqa xmmword [rbx + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x140169650
test al, 1
je 0x14016969a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x14016e160]
movdqa xmmword [rbx + rcx], xmm0
cmp rsi, 0x10
jae 0x1401696bc
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
cmp r13, 0xffffffffffffffff
jne 0x1401696c5
xor ecx, ecx
jmp 0x140169aa2
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rsi], xmm0
mov rax, qword [r15]
mov r10, qword [r15 + 8]
movabs r15, 0x736f6d6570736575
xor r15, rax
movabs rcx, 0x646f72616e646f6d
xor rcx, r10
add r15, rcx
rol rcx, 0xd
lea rdx, [rbx - 0x20]
mov qword [rsp + 0x50], rdx
xor rcx, r15
rol r15, 0x20
movabs rdx, 0x6c7967656e657261
mov qword [rsp + 0x70], rcx
rol rcx, 0x11
mov qword [rsp + 0x60], rcx
xor rdx, rax
mov qword [rsp + 0x68], rdx
xor r11d, r11d
mov qword [rsp + 0x58], r13
jmp 0x140169753
shr rax, 0x39
lea rcx, [r11 - 0x10]
and rcx, r13
mov byte [rbx + r11], al
mov byte [rcx + rbx + 0x10], al
lea rax, [r11 + 1]
cmp r11, r13
mov r11, rax
je 0x140169a9d
cmp byte [rbx + r11], 0x80
jne 0x140169743
mov rax, r11
not rax
shl rax, 5
add rax, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r11
mov rax, r11
shl rax, 5
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov qword [rsp + 0x30], rcx
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x30]
mov r11, qword [rax]
mov r8, qword [rax + 0x10]
mov rdx, r10
xor rdx, r8
movabs rax, 0x7465646279746573
xor rdx, rax
mov rax, qword [rsp + 0x68]
lea r12, [rax + rdx]
rol rdx, 0x10
xor rdx, r12
lea rdi, [rdx + r15]
add r12, qword [rsp + 0x70]
mov rbp, r12
rol rbp, 0x20
xor r12, qword [rsp + 0x60]
rol rdx, 0x15
xor rdx, rdi
xor rdi, r8
lea r9, [r8 + r8]
mov rax, r9
xor r14d, r14d
and rax, 0xfffffffffffffff8
je 0x140169833
nop
add rdi, r12
rol r12, 0xd
mov rcx, qword [r11 + r14]
xor r12, rdi
rol rdi, 0x20
xor rdx, rcx
add rbp, rdx
rol rdx, 0x10
xor rdx, rbp
add rdi, rdx
rol rdx, 0x15
add rbp, r12
rol r12, 0x11
xor r12, rbp
rol rbp, 0x20
xor rdx, rdi
xor rdi, rcx
add r14, 8
cmp r14, rax
jb 0x1401697f0
and r9d, 6
cmp r9d, 3
jbe 0x140169860
mov esi, dword [r11 + r14]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r9
jb 0x140169870
jmp 0x14016989b
xor esi, esi
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r9
jae 0x14016989b
lea rcx, [rax + r14]
mov r13, r15
mov r15, r10
movzx r10d, word [r11 + rcx]
lea ecx, [rax*8]
shl r10, cl
or rsi, r10
mov r10, r15
mov r15, r13
mov r13, qword [rsp + 0x58]
or rax, 2
cmp rax, r9
jae 0x1401698b3
add r14, rax
movzx r9d, byte [r11 + r14]
shl eax, 3
mov ecx, eax
shl r9, cl
or rsi, r9
mov r11, qword [rsp + 0x20]
shl r8, 0x39
movabs rax, 0x800000000000000
add r8, rax
add rdi, r12
rol r12, 0xd
or r8, rsi
xor r12, rdi
rol rdi, 0x20
xor rdx, r8
add rbp, rdx
rol rdx, 0x10
xor rdx, rbp
add rdi, rdx
rol rdx, 0x15
add rbp, r12
rol r12, 0x11
xor rdx, rdi
xor r12, rbp
rol rbp, 0x20
xor rdi, r8
add rdi, r12
rol r12, 0xd
xor r12, rdi
rol rdi, 0x20
xor rbp, 0xff
add rbp, rdx
rol rdx, 0x10
xor rdx, rbp
add rdi, rdx
rol rdx, 0x15
add rbp, r12
rol r12, 0x11
xor r12, rbp
rol rbp, 0x20
xor rdx, rdi
add rdi, r12
rol r12, 0xd
xor r12, rdi
rol rdi, 0x20
add rbp, rdx
rol rdx, 0x10
xor rdx, rbp
add rdi, rdx
rol rdx, 0x15
add rbp, r12
rol r12, 0x11
xor r12, rbp
rol rbp, 0x20
xor rdx, rdi
add rdi, r12
rol r12, 0xd
add rbp, rdx
rol rdx, 0x10
xor rdx, rbp
rol rdx, 0x15
xor r12, rdi
add rbp, r12
rol r12, 0x11
mov rax, rbp
rol rax, 0x20
xor rax, r12
xor rax, rdx
xor rax, rbp
mov rcx, rax
and rcx, r13
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x1401699d8
mov r9d, 0x10
mov r8, rcx
nop word [rax + rax]
add r8, r9
and r8, r13
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x1401699c0
tzcnt edx, edx
add rdx, r8
and rdx, r13
cmp byte [rbx + rdx], 0
js 0x1401699f4
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r11
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, r13
cmp r9, 0x10
jb 0x140169730
mov rcx, rdx
not rcx
shl rcx, 5
add rcx, rbx
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, r13
mov byte [rbx + rdx], al
mov byte [r9 + rbx + 0x10], al
cmp r8b, 0xff
je 0x140169a70
mov rax, qword [rsp + 0x40]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rcx]
movups xmmword [rax], xmm1
movups xmmword [rcx], xmm0
movdqu xmm0, xmmword [rax + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x140169790
lea rax, [r11 - 0x10]
and rax, r13
mov byte [rbx + r11], 0xff
mov byte [rax + rbx + 0x10], 0xff
mov rax, qword [rsp + 0x40]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x140169743
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140052de0
ud2