Function at 0x14003d650
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, rdx
mov rdx, qword [rcx + 0x18]
cmp rdx, 0xffffffffffffffff
je 0x14003dfc3
mov r9, rcx
mov rsi, qword [rcx + 8]
lea rdi, [rsi + 1]
mov rax, rdi
shr rax, 3
mov r10, rdi
and r10, 0xfffffffffffffff8
sub r10, rax
cmp rsi, 8
mov rax, r10
cmovb rax, rsi
movabs r8, 0x7ffffffffffffff0
mov rcx, rax
shr rcx, 1
cmp rdx, rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r9
jae 0x14003d6ec
mov rbx, qword [r9]
mov rcx, rdi
shr rcx, 4
xor eax, eax
test dil, 0xf
setne al
add rax, rcx
je 0x14003da3a
cmp rax, 1
jne 0x14003d9d5
xor ecx, ecx
jmp 0x14003da24
cmp rdx, rax
cmova rax, rdx
cmp rax, 7
jae 0x14003d70c
xor ecx, ecx
cmp rax, 3
setae cl
lea r12, [rcx*4 + 4]
jmp 0x14003d75a
movabs rcx, 0x1ffffffffffffffe
cmp rax, rcx
ja 0x14003dfc3
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 r12, 0xffffffffffffffff
shr r12, cl
inc r12
mov ecx, 0x38
mov rax, r12
mul rcx
jo 0x14003dfc3
mov r13, rax
cmp rax, 0xfffffffffffffff0
ja 0x14003dfc3
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [r12 + 0x10]
mov rdx, r13
add rdx, rbp
jb 0x14003dfc3
cmp rdx, r8
ja 0x14003dfc3
mov qword [rsp + 0x38], rdi
movzx eax, byte [0x141d94108]
xor ecx, ecx
call fcn.1400321b0
test rax, rax
je 0x14003dfc3
mov rbx, rax
lea rdi, [r12 - 1]
mov rax, r12
shr rax, 3
mov rcx, r12
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r12, 9
cmovb rcx, rdi
mov qword [rsp + 0x40], rcx
add rbx, r13
mov rcx, rbx
mov dl, 0xff
mov r8, rbp
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003d963
mov rax, qword [rsp + 0x28]
mov r12, qword [rax]
movdqa xmm0, xmmword [r12]
pmovmskb r13d, xmm0
not r13d
lea rax, [r12 - 0x38]
mov qword [rsp + 0x48], rax
movups xmm6, xmmword [r15]
xor ebp, ebp
mov qword [rsp + 0x20], r12
mov r15, rcx
jmp 0x14003d89b
lea ecx, [r13 - 1]
and ecx, r13d
dec r15
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rdi
mov byte [rbx + rdx], al
mov byte [rbx + r8 + 0x10], al
not r14
imul rax, r14, 0x38
not rdx
imul rdx, rdx, 0x38
mov r9, qword [rsp + 0x20]
mov r8, qword [r9 + rax + 0x30]
mov qword [rbx + rdx + 0x30], r8
movdqu xmm0, xmmword [r9 + rax]
movdqu xmm1, xmmword [r9 + rax + 0x10]
movdqu xmm2, xmmword [r9 + rax + 0x20]
movdqu xmmword [rbx + rdx + 0x20], xmm2
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r13d, ecx
test r15, r15
je 0x14003d95c
test r13w, r13w
jne 0x14003d8d0
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb r13d, xmm0
add rbp, 0x10
cmp r13d, 0xffff
je 0x14003d8b0
not r13d
tzcnt r14d, r13d
add r14, rbp
mov rax, r14
neg rax
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx + rax + 8]
mov r8, qword [rcx + rax + 0x10]
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0x60]
call fcn.14003f480
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14003d937
mov r8d, 0x10
nop dword [rax]
add rcx, r8
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14003d920
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x14003d830
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14003d830
mov rax, qword [rsp + 0x28]
jmp 0x14003d970
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x40]
sub rcx, qword [rsp + 0x30]
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rcx
test rsi, rsi
movabs rdi, 0x7ffffffffffffff0
je 0x14003dfa3
mov ecx, 0x38
mov rax, qword [rsp + 0x38]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x14003dfa3
mov r8, qword [rsp + 0x20]
sub r8, rax
mov rcx, qword [0x141d940e8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x14003dfa3
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x14005da80]
nop dword [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 0x14003d9f0
test al, 1
je 0x14003da3a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x14005da80]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x50], r10
cmp rdi, 0x10
jae 0x14003da60
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memmove
test rdi, rdi
jne 0x14003da69
xor ecx, ecx
jmp 0x14003df8b
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rdi], xmm0
movdqu xmm1, xmmword [r15]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [0x14005da90]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x14005daa0]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x48], xmm2
movq qword [rsp + 0x40], xmm0
movq qword [rsp + 0x38], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x58], xmm2
xor r11d, r11d
mov r15, rbx
jmp 0x14003dae7
shr rdx, 0x39
lea rax, [r11 - 0x10]
and rax, rsi
mov byte [rbx + r11], dl
mov byte [rbx + rax + 0x10], dl
lea rax, [r11 + 1]
add r15, 0xffffffffffffffc8
cmp r11, rsi
mov r11, rax
je 0x14003df7e
cmp byte [rbx + r11], 0x80
jne 0x14003dad3
imul rcx, r11, 0xffffffffffffffc8
mov rax, r11
not rax
imul r13, rax, 0x38
add r13, rbx
add rcx, rbx
mov qword [rsp + 0x20], rcx
mov rax, r11
neg rax
imul rdi, rax, 0x38
add rdi, rbx
jmp 0x14003db78
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 0x14003dc40
mov rax, qword [rsp + 0x58]
mov r12, qword [rsp + 0x38]
mov r10, qword [rsp + 0x48]
xor edx, edx
mov r9, qword [rsp + 0x40]
nop word cs:[rax + rax]
mov rbp, qword [r14 + rdx]
xor r10, rbp
add r9, r12
rol r12, 0xd
add rax, r10
xor r12, r9
rol r10, 0x10
xor r10, rax
rol r9, 0x20
add rax, r12
add r9, r10
rol r12, 0x11
xor r12, rax
rol r10, 0x15
rol rax, 0x20
xor r10, r9
xor r9, rbp
add rdx, 8
cmp rdx, rcx
jb 0x14003dbb0
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 0x14003dc57
mov r9d, dword [r14 + rdx]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r12
jb 0x14003dc68
jmp 0x14003dc82
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor edx, edx
mov r12d, r8d
and r12d, 7
cmp r12d, 4
jae 0x14003dc1c
xor r9d, r9d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r12
jae 0x14003dc82
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 0x14003dca0
add rdx, rax
movzx edx, byte [r14 + rdx]
shl eax, 3
mov ecx, eax
shl rdx, cl
or r9, rdx
jmp 0x14003dca9
test r12, r12
je 0x14003dd3b
lea ecx, [r12*8]
mov edx, 0xff
shl rdx, cl
or rdx, r9
cmp r12, 7
jne 0x14003dd40
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, rdx
movq r10, xmm2
paddq xmm2, xmm3
movq rax, xmm2
pshufd xmm2, xmm3, 0xee
movq r9, xmm2
add r9, rcx
rol r10, 0xd
xor r10, rax
rol rcx, 0x10
xor rcx, r9
rol rax, 0x20
add r9, r10
add rax, rcx
rol r10, 0x11
rol rcx, 0x15
xor r10, r9
xor rcx, rax
movq xmm3, rcx
movq xmm2, r10
punpcklqdq xmm2, xmm3
rol r9, 0x20
xor rax, rdx
movq xmm4, r9
movq xmm3, rax
punpcklqdq xmm3, xmm4
xor edx, edx
jmp 0x14003dd40
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
xor r14, r8
paddq xmm2, xmm3
movq rdx, xmm2
rol rcx, 0xd
add rax, r14
xor rcx, rdx
rol r14, 0x10
xor r14, rax
rol rdx, 0x20
add rax, rcx
add rdx, r14
rol rcx, 0x11
xor rcx, rax
rol r14, 0x15
rol rax, 0x20
xor r14, rdx
xor rdx, r8
xor rax, 0xff
add rdx, rcx
add rax, r14
rol rcx, 0xd
xor rcx, rdx
rol r14, 0x10
rol rdx, 0x20
xor r14, rax
add rax, rcx
rol rcx, 0x11
add rdx, r14
xor rcx, rax
rol r14, 0x15
xor r14, rdx
rol rax, 0x20
add rdx, rcx
add rax, r14
rol rcx, 0xd
xor rcx, rdx
rol r14, 0x10
rol rdx, 0x20
xor r14, rax
add rax, rcx
rol rcx, 0x11
add rdx, r14
xor rcx, rax
rol r14, 0x15
xor r14, rdx
rol rax, 0x20
add rdx, rcx
add rax, r14
rol rcx, 0xd
xor rcx, rdx
rol r14, 0x10
xor r14, rax
add rax, rcx
rol rcx, 0x11
rol r14, 0x15
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 0x14003de78
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 0x14003de60
tzcnt ecx, ecx
add rcx, r8
and rcx, rsi
cmp byte [rbx + rcx], 0
js 0x14003de94
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 0x14003dac0
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 0x14003df40
imul rcx, rcx, 0xffffffffffffffc8
add rcx, rbx
cmp r13, rcx
jae 0x14003db20
cmp rax, qword [rsp + 0x20]
jae 0x14003db20
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 0x14003df00
jmp 0x14003db78
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 0x14003dad3
cmp rsi, 8
mov rcx, qword [rsp + 0x50]
cmovb rcx, rsi
sub rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
movabs rdi, 0x7ffffffffffffff0
add rdi, 0x11
mov rax, rdi
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