Function at 0x14035a570
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 rbx, qword [rcx + 0x18]
mov rax, rbx
inc rax
je 0x14035ae72
mov rbp, rdx
mov r8, rcx
mov r13, qword [rcx + 8]
lea r11, [r13 + 1]
mov rcx, r11
shr rcx, 3
mov r10, r11
and r10, 0xfffffffffffffff8
sub r10, rcx
cmp r13, 8
mov rcx, r10
cmovb rcx, r13
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x38], r8
jbe 0x14035a5f4
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x14035a67b
xor eax, eax
cmp rcx, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x14035a6d8
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x68], rbx
mov rdi, qword [r8]
test r11, r11
je 0x14035a751
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi]
por xmm0, xmmword [0x14035f760]
movdqa xmmword [rdi], xmm0
cmp r11, 0x11
jb 0x14035a65d
mov eax, 0x10
movdqa xmm0, xmmword [0x14035f760]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rax]
por xmm1, xmm0
movdqa xmmword [rdi + rax], xmm1
add rax, 0x10
jb 0x14035a65d
cmp rax, r11
jb 0x14035a640
cmp r11, 0x10
jae 0x14035a907
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, r11
call sub.VCRUNTIME140.dll_memmove
jmp 0x14035a911
mov rax, rcx
shr rax, 0x3d
jne 0x14035ae72
shl rcx, 3
mov r14d, 1
cmp rcx, 0xe
jb 0x14035a6d8
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 r14, 0xffffffffffffffff
shr r14, cl
inc r14
mov rax, r14
shr rax, 0x3b
jne 0x14035ae72
mov rsi, r14
shl rsi, 5
lea r15, [r14 + 0x10]
mov r12, rsi
add r12, r15
jb 0x14035ae72
movabs rax, 0x7ffffffffffffff1
cmp r12, rax
jae 0x14035ae72
mov qword [rsp + 0x30], r11
test r12, r12
je 0x14035a767
movzx eax, byte [0x14042c610]
mov rcx, qword [0x14042c578]
test rcx, rcx
jne 0x14035a734
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14035a747
mov rcx, rax
mov qword [0x14042c578], rax
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14035a76c
mov rcx, r12
call fcn.14026b470
ud2
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, r11
call sub.VCRUNTIME140.dll_memmove
xor ecx, ecx
jmp 0x14035ae49
mov edi, 0x10
mov r12, rbp
lea rbp, [r14 - 1]
mov rax, r14
shr rax, 3
and r14, 0xfffffffffffffff8
sub r14, rax
cmp rbp, 8
cmovb r14, rbp
add rdi, rsi
mov rcx, rdi
mov dl, 0xff
mov r8, r15
call sub.VCRUNTIME140.dll_memset
sub r14, rbx
mov rcx, qword [rsp + 0x38]
mov r15, qword [rcx]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14035a8d1
mov qword [rsp + 0x28], r14
lea rax, [r15 - 0x20]
mov qword [rsp + 0x40], rax
mov rax, r12
mov r12, qword [r12]
mov r14, qword [rax + 8]
xor esi, esi
jmp 0x14035a81a
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [rdi + rdx], al
mov byte [rcx + rdi + 0x10], al
mov rax, r15
sub rax, rbx
shl rdx, 5
mov rcx, rdi
sub rcx, rdx
neg rdx
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmmword [rdi + rdx - 0x20], xmm0
movdqu xmmword [rcx - 0x10], xmm1
lea rax, [rsi + 1]
cmp rsi, r13
mov rsi, rax
je 0x14035a89c
cmp byte [r15 + rsi], 0
js 0x14035a80a
mov rbx, rsi
shl rbx, 5
mov rax, qword [rsp + 0x40]
sub rax, rbx
mov r8, qword [rax]
mov r9, qword [rax + 0x10]
mov rcx, r12
mov rdx, r14
call fcn.1402a2620
mov rcx, rbp
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14035a877
mov r8d, 0x10
nop dword [rax + rax]
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14035a860
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [rdi + rdx], 0
js 0x14035a7d0
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14035a7d0
mov rax, qword [rsp + 0x38]
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
test r13, r13
mov rax, qword [rsp + 0x30]
je 0x14035ae57
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffef
jne 0x14035a8ed
jmp 0x14035ae57
mov qword [rcx], rdi
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], r14
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffef
je 0x14035ae57
sub r15, rax
mov rcx, qword [0x14042c578]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14035ae57
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + r11], xmm0
mov rax, qword [rbp]
mov rcx, qword [rbp + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x28], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x58], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x48], rax
xor r10d, r10d
jmp 0x14035a993
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, r13
mov byte [rdi + r10], al
mov byte [rcx + rdi + 0x10], al
lea rax, [r10 + 1]
cmp r10, r13
mov r10, rax
je 0x14035ae3c
cmp byte [rdi + r10], 0x80
jne 0x14035a983
mov r12, r10
not r12
shl r12, 5
add r12, rdi
mov qword [rsp + 0x40], r10
mov rax, r10
shl rax, 5
mov rcx, rdi
sub rcx, rax
mov qword [rsp + 0x70], rcx
neg rax
add rax, rdi
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x30], rax
jmp 0x14035a9f2
movdqu xmm1, xmmword [r12 + 0x10]
movups xmm2, xmmword [rcx]
movups xmm3, xmmword [rcx + 0x10]
movups xmmword [r12], xmm2
movups xmmword [r12 + 0x10], xmm3
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + 0x10], xmm1
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax]
mov r14, qword [rax + 0x10]
mov esi, r14d
and esi, 7
mov rax, r14
and rax, 0xfffffffffffffff8
je 0x14035aa90
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov r10, qword [rsp + 0x48]
xor r11d, r11d
mov rdx, qword [rsp + 0x28]
nop dword [rax + rax]
add rdx, r8
rol r8, 0xd
mov rcx, qword [rbx + r11]
xor r8, rdx
rol rdx, 0x20
xor r10, rcx
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
xor rdx, rcx
add r11, 8
cmp r11, rax
jb 0x14035aa30
cmp esi, 3
jbe 0x14035aaac
mov ebp, dword [rbx + r11]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jb 0x14035aabc
jmp 0x14035aad6
mov r10, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
xor r11d, r11d
cmp esi, 3
ja 0x14035aa78
xor ebp, ebp
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jae 0x14035aad6
lea rcx, [rax + r11]
movzx r15d, word [rbx + rcx]
lea ecx, [rax*8]
shl r15, cl
or rbp, r15
or rax, 2
cmp rax, rsi
jae 0x14035aaf0
add r11, rax
movzx r11d, byte [rbx + r11]
shl eax, 3
mov ecx, eax
shl r11, cl
or rbp, r11
jmp 0x14035aaf5
test rsi, rsi
je 0x14035ab52
lea ecx, [rsi*8]
mov r11d, 0xff
shl r11, cl
or r11, rbp
cmp rsi, 7
jne 0x14035ac31
mov ecx, 8
add rdx, r8
rol r8, 0xd
sub rcx, rsi
xor r8, rdx
rol rdx, 0x20
xor r10, r11
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
xor r10, rdx
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor rdx, r11
jmp 0x14035ab54
xor ecx, ecx
mov r11d, 1
sub r11, rcx
mov eax, r11d
and eax, 7
and r11, 0xfffffffffffffff8
cmp rcx, r11
jae 0x14035abe0
nop dword [rax]
add rdx, r8
rol r8, 0xd
mov rsi, r10
xor r8, rdx
rol rdx, 0x20
xor rsi, 0xff
add r9, rsi
shld rsi, r10, 0x10
xor rsi, r9
add rdx, rsi
rol rsi, 0x15
add r9, r8
rol r8, 0x11
mov r10, rsi
xor r8, r9
rol r9, 0x20
xor r10, rdx
xor rdx, 0xff
add rcx, 8
cmp rcx, r11
jb 0x14035ab70
xor r11d, r11d
cmp rax, 4
setae r11b
cmp eax, 4
mov esi, 0
mov ecx, 0xff
cmovae rsi, rcx
shl r11, 2
jmp 0x14035abe5
xor esi, esi
xor r11d, r11d
mov rbx, r11
lea ecx, [r11*8]
mov r15d, 0xff
shl r15, cl
or rbx, 1
mov rbp, r11
or rbp, 2
cmp rbx, rax
mov ebx, 0
cmovae r15, rbx
cmovae rbp, r11
or r15, rsi
lea ecx, [rbp*8]
mov r11d, 0xff
shl r11, cl
cmp rbp, rax
cmovae r11, rbx
or r11, r15
shl r14, 0x38
movabs rax, 0x100000000000000
add r14, rax
add rdx, r8
rol r8, 0xd
or r14, r11
xor r8, rdx
rol rdx, 0x20
xor r10, r14
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r10, rdx
xor r8, r9
rol r9, 0x20
xor rdx, r14
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
xor r9, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
add rdx, r8
rol r8, 0xd
add r9, r10
rol r10, 0x10
xor r10, r9
rol r10, 0x15
xor r8, rdx
add r9, r8
rol r8, 0x11
mov rax, r9
rol rax, 0x20
xor rax, r8
xor rax, r10
xor rax, r9
mov rcx, r13
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
mov r10, qword [rsp + 0x40]
jne 0x14035ad58
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, r13
movdqu xmm0, xmmword [rdi + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x14035ad40
tzcnt edx, edx
add rdx, r8
and rdx, r13
cmp byte [rdi + rdx], 0
js 0x14035ad74
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, r13
cmp r9, 0x10
jb 0x14035a970
mov rcx, rdx
not rcx
shl rcx, 5
add rcx, rdi
movzx r8d, byte [rdi + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, r13
mov byte [rdi + rdx], al
mov byte [r9 + rdi + 0x10], al
cmp r8b, 0xff
je 0x14035ae10
shl rdx, 5
mov rax, rdi
sub rax, rdx
movdqu xmm0, xmmword [r12]
cmp r12, rax
jae 0x14035a9d0
cmp rcx, qword [rsp + 0x70]
jae 0x14035a9d0
movups xmm1, xmmword [rcx]
movups xmmword [r12], xmm1
movdqu xmmword [rcx], xmm0
movdqu xmm0, xmmword [r12 + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [r12 + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x14035a9f2
lea rax, [r10 - 0x10]
and rax, r13
mov byte [rdi + r10], 0xff
mov byte [rax + rdi + 0x10], 0xff
movdqu xmm0, xmmword [r12]
movdqu xmm1, xmmword [r12 + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x14035a983
cmp r13, 8
mov rcx, qword [rsp + 0x60]
cmovb rcx, r13
sub rcx, qword [rsp + 0x68]
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