Function at 0x18000baa0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [r11 - 0x48]
sub rsp, 0x130
mov rax, qword [0x18004b010]
xor rax, rsp
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [0x180043f30]
xor edi, edi
movups xmm1, xmmword [0x180043f40]
mov ecx, edi
mov ebx, dword [0x18004b018]
mov eax, dword [0x180043f80]
movups xmmword [rsp + 0x20], xmm0
lea esi, [rdi + 0x1f]
movups xmm0, xmmword [0x180043f50]
lea r15d, [rdi + 4]
movaps xmmword [r11 - 0x28], xmm6
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x180043f70]
movups xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [0x180043f60]
movaps xmmword [r11 - 0x38], xmm7
movups xmmword [rsp + 0x60], xmm0
movaps xmmword [r11 - 0x48], xmm8
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x70], eax
cmp ebx, 2
jl 0x18000bc77
movdqa xmm5, xmmword [0x180045d60]
lea rdx, [rsp + 0x20]
movdqa xmm4, xmmword [0x1800460f0]
movdqa xmm7, xmmword [0x180045db0]
movaps xmmword [r11 - 0x58], xmm9
movdqa xmm9, xmmword [0x180045e90]
movd xmm6, r15d
movd xmm8, esi
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x28
jl 0x18000bb80
movaps xmm9, xmmword [rsp + 0xf0]
cmp ecx, 0x2a
jge 0x18000bcc2
movsxd rax, ecx
lea r8, [rsp + 0x20]
lea r8, [r8 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul edx, eax, 0x31
add dx, cx
inc ecx
xor word [r8 - 2], dx
cmp ecx, 0x2a
jl 0x18000bc90
xor r9d, r9d
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [0x18004d7d8]
mov qword [0x18004d7b8], rax
call fcn.180014f20
mov qword [0x18004e150], rax
test rax, rax
je 0x18000bcf8
mov rdx, qword [0x18004d870]
add rdx, rax
jmp 0x18000bcfb
mov rdx, rdi
mov rax, qword [rdx]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000bd12
mov rax, qword [0x18004d878]
add rax, rcx
jmp 0x18000bd15
mov rax, rdi
mov rax, qword [rax]
mov ecx, edi
mov qword [0x18004e158], rax
movups xmm0, xmmword [0x180043ef0]
mov r9, qword [rax]
movzx eax, word [0x180043f28]
mov word [rsp + 0x58], ax
movzx eax, byte [0x180043f2a]
mov byte [rsp + 0x5a], al
movups xmm1, xmmword [0x180043f00]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x180043f10]
movups xmmword [rsp + 0x30], xmm1
movsd xmm1, qword [0x180043f20]
movsd qword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x40], xmm0
cmp ebx, 2
jl 0x18000beb6
movdqa xmm0, xmmword [str.1111111111111111]
lea rdx, [rsp + 0x24]
movdqa xmm5, xmmword [0x180045d60]
movdqa xmm4, xmmword [0x1800460f0]
movdqa xmm7, xmmword [0x180045db0]
movdqa xmmword [rbp - 0x30], xmm0
mov r8d, dword [rbp - 0x30]
movd xmm6, r15d
movd xmm8, esi
nop
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x180045ea0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180045ea0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x38
jl 0x18000bdb0
cmp ecx, 0x3b
jge 0x18000beff
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x31
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x3b
jl 0x18000bed0
lea rdx, [rsp + 0x20]
mov rcx, r9
call fcn.1800203f0
mov r8, qword [0x18004d7f8]
movaps xmm8, xmmword [rsp + 0x100]
movaps xmm7, xmmword [rsp + 0x110]
movaps xmm6, xmmword [rsp + 0x120]
movsxd r14, eax
mov rax, qword [0x18004e158]
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov rcx, qword [rax + r14*8]
mov qword [0x18004d7c8], rcx
mov rcx, qword [r8]
mov rdx, rcx
cmp rcx, r8
je 0x18000bf6f
cmp qword [rdx + 0x10], rax
je 0x18000c04e
cmp qword [rdx + 0x18], rax
je 0x18000c010
mov rdx, qword [rdx]
cmp rdx, r8
jne 0x18000bf53
mov qword [rbp - 0x38], rax
cmp rcx, r8
je 0x18000bf8c
cmp qword [rcx + 0x10], rax
je 0x18000bff8
cmp qword [rcx + 0x18], rax
je 0x18000bff8
mov rcx, qword [rcx]
cmp rcx, r8
jne 0x18000bf78
mov rsi, rdi
cmp qword [rax], rdi
je 0x18000bf9d
inc rsi
cmp qword [rax + rsi*8], rdi
jne 0x18000bf94
lea rdx, [rsi*8]
mov r9d, r15d
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18000c06b
test rsi, rsi
je 0x18000bfe4
nop word [rax + rax]
mov rax, qword [rbp - 0x38]
mov rcx, qword [rax + rdi*8]
mov qword [rbx + rdi*8], rcx
inc rdi
cmp rdi, rsi
jb 0x18000bfd0
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x70]
call fcn.18001fa80
mov rcx, qword [rax]
mov qword [rcx + 0x18], rbx
lea rdx, [rbp - 0x60]
lea r8, [rbp - 0x40]
call fcn.18001fa80
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp - 0x40], rax
mov rbx, qword [0x18004e158]
lea rcx, [0x18000ac60]
mov qword [rax + r14*8], rcx
mov rcx, qword [0x18004d7f8]
mov rdx, qword [rbx]
mov qword [rbp - 0x30], rdx
mov rax, qword [rcx]
cmp rax, rcx
je 0x18000c06b
cmp qword [rax + 0x10], rdx
je 0x18000c054
cmp qword [rax + 0x18], rdx
je 0x18000c06b
mov rax, qword [rax]
cmp rax, rcx
jne 0x18000c038
jmp 0x18000c06b
lea rdx, [rbp - 0x80]
jmp 0x18000bffc
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x50]
call fcn.18001fa80
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov qword [rbx], rax
xor al, al
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.180020760
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret