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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rax + 8], r14
xor r10d, r10d
mov rax, qword gs:[0x60]
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rbx, qword [rax + 0x10]
movsxd rax, dword [rbx + 0x3c]
mov esi, dword [rax + rbx + 0x50]
test esi, esi
jle 0x180050b56
lea r9, [rbx + 3]
nop dword [rax + rax]
movzx eax, byte [r9 - 3]
sub al, 0x48
test al, 0xfb
jne 0x180050b4b
cmp byte [r9 - 2], 0x8d
jne 0x180050b4b
mov eax, dword [r9]
add eax, 7
movsxd r11, r10d
movsxd r8, eax
mov rax, qword gs:[0x60]
add r8, rbx
add r8, r11
mov rdx, qword [rax + 0x10]
cmp r8, rdx
jbe 0x180050b4b
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x50]
add rcx, rdx
cmp r8, rcx
jae 0x180050b4b
mov rax, r14
sub r8, r14
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180050b43
inc rax
test ecx, ecx
jne 0x180050b30
test edx, edx
je 0x180050bf2
inc r10d
inc r9
cmp r10d, esi
jl 0x180050ae0
xor r14d, r14d
mov r8, qword [0x18020bb78]
xor ebx, ebx
test r8, r8
jne 0x180050bb8
xor esi, esi
nop dword [rax]
mov rcx, qword [rdi]
mov rdx, qword [rdi + 8]
sub rdx, rcx
movsxd rax, ebx
sar rdx, 3
cmp rax, rdx
jae 0x180050bb8
mov rcx, qword [rcx + rsi]
mov r9b, 1
mov r8d, 0x60
mov dword [rsp + 0x20], 0xffffffff
mov rdx, r14
call fcn.18004f360
inc ebx
mov qword [0x18020bb78], rax
add rsi, 8
mov r8, rax
test rax, rax
je 0x180050b70
mov rax, qword [rdi]
mov r14, qword [rsp + 0x130]
cmp rax, qword [rdi + 8]
je 0x180050bd4
mov qword [rdi + 8], rax
mov r8, qword [0x18020bb78]
test r8, r8
je 0x180050bfb
mov rax, qword gs:[0x60]
sub r8, qword [rax + 0x10]
mov qword [0x18020bb78], r8
jmp 0x180051116
lea r14, [rbx + r11]
jmp 0x180050b59
cmp byte [0x1800eb2a1], 0
movups xmm0, xmmword [0x1800eb290]
movzx eax, word [0x1800eb2a0]
mov esi, dword [0x18010c088]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x40], ax
movaps xmmword [rsp + 0x100], xmm6
je 0x180050dc4
xor r8d, r8d
cmp esi, 2
jl 0x180050d7f
movdqa xmm0, xmmword [0x1800fac90]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1800fab00]
movdqa xmm4, xmmword [0x1800fad80]
movdqa xmm6, xmmword [0x1800fabc0]
movdqa xmmword [rsp + 0x50], xmm0
mov edx, dword [rsp + 0x50]
nop dword [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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x1800fac70]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x180050c70
cmp r8d, 0x12
jge 0x180050dc4
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x12
jl 0x180050d90
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
xorps xmm1, xmm1
mov rbx, 0xffffffffffffffff
movups xmmword [rbp - 0x60], xmm0
mov r8, rbx
movdqu xmmword [rbp - 0x50], xmm1
inc r8
cmp byte [rax + r8], 0
jne 0x180050de2
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.1800140a0
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x80], xmm0
mov r8, rbx
movdqu xmmword [rbp - 0x70], xmm1
nop dword [rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x180050e10
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1800140a0
movups xmm0, xmmword [0x1800ebab8]
movups xmmword [rsp + 0x30], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x180050fc5
cmp esi, 2
jl 0x180050f89
movdqa xmm0, xmmword [0x1800fac90]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1800fab00]
xor edx, edx
movdqa xmm4, xmmword [0x1800fad80]
movdqa xmm6, xmmword [0x1800fabc0]
movdqa xmmword [rsp + 0x50], xmm0
mov r8d, dword [rsp + 0x50]
nop
movd xmm2, edx
lea eax, [rdx + 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 edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x1800fac70]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
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
paddd xmm1, xmm3
psrad xmm1, 5
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, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x180050e80
jmp 0x180050fc5
lea r9, [rsp + 0x30]
xor r8d, r8d
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x10
jl 0x180050f91
movaps xmm6, xmmword [rsp + 0x100]
lea rax, [rsp + 0x30]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
inc rbx
cmp byte [rax + rbx], 0
jne 0x180050fe3
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1800140a0
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.180022f30
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.180022f30
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.180029810
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x180051067
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051062
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005117e
call fcn.1800b4d3c
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x1800510a4
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005109f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005117e
call fcn.1800b4d3c
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1800510df
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800510da
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005117e
call fcn.1800b4d3c
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x180051116
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051111
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005117e
call fcn.1800b4d3c
mov rcx, qword [rdi]
test rcx, rcx
je 0x180051166
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x18005114a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18005117e
mov rcx, r8
call fcn.1800b4d3c
mov qword [rdi], 0
mov qword [rdi + 8], 0
mov qword [rdi + 0x10], 0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
call fcn.1800bbacc
int3