Function at 0x1400015f0
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x1660]
mov eax, 0x1760
call fcn.140014640
sub rsp, rax
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rbp + 0x1650], rax
lea rcx, [0x14001da48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400016a6
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rbx
mov qword [0x1400230c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryDirectoryObject
mov rcx, rbx
mov qword [0x140023098], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenDirectoryObject
mov rcx, rbx
mov qword [0x1400230c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x1400230b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400230a0], rax
jmp 0x1400016ad
mov rax, qword [0x1400230a0]
cmp qword [0x1400230c0], 0
je 0x140001d0e
cmp qword [0x140023098], 0
je 0x140001d0e
cmp qword [0x1400230c8], 0
je 0x140001d0e
cmp qword [0x1400230b8], 0
je 0x140001d0e
test rax, rax
je 0x140001d0e
lea r8, str.C:windows
mov qword [rsp + 0x1770], rdi
lea rdx, str.___s
lea rcx, [rbp + 0x230]
call fcn.140001370
lea rdx, [rbp + 0x230]
lea rcx, [rbp]
call qword [0x1400230c0]
xor edi, edi
mov qword [rbp - 0x58], 0x30
mov dword [rsp + 0x50], edi
lea rax, [rbp]
mov qword [rsp + 0x48], rdi
lea r9, [rbp + 0x10]
mov dword [rsp + 0x40], 0x200001
lea r8, [rbp - 0x58]
mov dword [rsp + 0x38], 3
lea rcx, [rbp - 0x68]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov qword [rsp + 0x20], rdi
mov qword [rbp - 0x40], 0x40
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rax
movdqu xmmword [rbp - 0x38], xmm0
call qword [0x140023098]
mov dword [0x1400232d8], eax
test eax, eax
js 0x140001d07
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x140001d07
lea r8, str.C:Notepad.msi
lea rdx, str.___s
lea rcx, [rbp + 0x20]
call fcn.140001370
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [0x1400230c0]
mov dword [rsp + 0x50], edi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rdi
lea r9, [rbp - 0x10]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x68]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov edx, 0x80010000
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x10], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140023098]
mov dword [0x1400232d8], eax
test eax, eax
jns 0x140001855
mov qword [0x140023090], rdi
jmp 0x14000186a
mov rax, qword [rsp + 0x60]
mov qword [0x140023090], rax
test rax, rax
jne 0x140001931
xor ecx, ecx
call fcn.140002660
lea r8, str.C:Notepad.msi
lea rdx, str.___s
lea rcx, [rbp + 0x20]
call fcn.140001370
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x10]
call qword [0x1400230c0]
mov dword [rsp + 0x50], edi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rdi
lea r9, [rbp - 0x20]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x68]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov edx, 0x80010000
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140023098]
mov dword [0x1400232d8], eax
test eax, eax
jns 0x14000191b
mov qword [0x140023090], rdi
jmp 0x140001931
mov rax, qword [rsp + 0x60]
mov qword [0x140023090], rax
cmp rax, 0xffffffffffffffff
je 0x140001d07
lea rcx, str.C:Notepad.msi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x140001d07
mov qword [rsp + 0x28], rdi
lea r8, [0x140001d30]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [0x140023090]
lea rdx, [0x140002390]
call fcn.1400010b0
mov rbx, rax
test rax, rax
je 0x140001a21
mov rcx, qword [rax + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400019eb
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolWait]
mov qword [rbx + 0x58], rdi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400019fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], rdi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140001a14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x68
mov rcx, rbx
call fcn.140002b2c
lea r8, str.C:Notepad.msi
lea rdx, str.___s
lea rcx, [rbp + 0x20]
call fcn.140001370
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x10]
call qword [0x1400230c0]
mov dword [rsp + 0x50], edi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rdi
lea r9, [rbp - 0x20]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x68]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov edx, 0x80070000
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140023098]
mov dword [0x1400232d8], eax
test eax, eax
jns 0x140001ace
mov qword [0x140023090], rdi
jmp 0x140001a21
mov rcx, qword [rsp + 0x60]
mov qword [0x140023090], rcx
test rcx, rcx
je 0x140001a21
mov dword [rbp - 0x28], edi
lea rbx, str..rbs
nop dword [rax]
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rdi
lea rdx, [rbp + 0x650]
mov qword [rsp + 0x28], rax
mov r9d, 1
mov r8d, 0xffe
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
mov eax, dword [rbp + 0x658]
lea r8, [rbp - 0x60]
shr rax, 1
lea rcx, [rbp + 0x65c]
mov edx, 0x104
mov word [rbp + rax*2 + 0x65c], di
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchFindExtension]
mov rdx, qword [rbp - 0x60]
mov rax, rdi
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rbx + rax*2 - 2]
jne 0x140001cfb
cmp rax, 5
jne 0x140001b52
mov rcx, qword [0x140023090]
lea edx, [rax - 4]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov r8d, 0x20000004
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov rcx, qword [0x140023090]
call fcn.140002110
test eax, eax
je 0x140001b92
lea r8, str.C:Notepad.msi
lea rdx, str.___s
lea rcx, [rbp + 0x20]
call fcn.140001370
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x10]
call qword [0x1400230c0]
mov dword [rsp + 0x50], edi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rdi
lea r9, [rbp - 0x20]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x68]
mov dword [rsp + 0x38], 2
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov edx, 1
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140023098]
mov rbx, qword [rsp + 0x60]
lea r8, [rbp + 0x65c]
test eax, eax
mov dword [0x1400232d8], eax
lea rdx, str.C:Notepad.msi_s
lea rcx, [rbp + 0x440]
cmovs rbx, rdi
call fcn.140001310
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x440]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.C:Notepad.msi::_INDEX_ALLOCATION
lea rdx, str.___s
lea rcx, [rbp + 0x20]
call fcn.140001370
lea r8, [rbp + 0x20]
mov ecx, 0xf
lea rdx, str.GlobalGLOBALROOTRPC_Control1.tmp
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
xor eax, eax
mov rdi, qword [rsp + 0x1770]
mov rcx, qword [rbp + 0x1650]
xor rcx, rsp
call fcn.140002ad0
mov rbx, qword [rsp + 0x1778]
add rsp, 0x1760
pop rbp
ret
mov rcx, qword [0x140023090]
jmp 0x140001af0
mov eax, 1
jmp 0x140001cd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_load_apis__d_n
call fcn.1400013d0
xor ecx, ecx
call fcn.140005114
int3