Function at 0x14003b2c0
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
movaps xmmword [rsp + 0x70], xmm6
mov r15, qword [rcx + 0x18]
cmp r15, 0xffffffffffffffff
je 0x14003bb57
mov r14, rdx
mov rdx, rcx
mov rsi, qword [rcx + 8]
lea rdi, [rsi + 1]
mov rax, rdi
shr rax, 3
mov r8, rdi
and r8, 0xfffffffffffffff8
sub r8, rax
cmp rsi, 8
mov rax, r8
cmovb rax, rsi
mov rcx, rax
shr rcx, 1
cmp r15, rcx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rdx
jae 0x14003b352
mov rbx, qword [rdx]
mov rcx, rdi
shr rcx, 4
xor eax, eax
test dil, 0xf
setne al
add rax, rcx
je 0x14003b66a
cmp rax, 1
jne 0x14003b607
xor ecx, ecx
jmp 0x14003b654
cmp r15, rax
cmova rax, r15
cmp rax, 7
jae 0x14003b372
xor ecx, ecx
cmp rax, 3
setae cl
lea rbx, [rcx*4 + 4]
jmp 0x14003b3c0
movabs rcx, 0x1ffffffffffffffe
cmp rax, rcx
ja 0x14003bb57
lea rcx, [rax*8 + 8]
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 rbx, 0xffffffffffffffff
shr rbx, cl
inc rbx
mov ecx, 0x18
mov rax, rbx
mul rcx
jo 0x14003bb57
mov r13, rax
cmp rax, 0xfffffffffffffff0
ja 0x14003bb57
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [rbx + 0x10]
mov rdx, r13
add rdx, rbp
jb 0x14003bb57
movabs rax, 0x7ffffffffffffff0
cmp rdx, rax
ja 0x14003bb57
mov qword [rsp + 0x40], rdi
movzx eax, byte [0x142822100]
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x14003bb57
mov r12, rax
lea rdi, [rbx - 1]
mov rax, rbx
shr rax, 3
mov rcx, rbx
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rbx, 9
cmovb rcx, rdi
mov qword [rsp + 0x48], rcx
add r12, r13
mov rcx, r12
mov dl, 0xff
mov r8, rbp
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x30]
mov r8, qword [rax]
test r15, r15
je 0x14003b5ac
movdqa xmm0, xmmword [r8]
mov rax, r15
pmovmskb r15d, xmm0
not r15d
movups xmm6, xmmword [r14]
xor r13d, r13d
mov rbp, r8
mov r14, rax
mov qword [rsp + 0x28], r8
jmp 0x14003b4de
lea ecx, [r15 - 1]
and ecx, r15d
dec r14
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rdi
mov byte [r12 + rdx], al
mov byte [r12 + r9 + 0x10], al
not rbx
lea rax, [rbx + rbx*2]
not rdx
lea rdx, [rdx + rdx*2]
mov r9, qword [r8 + rax*8 + 0x10]
mov qword [r12 + rdx*8 + 0x10], r9
movdqu xmm0, xmmword [r8 + rax*8]
movdqu xmmword [r12 + rdx*8], xmm0
mov r15d, ecx
test r14, r14
je 0x14003b5a5
test r15w, r15w
jne 0x14003b50e
nop word cs:[rax + rax]
movdqa xmm0, xmmword [rbp + 0x10]
add rbp, 0x10
pmovmskb r15d, xmm0
add r13, 0x10
cmp r15d, 0xffff
je 0x14003b4f0
not r15d
tzcnt ebx, r15d
add rbx, r13
mov rax, rbx
neg rax
lea rax, [rax + rax*2]
mov rdx, qword [r8 + rax*8 - 0x10]
mov r8, qword [r8 + rax*8 - 8]
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0x60]
call fcn.14003cb40
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [r12 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14003b578
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rdi
movdqu xmm0, xmmword [r12 + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14003b560
mov r8, qword [rsp + 0x28]
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [r12 + rdx], 0
js 0x14003b490
movdqa xmm0, xmmword [r12]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14003b490
mov rax, qword [rsp + 0x38]
jmp 0x14003b5ae
xor eax, eax
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, qword [rsp + 0x30]
mov qword [rax], r12
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rcx
test rsi, rsi
je 0x14003bb30
mov ecx, 0x18
mov rax, qword [rsp + 0x40]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x14003bb30
sub r8, rax
mov rcx, qword [0x1428220c8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x14003bb30
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x14005a8b0]
nop
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 0x14003b620
test al, 1
je 0x14003b66a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x14005a8b0]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x50], r8
cmp rdi, 0x10
jae 0x14003b690
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memmove
test rdi, rdi
jne 0x14003b699
xor ecx, ecx
jmp 0x14003bb24
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rdi], xmm0
movdqu xmm1, xmmword [r14]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [0x14005a8c0]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x14005a8d0]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x28], xmm2
movq qword [rsp + 0x48], xmm0
movq qword [rsp + 0x40], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x58], xmm2
xor r11d, r11d
jmp 0x14003b709
shr rdi, 0x39
lea rax, [r11 - 0x10]
and rax, rsi
mov byte [rbx + r11], dil
mov byte [rbx + rax + 0x10], dil
mov r15, qword [rsp + 0x38]
lea rax, [r11 + 1]
cmp r11, rsi
mov r11, rax
je 0x14003bb17
cmp byte [rbx + r11], 0x80
jne 0x14003b6f9
lea rax, [r11*8]
lea rax, [rax + rax*2]
mov rcx, r11
not rcx
lea rcx, [rcx + rcx*2]
lea r15, [rbx + rcx*8]
mov r13, rbx
sub r13, rax
mov rax, r11
neg rax
lea rax, [rax + rax*2]
lea rbp, [rbx + rax*8]
jmp 0x14003b75e
mov rcx, qword [r15 + 8]
movq qword [r15 + 8], xmm2
mov qword [rax + 8], rcx
mov rcx, qword [r15 + 0x10]
mov rdx, qword [rax + 0x10]
mov qword [r15 + 0x10], rdx
mov qword [rax + 0x10], rcx
mov r12, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rcx, rdx
and rcx, 0xfffffffffffffff8
je 0x14003b810
mov rax, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov r9, qword [rsp + 0x28]
xor r14d, r14d
mov r8, qword [rsp + 0x48]
nop word [rax + rax]
add r8, rdi
rol rdi, 0xd
mov r10, qword [r12 + r14]
xor rdi, r8
rol r8, 0x20
xor r9, r10
add rax, r9
rol r9, 0x10
xor r9, rax
add r8, r9
rol r9, 0x15
add rax, rdi
rol rdi, 0x11
xor rdi, rax
rol rax, 0x20
xor r9, r8
xor r8, r10
add r14, 8
cmp r14, rcx
jb 0x14003b790
movq xmm3, r9
movq xmm2, rdi
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r8
punpcklqdq xmm3, xmm4
mov edi, edx
and edi, 7
cmp edi, 4
jb 0x14003b825
mov r8d, dword [r12 + r14]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jb 0x14003b836
jmp 0x14003b850
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor r14d, r14d
mov edi, edx
and edi, 7
cmp edi, 4
jae 0x14003b7f9
xor r8d, r8d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jae 0x14003b850
lea rcx, [r12 + rax]
movzx r9d, word [r14 + rcx]
lea ecx, [rax*8]
shl r9, cl
or r8, r9
or rax, 2
cmp rax, rdi
jae 0x14003b870
add r14, rax
movzx r9d, byte [r12 + r14]
shl eax, 3
mov ecx, eax
shl r9, cl
or r8, r9
jmp 0x14003b879
test rdi, rdi
je 0x14003b90c
lea ecx, [rdi*8]
mov r14d, 0xff
shl r14, cl
or r14, r8
cmp rdi, 7
jne 0x14003b920
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, r14
movq r8, xmm2
paddq xmm2, xmm3
movq rax, xmm2
rol r8, 0xd
xor r8, rax
rol rax, 0x20
pshufd xmm2, xmm3, 0xee
movq r9, xmm2
add r9, rcx
rol rcx, 0x10
xor rcx, r9
add rax, rcx
rol rcx, 0x15
add r9, r8
rol r8, 0x11
xor rcx, rax
xor r8, r9
movq xmm3, rcx
movq xmm2, r8
punpcklqdq xmm2, xmm3
rol r9, 0x20
xor rax, r14
movq xmm4, r9
movq xmm3, rax
punpcklqdq xmm3, xmm4
xor r14d, r14d
jmp 0x14003b920
mov r14d, 0xff
nop word cs:[rax + rax]
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq r12, xmm4
shl rdx, 0x38
movabs r8, 0x100000000000000
add rdx, r8
or rdx, r14
paddq xmm2, xmm3
rol rcx, 0xd
movq r14, xmm2
xor rcx, r14
rol r14, 0x20
xor r12, rdx
add rax, r12
rol r12, 0x10
xor r12, rax
add r14, r12
rol r12, 0x15
add rax, rcx
rol rcx, 0x11
xor r12, r14
xor rcx, rax
rol rax, 0x20
xor r14, rdx
add r14, rcx
rol rcx, 0xd
xor rcx, r14
rol r14, 0x20
xor rax, 0xff
add rax, r12
rol r12, 0x10
xor r12, rax
add r14, r12
rol r12, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r12, r14
add r14, rcx
rol rcx, 0xd
xor rcx, r14
rol r14, 0x20
add rax, r12
rol r12, 0x10
xor r12, rax
add r14, r12
rol r12, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r12, r14
add r14, rcx
rol rcx, 0xd
add rax, r12
rol r12, 0x10
xor r12, rax
rol r12, 0x15
xor rcx, r14
add rax, rcx
rol rcx, 0x11
mov rdi, rax
rol rdi, 0x20
xor rdi, rcx
xor rdi, r12
xor rdi, rax
mov rax, rsi
and rax, rdi
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x14003ba57
mov r8d, 0x10
mov rdx, rax
nop dword [rax]
add rdx, r8
and rdx, rsi
movdqu xmm2, xmmword [rbx + rdx]
pmovmskb ecx, xmm2
add r8, 0x10
test ecx, ecx
je 0x14003ba40
tzcnt ecx, ecx
add rcx, rdx
and rcx, rsi
cmp byte [rbx + rcx], 0
js 0x14003ba73
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, rsi
cmp r8, 0x10
jb 0x14003b6e0
mov rax, rcx
not rax
lea rax, [rax + rax*2]
lea rax, [rbx + rax*8]
movzx edx, byte [rbx + rcx]
shr rdi, 0x39
lea r8, [rcx - 0x10]
and r8, rsi
mov byte [rbx + rcx], dil
mov byte [rbx + r8 + 0x10], dil
cmp dl, 0xff
je 0x14003baf0
shl rcx, 3
lea rcx, [rcx + rcx*2]
mov rdx, rbx
sub rdx, rcx
mov rcx, qword [r15]
mov r8, qword [rax]
mov qword [r15], r8
mov qword [rax], rcx
movq xmm2, qword [rax + 8]
cmp r15, rdx
jae 0x14003b740
cmp rax, r13
jmp 0x14003b740
lea rcx, [r11 - 0x10]
and rcx, rsi
mov byte [rbx + r11], 0xff
mov byte [rbx + rcx + 0x10], 0xff
mov rcx, qword [r15 + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm2, xmmword [r15]
movdqu xmmword [rax], xmm2
jmp 0x14003b6f4
cmp rsi, 8
mov rcx, qword [rsp + 0x50]
cmovb rcx, rsi
sub rcx, r15
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2