Function at 0x180052da0
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
movaps xmmword [rax - 0x38], xmm6
xor esi, esi
movaps xmmword [rax - 0x48], xmm7
mov r14, rcx
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
mov rax, qword gs:[0x60]
mov rbp, qword [rax + 0x10]
movsxd rax, dword [rbp + 0x3c]
mov r12d, dword [rax + rbp + 0x50]
test r12d, r12d
jle 0x18005302b
mov r13d, dword [0x1800ab090]
lea rdi, [rbp + 3]
movdqa xmm6, xmmword [0x1800a0180]
movdqa xmm7, xmmword [0x1800a0170]
movdqa xmm9, xmmword [0x1800a02a0]
movdqa xmm10, xmmword [0x1800a01b0]
movdqa xmm8, xmmword [0x1800a0340]
movzx eax, byte [rdi - 3]
sub al, 0x48
test al, 0xfb
jne 0x18005301d
cmp byte [rdi - 2], 0x8d
jne 0x18005301d
mov eax, dword [rdi]
add eax, 7
movsxd r15, esi
movsxd rbx, eax
mov rax, qword gs:[0x60]
add rbx, r15
add rbx, rbp
mov rdx, qword [rax + 0x10]
cmp rbx, rdx
jbe 0x18005301d
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x50]
add rcx, rdx
cmp rbx, rcx
jae 0x18005301d
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180022eb0
cmp word [r14 + 0x1a], 0
je 0x180052fb2
xor ecx, ecx
cmp r13d, 2
jl 0x180052f71
movdqa xmm2, xmm7
movdqa xmm0, xmm7
punpckldq xmm2, xmm7
mov ecx, 8
pmuldq xmm2, xmm8
punpckhdq xmm0, xmm7
pmuldq xmm0, xmm8
shufps xmm2, xmm0, 0xdd
movdqa xmm0, xmm7
psrad xmm2, 4
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm10
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [r14]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmm9
xorps xmm2, xmm0
movdqa xmm0, xmm6
movq qword [r14], xmm2
movdqa xmm2, xmm6
punpckldq xmm2, xmm6
punpckhdq xmm0, xmm6
pmuldq xmm2, xmm8
pmuldq xmm0, xmm8
shufps xmm2, xmm0, 0xdd
movdqa xmm0, xmm6
psrad xmm2, 4
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm10
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [r14 + 8]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmm9
xorps xmm2, xmm0
movq qword [r14 + 8], xmm2
movsxd rax, ecx
lea r8, [r14 + rax*2]
nop dword [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, 0xe
jl 0x180052f80
mov rax, r14
sub rbx, r14
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rbx]
sub edx, ecx
jne 0x180052fd3
add rax, 2
test ecx, ecx
jne 0x180052fc0
test edx, edx
mov rdx, qword [rsp + 0x38]
je 0x180053067
cmp rdx, 7
jbe 0x18005301d
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180053018
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800530a9
call fcn.18006a6e8
inc esi
inc rdi
cmp esi, r12d
jl 0x180052e30
xor eax, eax
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rbx, [r15 + rbp]
cmp rdx, 7
jbe 0x1800530a4
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005309f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800530a9
call fcn.18006a6e8
mov rax, rbx
jmp 0x18005302d
call fcn.180070324
int3