Function at 0x14004c560
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
mov r9, qword [rcx + 0x18]
mov rax, r9
inc rax
je 0x14004cefb
mov rbx, rdx
mov rsi, qword [rcx + 8]
lea r14, [rsi + 1]
mov rdx, r14
shr rdx, 3
mov rdi, r14
and rdi, 0xfffffffffffffff8
sub rdi, rdx
cmp rsi, 8
mov r8, rdi
cmovb r8, rsi
mov rdx, r8
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x28], rcx
jbe 0x14004c5e7
inc r8
cmp rax, r8
cmova r8, rax
cmp r8, 8
jae 0x14004c614
xor eax, eax
cmp r8, 4
setae al
lea r15, [rax*4 + 4]
jmp 0x14004c658
mov r15, qword [rcx]
mov rcx, r14
shr rcx, 4
xor eax, eax
test r14b, 0xf
setne al
add rax, rcx
je 0x14004c953
cmp rax, 1
jne 0x14004c8e0
xor edx, edx
jmp 0x14004c937
mov rax, r8
shr rax, 0x3d
jne 0x14004cefb
shl r8, 3
movabs rdx, 0x2492492492492493
mov rax, r8
mul rdx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 2
dec r8
bsr rcx, r8
not ecx
mov r15, 0xffffffffffffffff
shr r15, cl
inc r15
mov ecx, 0x88
mov rax, r15
mul rcx
jo 0x14004cefb
mov r13, rax
add r13, 0xf
and r13, 0xfffffffffffffff0
lea r12, [r15 + 0x10]
mov rbp, r13
add rbp, r12
jb 0x14004cefb
movabs rax, 0x7ffffffffffffff1
cmp rbp, rax
jae 0x14004cefb
test rbp, rbp
je 0x14004c6bd
movzx eax, byte [0x14006a320]
xor ecx, ecx
mov rdx, rbp
call fcn.140030bd0
mov rdi, rax
test rax, rax
jne 0x14004c6c2
mov rcx, rbp
call fcn.140016c30
mov edi, 0x10
add rdi, r13
lea r13, [r15 - 1]
mov rax, r15
shr rax, 3
mov rcx, r15
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r15, 9
cmovb rcx, r13
mov qword [rsp + 0x38], rcx
mov rcx, rdi
mov dl, 0xff
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x14004c870
mov qword [rsp + 0x30], r14
mov rcx, qword [rsp + 0x28]
mov r15, qword [rcx]
movdqa xmm0, xmmword [r15]
pmovmskb r14d, xmm0
not r14d
mov rcx, qword [rbx]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov qword [rsp + 0x20], r15
jmp 0x14004c798
lea r12d, [r14 - 1]
and r12d, r14d
dec rsi
shr rax, 0x39
lea rcx, [r8 - 0x10]
and rcx, r13
mov byte [rdi + r8], al
mov byte [rdi + rcx + 0x10], al
not rbp
mov rax, rbp
shl rax, 7
lea rdx, [rax + rbp*8]
add rdx, qword [rsp + 0x20]
not r8
mov rax, r8
shl rax, 7
lea rcx, [rax + r8*8]
add rcx, rdi
mov r8d, 0x88
call sub.VCRUNTIME140.dll_memcpy
mov r14d, r12d
test rsi, rsi
je 0x14004c85f
test r14w, r14w
jne 0x14004c7bf
nop
movdqa xmm0, xmmword [r15 + 0x10]
add r15, 0x10
pmovmskb r14d, xmm0
add rbx, 0x10
cmp r14d, 0xffff
je 0x14004c7a0
not r14d
tzcnt ebp, r14d
add rbp, rbx
mov rax, rbp
neg rax
lea rcx, [rbp*8]
shl rax, 7
sub rax, rcx
mov rcx, qword [rsp + 0x20]
mov r8, qword [rcx + rax - 0x80]
mov r9, qword [rcx + rax - 0x78]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
call fcn.140035650
mov rcx, r13
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14004c837
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r13
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14004c820
tzcnt r8d, edx
add r8, rcx
and r8, r13
cmp byte [rdi + r8], 0
js 0x14004c740
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt r8d, ecx
jmp 0x14004c740
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x48]
mov r14, qword [rsp + 0x30]
jmp 0x14004c87f
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, rax
mov qword [rcx], rdi
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x14004cedd
mov ecx, 0x88
mov rax, r14
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add r8, rax
cmp r8, 0xffffffffffffffef
je 0x14004cedd
mov r8, qword [rsp + 0x20]
sub r8, rax
mov rcx, qword [0x14006a2b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14004cedd
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x140050690]
nop dword [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r15 + r8]
por xmm1, xmm0
movdqa xmmword [r15 + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r15 + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [r15 + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x14004c900
test al, 1
je 0x14004c953
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r15 + rdx]
por xmm0, xmmword [0x140050690]
movdqa xmmword [r15 + rdx], xmm0
cmp r14, 0x10
jae 0x14004c974
lea rcx, [r15 + 0x10]
mov rdx, r15
mov r8, r14
call sub.VCRUNTIME140.dll_memmove
test r14, r14
jne 0x14004c97f
xor ecx, ecx
jmp 0x14004cecf
movdqu xmm0, xmmword [r15]
movdqu xmmword [r15 + r14], xmm0
mov qword [rsp + 0x68], rdi
mov rax, qword [rbx]
mov rcx, qword [rbx + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x38], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x30], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x60], rax
lea rax, [r15 - 0x88]
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov rdi, r15
jmp 0x14004ca1b
shr rax, 0x39
lea rcx, [rbx - 0x10]
and rcx, rsi
mov byte [r15 + rbx], al
mov byte [r15 + rcx + 0x10], al
lea rax, [rbx + 1]
add rdi, 0xffffffffffffff78
cmp rbx, rsi
mov rbx, rax
je 0x14004cec2
cmp byte [r15 + rbx], 0x80
jne 0x14004ca04
imul rcx, rbx, 0xffffffffffffff78
mov rax, qword [rsp + 0x70]
add rax, rcx
mov qword [rsp + 0x80], rax
add rcx, r15
mov qword [rsp + 0x78], rcx
mov rax, rbx
not rax
mov rcx, rax
shl rcx, 7
lea rdx, [rcx + rax*8]
add rdx, r15
mov rcx, rbx
neg rcx
lea rax, [rbx*8]
shl rcx, 7
sub rcx, rax
add rcx, r15
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x20], rbx
jmp 0x14004cb1c
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rcx]
movups xmm3, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm2
movups xmmword [rdx + 0x10], xmm3
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm2
movups xmmword [rdx + 0x30], xmm3
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmm1, xmmword [rdx + 0x50]
movups xmm2, xmmword [rcx + 0x40]
movups xmm3, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm2
movups xmmword [rdx + 0x50], xmm3
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm1
movdqu xmm0, xmmword [rdx + 0x60]
movdqu xmm1, xmmword [rdx + 0x70]
movups xmm2, xmmword [rcx + 0x60]
movups xmm3, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x60], xmm2
movups xmmword [rdx + 0x70], xmm3
movdqu xmmword [rcx + 0x60], xmm0
movdqu xmmword [rcx + 0x70], xmm1
mov rax, qword [rdx + 0x80]
mov r8, qword [rcx + 0x80]
mov qword [rdx + 0x80], r8
mov qword [rcx + 0x80], rax
mov rax, qword [rsp + 0x50]
mov r8, qword [rax - 0x80]
mov rbp, qword [rax - 0x78]
mov rax, rbp
and rax, 0xfffffffffffffff8
je 0x14004cbc0
mov r11, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x60]
xor r9d, r9d
mov r12, qword [rsp + 0x40]
nop dword [rax]
add r12, r14
rol r14, 0xd
mov rcx, qword [r8 + r9]
xor r14, r12
rol r12, 0x20
xor r13, rcx
add r11, r13
rol r13, 0x10
xor r13, r11
add r12, r13
rol r13, 0x15
add r11, r14
rol r14, 0x11
xor r14, r11
rol r11, 0x20
xor r13, r12
xor r12, rcx
add r9, 8
cmp r9, rax
jb 0x14004cb50
mov ebx, ebp
and ebx, 7
cmp ebx, 4
jb 0x14004cbe1
mov r10d, dword [r8 + r9]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jb 0x14004cbf2
jmp 0x14004cc11
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x38]
mov r11, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
xor r9d, r9d
mov ebx, ebp
and ebx, 7
cmp ebx, 4
jae 0x14004cb9d
xor r10d, r10d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jae 0x14004cc11
lea rcx, [r8 + rax]
movzx esi, word [r9 + rcx]
lea ecx, [rax*8]
shl rsi, cl
or r10, rsi
mov rsi, qword [rsp + 0x58]
or rax, 2
cmp rax, rbx
jae 0x14004cc30
add r9, rax
movzx r8d, byte [r8 + r9]
shl eax, 3
mov ecx, eax
shl r8, cl
or r10, r8
jmp 0x14004cc35
test rbx, rbx
je 0x14004cc87
lea ecx, [rbx*8]
mov eax, 0xff
shl rax, cl
or rax, r10
cmp rbx, 7
jne 0x14004cc90
add r12, r14
rol r14, 0xd
xor r13, rax
xor r14, r12
rol r12, 0x20
add r11, r13
rol r13, 0x10
xor r13, r11
add r12, r13
rol r13, 0x15
xor r13, r12
add r11, r14
rol r14, 0x11
xor r14, r11
rol r11, 0x20
xor r12, rax
xor eax, eax
jmp 0x14004cc90
mov eax, 0xff
nop dword [rax]
mov rbx, qword [rsp + 0x20]
shl rbp, 0x38
movabs rcx, 0x100000000000000
add rbp, rcx
add r12, r14
rol r14, 0xd
or rbp, rax
xor r14, r12
rol r12, 0x20
xor r13, rbp
add r11, r13
rol r13, 0x10
xor r13, r11
add r12, r13
rol r13, 0x15
add r11, r14
rol r14, 0x11
xor r13, r12
xor r14, r11
rol r11, 0x20
xor r12, rbp
add r12, r14
rol r14, 0xd
xor r14, r12
rol r12, 0x20
xor r11, 0xff
add r11, r13
rol r13, 0x10
xor r13, r11
add r12, r13
rol r13, 0x15
add r11, r14
rol r14, 0x11
xor r14, r11
rol r11, 0x20
xor r13, r12
add r12, r14
rol r14, 0xd
xor r14, r12
rol r12, 0x20
add r11, r13
rol r13, 0x10
xor r13, r11
add r12, r13
rol r13, 0x15
add r11, r14
rol r14, 0x11
xor r14, r11
rol r11, 0x20
xor r13, r12
add r12, r14
rol r14, 0xd
add r11, r13
rol r13, 0x10
xor r13, r11
rol r13, 0x15
xor r14, r12
add r11, r14
rol r14, 0x11
mov rax, r11
rol rax, 0x20
xor rax, r14
xor rax, r13
xor rax, r11
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [r15 + rcx]
pmovmskb r8d, xmm0
mov r9, rcx
test r8d, r8d
jne 0x14004cdba
mov r10d, 0x10
mov r9, rcx
nop word [rax + rax]
add r9, r10
and r9, rsi
movdqu xmm0, xmmword [r15 + r9]
pmovmskb r8d, xmm0
add r10, 0x10
test r8d, r8d
je 0x14004cda0
tzcnt r8d, r8d
add r8, r9
and r8, rsi
cmp byte [r15 + r8], 0
js 0x14004cddb
movdqa xmm0, xmmword [r15]
pmovmskb r8d, xmm0
tzcnt r8d, r8d
mov r9, rbx
sub r9, rcx
mov r10, r8
sub r10, rcx
xor r10, r9
and r10, rsi
cmp r10, 0x10
jb 0x14004c9f0
mov rcx, r8
not rcx
mov r9, rcx
shl r9, 7
lea rcx, [r9 + rcx*8]
add rcx, r15
movzx r9d, byte [r15 + r8]
shr rax, 0x39
lea r10, [r8 - 0x10]
and r10, rsi
mov byte [r15 + r8], al
mov byte [r15 + r10 + 0x10], al
cmp r9b, 0xff
je 0x14004cea0
imul rax, r8, 0xffffffffffffff78
add rax, r15
cmp qword [rsp + 0x80], rax
jae 0x14004ca80
cmp rcx, qword [rsp + 0x78]
jae 0x14004ca80
mov rcx, 0xffffffffffffff78
nop word cs:[rax + rax]
movzx r8d, byte [rdi + rcx]
movzx r9d, byte [rax + rcx]
mov byte [rdi + rcx], r9b
mov byte [rax + rcx], r8b
movzx r8d, byte [rdi + rcx + 1]
movzx r9d, byte [rax + rcx + 1]
mov byte [rdi + rcx + 1], r9b
mov byte [rax + rcx + 1], r8b
add rcx, 2
jne 0x14004ce60
jmp 0x14004cb1c
lea rax, [rbx - 0x10]
and rax, rsi
mov byte [r15 + rbx], 0xff
mov byte [r15 + rax + 0x10], 0xff
mov r8d, 0x88
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14004ca04
cmp rsi, 8
mov rcx, qword [rsp + 0x68]
cmovb rcx, rsi
sub rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140016bf0
int3