Function at 0x140032a90
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1400e5090]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov esi, dword [rbp + 0x1e8]
mov r14, qword [rbp + 0x1e0]
xor edi, edi
mov dword [rsp + 0x30], edi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, eax
test eax, eax
jns 0x140032eee
mov eax, esi
and eax, 0xffff00ff
cmp eax, 0x24
jne 0x140032b86
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [0x1400a4100]
test eax, eax
jne 0x140032b50
call qword [0x1400a41e8]
mov edx, eax
mov r9d, esi
lea r8, str.Unable_to_retrieve_a_path_of_the_known_folder___d__
lea rcx, [rsp + 0x68]
call fcn.140036b80
lea rdx, [0x1400e3298]
lea rcx, [rsp + 0x68]
call fcn.140073ef0
int3
cmp eax, 0x104
jbe 0x140032eee
mov r9d, esi
lea r8, str.Unable_to_retrieve_a_path_of_the_known_folder___d__
mov edx, 0xea
lea rcx, [rsp + 0x68]
call fcn.140036b80
lea rdx, [0x1400e3298]
lea rcx, [rsp + 0x68]
call fcn.140073ef0
int3
cmp eax, 0x23
jne 0x140032c1a
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x68]
lea r8, str.Common_AppData
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, 0xffffffff80000002
call fcn.140033da0
test al, al
jne 0x140032bf6
call qword [0x1400a41e8]
mov edx, eax
mov r9d, esi
lea r8, str.Unable_to_retrieve_a_path_of_the_known_folder___d__
lea rcx, [rsp + 0x38]
call fcn.140036b80
lea rdx, [0x1400e3298]
lea rcx, [rsp + 0x38]
call fcn.140073ef0
int3
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae r8, qword [rsp + 0x68]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14008338c
nop
jmp 0x140032ea9
cmp eax, 0x1a
jne 0x140032d64
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x68]
lea r8, str.AppData
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, 0xffffffff80000001
call fcn.140033da0
test al, al
jne 0x140032d3a
mov rax, qword [rsp + 0x78]
cmp rax, 0x104
jb 0x140032c8f
mov qword [rsp + 0x78], 0x104
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
mov word [rax + 0x208], di
jmp 0x140032ca4
xor r8d, r8d
mov edx, 0x104
sub rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140004770
lea rbx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call fcn.140033c40
mov r8d, eax
mov rdx, rbx
lea rcx, str._APPDATA_
call qword [0x1400a40e8]
test eax, eax
jne 0x140032ce1
call qword [0x1400a41e8]
test eax, eax
je 0x140032d3a
jmp 0x140032d12
mov eax, eax
cmp rax, qword [rsp + 0x78]
jbe 0x140032cf1
mov eax, 0xea
jmp 0x140032d12
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax], 0x25
jne 0x140032d43
mov eax, 3
mov r9d, esi
lea r8, str.Unable_to_retrieve_a_path_of_the_known_folder___d__
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140036b80
lea rdx, [0x1400e3298]
lea rcx, [rsp + 0x38]
call fcn.140073ef0
int3
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x68]
cmp rdx, 8
cmovae r8, rcx
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14008338c
nop
jmp 0x140032ea9
cmp eax, 0x1c
jne 0x140032ec8
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x68]
lea r8, str.Local_AppData
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, 0xffffffff80000001
call fcn.140033da0
test al, al
jne 0x140032e84
mov rax, qword [rsp + 0x78]
cmp rax, 0x104
jb 0x140032dd9
mov qword [rsp + 0x78], 0x104
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
mov word [rax + 0x208], di
jmp 0x140032dee
xor r8d, r8d
mov edx, 0x104
sub rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140004770
lea rbx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call fcn.140033c40
mov r8d, eax
mov rdx, rbx
lea rcx, str._LOCALAPPDATA_
call qword [0x1400a40e8]
test eax, eax
jne 0x140032e2b
call qword [0x1400a41e8]
test eax, eax
je 0x140032e84
jmp 0x140032e5c
mov eax, eax
cmp rax, qword [rsp + 0x78]
jbe 0x140032e3b
mov eax, 0xea
jmp 0x140032e5c
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax], 0x25
jne 0x140032e8d
mov eax, 3
mov r9d, esi
lea r8, str.Unable_to_retrieve_a_path_of_the_known_folder___d__
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140036b80
lea rdx, [0x1400e3298]
lea rcx, [rsp + 0x38]
call fcn.140073ef0
int3
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x68]
cmp rdx, 8
cmovae r8, rcx
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14008338c
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140032eee
inc rdx
mov r8d, 2
mov rcx, qword [rsp + 0x68]
call fcn.140005890
jmp 0x140032eee
mov r9d, esi
lea r8, str.Unable_to_retrieve_a_path_of_the_known_folder___d__
lea rcx, [rsp + 0x38]
call fcn.140036b80
lea rdx, [0x1400e3298]
lea rcx, [rsp + 0x38]
call fcn.140073ef0
int3
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rdi
mov word [r14], di
cmp word [rbp - 0x70], 0
je 0x140032f1a
lea rax, [rbp - 0x70]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140032f10
mov r8, rdi
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140005580
mov rax, r14
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14003dda0
add rsp, 0x2b0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret