Function at 0x140179740
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
mov r10, qword [rcx + 0x18]
mov rax, r10
inc rax
je 0x14017988e
mov rdi, rdx
mov r9, rcx
mov rbp, qword [rcx + 8]
lea r15, [rbp + 1]
mov rcx, r15
shr rcx, 3
mov r11, r15
and r11, 0xfffffffffffffff8
sub r11, rcx
cmp rbp, 8
mov rdx, r11
cmovb rdx, rbp
movabs r8, 0x7ffffffffffffff0
mov rcx, rdx
shr rcx, 1
cmp rax, rcx
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r10
jbe 0x1401797d0
lea rcx, [rdx + 1]
cmp rax, rdx
cmova rcx, rax
cmp rcx, 8
jae 0x140179802
xor eax, eax
cmp rcx, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x14017985b
mov qword [rsp + 0x58], r11
mov rbx, qword [r9]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x140179af1
cmp rax, 1
jne 0x140179a83
xor edx, edx
jmp 0x140179ad7
movabs rax, 0x1ffffffffffffffe
or rax, 1
cmp rcx, rax
ja 0x14017988e
shl rcx, 3
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 r14, 0xffffffffffffffff
shr r14, cl
movabs rax, 0x7fffffffffffffe
cmp r14, rax
ja 0x14017988e
inc r14
mov r12, r14
shl r12, 5
lea r15, [r14 + 0x10]
mov rdx, r12
add rdx, r15
jb 0x14017988e
cmp rdx, r8
ja 0x14017988e
test rdx, rdx
je 0x140179890
movzx eax, byte [0x141af8129]
xor ecx, ecx
call fcn.140146820
mov rbx, rax
test rax, rax
jne 0x140179895
ud2
mov ebx, 0x10
lea rsi, [r14 - 1]
mov rax, r14
shr rax, 3
mov r13, r14
and r13, 0xfffffffffffffff8
sub r13, rax
cmp r14, 9
cmovb r13, rsi
add rbx, r12
mov rcx, rbx
mov dl, 0xff
mov r8, r15
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140179a2d
mov qword [rsp + 0x48], r13
movdqa xmm0, xmmword [r8]
pmovmskb r14d, xmm0
not r14d
mov rcx, qword [rdi]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], rcx
xor r13d, r13d
mov rdi, rax
mov r15, r8
mov qword [rsp + 0x28], r8
jmp 0x14017995f
lea ecx, [r14 - 1]
and ecx, r14d
dec rdi
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
not r12
shl r12, 5
not rdx
shl rdx, 5
movdqu xmm0, xmmword [r8 + r12]
movdqu xmm1, xmmword [r8 + r12 + 0x10]
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r14d, ecx
test rdi, rdi
je 0x140179a21
test r14w, r14w
jne 0x14017998f
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r15 + 0x10]
add r15, 0x10
pmovmskb r14d, xmm0
add r13, 0x10
cmp r14d, 0xffff
je 0x140179970
not r14d
tzcnt r12d, r14d
add r12, r13
mov rax, r12
shl rax, 5
mov rcx, r8
sub rcx, rax
mov r8, qword [rcx - 0x18]
mov r9, qword [rcx - 0x10]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x30]
call fcn.14017bcc0
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1401799f7
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 0x1401799e0
mov r8, qword [rsp + 0x28]
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x140179910
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140179910
mov rax, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
jmp 0x140179a2f
xor eax, eax
sub r13, rax
mov rax, qword [rsp + 0x40]
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r13
test rbp, rbp
movabs rsi, 0x7ffffffffffffff0
je 0x140179f12
mov rax, rbp
shl rax, 5
add rbp, rax
cmp rbp, 0xffffffffffffffcf
je 0x140179f12
sub r8, rax
add r8, 0xffffffffffffffe0
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x140179f12
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x14021b990]
nop dword [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8]
por xmm1, xmm0
movdqa xmmword [rbx + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x140179aa0
test al, 1
je 0x140179af1
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x14021b990]
movdqa xmmword [rbx + rdx], xmm0
cmp r15, 0x10
jae 0x140179b12
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r15
call sub.msvcrt.dll_memmove
test r15, r15
jne 0x140179b1c
xor ecx, ecx
jmp 0x140179efa
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r15], xmm0
mov rax, qword [rdi]
mov rdi, qword [rdi + 8]
movabs r15, 0x736f6d6570736575
xor r15, rax
movabs rcx, 0x646f72616e646f6d
xor rcx, rdi
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x70], rdx
add r15, rcx
rol rcx, 0xd
xor rcx, r15
rol r15, 0x20
mov qword [rsp + 0x48], rcx
rol rcx, 0x11
mov qword [rsp + 0x68], rcx
xor r10d, r10d
mov qword [rsp + 0x60], rbp
jmp 0x140179ba3
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rbp
mov byte [rbx + r10], al
mov byte [rbx + rcx + 0x10], al
lea rax, [r10 + 1]
cmp r10, rbp
mov r10, rax
je 0x140179eed
cmp byte [rbx + r10], 0x80
jne 0x140179b93
mov rax, r10
not rax
shl rax, 5
add rax, rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r10
mov rax, r10
shl rax, 5
mov rcx, rbx
sub rcx, rax
mov qword [rsp + 0x50], rcx
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x50]
mov r9, qword [rax - 0x18]
mov r11, qword [rax - 0x10]
mov r8, rdi
xor r8, r11
movabs rax, 0x7465646279746573
xor r8, rax
mov rax, qword [rsp + 0x70]
lea rdx, [rax + r8]
rol r8, 0x10
xor r8, rdx
lea r12, [r8 + r15]
add rdx, qword [rsp + 0x48]
mov r13, rdx
rol r13, 0x20
xor rdx, qword [rsp + 0x68]
rol r8, 0x15
xor r8, r12
xor r12, r11
lea r10, [r11 + r11]
mov rax, r10
xor r14d, r14d
and rax, 0xfffffffffffffff8
je 0x140179c83
nop
add r12, rdx
rol rdx, 0xd
mov rcx, qword [r9 + r14]
xor rdx, r12
rol r12, 0x20
xor r8, rcx
add r13, r8
rol r8, 0x10
xor r8, r13
add r12, r8
rol r8, 0x15
add r13, rdx
rol rdx, 0x11
xor rdx, r13
rol r13, 0x20
xor r8, r12
xor r12, rcx
add r14, 8
cmp r14, rax
jb 0x140179c40
and r10d, 6
cmp r10d, 4
jb 0x140179cb0
mov esi, dword [r9 + r14]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r10
jb 0x140179cc0
jmp 0x140179ceb
xor esi, esi
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r10
jae 0x140179ceb
lea rcx, [r9 + rax]
mov rbp, r15
mov r15, rdi
movzx edi, word [r14 + rcx]
lea ecx, [rax*8]
shl rdi, cl
or rsi, rdi
mov rdi, r15
mov r15, rbp
mov rbp, qword [rsp + 0x60]
or rax, 2
cmp rax, r10
jae 0x140179d03
add r14, rax
movzx r9d, byte [r9 + r14]
shl eax, 3
mov ecx, eax
shl r9, cl
or rsi, r9
mov r10, qword [rsp + 0x28]
shl r11, 0x39
movabs rax, 0x7fffffffffffffe
add rax, r11
add rax, 2
add r12, rdx
rol rdx, 0xd
or rax, rsi
xor rdx, r12
rol r12, 0x20
xor r8, rax
add r13, r8
rol r8, 0x10
xor r8, r13
add r12, r8
rol r8, 0x15
add r13, rdx
rol rdx, 0x11
xor r8, r12
xor rdx, r13
rol r13, 0x20
xor r12, rax
add r12, rdx
rol rdx, 0xd
xor rdx, r12
rol r12, 0x20
xor r13, 0xff
add r13, r8
rol r8, 0x10
xor r8, r13
add r12, r8
rol r8, 0x15
add r13, rdx
rol rdx, 0x11
xor rdx, r13
rol r13, 0x20
xor r8, r12
add r12, rdx
rol rdx, 0xd
xor rdx, r12
rol r12, 0x20
add r13, r8
rol r8, 0x10
xor r8, r13
add r12, r8
rol r8, 0x15
add r13, rdx
rol rdx, 0x11
xor rdx, r13
rol r13, 0x20
xor r8, r12
add r12, rdx
rol rdx, 0xd
add r13, r8
rol r8, 0x10
xor r8, r13
rol r8, 0x15
xor rdx, r12
add r13, rdx
rol rdx, 0x11
mov rax, r13
rol rax, 0x20
xor rax, rdx
xor rax, r8
xor rax, r13
mov rcx, rbp
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x140179e28
mov r9d, 0x10
mov r8, rcx
nop dword [rax + rax]
add r8, r9
and r8, rbp
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x140179e10
tzcnt edx, edx
add rdx, r8
and rdx, rbp
cmp byte [rbx + rdx], 0
js 0x140179e44
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r10
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rbp
cmp r9, 0x10
jb 0x140179b80
mov rcx, rdx
not rcx
shl rcx, 5
add rcx, rbx
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rbp
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
cmp r8b, 0xff
je 0x140179ec0
mov rax, qword [rsp + 0x30]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rcx]
movups xmmword [rax], xmm1
movups xmmword [rcx], xmm0
movdqu xmm0, xmmword [rax + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x140179be0
lea rax, [r10 - 0x10]
and rax, rbp
mov byte [rbx + r10], 0xff
mov byte [rbx + rax + 0x10], 0xff
mov rax, qword [rsp + 0x30]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x140179b93
cmp rbp, 8
mov rcx, qword [rsp + 0x58]
cmovb rcx, rbp
sub rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
movabs rsi, 0x7ffffffffffffff0
add rsi, 0x11
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret