Function at 0x14035af50
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 rax, qword [rcx + 0x18]
mov qword [rsp + 0x48], rax
inc rax
je 0x14035b721
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rcx + 8]
lea rbx, [rsi + 1]
mov rcx, rbx
shr rcx, 3
mov rdx, rbx
and rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp rsi, 8
mov qword [rsp + 0x50], rdx
mov rcx, rdx
cmovb rcx, rsi
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
jbe 0x14035afd6
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x14035b04b
xor eax, eax
cmp rcx, 4
setae al
lea r8, [rax*4 + 4]
jmp 0x14035b09b
mov qword [rsp + 0x38], rdi
mov rdi, qword [rdi]
test rbx, rbx
je 0x14035b12c
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi]
por xmm0, xmmword [0x14035f760]
movdqa xmmword [rdi], xmm0
cmp rbx, 0x11
jb 0x14035b02d
mov eax, 0x10
movdqa xmm0, xmmword [0x14035f760]
nop
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rax]
por xmm1, xmm0
movdqa xmmword [rdi + rax], xmm1
add rax, 0x10
jb 0x14035b02d
cmp rax, rbx
jb 0x14035b010
cmp rbx, 0x10
jae 0x14035b2f8
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
jmp 0x14035b301
mov rax, rcx
shr rax, 0x3d
jne 0x14035b721
shl rcx, 3
mov r8d, 1
cmp rcx, 0xe
jb 0x14035b09b
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 r8, 0xffffffffffffffff
shr r8, cl
inc r8
mov ecx, 0x18
mov rax, r8
mul rcx
jo 0x14035b721
mov r12, rax
add r12, 0xf
and r12, 0xfffffffffffffff0
lea r13, [r8 + 0x10]
mov rbp, r12
add rbp, r13
jb 0x14035b721
movabs rax, 0x7ffffffffffffff1
cmp rbp, rax
jae 0x14035b721
mov qword [rsp + 0x30], r14
mov r14, r8
test rbp, rbp
je 0x14035b142
movzx eax, byte [0x14042c610]
mov rcx, qword [0x14042c578]
test rcx, rcx
jne 0x14035b10f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14035b122
mov rcx, rax
mov qword [0x14042c578], rax
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x14035b148
mov rcx, rbp
call fcn.14026b470
ud2
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
xor ecx, ecx
jmp 0x14035b6f8
mov r15d, 0x10
lea rbp, [r14 - 1]
mov rax, r14
shr rax, 3
and r14, 0xfffffffffffffff8
sub r14, rax
cmp rbp, 8
cmovb r14, rbp
add r15, r12
mov rcx, r15
mov dl, 0xff
mov r8, r13
call sub.VCRUNTIME140.dll_memset
sub r14, qword [rsp + 0x48]
mov r12, qword [rdi]
test rbx, rbx
je 0x14035b2b3
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
lea rbx, [r12 - 0x18]
mov rax, qword [rsp + 0x30]
mov r13, qword [rax]
mov r14, qword [rax + 8]
xor edi, edi
jmp 0x14035b20b
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [r15 + rdx], al
mov byte [rcx + r15 + 0x10], al
lea rax, [rdi*8]
lea rax, [rax + rax*2]
mov rcx, r12
sub rcx, rax
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, r15
sub rdx, rax
neg rax
movdqu xmm0, xmmword [rcx - 0x18]
movdqu xmmword [r15 + rax - 0x18], xmm0
mov rax, qword [rcx - 8]
mov qword [rdx - 8], rax
lea rax, [rdi + 1]
cmp rdi, rsi
mov rdi, rax
je 0x14035b28f
cmp byte [r12 + rdi], 0
js 0x14035b1fb
mov rax, rdi
neg rax
lea rax, [rax + rax*2]
mov r8, qword [rbx + rax*8]
mov r9, qword [rbx + rax*8 + 8]
mov rcx, r13
mov rdx, r14
call fcn.1402a68f0
mov rcx, rbp
and rcx, rax
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14035b268
mov r8d, 0x10
nop word [rax + rax]
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14035b250
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [r15 + rdx], 0
js 0x14035b1b0
movdqa xmm0, xmmword [r15]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14035b1b0
mov rax, qword [rsp + 0x38]
mov qword [rax], r15
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
test rsi, rsi
mov rbx, qword [rsp + 0x40]
jne 0x14035b2be
jmp 0x14035b706
mov qword [rdi], r15
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], r14
mov ecx, 0x18
mov rax, rbx
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x14035b706
sub r12, rax
mov rcx, qword [0x14042c578]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14035b706
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + rbx], xmm0
mov rax, qword [r14]
mov rbp, qword [r14 + 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 + 0x70], rcx
rol rcx, 0x11
mov qword [rsp + 0x60], rcx
xor rdx, rax
mov qword [rsp + 0x68], rdx
xor r10d, r10d
mov qword [rsp + 0x58], rsi
jmp 0x14035b383
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rsi
mov byte [rdi + r10], al
mov byte [rcx + rdi + 0x10], al
lea rax, [r10 + 1]
cmp r10, rsi
mov r10, rax
je 0x14035b6eb
cmp byte [rdi + r10], 0x80
jne 0x14035b373
mov rax, r10
not rax
lea rax, [rax + rax*2]
lea rax, [rdi + rax*8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r10
mov rax, r10
neg rax
lea rax, [rax + rax*2]
lea rax, [rdi + rax*8]
add rax, 0xffffffffffffffe8
mov qword [rsp + 0x40], rax
nop dword [rax]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rcx + 8]
mov rdx, rbp
xor rdx, r8
movabs rax, 0x7465646279746573
xor rdx, rax
mov rax, qword [rsp + 0x68]
lea r14, [rax + rdx]
rol rdx, 0x10
mov r10, qword [rcx]
xor rdx, r14
lea r15, [rdx + r13]
add r14, qword [rsp + 0x70]
mov r12, r14
rol r12, 0x20
xor r14, qword [rsp + 0x60]
rol rdx, 0x15
xor rdx, r15
xor r15, r8
mov r9d, r8d
and r9d, 7
mov rax, r8
xor r11d, r11d
and rax, 0xfffffffffffffff8
je 0x14035b474
nop word cs:[rax + rax]
add r15, r14
rol r14, 0xd
mov rcx, qword [r10 + r11 + 0x10]
xor r14, r15
rol r15, 0x20
xor rdx, rcx
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add r15, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rdx, r15
xor r15, rcx
add r11, 8
cmp r11, rax
jb 0x14035b430
cmp r9d, 3
jbe 0x14035b4a0
mov ebx, dword [r10 + r11 + 0x10]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r9
jb 0x14035b4b0
jmp 0x14035b4dc
xor ebx, ebx
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r9
jae 0x14035b4dc
lea rcx, [rax + r11]
mov rsi, r13
mov r13, rbp
movzx ebp, word [r10 + rcx + 0x10]
lea ecx, [rax*8]
shl rbp, cl
or rbx, rbp
mov rbp, r13
mov r13, rsi
mov rsi, qword [rsp + 0x58]
or rax, 2
cmp rax, r9
jae 0x14035b4f5
add r11, rax
movzx r9d, byte [r10 + r11 + 0x10]
shl eax, 3
mov ecx, eax
shl r9, cl
or rbx, r9
mov r10, qword [rsp + 0x30]
shl r8, 0x38
movabs rax, 0x800000000000000
add r8, rax
add r15, r14
rol r14, 0xd
or r8, rbx
xor r14, r15
rol r15, 0x20
xor rdx, r8
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add r15, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor rdx, r15
xor r14, r12
rol r12, 0x20
xor r15, r8
add r15, r14
rol r14, 0xd
xor r14, r15
rol r15, 0x20
xor r12, 0xff
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add r15, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rdx, r15
add r15, r14
rol r14, 0xd
xor r14, r15
rol r15, 0x20
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add r15, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rdx, r15
add r15, r14
rol r14, 0xd
add r12, rdx
rol rdx, 0x10
xor rdx, r12
rol rdx, 0x15
xor r14, r15
add r12, r14
rol r14, 0x11
mov rax, r12
rol rax, 0x20
xor rax, r14
xor rax, rdx
xor rax, r12
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x14035b618
mov r9d, 0x10
mov r8, rcx
nop dword [rax]
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [rdi + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x14035b600
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x14035b634
movdqa xmm0, xmmword [rdi]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r10
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rsi
cmp r9, 0x10
jb 0x14035b360
mov rcx, rdx
not rcx
lea rcx, [rcx + rcx*2]
lea rcx, [rdi + rcx*8]
movzx r8d, byte [rdi + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rdi + rdx], al
mov byte [r9 + rdi + 0x10], al
cmp r8b, 0xff
je 0x14035b6c0
mov r8, qword [rsp + 0x28]
mov rax, qword [r8]
mov rdx, qword [rcx]
mov qword [r8], rdx
mov qword [rcx], rax
mov rax, qword [r8 + 8]
mov rdx, qword [rcx + 8]
mov qword [r8 + 8], rdx
mov qword [rcx + 8], rax
mov rax, qword [r8 + 0x10]
mov rdx, qword [rcx + 0x10]
mov qword [r8 + 0x10], rdx
mov qword [rcx + 0x10], rax
jmp 0x14035b3c0
lea rax, [r10 - 0x10]
and rax, rsi
mov byte [rdi + r10], 0xff
mov byte [rax + rdi + 0x10], 0xff
mov rdx, qword [rsp + 0x28]
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rcx], xmm0
jmp 0x14035b373
cmp rsi, 8
mov rcx, qword [rsp + 0x50]
cmovb rcx, rsi
sub rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x38]
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.14026b430
ud2