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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516a06
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x55f2b4]
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 0x463df4
mov eax, esi
and eax, 0xffff00ff
cmp eax, 0x24
jne 0x463ab8
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x463e50
cmp eax, 0x104
jbe 0x463df4
push esi
push ecx
push 0xea
jmp 0x463e59
cmp eax, 0x25
jne 0x463ad8
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x463aa1
jmp 0x463e50
cmp eax, 0x26
jne 0x463b54
lea ecx, [ebp - 0x234]
call fcn.00463e80
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.004f0117
add esp, 0xc
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x463df4
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x463dea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463e75
jmp 0x463dea
cmp eax, 0x23
jne 0x463bd7
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push 1
push eax
mov dword [ebp - 4], eax
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea eax, [ebp - 0x234]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
push eax
push str.Common_AppData
call fcn.00465610
add esp, 0x10
test al, al
je 0x463e50
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.004f0117
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x463b11
cmp eax, 0x1a
jne 0x463d08
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push 1
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push eax
push str.AppData
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ecx, SysReAllocString
call fcn.00465610
add esp, 0x10
test al, al
jne 0x463cad
mov ecx, dword [ebp - 0x224]
cmp ecx, 0x104
jb 0x463c64
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 0x463c79
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x234]
push 0
push eax
call fcn.00418f30
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 0x463cca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x463d01
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x234]
cmp ecx, 8
lea eax, [ebp - 0x234]
cmovae eax, edx
jmp 0x463bb6
cmp eax, dword [ebp - 0x224]
jbe 0x463cde
push esi
mov eax, 0xea
push ecx
jmp 0x463e58
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 0x463cb9
mov eax, 3
push esi
push ecx
jmp 0x463e58
cmp eax, 0x1c
jne 0x463e4b
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push 1
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 2
push eax
push str.Local_AppData
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ecx, SysReAllocString
call fcn.00465610
add esp, 0x10
test al, al
jne 0x463cad
mov ecx, dword [ebp - 0x224]
cmp ecx, 0x104
jb 0x463d95
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 0x463daa
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x234]
push 0
push eax
call fcn.00418f30
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 0x463cca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x463cad
push esi
push ecx
jmp 0x463e58
push edx
push ecx
call fcn.004d06e3
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 0x463e10
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00414320
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.004d0675
mov esp, ebp
pop ebp
ret
push esi
push ecx
push ecx
jmp 0x463e59
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x248]
call fcn.0044a9d0
push 0x55c1ac
lea eax, [ebp - 0x248]
push eax
call fcn.004e81cb
call fcn.004ebf29
int3