Function at 0x14007d450
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 0x14007d5d0
mov rbx, rdx
mov r10, rcx
mov rsi, qword [rcx + 8]
lea rdi, [rsi + 1]
mov rdx, rdi
shr rdx, 3
mov rcx, rdi
and rcx, 0xfffffffffffffff8
sub rcx, rdx
cmp rsi, 8
cmovb rcx, rsi
movabs r8, 0x7ffffffffffffff0
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x30], r10
jbe 0x14007d4e1
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
mov qword [rsp + 0x28], rbx
jae 0x14007d50e
xor eax, eax
cmp rcx, 4
setae al
lea r12, [rax*4 + 4]
jmp 0x14007d568
mov r14, qword [r10]
mov rcx, rdi
shr rcx, 4
xor eax, eax
test dil, 0xf
setne al
add rax, rcx
je 0x14007d830
cmp rax, 1
jne 0x14007d7c1
xor ecx, ecx
jmp 0x14007d818
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp rcx, rax
jae 0x14007d5d0
shl rcx, 3
mov r12d, 1
cmp rcx, 0xe
jb 0x14007d568
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 0x14007d5d0
mov r13, rax
add r13, 0xf
and r13, 0xfffffffffffffff0
lea r15, [r12 + 0x10]
mov rbx, r13
add rbx, r15
jb 0x14007d5d0
cmp rbx, r8
ja 0x14007d5d0
test rbx, rbx
je 0x14007d5d2
movzx eax, byte [0x140228121]
mov rcx, qword [0x140228110]
test rcx, rcx
jne 0x14007d5be
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14007d5d0
mov rcx, rax
mov qword [0x140228110], rax
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapAlloc
mov rbx, rax
test rax, rax
jne 0x14007d5d7
ud2
mov ebx, 0x10
mov qword [rsp + 0x48], rdi
lea r14, [r12 - 1]
mov rax, r12
shr rax, 3
mov rdi, r12
and rdi, 0xfffffffffffffff8
sub rdi, rax
cmp r12, 9
cmovb rdi, r14
add rbx, r13
mov rcx, rbx
mov dl, 0xff
mov r8, r15
call sub.msvcrt.dll_memset
mov r9, qword [rsp + 0x30]
mov r8, qword [r9]
test rbp, rbp
je 0x14007d762
mov qword [rsp + 0x40], rdi
movdqa xmm0, xmmword [r8]
pmovmskb edi, xmm0
not edi
mov rax, qword [rsp + 0x28]
movups xmm6, xmmword [rax]
xor r13d, r13d
mov qword [rsp + 0x28], rbp
mov r12, r8
mov qword [rsp + 0x38], r8
jmp 0x14007d699
lea ecx, [rdi - 1]
and ecx, edi
dec rbp
shr rax, 0x39
lea r10, [rdx - 0x10]
and r10, r14
mov byte [rbx + rdx], al
mov byte [r10 + rbx + 0x10], al
not r15
lea rax, [r15 + r15*2]
not rdx
lea rdx, [rdx + rdx*2]
mov r10, qword [r8 + rax*8 + 0x10]
mov qword [rbx + rdx*8 + 0x10], r10
movdqu xmm0, xmmword [r8 + rax*8]
movdqu xmmword [rbx + rdx*8], xmm0
mov edi, ecx
test rbp, rbp
je 0x14007d756
test di, di
jne 0x14007d6bd
nop
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb edi, xmm0
add r13, 0x10
cmp edi, 0xffff
je 0x14007d6a0
not edi
tzcnt r15d, edi
add r15, r13
mov rax, r15
neg rax
lea rax, [rax + rax*2]
mov rdx, qword [r8 + rax*8 - 0x10]
mov r8, qword [r8 + rax*8 - 8]
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x50]
call fcn.140087f50
mov rcx, rax
and rcx, r14
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14007d727
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r14
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14007d710
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
tzcnt edx, edx
add rdx, rcx
and rdx, r14
cmp byte [rbx + rdx], 0
js 0x14007d650
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14007d650
mov rax, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x40]
jmp 0x14007d764
xor eax, eax
sub rdi, rax
mov qword [r9], rbx
mov qword [r9 + 8], r14
mov qword [r9 + 0x10], rdi
mov qword [r9 + 0x18], rax
test rsi, rsi
movabs rdi, 0x7ffffffffffffff0
je 0x14007dfcd
mov ecx, 0x18
mov rax, qword [rsp + 0x48]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x14007dfcd
sub r8, rax
mov rcx, qword [0x140228110]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x14007dfcd
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x14018e870]
nop dword [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + rcx]
por xmm1, xmm0
movdqa xmmword [r14 + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [r14 + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x14007d7e0
test al, 1
je 0x14007d830
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rcx]
por xmm0, xmmword [0x14018e870]
movdqa xmmword [r14 + rcx], xmm0
cmp rdi, 0x10
jae 0x14007d857
lea rcx, [r14 + 0x10]
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memmove
mov r10, qword [rsp + 0x30]
cmp rsi, 0xffffffffffffffff
jne 0x14007d862
xor eax, eax
jmp 0x14007dfbc
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + rdi], xmm0
movdqu xmm1, xmmword [rbx]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [0x14018e880]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x14018e890]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x38], xmm2
movq qword [rsp + 0x28], xmm0
movq qword [rsp + 0x48], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x40], xmm2
xor r12d, r12d
jmp 0x14007d8d6
shr r11, 0x39
lea rax, [r12 - 0x10]
and rax, rsi
mov byte [rbx + r12], r11b
mov byte [rax + r14 + 0x10], r11b
lea rax, [r12 + 1]
cmp r12, rsi
mov r12, rax
je 0x14007df9a
cmp byte [r14 + r12], 0x80
jne 0x14007d8c5
mov rax, r12
not rax
lea rax, [rax + rax*2]
lea r13, [r14 + rax*8]
mov rbp, r12
neg rbp
mov rbx, r14
nop word cs:[rax + rax]
lea rax, [rbp*2]
add rax, rbp
mov r15, qword [rbx + rax*8 - 0x10]
mov rdx, qword [rbx + rax*8 - 8]
mov rcx, rdx
and rcx, 0xfffffffffffffff8
je 0x14007d9d0
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov r11, qword [rsp + 0x38]
xor edi, edi
mov r8, qword [rsp + 0x28]
nop dword [rax + rax]
add r8, r9
rol r9, 0xd
mov r10, qword [r15 + rdi]
xor r9, r8
rol r8, 0x20
xor r11, r10
add rax, r11
rol r11, 0x10
xor r11, rax
add r8, r11
rol r11, 0x15
add rax, r9
rol r9, 0x11
xor r9, rax
rol rax, 0x20
xor r11, r8
xor r8, r10
add rdi, 8
cmp rdi, rcx
jb 0x14007d940
movq xmm3, r11
movq xmm2, r9
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r8
punpcklqdq xmm3, xmm4
mov r10, qword [rsp + 0x30]
mov r11d, edx
and r11d, 7
cmp r11d, 4
jb 0x14007d9e7
mov r8d, dword [r15 + rdi]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r11
jb 0x14007d9f8
jmp 0x14007da12
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor edi, edi
mov r11d, edx
and r11d, 7
cmp r11d, 4
jae 0x14007d9b1
xor r8d, r8d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r11
jae 0x14007da12
lea rcx, [rax + rdi]
movzx r9d, word [r15 + rcx]
lea ecx, [rax*8]
shl r9, cl
or r8, r9
or rax, 2
cmp rax, r11
jae 0x14007da30
add rdi, rax
movzx r9d, byte [r15 + rdi]
shl eax, 3
mov ecx, eax
shl r9, cl
or r8, r9
jmp 0x14007da39
test r11, r11
je 0x14007db19
lea ecx, [r11*8]
mov r15d, 0xff
shl r15, cl
or r15, r8
cmp r11, 7
jne 0x14007dc3a
mov eax, 8
sub rax, r11
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, r15
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, r15
movq xmm4, rcx
movq xmm3, r8
punpcklqdq xmm3, xmm4
jmp 0x14007db1b
xor eax, eax
mov ecx, 1
sub rcx, rax
mov edi, ecx
and edi, 7
and rcx, 0xfffffffffffffff8
cmp rax, rcx
jae 0x14007dbf0
movq r8, xmm3
pshufd xmm4, xmm2, 0xee
movq r9, xmm4
movq r15, xmm2
pshufd xmm2, xmm3, 0xee
movq r11, xmm2
nop word cs:[rax + rax]
add r8, r15
rol r15, 0xd
xor r15, r8
rol r8, 0x20
xor r9, 0xff
add r11, r9
rol r9, 0x10
xor r9, r11
add r8, r9
rol r9, 0x15
add r11, r15
rol r15, 0x11
xor r15, r11
rol r11, 0x20
xor r9, r8
xor r8, 0xff
add rax, 8
cmp rax, rcx
jb 0x14007db60
movq xmm3, r9
movq xmm2, r15
punpcklqdq xmm2, xmm3
movq xmm4, r11
movq xmm3, r8
punpcklqdq xmm3, xmm4
xor eax, eax
cmp rdi, 4
setae al
cmp edi, 4
mov r8d, 0
mov ecx, 0xff
cmovae r8, rcx
shl rax, 2
jmp 0x14007dbf5
xor r8d, r8d
xor eax, eax
mov r9, rax
or r9, 1
lea ecx, [rax*8]
mov r15d, 0xff
shl r15, cl
mov rcx, rax
or rcx, 2
cmp r9, rdi
mov r9d, 0
cmovae r15, r9
cmovae rcx, rax
or r15, r8
cmp rcx, rdi
jae 0x14007dc3a
shl ecx, 3
mov eax, 0xff
shl rax, cl
or r15, rax
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq rdi, xmm4
shl rdx, 0x38
movabs r8, 0x100000000000000
add rdx, r8
or rdx, r15
paddq xmm2, xmm3
rol rcx, 0xd
movq r15, xmm2
xor rcx, r15
rol r15, 0x20
xor rdi, rdx
add rax, rdi
rol rdi, 0x10
xor rdi, rax
add r15, rdi
rol rdi, 0x15
add rax, rcx
rol rcx, 0x11
xor rdi, r15
xor rcx, rax
rol rax, 0x20
xor r15, rdx
add r15, rcx
rol rcx, 0xd
xor rcx, r15
rol r15, 0x20
xor rax, 0xff
add rax, rdi
rol rdi, 0x10
xor rdi, rax
add r15, rdi
rol rdi, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rdi, r15
add r15, rcx
rol rcx, 0xd
xor rcx, r15
rol r15, 0x20
add rax, rdi
rol rdi, 0x10
xor rdi, rax
add r15, rdi
rol rdi, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rdi, r15
add r15, rcx
rol rcx, 0xd
add rax, rdi
rol rdi, 0x10
xor rdi, rax
rol rdi, 0x15
xor rcx, r15
add rax, rcx
rol rcx, 0x11
mov r11, rax
rol r11, 0x20
xor r11, rcx
xor r11, rdi
xor r11, rax
mov rax, rsi
and rax, r11
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x14007dd77
mov r8d, 0x10
mov rdx, rax
nop word [rax + rax]
add rdx, r8
and rdx, rsi
movdqu xmm2, xmmword [rbx + rdx]
pmovmskb ecx, xmm2
add r8, 0x10
test ecx, ecx
je 0x14007dd60
tzcnt ecx, ecx
add rcx, rdx
and rcx, rsi
cmp byte [rbx + rcx], 0
js 0x14007dd93
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, rsi
cmp r8, 0x10
jb 0x14007d8b0
mov rax, rcx
not rax
lea rax, [rax + rax*2]
lea rax, [rbx + rax*8]
movzx edx, byte [rbx + rcx]
shr r11, 0x39
lea r8, [rcx - 0x10]
and r8, rsi
mov byte [rbx + rcx], r11b
mov byte [r8 + r14 + 0x10], r11b
cmp dl, 0xff
je 0x14007df70
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 rbx, qword [r10]
jmp 0x14007d900
lea rcx, [r12 - 0x10]
and rcx, rsi
mov byte [r14 + r12], 0xff
mov byte [rcx + r14 + 0x10], 0xff
mov rcx, qword [r13 + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm2, xmmword [r13]
movdqu xmmword [rax], xmm2
jmp 0x14007d8c5
mov rcx, qword [r10 + 8]
mov rbp, qword [r10 + 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 [r10 + 0x10], rax
movabs rdi, 0x7ffffffffffffff0
add rdi, 0x11
mov rax, rdi
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