Function at 0x14007ba70
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x38], rdx
mov r14, qword [rcx + 0x18]
mov rax, r14
inc rax
je 0x14007bbd0
mov r11, rcx
mov r12, qword [rcx + 8]
lea r15, [r12 + 1]
mov rdx, r15
shr rdx, 3
mov rcx, r15
and rcx, 0xfffffffffffffff8
sub rcx, rdx
cmp r12, 8
cmovb rcx, r12
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x20], r11
jbe 0x14007baf5
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x14007bb22
xor eax, eax
cmp rcx, 4
setae al
lea r13, [rax*4 + 4]
jmp 0x14007bb7c
mov rsi, qword [r11]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x14007be41
cmp rax, 1
jne 0x14007bdd5
xor edx, edx
jmp 0x14007be27
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp rcx, rax
jae 0x14007bbd0
shl rcx, 3
mov r13d, 1
cmp rcx, 0xe
jb 0x14007bb7c
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 r13, 0xffffffffffffffff
shr r13, cl
inc r13
mov ecx, 0x18
mov rax, r13
mul rcx
jo 0x14007bbd0
mov rbp, rax
add rbp, 0xf
and rbp, 0xfffffffffffffff0
lea r8, [r13 + 0x10]
mov rdx, rbp
add rdx, r8
jb 0x14007bbd0
movabs rax, 0x7ffffffffffffff0
cmp rdx, rax
ja 0x14007bbd0
test rdx, rdx
je 0x14007bbd2
movzx eax, byte [0x140188180]
xor ecx, ecx
mov rsi, r8
call fcn.1400f2120
mov r8, rsi
mov rbx, rax
test rax, rax
jne 0x14007bbd7
ud2
mov ebx, 0x10
lea rdi, [r13 - 1]
mov rax, r13
shr rax, 3
mov rsi, r13
and rsi, 0xfffffffffffffff8
sub rsi, rax
cmp r13, 9
cmovb rsi, rdi
add rbx, rbp
mov rcx, rbx
mov dl, 0xff
call sub.msvcrt.dll_memset
test r14, r14
je 0x14007bd77
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r15
mov rax, qword [rsp + 0x20]
mov r10, qword [rax]
movdqa xmm0, xmmword [r10]
pmovmskb r15d, xmm0
not r15d
xor ebp, ebp
mov qword [rsp + 0x50], r14
mov rsi, r14
mov r13, r10
mov qword [rsp + 0x30], r10
jmp 0x14007bc9c
lea ecx, [r15 - 1]
and ecx, r15d
dec rsi
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rdi
mov byte [rbx + rdx], al
mov byte [r8 + rbx + 0x10], al
shl r14, 3
lea rax, [r14 + r14*2]
mov r8, r10
sub r8, rax
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, rbx
sub rdx, rax
neg rax
movdqu xmm0, xmmword [r8 - 0x18]
movdqu xmmword [rbx + rax - 0x18], xmm0
mov rax, qword [r8 - 8]
mov qword [rdx - 8], rax
mov r15d, ecx
test rsi, rsi
je 0x14007bd66
test r15w, r15w
jne 0x14007bccf
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r13 + 0x10]
add r13, 0x10
pmovmskb r15d, xmm0
add rbp, 0x10
cmp r15d, 0xffff
je 0x14007bcb0
not r15d
tzcnt r14d, r15d
add r14, rbp
mov rax, r14
neg rax
lea rax, [rax + rax*2]
mov r8, qword [r10 + rax*8 - 0x18]
mov r9, qword [r10 + rax*8 - 0x10]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
call fcn.14007b8d0
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14007bd37
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 0x14007bd20
mov r9, qword [rsp + 0x20]
mov r10, qword [rsp + 0x30]
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x14007bc40
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14007bc40
mov rax, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
jmp 0x14007bd81
mov r9, qword [rsp + 0x20]
mov r10, qword [r9]
xor eax, eax
sub rsi, rax
mov qword [r9], rbx
mov qword [r9 + 8], rdi
mov qword [r9 + 0x10], rsi
mov qword [r9 + 0x18], rax
test r12, r12
je 0x14007c3e0
mov ecx, 0x18
mov rax, r15
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add r12, rax
cmp r12, 0xffffffffffffffef
je 0x14007c3e0
sub r10, rax
mov rcx, qword [0x140188170]
xor edx, edx
mov r8, r10
call sub.KERNEL32.dll_HeapFree
jmp 0x14007c3e0
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x140119830]
nop dword [rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rsi + r8]
por xmm1, xmm0
movdqa xmmword [rsi + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rsi + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rsi + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x14007bdf0
test al, 1
je 0x14007be41
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rsi + rdx]
por xmm0, xmmword [0x140119830]
movdqa xmmword [rsi + rdx], xmm0
cmp r15, 0x10
jae 0x14007be68
lea rcx, [rsi + 0x10]
mov rdx, rsi
mov r8, r15
call sub.msvcrt.dll_memmove
mov r11, qword [rsp + 0x20]
cmp r12, 0xffffffffffffffff
jne 0x14007be72
xor eax, eax
jmp 0x14007c3d9
movdqu xmm0, xmmword [rsi]
movdqu xmmword [rsi + r15], xmm0
movabs rax, 0x736f6d6570736575
mov r9, qword [rsp + 0x38]
xor rax, r9
movabs rcx, 0x646f72616e646f6d
mov r8, qword [rsp + 0x28]
xor rcx, r8
add rax, rcx
rol rcx, 0xd
movabs rdx, 0x6c7967656e657261
xor rcx, rax
rol rax, 0x20
mov qword [rsp + 0x30], rax
xor rdx, r9
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
rol rcx, 0x11
mov qword [rsp + 0x40], rcx
xor r10d, r10d
movabs rax, 0x7465646279746573
xor rax, r8
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rsi
jmp 0x14007bf19
shr rcx, 0x39
lea rax, [r10 - 0x10]
and rax, r12
mov byte [rbp + r10], cl
mov rsi, qword [rsp + 0x58]
mov byte [rax + rsi + 0x10], cl
lea rax, [r10 + 1]
cmp r10, r12
mov r10, rax
je 0x14007c3b7
cmp byte [rsi + r10], 0x80
jne 0x14007bf09
lea rax, [r10*8]
lea rax, [rax + rax*2]
mov r15, rsi
sub r15, rax
add r15, 0xffffffffffffffe8
mov rax, r10
neg rax
mov qword [rsp + 0x38], rax
mov rbp, rsi
mov qword [rsp + 0x28], r10
nop dword [rax]
mov rax, qword [rsp + 0x38]
lea rax, [rax + rax*2]
mov r8, qword [rbp + rax*8 - 0x18]
mov r13, qword [rbp + rax*8 - 0x10]
mov r14, r13
xor r14, qword [rsp + 0x60]
mov rax, qword [rsp + 0x48]
lea rdi, [rax + r14]
rol r14, 0x10
xor r14, rdi
add rdi, qword [rsp + 0x50]
mov rdx, rdi
rol rdx, 0x20
mov rax, qword [rsp + 0x30]
lea r9, [r14 + rax]
xor rdi, qword [rsp + 0x40]
rol r14, 0x15
xor r14, r9
xor r9, r13
mov rax, r13
xor r10d, r10d
and rax, 0xfffffffffffffff8
je 0x14007bff4
nop dword [rax + rax]
add r9, rdi
rol rdi, 0xd
mov rcx, qword [r8 + r10 + 0x10]
xor rdi, r9
rol r9, 0x20
xor r14, rcx
add rdx, r14
rol r14, 0x10
xor r14, rdx
add r9, r14
rol r14, 0x15
add rdx, rdi
rol rdi, 0x11
xor rdi, rdx
rol rdx, 0x20
xor r14, r9
xor r9, rcx
add r10, 8
cmp r10, rax
jb 0x14007bfb0
mov esi, r13d
and esi, 7
cmp esi, 4
jb 0x14007c020
mov ebx, dword [r8 + r10 + 0x10]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jb 0x14007c030
jmp 0x14007c050
xor ebx, ebx
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jae 0x14007c050
lea rcx, [rax + r10]
movzx r11d, word [r8 + rcx + 0x10]
lea ecx, [rax*8]
shl r11, cl
or rbx, r11
mov r11, qword [rsp + 0x20]
or rax, 2
cmp rax, rsi
jae 0x14007c069
add r10, rax
movzx r8d, byte [r8 + r10 + 0x10]
shl eax, 3
mov ecx, eax
shl r8, cl
or rbx, r8
mov r10, qword [rsp + 0x28]
shl r13, 0x38
movabs rax, 0x800000000000000
add r13, rax
add r9, rdi
rol rdi, 0xd
or r13, rbx
xor rdi, r9
rol r9, 0x20
xor r14, r13
add rdx, r14
rol r14, 0x10
xor r14, rdx
add r9, r14
rol r14, 0x15
add rdx, rdi
rol rdi, 0x11
xor r14, r9
xor rdi, rdx
rol rdx, 0x20
xor r9, r13
add r9, rdi
rol rdi, 0xd
xor rdi, r9
rol r9, 0x20
xor rdx, 0xff
add rdx, r14
rol r14, 0x10
xor r14, rdx
add r9, r14
rol r14, 0x15
add rdx, rdi
rol rdi, 0x11
xor rdi, rdx
rol rdx, 0x20
xor r14, r9
add r9, rdi
rol rdi, 0xd
xor rdi, r9
rol r9, 0x20
add rdx, r14
rol r14, 0x10
xor r14, rdx
add r9, r14
rol r14, 0x15
add rdx, rdi
rol rdi, 0x11
xor rdi, rdx
rol rdx, 0x20
xor r14, r9
add r9, rdi
rol rdi, 0xd
add rdx, r14
rol r14, 0x10
xor r14, rdx
rol r14, 0x15
xor rdi, r9
add rdx, rdi
rol rdi, 0x11
mov rcx, rdx
rol rcx, 0x20
xor rcx, rdi
xor rcx, r14
xor rcx, rdx
mov rax, r12
and rax, rcx
movdqu xmm0, xmmword [rbp + rax]
pmovmskb edx, xmm0
mov r8, rax
test edx, edx
jne 0x14007c189
mov r9d, 0x10
mov r8, rax
nop
add r8, r9
and r8, r12
movdqu xmm0, xmmword [rbp + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x14007c170
tzcnt edx, edx
add rdx, r8
and rdx, r12
cmp byte [rbp + rdx], 0
js 0x14007c1a7
movdqa xmm0, xmmword [rbp]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r10
sub r8, rax
mov r9, rdx
sub r9, rax
xor r9, r8
and r9, r12
cmp r9, 0x10
jb 0x14007bef0
lea rax, [rdx*8]
lea rax, [rax + rax*2]
neg rax
add rax, rbp
add rax, 0xffffffffffffffe8
movzx r8d, byte [rbp + rdx]
shr rcx, 0x39
lea r9, [rdx - 0x10]
and r9, r12
mov byte [rbp + rdx], cl
mov rsi, qword [rsp + 0x58]
mov byte [r9 + rsi + 0x10], cl
cmp r8b, 0xff
je 0x14007c390
movzx ecx, byte [r15]
movzx edx, byte [rax]
mov byte [r15], dl
mov byte [rax], cl
movzx ecx, byte [r15 + 1]
movzx edx, byte [rax + 1]
mov byte [r15 + 1], dl
mov byte [rax + 1], cl
movzx ecx, byte [r15 + 2]
movzx edx, byte [rax + 2]
mov byte [r15 + 2], dl
mov byte [rax + 2], cl
movzx ecx, byte [r15 + 3]
movzx edx, byte [rax + 3]
mov byte [r15 + 3], dl
mov byte [rax + 3], cl
movzx ecx, byte [r15 + 4]
movzx edx, byte [rax + 4]
mov byte [r15 + 4], dl
mov byte [rax + 4], cl
movzx ecx, byte [r15 + 5]
movzx edx, byte [rax + 5]
mov byte [r15 + 5], dl
mov byte [rax + 5], cl
movzx ecx, byte [r15 + 6]
movzx edx, byte [rax + 6]
mov byte [r15 + 6], dl
mov byte [rax + 6], cl
movzx ecx, byte [r15 + 7]
movzx edx, byte [rax + 7]
mov byte [r15 + 7], dl
mov byte [rax + 7], cl
movzx ecx, byte [r15 + 8]
movzx edx, byte [rax + 8]
mov byte [r15 + 8], dl
mov byte [rax + 8], cl
movzx ecx, byte [r15 + 9]
movzx edx, byte [rax + 9]
mov byte [r15 + 9], dl
mov byte [rax + 9], cl
movzx ecx, byte [r15 + 0xa]
movzx edx, byte [rax + 0xa]
mov byte [r15 + 0xa], dl
mov byte [rax + 0xa], cl
movzx ecx, byte [r15 + 0xb]
movzx edx, byte [rax + 0xb]
mov byte [r15 + 0xb], dl
mov byte [rax + 0xb], cl
movzx ecx, byte [r15 + 0xc]
movzx edx, byte [rax + 0xc]
mov byte [r15 + 0xc], dl
mov byte [rax + 0xc], cl
movzx ecx, byte [r15 + 0xd]
movzx edx, byte [rax + 0xd]
mov byte [r15 + 0xd], dl
mov byte [rax + 0xd], cl
movzx ecx, byte [r15 + 0xe]
movzx edx, byte [rax + 0xe]
mov byte [r15 + 0xe], dl
mov byte [rax + 0xe], cl
movzx ecx, byte [r15 + 0xf]
movzx edx, byte [rax + 0xf]
mov byte [r15 + 0xf], dl
mov byte [rax + 0xf], cl
movzx ecx, byte [r15 + 0x10]
movzx edx, byte [rax + 0x10]
mov byte [r15 + 0x10], dl
mov byte [rax + 0x10], cl
movzx ecx, byte [r15 + 0x11]
movzx edx, byte [rax + 0x11]
mov byte [r15 + 0x11], dl
mov byte [rax + 0x11], cl
movzx ecx, byte [r15 + 0x12]
movzx edx, byte [rax + 0x12]
mov byte [r15 + 0x12], dl
mov byte [rax + 0x12], cl
movzx ecx, byte [r15 + 0x13]
movzx edx, byte [rax + 0x13]
mov byte [r15 + 0x13], dl
mov byte [rax + 0x13], cl
movzx ecx, byte [r15 + 0x14]
movzx edx, byte [rax + 0x14]
mov byte [r15 + 0x14], dl
mov byte [rax + 0x14], cl
movzx ecx, byte [r15 + 0x15]
movzx edx, byte [rax + 0x15]
mov byte [r15 + 0x15], dl
mov byte [rax + 0x15], cl
movzx ecx, byte [r15 + 0x16]
movzx edx, byte [rax + 0x16]
mov byte [r15 + 0x16], dl
mov byte [rax + 0x16], cl
movzx ecx, byte [r15 + 0x17]
movzx edx, byte [rax + 0x17]
mov byte [r15 + 0x17], dl
mov byte [rax + 0x17], cl
mov rbp, qword [r11]
jmp 0x14007bf50
lea rcx, [r10 - 0x10]
and rcx, r12
mov byte [rsi + r10], 0xff
mov byte [rcx + rsi + 0x10], 0xff
mov rcx, qword [r15 + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm0, xmmword [r15]
movdqu xmmword [rax], xmm0
jmp 0x14007bf09
mov rcx, qword [r11 + 8]
mov r14, qword [r11 + 0x18]
lea rax, [rcx + 1]
mov rdx, rax
shr rdx, 3
and rax, 0xfffffffffffffff8
sub rax, rdx
cmp rcx, 8
cmovb rax, rcx
sub rax, r14
mov qword [r11 + 0x10], rax
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret