Function at 0x140097830
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x50], rdx
mov rbp, qword [rcx + 0x18]
mov rax, rbp
inc rax
je 0x140097987
mov r12, rcx
mov r13, qword [rcx + 8]
lea r8, [r13 + 1]
mov rdx, r8
shr rdx, 3
mov rcx, r8
and rcx, 0xfffffffffffffff8
sub rcx, rdx
cmp r13, 8
cmovb rcx, r13
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x30], r12
jbe 0x1400978b4
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x1400978e2
xor eax, eax
cmp rcx, 4
setae al
lea rsi, [rax*4 + 4]
jmp 0x14009794a
mov rbx, qword [r12]
mov rcx, r8
shr rcx, 4
xor eax, eax
test r8b, 0xf
setne al
add rax, rcx
je 0x140097bd1
cmp rax, 1
jne 0x140097b60
xor edx, edx
jmp 0x140097bb7
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp rcx, rax
jae 0x140097987
shl rcx, 3
mov esi, 1
cmp rcx, 0xe
jb 0x14009794a
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 rsi, 0xffffffffffffffff
shr rsi, cl
movabs rax, 0x7fffffffffffffe
cmp rsi, rax
ja 0x140097987
inc rsi
mov rdi, rsi
shl rdi, 5
lea r12, [rsi + 0x10]
mov rdx, rdi
add rdx, r12
jb 0x140097987
movabs rax, 0x7ffffffffffffff0
cmp rdx, rax
ja 0x140097987
test rdx, rdx
je 0x140097989
movzx eax, byte [0x14024a149]
xor ecx, ecx
call fcn.140080d30
mov rbx, rax
test rax, rax
jne 0x14009798e
ud2
mov ebx, 0x10
lea r14, [rsi - 1]
mov rax, rsi
shr rax, 3
mov r15, rsi
and r15, 0xfffffffffffffff8
sub r15, rax
cmp rsi, 9
cmovb r15, r14
add rbx, rdi
mov rcx, rbx
mov dl, 0xff
mov r8, r12
call sub.msvcrt.dll_memset
test rbp, rbp
je 0x140097b0d
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x30]
mov r8, qword [rax]
movdqa xmm0, xmmword [r8]
pmovmskb r15d, xmm0
not r15d
xor edi, edi
mov qword [rsp + 0x40], rbp
mov r12, r8
mov qword [rsp + 0x48], r8
jmp 0x140097a44
lea ecx, [r15 - 1]
and ecx, r15d
dec rbp
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r14
mov byte [rbx + rdx], al
mov byte [r8 + rbx + 0x10], al
not rsi
shl rsi, 5
not rdx
shl rdx, 5
mov r8, qword [rsp + 0x48]
movdqu xmm0, xmmword [r8 + rsi]
movdqu xmm1, xmmword [r8 + rsi + 0x10]
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r15d, ecx
test rbp, rbp
je 0x140097afc
test r15w, r15w
jne 0x140097a70
nop word [rax + rax]
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb r15d, xmm0
add rdi, 0x10
cmp r15d, 0xffff
je 0x140097a50
not r15d
tzcnt esi, r15d
add rsi, rdi
mov rax, rsi
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 + 0x28]
call fcn.14009a4a0
mov rcx, rax
and rcx, r14
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140097ad7
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r14
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140097ac0
tzcnt edx, edx
add rdx, rcx
and rdx, r14
cmp byte [rbx + rdx], 0
js 0x1400979f0
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1400979f0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x38]
jmp 0x140097b17
mov rax, qword [rsp + 0x30]
mov r8, qword [rax]
xor ecx, ecx
sub r15, rcx
mov qword [rax], rbx
mov qword [rax + 8], r14
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rcx
test r13, r13
je 0x1400982b4
mov rax, r13
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffcf
je 0x1400982b4
sub r8, rax
add r8, 0xffffffffffffffe0
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x1400982b4
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r9d, r9d
movdqa xmm0, xmmword [0x1401ac310]
nop dword [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r9]
por xmm1, xmm0
movdqa xmmword [rbx + r9], xmm1
lea rdx, [r9 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r9 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r9 + 0x10], xmm1
mov r9, rdx
add rcx, 0xfffffffffffffffe
jne 0x140097b80
test al, 1
je 0x140097bd1
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x1401ac310]
movdqa xmmword [rbx + rdx], xmm0
cmp r8, 0x10
jae 0x140097bf0
lea rcx, [rbx + 0x10]
mov rdx, rbx
call sub.msvcrt.dll_memmove
cmp r13, 0xffffffffffffffff
jne 0x140097bfa
xor eax, eax
jmp 0x1400982ac
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r8], xmm0
movabs rax, 0x736f6d6570736575
mov rdx, qword [rsp + 0x50]
xor rax, rdx
mov qword [rsp + 0x48], rax
movabs rax, 0x646f72616e646f6d
mov rcx, qword [rsp + 0x28]
xor rax, rcx
mov qword [rsp + 0x40], rax
movabs rax, 0x6c7967656e657261
xor rax, rdx
mov qword [rsp + 0x38], rax
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x60], rax
xor edi, edi
mov qword [rsp + 0x58], rbx
jmp 0x140097c87
shr rcx, 0x39
lea rax, [rdi - 0x10]
and rax, r13
mov byte [rbx + rdi], cl
mov rbx, qword [rsp + 0x58]
mov byte [rax + rbx + 0x10], cl
lea rax, [rdi + 1]
cmp rdi, r13
mov rdi, rax
je 0x140098288
cmp byte [rbx + rdi], 0x80
jne 0x140097c77
mov rbp, rdi
not rbp
shl rbp, 5
add rbp, rbx
mov rax, rdi
neg rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rdi
nop word [rax + rax]
mov rax, qword [rsp + 0x50]
shl rax, 5
mov r11, qword [rbx + rax - 0x18]
mov rsi, qword [rbx + rax - 0x10]
mov rax, rsi
and rax, 0xfffffffffffffff8
je 0x140097d60
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov r10, qword [rsp + 0x60]
xor r15d, r15d
mov rdx, qword [rsp + 0x48]
nop word [rax + rax]
add rdx, r8
rol r8, 0xd
mov rcx, qword [r11 + r15]
xor r8, rdx
rol rdx, 0x20
xor r10, rcx
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
xor rdx, rcx
add r15, 8
cmp r15, rax
jb 0x140097cf0
mov edi, esi
and edi, 7
cmp edi, 4
jb 0x140097d81
mov r14d, dword [r11 + r15]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jb 0x140097d92
jmp 0x140097db1
mov r10, qword [rsp + 0x60]
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
xor r15d, r15d
mov edi, esi
and edi, 7
cmp edi, 4
jae 0x140097d3d
xor r14d, r14d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jae 0x140097db1
lea rcx, [rax + r15]
movzx r12d, word [r11 + rcx]
lea ecx, [rax*8]
shl r12, cl
or r14, r12
mov r12, qword [rsp + 0x30]
or rax, 2
cmp rax, rdi
jae 0x140097dd0
add r15, rax
movzx r11d, byte [r11 + r15]
shl eax, 3
mov ecx, eax
shl r11, cl
or r14, r11
jmp 0x140097dd5
test rdi, rdi
je 0x140097e32
lea ecx, [rdi*8]
mov r11d, 0xff
shl r11, cl
or r11, r14
cmp rdi, 7
jne 0x140097f0a
mov ecx, 8
add rdx, r8
rol r8, 0xd
sub rcx, rdi
xor r8, rdx
rol rdx, 0x20
xor r10, r11
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
xor r10, rdx
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor rdx, r11
jmp 0x140097e34
xor ecx, ecx
mov r11d, 1
sub r11, rcx
mov eax, r11d
and eax, 7
and r11, 0xfffffffffffffff8
cmp rcx, r11
jae 0x140097ec0
nop dword [rax]
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
xor r10, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
xor rdx, 0xff
add rcx, 8
cmp rcx, r11
jb 0x140097e50
xor edi, edi
cmp rax, 4
setae dil
cmp eax, 4
mov r14d, 0
mov ecx, 0xff
cmovae r14, rcx
shl rdi, 2
jmp 0x140097ec5
xor r14d, r14d
xor edi, edi
mov r15, rdi
or r15, 1
lea ecx, [rdi*8]
mov r11d, 0xff
shl r11, cl
mov rcx, rdi
or rcx, 2
cmp r15, rax
mov r15d, 0
cmovae r11, r15
cmovae rcx, rdi
or r11, r14
cmp rcx, rax
jae 0x140097f0a
shl ecx, 3
mov eax, 0xff
shl rax, cl
or r11, rax
mov rdi, qword [rsp + 0x28]
shl rsi, 0x38
movabs rax, 0x100000000000000
add rsi, rax
add rdx, r8
rol r8, 0xd
or rsi, r11
xor r8, rdx
rol rdx, 0x20
xor r10, rsi
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r10, rdx
xor r8, r9
rol r9, 0x20
xor rdx, rsi
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
xor r9, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
add rdx, r8
rol r8, 0xd
add r9, r10
rol r10, 0x10
xor r10, r9
rol r10, 0x15
xor r8, rdx
add r9, r8
rol r8, 0x11
mov rcx, r9
rol rcx, 0x20
xor rcx, r8
xor rcx, r10
xor rcx, r9
mov rax, r13
and rax, rcx
movdqu xmm0, xmmword [rbx + rax]
pmovmskb edx, xmm0
mov r8, rax
test edx, edx
jne 0x140098028
mov r9d, 0x10
mov r8, rax
nop
add r8, r9
and r8, r13
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x140098010
tzcnt edx, edx
add rdx, r8
and rdx, r13
cmp byte [rbx + rdx], 0
js 0x140098044
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, rdi
sub r8, rax
mov r9, rdx
sub r9, rax
xor r9, r8
and r9, r13
cmp r9, 0x10
jb 0x140097c60
mov rax, rdx
not rax
shl rax, 5
add rax, rbx
movzx r8d, byte [rbx + rdx]
shr rcx, 0x39
lea r9, [rdx - 0x10]
and r9, r13
mov byte [rbx + rdx], cl
mov rbx, qword [rsp + 0x58]
mov byte [r9 + rbx + 0x10], cl
cmp r8b, 0xff
je 0x140098260
movzx ecx, byte [rbp]
movzx edx, byte [rax]
mov byte [rbp], dl
mov byte [rax], cl
movzx ecx, byte [rbp + 1]
movzx edx, byte [rax + 1]
mov byte [rbp + 1], dl
mov byte [rax + 1], cl
movzx ecx, byte [rbp + 2]
movzx edx, byte [rax + 2]
mov byte [rbp + 2], dl
mov byte [rax + 2], cl
movzx ecx, byte [rbp + 3]
movzx edx, byte [rax + 3]
mov byte [rbp + 3], dl
mov byte [rax + 3], cl
movzx ecx, byte [rbp + 4]
movzx edx, byte [rax + 4]
mov byte [rbp + 4], dl
mov byte [rax + 4], cl
movzx ecx, byte [rbp + 5]
movzx edx, byte [rax + 5]
mov byte [rbp + 5], dl
mov byte [rax + 5], cl
movzx ecx, byte [rbp + 6]
movzx edx, byte [rax + 6]
mov byte [rbp + 6], dl
mov byte [rax + 6], cl
movzx ecx, byte [rbp + 7]
movzx edx, byte [rax + 7]
mov byte [rbp + 7], dl
mov byte [rax + 7], cl
movzx ecx, byte [rbp + 8]
movzx edx, byte [rax + 8]
mov byte [rbp + 8], dl
mov byte [rax + 8], cl
movzx ecx, byte [rbp + 9]
movzx edx, byte [rax + 9]
mov byte [rbp + 9], dl
mov byte [rax + 9], cl
movzx ecx, byte [rbp + 0xa]
movzx edx, byte [rax + 0xa]
mov byte [rbp + 0xa], dl
mov byte [rax + 0xa], cl
movzx ecx, byte [rbp + 0xb]
movzx edx, byte [rax + 0xb]
mov byte [rbp + 0xb], dl
mov byte [rax + 0xb], cl
movzx ecx, byte [rbp + 0xc]
movzx edx, byte [rax + 0xc]
mov byte [rbp + 0xc], dl
mov byte [rax + 0xc], cl
movzx ecx, byte [rbp + 0xd]
movzx edx, byte [rax + 0xd]
mov byte [rbp + 0xd], dl
mov byte [rax + 0xd], cl
movzx ecx, byte [rbp + 0xe]
movzx edx, byte [rax + 0xe]
mov byte [rbp + 0xe], dl
mov byte [rax + 0xe], cl
movzx ecx, byte [rbp + 0xf]
movzx edx, byte [rax + 0xf]
mov byte [rbp + 0xf], dl
mov byte [rax + 0xf], cl
movzx ecx, byte [rbp + 0x10]
movzx edx, byte [rax + 0x10]
mov byte [rbp + 0x10], dl
mov byte [rax + 0x10], cl
movzx ecx, byte [rbp + 0x11]
movzx edx, byte [rax + 0x11]
mov byte [rbp + 0x11], dl
mov byte [rax + 0x11], cl
movzx ecx, byte [rbp + 0x12]
movzx edx, byte [rax + 0x12]
mov byte [rbp + 0x12], dl
mov byte [rax + 0x12], cl
movzx ecx, byte [rbp + 0x13]
movzx edx, byte [rax + 0x13]
mov byte [rbp + 0x13], dl
mov byte [rax + 0x13], cl
movzx ecx, byte [rbp + 0x14]
movzx edx, byte [rax + 0x14]
mov byte [rbp + 0x14], dl
mov byte [rax + 0x14], cl
movzx ecx, byte [rbp + 0x15]
movzx edx, byte [rax + 0x15]
mov byte [rbp + 0x15], dl
mov byte [rax + 0x15], cl
movzx ecx, byte [rbp + 0x16]
movzx edx, byte [rax + 0x16]
mov byte [rbp + 0x16], dl
mov byte [rax + 0x16], cl
movzx ecx, byte [rbp + 0x17]
movzx edx, byte [rax + 0x17]
mov byte [rbp + 0x17], dl
mov byte [rax + 0x17], cl
movzx ecx, byte [rbp + 0x18]
movzx edx, byte [rax + 0x18]
mov byte [rbp + 0x18], dl
mov byte [rax + 0x18], cl
movzx ecx, byte [rbp + 0x19]
movzx edx, byte [rax + 0x19]
mov byte [rbp + 0x19], dl
mov byte [rax + 0x19], cl
movzx ecx, byte [rbp + 0x1a]
movzx edx, byte [rax + 0x1a]
mov byte [rbp + 0x1a], dl
mov byte [rax + 0x1a], cl
movzx ecx, byte [rbp + 0x1b]
movzx edx, byte [rax + 0x1b]
mov byte [rbp + 0x1b], dl
mov byte [rax + 0x1b], cl
movzx ecx, byte [rbp + 0x1c]
movzx edx, byte [rax + 0x1c]
mov byte [rbp + 0x1c], dl
mov byte [rax + 0x1c], cl
movzx ecx, byte [rbp + 0x1d]
movzx edx, byte [rax + 0x1d]
mov byte [rbp + 0x1d], dl
mov byte [rax + 0x1d], cl
movzx ecx, byte [rbp + 0x1e]
movzx edx, byte [rax + 0x1e]
mov byte [rbp + 0x1e], dl
mov byte [rax + 0x1e], cl
movzx ecx, byte [rbp + 0x1f]
movzx edx, byte [rax + 0x1f]
mov byte [rbp + 0x1f], dl
mov byte [rax + 0x1f], cl
mov rbx, qword [r12]
jmp 0x140097cb0
lea rcx, [rdi - 0x10]
and rcx, r13
mov byte [rbx + rdi], 0xff
mov byte [rcx + rbx + 0x10], 0xff
movdqu xmm0, xmmword [rbp]
movdqu xmm1, xmmword [rbp + 0x10]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
jmp 0x140097c77
mov rcx, qword [r12 + 8]
mov rbp, qword [r12 + 0x18]
lea rax, [rcx + 1]
mov rdx, rax
shr rdx, 3
and rax, 0xfffffffffffffff8
sub rax, rdx
cmp rcx, 8
cmovb rax, rcx
sub rax, rbp
mov qword [r12 + 0x10], rax
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret