Function at 0x140046e10
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
movdqa xmmword [rsp + 0x70], xmm6
mov r9, qword [rcx + 0x18]
cmp r9, 0xffffffffffffffff
je 0x140047720
mov r8, rcx
mov rbp, qword [rcx + 8]
lea rsi, [rbp + 1]
mov rax, rsi
shr rax, 3
mov r10, rsi
and r10, 0xfffffffffffffff8
sub r10, rax
cmp rbp, 8
cmovb r10, rbp
movdqa xmm6, xmmword [rdx]
mov rax, r10
shr rax, 1
cmp r9, rax
mov qword [rsp + 0x20], rcx
jae 0x140046e9c
mov rbx, qword [r8]
mov rcx, rsi
shr rcx, 4
xor eax, eax
test sil, 0xf
setne al
add rax, rcx
je 0x14004721a
cmp rax, 1
jne 0x1400471b1
xor ecx, ecx
jmp 0x140047204
lea rax, [r9 + 1]
inc r10
cmp rax, r10
cmova r10, rax
cmp r10, 8
jae 0x140046ec6
mov r14, r9
xor eax, eax
cmp r10, 4
setae al
lea rdi, [rax*4 + 4]
jmp 0x140046f16
movabs rax, 0x1ffffffffffffffe
inc rax
cmp r10, rax
ja 0x140047720
mov r14, r9
shl r10, 3
movabs rcx, 0x2492492492492493
mov rax, r10
mul rcx
sub r10, rdx
shr r10, 1
add r10, rdx
shr r10, 2
dec r10
bsr rcx, r10
not ecx
mov rdi, 0xffffffffffffffff
shr rdi, cl
inc rdi
mov ecx, 0x28
mov rax, rdi
mul rcx
jo 0x140047720
mov r15, rax
cmp rax, 0xfffffffffffffff0
ja 0x140047720
add r15, 0xf
and r15, 0xfffffffffffffff0
lea r12, [rdi + 0x10]
mov rbx, r15
add rbx, r12
jb 0x140047720
movabs rax, 0x7ffffffffffffff0
cmp rbx, rax
ja 0x140047720
mov qword [rsp + 0x40], rsi
movzx eax, byte [0x14031a2c8]
xor ecx, ecx
mov rdx, rbx
call fcn.1401dbaa0
test rax, rax
je 0x140047725
mov r13, rax
lea rsi, [rdi - 1]
mov rax, rdi
shr rax, 3
mov rcx, rdi
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rdi, 9
cmovb rcx, rsi
mov qword [rsp + 0x48], rcx
lea rbx, [r13 + r15]
mov rcx, rbx
mov dl, 0xff
mov r8, r12
call sub.msvcrt.dll_memset
test r14, r14
je 0x140047142
lea rax, [r15 + r13]
add rax, 0xffffffffffffffd8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
movdqa xmm0, xmmword [rax]
mov r15, r14
pmovmskb r12d, xmm0
not r12d
lea r9, [rax - 0x28]
xor edi, edi
mov qword [rsp + 0x38], rax
mov r14, rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r9
jmp 0x14004706b
lea ecx, [r12 - 1]
and ecx, r12d
dec r15
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rsi
mov byte [rbx + rdx], al
mov byte [rbx + r8 + 0x10], al
shl r13, 3
lea rax, [r13*4]
add rax, r13
mov r8, r9
sub r8, rax
shl rdx, 3
lea rax, [rdx + rdx*4]
mov rdx, qword [rsp + 0x50]
sub rdx, rax
mov rax, qword [r8 + 0x20]
mov qword [rdx + 0x20], rax
movdqu xmm0, xmmword [r8]
movdqu xmm1, xmmword [r8 + 0x10]
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx], xmm0
mov r12d, ecx
test r15, r15
je 0x140047131
test r12w, r12w
jne 0x14004709f
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r14 + 0x10]
add r14, 0x10
pmovmskb r12d, xmm0
add rdi, 0x10
cmp r12d, 0xffff
je 0x140047080
not r12d
tzcnt r13d, r12d
add r13, rdi
mov rax, r13
neg rax
lea rax, [rax + rax*4]
mov rdx, qword [r9 + rax*8]
mov r8, qword [r9 + rax*8 + 8]
movdqa xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0x60]
call fcn.1400491c0
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140047107
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1400470f0
mov r9, qword [rsp + 0x28]
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x140047000
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140047000
mov rax, qword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
jmp 0x14004714a
mov rax, qword [rsp + 0x20]
mov r8, qword [rax]
mov rcx, qword [rsp + 0x48]
sub rcx, r14
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rcx
test rbp, rbp
je 0x140047251
mov ecx, 0x28
mov rax, qword [rsp + 0x40]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rbp, rax
cmp rbp, 0xffffffffffffffef
je 0x140047251
sub r8, rax
mov rcx, qword [0x14031a288]
xor edx, edx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401fb9c4
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x1401fff50]
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 0x1400471d0
test al, 1
je 0x14004721a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x1401fff50]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x30], r9
cmp rsi, 0x10
jae 0x14004726a
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rsi
call sub.msvcrt.dll_memmove
test rsi, rsi
jne 0x140047273
mov rcx, qword [rsp + 0x58]
sub rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], rcx
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
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rsi], xmm0
lea rax, [rbx - 0x28]
mov qword [rsp + 0x38], rax
pshufd xmm0, xmm6, 0x44
pxor xmm0, xmmword [0x1401fff60]
pshufd xmm1, xmm6, 0xee
pxor xmm1, xmmword [0x1401fff70]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x28], xmm2
movq qword [rsp + 0x50], xmm0
movq qword [rsp + 0x48], xmm1
pshufd xmm2, xmm0, 0xee
movq r11, xmm2
xor ecx, ecx
xor r12d, r12d
jmp 0x1400472e7
shr rdx, 0x39
lea rax, [r12 - 0x10]
and rax, rbp
mov byte [rbx + r12], dl
mov byte [rbx + rax + 0x10], dl
xor ecx, ecx
lea rax, [r12 + 1]
cmp r12, rbp
mov r12, rax
je 0x14004723e
cmp cl, byte [rbx + r12]
jno 0x1400472d6
lea rax, [r12*8]
lea rax, [rax + rax*4]
mov rsi, rbx
sub rsi, rax
lea rax, [rsi - 0x28]
mov qword [rsp + 0x40], rax
mov rax, r12
neg rax
lea rax, [rax + rax*4]
mov rcx, qword [rsp + 0x38]
lea r14, [rcx + rax*8]
nop dword [rax + rax]
mov rdi, qword [r14]
mov r15, qword [r14 + 8]
mov rcx, r15
and rcx, 0xfffffffffffffff8
je 0x1400473d0
mov rax, r11
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x28]
xor r13d, r13d
mov rdx, qword [rsp + 0x50]
nop dword [rax]
mov r10, qword [rdi + r13]
xor r9, r10
add rdx, r8
rol r8, 0xd
add rax, r9
xor r8, rdx
rol r9, 0x10
xor r9, rax
rol rdx, 0x20
add rax, r8
add rdx, r9
rol r8, 0x11
xor r8, rax
rol r9, 0x15
rol rax, 0x20
xor r9, rdx
xor rdx, r10
add r13, 8
cmp r13, rcx
jb 0x140047350
movq xmm3, r9
movq xmm2, r8
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, rdx
punpcklqdq xmm3, xmm4
mov edx, r15d
and edx, 7
cmp edx, 4
jb 0x1400473e6
mov r8d, dword [rdi + r13]
mov eax, 4
mov ecx, eax
or ecx, 1
cmp ecx, edx
jb 0x1400473f4
jmp 0x14004740f
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor r13d, r13d
mov edx, r15d
and edx, 7
cmp edx, 4
jae 0x1400473ba
xor r8d, r8d
xor eax, eax
mov ecx, eax
or ecx, 1
cmp ecx, edx
jae 0x14004740f
lea rcx, [rdi + rax]
movzx r9d, word [r13 + rcx]
lea ecx, [rax*8]
shl r9, cl
or r8, r9
or rax, 2
cmp eax, edx
jae 0x140047430
add r13, rax
movzx r9d, byte [rdi + r13]
shl eax, 3
mov ecx, eax
shl r9, cl
or r8, r9
jmp 0x140047439
test rdx, rdx
je 0x1400474cc
lea ecx, [rdx*8]
mov r13d, 0xff
shl r13, cl
or r13, r8
cmp rdx, 7
jne 0x1400474e0
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, r13
movq r8, xmm2
paddq xmm2, xmm3
movq rax, xmm2
pshufd xmm2, xmm3, 0xee
movq rdx, xmm2
add rdx, rcx
rol r8, 0xd
xor r8, rax
rol rcx, 0x10
xor rcx, rdx
rol rax, 0x20
add rdx, r8
add rax, rcx
rol r8, 0x11
rol rcx, 0x15
xor r8, rdx
xor rcx, rax
movq xmm3, rcx
movq xmm2, r8
punpcklqdq xmm2, xmm3
rol rdx, 0x20
xor rax, r13
movq xmm4, rdx
movq xmm3, rax
punpcklqdq xmm3, xmm4
xor r13d, r13d
jmp 0x1400474e0
mov r13d, 0xff
nop word cs:[rax + rax]
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq rdi, xmm4
shl r15, 0x38
movabs rdx, 0x100000000000000
add r15, rdx
or r15, r13
xor rdi, r15
paddq xmm2, xmm3
movq r13, xmm2
rol rcx, 0xd
add rax, rdi
xor rcx, r13
rol rdi, 0x10
xor rdi, rax
rol r13, 0x20
add rax, rcx
add r13, rdi
rol rcx, 0x11
xor rcx, rax
rol rdi, 0x15
rol rax, 0x20
xor rdi, r13
xor r13, r15
xor rax, 0xff
add r13, rcx
add rax, rdi
rol rcx, 0xd
xor rcx, r13
rol rdi, 0x10
rol r13, 0x20
xor rdi, rax
add rax, rcx
rol rcx, 0x11
add r13, rdi
xor rcx, rax
rol rdi, 0x15
xor rdi, r13
rol rax, 0x20
add r13, rcx
add rax, rdi
rol rcx, 0xd
xor rcx, r13
rol rdi, 0x10
rol r13, 0x20
xor rdi, rax
add rax, rcx
rol rcx, 0x11
add r13, rdi
xor rcx, rax
rol rdi, 0x15
xor rdi, r13
rol rax, 0x20
add r13, rcx
add rax, rdi
rol rcx, 0xd
xor rcx, r13
rol rdi, 0x10
xor rdi, rax
add rax, rcx
rol rcx, 0x11
rol rdi, 0x15
mov rdx, rax
rol rdx, 0x20
xor rdx, rcx
xor rdx, rdi
xor rdx, rax
mov rax, rdx
and rax, rbp
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov r8, rax
test ecx, ecx
jne 0x140047618
mov r9d, 0x10
mov r8, rax
nop dword [rax]
add r8, r9
and r8, rbp
movdqu xmm2, xmmword [rbx + r8]
pmovmskb ecx, xmm2
add r9, 0x10
test ecx, ecx
je 0x140047600
tzcnt ecx, ecx
add rcx, r8
and rcx, rbp
cmp byte [rbx + rcx], 0
js 0x140047634
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov r8, r12
sub r8, rax
mov r9, rcx
sub r9, rax
xor r9, r8
and r9, rbp
cmp r9, 0x10
jb 0x1400472c0
lea rax, [rcx*8]
lea rax, [rax + rax*4]
movzx r8d, byte [rbx + rcx]
shr rdx, 0x39
lea r9, [rcx - 0x10]
and r9, rbp
mov byte [rbx + rcx], dl
mov byte [rbx + r9 + 0x10], dl
cmp r8b, 0xff
je 0x1400476e0
mov rcx, rbx
sub rcx, rax
mov rax, qword [rsi - 0x28]
mov rdx, qword [rcx - 0x28]
mov qword [rsi - 0x28], rdx
mov qword [rcx - 0x28], rax
mov rax, qword [rsi - 0x20]
mov rdx, qword [rcx - 0x20]
mov qword [rsi - 0x20], rdx
mov qword [rcx - 0x20], rax
mov rax, qword [rsi - 0x18]
mov rdx, qword [rcx - 0x18]
mov qword [rsi - 0x18], rdx
mov qword [rcx - 0x18], rax
mov rax, qword [rsi - 0x10]
mov rdx, qword [rcx - 0x10]
mov qword [rsi - 0x10], rdx
mov qword [rcx - 0x10], rax
mov rax, qword [rsi - 8]
mov rdx, qword [rcx - 8]
mov qword [rsi - 8], rdx
mov qword [rcx - 8], rax
jmp 0x140047320
neg rax
add rax, rbx
add rax, 0xffffffffffffffd8
lea rcx, [r12 - 0x10]
and rcx, rbp
mov byte [rbx + r12], 0xff
mov byte [rbx + rcx + 0x10], 0xff
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdx + 0x20]
mov qword [rax + 0x20], rcx
movdqu xmm2, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmmword [rax + 0x10], xmm3
movdqu xmmword [rax], xmm2
jmp 0x1400472d4
call fcn.1400786c0
mov rcx, rbx
call fcn.140078700
int3