Function at 0x14003a950
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 rdi, qword [rcx + 0x18]
cmp rdi, 0xffffffffffffffff
je 0x14003b2b1
mov r14, rdx
mov rdx, rcx
mov rsi, qword [rcx + 8]
lea r12, [rsi + 1]
mov rax, r12
shr rax, 3
mov r8, r12
and r8, 0xfffffffffffffff8
sub r8, rax
cmp rsi, 8
mov rax, r8
cmovb rax, rsi
movabs r15, 0x7ffffffffffffff0
mov rcx, rax
shr rcx, 1
cmp rdi, rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdx
jae 0x14003a9ec
mov rbx, qword [rdx]
mov rcx, r12
shr rcx, 4
xor eax, eax
test r12b, 0xf
setne al
add rax, rcx
je 0x14003ad2a
cmp rax, 1
jne 0x14003acc1
xor ecx, ecx
jmp 0x14003ad14
cmp rdi, rax
cmova rax, rdi
cmp rax, 7
jae 0x14003aa0c
xor ecx, ecx
cmp rax, 3
setae cl
lea rbx, [rcx*4 + 4]
jmp 0x14003aa5a
movabs rcx, 0x1ffffffffffffffe
cmp rax, rcx
ja 0x14003b2b1
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 qword [rsp + 0x38], r12
mov ecx, 0x38
mov rax, rbx
mul rcx
jo 0x14003b2b1
mov r13, rax
cmp rax, 0xfffffffffffffff0
ja 0x14003b2b1
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [rbx + 0x10]
mov rdx, r13
add rdx, rbp
jb 0x14003b2b1
cmp rdx, r15
ja 0x14003b2b1
movzx eax, byte [0x142822100]
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x14003b2b1
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 + 0x40], 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]
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14003ac66
movdqa xmm0, xmmword [r8]
pmovmskb r15d, xmm0
not r15d
movups xmm6, xmmword [r14]
mov r14, rax
xor r13d, r13d
mov rbp, r8
mov qword [rsp + 0x28], r8
jmp 0x14003ab9a
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
imul rax, rbx, 0x38
not rdx
imul rdx, rdx, 0x38
mov r9, qword [r8 + rax + 0x30]
mov qword [r12 + rdx + 0x30], r9
movdqu xmm0, xmmword [r8 + rax]
movdqu xmm1, xmmword [r8 + rax + 0x10]
movdqu xmm2, xmmword [r8 + rax + 0x20]
movdqu xmmword [r12 + rdx + 0x20], xmm2
movdqu xmmword [r12 + rdx + 0x10], xmm1
movdqu xmmword [r12 + rdx], xmm0
mov r15d, ecx
test r14, r14
je 0x14003ac55
test r15w, r15w
jne 0x14003abbe
movdqa xmm0, xmmword [rbp + 0x10]
add rbp, 0x10
pmovmskb r15d, xmm0
add r13, 0x10
cmp r15d, 0xffff
je 0x14003aba0
not r15d
tzcnt ebx, r15d
add rbx, r13
mov rax, rbx
neg rax
imul rax, rax, 0x38
mov rdx, qword [r8 + rax - 0x30]
mov r8, qword [r8 + rax - 0x28]
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 0x14003ac28
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 0x14003ac10
mov r8, qword [rsp + 0x28]
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [r12 + rdx], 0
js 0x14003ab30
movdqa xmm0, xmmword [r12]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14003ab30
movabs r15, 0x7ffffffffffffff0
mov rax, qword [rsp + 0x20]
jmp 0x14003ac68
xor eax, eax
mov rcx, qword [rsp + 0x40]
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 0x14003b291
mov ecx, 0x38
mov rax, qword [rsp + 0x38]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x14003b291
sub r8, rax
mov rcx, qword [0x1428220c8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x14003b291
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x14005a880]
nop dword [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 0x14003ace0
test al, 1
je 0x14003ad2a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x14005a880]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x48], r8
cmp r12, 0x10
jae 0x14003ad50
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r12
call sub.msvcrt.dll_memmove
test r12, r12
jne 0x14003ad5a
xor ecx, ecx
jmp 0x14003b285
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r12], xmm0
movdqu xmm1, xmmword [r14]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [0x14005a890]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x14005a8a0]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x40], xmm2
movq qword [rsp + 0x38], xmm0
movq qword [rsp + 0x58], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x50], xmm2
xor r11d, r11d
mov r15, rbx
jmp 0x14003addc
shr rdx, 0x39
lea rax, [r11 - 0x10]
and rax, rsi
mov byte [rbx + r11], dl
mov byte [rbx + rax + 0x10], dl
mov rdi, qword [rsp + 0x20]
lea rax, [r11 + 1]
add r15, 0xffffffffffffffc8
cmp r11, rsi
mov r11, rax
je 0x14003b26e
cmp byte [rbx + r11], 0x80
jne 0x14003adc8
imul rcx, r11, 0xffffffffffffffc8
mov rax, r11
not rax
imul r13, rax, 0x38
add r13, rbx
add rcx, rbx
mov qword [rsp + 0x28], rcx
mov rax, r11
neg rax
imul rdi, rax, 0x38
add rdi, rbx
jmp 0x14003ae68
movdqu xmm2, xmmword [r13]
movdqu xmm3, xmmword [r13 + 0x10]
movdqu xmm4, xmmword [rax]
movups xmm5, xmmword [rax + 0x10]
movdqu xmmword [r13], xmm4
movups xmmword [r13 + 0x10], xmm5
movdqu xmmword [rax], xmm2
movdqu xmmword [rax + 0x10], xmm3
mov rcx, qword [r13 + 0x20]
mov rdx, qword [rax + 0x20]
mov qword [r13 + 0x20], rdx
mov qword [rax + 0x20], rcx
mov rcx, qword [r13 + 0x28]
mov rdx, qword [rax + 0x28]
mov qword [r13 + 0x28], rdx
mov qword [rax + 0x28], rcx
mov rcx, qword [r13 + 0x30]
mov rdx, qword [rax + 0x30]
mov qword [r13 + 0x30], rdx
mov qword [rax + 0x30], rcx
mov r14, qword [rdi - 0x30]
mov r8, qword [rdi - 0x28]
mov rcx, r8
and rcx, 0xfffffffffffffff8
je 0x14003af30
mov rax, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov r10, qword [rsp + 0x40]
xor edx, edx
mov r9, qword [rsp + 0x38]
nop word cs:[rax + rax]
add r9, r12
rol r12, 0xd
mov rbp, qword [r14 + rdx]
xor r12, r9
rol r9, 0x20
xor r10, rbp
add rax, r10
rol r10, 0x10
xor r10, rax
add r9, r10
rol r10, 0x15
add rax, r12
rol r12, 0x11
xor r12, rax
rol rax, 0x20
xor r10, r9
xor r9, rbp
add rdx, 8
cmp rdx, rcx
jb 0x14003aea0
movq xmm3, r10
movq xmm2, r12
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r9
punpcklqdq xmm3, xmm4
mov r12d, r8d
and r12d, 7
cmp r12d, 4
jb 0x14003af47
mov r9d, dword [r14 + rdx]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r12
jb 0x14003af58
jmp 0x14003af72
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor edx, edx
mov r12d, r8d
and r12d, 7
cmp r12d, 4
jae 0x14003af0c
xor r9d, r9d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r12
jae 0x14003af72
lea rcx, [r14 + rax]
movzx r10d, word [rdx + rcx]
lea ecx, [rax*8]
shl r10, cl
or r9, r10
or rax, 2
cmp rax, r12
jae 0x14003af90
add rdx, rax
movzx edx, byte [r14 + rdx]
shl eax, 3
mov ecx, eax
shl rdx, cl
or r9, rdx
jmp 0x14003af99
test r12, r12
je 0x14003b02b
lea ecx, [r12*8]
mov edx, 0xff
shl rdx, cl
or rdx, r9
cmp r12, 7
jne 0x14003b030
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, rdx
movq r9, xmm2
paddq xmm2, xmm3
movq rax, xmm2
rol r9, 0xd
xor r9, rax
rol rax, 0x20
pshufd xmm2, xmm3, 0xee
movq r10, xmm2
add r10, rcx
rol rcx, 0x10
xor rcx, r10
add rax, rcx
rol rcx, 0x15
add r10, r9
rol r9, 0x11
xor rcx, rax
xor r9, r10
movq xmm3, rcx
movq xmm2, r9
punpcklqdq xmm2, xmm3
rol r10, 0x20
xor rax, rdx
movq xmm4, r10
movq xmm3, rax
punpcklqdq xmm3, xmm4
xor edx, edx
jmp 0x14003b030
mov edx, 0xff
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq r14, xmm4
shl r8, 0x38
movabs r9, 0x100000000000000
add r8, r9
or r8, rdx
paddq xmm2, xmm3
rol rcx, 0xd
movq rdx, xmm2
xor rcx, rdx
rol rdx, 0x20
xor r14, r8
add rax, r14
rol r14, 0x10
xor r14, rax
add rdx, r14
rol r14, 0x15
add rax, rcx
rol rcx, 0x11
xor r14, rdx
xor rcx, rax
rol rax, 0x20
xor rdx, r8
add rdx, rcx
rol rcx, 0xd
xor rcx, rdx
rol rdx, 0x20
xor rax, 0xff
add rax, r14
rol r14, 0x10
xor r14, rax
add rdx, r14
rol r14, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r14, rdx
add rdx, rcx
rol rcx, 0xd
xor rcx, rdx
rol rdx, 0x20
add rax, r14
rol r14, 0x10
xor r14, rax
add rdx, r14
rol r14, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r14, rdx
add rdx, rcx
rol rcx, 0xd
add rax, r14
rol r14, 0x10
xor r14, rax
rol r14, 0x15
xor rcx, rdx
add rax, rcx
rol rcx, 0x11
mov rdx, rax
rol rdx, 0x20
xor rdx, rcx
xor rdx, r14
xor rdx, rax
mov rax, rsi
and rax, rdx
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov r8, rax
test ecx, ecx
jne 0x14003b168
mov r9d, 0x10
mov r8, rax
nop dword [rax]
add r8, r9
and r8, rsi
movdqu xmm2, xmmword [rbx + r8]
pmovmskb ecx, xmm2
add r9, 0x10
test ecx, ecx
je 0x14003b150
tzcnt ecx, ecx
add rcx, r8
and rcx, rsi
cmp byte [rbx + rcx], 0
js 0x14003b184
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov r8, r11
sub r8, rax
mov r9, rcx
sub r9, rax
xor r9, r8
and r9, rsi
cmp r9, 0x10
jb 0x14003adb0
mov rax, rcx
not rax
imul rax, rax, 0x38
add rax, rbx
movzx r8d, byte [rbx + rcx]
shr rdx, 0x39
lea r9, [rcx - 0x10]
and r9, rsi
mov byte [rbx + rcx], dl
mov byte [rbx + r9 + 0x10], dl
cmp r8b, 0xff
je 0x14003b230
imul rcx, rcx, 0xffffffffffffffc8
add rcx, rbx
cmp r13, rcx
jae 0x14003ae10
cmp rax, qword [rsp + 0x28]
jae 0x14003ae10
mov rax, 0xffffffffffffffc8
nop dword [rax]
movzx edx, byte [r15 + rax]
movzx r8d, byte [rcx + rax]
mov byte [r15 + rax], r8b
mov byte [rcx + rax], dl
movzx edx, byte [r15 + rax + 1]
movzx r8d, byte [rcx + rax + 1]
mov byte [r15 + rax + 1], r8b
mov byte [rcx + rax + 1], dl
add rax, 2
jne 0x14003b1f0
jmp 0x14003ae68
lea rcx, [r11 - 0x10]
and rcx, rsi
mov byte [rbx + r11], 0xff
mov byte [rbx + rcx + 0x10], 0xff
mov rcx, qword [r13 + 0x30]
mov qword [rax + 0x30], rcx
movdqu xmm2, xmmword [r13]
movdqu xmm3, xmmword [r13 + 0x10]
movdqu xmm4, xmmword [r13 + 0x20]
movdqu xmmword [rax + 0x20], xmm4
movdqu xmmword [rax + 0x10], xmm3
movdqu xmmword [rax], xmm2
jmp 0x14003adc3
cmp rsi, 8
mov rcx, qword [rsp + 0x48]
cmovb rcx, rsi
movabs r15, 0x7ffffffffffffff0
sub rcx, rdi
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
add r15, 0x11
mov rax, r15
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