Function at 0x14001f340
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x300
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140160188]
xor rax, rsp
mov qword [rbp + 0x1f8], rax
mov r15, rcx
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x64]
call fcn.1400d1170
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14001f4b0
cmp dword [rsp + 0x64], 6
ja 0x14001f3c3
jne 0x14001f464
cmp dword [rsp + 0x68], 2
jb 0x14001f464
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14001f464
mov edx, 1
lea r8d, [rdx + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001f464
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001f464
movups xmm0, xmmword [0x14012ba58]
movups xmmword [rbp + 0x1a0], xmm0
movups xmm1, xmmword [0x14012ba68]
movups xmmword [rbp + 0x1b0], xmm1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001f464
lea rcx, [rax + 6]
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001f464
cmp word [rbx + 2], ax
jbe 0x14001f464
movzx edx, word [rbx + 0x32]
movzx eax, word [rbx + 0x30]
movzx ecx, word [rbx + 0x36]
mov dword [rsp + 0x64], edx
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14001f4b0
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp + 0x84]
call fcn.1400d1170
mov dword [rbp + 0x80], 0x11c
lea rcx, [rbp + 0x80]
call rbx
cmp dword [rsp + 0x64], 6
jae 0x14001f4be
xor al, al
jmp 0x14001f69b
test r15, r15
je 0x14001f4b7
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1b0], xmm0
movdqa xmm1, xmmword [0x14012f590]
movdqu xmmword [rbp + 0x1b0], xmm1
xor r12d, r12d
mov word [rbp + 0x1a0], r12w
lea r8d, [r12 + 0xc]
lea rdx, str.Advapi32.dll
lea rcx, [rbp + 0x1a0]
call fcn.140003470
nop
call fcn.140028a50
mov rcx, rax
lea rdx, [rbp + 0x1a0]
call fcn.140028af0
mov rbx, rax
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x14001f55f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f55a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f6c6
call fcn.1400cea54
movdqa xmm0, xmmword [0x14012f590]
movdqu xmmword [rbp + 0x1b0], xmm0
mov word [rbp + 0x1a0], r12w
test rbx, rbx
je 0x14001f4b7
xor dil, dil
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x5c], r12d
mov dword [rsp + 0x58], r12d
movups xmm0, xmmword [str.ConvertStringSecurityDescriptorToSecurityDescriptorW]
movups xmmword [rbp + 0x1c0], xmm0
movups xmm1, xmmword [0x14012b518]
movups xmmword [rbp + 0x1d0], xmm1
movups xmm0, xmmword [0x14012b528]
movups xmmword [rbp + 0x1e0], xmm0
mov eax, dword [0x14012b538]
mov dword [rbp + 0x1f0], eax
movzx eax, byte [0x14012b53c]
mov byte [rbp + 0x1f4], al
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x14001f4b7
lea rdx, str.GetSecurityDescriptorSacl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14001f4b7
lea rdx, str.SetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14001f4b7
xor r9d, r9d
lea r8, [rsp + 0x48]
lea edx, [r9 + 1]
lea rcx, str.S:_ML__NW___LW_
call r14
test eax, eax
je 0x14001f697
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x48]
call rsi
test eax, eax
je 0x14001f68c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea edx, [r9 + 6]
lea r8d, [r9 + 0x10]
mov rcx, r15
call rbx
test eax, eax
sete dil
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, dil
mov rcx, qword [rbp + 0x1f8]
xor rcx, rsp
call fcn.1400ce670
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400d3cc4
int3