Function at 0x140163810
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 rbx, qword [rcx + 0x18]
mov rax, rbx
inc rax
je 0x140164369
mov r15, rdx
mov rsi, rcx
mov r11, qword [rcx + 8]
lea r8, [r11 + 1]
mov rcx, r8
shr rcx, 3
mov r9, r8
and r9, 0xfffffffffffffff8
sub r9, rcx
cmp r11, 8
cmovb r9, r11
mov rcx, r9
shr rcx, 1
cmp rax, rcx
mov qword [rsp + 0x20], r11
jbe 0x14016389b
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
mov qword [rsp + 0x30], r8
jae 0x1401638cd
mov rbp, rbx
mov r14, rsi
xor eax, eax
cmp r9, 4
setae al
lea rbx, [rax*4 + 4]
jmp 0x140163922
mov qword [rsp + 0x68], r9
mov rdi, qword [rsi]
mov rcx, r8
shr rcx, 4
xor eax, eax
test r8b, 0xf
setne al
add rax, rcx
je 0x140163baa
cmp rax, 1
jne 0x140163b49
xor ecx, ecx
jmp 0x140163b94
mov rax, r9
shr rax, 0x3d
jne 0x140164369
mov rbp, rbx
mov r14, rsi
shl r9, 3
mov ebx, 1
cmp r9, 0xe
jb 0x140163922
movabs rcx, 0x2492492492492493
mov rax, r9
mul rcx
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 2
dec r9
bsr rcx, r9
not ecx
mov rbx, 0xffffffffffffffff
shr rbx, cl
inc rbx
mov ecx, 0x140
mov rax, rbx
mul rcx
jo 0x140164369
mov rdi, rax
lea r12, [rbx + 0x10]
mov r13, rax
add r13, r12
jb 0x140164369
movabs rax, 0x7ffffffffffffff1
cmp r13, rax
jae 0x140164369
test r13, r13
je 0x1401639a0
movzx eax, byte [0x1402448a8]
mov rcx, qword [0x1402443c8]
test rcx, rcx
jne 0x140163986
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140163996
mov rcx, rax
mov qword [0x1402443c8], rax
xor edx, edx
mov r8, r13
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
jne 0x1401639a5
mov rcx, r13
call fcn.140052e20
ud2
mov eax, 0x10
lea rsi, [rbx - 1]
mov rcx, rbx
shr rcx, 3
mov r13, rbx
and r13, 0xfffffffffffffff8
sub r13, rcx
cmp rbx, 9
cmovb r13, rsi
add rdi, rax
mov rcx, rdi
mov dl, 0xff
mov r8, r12
call sub.VCRUNTIME140.dll_memset
sub r13, rbp
mov rbx, qword [r14]
mov r8, qword [rsp + 0x20]
cmp r8, 0xffffffffffffffff
je 0x140163b0a
mov qword [rsp + 0x28], r13
mov rbp, r14
lea r14, [rbx - 0x140]
mov r12, qword [r15]
mov r15, qword [r15 + 8]
xor r13d, r13d
jmp 0x140163a62
shr rax, 0x39
lea rcx, [r8 - 0x10]
and rcx, rsi
mov byte [rdi + r8], al
mov byte [rcx + rdi + 0x10], al
mov rax, r13
not rax
lea rdx, [rax + rax*4]
shl rdx, 6
add rdx, rbx
not r8
lea rcx, [r8 + r8*4]
shl rcx, 6
add rcx, rdi
mov r8d, 0x140
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [rsp + 0x20]
lea rax, [r13 + 1]
cmp r13, r8
mov r13, rax
je 0x140163aef
cmp byte [rbx + r13], 0
js 0x140163a52
mov rax, r13
neg rax
lea rax, [rax + rax*4]
shl rax, 6
mov r8, qword [r14 + rax]
mov r9, qword [r14 + rax + 0x10]
mov rcx, r12
mov rdx, r15
call fcn.140029e30
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140163ac7
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140163ab0
tzcnt r8d, edx
add r8, rcx
and r8, rsi
cmp byte [rdi + r8], 0
js 0x140163a10
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt r8d, ecx
jmp 0x140163a10
mov qword [rbp], rdi
mov qword [rbp + 8], rsi
mov rax, qword [rsp + 0x28]
mov qword [rbp + 0x10], rax
test r8, r8
jne 0x140163b15
jmp 0x14016434b
mov qword [r14], rdi
mov qword [r14 + 8], rsi
mov qword [r14 + 0x10], r13
mov ecx, 0x140
mov rax, qword [rsp + 0x30]
mul rcx
add r8, rax
cmp r8, 0xffffffffffffffef
je 0x14016434b
sub rbx, rax
mov rcx, qword [0x1402443c8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x14016434b
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x14016e160]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rcx]
por xmm1, xmm0
movdqa xmmword [rdi + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [rdi + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x140163b60
test al, 1
je 0x140163baa
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi + rcx]
por xmm0, xmmword [0x14016e160]
movdqa xmmword [rdi + rcx], xmm0
cmp r8, 0x10
jae 0x140163bce
lea rcx, [rdi + 0x10]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r11, qword [rsp + 0x20]
cmp r11, 0xffffffffffffffff
jne 0x140163bd8
xor eax, eax
jmp 0x140164344
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + r8], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
lea rax, [rdi - 0x140]
mov qword [rsp + 0x70], rax
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x48], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x38], rax
mov rbx, rdi
xor esi, esi
jmp 0x140163c79
shr rax, 0x39
lea rcx, [rsi - 0x10]
and rcx, r11
mov byte [rdi + rsi], al
mov byte [rcx + rdi + 0x10], al
lea rax, [rsi + 1]
add rbx, 0xfffffffffffffec0
cmp rsi, r11
mov rsi, rax
je 0x140164335
cmp byte [rdi + rsi], 0x80
jne 0x140163c62
mov rax, rsi
shl rax, 6
lea rax, [rax + rax*4]
mov rcx, rdi
sub rcx, rax
mov qword [rsp + 0x78], rcx
neg rax
add rax, rdi
add rax, 0xfffffffffffffec0
mov qword [rsp + 0x80], rax
mov rax, rsi
not rax
lea rdx, [rax + rax*4]
shl rdx, 6
add rdx, rdi
mov qword [rsp + 0x30], rsi
mov rax, rsi
neg rax
lea rax, [rax + rax*4]
shl rax, 6
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
jmp 0x140163eb0
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rcx]
movups xmm3, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm2
movups xmmword [rdx + 0x10], xmm3
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm2
movups xmmword [rdx + 0x30], xmm3
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmm1, xmmword [rdx + 0x50]
movups xmm2, xmmword [rcx + 0x40]
movups xmm3, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm2
movups xmmword [rdx + 0x50], xmm3
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmm1, xmmword [rdx + 0x70]
movups xmm2, xmmword [rcx + 0x60]
movups xmm3, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x60], xmm2
movups xmmword [rdx + 0x70], xmm3
movups xmmword [rcx + 0x60], xmm0
movups xmmword [rcx + 0x70], xmm1
movups xmm0, xmmword [rdx + 0x80]
movups xmm1, xmmword [rdx + 0x90]
movups xmm2, xmmword [rcx + 0x80]
movups xmm3, xmmword [rcx + 0x90]
movups xmmword [rdx + 0x80], xmm2
movups xmmword [rdx + 0x90], xmm3
movups xmmword [rcx + 0x80], xmm0
movups xmmword [rcx + 0x90], xmm1
movups xmm0, xmmword [rdx + 0xa0]
movups xmm1, xmmword [rdx + 0xb0]
movups xmm2, xmmword [rcx + 0xa0]
movups xmm3, xmmword [rcx + 0xb0]
movups xmmword [rdx + 0xa0], xmm2
movups xmmword [rdx + 0xb0], xmm3
movups xmmword [rcx + 0xa0], xmm0
movups xmmword [rcx + 0xb0], xmm1
movups xmm0, xmmword [rdx + 0xc0]
movups xmm1, xmmword [rdx + 0xd0]
movups xmm2, xmmword [rcx + 0xc0]
movups xmm3, xmmword [rcx + 0xd0]
movups xmmword [rdx + 0xc0], xmm2
movups xmmword [rdx + 0xd0], xmm3
movups xmmword [rcx + 0xc0], xmm0
movups xmmword [rcx + 0xd0], xmm1
movups xmm0, xmmword [rdx + 0xe0]
movups xmm1, xmmword [rdx + 0xf0]
movups xmm2, xmmword [rcx + 0xe0]
movups xmm3, xmmword [rcx + 0xf0]
movups xmmword [rdx + 0xe0], xmm2
movups xmmword [rdx + 0xf0], xmm3
movups xmmword [rcx + 0xe0], xmm0
movups xmmword [rcx + 0xf0], xmm1
movups xmm0, xmmword [rdx + 0x100]
movups xmm1, xmmword [rdx + 0x110]
movups xmm2, xmmword [rcx + 0x100]
movups xmm3, xmmword [rcx + 0x110]
movups xmmword [rdx + 0x100], xmm2
movups xmmword [rdx + 0x110], xmm3
movups xmmword [rcx + 0x100], xmm0
movups xmmword [rcx + 0x110], xmm1
movdqu xmm0, xmmword [rdx + 0x120]
movdqu xmm1, xmmword [rdx + 0x130]
movups xmm2, xmmword [rcx + 0x120]
movups xmm3, xmmword [rcx + 0x130]
movups xmmword [rdx + 0x120], xmm2
movups xmmword [rdx + 0x130], xmm3
movdqu xmmword [rcx + 0x120], xmm0
movdqu xmmword [rcx + 0x130], xmm1
mov rax, qword [rsp + 0x28]
mov r15, qword [rax]
mov r14, qword [rax + 0x10]
mov rax, r14
and rax, 0xfffffffffffffff8
je 0x140163f50
mov r11, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
xor r9d, r9d
mov r8, qword [rsp + 0x50]
add r8, r12
rol r12, 0xd
mov rcx, qword [r15 + r9]
xor r12, r8
rol r8, 0x20
xor rsi, rcx
add r11, rsi
rol rsi, 0x10
xor rsi, r11
add r8, rsi
rol rsi, 0x15
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor rsi, r8
xor r8, rcx
add r9, 8
cmp r9, rax
jb 0x140163ee0
mov r13d, r14d
and r13d, 7
cmp r13d, 3
jbe 0x140163f74
mov r10d, dword [r15 + r9]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r13
jb 0x140163f85
jmp 0x140163f9f
mov rsi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x48]
mov r11, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
xor r9d, r9d
mov r13d, r14d
and r13d, 7
cmp r13d, 3
ja 0x140163f30
xor r10d, r10d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r13
jae 0x140163f9f
lea rcx, [rax + r9]
movzx ebp, word [r15 + rcx]
lea ecx, [rax*8]
shl rbp, cl
or r10, rbp
or rax, 2
cmp rax, r13
jae 0x140163fc0
add r9, rax
movzx r9d, byte [r15 + r9]
shl eax, 3
mov ecx, eax
shl r9, cl
or r10, r9
jmp 0x140163fc5
test r13, r13
je 0x140164023
lea ecx, [r13*8]
mov r9d, 0xff
shl r9, cl
or r9, r10
cmp r13, 7
jne 0x140164103
mov ecx, 8
add r8, r12
rol r12, 0xd
sub rcx, r13
xor r12, r8
rol r8, 0x20
xor rsi, r9
add r11, rsi
rol rsi, 0x10
xor rsi, r11
add r8, rsi
rol rsi, 0x15
xor rsi, r8
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor r8, r9
jmp 0x140164025
xor ecx, ecx
mov r9d, 1
sub r9, rcx
mov eax, r9d
and eax, 7
and r9, 0xfffffffffffffff8
cmp rcx, r9
jae 0x1401640b0
nop dword [rax]
add r8, r12
rol r12, 0xd
xor r12, r8
rol r8, 0x20
xor rsi, 0xff
add r11, rsi
rol rsi, 0x10
xor rsi, r11
add r8, rsi
rol rsi, 0x15
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor rsi, r8
xor r8, 0xff
add rcx, 8
cmp rcx, r9
jb 0x140164040
xor r9d, r9d
cmp rax, 4
setae r9b
cmp eax, 4
mov r10d, 0
mov ecx, 0xff
cmovae r10, rcx
shl r9, 2
jmp 0x1401640b6
xor r10d, r10d
xor r9d, r9d
mov r15, r9
lea ecx, [r9*8]
mov r13d, 0xff
shl r13, cl
or r15, 1
mov rbp, r9
or rbp, 2
cmp r15, rax
mov r15d, 0
cmovae r13, r15
cmovae rbp, r9
or r13, r10
lea ecx, [rbp*8]
mov r9d, 0xff
shl r9, cl
cmp rbp, rax
cmovae r9, r15
or r9, r13
shl r14, 0x38
movabs rax, 0x100000000000000
add r14, rax
add r8, r12
rol r12, 0xd
or r14, r9
xor r12, r8
rol r8, 0x20
xor rsi, r14
add r11, rsi
rol rsi, 0x10
xor rsi, r11
add r8, rsi
rol rsi, 0x15
add r11, r12
rol r12, 0x11
xor rsi, r8
xor r12, r11
rol r11, 0x20
xor r8, r14
add r8, r12
rol r12, 0xd
xor r12, r8
rol r8, 0x20
xor r11, 0xff
add r11, rsi
rol rsi, 0x10
xor rsi, r11
add r8, rsi
rol rsi, 0x15
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor rsi, r8
add r8, r12
rol r12, 0xd
xor r12, r8
rol r8, 0x20
add r11, rsi
rol rsi, 0x10
xor rsi, r11
add r8, rsi
rol rsi, 0x15
add r11, r12
rol r12, 0x11
xor r12, r11
rol r11, 0x20
xor rsi, r8
add r8, r12
rol r12, 0xd
add r11, rsi
rol rsi, 0x10
xor rsi, r11
rol rsi, 0x15
xor r12, r8
add r11, r12
rol r12, 0x11
mov rax, r11
rol rax, 0x20
xor rax, r12
xor rax, rsi
xor rax, r11
mov rcx, rax
mov r11, qword [rsp + 0x20]
and rcx, r11
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb r8d, xmm0
mov r9, rcx
test r8d, r8d
mov rsi, qword [rsp + 0x30]
jne 0x14016422a
mov r10d, 0x10
mov r9, rcx
nop
add r9, r10
and r9, r11
movdqu xmm0, xmmword [rdi + r9]
pmovmskb r8d, xmm0
add r10, 0x10
test r8d, r8d
je 0x140164210
tzcnt r8d, r8d
add r8, r9
and r8, r11
cmp byte [rdi + r8], 0
js 0x14016424a
movdqa xmm0, xmmword [rdi]
pmovmskb r8d, xmm0
tzcnt r8d, r8d
mov r9, rsi
sub r9, rcx
mov r10, r8
sub r10, rcx
xor r10, r9
and r10, r11
cmp r10, 0x10
jb 0x140163c50
mov rcx, r8
not rcx
lea rcx, [rcx + rcx*4]
shl rcx, 6
add rcx, rdi
movzx r9d, byte [rdi + r8]
shr rax, 0x39
lea r10, [r8 - 0x10]
and r10, r11
mov byte [rdi + r8], al
mov byte [r10 + rdi + 0x10], al
cmp r9b, 0xff
je 0x140164310
shl r8, 6
lea r8, [r8 + r8*4]
mov rax, rdi
sub rax, r8
cmp qword [rsp + 0x80], rax
jae 0x140163ce0
cmp rcx, qword [rsp + 0x78]
jae 0x140163ce0
mov rcx, 0xfffffffffffffec0
nop word cs:[rax + rax]
movzx r8d, byte [rbx + rcx]
movzx r9d, byte [rax + rcx]
mov byte [rbx + rcx], r9b
mov byte [rax + rcx], r8b
movzx r8d, byte [rbx + rcx + 1]
movzx r9d, byte [rax + rcx + 1]
mov byte [rbx + rcx + 1], r9b
mov byte [rax + rcx + 1], r8b
add rcx, 2
jne 0x1401642d0
jmp 0x140163eb0
lea rax, [rsi - 0x10]
and rax, r11
mov byte [rdi + rsi], 0xff
mov byte [rax + rdi + 0x10], 0xff
mov r8d, 0x140
call sub.VCRUNTIME140.dll_memcpy
mov r11, qword [rsp + 0x20]
jmp 0x140163c62
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
sub rax, rbx
mov qword [rsi + 0x10], rax
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.140052de0
ud2