Function at 0x140099320
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 r10, qword [rcx + 0x18]
mov rax, r10
inc rax
je 0x140099471
mov r15, rdx
mov r9, rcx
mov rsi, qword [rcx + 8]
lea r14, [rsi + 1]
mov rcx, r14
shr rcx, 3
mov r11, r14
and r11, 0xfffffffffffffff8
sub r11, rcx
cmp rsi, 8
mov rdx, r11
cmovb rdx, rsi
movabs r8, 0x7ffffffffffffff0
mov rcx, rdx
shr rcx, 1
cmp rax, rcx
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r10
jbe 0x1400993b5
lea rcx, [rdx + 1]
cmp rax, rdx
cmova rcx, rax
cmp rcx, 8
jae 0x1400993e2
xor eax, eax
cmp rcx, 4
setae al
lea r12, [rax*4 + 4]
jmp 0x14009942c
mov rbx, qword [r9]
mov rcx, r14
shr rcx, 4
xor eax, eax
test r14b, 0xf
setne al
add rax, rcx
je 0x1400996da
cmp rax, 1
jne 0x140099670
xor ecx, ecx
jmp 0x1400996c4
movabs rax, 0x1ffffffffffffffe
or rax, 1
cmp rcx, rax
ja 0x140099471
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, 0x18
mov rax, r12
mul rcx
jo 0x140099471
mov r13, rax
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [r12 + 0x10]
mov rdx, r13
add rdx, rbp
jb 0x140099471
cmp rdx, r8
ja 0x140099471
test rdx, rdx
je 0x140099473
movzx eax, byte [0x140259141]
xor ecx, ecx
call fcn.14008b700
mov rbx, rax
test rax, rax
jne 0x140099478
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 rax, qword [rsp + 0x38]
mov r8, qword [rax]
mov rbp, qword [rsp + 0x30]
test rbp, rbp
je 0x14009960d
mov qword [rsp + 0x40], r14
movdqa xmm0, xmmword [r8]
mov rax, r15
pmovmskb r15d, xmm0
not r15d
movups xmm6, xmmword [rax]
xor r13d, r13d
mov r12, r8
mov qword [rsp + 0x28], r8
jmp 0x14009953c
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
lea rax, [r14 + r14*2]
not rdx
lea rdx, [rdx + rdx*2]
mov r9, qword [r8 + rax*8 + 0x10]
mov qword [rbx + rdx*8 + 0x10], r9
movdqu xmm0, xmmword [r8 + rax*8]
movdqu xmmword [rbx + rdx*8], xmm0
mov r15d, ecx
test rbp, rbp
je 0x140099601
test r15w, r15w
jne 0x140099570
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb r15d, xmm0
add r13, 0x10
cmp r15d, 0xffff
je 0x140099550
not r15d
tzcnt r14d, r15d
add r14, r13
mov rax, r14
neg rax
lea rax, [rax + rax*2]
mov rdx, qword [r8 + rax*8 - 0x10]
mov r8, qword [r8 + rax*8 - 8]
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0x60]
call fcn.14009db30
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1400995d7
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 0x1400995c0
mov r8, qword [rsp + 0x28]
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x1400994f0
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1400994f0
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
jmp 0x14009960f
xor eax, eax
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, qword [rsp + 0x38]
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rcx
test rsi, rsi
movabs rdi, 0x7ffffffffffffff0
je 0x140099bac
mov ecx, 0x18
mov rax, r14
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x140099bac
sub r8, rax
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x140099bac
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x1401ba240]
nop word [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 0x140099690
test al, 1
je 0x1400996da
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x1401ba240]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x50], r11
cmp r14, 0x10
jae 0x140099700
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call sub.msvcrt.dll_memmove
test r14, r14
jne 0x14009970a
xor ecx, ecx
jmp 0x140099b94
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
movdqu xmm1, xmmword [r15]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [0x1401ba250]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x1401ba260]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x28], xmm2
movq qword [rsp + 0x48], xmm0
movq qword [rsp + 0x40], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x58], xmm2
xor r11d, r11d
jmp 0x140099774
shr rdi, 0x39
lea rax, [r11 - 0x10]
and rax, rsi
mov byte [rbx + r11], dil
mov byte [rbx + rax + 0x10], dil
lea rax, [r11 + 1]
cmp r11, rsi
mov r11, rax
je 0x140099b87
cmp byte [rbx + r11], 0x80
jne 0x140099764
lea rax, [r11*8]
lea rax, [rax + rax*2]
mov rcx, r11
not rcx
lea rcx, [rcx + rcx*2]
lea r15, [rbx + rcx*8]
mov r13, rbx
sub r13, rax
mov rax, r11
neg rax
lea rax, [rax + rax*2]
lea rbp, [rbx + rax*8]
jmp 0x1400997ce
mov rcx, qword [r15 + 8]
movq qword [r15 + 8], xmm2
mov qword [rax + 8], rcx
mov rcx, qword [r15 + 0x10]
mov rdx, qword [rax + 0x10]
mov qword [r15 + 0x10], rdx
mov qword [rax + 0x10], rcx
mov r12, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rcx, rdx
and rcx, 0xfffffffffffffff8
je 0x140099880
mov rax, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov r9, qword [rsp + 0x28]
xor r14d, r14d
mov r8, qword [rsp + 0x48]
nop word [rax + rax]
add r8, rdi
rol rdi, 0xd
mov r10, qword [r12 + r14]
xor rdi, r8
rol r8, 0x20
xor r9, r10
add rax, r9
rol r9, 0x10
xor r9, rax
add r8, r9
rol r9, 0x15
add rax, rdi
rol rdi, 0x11
xor rdi, rax
rol rax, 0x20
xor r9, r8
xor r8, r10
add r14, 8
cmp r14, rcx
jb 0x140099800
movq xmm3, r9
movq xmm2, rdi
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r8
punpcklqdq xmm3, xmm4
mov edi, edx
and edi, 7
cmp edi, 4
jb 0x140099895
mov r8d, dword [r12 + r14]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jb 0x1400998a6
jmp 0x1400998c0
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor r14d, r14d
mov edi, edx
and edi, 7
cmp edi, 4
jae 0x140099869
xor r8d, r8d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jae 0x1400998c0
lea rcx, [r12 + rax]
movzx r9d, word [r14 + rcx]
lea ecx, [rax*8]
shl r9, cl
or r8, r9
or rax, 2
cmp rax, rdi
jae 0x1400998e0
add r14, rax
movzx r9d, byte [r12 + r14]
shl eax, 3
mov ecx, eax
shl r9, cl
or r8, r9
jmp 0x1400998e9
test rdi, rdi
je 0x14009997c
lea ecx, [rdi*8]
mov r14d, 0xff
shl r14, cl
or r14, r8
cmp rdi, 7
jne 0x140099990
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, r14
movq r8, xmm2
paddq xmm2, xmm3
movq rax, xmm2
rol r8, 0xd
xor r8, rax
rol rax, 0x20
pshufd xmm2, xmm3, 0xee
movq r9, xmm2
add r9, rcx
rol rcx, 0x10
xor rcx, r9
add rax, rcx
rol rcx, 0x15
add r9, r8
rol r8, 0x11
xor rcx, rax
xor r8, r9
movq xmm3, rcx
movq xmm2, r8
punpcklqdq xmm2, xmm3
rol r9, 0x20
xor rax, r14
movq xmm4, r9
movq xmm3, rax
punpcklqdq xmm3, xmm4
xor r14d, r14d
jmp 0x140099990
mov r14d, 0xff
nop word cs:[rax + rax]
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq r12, xmm4
shl rdx, 0x38
movabs r8, 0x100000000000000
add rdx, r8
or rdx, r14
paddq xmm2, xmm3
rol rcx, 0xd
movq r14, xmm2
xor rcx, r14
rol r14, 0x20
xor r12, rdx
add rax, r12
rol r12, 0x10
xor r12, rax
add r14, r12
rol r12, 0x15
add rax, rcx
rol rcx, 0x11
xor r12, r14
xor rcx, rax
rol rax, 0x20
xor r14, rdx
add r14, rcx
rol rcx, 0xd
xor rcx, r14
rol r14, 0x20
xor rax, 0xff
add rax, r12
rol r12, 0x10
xor r12, rax
add r14, r12
rol r12, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r12, r14
add r14, rcx
rol rcx, 0xd
xor rcx, r14
rol r14, 0x20
add rax, r12
rol r12, 0x10
xor r12, rax
add r14, r12
rol r12, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r12, r14
add r14, rcx
rol rcx, 0xd
add rax, r12
rol r12, 0x10
xor r12, rax
rol r12, 0x15
xor rcx, r14
add rax, rcx
rol rcx, 0x11
mov rdi, rax
rol rdi, 0x20
xor rdi, rcx
xor rdi, r12
xor rdi, rax
mov rax, rsi
and rax, rdi
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x140099ac7
mov r8d, 0x10
mov rdx, rax
nop dword [rax]
add rdx, r8
and rdx, rsi
movdqu xmm2, xmmword [rbx + rdx]
pmovmskb ecx, xmm2
add r8, 0x10
test ecx, ecx
je 0x140099ab0
tzcnt ecx, ecx
add rcx, rdx
and rcx, rsi
cmp byte [rbx + rcx], 0
js 0x140099ae3
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov rdx, r11
sub rdx, rax
mov r8, rcx
sub r8, rax
xor r8, rdx
and r8, rsi
cmp r8, 0x10
jb 0x140099750
mov rax, rcx
not rax
lea rax, [rax + rax*2]
lea rax, [rbx + rax*8]
movzx edx, byte [rbx + rcx]
shr rdi, 0x39
lea r8, [rcx - 0x10]
and r8, rsi
mov byte [rbx + rcx], dil
mov byte [rbx + r8 + 0x10], dil
cmp dl, 0xff
je 0x140099b60
shl rcx, 3
lea rcx, [rcx + rcx*2]
mov rdx, rbx
sub rdx, rcx
mov rcx, qword [r15]
mov r8, qword [rax]
mov qword [r15], r8
mov qword [rax], rcx
movq xmm2, qword [rax + 8]
cmp r15, rdx
jae 0x1400997b0
cmp rax, r13
jmp 0x1400997b0
lea rcx, [r11 - 0x10]
and rcx, rsi
mov byte [rbx + r11], 0xff
mov byte [rbx + rcx + 0x10], 0xff
mov rcx, qword [r15 + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm2, xmmword [r15]
movdqu xmmword [rax], xmm2
jmp 0x140099764
cmp rsi, 8
mov rcx, qword [rsp + 0x50]
cmovb rcx, rsi
sub rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movabs rdi, 0x7ffffffffffffff0
add rdi, 0x11
mov rax, rdi
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