Function at 0x1800510d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov rax, qword [0x180112020]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rbx, rdx
mov r15, rcx
mov qword [rbp + 0x10], rdx
xor r12d, r12d
mov rcx, r8
call fcn.180059be0
mov r14, rax
mov edi, r12d
mov rdx, qword [0x1802118b8]
test rdx, rdx
jne 0x180051188
mov esi, r12d
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rbx]
mov rcx, qword [rbx + 8]
sub rcx, r10
sar rcx, 3
movsxd rax, edi
cmp rax, rcx
jae 0x180051188
mov dword [rsp + 0x20], 0xffffffff
mov r9b, 1
mov r8d, 0x32
mov rdx, r14
mov rcx, qword [rsi + r10]
call fcn.18004ffa0
mov rdx, rax
mov qword [0x1802118b8], rax
inc edi
add rsi, 8
test rax, rax
je 0x180051140
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x18005119c
mov qword [rbx + 8], rax
mov rdx, qword [0x1802118b8]
test rdx, rdx
je 0x1800511ba
mov rax, qword gs:[0x60]
sub rdx, qword [rax + 0x10]
mov qword [0x1802118b8], rdx
jmp 0x1800516e2
movups xmm0, xmmword [0x1800ef640]
movups xmmword [rsp + 0x40], xmm0
movzx eax, word [0x1800ef650]
mov word [rsp + 0x50], ax
mov r14d, 4
lea r13d, [r14 + 0x1b]
mov esi, dword [0x180112028]
cmp byte [0x1800ef651], 0
je 0x18005137c
mov ecx, r12d
cmp esi, 2
jl 0x180051344
movdqa xmm5, xmmword [0x1800feda0]
movdqa xmm4, xmmword [0x1800ff230]
movd xmm6, r14d
movdqa xmm7, xmmword [0x1800fedf0]
movd xmm8, r13d
movdqa xmm0, xmmword [0x1800fef30]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x44]
mov r8d, dword [rsp + 0x60]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
pxor xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
pxor xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x180051240
cmp ecx, 0x12
jge 0x18005137c
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x12
jl 0x180051350
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea rax, [rsp + 0x40]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800513a0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.180013d70
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x1800513d0
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.180013d70
nop
movups xmm0, xmmword [0x1800ef630]
movups xmmword [rsp + 0x30], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x180051590
cmp esi, 2
jl 0x180051551
movdqa xmm5, xmmword [0x1800feda0]
mov edx, r12d
movdqa xmm4, xmmword [0x1800ff230]
movd xmm6, r14d
movdqa xmm7, xmmword [0x1800fedf0]
movd xmm8, r13d
movdqa xmm0, xmmword [0x1800fef30]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x34]
mov r8d, dword [rsp + 0x60]
nop word [rax + rax]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x10
jl 0x180051450
jmp 0x180051590
lea r9, [rsp + 0x30]
mov r8d, r12d
nop dword [rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jl 0x180051560
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea rax, [rsp + 0x30]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1800515a5
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.180013d70
nop
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.180022970
nop
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.180022970
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.180029370
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18005162d
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051627
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180051768
call fcn.1800b7ba8
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x18005166a
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051664
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005176e
call fcn.1800b7ba8
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1800516a6
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800516a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180051774
call fcn.1800b7ba8
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1800516e2
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800516dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005175c
call fcn.1800b7ba8
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x180051726
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x180051716
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180051762
mov rcx, r8
call fcn.1800b7ba8
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1800b7800
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800be590
nop
call fcn.1800be590
nop
call fcn.1800be590
nop
call fcn.1800be590
nop
call fcn.1800be590
int3