Function at 0x140019850
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
movaps xmmword [rsp + 0x60], xmm6
mov rbp, qword [rcx + 0x18]
mov rax, rbp
inc rax
je 0x14001a3db
mov rbx, rdx
mov rdi, rcx
mov r14, qword [rcx + 8]
lea r8, [r14 + 1]
mov rdx, r8
shr rdx, 3
mov rcx, r8
and rcx, 0xfffffffffffffff8
sub rcx, rdx
cmp r14, 8
cmovb rcx, r14
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
jbe 0x1400198cd
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x1400198fa
xor eax, eax
cmp rcx, 4
setae al
lea r12, [rax*4 + 4]
jmp 0x140019954
mov rsi, qword [rdi]
mov rcx, r8
shr rcx, 4
xor eax, eax
test r8b, 0xf
setne al
add rax, rcx
je 0x140019c2a
cmp rax, 1
jne 0x140019bc7
xor ecx, ecx
jmp 0x140019c14
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp rcx, rax
jae 0x14001a3db
shl rcx, 3
mov r12d, 1
cmp rcx, 0xe
jb 0x140019954
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 0x14001a3db
mov rsi, rax
add rsi, 0xf
and rsi, 0xfffffffffffffff0
lea r15, [r12 + 0x10]
mov r13, rsi
add r13, r15
jb 0x14001a3db
movabs rax, 0x7ffffffffffffff0
cmp r13, rax
ja 0x14001a3db
test r13, r13
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x28], rbx
je 0x1400199e6
movzx eax, byte [0x1401be180]
mov rcx, qword [0x1401be0e8]
test rcx, rcx
jne 0x1400199ca
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400199dc
mov rcx, rax
mov qword [0x1401be0e8], rax
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapAlloc
mov rbx, rax
test rax, rax
jne 0x1400199eb
mov rcx, r13
call fcn.1400369e0
ud2
mov ebx, 0x10
lea r13, [r12 - 1]
mov rax, r12
shr rax, 3
mov rcx, r12
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r12, 9
cmovb rcx, r13
mov qword [rsp + 0x48], rcx
add rbx, rsi
mov rcx, rbx
mov dl, 0xff
mov r8, r15
call sub.msvcrt.dll_memset
mov r8, qword [rdi]
test rbp, rbp
je 0x140019b6d
mov qword [rsp + 0x38], rdi
movdqa xmm0, xmmword [r8]
pmovmskb edi, xmm0
not edi
mov rax, qword [rsp + 0x28]
movups xmm6, xmmword [rax]
xor esi, esi
mov qword [rsp + 0x28], rbp
mov r12, r8
mov qword [rsp + 0x30], r8
jmp 0x140019aa9
lea ecx, [rdi - 1]
and ecx, edi
dec rbp
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, r13
mov byte [rbx + rdx], al
mov byte [r9 + rbx + 0x10], al
not r15
lea rax, [r15 + r15*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 edi, ecx
test rbp, rbp
je 0x140019b61
test di, di
jne 0x140019acd
nop
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb edi, xmm0
add rsi, 0x10
cmp edi, 0xffff
je 0x140019ab0
not edi
tzcnt r15d, edi
add r15, rsi
mov rax, r15
neg rax
lea rax, [rax + rax*2]
mov rdx, qword [r8 + rax*8 - 0x18]
mov r8, qword [r8 + rax*8 - 8]
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x50]
call fcn.14001e550
mov rcx, rax
and rcx, r13
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140019b37
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r13
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140019b20
mov r8, qword [rsp + 0x30]
tzcnt edx, edx
add rdx, rcx
and rdx, r13
cmp byte [rbx + rdx], 0
js 0x140019a60
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140019a60
mov rdi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
jmp 0x140019b6f
xor eax, eax
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov qword [rdi], rbx
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rax
test r14, r14
je 0x14001a3b7
mov ecx, 0x18
mov rax, qword [rsp + 0x40]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add r14, rax
cmp r14, 0xffffffffffffffef
je 0x14001a3b7
sub r8, rax
mov rcx, qword [0x1401be0e8]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x14001a3b7
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x140146870]
nop
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rsi + rcx]
por xmm1, xmm0
movdqa xmmword [rsi + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rsi + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [rsi + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x140019be0
test al, 1
je 0x140019c2a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rsi + rcx]
por xmm0, xmmword [0x140146870]
movdqa xmmword [rsi + rcx], xmm0
cmp r8, 0x10
jae 0x140019c49
lea rcx, [rsi + 0x10]
mov rdx, rsi
call sub.msvcrt.dll_memmove
cmp r14, 0xffffffffffffffff
jne 0x140019c53
xor eax, eax
jmp 0x14001a3b0
movdqu xmm0, xmmword [rsi]
movdqu xmmword [rsi + r8], xmm0
mov qword [rsp + 0x38], rdi
movdqu xmm1, xmmword [rbx]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [0x140146880]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x140146890]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x30], xmm2
movq qword [rsp + 0x48], xmm0
movq qword [rsp + 0x40], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x28], xmm2
xor r12d, r12d
jmp 0x140019cc6
shr rdi, 0x39
lea rax, [r12 - 0x10]
and rax, r14
mov byte [rbx + r12], dil
mov byte [rax + rsi + 0x10], dil
lea rax, [r12 + 1]
cmp r12, r14
mov r12, rax
je 0x14001a389
cmp byte [rsi + r12], 0x80
jne 0x140019cb5
mov rax, r12
not rax
lea rax, [rax + rax*2]
lea r13, [rsi + rax*8]
mov rbp, r12
neg rbp
mov rbx, rsi
nop word cs:[rax + rax]
lea rax, [rbp*2]
add rax, rbp
mov r11, qword [rbx + rax*8 - 0x18]
mov rdx, qword [rbx + rax*8 - 8]
mov rcx, rdx
and rcx, 0xfffffffffffffff8
je 0x140019dc0
mov rax, qword [rsp + 0x28]
mov r9, qword [rsp + 0x40]
mov r15, qword [rsp + 0x30]
xor edi, edi
mov r8, qword [rsp + 0x48]
nop dword [rax + rax]
add r8, r9
rol r9, 0xd
mov r10, qword [r11 + rdi]
xor r9, r8
rol r8, 0x20
xor r15, r10
add rax, r15
rol r15, 0x10
xor r15, rax
add r8, r15
rol r15, 0x15
add rax, r9
rol r9, 0x11
xor r9, rax
rol rax, 0x20
xor r15, r8
xor r8, r10
add rdi, 8
cmp rdi, rcx
jb 0x140019d30
movq xmm3, r15
movq xmm2, r9
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r8
punpcklqdq xmm3, xmm4
mov r15d, edx
and r15d, 7
cmp r15d, 3
jbe 0x140019dd7
mov r8d, dword [r11 + rdi]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r15
jb 0x140019de8
jmp 0x140019e02
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor edi, edi
mov r15d, edx
and r15d, 7
cmp r15d, 3
ja 0x140019d9c
xor r8d, r8d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r15
jae 0x140019e02
lea rcx, [rax + rdi]
movzx r9d, word [r11 + rcx]
lea ecx, [rax*8]
shl r9, cl
or r8, r9
or rax, 2
cmp rax, r15
jae 0x140019e20
add rdi, rax
movzx r9d, byte [r11 + rdi]
shl eax, 3
mov ecx, eax
shl r9, cl
or r8, r9
jmp 0x140019e29
test r15, r15
je 0x140019f08
lea ecx, [r15*8]
mov edi, 0xff
shl rdi, cl
or rdi, r8
cmp r15, 7
jne 0x14001a031
mov eax, 8
sub rax, r15
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, rdi
movq xmm4, rcx
movdqa xmm5, xmm2
punpcklqdq xmm5, xmm4
paddq xmm3, xmm5
movq rcx, xmm3
rol rcx, 0x20
movdqa xmm4, xmm5
psrlq xmm4, 0x30
movdqa xmm6, xmm2
psrlq xmm6, 0x33
shufps xmm6, xmm4, 0xe4
psllq xmm5, 0x10
psllq xmm2, 0xd
shufps xmm2, xmm5, 0xe4
orps xmm2, xmm6
pxor xmm2, xmm3
pshufd xmm3, xmm3, 0xee
movq xmm4, rcx
punpcklqdq xmm3, xmm4
paddq xmm3, xmm2
movdqa xmm4, xmm2
psrlq xmm4, 0x2f
movdqa xmm5, xmm2
psrlq xmm5, 0x2b
movsd xmm5, xmm4
movdqa xmm4, xmm2
psllq xmm4, 0x11
psllq xmm2, 0x15
movsd xmm2, xmm4
orpd xmm2, xmm5
xorpd xmm2, xmm3
movq rcx, xmm3
rol rcx, 0x20
pshufd xmm3, xmm3, 0xee
movq r8, xmm3
xor r8, rdi
movq xmm4, rcx
movq xmm3, r8
punpcklqdq xmm3, xmm4
jmp 0x140019f0a
xor eax, eax
mov ecx, 1
sub rcx, rax
mov r11d, ecx
and r11d, 7
and rcx, 0xfffffffffffffff8
cmp rax, rcx
jae 0x140019fe0
movq r8, xmm3
pshufd xmm4, xmm2, 0xee
movq r9, xmm4
movq r15, xmm2
pshufd xmm2, xmm3, 0xee
movq rdi, xmm2
nop word cs:[rax + rax]
add r8, r15
rol r15, 0xd
xor r15, r8
rol r8, 0x20
xor r9, 0xff
add rdi, r9
rol r9, 0x10
xor r9, rdi
add r8, r9
rol r9, 0x15
add rdi, r15
rol r15, 0x11
xor r15, rdi
rol rdi, 0x20
xor r9, r8
xor r8, 0xff
add rax, 8
cmp rax, rcx
jb 0x140019f50
movq xmm3, r9
movq xmm2, r15
punpcklqdq xmm2, xmm3
movq xmm4, rdi
movq xmm3, r8
punpcklqdq xmm3, xmm4
xor eax, eax
cmp r11, 4
setae al
cmp r11d, 4
mov r8d, 0
mov ecx, 0xff
cmovae r8, rcx
shl rax, 2
jmp 0x140019fe5
xor r8d, r8d
xor eax, eax
mov r9, rax
lea ecx, [rax*8]
mov r10d, 0xff
shl r10, cl
or r9, 1
mov r15, rax
or r15, 2
cmp r9, r11
mov r9d, 0
cmovae r10, r9
cmovae r15, rax
or r10, r8
lea ecx, [r15*8]
mov edi, 0xff
shl rdi, cl
cmp r15, r11
cmovae rdi, r9
or rdi, r10
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq r11, xmm4
shl rdx, 0x38
movabs r8, 0x100000000000000
add rdx, r8
or rdx, rdi
paddq xmm2, xmm3
rol rcx, 0xd
movq rdi, xmm2
xor rcx, rdi
rol rdi, 0x20
xor r11, rdx
add rax, r11
rol r11, 0x10
xor r11, rax
add rdi, r11
rol r11, 0x15
add rax, rcx
rol rcx, 0x11
xor r11, rdi
xor rcx, rax
rol rax, 0x20
xor rdi, rdx
add rdi, rcx
rol rcx, 0xd
xor rcx, rdi
rol rdi, 0x20
xor rax, 0xff
add rax, r11
rol r11, 0x10
xor r11, rax
add rdi, r11
rol r11, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r11, rdi
add rdi, rcx
rol rcx, 0xd
xor rcx, rdi
rol rdi, 0x20
add rax, r11
rol r11, 0x10
xor r11, rax
add rdi, r11
rol r11, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r11, rdi
add rdi, rcx
rol rcx, 0xd
add rax, r11
rol r11, 0x10
xor r11, rax
rol r11, 0x15
xor rcx, rdi
add rax, rcx
rol rcx, 0x11
mov rdi, rax
rol rdi, 0x20
xor rdi, rcx
xor rdi, r11
xor rdi, rax
mov rax, r14
and rax, rdi
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x14001a167
mov r8d, 0x10
mov rdx, rax
nop
add rdx, r8
and rdx, r14
movdqu xmm2, xmmword [rbx + rdx]
pmovmskb ecx, xmm2
add r8, 0x10
test ecx, ecx
je 0x14001a150
tzcnt ecx, ecx
add rcx, rdx
and rcx, r14
cmp byte [rbx + rcx], 0
js 0x14001a183
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov rdx, r12
sub rdx, rax
mov r8, rcx
sub r8, rax
xor r8, rdx
and r8, r14
cmp r8, 0x10
jb 0x140019ca0
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, r14
mov byte [rbx + rcx], dil
mov byte [r8 + rsi + 0x10], dil
cmp dl, 0xff
je 0x14001a360
movzx ecx, byte [r13]
movzx edx, byte [rax]
mov byte [r13], dl
mov byte [rax], cl
movzx ecx, byte [r13 + 1]
movzx edx, byte [rax + 1]
mov byte [r13 + 1], dl
mov byte [rax + 1], cl
movzx ecx, byte [r13 + 2]
movzx edx, byte [rax + 2]
mov byte [r13 + 2], dl
mov byte [rax + 2], cl
movzx ecx, byte [r13 + 3]
movzx edx, byte [rax + 3]
mov byte [r13 + 3], dl
mov byte [rax + 3], cl
movzx ecx, byte [r13 + 4]
movzx edx, byte [rax + 4]
mov byte [r13 + 4], dl
mov byte [rax + 4], cl
movzx ecx, byte [r13 + 5]
movzx edx, byte [rax + 5]
mov byte [r13 + 5], dl
mov byte [rax + 5], cl
movzx ecx, byte [r13 + 6]
movzx edx, byte [rax + 6]
mov byte [r13 + 6], dl
mov byte [rax + 6], cl
movzx ecx, byte [r13 + 7]
movzx edx, byte [rax + 7]
mov byte [r13 + 7], dl
mov byte [rax + 7], cl
movzx ecx, byte [r13 + 8]
movzx edx, byte [rax + 8]
mov byte [r13 + 8], dl
mov byte [rax + 8], cl
movzx ecx, byte [r13 + 9]
movzx edx, byte [rax + 9]
mov byte [r13 + 9], dl
mov byte [rax + 9], cl
movzx ecx, byte [r13 + 0xa]
movzx edx, byte [rax + 0xa]
mov byte [r13 + 0xa], dl
mov byte [rax + 0xa], cl
movzx ecx, byte [r13 + 0xb]
movzx edx, byte [rax + 0xb]
mov byte [r13 + 0xb], dl
mov byte [rax + 0xb], cl
movzx ecx, byte [r13 + 0xc]
movzx edx, byte [rax + 0xc]
mov byte [r13 + 0xc], dl
mov byte [rax + 0xc], cl
movzx ecx, byte [r13 + 0xd]
movzx edx, byte [rax + 0xd]
mov byte [r13 + 0xd], dl
mov byte [rax + 0xd], cl
movzx ecx, byte [r13 + 0xe]
movzx edx, byte [rax + 0xe]
mov byte [r13 + 0xe], dl
mov byte [rax + 0xe], cl
movzx ecx, byte [r13 + 0xf]
movzx edx, byte [rax + 0xf]
mov byte [r13 + 0xf], dl
mov byte [rax + 0xf], cl
movzx ecx, byte [r13 + 0x10]
movzx edx, byte [rax + 0x10]
mov byte [r13 + 0x10], dl
mov byte [rax + 0x10], cl
movzx ecx, byte [r13 + 0x11]
movzx edx, byte [rax + 0x11]
mov byte [r13 + 0x11], dl
mov byte [rax + 0x11], cl
movzx ecx, byte [r13 + 0x12]
movzx edx, byte [rax + 0x12]
mov byte [r13 + 0x12], dl
mov byte [rax + 0x12], cl
movzx ecx, byte [r13 + 0x13]
movzx edx, byte [rax + 0x13]
mov byte [r13 + 0x13], dl
mov byte [rax + 0x13], cl
movzx ecx, byte [r13 + 0x14]
movzx edx, byte [rax + 0x14]
mov byte [r13 + 0x14], dl
mov byte [rax + 0x14], cl
movzx ecx, byte [r13 + 0x15]
movzx edx, byte [rax + 0x15]
mov byte [r13 + 0x15], dl
mov byte [rax + 0x15], cl
movzx ecx, byte [r13 + 0x16]
movzx edx, byte [rax + 0x16]
mov byte [r13 + 0x16], dl
mov byte [rax + 0x16], cl
movzx ecx, byte [r13 + 0x17]
movzx edx, byte [rax + 0x17]
mov byte [r13 + 0x17], dl
mov byte [rax + 0x17], cl
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
jmp 0x140019cf0
lea rcx, [r12 - 0x10]
and rcx, r14
mov byte [rsi + r12], 0xff
mov byte [rcx + rsi + 0x10], 0xff
mov rcx, qword [r13 + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm2, xmmword [r13]
movdqu xmmword [rax], xmm2
jmp 0x140019cb5
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rdi + 8]
mov rbp, qword [rdi + 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, rbp
mov qword [rdi + 0x10], rax
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400369a0
ud2