Function at 0x14009cce0
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
mov r14, rcx
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rcx
inc rcx
je 0x14009d687
mov r12, rdx
mov rdi, qword [r14]
lea r15, [rdi + 1]
mov rax, r15
shr rax, 3
mov rdx, r15
and rdx, 0xfffffffffffffff8
sub rdx, rax
cmp rdi, 8
mov qword [rsp + 0x70], rdx
mov rax, rdx
cmovb rax, rdi
mov rdx, rax
shr rdx, 1
cmp rcx, rdx
mov qword [rsp + 0x20], rdi
jbe 0x14009cd6a
inc rax
cmp rcx, rax
cmova rax, rcx
cmp rax, 8
jae 0x14009cdf8
xor ecx, ecx
cmp rax, 4
setae cl
lea rbx, [rcx*4 + 4]
jmp 0x14009ce40
mov qword [rsp + 0x68], r14
mov r14, qword [r14 + 8]
xor eax, eax
movdqa xmm0, xmmword [0x14021f9e0]
xor edx, edx
jmp 0x14009cdb8
cmp rax, r15
mov rcx, rax
adc rcx, 0
cmp rax, r15
jae 0x14009cdce
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + rax]
por xmm1, xmm0
movdqa xmmword [r14 + rax], xmm1
mov dl, 1
mov rax, rcx
test dl, 1
je 0x14009cd90
add rax, 0xf
jb 0x14009cdce
cmp rax, r15
jae 0x14009cdce
lea rcx, [rax + 1]
jmp 0x14009cd9f
cmp r15, 0x10
jae 0x14009ceb2
lea rcx, [r14 + 0x10]
mov rdx, r14
mov r8, r15
call sub.msvcrt.dll_memmove
cmp rdi, 0xffffffffffffffff
jne 0x14009cebd
xor ecx, ecx
jmp 0x14009d463
mov ecx, 8
mul rcx
jo 0x14009d687
mov rcx, rax
movabs rdx, 0x2492492492492493
mul rdx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 2
dec rcx
bsr rcx, rcx
xor ecx, 0x3f
mov rbx, 0xffffffffffffffff
shr rbx, cl
inc rbx
je 0x14009d66d
mov ecx, 0x68
mov rax, rbx
mul rcx
jo 0x14009d687
mov rdi, rax
add rdi, 0xf
and rdi, 0xfffffffffffffff0
lea r13, [rbx + 0x10]
mov rbp, rdi
add rbp, r13
jb 0x14009d687
je 0x14009d476
mov rcx, qword [0x14031a128]
test rcx, rcx
jne 0x14009ce92
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14009cea8
mov rcx, rax
mov qword [0x14031a128], rax
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapAlloc
mov rsi, rax
test rax, rax
jne 0x14009d47b
mov rcx, rbp
call fcn.140059410
ud2
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + r15], xmm0
mov rax, qword [r12]
mov rcx, qword [r12 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x58], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x50], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x48], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x40], rax
xor r9d, r9d
jmp 0x14009cf44
shr r15, 0x39
lea rax, [r9 - 0x10]
and rax, rdi
mov byte [r14 + r9], r15b
mov byte [rax + r14 + 0x10], r15b
lea rax, [r9 + 1]
cmp r9, rdi
mov r9, rax
je 0x14009d456
cmp byte [r14 + r9], 0x80
jne 0x14009cf34
mov rax, r9
not rax
imul rax, rax, 0x68
add rax, r14
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], r9
mov rax, r9
neg rax
imul rax, rax, 0x68
add rax, r14
add rax, 0xffffffffffffff98
mov qword [rsp + 0x38], rax
nop dword [rax + rax]
mov rax, qword [rsp + 0x38]
mov r9, qword [rax]
mov r12, qword [rax + 0x10]
mov r10d, r12d
and r10d, 7
mov rax, r12
and rax, 0xfffffffffffffff8
je 0x14009d020
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov r11, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x40]
xor r8d, r8d
nop word [rax + rax]
add r11, r15
rol r15, 0xd
mov rcx, qword [r9 + r8]
xor r15, r11
rol r11, 0x20
xor rsi, rcx
add r13, rsi
rol rsi, 0x10
xor rsi, r13
add r11, rsi
rol rsi, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor rsi, r11
xor r11, rcx
add r8, 8
cmp r8, rax
jb 0x14009cfc0
cmp r10d, 3
jbe 0x14009d03d
mov ebx, dword [r9 + r8]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r10
jb 0x14009d04d
jmp 0x14009d067
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov r11, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x40]
xor r8d, r8d
cmp r10d, 3
ja 0x14009d009
xor eax, eax
xor ebx, ebx
mov rcx, rax
or rcx, 1
cmp rcx, r10
jae 0x14009d067
lea rcx, [rax + r8]
movzx edx, word [r9 + rcx]
lea ecx, [rax*8]
shl rdx, cl
or rbx, rdx
or rax, 2
cmp rax, r10
jae 0x14009d090
add r8, rax
movzx edx, byte [r9 + r8]
shl eax, 3
mov ecx, eax
shl rdx, cl
or rbx, rdx
mov r9, qword [rsp + 0x28]
jmp 0x14009d09a
test r10, r10
mov r9, qword [rsp + 0x28]
je 0x14009d0f7
lea ecx, [r10*8]
mov edx, 0xff
shl rdx, cl
or rdx, rbx
cmp r10, 7
jne 0x14009d1e2
mov ecx, 8
add r11, r15
rol r15, 0xd
sub rcx, r10
xor r15, r11
rol r11, 0x20
xor rsi, rdx
add r13, rsi
rol rsi, 0x10
xor rsi, r13
add r11, rsi
rol rsi, 0x15
xor rsi, r11
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor r11, rdx
jmp 0x14009d0f9
xor ecx, ecx
mov edx, 1
sub rdx, rcx
mov r8d, edx
and r8d, 7
and rdx, 0xfffffffffffffff8
cmp rcx, rdx
jae 0x14009d190
nop word cs:[rax + rax]
add r11, r15
rol r15, 0xd
mov rax, rsi
xor r15, r11
rol r11, 0x20
xor rax, 0xff
add r13, rax
shld rax, rsi, 0x10
xor rax, r13
add r11, rax
rol rax, 0x15
add r13, r15
rol r15, 0x11
mov rsi, rax
xor r15, r13
rol r13, 0x20
xor rsi, r11
xor r11, 0xff
add rcx, 8
cmp rcx, rdx
jb 0x14009d120
xor edi, edi
cmp r8, 4
setae dil
shl rdi, 2
cmp r8d, 4
mov ebx, 0
mov eax, 0xff
cmovae rbx, rax
jmp 0x14009d194
xor edi, edi
xor ebx, ebx
mov rdx, rdi
lea ecx, [rdi*8]
mov eax, 0xff
shl rax, cl
or rdx, 1
mov rbp, rdi
or rbp, 2
cmp rdx, r8
cmovae rbp, rdi
mov edi, 0
cmovae rax, rdi
or rax, rbx
lea ecx, [rbp*8]
mov edx, 0xff
shl rdx, cl
cmp rbp, r8
cmovae rdx, rdi
or rdx, rax
mov rdi, qword [rsp + 0x20]
shl r12, 0x38
movabs rax, 0x100000000000000
add r12, rax
add r11, r15
rol r15, 0xd
or r12, rdx
xor r15, r11
rol r11, 0x20
xor rsi, r12
add r13, rsi
rol rsi, 0x10
xor rsi, r13
add r11, rsi
rol rsi, 0x15
add r13, r15
rol r15, 0x11
xor rsi, r11
xor r15, r13
rol r13, 0x20
xor r11, r12
add r11, r15
rol r15, 0xd
xor r15, r11
rol r11, 0x20
xor r13, 0xff
add r13, rsi
rol rsi, 0x10
xor rsi, r13
add r11, rsi
rol rsi, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor rsi, r11
add r11, r15
rol r15, 0xd
xor r15, r11
rol r11, 0x20
add r13, rsi
rol rsi, 0x10
xor rsi, r13
add r11, rsi
rol rsi, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor rsi, r11
add r11, r15
rol r15, 0xd
add r13, rsi
rol rsi, 0x10
xor rsi, r13
rol rsi, 0x15
xor r15, r11
add r13, r15
rol r15, 0x11
mov rax, r13
rol rax, 0x20
xor r15, r13
xor r15, rax
xor r15, rsi
mov rax, rdi
and rax, r15
movdqu xmm0, xmmword [r14 + rax]
pmovmskb ecx, xmm0
mov rdx, rax
test ecx, ecx
jne 0x14009d308
mov ebx, 0x10
mov rdx, rax
nop word cs:[rax + rax]
add rdx, rbx
and rdx, rdi
movdqu xmm0, xmmword [r14 + rdx]
pmovmskb ecx, xmm0
add rbx, 0x10
test ecx, ecx
je 0x14009d2f0
bsf cx, cx
movzx ebp, cx
add rbp, rdx
and rbp, rdi
cmp byte [r14 + rbp], 0
js 0x14009d32c
movdqa xmm0, xmmword [r14]
pmovmskb ecx, xmm0
bsf cx, cx
movzx ebp, cx
mov rdx, r9
sub rdx, rax
mov rcx, rbp
sub rcx, rax
xor rcx, rdx
and rcx, rdi
cmp rcx, 0xf
jbe 0x14009cf20
mov rax, rbp
not rax
imul rax, rax, 0x68
add rax, r14
movzx ecx, byte [r14 + rbp]
shr r15, 0x39
lea rdx, [rbp - 0x10]
and rdx, rdi
mov byte [r14 + rbp], r15b
mov byte [rdx + r14 + 0x10], r15b
cmp cl, 0xff
je 0x14009d400
mov rbp, qword [rsp + 0x60]
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rax]
movups xmmword [rbp], xmm1
movups xmmword [rax], xmm0
movups xmm0, xmmword [rbp + 0x10]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [rbp + 0x20]
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rbp + 0x30]
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rbp + 0x30], xmm1
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [rbp + 0x40]
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rax + 0x40], xmm0
movdqu xmm0, xmmword [rbp + 0x50]
movdqu xmm1, xmmword [rax + 0x50]
movdqu xmmword [rbp + 0x50], xmm1
movdqu xmmword [rax + 0x50], xmm0
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rax + 0x60]
mov qword [rbp + 0x60], rdx
mov qword [rax + 0x60], rcx
jmp 0x14009cf80
lea rcx, [r9 - 0x10]
and rcx, rdi
mov byte [r14 + r9], 0xff
mov byte [rcx + r14 + 0x10], 0xff
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdx + 0x60]
mov qword [rax + 0x60], rcx
movups xmm0, xmmword [rdx + 0x50]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rax + 0x40], xmm0
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movups xmm3, xmmword [rdx + 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
jmp 0x14009cf34
cmp rdi, 8
mov rcx, qword [rsp + 0x70]
cmovb rcx, rdi
sub rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x10], rcx
jmp 0x14009d652
mov esi, 0x10
add rsi, rdi
mov rcx, rsi
mov dl, 0xff
mov r8, r13
call sub.msvcrt.dll_memset
lea rbp, [rbx - 1]
mov rax, rbx
shr rax, 3
and rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbp, 8
cmovb rbx, rbp
mov rax, qword [rsp + 0x30]
sub rbx, rax
test r15, r15
je 0x14009d60a
mov qword [rsp + 0x38], rbx
mov rdi, qword [r14 + 8]
mov rax, r12
lea r12, [rdi - 0x68]
mov rbx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
xor r13d, r13d
jmp 0x14009d55d
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [rsi + rdx], al
mov byte [rcx + rsi + 0x10], al
mov rax, r13
not rax
imul rax, rax, 0x68
not rdx
imul rcx, rdx, 0x68
mov rdx, qword [rdi + rax + 0x60]
mov qword [rsi + rcx + 0x60], rdx
movups xmm0, xmmword [rdi + rax + 0x50]
movups xmmword [rsi + rcx + 0x50], xmm0
movups xmm0, xmmword [rdi + rax + 0x40]
movups xmmword [rsi + rcx + 0x40], xmm0
movdqu xmm0, xmmword [rdi + rax]
movdqu xmm1, xmmword [rdi + rax + 0x10]
movups xmm2, xmmword [rdi + rax + 0x20]
movups xmm3, xmmword [rdi + rax + 0x30]
movups xmmword [rsi + rcx + 0x30], xmm3
movups xmmword [rsi + rcx + 0x20], xmm2
movdqu xmmword [rsi + rcx + 0x10], xmm1
movdqu xmmword [rsi + rcx], xmm0
lea rax, [r13 + 1]
cmp r13, qword [rsp + 0x20]
mov r13, rax
je 0x14009d5e5
cmp byte [rdi + r13], 0
js 0x14009d54b
mov rax, r13
neg rax
imul rax, rax, 0x68
mov r8, qword [r12 + rax]
mov r9, qword [r12 + rax + 0x10]
mov rcx, rbx
mov rdx, qword [rsp + 0x28]
call fcn.14009cb60
mov rcx, rbp
and rcx, rax
movdqu xmm0, xmmword [rsi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14009d5ba
mov r8, rbx
mov ebx, 0x10
nop
add rcx, rbx
and rcx, rbp
movdqu xmm0, xmmword [rsi + rcx]
pmovmskb edx, xmm0
add rbx, 0x10
test edx, edx
je 0x14009d5a0
mov rbx, r8
bsf dx, dx
movzx edx, dx
add rdx, rcx
and rdx, rbp
cmp byte [rsi + rdx], 0
js 0x14009d4e0
movdqa xmm0, xmmword [rsi]
pmovmskb ecx, xmm0
bsf cx, cx
movzx edx, cx
jmp 0x14009d4e0
mov qword [r14], rbp
mov qword [r14 + 8], rsi
mov rax, qword [rsp + 0x38]
mov qword [r14 + 0x10], rax
mov rax, qword [rsp + 0x30]
mov qword [r14 + 0x18], rax
mov rbp, qword [rsp + 0x20]
test rbp, rbp
jne 0x14009d622
jmp 0x14009d652
mov rdi, qword [r14 + 8]
mov qword [r14], rbp
mov qword [r14 + 8], rsi
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], rax
mov rbp, qword [rsp + 0x20]
mov ecx, 0x68
mov rax, r15
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rbp, rax
cmp rbp, 0xffffffffffffffef
je 0x14009d652
sub rdi, rax
mov rcx, qword [0x14031a128]
xor edx, edx
mov r8, rdi
call fcn.1401f903c
movabs rax, 0x8000000000000001
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.attempt_to_add_with_overflowMissing_scheme
lea r8, str._a__
mov edx, 0x1c
call fcn.14002cb80
ud2
call fcn.1400593c0
ud2