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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1346
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x10], 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 - 0x218]
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 0x435a98
mov eax, esi
and eax, 0xffff00ff
cmp eax, 0x24
jne 0x435778
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x435b17
cmp eax, 0x104
jbe 0x435a98
push esi
push ecx
push 0xea
jmp 0x435b20
cmp eax, 0x25
jne 0x435798
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x435761
jmp 0x435b17
cmp eax, 0x26
jne 0x4357d9
lea ecx, [ebp - 0x248]
call fcn.00435b40
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004af8b8
lea ecx, [ebp - 0x248]
jmp 0x435a90
cmp eax, 0x23
jne 0x43584d
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push ecx
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 1
push eax
push str.Common_AppData
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ecx, 0x80000002
call fcn.0043a2f0
add esp, 0x10
test al, al
je 0x435b17
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
jmp 0x435a78
cmp eax, 0x1a
jne 0x435979
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push ecx
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 3
push eax
push str.AppData
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ecx, 0x80000001
call fcn.0043a2f0
add esp, 0x10
test al, al
jne 0x435a60
mov ecx, dword [ebp - 0x220]
cmp ecx, 0x104
jb 0x4358e3
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0x104
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x4358f8
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x230]
push 0
push eax
call fcn.00411a90
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x435937
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x435a60
push esi
push ecx
jmp 0x435b1f
cmp eax, dword [ebp - 0x220]
jbe 0x43594b
push esi
mov eax, 0xea
push ecx
jmp 0x435b1f
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x230]
mov edx, dword [ebp - 0x230]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x25
jne 0x435a6c
mov eax, 3
push esi
push ecx
jmp 0x435b1f
cmp eax, 0x1c
jne 0x435afc
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push ecx
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 5
push eax
push str.Local_AppData
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ecx, 0x80000001
call fcn.0043a2f0
add esp, 0x10
test al, al
jne 0x435a60
mov ecx, dword [ebp - 0x220]
cmp ecx, 0x104
jb 0x435a0f
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0x104
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x435a24
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp - 0x230]
push 0
push eax
call fcn.00411a90
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
push str._LOCALAPPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x435937
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x435972
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x230]
cmp ecx, 8
lea eax, [ebp - 0x230]
cmovae eax, edx
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004af8b8
lea ecx, [ebp - 0x230]
add esp, 0xc
call fcn.004127e0
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov dword [ebp - 4], 0xffffffff
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435ac1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004123e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret
push esi
push ecx
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00435c70
push 0x5057bc
lea eax, [ebp - 0x22c]
jmp 0x435b36
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x244]
call fcn.00435c70
push 0x5057bc
lea eax, [ebp - 0x244]
push eax
call fcn.004a0209
int3