Function at 0x180167400
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 rdi, qword [rcx + 0x18]
mov rax, rdi
inc rax
je 0x180167de5
mov r15, rdx
mov rbx, rcx
mov rsi, qword [rcx + 8]
lea r14, [rsi + 1]
mov rcx, r14
shr rcx, 3
mov r9, r14
and r9, 0xfffffffffffffff8
sub r9, rcx
cmp rsi, 8
mov rcx, r9
cmovb rcx, rsi
movabs r8, 0x7ffffffffffffff0
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
jbe 0x18016748e
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
mov qword [rsp + 0x30], rdi
jae 0x180167515
xor eax, eax
cmp rcx, 4
setae al
lea rdi, [rax*4 + 4]
jmp 0x180167564
mov qword [rsp + 0x28], rbx
mov rbx, qword [rbx]
test r14, r14
je 0x1801675d8
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx]
por xmm0, xmmword [0x180174780]
movdqa xmmword [rbx], xmm0
cmp r14, 0x11
jb 0x1801674ed
mov eax, 0x10
movdqa xmm0, xmmword [0x180174780]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rax]
por xmm1, xmm0
movdqa xmmword [rbx + rax], xmm1
add rax, 0x10
jb 0x1801674ed
cmp rax, r14
jb 0x1801674d0
cmp r14, 0x10
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x68], r9
jae 0x1801677d0
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call fcn.18015ab20
jmp 0x1801677da
mov rax, rcx
shr rax, 0x3d
jne 0x180167de5
shl rcx, 3
mov edi, 1
cmp rcx, 0xe
jb 0x180167564
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 rdi, 0xffffffffffffffff
shr rdi, cl
inc rdi
mov ecx, 0x30
mov rax, rdi
mul rcx
jo 0x180167de5
mov r12, rax
lea r13, [rdi + 0x10]
mov rbp, rax
add rbp, r13
jb 0x180167de5
cmp rbp, r8
ja 0x180167de5
test rbp, rbp
je 0x1801675ee
movzx eax, byte [0x1801fd9d8]
mov rcx, qword [0x1801fd960]
test rcx, rcx
jne 0x1801675be
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1801675ce
mov rcx, rax
mov qword [0x1801fd960], rax
xor edx, edx
mov r8, rbp
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
jne 0x1801675f3
mov rcx, rbp
call fcn.180046430
ud2
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call fcn.18015ab20
xor ecx, ecx
jmp 0x180167db7
mov eax, 0x10
mov rbp, rdi
dec rdi
mov rcx, rbp
shr rcx, 3
and rbp, 0xfffffffffffffff8
sub rbp, rcx
cmp rdi, 8
cmovb rbp, rdi
add r12, rax
mov rcx, r12
mov dl, 0xff
mov r8, r13
call fcn.18015b1d0
sub rbp, qword [rsp + 0x30]
mov r13, qword [rbx]
test r14, r14
je 0x180167789
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x28], rbx
lea rbx, [r13 - 0x30]
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x40], rax
mov r15d, 1
xor ebp, ebp
jmp 0x1801676cb
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rdi
mov byte [r12 + rdx], al
mov byte [rcx + r12 + 0x10], al
shl rbp, 4
lea rax, [rbp*2]
add rax, rbp
mov rcx, r13
sub rcx, rax
shl rdx, 4
lea rax, [rdx + rdx*2]
mov rdx, r12
sub rdx, rax
neg rax
movdqu xmm0, xmmword [rcx - 0x30]
movdqu xmm1, xmmword [rcx - 0x20]
movups xmm2, xmmword [rcx - 0x10]
movdqu xmmword [r12 + rax - 0x30], xmm0
movups xmmword [rdx - 0x10], xmm2
movdqu xmmword [rdx - 0x20], xmm1
mov rbp, r15
lea rax, [r15 + 1]
cmp r15, r14
mov r15, rax
je 0x180167760
cmp byte [r13 + rbp], 0
js 0x1801676b8
mov rax, rbp
neg rax
lea rax, [rax + rax*2]
shl rax, 4
mov r8, qword [rbx + rax]
mov r9, qword [rbx + rax + 0x10]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
call fcn.18006f450
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [r12 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x180167738
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rdi
movdqu xmm0, xmmword [r12 + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x180167720
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [r12 + rdx], 0
js 0x180167660
movdqa xmm0, xmmword [r12]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x180167660
mov rax, qword [rsp + 0x28]
mov qword [rax], r12
mov qword [rax + 8], rdi
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
test rsi, rsi
movabs rdi, 0x7ffffffffffffff0
jne 0x18016779e
jmp 0x180167dcd
mov qword [rbx], r12
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rbp
movabs rdi, 0x7ffffffffffffff0
mov ecx, 0x30
mov rax, r14
mul rcx
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x180167dcd
sub r13, rax
mov rcx, qword [0x1801fd960]
xor edx, edx
mov r8, r13
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x180167dcd
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x60], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x58], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x48], rax
mov r13, rbx
xor r10d, r10d
jmp 0x180167867
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rsi
mov byte [rbx + r10], al
mov byte [rcx + rbx + 0x10], al
lea rax, [r10 + 1]
add r13, 0xffffffffffffffd0
cmp r10, rsi
mov r10, rax
je 0x180167da5
cmp byte [rbx + r10], 0x80
jne 0x180167853
mov rax, r10
shl rax, 4
lea rax, [rax + rax*2]
mov rcx, r10
not rcx
lea rcx, [rcx + rcx*2]
shl rcx, 4
add rcx, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rbx
sub rcx, rax
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x40], r10
mov rax, r10
neg rax
lea rax, [rax + rax*2]
shl rax, 4
add rax, rbx
add rax, 0xffffffffffffffd0
mov qword [rsp + 0x38], rax
jmp 0x180167909
mov r8, qword [rsp + 0x20]
movdqu xmm0, xmmword [r8]
movdqu xmm1, xmmword [r8 + 0x10]
movups xmm2, xmmword [rcx]
movups xmm3, xmmword [rcx + 0x10]
movups xmmword [r8], xmm2
movups xmmword [r8 + 0x10], xmm3
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + 0x10], xmm1
mov rax, qword [r8 + 0x20]
mov rdx, qword [rcx + 0x20]
mov qword [r8 + 0x20], rdx
mov qword [rcx + 0x20], rax
mov rax, qword [r8 + 0x28]
mov rdx, qword [rcx + 0x28]
mov qword [r8 + 0x28], rdx
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x38]
mov r12, qword [rax]
mov r15, qword [rax + 0x10]
mov r11d, r15d
and r11d, 7
mov rax, r15
and rax, 0xfffffffffffffff8
je 0x1801679a0
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov r10, qword [rsp + 0x48]
xor ebp, ebp
mov rdx, qword [rsp + 0x60]
nop dword [rax + rax]
add rdx, r8
rol r8, 0xd
mov rcx, qword [r12 + rbp]
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 rbp, 8
cmp rbp, rax
jb 0x180167940
cmp r11d, 3
jbe 0x1801679bc
mov r14d, dword [r12 + rbp]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r11
jb 0x1801679cd
jmp 0x1801679e7
mov r10, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
xor ebp, ebp
cmp r11d, 3
ja 0x180167989
xor r14d, r14d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r11
jae 0x1801679e7
lea rcx, [rax + rbp]
movzx edi, word [r12 + rcx]
lea ecx, [rax*8]
shl rdi, cl
or r14, rdi
or rax, 2
cmp rax, r11
jae 0x180167a10
add rbp, rax
movzx edi, byte [r12 + rbp]
shl eax, 3
mov ecx, eax
shl rdi, cl
or r14, rdi
jmp 0x180167a15
test r11, r11
je 0x180167a73
lea ecx, [r11*8]
mov r12d, 0xff
shl r12, cl
or r12, r14
cmp r11, 7
jne 0x180167b72
mov ecx, 8
add rdx, r8
rol r8, 0xd
sub rcx, r11
xor r8, rdx
rol rdx, 0x20
xor r10, r12
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, r12
jmp 0x180167a75
xor ecx, ecx
mov r11d, 1
sub r11, rcx
mov eax, r11d
and eax, 7
and r11, 0xfffffffffffffff8
cmp rcx, r11
jae 0x180167b20
nop word cs:[rax + rax]
add rdx, r8
rol r8, 0xd
mov rdi, r10
xor r8, rdx
rol rdx, 0x20
xor rdi, 0xff
add r9, rdi
shld rdi, r10, 0x10
xor rdi, r9
add rdx, rdi
rol rdi, 0x15
add r9, r8
rol r8, 0x11
mov r10, rdi
xor r8, r9
rol r9, 0x20
xor r10, rdx
xor rdx, 0xff
add rcx, 8
cmp rcx, r11
jb 0x180167aa0
xor r12d, r12d
cmp rax, 4
setae r12b
cmp eax, 4
mov r14d, 0
mov ecx, 0xff
cmovae r14, rcx
shl r12, 2
jmp 0x180167b26
xor r14d, r14d
xor r12d, r12d
mov rdi, r12
lea ecx, [r12*8]
mov ebp, 0xff
shl rbp, cl
or rdi, 1
mov r11, r12
or r11, 2
cmp rdi, rax
mov edi, 0
cmovae rbp, rdi
cmovae r11, r12
or rbp, r14
lea ecx, [r11*8]
mov r12d, 0xff
shl r12, cl
cmp r11, rax
cmovae r12, rdi
or r12, rbp
shl r15, 0x38
movabs rax, 0x100000000000000
add r15, rax
add rdx, r8
rol r8, 0xd
or r15, r12
xor r8, rdx
rol rdx, 0x20
xor r10, r15
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, r15
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, rsi
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
mov r10, qword [rsp + 0x40]
jne 0x180167c98
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x180167c80
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x180167cb4
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, rsi
cmp r9, 0x10
jb 0x180167840
mov rcx, rdx
not rcx
lea rcx, [rcx + rcx*2]
shl rcx, 4
add rcx, rbx
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rbx + rdx], al
mov byte [r9 + rbx + 0x10], al
cmp r8b, 0xff
je 0x180167d70
shl rdx, 4
lea rdx, [rdx + rdx*2]
mov rax, rbx
sub rax, rdx
cmp qword [rsp + 0x20], rax
jae 0x1801678c0
cmp rcx, qword [rsp + 0x70]
jae 0x1801678c0
mov rcx, 0xffffffffffffffd0
nop word [rax + rax]
movzx edx, byte [r13 + rcx]
movzx r8d, byte [rax + rcx]
mov byte [r13 + rcx], r8b
mov byte [rax + rcx], dl
movzx edx, byte [r13 + rcx + 1]
movzx r8d, byte [rax + rcx + 1]
mov byte [r13 + rcx + 1], r8b
mov byte [rax + rcx + 1], dl
add rcx, 2
jne 0x180167d30
jmp 0x180167909
lea rax, [r10 - 0x10]
and rax, rsi
mov byte [rbx + r10], 0xff
mov byte [rax + rbx + 0x10], 0xff
mov rax, qword [rsp + 0x20]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm2
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x180167853
cmp rsi, 8
mov rcx, qword [rsp + 0x68]
cmovb rcx, rsi
mov rdi, qword [rsp + 0x30]
sub rcx, rdi
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
movabs rdi, 0x7ffffffffffffff0
add rdi, 0x11
mov rax, rdi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2