Function at 0x42fa2f
Capabilities:
Get common file path
Get comspec environment variable
Get hostname
Get keyboard layout
Get session user name
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
and word [ebp - 0x268], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, 0x208
push ebx
mov esi, eax
lea eax, [ebp - 0x266]
push 0
push eax
call fcn.00451700
and word [ebp - 0x478], 0
add esp, 0xc
push ebx
lea eax, [ebp - 0x476]
push 0
push eax
call fcn.00451700
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
add esp, 0xc
push eax
call fcn.00453e41
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.004547b7
pop ecx
mov ebx, eax
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x477a18]
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x42fab4
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x5c
jl 0x42fa93
cmp dword [ebp - 4], 0x5c
jne 0x42fb19
push 0x4716fc
lea esi, [ebp - 0x1c]
call fcn.0040ffd4
and dword [ebp - 0xc], 0
lea eax, [ebp + 8]
mov ecx, esi
call fcn.004101eb
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x1c]
call fcn.0040fdbf
cmp dword [ebp - 4], 0
jne 0x42fb0a
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call fcn.0044f951
pop ecx
push dword [ebp + 8]
call fcn.0044f951
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
call fcn.00412760
xor esi, esi
jmp 0x42faef
cmp dword [ebp - 4], 0x5b
ja case.default.0x42fb26
mov eax, dword [ebp - 4]
jmp dword [eax*4 + 0x430357]
push 0x471754
call fcn.004129d9
jmp case.default.0x42fb26
push 0x46c758
jmp 0x42fb32
push 0x46d1e0
jmp 0x42fb32
push 0x471758
jmp 0x42fb32
lea eax, [esi + 0x320]
call fcn.0041c916
push dword [eax + 0x14]
jmp 0x43020f
lea eax, [esi + 0x320]
call fcn.0041c916
push dword [eax + 0x1c]
jmp 0x43020f
push dword [ebx]
push 0x47175c
lea eax, [ebp - 0x268]
push eax
call fcn.00451a06
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
jmp 0x42fb32
push dword [ebx + 4]
jmp 0x42fb79
push dword [ebx + 8]
jmp 0x42fb79
push dword [ebx + 0xc]
jmp 0x42fb79
mov eax, dword [ebx + 0x10]
inc eax
push eax
jmp 0x42fb79
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
jmp 0x43020f
mov eax, dword [ebx + 0x18]
inc eax
jmp 0x42fbb4
mov eax, dword [ebx + 0x1c]
inc eax
push eax
push str._.3d
jmp 0x42fb7e
push 0x104
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x268]
call fcn.0040d871
add esp, 0x10
jmp 0x42fb8d
push 0x104
push str.CommonFilesDir
jmp 0x42fbd6
push 0x104
push str.Personal
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040d871
add esp, 0x10
lea esi, [ebp - 0x268]
call fcn.0040df37
jmp 0x42fb8d
push 0x104
push str.Common_AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x42fbdb
mov ebx, 0x104
push ebx
push str.Common_Desktop
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x268]
call fcn.0040d871
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42fc87
push ebx
push str.Desktop
push edi
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040d871
add esp, 0x10
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
jmp 0x42fb32
push 0x104
push str.Common_Documents
jmp 0x42fc38
mov ebx, 0x104
push ebx
push str.Common_Favorites
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x268]
call fcn.0040d871
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42fc87
push ebx
push str.Favorites
jmp 0x42fc73
mov ebx, 0x104
push ebx
push str.Common_Programs
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x268]
call fcn.0040d871
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42fc87
push ebx
push str.Programs
jmp 0x42fc73
mov ebx, 0x104
push ebx
push str.Common_Start_Menu
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x268]
call fcn.0040d871
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42fc87
push ebx
push str.Start_Menu
jmp 0x42fc73
mov ebx, 0x104
push ebx
push str.Common_Startup
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x268]
call fcn.0040d871
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42fc87
push ebx
push str.Startup
jmp 0x42fc73
push 0x104
push str.AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
jmp 0x42fbe0
push 0x104
push str.Desktop
jmp 0x42fd95
push 0x104
push str.Favorites
jmp 0x42fd95
push 0x104
push str.Programs
jmp 0x42fd95
push 0x104
push str.Start_Menu
jmp 0x42fd95
push 0x104
push str.Startup
jmp 0x42fd95
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x268]
push eax
mov dword [ebp - 8], 0x104
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
jmp 0x42fb8d
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
jmp 0x42fb8d
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
jmp 0x42fb8d
push 6
jmp 0x43020f
push 3
jmp 0x43020f
push 9
jmp 0x43020f
push 5
jmp 0x43020f
push 0xa
jmp 0x43020f
push 2
jmp 0x43020f
push 7
jmp 0x43020f
push 8
jmp 0x43020f
push 4
jmp 0x43020f
push 1
jmp 0x43020f
xor eax, eax
inc eax
cmp byte [0x4795be], al
mov esi, edi
jne 0x42fe84
push eax
jmp 0x430211
push 0
jmp 0x430211
xor eax, eax
inc eax
cmp byte [0x48aaf9], al
jmp 0x42fe7a
push 0x40
jmp 0x43020f
push 0x41
jmp 0x43020f
push 0x42
jmp 0x43020f
push 0x43
jmp 0x43020f
push dword [esi + 0x260]
jmp 0x42fb32
push dword [esi + 0x254]
jmp 0x42fb32
push dword [esi + 0x26c]
jmp 0x42fb32
mov ecx, dword [esi + 0x284]
call fcn.004084da
jmp 0x42fbb4
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
jmp 0x42fb8d
mov eax, dword [0x48a304]
mov ecx, eax
dec ecx
je 0x42ff2b
dec ecx
je 0x42ff21
dec ecx
je 0x42ff17
neg eax
push eax
push str.UNKN_d
jmp 0x42fb7e
push 0x471a14
jmp 0x42fb32
push str.IA64
jmp 0x42fb32
push 0x471a00
jmp 0x42fb32
cmp byte [0x48a2ec], 1
jne 0x42ff48
push str.WIN32_NT
jmp 0x42fb32
push str.WIN32_WINDOWS
jmp 0x42fb32
xor eax, eax
inc eax
cmp byte [0x48a2ec], al
jne 0x42ffc1
cmp byte [0x48a2f2], al
jne 0x42ff6f
push str.WIN_2008
jmp 0x42fb32
cmp byte [0x48a2f8], al
jne 0x42ff81
push str.WIN_VISTA
jmp 0x42fb32
cmp byte [0x48a2f6], al
jne 0x42ff93
push str.WIN_2003
jmp 0x42fb32
cmp byte [0x48a2f0], al
jne 0x42ffa5
push str.WIN_XP
jmp 0x42fb32
cmp byte [0x48a2f4], al
jne 0x42ffb7
push str.WIN_2000
jmp 0x42fb32
push str.WIN_NT4
jmp 0x42fb32
cmp byte [0x48a2fc], al
jne 0x42ffd3
push str.WIN_95
jmp 0x42fb32
cmp byte [0x48a2fa], al
jne 0x42ffe5
push str.WIN_98
jmp 0x42fb32
push str.WIN_ME
jmp 0x42fb32
push dword [0x48a0e8]
jmp 0x43020f
push 0x48a0ec
jmp 0x42fb32
xor eax, eax
inc eax
cmp byte [0x48a2ec], al
push 0x104
lea esi, [ebp - 0x268]
jne 0x43003d
cmp byte [0x48a2f5], al
jne 0x430029
push str.InstallLanguage
jmp 0x43002e
push str.Default
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x42fbe6
push 0x46bf80
push str..DEFAULTControl_PanelDesktopResourceLocale
push reloc.WSOCK32.dll_closesocket
call fcn.0040d871
add esp, 0x10
lea eax, [ebp - 0x260]
jmp 0x42fb93
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea eax, [ebp - 0x20]
jmp 0x42fb93
lea eax, [ebp - 0x478]
push 0x471bdc
push eax
call fcn.0044f86d
lea eax, [ebp - 0x478]
push eax
xor esi, esi
xor ebx, ebx
call fcn.0045177a
add esp, 0xc
test eax, eax
jle 0x4300d4
movzx eax, word [ebp + ebx*2 - 0x478]
cmp ax, 0x20
je 0x4300c2
cmp ax, 0x2c
jne 0x4300b9
mov word [ebp + esi*2 - 0x478], 0x2e
jmp 0x4300c1
mov word [ebp + esi*2 - 0x478], ax
inc esi
lea eax, [ebp - 0x478]
push eax
inc ebx
call fcn.0045177a
cmp ebx, eax
pop ecx
jl 0x430099
and word [ebp + esi*2 - 0x478], 0
lea eax, [ebp - 0x478]
jmp 0x42fb93
push 0x104
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
jmp 0x42fb8d
lea eax, [ebp - 0x40]
push eax
xor eax, eax
inc eax
call fcn.0040ee2c
pop ecx
lea eax, [ebp - 0x40]
jmp 0x42fb93
lea eax, [ebp - 0x40]
push eax
push 2
pop eax
jmp 0x430108
lea eax, [ebp - 0x40]
push eax
push 3
jmp 0x43011c
lea eax, [ebp - 0x40]
push eax
push 4
jmp 0x43011c
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x50]
jmp 0x43020f
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x4c]
jmp 0x43020f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0xc
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
mov esi, edi
call fcn.00412914
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp case.default.0x42fb26
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x74
jmp 0x430172
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
jmp 0x42fb8d
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x42fc1e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x268]
push eax
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
jmp 0x42fb8d
mov eax, dword [0x48a324]
cmp eax, 2
je case.0x42fb26.42
cmp eax, 3
je case.0x42fb26.42
push 0
mov esi, edi
call fcn.00412914
xor esi, esi
jmp 0x42faf8
cmp byte [0x48a2ec], 0
push 0x104
je 0x43023c
lea eax, [ebp - 0x268]
push eax
push str.USERPROFILE
jmp 0x4301b7
push str.Desktop
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040d871
mov eax, esi
push eax
call fcn.0045177a
add esp, 0x14
jmp 0x43026e
cmp word [ebp + eax*2 - 0x268], 0x5c
je 0x430271
dec eax
jns 0x430263
and word [ebp + eax*2 - 0x268], 0
jmp 0x42fb8d
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEDRIVE
jmp 0x4301b7
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEPATH
jmp 0x4301b7
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMESHARE
jmp 0x4301b7
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.LOGONSERVER
jmp 0x4301b7
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDOMAIN
jmp 0x4301b7
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDNSDOMAIN
jmp 0x4301b7
push dword [esi + 0x310]
jmp 0x43020f
movzx eax, byte [esi + 0x30c]
jmp 0x42fbb4
push dword [esi + 0x340]
jmp 0x43020f
push dword [esi + 0x344]
jmp 0x42fb32
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
test eax, eax
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
jge 0x430346
fadd qword [0x4726a8]
push ecx
push ecx
mov esi, edi
fstp qword [esp]
call fcn.004129c0
jmp case.default.0x42fb26