Function at 0x140122240
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 rax, qword [rcx + 0x18]
mov qword [rsp + 0x40], rax
inc rax
je 0x140122a83
mov r12, rdx
mov r8, rcx
mov r13, qword [rcx + 8]
lea r14, [r13 + 1]
mov rcx, r14
shr rcx, 3
mov r9, r14
and r9, 0xfffffffffffffff8
sub r9, rcx
cmp r13, 8
mov rcx, r9
cmovb rcx, r13
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x28], r8
jbe 0x1401222c2
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x1401222f4
xor eax, eax
cmp rcx, 4
setae al
lea rbx, [rax*4 + 4]
jmp 0x14012234b
mov qword [rsp + 0x58], r9
mov rdi, qword [r8]
mov rcx, r14
shr rcx, 4
xor eax, eax
test r14b, 0xf
setne al
add rax, rcx
je 0x140122601
cmp rax, 1
jne 0x140122596
xor edx, edx
jmp 0x1401225e7
mov rax, rcx
shr rax, 0x3d
jne 0x140122a83
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 rbx, 0xffffffffffffffff
shr rbx, cl
movabs rax, 0x7fffffffffffffe
cmp rbx, rax
ja 0x140122a83
inc rbx
mov rsi, rbx
shl rsi, 5
lea r14, [rbx + 0x10]
mov r15, rsi
add r15, r14
jb 0x140122a83
movabs rax, 0x7ffffffffffffff1
cmp r15, rax
jae 0x140122a83
test r15, r15
je 0x14012239b
movzx eax, byte [0x14016031c]
xor ecx, ecx
mov rdx, r15
call fcn.1400fd810
mov rdi, rax
test rax, rax
jne 0x1401223a0
mov rcx, r15
call fcn.140050550
mov edi, 0x10
add rdi, rsi
lea rsi, [rbx - 1]
mov rax, rbx
shr rax, 3
mov r15, rbx
and r15, 0xfffffffffffffff8
sub r15, rax
cmp rbx, 9
cmovb r15, rsi
mov rcx, rdi
mov dl, 0xff
mov r8, r14
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140122542
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
movdqa xmm0, xmmword [r8]
pmovmskb ebx, xmm0
not ebx
mov rax, qword [r12]
mov qword [rsp + 0x48], rax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov r12, rcx
mov r14, r8
mov qword [rsp + 0x20], r8
jmp 0x14012246c
lea ecx, [rbx - 1]
and ecx, ebx
dec r12
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rdi + rdx], al
mov byte [rdi + r9 + 0x10], al
not r15
shl r15, 5
not rdx
shl rdx, 5
movdqu xmm0, xmmword [r8 + r15]
movdqu xmm1, xmmword [r8 + r15 + 0x10]
movdqu xmmword [rdi + rdx + 0x10], xmm1
movdqu xmmword [rdi + rdx], xmm0
mov ebx, ecx
test r12, r12
je 0x140122531
test bx, bx
jne 0x14012249c
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r14 + 0x10]
add r14, 0x10
pmovmskb ebx, xmm0
add rbp, 0x10
cmp ebx, 0xffff
je 0x140122480
not ebx
tzcnt r15d, ebx
add r15, rbp
mov rax, r15
shl rax, 5
mov rcx, r8
sub rcx, rax
mov r8, qword [rcx - 0x18]
mov r9, qword [rcx - 0x10]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
call fcn.14010aa30
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140122507
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1401224f0
mov r8, qword [rsp + 0x20]
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x140122420
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140122420
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x30]
jmp 0x14012254c
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor ecx, ecx
sub r15, rcx
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rcx
test r13, r13
je 0x140122a68
mov rax, r13
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffcf
je 0x140122a68
sub r8, rax
add r8, 0xffffffffffffffe0
mov rcx, qword [0x1401602a0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140122a68
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x140123850]
nop
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r8]
por xmm1, xmm0
movdqa xmmword [rdi + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rdi + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x1401225b0
test al, 1
je 0x140122601
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi + rdx]
por xmm0, xmmword [0x140123850]
movdqa xmmword [rdi + rdx], xmm0
cmp r14, 0x10
jae 0x140122622
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memmove
test r14, r14
jne 0x14012262c
xor ecx, ecx
jmp 0x140122a5a
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + r14], xmm0
mov rax, qword [r12]
mov rcx, qword [r12 + 8]
movabs rbp, 0x736f6d6570736575
xor rbp, rax
movabs r14, 0x646f72616e646f6d
xor r14, rcx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x30], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x50], rax
xor r11d, r11d
mov qword [rsp + 0x60], r13
jmp 0x1401226a3
shr rax, 0x39
lea rcx, [r11 - 0x10]
and rcx, r13
mov byte [rdi + r11], al
mov byte [rdi + rcx + 0x10], al
lea rax, [r11 + 1]
cmp r11, r13
mov r11, rax
je 0x140122a4d
cmp byte [rdi + r11], 0x80
jne 0x140122693
mov rax, r11
not rax
shl rax, 5
add rax, rdi
mov qword [rsp + 0x38], rax
mov rax, r11
shl rax, 5
mov rcx, rdi
sub rcx, rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x20], r11
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x48]
mov r15, qword [rax - 0x18]
mov rsi, qword [rax - 0x10]
mov rax, rsi
and rax, 0xfffffffffffffff8
je 0x140122780
mov r9, qword [rsp + 0x30]
mov r8, r14
mov r10, qword [rsp + 0x50]
xor r12d, r12d
mov rdx, rbp
nop dword [rax]
add rdx, r8
rol r8, 0xd
mov rcx, qword [r15 + r12]
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 r12, 8
cmp r12, rax
jb 0x140122710
mov ebx, esi
and ebx, 7
cmp ebx, 4
jb 0x14012279d
mov r11d, dword [r15 + r12]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jb 0x1401227ae
jmp 0x1401227d9
mov r10, qword [rsp + 0x50]
mov r8, r14
mov r9, qword [rsp + 0x30]
mov rdx, rbp
xor r12d, r12d
mov ebx, esi
and ebx, 7
cmp ebx, 4
jae 0x14012275d
xor r11d, r11d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jae 0x1401227d9
lea rcx, [r15 + rax]
mov r13, r14
mov r14, rbp
movzx ebp, word [r12 + rcx]
lea ecx, [rax*8]
shl rbp, cl
or r11, rbp
mov rbp, r14
mov r14, r13
mov r13, qword [rsp + 0x60]
or rax, 2
cmp rax, rbx
jae 0x140122800
add r12, rax
movzx r15d, byte [r15 + r12]
shl eax, 3
mov ecx, eax
shl r15, cl
or r11, r15
jmp 0x140122805
test rbx, rbx
je 0x140122857
lea ecx, [rbx*8]
mov eax, 0xff
shl rax, cl
or rax, r11
cmp rbx, 7
jne 0x140122860
add rdx, r8
rol r8, 0xd
xor r10, rax
xor r8, rdx
rol rdx, 0x20
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, rax
xor eax, eax
jmp 0x140122860
mov eax, 0xff
nop dword [rax]
mov r11, qword [rsp + 0x20]
shl rsi, 0x38
movabs rcx, 0x100000000000000
add rsi, rcx
add rdx, r8
rol r8, 0xd
or rsi, rax
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 rax, r9
rol rax, 0x20
xor rax, r8
xor rax, r10
xor rax, r9
mov rcx, r13
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x140122988
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, r13
movdqu xmm0, xmmword [rdi + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x140122970
tzcnt edx, edx
add rdx, r8
and rdx, r13
cmp byte [rdi + rdx], 0
js 0x1401229a4
movdqa xmm0, xmmword [rdi]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r11
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, r13
cmp r9, 0x10
jb 0x140122680
mov rcx, rdx
not rcx
shl rcx, 5
add rcx, rdi
movzx r8d, byte [rdi + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, r13
mov byte [rdi + rdx], al
mov byte [rdi + r9 + 0x10], al
cmp r8b, 0xff
je 0x140122a20
mov rax, qword [rsp + 0x38]
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 0x1401226e0
lea rax, [r11 - 0x10]
and rax, r13
mov byte [rdi + r11], 0xff
mov byte [rdi + rax + 0x10], 0xff
mov rax, qword [rsp + 0x38]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x140122693
cmp r13, 8
mov rcx, qword [rsp + 0x58]
cmovb rcx, r13
sub rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140050510
int3