Function at 0x140023460
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
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x60], rdx
mov r12, qword [rcx + 0x18]
cmp r12, 0xffffffffffffffff
je 0x140023d55
mov r15, qword [rcx + 8]
lea rbp, [r15 + 1]
mov rax, rbp
shr rax, 3
mov r8, rbp
and r8, 0xfffffffffffffff8
sub r8, rax
cmp r15, 8
cmovb r8, r15
mov rax, r8
shr rax, 1
cmp r12, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x68], r12
jae 0x1400234f3
mov qword [rsp + 0x70], r8
mov rbx, qword [rcx]
mov rcx, rbp
shr rcx, 4
xor eax, eax
test bpl, 0xf
setne al
add rax, rcx
je 0x140023831
cmp rax, 1
jne 0x1400237c0
xor edx, edx
jmp 0x140023817
lea rax, [r12 + 1]
inc r8
cmp rax, r8
cmova r8, rax
cmp r8, 8
jae 0x14002351b
xor eax, eax
cmp r8, 4
setae al
lea rdi, [rax*4 + 4]
jmp 0x14002355f
mov rax, r8
shr rax, 0x3d
jne 0x140023d55
shl r8, 3
movabs rcx, 0x2492492492492493
mov rax, r8
mul rcx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 2
dec r8
bsr rcx, r8
not ecx
mov rdi, 0xffffffffffffffff
shr rdi, cl
inc rdi
mov ecx, 0x30
mov rax, rdi
mul rcx
jo 0x140023d55
mov r13, rax
lea r12, [rdi + 0x10]
mov rbx, rax
add rbx, r12
jb 0x140023d55
movabs rax, 0x7ffffffffffffff1
cmp rbx, rax
jae 0x140023d55
movzx eax, byte [0x140060240]
xor ecx, ecx
mov rdx, rbx
call fcn.14001dfe0
test rax, rax
je 0x140023d5a
mov rsi, rax
lea r14, [rdi - 1]
mov rax, rdi
shr rax, 3
mov rcx, rdi
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rdi, 9
cmovb rcx, r14
mov qword [rsp + 0x48], rcx
lea rbx, [rsi + r13]
mov rcx, rbx
mov dl, 0xff
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov r12, qword [rsp + 0x68]
test r12, r12
je 0x14002375d
mov qword [rsp + 0x40], rbp
lea rax, [rsi + r13]
add rax, 0xffffffffffffffd0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
mov rdi, qword [rax]
movdqa xmm0, xmmword [rdi]
pmovmskb r13d, xmm0
not r13d
lea rax, [rdi - 0x30]
mov qword [rsp + 0x50], rax
xor ebp, ebp
mov qword [rsp + 0x28], rdi
mov rsi, r12
jmp 0x140023696
lea ecx, [r13 - 1]
and ecx, r13d
dec rsi
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r14
mov byte [rbx + rdx], al
mov byte [rbx + r8 + 0x10], al
shl r12, 4
lea rax, [r12 + r12*2]
mov r8, qword [rsp + 0x50]
sub r8, rax
shl rdx, 4
lea rax, [rdx + rdx*2]
mov rdx, qword [rsp + 0x58]
sub rdx, rax
movdqu xmm0, xmmword [r8]
movdqu xmm1, xmmword [r8 + 0x10]
movups xmm2, xmmword [r8 + 0x20]
movups xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx], xmm0
mov r13d, ecx
test rsi, rsi
je 0x14002374c
test r13w, r13w
jne 0x1400236be
nop dword [rax]
movdqa xmm0, xmmword [rdi + 0x10]
add rdi, 0x10
pmovmskb r13d, xmm0
add rbp, 0x10
cmp r13d, 0xffff
je 0x1400236a0
not r13d
tzcnt r12d, r13d
add r12, rbp
mov rax, r12
neg rax
lea rax, [rax + rax*2]
shl rax, 4
mov rcx, qword [rsp + 0x28]
mov r8, qword [rcx + rax - 0x28]
mov r9, qword [rcx + rax - 0x20]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x30]
call fcn.14000ff70
mov rcx, r14
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140023727
mov r8d, 0x10
nop dword [rax + rax]
add rcx, r8
and rcx, r14
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140023710
tzcnt edx, edx
add rdx, rcx
and rdx, r14
cmp byte [rbx + rdx], 0
js 0x140023630
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140023630
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x40]
jmp 0x14002376c
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov qword [rax], rbx
mov qword [rax + 8], r14
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
test r15, r15
je 0x140023d37
mov ecx, 0x30
mov rax, rbp
mul rcx
add r15, rax
cmp r15, 0xffffffffffffffef
je 0x140023d37
mov r8, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [0x1400601e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140023d37
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x140025580]
nop dword [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8]
por xmm1, xmm0
movdqa xmmword [rbx + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x1400237e0
test al, 1
je 0x140023831
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x140025580]
movdqa xmmword [rbx + rdx], xmm0
cmp rbp, 0x10
jae 0x140023852
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memmove
test rbp, rbp
jne 0x14002385b
xor ecx, ecx
jmp 0x140023d29
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rbp], xmm0
lea rbp, [rbx - 0x30]
movabs rax, 0x736f6d6570736575
mov rdx, qword [rsp + 0x60]
xor rax, rdx
mov qword [rsp + 0x58], rax
movabs rax, 0x646f72616e646f6d
mov rcx, qword [rsp + 0x30]
xor rax, rcx
mov qword [rsp + 0x50], rax
movabs rax, 0x6c7967656e657261
xor rax, rdx
mov qword [rsp + 0x48], rax
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov r12, rbx
xor edi, edi
mov qword [rsp + 0x78], r15
jmp 0x1400238e8
shr rax, 0x39
lea rcx, [rdi - 0x10]
and rcx, r15
mov byte [rbx + rdi], al
mov byte [rbx + rcx + 0x10], al
xor ecx, ecx
lea rax, [rdi + 1]
add r12, 0xffffffffffffffd0
cmp rdi, r15
mov rdi, rax
je 0x140023d24
cmp cl, byte [rbx + rdi]
jno 0x1400238d4
mov rax, rdi
shl rax, 4
lea rax, [rax + rax*2]
mov r9, rbp
sub r9, rax
mov rcx, rbx
sub rcx, rax
mov qword [rsp + 0x80], rcx
mov rax, rdi
neg rax
lea rax, [rax + rax*2]
shl rax, 4
add rax, rbx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r9
jmp 0x140023966
movups xmm0, xmmword [r9]
movups xmm1, xmmword [rcx]
movups xmmword [r9], xmm1
movups xmmword [rcx], xmm0
movups xmm0, xmmword [r9 + 0x10]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r9 + 0x10], xmm1
movups xmmword [rcx + 0x10], xmm0
movdqu xmm0, xmmword [r9 + 0x20]
movdqu xmm1, xmmword [rcx + 0x20]
movdqu xmmword [r9 + 0x20], xmm1
movdqu xmmword [rcx + 0x20], xmm0
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax - 0x28]
mov r13, qword [rax - 0x20]
mov rax, r13
and rax, 0xfffffffffffffff8
je 0x140023a10
mov r10, qword [rsp + 0x48]
mov r9, qword [rsp + 0x50]
mov r11, qword [rsp + 0x40]
xor esi, esi
mov r14, qword [rsp + 0x58]
nop word cs:[rax + rax]
mov rcx, qword [rdx + rsi]
xor r11, rcx
add r14, r9
rol r9, 0xd
add r10, r11
xor r9, r14
rol r11, 0x10
xor r11, r10
rol r14, 0x20
add r10, r9
add r14, r11
rol r9, 0x11
xor r9, r10
rol r11, 0x15
rol r10, 0x20
xor r11, r14
xor r14, rcx
add rsi, 8
cmp rsi, rax
jb 0x1400239a0
mov r8d, r13d
and r8d, 7
cmp r8d, 4
jb 0x140023a33
mov edi, dword [rdx + rsi]
mov eax, 4
mov ecx, eax
or ecx, 1
cmp ecx, r8d
jb 0x140023a41
jmp 0x140023a65
mov r11, qword [rsp + 0x40]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
xor esi, esi
mov r8d, r13d
and r8d, 7
cmp r8d, 4
jae 0x1400239f0
xor edi, edi
xor eax, eax
mov ecx, eax
or ecx, 1
cmp ecx, r8d
jae 0x140023a65
lea rcx, [rdx + rax]
mov r15, rbp
movzx ebp, word [rsi + rcx]
lea ecx, [rax*8]
shl rbp, cl
or rdi, rbp
mov rbp, r15
mov r15, qword [rsp + 0x78]
or rax, 2
cmp eax, r8d
jae 0x140023a80
add rsi, rax
movzx edx, byte [rdx + rsi]
shl eax, 3
mov ecx, eax
shl rdx, cl
or rdi, rdx
jmp 0x140023a85
test r8, r8
je 0x140023ad8
lea ecx, [r8*8]
mov eax, 0xff
shl rax, cl
or rax, rdi
cmp r8, 7
jne 0x140023ae0
xor r11, rax
add r14, r9
add r10, r11
rol r9, 0xd
rol r11, 0x10
xor r9, r14
xor r11, r10
rol r14, 0x20
add r10, r9
add r14, r11
rol r9, 0x11
xor r9, r10
rol r11, 0x15
xor r11, r14
rol r10, 0x20
xor r14, rax
xor eax, eax
jmp 0x140023ae0
mov eax, 0xff
nop dword [rax]
mov rdi, qword [rsp + 0x30]
shl r13, 0x38
movabs rcx, 0x100000000000000
add r13, rcx
or r13, rax
xor r11, r13
add r14, r9
rol r9, 0xd
add r10, r11
xor r9, r14
rol r11, 0x10
xor r11, r10
rol r14, 0x20
add r10, r9
add r14, r11
rol r9, 0x11
xor r9, r10
rol r11, 0x15
rol r10, 0x20
xor r11, r14
xor r14, r13
xor r10, 0xff
add r14, r9
add r10, r11
rol r9, 0xd
xor r9, r14
rol r11, 0x10
rol r14, 0x20
xor r11, r10
add r10, r9
rol r9, 0x11
add r14, r11
xor r9, r10
rol r11, 0x15
xor r11, r14
rol r10, 0x20
add r14, r9
add r10, r11
rol r9, 0xd
xor r9, r14
rol r11, 0x10
rol r14, 0x20
xor r11, r10
add r10, r9
rol r9, 0x11
add r14, r11
xor r9, r10
rol r11, 0x15
xor r11, r14
rol r10, 0x20
add r14, r9
add r10, r11
rol r9, 0xd
xor r9, r14
rol r11, 0x10
xor r11, r10
add r10, r9
rol r9, 0x11
rol r11, 0x15
mov rax, r10
rol rax, 0x20
xor rax, r9
xor rax, r11
xor rax, r10
mov rcx, r15
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb r8d, xmm0
mov rdx, rcx
test r8d, r8d
jne 0x140023c09
mov r9d, 0x10
mov rdx, rcx
nop word cs:[rax + rax]
add rdx, r9
and rdx, r15
movdqu xmm0, xmmword [rbx + rdx]
pmovmskb r8d, xmm0
add r9, 0x10
test r8d, r8d
je 0x140023bf0
tzcnt r8d, r8d
add r8, rdx
and r8, r15
cmp byte [rbx + r8], 0
js 0x140023c28
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt r8d, edx
mov rdx, rdi
sub rdx, rcx
mov r9, r8
sub r9, rcx
xor r9, rdx
and r9, r15
cmp r9, 0x10
jb 0x1400238c0
mov rcx, r8
shl rcx, 4
lea rdx, [rcx + rcx*2]
mov rcx, rbp
sub rcx, rdx
movzx r9d, byte [rbx + r8]
shr rax, 0x39
lea r10, [r8 - 0x10]
and r10, r15
mov byte [rbx + r8], al
mov byte [rbx + r10 + 0x10], al
cmp r9b, 0xff
je 0x140023cf0
neg rdx
add rdx, rbx
mov r9, qword [rsp + 0x28]
cmp r9, rdx
setae al
cmp rcx, qword [rsp + 0x80]
setae r8b
or r8b, al
jne 0x140023930
mov rax, 0xffffffffffffffd0
nop word cs:[rax + rax]
movzx ecx, byte [r12 + rax]
movzx r8d, byte [rdx + rax]
mov byte [r12 + rax], r8b
mov byte [rdx + rax], cl
movzx ecx, byte [r12 + rax + 1]
movzx r8d, byte [rdx + rax + 1]
mov byte [r12 + rax + 1], r8b
mov byte [rdx + rax + 1], cl
add rax, 2
jne 0x140023cb0
jmp 0x140023966
lea rax, [rdi - 0x10]
and rax, r15
mov byte [rbx + rdi], 0xff
mov byte [rbx + rax + 0x10], 0xff
mov rax, qword [rsp + 0x28]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm2
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x1400238d2
mov rcx, qword [rsp + 0x70]
sub rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14000ed50
mov rcx, rbx
call fcn.14000ed90
int3