Function at 0x1400178b0
Capabilities:
Create directory
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1402d4c40]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor edi, edi
lea r9, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140256250]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov rdx, qword [rbp - 0x10]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], di
jne 0x140017910
lea rcx, [rbp]
call fcn.140033f50
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rsp + 0x70]
call fcn.140029a00
nop
lea r8, [rbp]
cmp qword [rbp + 0x18], 7
cmova r8, qword [rbp]
mov rcx, qword [rbp + 0x10]
lea r9, [r8 + rcx*2]
lea rdx, [rbp + 0x40]
mov rcx, rax
call fcn.14002e770
nop
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x50]
call fcn.14002f1a0
lea rcx, [rbp - 0x70]
call fcn.14002f2b0
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14001799f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14001799f
mov rdx, qword [rax]
mov r8, qword [rdx]
mov edx, 1
mov rcx, rax
call r8
lea r9, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140256250]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov rdx, qword [rbp - 0x10]
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400179d0
mov r8, rbx
lea rcx, [rsp + 0x50]
call fcn.140033f50
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov r8d, reloc.WLDAP32.dll_Ordinal_30
lea rdx, str._appdatalocal_seidr_seidr.exe
lea rcx, [rsp + 0x50]
call fcn.14002c220
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea rcx, [rsp + 0x50]
call fcn.14002f1a0
lea rcx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rcx, qword [rbp]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140017a60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017ae2
mov eax, dword [rbp + 0x30]
lea eax, [rax*2 + 2]
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rcx, qword [rbp + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.SEIDR
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x20]
call fcn.14002f1a0
nop
lea rcx, [rbp + 0x40]
call fcn.14002f2b0
nop
lea rcx, [rbp]
call fcn.14002f1a0
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1401e2e90
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret