Function at 0x42ec83
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.00450e40
and word [ebp - 0x478], 0
add esp, 0xc
push ebx
lea eax, [ebp - 0x476]
push 0
push eax
call fcn.00450e40
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
add esp, 0xc
push eax
call fcn.0045282f
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.0045326b
pop ecx
mov ebx, eax
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x476a18]
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
je 0x42ed08
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x5b
jl 0x42ece7
cmp dword [ebp - 4], 0x5b
jne 0x42ed6d
push 0x4702a8
lea esi, [ebp - 0x1c]
call fcn.0040e2e3
and dword [ebp - 0xc], 0
lea eax, [ebp + 8]
mov ecx, esi
call fcn.0040e4a2
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x1c]
call fcn.0040e090
cmp dword [ebp - 4], 0
jne 0x42ed5e
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call fcn.0044e346
pop ecx
push dword [ebp + 8]
call fcn.0044e346
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.00410021
xor esi, esi
jmp 0x42ed43
cmp dword [ebp - 4], 0x5a
ja case.default.0x42ed7a
mov eax, dword [ebp - 4]
jmp dword [eax*4 + 0x42f59b]
push 0x470304
call fcn.0041029a
jmp case.default.0x42ed7a
push 0x46b410
jmp 0x42ed86
push 0x46becc
jmp 0x42ed86
push 0x470308
jmp 0x42ed86
push dword [esi + 0x354]
jmp 0x42f44c
push dword [esi + 0x358]
jmp 0x42f44c
push dword [ebx]
push 0x47030c
lea eax, [ebp - 0x268]
push eax
call fcn.0044e88a
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
jmp 0x42ed86
push dword [ebx + 4]
jmp 0x42edbd
push dword [ebx + 8]
jmp 0x42edbd
push dword [ebx + 0xc]
jmp 0x42edbd
mov eax, dword [ebx + 0x10]
inc eax
push eax
jmp 0x42edbd
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
jmp 0x42f44c
mov eax, dword [ebx + 0x18]
inc eax
jmp 0x42edf8
mov eax, dword [ebx + 0x1c]
inc eax
push eax
push str._.3d
jmp 0x42edc2
push 0x104
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x268]
call fcn.0040bba2
add esp, 0x10
jmp 0x42edd1
push 0x104
push str.CommonFilesDir
jmp 0x42ee1a
push 0x104
push str.Personal
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040bba2
add esp, 0x10
lea esi, [ebp - 0x268]
call fcn.0040c22b
jmp 0x42edd1
push 0x104
push str.Common_AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x42ee1f
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.0040bba2
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42eecb
push ebx
push str.Desktop
push edi
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040bba2
add esp, 0x10
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
jmp 0x42ed86
push 0x104
push str.Common_Documents
jmp 0x42ee7c
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.0040bba2
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42eecb
push ebx
push str.Favorites
jmp 0x42eeb7
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.0040bba2
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42eecb
push ebx
push str.Programs
jmp 0x42eeb7
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.0040bba2
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42eecb
push ebx
push str.Start_Menu
jmp 0x42eeb7
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.0040bba2
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42eecb
push ebx
push str.Startup
jmp 0x42eeb7
push 0x104
push str.AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
jmp 0x42ee24
push 0x104
push str.Desktop
jmp 0x42efd9
push 0x104
push str.Favorites
jmp 0x42efd9
push 0x104
push str.Programs
jmp 0x42efd9
push 0x104
push str.Start_Menu
jmp 0x42efd9
push 0x104
push str.Startup
jmp 0x42efd9
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 0x42edd1
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
jmp 0x42edd1
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
jmp 0x42edd1
push 0
jmp 0x42f44c
push 6
jmp 0x42f44c
push 3
jmp 0x42f44c
push 9
jmp 0x42f44c
push 5
jmp 0x42f44c
push 0xa
jmp 0x42f44c
push 2
jmp 0x42f44c
push 7
jmp 0x42f44c
push 8
jmp 0x42f44c
push 4
jmp 0x42f44c
xor eax, eax
inc eax
cmp byte [0x4785be], al
mov esi, edi
jne 0x42f0c8
push eax
jmp 0x42f44e
push 0
jmp 0x42f44e
xor eax, eax
inc eax
cmp byte [0x48b249], al
jmp 0x42f0be
push 0x40
jmp 0x42f44c
push 0x41
jmp 0x42f44c
push 0x42
jmp 0x42f44c
push 0x43
jmp 0x42f44c
push dword [esi + 0x26c]
jmp 0x42ed86
push dword [esi + 0x260]
jmp 0x42ed86
push dword [esi + 0x278]
jmp 0x42ed86
mov ecx, dword [esi + 0x290]
call fcn.00406745
jmp 0x42edf8
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
jmp 0x42edd1
mov eax, dword [0x48a7c4]
mov ecx, eax
dec ecx
je 0x42f16f
dec ecx
je 0x42f165
dec ecx
je 0x42f15b
neg eax
push eax
push str.UNKN_d
jmp 0x42edc2
push 0x4705c4
jmp 0x42ed86
push str.IA64
jmp 0x42ed86
push 0x4705b0
jmp 0x42ed86
cmp byte [0x48a7ac], 1
jne 0x42f18c
push str.WIN32_NT
jmp 0x42ed86
push str.WIN32_WINDOWS
jmp 0x42ed86
xor eax, eax
inc eax
cmp byte [0x48a7ac], al
jne 0x42f205
cmp byte [0x48a7b2], al
jne 0x42f1b3
push str.WIN_LONGHORN
jmp 0x42ed86
cmp byte [0x48a7b8], al
jne 0x42f1c5
push str.WIN_VISTA
jmp 0x42ed86
cmp byte [0x48a7b6], al
jne 0x42f1d7
push str.WIN_2003
jmp 0x42ed86
cmp byte [0x48a7b0], al
jne 0x42f1e9
push str.WIN_XP
jmp 0x42ed86
cmp byte [0x48a7b4], al
jne 0x42f1fb
push str.WIN_2000
jmp 0x42ed86
push str.WIN_NT4
jmp 0x42ed86
cmp byte [0x48a7bc], al
jne 0x42f217
push str.WIN_95
jmp 0x42ed86
cmp byte [0x48a7ba], al
jne 0x42f229
push str.WIN_98
jmp 0x42ed86
push str.WIN_ME
jmp 0x42ed86
push dword [0x48a5a8]
jmp 0x42f44c
push 0x48a5ac
jmp 0x42ed86
xor eax, eax
inc eax
cmp byte [0x48a7ac], al
push 0x104
lea esi, [ebp - 0x268]
jne 0x42f281
cmp byte [0x48a7b5], al
jne 0x42f26d
push str.InstallLanguage
jmp 0x42f272
push str.Default
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x42ee2a
push 0x46af60
push str..DEFAULTControl_PanelDesktopResourceLocale
push reloc.WSOCK32.dll_closesocket
call fcn.0040bba2
add esp, 0x10
lea eax, [ebp - 0x260]
jmp 0x42edd7
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea eax, [ebp - 0x20]
jmp 0x42edd7
lea eax, [ebp - 0x478]
push 0x470794
push eax
call fcn.0044e262
lea eax, [ebp - 0x478]
push eax
xor esi, esi
xor ebx, ebx
call fcn.0044e874
add esp, 0xc
test eax, eax
jle 0x42f318
movzx eax, word [ebp + ebx*2 - 0x478]
cmp ax, 0x20
je 0x42f306
cmp ax, 0x2c
jne 0x42f2fd
mov word [ebp + esi*2 - 0x478], 0x2e
jmp 0x42f305
mov word [ebp + esi*2 - 0x478], ax
inc esi
lea eax, [ebp - 0x478]
push eax
inc ebx
call fcn.0044e874
cmp ebx, eax
pop ecx
jl 0x42f2dd
and word [ebp + esi*2 - 0x478], 0
lea eax, [ebp - 0x478]
jmp 0x42edd7
push 0x104
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
jmp 0x42edd1
lea eax, [ebp - 0x40]
push eax
xor eax, eax
inc eax
call fcn.0040d088
pop ecx
lea eax, [ebp - 0x40]
jmp 0x42edd7
lea eax, [ebp - 0x40]
push eax
push 2
pop eax
jmp 0x42f34c
lea eax, [ebp - 0x40]
push eax
push 3
jmp 0x42f360
lea eax, [ebp - 0x40]
push eax
push 4
jmp 0x42f360
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 0x42f44c
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 0x42f44c
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.004101d5
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp case.default.0x42ed7a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x74
jmp 0x42f3b6
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
jmp 0x42edd1
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x42ee62
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 0x42edd1
mov eax, dword [0x48a7e0]
cmp eax, 2
je case.0x42ed7a.42
cmp eax, 3
jne case.0x42ed7a.29
push 1
mov esi, edi
call fcn.004101d5
xor esi, esi
jmp 0x42ed4c
cmp byte [0x48a7ac], 0
push 0x104
je 0x42f476
lea eax, [ebp - 0x268]
push eax
push str.USERPROFILE
jmp 0x42f3f8
push str.Desktop
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040bba2
mov eax, esi
push eax
call fcn.0044e874
add esp, 0x14
jmp 0x42f4a8
cmp word [ebp + eax*2 - 0x268], 0x5c
je 0x42f4ab
dec eax
jns 0x42f49d
and word [ebp + eax*2 - 0x268], 0
jmp 0x42edd1
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEDRIVE
jmp 0x42f3f8
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEPATH
jmp 0x42f3f8
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMESHARE
jmp 0x42f3f8
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.LOGONSERVER
jmp 0x42f3f8
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDOMAIN
jmp 0x42f3f8
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDNSDOMAIN
jmp 0x42f3f8
push dword [esi + 0x320]
jmp 0x42f44c
movzx eax, byte [esi + 0x31c]
jmp 0x42edf8
push dword [esi + 0x35c]
jmp 0x42f44c
push dword [esi + 0x360]
jmp 0x42ed86
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
test eax, eax
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
jge 0x42f580
fadd qword [0x4711e0]
push ecx
push ecx
mov esi, edi
fstp qword [esp]
call fcn.00410281
jmp case.default.0x42ed7a
push 0x5780001
jmp 0x42f44c