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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push 0xa
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00401940
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.00401940
add esp, 0xc
push 0x208
push 0
push 0x407600
call fcn.00401940
add esp, 0xc
push 5
lea edx, [ebp - 0x1c]
push edx
call fcn.00401340
add esp, 8
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x402c5f
jmp 0x402e76
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0x40680c
push 0x407600
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x407600
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402c93
jmp 0x402e76
push 0x25
push 0
push 0x407aa0
call fcn.00401940
add esp, 0xc
push 0x4a
push 0
push 0x4075a0
call fcn.00401940
add esp, 0xc
push 0x407aa0
call fcn.004013e0
add esp, 4
push 0x25
push 0x4075a0
push 0x407aa0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x407aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x406784
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402d19
jmp 0x402e76
push 0x407aa0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
push 0x407aa0
push 1
push 0
push 0x406758
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402d56
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402e76
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x4067a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402dc2
push 0x407600
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push 0x407600
push 1
push 0
push str.Digit
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402e1e
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push 0x4067a4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402e1c
push 0x407600
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
push 0x407600
push 1
push 0
push str.Digit
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402e1e
jmp 0x402e76
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push 0x4067d4
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402e76
push 0x407600
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0x407600
push 1
push 0
push str.Digit
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret