Function at 0x18001b830
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x90
mov esi, dword [0x1800a5018]
xor ebx, ebx
cmp rcx, qword [0x1800a78b0]
mov rdi, rcx
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
lea ebp, [rbx + 4]
lea r14d, [rbx + 0x1f]
movaps xmmword [rax - 0x48], xmm9
je 0x18001ba56
mov rax, qword [0x1800a78a8]
test rax, rax
jne 0x18001ba30
mov r8d, ebx
movups xmm0, xmmword [0x180095630]
movups xmm1, xmmword [0x180095640]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x180095650]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm0
cmp esi, 2
jl 0x18001b9db
movdqa xmm5, xmmword [0x18009d8f0]
lea rcx, [rsp + 0x20]
movdqa xmm4, xmmword [0x18009dd00]
mov edx, ebx
movdqa xmm7, xmmword [0x18009d930]
movdqa xmm9, xmmword [0x18009d9d0]
movd xmm6, ebp
movd xmm8, r14d
nop
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add edx, 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 [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 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 [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp edx, 0x18
jl 0x18001b8f0
jmp 0x18001ba0e
lea r9, [rsp + 0x20]
mov eax, 0x51eb851f
lea r9, [r9 + 2]
mul r8d
shr edx, 4
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x30
xor word [r9 - 2], ax
cmp r8d, 0x18
jl 0x18001b9e0
xor r9d, r9d
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [0x1800a7758]
mov qword [0x1800a78a8], rax
test rax, rax
je 0x18001bd03
mov rdx, rax
mov rcx, rdi
call fcn.18005ccf0
test al, al
je 0x18001ba4f
mov rcx, rdi
call fcn.1800789b0
test al, al
je 0x18001bd03
mov qword [0x1800a78b0], rdi
mov rcx, qword [0x1800a7670]
mov rdx, qword [0x1800a7a88]
lea r8, [rdx + rcx]
test rcx, rcx
jne 0x18001ba70
mov r8, rbx
mov rax, qword [0x1800a78a0]
cmp qword [r8], rax
je 0x18001bcb6
mov rax, qword [0x1800a7898]
test rax, rax
jne 0x18001bc51
movzx eax, word [0x180095628]
mov ecx, ebx
mov word [rsp + 0x40], ax
movups xmm0, xmmword [0x180095608]
movups xmm1, xmmword [0x180095618]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm1
cmp esi, 2
jl 0x18001bbde
movdqa xmm5, xmmword [0x18009d8f0]
lea rdx, [rsp + 0x20]
movdqa xmm4, xmmword [0x18009dd00]
movdqa xmm7, xmmword [0x18009d930]
movdqa xmm9, xmmword [0x18009d9d0]
movd xmm6, ebp
movd xmm8, r14d
nop
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, 0x10
jl 0x18001baf0
cmp ecx, 0x11
jge 0x18001bc21
movsxd rax, ecx
lea r8, [rsp + 0x20]
lea r8, [r8 + rax*2]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x32
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x30
xor word [r8 - 2], ax
cmp ecx, 0x11
jl 0x18001bbf0
xor r9d, r9d
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [0x1800a7758]
mov qword [0x1800a7898], rax
test rax, rax
je 0x18001bd03
mov rcx, qword [0x1800a7670]
mov rdx, qword [0x1800a7a88]
test rcx, rcx
je 0x18001bc5b
add rcx, rdx
jmp 0x18001bc5e
mov rcx, rbx
mov rcx, qword [rcx]
mov rdx, rax
call fcn.18005ccf0
test al, al
je 0x18001bc91
mov rcx, qword [0x1800a7670]
test rcx, rcx
je 0x18001bc82
add rcx, qword [0x1800a7a88]
jmp 0x18001bc85
mov rcx, rbx
mov rcx, qword [rcx]
call fcn.1800789b0
test al, al
je 0x18001bd03
mov rcx, qword [0x1800a7670]
test rcx, rcx
je 0x18001bca9
mov rax, qword [0x1800a7a88]
add rax, rcx
jmp 0x18001bcac
mov rax, rbx
mov rax, qword [rax]
mov qword [0x1800a78a0], rax
test rdi, rdi
je 0x18001bcc7
mov rcx, qword [0x1800a7ac0]
add rcx, rdi
jmp 0x18001bcca
mov rcx, rbx
mov rcx, qword [rcx]
call fcn.180070360
cmp rax, qword [0x1800a7890]
je 0x18001bd25
test rdi, rdi
je 0x18001bcec
mov rcx, qword [0x1800a7ac0]
add rcx, rdi
jmp 0x18001bcef
mov rcx, rbx
mov rcx, qword [rcx]
call fcn.180070360
mov rcx, rax
call fcn.1800789b0
test al, al
jne 0x18001bd07
xor al, al
jmp 0x18001bd27
test rdi, rdi
je 0x18001bd16
mov rbx, qword [0x1800a7ac0]
add rbx, rdi
mov rcx, qword [rbx]
call fcn.180070360
mov qword [0x1800a7890], rax
mov al, 1
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r14
ret