Function at 0x467c00
Capabilities:
Get common file path
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf511
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x505034]
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, edx
mov edi, ecx
mov dword [ebp - 0x24c], edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x24c], edi
push eax
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, eax
test ecx, ecx
jns 0x467fd4
mov eax, esi
and eax, 0xffff00ff
cmp eax, 0x24
jne 0x467c98
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x468030
cmp eax, 0x104
jbe 0x467fd4
push esi
push ecx
push 0xea
jmp 0x468039
cmp eax, 0x25
jne 0x467cb8
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x467c81
jmp 0x468030
cmp eax, 0x26
jne 0x467d37
lea edx, [eax - 0x25]
lea ecx, [ebp - 0x234]
call fcn.00468060
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a46a5
add esp, 0xc
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x467fd4
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467fca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468055
jmp 0x467fca
cmp eax, 0x23
jne 0x467db9
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push ecx
push eax
mov dword [ebp - 4], eax
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea eax, [ebp - 0x234]
mov ecx, 0x80000002
push eax
push str.Common_AppData
call fcn.00468480
add esp, 0x10
test al, al
je 0x468030
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a46a5
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x467cf4
cmp eax, 0x1a
jne 0x467ee9
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push ecx
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push eax
push str.AppData
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ecx, 0x80000001
call fcn.00468480
add esp, 0x10
test al, al
jne 0x467e8e
mov ecx, dword [ebp - 0x224]
cmp ecx, 0x104
jb 0x467e45
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x224], 0x104
cmovae eax, dword [ebp - 0x234]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x467e5a
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x234]
push 0
push eax
call fcn.00419430
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x467eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x467ee2
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x234]
cmp ecx, 8
lea eax, [ebp - 0x234]
cmovae eax, edx
jmp 0x467d98
cmp eax, dword [ebp - 0x224]
jbe 0x467ebf
push esi
mov eax, 0xea
push ecx
jmp 0x468038
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x234]
mov edx, dword [ebp - 0x234]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x25
jne 0x467e9a
mov eax, 3
push esi
push ecx
jmp 0x468038
cmp eax, 0x1c
jne 0x46802b
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push ecx
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 2
push eax
push str.Local_AppData
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ecx, 0x80000001
call fcn.00468480
add esp, 0x10
test al, al
jne 0x467e8e
mov ecx, dword [ebp - 0x224]
cmp ecx, 0x104
jb 0x467f75
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x224], 0x104
cmovae eax, dword [ebp - 0x234]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x467f8a
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x234]
push 0
push eax
call fcn.00419430
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
push str._LOCALAPPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x467eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x467e8e
push esi
push ecx
jmp 0x468038
push edx
push ecx
call fcn.00479e95
add esp, 8
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x21c]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467ff0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00415170
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
push esi
push ecx
push ecx
jmp 0x468039
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x248]
call fcn.00432a10
push 0x50271c
lea eax, [ebp - 0x248]
push eax
call fcn.00491d27
call fcn.0049b19a
int3