Function at 0x140016640
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
cmp word [0x14001836a], 0
movups xmm0, xmmword [str.WN_PQ]
mov eax, dword [0x140018368]
mov dword [rbp - 0x19], eax
movups xmmword [rbp - 0x29], xmm0
je 0x1400166b0
xor word [rbp - 0x27], 0x3a
mov eax, 0x6e
xor word [rbp - 0x25], 0x3b
xor word [rbp - 0x23], 0x3c
xor word [rbp - 0x21], 0x3d
xor word [rbp - 0x1f], 0x3e
xor word [rbp - 0x1d], 0x3f
xor word [rbp - 0x1b], 0x40
xor word [rbp - 0x19], 0x41
xor word [rbp - 0x17], 0x42
mov word [rbp - 0x29], ax
mov qword [rsp + 0xb0], rbx
lea rcx, [rbp - 0x29]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x14001a750], rax
mov r9, rax
test rax, rax
je 0x140016a18
mov ecx, dword [0x140018378]
xor esi, esi
cmp byte [0x14001837d], sil
movsd xmm0, qword [str.wNtLXPo2._76F]
mov ebx, dword [0x14001a090]
mov dword [rbp - 1], ecx
movzx ecx, word [0x14001837c]
mov word [rbp + 3], cx
movsd qword [rbp - 9], xmm0
je 0x14001684d
mov ecx, esi
cmp ebx, 2
jl 0x140016808
movdqa xmm2, xmmword [0x140018390]
mov ecx, 8
movdqa xmm4, xmmword [0x1400183e0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400183b0]
psubd xmm2, xmm0
movd xmm0, dword [str.wNtLXPo2._76F]
andps xmm2, xmmword [0x1400183c0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400183d0]
xorps xmm2, xmm0
movd dword [rbp - 9], xmm2
movdqa xmm2, xmmword [0x1400183a0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400183b0]
psubd xmm2, xmm0
movd xmm0, dword [rbp - 5]
andps xmm2, xmmword [0x1400183c0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400183d0]
xorps xmm2, xmm0
movd dword [rbp - 5], xmm2
movsxd rax, ecx
lea r8, [rbp - 9]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0xe
jl 0x140016820
lea rdx, [rbp - 9]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x140018387], sil
mov rdi, rax
mov rcx, qword [str.wNxPRMZ_]
mov qword [rbp - 0x11], rcx
je 0x1400169a1
cmp ebx, 2
jl 0x140016960
movdqa xmm3, xmmword [0x140018390]
movdqa xmm2, xmmword [0x1400183a0]
movdqa xmm1, xmm3
movdqa xmm5, xmmword [0x1400183e0]
movdqa xmm0, xmm3
mov eax, dword [0x1400183d0]
punpckhdq xmm0, xmm3
punpckldq xmm1, xmm3
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x11]
pmulld xmm0, xmmword [0x1400183b0]
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmmword [0x1400183c0]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
xorps xmm3, xmm1
movdqa xmm1, xmm2
pmuldq xmm0, xmm5
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movd dword [rbp - 0x11], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0xd]
pmulld xmm0, xmmword [0x1400183b0]
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmmword [0x1400183c0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0xd], xmm2
jmp 0x1400169a1
lea r9, [rbp - 0x11]
mov r8d, esi
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, 0x39
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x140016970
mov rcx, qword [0x14001a750]
lea rdx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rdi, rdi
je 0x140016a18
test rax, rax
je 0x140016a18
mov rcx, qword gs:[0x40]
lea r9, [rbp + 0xf]
mov eax, ecx
lea r8, [rbp + 0x1f]
xorps xmm0, xmm0
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 7]
mov qword [rbp + 7], rsi
mov edx, 0x1fffff
mov dword [rbp + 0x1f], 0x30
mov qword [rbp + 0x27], rsi
mov dword [rbp + 0x37], esi
mov qword [rbp + 0x2f], rsi
movdqu xmmword [rbp + 0x3f], xmm0
mov qword [rbp + 0x17], rsi
call rdi
test eax, eax
jns 0x140016a0e
mov eax, 0xfffffffe
jmp 0x140016a1d
mov rcx, qword [rbp + 7]
call rbx
xor eax, eax
jmp 0x140016a1d
mov eax, 0xffffffff
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140016a60
add rsp, 0xa0
pop rbp
ret