Function at 0x140036db0
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
movdqa xmmword [rsp + 0x60], xmm6
mov r13, qword [rcx + 0x18]
add rdx, r13
jb 0x1400376c3
mov r12, qword [rcx + 8]
lea r14, [r12 + 1]
mov rax, r14
shr rax, 3
mov r9, r14
and r9, 0xfffffffffffffff8
sub r9, rax
cmp r12, 8
cmovb r9, r12
movdqa xmm6, xmmword [r8]
mov rax, r9
shr rax, 1
cmp rdx, rax
mov qword [rsp + 0x28], rcx
jbe 0x140036e30
inc r9
cmp rdx, r9
cmova r9, rdx
cmp r9, 8
jae 0x140036e62
xor eax, eax
cmp r9, 4
setae al
lea rsi, [rax*4 + 4]
jmp 0x140036eb9
mov qword [rsp + 0x30], r13
mov rbx, qword [rcx]
mov rcx, r14
shr rcx, 4
xor eax, eax
test r14b, 0xf
setne al
add rax, rcx
je 0x14003714a
cmp rax, 1
jne 0x1400370db
xor ecx, ecx
jmp 0x140037134
mov rax, r9
shr rax, 0x3d
jne 0x1400376c3
shl r9, 3
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 rsi, 0xffffffffffffffff
shr rsi, cl
movabs rax, 0xffffffffffffffe
cmp rsi, rax
ja 0x1400376c3
inc rsi
mov r15, rsi
shl r15, 4
lea rbx, [rsi + 0x10]
mov r14, r15
add r14, rbx
jb 0x1400376c3
movabs rax, 0x7ffffffffffffff1
cmp r14, rax
jae 0x1400376c3
test r14, r14
je 0x140036f07
movzx eax, byte [0x1432e12a8]
mov rcx, r14
call fcn.1400316c0
mov rdi, rax
test rax, rax
jne 0x140036f0c
mov rcx, r14
call fcn.14000f500
mov edi, 0x10
add rdi, r15
lea r15, [rsi - 1]
mov rax, rsi
shr rax, 3
mov r14, rsi
and r14, 0xfffffffffffffff8
sub r14, rax
cmp rsi, 9
cmovb r14, r15
mov rcx, rdi
mov dl, 0xff
mov r8, rbx
call sub.VCRUNTIME140.dll_memset
test r13, r13
je 0x14003707d
mov qword [rsp + 0x38], r14
mov rax, qword [rsp + 0x28]
mov rbx, qword [rax]
movdqa xmm0, xmmword [rbx]
pmovmskb r14d, xmm0
not r14d
xor ebp, ebp
mov qword [rsp + 0x30], r13
mov rsi, r13
mov qword [rsp + 0x20], rbx
jmp 0x140036fac
lea ecx, [r14 - 1]
and ecx, r14d
dec rsi
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r15
mov byte [rdi + rdx], al
mov byte [rdi + r8 + 0x10], al
shl rdx, 4
neg rdx
movdqu xmm0, xmmword [r13 - 0x10]
movdqu xmmword [rdi + rdx - 0x10], xmm0
mov r14d, ecx
test rsi, rsi
je 0x14003706c
test r14w, r14w
jne 0x140036fde
nop word cs:[rax + rax]
movdqa xmm0, xmmword [rbx + 0x10]
add rbx, 0x10
pmovmskb r14d, xmm0
add rbp, 0x10
cmp r14d, 0xffff
je 0x140036fc0
not r14d
tzcnt eax, r14d
add rax, rbp
shl rax, 4
mov r13, qword [rsp + 0x20]
sub r13, rax
mov rdx, qword [r13 - 0x10]
mov r8, qword [r13 - 8]
movdqa xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x50]
call fcn.14000f120
mov rcx, r15
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140037047
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r15
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140037030
tzcnt edx, edx
add rdx, rcx
and rdx, r15
cmp byte [rdi + rdx], 0
js 0x140036f70
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140036f70
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
jmp 0x14003708c
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
sub r14, rcx
mov qword [rax], rdi
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], rcx
test r12, r12
je 0x1400376a3
mov rax, r12
shl rax, 4
add r12, rax
cmp r12, 0xffffffffffffffdf
je 0x1400376a3
mov r8, qword [rsp + 0x20]
sub r8, rax
add r8, 0xfffffffffffffff0
mov rcx, qword [0x1432e1230]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400376a3
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x14003a5f0]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx]
por xmm1, xmm0
movdqa xmmword [rbx + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x140037100
test al, 1
je 0x14003714a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x14003a5f0]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x40], r9
cmp r14, 0x10
jae 0x140037170
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call sub.VCRUNTIME140.dll_memmove
test r14, r14
jne 0x14003717a
xor ecx, ecx
jmp 0x140037695
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
pshufd xmm0, xmm6, 0x44
pxor xmm0, xmmword [0x14003a600]
pshufd xmm1, xmm6, 0xee
pxor xmm1, xmmword [0x14003a610]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x20], xmm2
movq qword [rsp + 0x38], xmm0
movq qword [rsp + 0x48], xmm1
pshufd xmm2, xmm0, 0xee
movq r10, xmm2
xor r11d, r11d
jmp 0x1400371e4
shr rdi, 0x39
lea rax, [r11 - 0x10]
and rax, r12
mov byte [rbx + r11], dil
mov byte [rbx + rax + 0x10], dil
lea rax, [r11 + 1]
cmp r11, r12
mov r11, rax
je 0x140037690
cmp byte [rbx + r11], 0x80
jne 0x1400371d4
mov rax, r11
shl rax, 4
mov rbp, rbx
sub rbp, rax
lea r13, [rbp - 0x10]
nop dword [rax]
mov rsi, qword [rbp - 0x10]
mov r14, qword [rbp - 8]
mov rcx, r14
and rcx, 0xfffffffffffffff8
je 0x1400372c0
mov rax, r10
mov r15, qword [rsp + 0x48]
mov r8, qword [rsp + 0x20]
xor edi, edi
mov rdx, qword [rsp + 0x38]
nop dword [rax]
add rdx, r15
rol r15, 0xd
mov r9, qword [rsi + rdi]
xor r15, rdx
rol rdx, 0x20
xor r8, r9
add rax, r8
rol r8, 0x10
xor r8, rax
add rdx, r8
rol r8, 0x15
add rax, r15
rol r15, 0x11
xor r15, rax
rol rax, 0x20
xor r8, rdx
xor rdx, r9
add rdi, 8
cmp rdi, rcx
jb 0x140037230
movq xmm3, r8
movq xmm2, r15
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, rdx
punpcklqdq xmm3, xmm4
mov r15d, r14d
and r15d, 7
cmp r15d, 4
jb 0x1400372d7
mov edx, dword [rsi + rdi]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r15
jb 0x1400372e7
jmp 0x140037301
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor edi, edi
mov r15d, r14d
and r15d, 7
cmp r15d, 4
jae 0x14003729c
xor edx, edx
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r15
jae 0x140037301
lea rcx, [rsi + rax]
movzx r8d, word [rdi + rcx]
lea ecx, [rax*8]
shl r8, cl
or rdx, r8
or rax, 2
cmp rax, r15
jae 0x140037320
add rdi, rax
movzx r8d, byte [rsi + rdi]
shl eax, 3
mov ecx, eax
shl r8, cl
or rdx, r8
jmp 0x140037329
test r15, r15
je 0x1400373bb
lea ecx, [r15*8]
mov edi, 0xff
shl rdi, cl
or rdi, rdx
cmp r15, 7
jne 0x1400373c0
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, rdi
movq rdx, xmm2
paddq xmm2, xmm3
movq rax, xmm2
rol rdx, 0xd
xor rdx, rax
rol rax, 0x20
pshufd xmm2, xmm3, 0xee
movq r8, xmm2
add r8, rcx
rol rcx, 0x10
xor rcx, r8
add rax, rcx
rol rcx, 0x15
add r8, rdx
rol rdx, 0x11
xor rcx, rax
xor rdx, r8
movq xmm3, rcx
movq xmm2, rdx
punpcklqdq xmm2, xmm3
rol r8, 0x20
xor rax, rdi
movq xmm4, r8
movq xmm3, rax
punpcklqdq xmm3, xmm4
xor edi, edi
jmp 0x1400373c0
mov edi, 0xff
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq rsi, xmm4
shl r14, 0x38
movabs rdx, 0x100000000000000
add r14, rdx
or r14, rdi
paddq xmm2, xmm3
rol rcx, 0xd
movq rdi, xmm2
xor rcx, rdi
rol rdi, 0x20
xor rsi, r14
add rax, rsi
rol rsi, 0x10
xor rsi, rax
add rdi, rsi
rol rsi, 0x15
add rax, rcx
rol rcx, 0x11
xor rsi, rdi
xor rcx, rax
rol rax, 0x20
xor rdi, r14
add rdi, rcx
rol rcx, 0xd
xor rcx, rdi
rol rdi, 0x20
xor rax, 0xff
add rax, rsi
rol rsi, 0x10
xor rsi, rax
add rdi, rsi
rol rsi, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rsi, rdi
add rdi, rcx
rol rcx, 0xd
xor rcx, rdi
rol rdi, 0x20
add rax, rsi
rol rsi, 0x10
xor rsi, rax
add rdi, rsi
rol rsi, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rsi, rdi
add rdi, rcx
rol rcx, 0xd
add rax, rsi
rol rsi, 0x10
xor rsi, rax
rol rsi, 0x15
xor rcx, rdi
add rax, rcx
rol rcx, 0x11
mov rdi, rax
rol rdi, 0x20
xor rdi, rcx
xor rdi, rsi
xor rdi, rax
mov rax, r12
and rax, rdi
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x1400374f7
mov r8d, 0x10
mov rdx, rax
nop dword [rax]
add rdx, r8
and rdx, r12
movdqu xmm2, xmmword [rbx + rdx]
pmovmskb ecx, xmm2
add r8, 0x10
test ecx, ecx
je 0x1400374e0
tzcnt ecx, ecx
add rcx, rdx
and rcx, r12
cmp byte [rbx + rcx], 0
js 0x140037513
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov rdx, r11
sub rdx, rax
mov r8, rcx
sub r8, rax
xor r8, rdx
and r8, r12
cmp r8, 0x10
jb 0x1400371c0
mov rax, rcx
shl rax, 4
neg rax
add rax, rbx
add rax, 0xfffffffffffffff0
movzx edx, byte [rbx + rcx]
shr rdi, 0x39
lea r8, [rcx - 0x10]
and r8, r12
mov byte [rbx + rcx], dil
mov byte [rbx + r8 + 0x10], dil
cmp dl, 0xff
je 0x140037670
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
jmp 0x140037200
lea rcx, [r11 - 0x10]
and rcx, r12
mov byte [rbx + r11], 0xff
mov byte [rbx + rcx + 0x10], 0xff
movdqu xmm2, xmmword [r13]
movdqu xmmword [rax], xmm2
jmp 0x1400371d4
mov rcx, qword [rsp + 0x40]
sub rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
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.14000f4c0
int3