Function at 0x1801a31c0
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 r9, qword [rcx + 0x18]
mov rax, r9
inc rax
je 0x1801a3963
mov rbp, rdx
mov r8, rcx
mov r13, qword [rcx + 8]
lea rbx, [r13 + 1]
mov rcx, rbx
shr rcx, 3
mov r10, rbx
and r10, 0xfffffffffffffff8
sub r10, rcx
cmp r13, 8
mov rcx, r10
cmovb rcx, r13
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x48], r9
jbe 0x1801a3249
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x1801a32cb
xor eax, eax
cmp rcx, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x1801a3328
mov qword [rsp + 0x50], r10
mov rdi, qword [r8]
test rbx, rbx
je 0x1801a339c
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi]
por xmm0, xmmword [0x1801a87c0]
movdqa xmmword [rdi], xmm0
cmp rbx, 0x11
jb 0x1801a32ad
mov eax, 0x10
movdqa xmm0, xmmword [0x1801a87c0]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rax]
por xmm1, xmm0
movdqa xmmword [rdi + rax], xmm1
add rax, 0x10
jb 0x1801a32ad
cmp rax, rbx
jb 0x1801a3290
cmp rbx, 0x10
jae 0x1801a3552
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
jmp 0x1801a355b
mov rax, rcx
shr rax, 0x3d
jne 0x1801a3963
shl rcx, 3
mov r14d, 1
cmp rcx, 0xe
jb 0x1801a3328
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
inc r14
mov rax, r14
shr rax, 0x3b
jne 0x1801a3963
mov rsi, r14
shl rsi, 5
lea r15, [r14 + 0x10]
mov r12, rsi
add r12, r15
jb 0x1801a3963
movabs rax, 0x7ffffffffffffff1
cmp r12, rax
jae 0x1801a3963
test r12, r12
je 0x1801a33b2
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x1801a337f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1801a3392
mov rcx, rax
mov qword [0x180246f98], rax
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1801a33b7
mov rcx, r12
call fcn.180054480
ud2
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
xor ecx, ecx
jmp 0x1801a393a
mov edi, 0x10
mov r12, rbp
lea rbp, [r14 - 1]
mov rax, r14
shr rax, 3
and r14, 0xfffffffffffffff8
sub r14, rax
cmp rbp, 8
cmovb r14, rbp
add rdi, rsi
mov rcx, rdi
mov dl, 0xff
mov r8, r15
call sub.VCRUNTIME140.dll_memset
sub r14, qword [rsp + 0x48]
mov rax, qword [rsp + 0x38]
mov r15, qword [rax]
test rbx, rbx
je 0x1801a351c
mov qword [rsp + 0x28], r14
lea rax, [r15 - 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [r12]
mov qword [rsp + 0x40], rax
mov r14, qword [r12 + 8]
mov r12d, 1
xor esi, esi
jmp 0x1801a346e
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [rdi + rdx], al
mov byte [rcx + rdi + 0x10], al
mov rax, r15
sub rax, rsi
shl rdx, 5
mov rcx, rdi
sub rcx, rdx
neg rdx
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmmword [rdi + rdx - 0x20], xmm0
movdqu xmmword [rcx - 0x10], xmm1
mov rsi, r12
lea rax, [r12 + 1]
cmp r12, rbx
mov r12, rax
je 0x1801a34ec
cmp byte [r15 + rsi], 0
js 0x1801a345a
shl rsi, 5
mov rax, qword [rsp + 0x30]
sub rax, rsi
mov r8, qword [rax]
mov r9, qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov rdx, r14
call fcn.180129bc0
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1801a34c7
mov r8d, 0x10
nop
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1801a34b0
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [rdi + rdx], 0
js 0x1801a3420
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1801a3420
mov rax, qword [rsp + 0x38]
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
test r13, r13
je 0x1801a3948
shl rbx, 5
add r13, rbx
cmp r13, 0xffffffffffffffef
jne 0x1801a3538
jmp 0x1801a3948
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov qword [rax + 0x10], r14
shl rbx, 5
add r13, rbx
cmp r13, 0xffffffffffffffef
je 0x1801a3948
sub r15, rbx
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1801a3948
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + rbx], xmm0
mov rax, qword [rbp]
mov rsi, qword [rbp + 8]
movabs rbx, 0x736f6d6570736575
xor rbx, rax
movabs rcx, 0x646f72616e646f6d
xor rcx, rsi
add rbx, rcx
rol rcx, 0xd
xor rcx, rbx
rol rbx, 0x20
movabs rdx, 0x6c7967656e657261
mov qword [rsp + 0x70], rcx
rol rcx, 0x11
mov qword [rsp + 0x60], rcx
xor rdx, rax
mov qword [rsp + 0x68], rdx
xor r10d, r10d
mov qword [rsp + 0x58], r13
jmp 0x1801a35e3
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, r13
mov byte [rdi + r10], al
mov byte [rcx + rdi + 0x10], al
lea rax, [r10 + 1]
cmp r10, r13
mov r10, rax
je 0x1801a392d
cmp byte [rdi + r10], 0x80
jne 0x1801a35d3
mov rax, r10
not rax
shl rax, 5
add rax, rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r10
mov rax, r10
shl rax, 5
neg rax
add rax, rdi
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x40], rax
nop word [rax + rax]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rcx + 0x10]
mov rdx, rsi
xor rdx, r8
movabs rax, 0x7465646279746573
xor rdx, rax
mov rax, qword [rsp + 0x68]
lea r14, [rax + rdx]
rol rdx, 0x10
mov r10, qword [rcx]
xor rdx, r14
lea r15, [rdx + rbx]
add r14, qword [rsp + 0x70]
mov r12, r14
rol r12, 0x20
xor r14, qword [rsp + 0x60]
rol rdx, 0x15
xor rdx, r15
xor r15, r8
lea rax, [r8 + r8]
mov r9d, eax
and r9d, 6
xor r11d, r11d
and rax, 0xfffffffffffffff8
je 0x1801a36d3
nop word cs:[rax + rax]
add r15, r14
rol r14, 0xd
mov rcx, qword [r10 + r11]
xor r14, r15
rol r15, 0x20
xor rdx, rcx
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add r15, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rdx, r15
xor r15, rcx
add r11, 8
cmp r11, rax
jb 0x1801a3690
cmp r9d, 3
jbe 0x1801a36f0
mov ebp, dword [r10 + r11]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r9
jb 0x1801a3700
jmp 0x1801a372b
xor ebp, ebp
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r9
jae 0x1801a372b
lea rcx, [rax + r11]
mov r13, rbx
mov rbx, rsi
movzx esi, word [r10 + rcx]
lea ecx, [rax*8]
shl rsi, cl
or rbp, rsi
mov rsi, rbx
mov rbx, r13
mov r13, qword [rsp + 0x58]
or rax, 2
cmp rax, r9
jae 0x1801a3743
add r11, rax
movzx r9d, byte [r10 + r11]
shl eax, 3
mov ecx, eax
shl r9, cl
or rbp, r9
mov r10, qword [rsp + 0x30]
shl r8, 0x39
movabs rax, 0x800000000000000
add r8, rax
add r15, r14
rol r14, 0xd
or r8, rbp
xor r14, r15
rol r15, 0x20
xor rdx, r8
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add r15, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor rdx, r15
xor r14, r12
rol r12, 0x20
xor r15, r8
add r15, r14
rol r14, 0xd
xor r14, r15
rol r15, 0x20
xor r12, 0xff
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add r15, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rdx, r15
add r15, r14
rol r14, 0xd
xor r14, r15
rol r15, 0x20
add r12, rdx
rol rdx, 0x10
xor rdx, r12
add r15, rdx
rol rdx, 0x15
add r12, r14
rol r14, 0x11
xor r14, r12
rol r12, 0x20
xor rdx, r15
add r15, r14
rol r14, 0xd
add r12, rdx
rol rdx, 0x10
xor rdx, r12
rol rdx, 0x15
xor r14, r15
add r12, r14
rol r14, 0x11
mov rax, r12
rol rax, 0x20
xor rax, r14
xor rax, rdx
xor rax, r12
mov rcx, r13
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x1801a3868
mov r9d, 0x10
mov r8, rcx
nop word [rax + rax]
add r8, r9
and r8, r13
movdqu xmm0, xmmword [rdi + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x1801a3850
tzcnt edx, edx
add rdx, r8
and rdx, r13
cmp byte [rdi + rdx], 0
js 0x1801a3884
movdqa xmm0, xmmword [rdi]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r10
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, r13
cmp r9, 0x10
jb 0x1801a35c0
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 [r9 + rdi + 0x10], al
cmp r8b, 0xff
je 0x1801a3900
mov rax, qword [rsp + 0x28]
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 0x1801a3620
lea rax, [r10 - 0x10]
and rax, r13
mov byte [rdi + r10], 0xff
mov byte [rax + rdi + 0x10], 0xff
mov rax, qword [rsp + 0x28]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x1801a35d3
cmp r13, 8
mov rcx, qword [rsp + 0x50]
cmovb rcx, r13
sub rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.180054440
ud2