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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword gs:[0x60]
xor ebx, ebx
mov r9, qword [rax + 0x18]
add r9, 0x10
mov r8, qword [r9]
test r8, r8
je 0x1800993de
lea r10, str.dxgi.dll
nop dword [rax]
cmp r8, r9
je 0x1800993de
mov rdx, qword [r8 + 0x60]
mov rax, 0xffffffffffffffff
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r10 + rax*2 + 2]
jne 0x1800993d6
add rax, 2
cmp rax, 9
je 0x1800995d2
movzx ecx, word [rdx + rax*2]
cmp cx, word [r10 + rax*2]
je 0x1800993b0
mov r8, qword [r8]
test r8, r8
jne 0x1800993a0
mov rcx, rbx
movsxd rax, dword [rcx + 0x3c]
mov r8d, ebx
movups xmm0, xmmword [0x1801929b0]
mov esi, dword [0x1801a7090]
movups xmm1, xmmword [0x1801929c0]
mov edi, dword [rax + rcx + 0x2c]
mov ebp, dword [rax + rcx + 0x1c]
add rdi, rcx
mov eax, dword [0x1801929d0]
movaps xmmword [rsp + 0x70], xmm6
mov dword [rsp + 0x50], eax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
cmp esi, 2
jl 0x180099567
movdqa xmm0, xmmword [str.0000000000000000]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x180193030]
movdqa xmm4, xmmword [0x180193310]
movdqa xmm6, xmmword [0x180193080]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 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 r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180193250]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180193250]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x20
jl 0x180099460
cmp r8d, 0x24
jge 0x1800995b1
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0x24
jl 0x180099580
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, rdi
call fcn.180099010
test rax, rax
je 0x1800995db
movsxd rcx, dword [rax + 0x25]
add rax, 0x69
jmp 0x1800997b6
mov rcx, qword [r8 + 0x30]
jmp 0x1800993e1
mov eax, dword [0x180192a20]
mov dword [rsp + 0x68], eax
movzx eax, word [0x180192a24]
mov word [rsp + 0x6c], ax
movups xmm0, xmmword [0x1801929e8]
movups xmm1, xmmword [0x1801929f8]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x180192a08]
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [0x180192a18]
movsd qword [rsp + 0x60], xmm0
cmp esi, 2
jl 0x180099764
movdqa xmm0, xmmword [str.0000000000000000]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x180193030]
movdqa xmm4, xmmword [0x180193310]
movdqa xmm6, xmmword [0x180193080]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop dword [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 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 ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180193250]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180193250]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x38
jl 0x180099660
cmp eax, 0x3e
jge 0x18009979f
movsxd rax, ebx
lea r9, [rsp + 0x30]
add r9, rax
nop
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul r8d, eax, 0x32
movzx eax, bl
inc ebx
sub al, r8b
add al, 0x30
xor byte [r9 - 1], al
cmp ebx, 0x3e
jl 0x180099770
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, rdi
call fcn.180099010
movsxd rcx, dword [rax + 0x19]
add rax, 0x5d
movaps xmm6, xmmword [rsp + 0x70]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
add rax, rcx
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret