Function at 0x180182af0
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 r12, qword [rcx + 0x18]
mov rax, r12
inc rax
je 0x180183538
mov r9, rdx
mov rbx, rcx
mov rdi, qword [rcx + 8]
lea r8, [rdi + 1]
mov rcx, r8
shr rcx, 3
mov rdx, r8
and rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp rdi, 8
mov qword [rsp + 0x70], rdx
mov rcx, rdx
cmovb rcx, rdi
movabs r14, 0x7ffffffffffffff0
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
jbe 0x180182b81
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x180182c03
xor eax, eax
cmp rcx, 4
setae al
lea rax, [rax*4 + 4]
jmp 0x180182c52
mov qword [rsp + 0x40], rbx
mov rbx, qword [rbx]
test r8, r8
je 0x180182cd9
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx]
por xmm0, xmmword [0x18018b840]
movdqa xmmword [rbx], xmm0
cmp r8, 0x11
jb 0x180182bdd
mov eax, 0x10
movdqa xmm0, xmmword [0x18018b840]
nop dword [rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rax]
por xmm1, xmm0
movdqa xmmword [rbx + rax], xmm1
add rax, 0x10
jb 0x180182bdd
cmp rax, r8
jb 0x180182bc0
cmp r8, 0x10
mov qword [rsp + 0x38], r12
jae 0x180182eea
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov rsi, r9
call fcn.180170ea0
mov r9, rsi
jmp 0x180182ef4
mov rax, rcx
shr rax, 0x3d
jne 0x180183538
shl rcx, 3
mov eax, 1
cmp rcx, 0xe
jb 0x180182c52
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 rax, 0xffffffffffffffff
shr rax, cl
inc rax
mov ecx, 0x68
mov r15, rax
mul rcx
jo 0x180183538
mov rsi, rax
add rsi, 0xf
and rsi, 0xfffffffffffffff0
lea rbp, [r15 + 0x10]
mov r13, rsi
add r13, rbp
jb 0x180183538
cmp r13, r14
ja 0x180183538
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x30], r8
test r13, r13
mov qword [rsp + 0x38], r12
je 0x180182cec
mov rcx, qword [0x180219958]
test rcx, rcx
jne 0x180182cbc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180182ccf
mov rcx, rax
mov qword [0x180219958], rax
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
jne 0x180182cf2
mov rcx, r13
call fcn.18004c6e0
ud2
lea rcx, [rbx + 0x10]
mov rdx, rbx
call fcn.180170ea0
xor ecx, ecx
jmp 0x180183511
mov r12d, 0x10
lea r14, [r15 - 1]
mov rax, r15
shr rax, 3
and r15, 0xfffffffffffffff8
sub r15, rax
cmp r14, 8
cmovb r15, r14
add r12, rsi
mov rcx, r12
mov dl, 0xff
mov r8, rbp
call fcn.180171550
sub r15, qword [rsp + 0x38]
mov r13, qword [rbx]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x180182e9e
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x40], rbx
lea rsi, [r13 - 0x68]
mov rax, qword [rsp + 0x48]
mov rbp, qword [rax]
mov r15, qword [rax + 8]
xor ebx, ebx
jmp 0x180182de2
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, r14
mov byte [r12 + rdx], al
mov byte [rcx + r12 + 0x10], al
imul rax, rbx, 0xffffffffffffff98
imul rcx, rdx, 0xffffffffffffff98
mov rdx, qword [rax + r13 - 8]
mov qword [rcx + r12 - 8], rdx
movups xmm0, xmmword [rax + r13 - 0x18]
movups xmmword [rcx + r12 - 0x18], xmm0
movups xmm0, xmmword [rax + r13 - 0x28]
movups xmmword [rcx + r12 - 0x28], xmm0
movdqu xmm0, xmmword [rax + r13 - 0x68]
movdqu xmm1, xmmword [rax + r13 - 0x58]
movups xmm2, xmmword [rax + r13 - 0x48]
movups xmm3, xmmword [rax + r13 - 0x38]
movups xmmword [rcx + r12 - 0x38], xmm3
movups xmmword [rcx + r12 - 0x48], xmm2
movdqu xmmword [rcx + r12 - 0x58], xmm1
movdqu xmmword [rcx + r12 - 0x68], xmm0
lea rax, [rbx + 1]
cmp rbx, rdi
mov rbx, rax
je 0x180182e70
cmp byte [r13 + rbx], 0
js 0x180182dd2
mov rax, rbx
neg rax
imul rax, rax, 0x68
mov r8, qword [rsi + rax]
mov r9, qword [rsi + rax + 0x10]
mov rcx, rbp
mov rdx, r15
call fcn.18007a6a0
mov rcx, rax
and rcx, r14
movdqu xmm0, xmmword [r12 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x180182e48
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r14
movdqu xmm0, xmmword [r12 + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x180182e30
tzcnt edx, edx
add rdx, rcx
and rdx, r14
cmp byte [r12 + rdx], 0
js 0x180182d60
movdqa xmm0, xmmword [r12]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x180182d60
mov rax, qword [rsp + 0x40]
mov qword [rax], r12
mov qword [rax + 8], r14
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
test rdi, rdi
movabs r14, 0x7ffffffffffffff0
mov rax, qword [rsp + 0x30]
jne 0x180182eb3
jmp 0x18018351d
mov qword [rbx], r12
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r15
movabs r14, 0x7ffffffffffffff0
mov ecx, 0x68
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rdi, rax
cmp rdi, 0xffffffffffffffef
je 0x18018351d
sub r13, rax
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18018351d
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r8], xmm0
mov rax, qword [r9]
mov rcx, qword [r9 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x28], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x68], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x60], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x58], rax
mov r12, rbx
xor r10d, r10d
jmp 0x180182f77
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rdi
mov byte [rbx + r10], al
mov byte [rcx + rbx + 0x10], al
lea rax, [r10 + 1]
add r12, 0xffffffffffffff98
cmp r10, rdi
mov r10, rax
je 0x1801834f5
cmp byte [rbx + r10], 0x80
jne 0x180182f63
imul rax, r10, 0xffffffffffffff98
lea rcx, [rbx + rax]
add rcx, 0xffffffffffffff98
mov qword [rsp + 0x80], rcx
add rax, rbx
mov qword [rsp + 0x78], rax
mov rax, r10
not rax
imul rax, rax, 0x68
add rax, rbx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], r10
mov rax, r10
neg rax
imul rax, rax, 0x68
add rax, rbx
add rax, 0xffffffffffffff98
mov qword [rsp + 0x48], rax
jmp 0x180183051
mov r8, qword [rsp + 0x50]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [rcx]
movups xmmword [r8], xmm1
movups xmmword [rcx], xmm0
movups xmm0, xmmword [r8 + 0x10]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r8 + 0x10], xmm1
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [r8 + 0x20]
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [r8 + 0x20], xmm1
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [r8 + 0x30]
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [r8 + 0x30], xmm1
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [r8 + 0x40]
movups xmm1, xmmword [rcx + 0x40]
movups xmmword [r8 + 0x40], xmm1
movups xmmword [rcx + 0x40], xmm0
movdqu xmm0, xmmword [r8 + 0x50]
movdqu xmm1, xmmword [rcx + 0x50]
movdqu xmmword [r8 + 0x50], xmm1
movdqu xmmword [rcx + 0x50], xmm0
mov rax, qword [r8 + 0x60]
mov rdx, qword [rcx + 0x60]
mov qword [r8 + 0x60], rdx
mov qword [rcx + 0x60], rax
mov rax, qword [rsp + 0x48]
mov r14, qword [rax]
mov rsi, qword [rax + 0x10]
mov edx, esi
and edx, 7
mov rax, rsi
and rax, 0xfffffffffffffff8
je 0x1801830f0
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov r10, qword [rsp + 0x58]
xor r13d, r13d
mov r11, qword [rsp + 0x28]
nop word cs:[rax + rax]
add r11, r8
rol r8, 0xd
mov rcx, qword [r14 + r13]
xor r8, r11
rol r11, 0x20
xor r10, rcx
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
xor r11, rcx
add r13, 8
cmp r13, rax
jb 0x180183090
cmp edx, 3
jbe 0x18018310c
mov r15d, dword [r14 + r13]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jb 0x18018311d
jmp 0x180183137
mov r10, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov r9, qword [rsp + 0x60]
mov r11, qword [rsp + 0x28]
xor r13d, r13d
cmp edx, 3
ja 0x1801830d8
xor r15d, r15d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jae 0x180183137
lea rcx, [rax + r13]
movzx ebp, word [r14 + rcx]
lea ecx, [rax*8]
shl rbp, cl
or r15, rbp
or rax, 2
cmp rax, rdx
jae 0x180183160
add r13, rax
movzx r14d, byte [r14 + r13]
shl eax, 3
mov ecx, eax
shl r14, cl
or r15, r14
jmp 0x180183165
test rdx, rdx
je 0x1801831c2
lea ecx, [rdx*8]
mov r14d, 0xff
shl r14, cl
or r14, r15
cmp rdx, 7
jne 0x1801832a1
mov ecx, 8
add r11, r8
rol r8, 0xd
sub rcx, rdx
xor r8, r11
rol r11, 0x20
xor r10, r14
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
xor r10, r11
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r11, r14
jmp 0x1801831c4
xor ecx, ecx
mov edx, 1
sub rdx, rcx
mov eax, edx
and eax, 7
and rdx, 0xfffffffffffffff8
cmp rcx, rdx
jae 0x180183250
nop word [rax + rax]
add r11, r8
rol r8, 0xd
mov r14, r10
xor r8, r11
rol r11, 0x20
xor r14, 0xff
add r9, r14
shld r14, r10, 0x10
xor r14, r9
add r11, r14
rol r14, 0x15
add r9, r8
rol r8, 0x11
mov r10, r14
xor r8, r9
rol r9, 0x20
xor r10, r11
xor r11, 0xff
add rcx, 8
cmp rcx, rdx
jb 0x1801831e0
xor edx, edx
cmp rax, 4
setae dl
cmp eax, 4
mov r14d, 0
mov ecx, 0xff
cmovae r14, rcx
shl rdx, 2
jmp 0x180183255
xor r14d, r14d
xor edx, edx
mov r15, rdx
lea ecx, [rdx*8]
mov r13d, 0xff
shl r13, cl
or r15, 1
mov rbp, rdx
or rbp, 2
cmp r15, rax
mov r15d, 0
cmovae r13, r15
cmovae rbp, rdx
or r13, r14
lea ecx, [rbp*8]
mov r14d, 0xff
shl r14, cl
cmp rbp, rax
cmovae r14, r15
or r14, r13
shl rsi, 0x38
movabs rax, 0x100000000000000
add rsi, rax
add r11, r8
rol r8, 0xd
or rsi, r14
xor r8, r11
rol r11, 0x20
xor r10, rsi
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r10, r11
xor r8, r9
rol r9, 0x20
xor r11, rsi
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
xor r9, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
add r11, r8
rol r8, 0xd
add r9, r10
rol r10, 0x10
xor r10, r9
rol r10, 0x15
xor r8, r11
add r9, r8
rol r8, 0x11
mov rax, r9
rol rax, 0x20
xor rax, r8
xor rax, r10
xor rax, r9
mov rcx, rdi
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
mov r10, qword [rsp + 0x30]
jne 0x1801833c8
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, rdi
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x1801833b0
tzcnt edx, edx
add rdx, r8
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x1801833e4
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, rdi
cmp r9, 0x10
jb 0x180182f50
mov rcx, rdx
not rcx
imul rcx, rcx, 0x68
add rcx, rbx
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rdi
mov byte [rbx + rdx], al
mov byte [r9 + rbx + 0x10], al
cmp r8b, 0xff
je 0x1801834a0
imul rax, rdx, 0xffffffffffffff98
add rax, rbx
cmp qword [rsp + 0x80], rax
jae 0x180182fd0
cmp rcx, qword [rsp + 0x78]
jae 0x180182fd0
mov rcx, 0xffffffffffffff98
nop word cs:[rax + rax]
movzx edx, byte [r12 + rcx]
movzx r8d, byte [rax + rcx]
mov byte [r12 + rcx], r8b
mov byte [rax + rcx], dl
movzx edx, byte [r12 + rcx + 1]
movzx r8d, byte [rax + rcx + 1]
mov byte [r12 + rcx + 1], r8b
mov byte [rax + rcx + 1], dl
add rcx, 2
jne 0x180183460
jmp 0x180183051
lea rax, [r10 - 0x10]
and rax, rdi
mov byte [rbx + r10], 0xff
mov byte [rax + rbx + 0x10], 0xff
mov rdx, qword [rsp + 0x50]
mov rax, qword [rdx + 0x60]
mov qword [rcx + 0x60], rax
movups xmm0, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movups xmm3, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm3
movups xmmword [rcx + 0x20], xmm2
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x180182f63
cmp rdi, 8
mov rcx, qword [rsp + 0x70]
cmovb rcx, rdi
movabs r14, 0x7ffffffffffffff0
mov r12, qword [rsp + 0x38]
sub rcx, r12
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
add r14, 0x11
mov rax, r14
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2