Function at 0x140015484
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x500
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14002a288]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov r13, rdx
mov r12, rcx
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
and qword [rsp + 0x50], 0
mov byte [rsp + 0x58], 1
lea rcx, [rsp + 0x50]
call fcn.140014f3c
mov edi, eax
cmp byte [rsp + 0x58], 0
je 0x140015524
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsi]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140015521
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rsi], r15
test edi, edi
jns 0x140015548
mov rcx, qword [rbp + 0x438]
mov r9d, edi
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0xec
call fcn.140002c38
jmp 0x140015884
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
and qword [rsp + 0x50], 0
mov byte [rsp + 0x58], 1
lea r9, [rsp + 0x50]
mov r8, qword [rsp + 0x70]
xor edx, edx
lea rcx, [0x140021548]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov edi, eax
cmp byte [rsp + 0x58], 0
je 0x1400155b3
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsi]
test r14, r14
je 0x1400155b0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rsi], r15
test edi, edi
jns 0x1400155d7
mov rcx, qword [rbp + 0x438]
mov r9d, edi
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, pe_nt_image_headers64
call fcn.140002c38
jmp 0x140015873
mov r9, qword [rsp + 0x68]
lea r8, str._s.ssh_
mov ebx, 0x104
mov edx, ebx
lea rcx, [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_swprintf_s]
xor edx, edx
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
lea r9, [rbp - 0x30]
lea r8, str._s_authorized_keys
mov edx, ebx
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.msvcrt.dll_swprintf_s]
mov edx, 1
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x14001564a
mov rcx, qword [rbp + 0x438]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
lea edx, [rbx - 1]
call fcn.140002c6c
mov edi, eax
jmp 0x140015873
and qword [rsp + 0x78], 0
lea rcx, [rsp + 0x78]
call fcn.140015084
mov edi, eax
mov rbx, qword [rsp + 0x78]
test eax, eax
jns 0x140015685
mov rcx, qword [rbp + 0x438]
mov r9d, eax
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0x106
call fcn.140002c38
jmp 0x140015865
xor r9d, r9d
mov r8, rbx
lea edx, [r9 + 1]
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1400156bc
mov rcx, qword [rbp + 0x438]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0x10b
call fcn.140002c6c
mov edi, eax
jmp 0x140015865
mov dword [rbp - 0x80], 0x18
lea rax, [rbp - 0x60]
mov qword [rbp - 0x78], rax
and dword [rbp - 0x70], 0
xor edi, edi
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x80]
mov edx, 0xc0000000
mov r8d, 1
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140015729
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x20
jne 0x14001572e
lea ecx, [rsi + 0x33]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
inc edi
cmp edi, 5
jl 0x1400156d1
jmp 0x14001572e
test rsi, rsi
jne 0x140015735
mov edx, 0x126
jmp 0x140015753
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14001576d
mov edx, 0x127
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov rcx, qword [rbp + 0x438]
call fcn.140002c6c
mov edi, eax
jmp 0x140015852
lea rdx, [rsp + 0x64]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov r15, rax
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov r12, rax
mov edx, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x64]
add edx, 6
add r8d, edx
mov dword [rsp + 0x40], r8d
mov edi, r8d
lea rdx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140015822
mov byte [rax], 0
mov byte [rax + rdi], 0
mov edx, dword [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov r9, r15
lea r8, str._S__S___r_n
mov rcx, rax
call qword [sym.imp.msvcrt.dll_sprintf_s]
mov dword [rsp + 0x40], eax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14001581b
mov rcx, qword [rbp + 0x438]
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0x13d
call fcn.140002c6c
mov edi, eax
jmp 0x14001581d
xor edi, edi
mov rax, r14
jmp 0x140015844
mov rcx, qword [rbp + 0x438]
mov edi, 0x8007000e
mov r9d, edi
lea r8, str.onecore_sdktoolsconnectivitydevtoolsbootstrappingwinrtlibdevtoolsuseraccount.cpp
mov edx, 0x131
call fcn.140002c38
xor eax, eax
test rax, rax
je 0x140015852
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140015865
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rbx, rbx
je 0x140015873
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140015884
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop
mov rcx, qword [rsp + 0x70]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140015899
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14001ae30
mov rbx, qword [rsp + 0x550]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret