Function at 0x180321170
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get file size
Get startup folder
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rbx, r8
mov r14, rdx
mov dword [rbp - 0x50], 0x61004d
mov dword [rbp - 0x4c], 0x720063
mov edi, reloc.WS2_32.dll_WSAGetLastError
mov dword [rbp - 0x48], 0x6d006f
mov dword [rbp - 0x44], 0x640065
mov dword [rbp - 0x40], 0x46005c
mov dword [rbp - 0x3c], 0x61006c
mov dword [rbp - 0x38], 0x680073
mov dword [rbp - 0x34], 0x56005c
mov dword [rbp - 0x30], 0x720065
mov dword [rbp - 0x2c], 0x690073
mov dword [rbp - 0x28], 0x6e006f
mov dword [rbp - 0x24], 0x64002e
mov dword [rbp - 0x20], reloc.MSVCP140.dll___Incref_facet_locale_std__UEAAXXZ
xor r15d, r15d
mov word [rbp - 0x1c], r15w
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi - 0x46]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x180321270
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.18007da60
nop
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r15w
lea rax, [rbp - 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1803212b2
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x38]
call fcn.18007da60
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.18010e780
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x180321325
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180321320
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180321320
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r15w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x18032137e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180321379
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180321379
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea rcx, [rbp - 0x70]
call fcn.18010b7a0
mov byte [rbx], al
test al, al
jne 0x1803213a9
xor dil, dil
jmp 0x180321536
mov qword [rsp + 0x30], r15
mov ecx, 8
call fcn.1804688ec
mov qword [rbp - 0x78], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r12d, 1
mov r9d, r12d
mov r8d, 0x80000000
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.180119790
mov rbx, qword [rsp + 0x30]
xor dil, dil
test al, al
je 0x180321509
test rbx, rbx
je 0x180321509
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1803214ef
lea rdx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x18032143a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1803214ef
mov ecx, dword [rbp - 0x78]
shl rcx, 0x20
add rcx, rsi
cmp rcx, 8
jb 0x1803214ef
add rcx, 0xfffffffffffffff8
cmp qword [rbx], 0xffffffffffffffff
je 0x1803214ef
mov qword [rbp - 0x78], rcx
xor r9d, r9d
lea r8, [rbp - 0x74]
mov edx, ecx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x78], eax
cmp eax, 0xffffffff
jne 0x180321484
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1803214ef
mov dword [rbp - 0x7c], r15d
cmp qword [rbx], 0xffffffffffffffff
je 0x1803214ef
mov dword [rbp - 0x80], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x80]
mov r8d, 4
lea rdx, [rbp - 0x7c]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1803214ef
cmp dword [rbp - 0x7c], 0xff2144
jne 0x1803214ef
mov dword [rbp - 0x80], r15d
test r14, r14
je 0x1803214ef
cmp qword [rbx], 0xffffffffffffffff
je 0x1803214ef
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x80]
mov r8d, 4
mov rdx, r14
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx edi, dil
test eax, eax
cmovne edi, r12d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180321509
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180321509
mov qword [rbx], 0xffffffffffffffff
test rbx, rbx
je 0x180321536
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180321524
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov edx, 8
mov rcx, rbx
call fcn.180468ddc
mov qword [rsp + 0x30], r15
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x180321579
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180321574
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180321574
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r15w
movzx eax, dil
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1804688c0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret