Function at 0x140099bc0
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
movaps xmmword [rsp + 0x70], xmm6
mov r8, qword [rcx + 0x18]
mov rax, r8
inc rax
je 0x140099d1a
mov r12, rdx
mov r15, rcx
mov rsi, qword [rcx + 8]
lea rdi, [rsi + 1]
mov rcx, rdi
shr rcx, 3
mov r9, rdi
and r9, 0xfffffffffffffff8
sub r9, rcx
cmp rsi, 8
mov rdx, r9
cmovb rdx, rsi
movabs r14, 0x7ffffffffffffff0
mov rcx, rdx
shr rcx, 1
cmp rax, rcx
mov qword [rsp + 0x30], r8
jbe 0x140099c55
lea rcx, [rdx + 1]
cmp rax, rdx
cmova rcx, rax
cmp rcx, 8
mov qword [rsp + 0x40], r12
jae 0x140099c82
xor eax, eax
cmp rcx, 4
setae al
lea r12, [rax*4 + 4]
jmp 0x140099cd0
mov rbx, qword [r15]
mov rcx, rdi
shr rcx, 4
xor eax, eax
test dil, 0xf
setne al
add rax, rcx
je 0x140099f8a
cmp rax, 1
jne 0x140099f1d
xor ecx, ecx
jmp 0x140099f74
movabs rax, 0x1ffffffffffffffe
or rax, 1
cmp rcx, rax
ja 0x140099d1a
shl rcx, 3
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 r12, 0xffffffffffffffff
shr r12, cl
inc r12
mov ecx, 0x38
mov rax, r12
mul rcx
jo 0x140099d1a
mov r13, rax
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [r12 + 0x10]
mov rdx, r13
add rdx, rbp
jb 0x140099d1a
cmp rdx, r14
ja 0x140099d1a
test rdx, rdx
mov qword [rsp + 0x38], rdi
je 0x140099d1c
movzx eax, byte [0x140259141]
xor ecx, ecx
call fcn.14008b700
mov rbx, rax
test rax, rax
jne 0x140099d21
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 + 0x48], rcx
add rbx, r13
mov rcx, rbx
mov dl, 0xff
mov r8, rbp
call sub.msvcrt.dll_memset
mov r8, qword [r15]
mov rbp, qword [rsp + 0x30]
test rbp, rbp
je 0x140099ec7
mov qword [rsp + 0x28], r15
movdqa xmm0, xmmword [r8]
pmovmskb r15d, xmm0
not r15d
mov rax, qword [rsp + 0x40]
movups xmm6, xmmword [rax]
xor r13d, r13d
mov r12, r8
mov qword [rsp + 0x20], r8
jmp 0x140099df6
lea ecx, [r15 - 1]
and ecx, r15d
dec rbp
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rdi
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
not r14
imul rax, r14, 0x38
not rdx
imul rdx, rdx, 0x38
mov r9, qword [r8 + rax + 0x30]
mov qword [rbx + rdx + 0x30], r9
movdqu xmm0, xmmword [r8 + rax]
movdqu xmm1, xmmword [r8 + rax + 0x10]
movdqu xmm2, xmmword [r8 + rax + 0x20]
movdqu xmmword [rbx + rdx + 0x20], xmm2
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r15d, ecx
test rbp, rbp
je 0x140099eb1
test r15w, r15w
jne 0x140099e20
nop dword [rax]
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb r15d, xmm0
add r13, 0x10
cmp r15d, 0xffff
je 0x140099e00
not r15d
tzcnt r14d, r15d
add r14, r13
mov rax, r14
neg rax
imul rax, rax, 0x38
mov rdx, qword [r8 + rax - 0x30]
mov r8, qword [r8 + rax - 0x28]
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0x60]
call fcn.14009db20
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140099e87
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 0x140099e70
mov r8, qword [rsp + 0x20]
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x140099d90
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140099d90
movabs r14, 0x7ffffffffffffff0
mov r15, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
jmp 0x140099ec9
xor eax, eax
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov qword [r15], rbx
mov qword [r15 + 8], rdi
mov qword [r15 + 0x10], rcx
test rsi, rsi
je 0x14009a4f3
mov ecx, 0x38
mov rax, qword [rsp + 0x38]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x14009a4f3
sub r8, rax
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x14009a4f3
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x1401ba270]
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 0x140099f40
test al, 1
je 0x140099f8a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x1401ba270]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x50], r9
cmp rdi, 0x10
jae 0x140099fb0
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memmove
test rdi, rdi
jne 0x140099fb9
xor eax, eax
jmp 0x14009a4ea
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rdi], xmm0
mov qword [rsp + 0x28], r15
movdqu xmm1, xmmword [r12]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [0x1401ba280]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x1401ba290]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x48], xmm2
movq qword [rsp + 0x40], xmm0
movq qword [rsp + 0x38], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x58], xmm2
xor r11d, r11d
mov r15, rbx
jmp 0x14009a037
shr rdx, 0x39
lea rax, [r11 - 0x10]
and rax, rsi
mov byte [rbx + r11], dl
mov byte [rbx + rax + 0x10], dl
lea rax, [r11 + 1]
add r15, 0xffffffffffffffc8
cmp r11, rsi
mov r11, rax
je 0x14009a4ce
cmp byte [rbx + r11], 0x80
jne 0x14009a023
imul rcx, r11, 0xffffffffffffffc8
mov rax, r11
not rax
imul r13, rax, 0x38
add r13, rbx
add rcx, rbx
mov qword [rsp + 0x20], rcx
mov rax, r11
neg rax
imul rdi, rax, 0x38
add rdi, rbx
jmp 0x14009a0c8
movdqu xmm2, xmmword [r13]
movdqu xmm3, xmmword [r13 + 0x10]
movdqu xmm4, xmmword [rax]
movups xmm5, xmmword [rax + 0x10]
movdqu xmmword [r13], xmm4
movups xmmword [r13 + 0x10], xmm5
movdqu xmmword [rax], xmm2
movdqu xmmword [rax + 0x10], xmm3
mov rcx, qword [r13 + 0x20]
mov rdx, qword [rax + 0x20]
mov qword [r13 + 0x20], rdx
mov qword [rax + 0x20], rcx
mov rcx, qword [r13 + 0x28]
mov rdx, qword [rax + 0x28]
mov qword [r13 + 0x28], rdx
mov qword [rax + 0x28], rcx
mov rcx, qword [r13 + 0x30]
mov rdx, qword [rax + 0x30]
mov qword [r13 + 0x30], rdx
mov qword [rax + 0x30], rcx
mov r14, qword [rdi - 0x30]
mov r8, qword [rdi - 0x28]
mov rcx, r8
and rcx, 0xfffffffffffffff8
je 0x14009a190
mov rax, qword [rsp + 0x58]
mov r12, qword [rsp + 0x38]
mov r10, qword [rsp + 0x48]
xor edx, edx
mov r9, qword [rsp + 0x40]
nop word cs:[rax + rax]
add r9, r12
rol r12, 0xd
mov rbp, qword [r14 + rdx]
xor r12, r9
rol r9, 0x20
xor r10, rbp
add rax, r10
rol r10, 0x10
xor r10, rax
add r9, r10
rol r10, 0x15
add rax, r12
rol r12, 0x11
xor r12, rax
rol rax, 0x20
xor r10, r9
xor r9, rbp
add rdx, 8
cmp rdx, rcx
jb 0x14009a100
movq xmm3, r10
movq xmm2, r12
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r9
punpcklqdq xmm3, xmm4
mov r12d, r8d
and r12d, 7
cmp r12d, 4
jb 0x14009a1a7
mov r9d, dword [r14 + rdx]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r12
jb 0x14009a1b8
jmp 0x14009a1d2
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor edx, edx
mov r12d, r8d
and r12d, 7
cmp r12d, 4
jae 0x14009a16c
xor r9d, r9d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r12
jae 0x14009a1d2
lea rcx, [r14 + rax]
movzx r10d, word [rdx + rcx]
lea ecx, [rax*8]
shl r10, cl
or r9, r10
or rax, 2
cmp rax, r12
jae 0x14009a1f0
add rdx, rax
movzx edx, byte [r14 + rdx]
shl eax, 3
mov ecx, eax
shl rdx, cl
or r9, rdx
jmp 0x14009a1f9
test r12, r12
je 0x14009a28b
lea ecx, [r12*8]
mov edx, 0xff
shl rdx, cl
or rdx, r9
cmp r12, 7
jne 0x14009a290
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, rdx
movq r9, xmm2
paddq xmm2, xmm3
movq rax, xmm2
rol r9, 0xd
xor r9, rax
rol rax, 0x20
pshufd xmm2, xmm3, 0xee
movq r10, xmm2
add r10, rcx
rol rcx, 0x10
xor rcx, r10
add rax, rcx
rol rcx, 0x15
add r10, r9
rol r9, 0x11
xor rcx, rax
xor r9, r10
movq xmm3, rcx
movq xmm2, r9
punpcklqdq xmm2, xmm3
rol r10, 0x20
xor rax, rdx
movq xmm4, r10
movq xmm3, rax
punpcklqdq xmm3, xmm4
xor edx, edx
jmp 0x14009a290
mov edx, 0xff
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq r14, xmm4
shl r8, 0x38
movabs r9, 0x100000000000000
add r8, r9
or r8, rdx
paddq xmm2, xmm3
rol rcx, 0xd
movq rdx, xmm2
xor rcx, rdx
rol rdx, 0x20
xor r14, r8
add rax, r14
rol r14, 0x10
xor r14, rax
add rdx, r14
rol r14, 0x15
add rax, rcx
rol rcx, 0x11
xor r14, rdx
xor rcx, rax
rol rax, 0x20
xor rdx, r8
add rdx, rcx
rol rcx, 0xd
xor rcx, rdx
rol rdx, 0x20
xor rax, 0xff
add rax, r14
rol r14, 0x10
xor r14, rax
add rdx, r14
rol r14, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r14, rdx
add rdx, rcx
rol rcx, 0xd
xor rcx, rdx
rol rdx, 0x20
add rax, r14
rol r14, 0x10
xor r14, rax
add rdx, r14
rol r14, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r14, rdx
add rdx, rcx
rol rcx, 0xd
add rax, r14
rol r14, 0x10
xor r14, rax
rol r14, 0x15
xor rcx, rdx
add rax, rcx
rol rcx, 0x11
mov rdx, rax
rol rdx, 0x20
xor rdx, rcx
xor rdx, r14
xor rdx, rax
mov rax, rsi
and rax, rdx
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov r8, rax
test ecx, ecx
jne 0x14009a3c8
mov r9d, 0x10
mov r8, rax
nop dword [rax]
add r8, r9
and r8, rsi
movdqu xmm2, xmmword [rbx + r8]
pmovmskb ecx, xmm2
add r9, 0x10
test ecx, ecx
je 0x14009a3b0
tzcnt ecx, ecx
add rcx, r8
and rcx, rsi
cmp byte [rbx + rcx], 0
js 0x14009a3e4
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov r8, r11
sub r8, rax
mov r9, rcx
sub r9, rax
xor r9, r8
and r9, rsi
cmp r9, 0x10
jb 0x14009a010
mov rax, rcx
not rax
imul rax, rax, 0x38
add rax, rbx
movzx r8d, byte [rbx + rcx]
shr rdx, 0x39
lea r9, [rcx - 0x10]
and r9, rsi
mov byte [rbx + rcx], dl
mov byte [rbx + r9 + 0x10], dl
cmp r8b, 0xff
je 0x14009a490
imul rcx, rcx, 0xffffffffffffffc8
add rcx, rbx
cmp r13, rcx
jae 0x14009a070
cmp rax, qword [rsp + 0x20]
jae 0x14009a070
mov rax, 0xffffffffffffffc8
nop dword [rax]
movzx edx, byte [r15 + rax]
movzx r8d, byte [rcx + rax]
mov byte [r15 + rax], r8b
mov byte [rcx + rax], dl
movzx edx, byte [r15 + rax + 1]
movzx r8d, byte [rcx + rax + 1]
mov byte [r15 + rax + 1], r8b
mov byte [rcx + rax + 1], dl
add rax, 2
jne 0x14009a450
jmp 0x14009a0c8
lea rcx, [r11 - 0x10]
and rcx, rsi
mov byte [rbx + r11], 0xff
mov byte [rbx + rcx + 0x10], 0xff
mov rcx, qword [r13 + 0x30]
mov qword [rax + 0x30], rcx
movdqu xmm2, xmmword [r13]
movdqu xmm3, xmmword [r13 + 0x10]
movdqu xmm4, xmmword [r13 + 0x20]
movdqu xmmword [rax + 0x20], xmm4
movdqu xmmword [rax + 0x10], xmm3
movdqu xmmword [rax], xmm2
jmp 0x14009a023
cmp rsi, 8
mov rax, qword [rsp + 0x50]
cmovb rax, rsi
movabs r14, 0x7ffffffffffffff0
mov r15, qword [rsp + 0x28]
sub rax, qword [rsp + 0x30]
mov qword [r15 + 0x10], rax
add r14, 0x11
mov rax, r14
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret