Function at 0x1400031e0
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x60
mov r11, qword [0x1400396d8]
mov r15, rdx
test r11, r11
jne 0x14000365c
cmp byte [0x140031a03], r11b
movsd xmm0, qword [str.pTVXZPRS__B]
mov r10d, dword [0x140037018]
mov qword [rax + 8], rbx
lea ebx, [r11 + 4]
mov qword [rax + 0x20], rdi
lea edi, [rbx + 0x1b]
movsd qword [rax - 0x48], xmm0
movaps xmmword [rax - 0x28], xmm6
mov eax, dword [0x140031a00]
mov dword [rsp + 0x28], eax
je 0x140003391
mov r8d, r11d
cmp r10d, 2
jl 0x140003347
movdqa xmm2, xmmword [0x140031c70]
mov r8d, 8
movdqa xmm4, xmmword [0x140031cc0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140031c80]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, ebx
movd xmm5, edi
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140031c90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.pTVXZPRS__B]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140031ca0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140031c90]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x24]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140031ca0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x37
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x140003360
mov eax, dword [0x140031970]
mov r8d, r11d
movsd xmm0, qword [str._KTP]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x140031974]
mov byte [rsp + 0x3c], al
movsd qword [rsp + 0x30], xmm0
cmp r10d, 2
jl 0x1400034c7
movdqa xmm2, xmmword [0x140031c70]
mov r8d, 8
movdqa xmm4, xmmword [0x140031cc0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140031c80]
movdqa xmm0, xmm2
mov eax, dword [str.7777777777777777]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, ebx
movd xmm5, edi
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140031c90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140031ca0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str._KTP]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x30], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140031c90]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140031ca0]
movd xmm1, dword [rsp + 0x34]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
movaps xmm6, xmmword [rsp + 0x40]
lea r9, [rsp + 0x30]
movsxd rax, r8d
add r9, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x37
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x1400034e0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r10, qword [rbx]
cmp r10, rbx
je 0x140003580
nop
mov r8, qword [r10 + 0x50]
lea r9, [rsp + 0x30]
test r8, r8
je 0x140003578
nop
movsx eax, byte [r9]
lea r9, [r9 + 1]
movzx edx, word [r8]
lea r8, [r8 + 2]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x14000355d
add ax, 0x20
lea ecx, [rdx - 0x41]
cmp cx, 0x19
ja 0x14000356a
add dx, 0x20
test ax, ax
je 0x14000361a
cmp ax, dx
je 0x140003540
mov r10, qword [r10]
cmp r10, rbx
jne 0x140003530
mov r8, r11
movsxd rax, dword [r8 + 0x3c]
mov r9d, r11d
mov r10d, dword [rax + r8 + 0x88]
add r10, r8
mov ebx, dword [r10 + 0x18]
test ebx, ebx
je 0x140003648
mov qword [rsp + 0x78], rbp
movzx ebp, byte [rsp + 0x20]
mov qword [rsp + 0x80], rsi
mov esi, dword [r10 + 0x24]
mov qword [rsp + 0x50], r14
mov r14d, dword [r10 + 0x20]
mov qword [rsp + 0x58], r12
nop word [rax + rax]
mov ecx, r9d
lea rax, [rsi + rcx*2]
movzx edi, word [rax + r8]
lea rax, [r14 + rcx*4]
mov edx, dword [rax + r8]
add rdx, r8
movzx ecx, byte [rdx]
cmp cl, bpl
jne 0x140003610
lea r12, [rsp + 0x20]
sub rdx, r12
lea rax, [rsp + 0x20]
nop dword [rax]
test cl, cl
je 0x140003623
movzx ecx, byte [rdx + rax + 1]
inc rax
cmp cl, byte [rax]
je 0x140003600
inc r9d
cmp r9d, ebx
jb 0x1400035d0
jmp 0x140003631
mov r8, qword [r10 + 0x20]
jmp 0x140003583
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov r11d, dword [rcx + rdi*4]
add r11, r8
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x70]
mov qword [0x1400396d8], r11
mov rdx, r15
mov ecx, 2
add rsp, 0x60
pop r15
jmp r11