Function at 0x140030930
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rbx, rcx
lea r9, [rbp + 0x77]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b3980]
call sub.SHELL32.dll_SHGetKnownFolderPath
xor r12d, r12d
mov qword [rbp + 7], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r12w
mov rdx, qword [rbp + 0x77]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140030986
lea rcx, [rbp + 7]
call fcn.14000ad50
nop
mov r8d, 0x18
lea rdx, str._restoreMachineGuid.txt
lea rcx, [rbp + 7]
call fcn.1400272a0
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x29], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x140030a1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030a16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030caf
call fcn.14007bbb4
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r12w
mov dword [rbp + 0x6f], r12d
mov qword [rbp - 0x19], r12
mov qword [rbp - 9], r12
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov r8b, 0x20
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x19]
call fcn.14002ce70
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
cmp qword [rbx + 0x18], 8
jb 0x140030a7a
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx]
lea r8, [rax + rcx*2]
mov rcx, rax
jmp 0x140030a85
mov rax, qword [rbx + 0x10]
lea r8, [rbx + rax*2]
mov rcx, rbx
cmp rcx, r8
je 0x140030aa2
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rdx, [rdx + 1]
add rcx, 2
cmp rcx, r8
jne 0x140030a90
mov r15d, dword [rbp - 9]
mov qword [rbp + 7], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
mov r14, qword [rbp - 0x29]
lea rdi, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdi, qword [rbp - 0x39]
cmp r14, 8
jae 0x140030ad8
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 7], xmm0
mov esi, 7
jmp 0x140030b14
mov rsi, r14
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
cmova rsi, rax
lea rdx, [rsi + 1]
lea rcx, [rbp + 7]
call fcn.14000ace0
mov qword [rbp + 7], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.14007dab0
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], rsi
lea rcx, [rbp + 7]
call fcn.1400072f0
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x1f01ff
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140030b89
lea r8d, [rax + 0x1e]
lea rdx, str.ChangeInden_CreateFile_failed
jmp 0x140030bbc
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x6f]
lea r8d, [r15 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140030bde
lea r8d, [rax + 0x1c]
lea rdx, str.ChangeInden_WriteFile_failed
mov qword [rbp + 7], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 7
lea rcx, [rbp + 7]
call fcn.14000ad50
lea rcx, [rbp + 7]
call entry0
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140030bed
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140030c32
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030c2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030cb5
call fcn.14007bbb4
mov qword [rbp - 9], r12
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140030c7e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030c79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030ca9
call fcn.14007bbb4
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r12w
mov rcx, rbx
call fcn.14000a970
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140082148
nop
call fcn.140082148
int3
call fcn.140082148
int3