Function at 0x42debb
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.0044db90
and word [ebp - 0x478], 0
add esp, 0xc
push ebx
lea eax, [ebp - 0x476]
push 0
push eax
call fcn.0044db90
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
add esp, 0xc
push eax
call fcn.0044fbf1
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.0045062b
pop ecx
mov ebx, eax
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x472ac8]
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x42df40
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x5b
jl 0x42df1f
cmp dword [ebp - 4], 0x5b
jne 0x42dfae
push 0x46d260
lea esi, [ebp - 0x1c]
call fcn.0040d832
and dword [ebp - 0xc], 0
lea eax, [ebp + 8]
mov ecx, esi
call fcn.0040d9e6
lea eax, [ebp - 4]
push eax
sub esp, 0xc
mov edi, esi
mov esi, esp
call fcn.0040d898
xor eax, eax
lea edi, [ebp - 0xc]
call fcn.0040d5c1
cmp dword [ebp - 4], 0
jne 0x42df9f
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call fcn.0044b716
pop ecx
push dword [ebp + 8]
call fcn.0044b716
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.0040f3fe
xor esi, esi
jmp 0x42df84
cmp dword [ebp - 4], 0x5a
ja case.default.0x42dfbb
mov eax, dword [ebp - 4]
jmp dword [eax*4 + 0x42e7df]
push 0x46d2bc
call fcn.0040f677
jmp case.default.0x42dfbb
push 0x468500
jmp 0x42dfc7
push 0x468fbc
jmp 0x42dfc7
push 0x46d2c0
jmp 0x42dfc7
push dword [esi + 0x354]
jmp 0x42e68d
push dword [esi + 0x358]
jmp 0x42e68d
push dword [ebx]
push 0x46d2c4
lea eax, [ebp - 0x268]
push eax
call fcn.0044bc8f
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
jmp 0x42dfc7
push dword [ebx + 4]
jmp 0x42dffe
push dword [ebx + 8]
jmp 0x42dffe
push dword [ebx + 0xc]
jmp 0x42dffe
mov eax, dword [ebx + 0x10]
inc eax
push eax
jmp 0x42dffe
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
jmp 0x42e68d
mov eax, dword [ebx + 0x18]
inc eax
jmp 0x42e039
mov eax, dword [ebx + 0x1c]
inc eax
push eax
push str._.3d
jmp 0x42e003
push 0x104
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WSOCK32.dll_bind
lea esi, [ebp - 0x268]
call fcn.0040b1b6
add esp, 0x10
jmp 0x42e012
push 0x104
push str.CommonFilesDir
jmp 0x42e05b
push 0x104
push str.Personal
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040b1b6
add esp, 0x10
lea esi, [ebp - 0x268]
call fcn.0040b83f
jmp 0x42e012
push 0x104
push str.Common_AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x42e060
mov ebx, 0x104
push ebx
push str.Common_Desktop
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.WSOCK32.dll_bind
lea esi, [ebp - 0x268]
call fcn.0040b1b6
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e10c
push ebx
push str.Desktop
push edi
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040b1b6
add esp, 0x10
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
jmp 0x42dfc7
push 0x104
push str.Common_Documents
jmp 0x42e0bd
mov ebx, 0x104
push ebx
push str.Common_Favorites
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.WSOCK32.dll_bind
lea esi, [ebp - 0x268]
call fcn.0040b1b6
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e10c
push ebx
push str.Favorites
jmp 0x42e0f8
mov ebx, 0x104
push ebx
push str.Common_Programs
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.WSOCK32.dll_bind
lea esi, [ebp - 0x268]
call fcn.0040b1b6
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e10c
push ebx
push str.Programs
jmp 0x42e0f8
mov ebx, 0x104
push ebx
push str.Common_Start_Menu
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.WSOCK32.dll_bind
lea esi, [ebp - 0x268]
call fcn.0040b1b6
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e10c
push ebx
push str.Start_Menu
jmp 0x42e0f8
mov ebx, 0x104
push ebx
push str.Common_Startup
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push reloc.WSOCK32.dll_bind
lea esi, [ebp - 0x268]
call fcn.0040b1b6
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e10c
push ebx
push str.Startup
jmp 0x42e0f8
push 0x104
push str.AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
jmp 0x42e065
push 0x104
push str.Desktop
jmp 0x42e21a
push 0x104
push str.Favorites
jmp 0x42e21a
push 0x104
push str.Programs
jmp 0x42e21a
push 0x104
push str.Start_Menu
jmp 0x42e21a
push 0x104
push str.Startup
jmp 0x42e21a
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 0x42e012
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x42e012
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x42e012
push 0
jmp 0x42e68d
push 6
jmp 0x42e68d
push 3
jmp 0x42e68d
push 9
jmp 0x42e68d
push 5
jmp 0x42e68d
push 0xa
jmp 0x42e68d
push 2
jmp 0x42e68d
push 7
jmp 0x42e68d
push 8
jmp 0x42e68d
push 4
jmp 0x42e68d
xor eax, eax
inc eax
cmp byte [0x474cd6], al
mov esi, edi
jne 0x42e309
push eax
jmp 0x42e68f
push 0
jmp 0x42e68f
xor eax, eax
inc eax
cmp byte [0x487959], al
jmp 0x42e2ff
push 0x40
jmp 0x42e68d
push 0x41
jmp 0x42e68d
push 0x42
jmp 0x42e68d
push 0x43
jmp 0x42e68d
push dword [esi + 0x268]
jmp 0x42dfc7
push dword [esi + 0x25c]
jmp 0x42dfc7
push dword [esi + 0x274]
jmp 0x42dfc7
mov ecx, dword [esi + 0x28c]
call fcn.0040604f
jmp 0x42e039
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x42e012
mov eax, dword [0x486ee4]
mov ecx, eax
dec ecx
je 0x42e3b0
dec ecx
je 0x42e3a6
dec ecx
je 0x42e39c
neg eax
push eax
push str.UNKN_d
jmp 0x42e003
push 0x46d57c
jmp 0x42dfc7
push str.IA64
jmp 0x42dfc7
push 0x46d568
jmp 0x42dfc7
cmp byte [0x486ecc], 1
jne 0x42e3cd
push str.WIN32_NT
jmp 0x42dfc7
push str.WIN32_WINDOWS
jmp 0x42dfc7
xor eax, eax
inc eax
cmp byte [0x486ecc], al
jne 0x42e446
cmp byte [0x486ed2], al
jne 0x42e3f4
push str.WIN_LONGHORN
jmp 0x42dfc7
cmp byte [0x486ed8], al
jne 0x42e406
push str.WIN_VISTA
jmp 0x42dfc7
cmp byte [0x486ed6], al
jne 0x42e418
push str.WIN_2003
jmp 0x42dfc7
cmp byte [0x486ed0], al
jne 0x42e42a
push str.WIN_XP
jmp 0x42dfc7
cmp byte [0x486ed4], al
jne 0x42e43c
push str.WIN_2000
jmp 0x42dfc7
push str.WIN_NT4
jmp 0x42dfc7
cmp byte [0x486edc], al
jne 0x42e458
push str.WIN_95
jmp 0x42dfc7
cmp byte [0x486eda], al
jne 0x42e46a
push str.WIN_98
jmp 0x42dfc7
push str.WIN_ME
jmp 0x42dfc7
push dword [0x486cc8]
jmp 0x42e68d
push 0x486ccc
jmp 0x42dfc7
xor eax, eax
inc eax
cmp byte [0x486ecc], al
push 0x104
lea esi, [ebp - 0x268]
jne 0x42e4c2
cmp byte [0x486ed5], al
jne 0x42e4ae
push str.InstallLanguage
jmp 0x42e4b3
push str.Default
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.WSOCK32.dll_bind
jmp 0x42e06b
push 0x468050
push str..DEFAULTControl_PanelDesktopResourceLocale
push reloc.WSOCK32.dll_closesocket
call fcn.0040b1b6
add esp, 0x10
lea eax, [ebp - 0x260]
jmp 0x42e018
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea eax, [ebp - 0x20]
jmp 0x42e018
lea eax, [ebp - 0x478]
push 0x46d74c
push eax
call fcn.0044b632
lea eax, [ebp - 0x478]
push eax
xor esi, esi
xor ebx, ebx
call fcn.0044bc79
add esp, 0xc
test eax, eax
jle 0x42e559
movzx eax, word [ebp + ebx*2 - 0x478]
cmp ax, 0x20
je 0x42e547
cmp ax, 0x2c
jne 0x42e53e
mov word [ebp + esi*2 - 0x478], 0x2e
jmp 0x42e546
mov word [ebp + esi*2 - 0x478], ax
inc esi
lea eax, [ebp - 0x478]
push eax
inc ebx
call fcn.0044bc79
cmp ebx, eax
pop ecx
jl 0x42e51e
and word [ebp + esi*2 - 0x478], 0
lea eax, [ebp - 0x478]
jmp 0x42e018
push 0x104
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x42e012
lea eax, [ebp - 0x40]
push eax
xor eax, eax
inc eax
call fcn.0040c68f
pop ecx
lea eax, [ebp - 0x40]
jmp 0x42e018
lea eax, [ebp - 0x40]
push eax
push 2
pop eax
jmp 0x42e58d
lea eax, [ebp - 0x40]
push eax
push 3
jmp 0x42e5a1
lea eax, [ebp - 0x40]
push eax
push 4
jmp 0x42e5a1
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 0x42e68d
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 0x42e68d
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.0040f5b2
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp case.default.0x42dfbb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x74
jmp 0x42e5f7
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x42e012
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x42e0a3
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 0x42e012
mov eax, dword [0x486f00]
cmp eax, 2
je case.0x42dfbb.42
cmp eax, 3
jne case.0x42dfbb.29
push 1
mov esi, edi
call fcn.0040f5b2
xor esi, esi
jmp 0x42df8d
cmp byte [0x486ecc], 0
push 0x104
je 0x42e6b7
lea eax, [ebp - 0x268]
push eax
push str.USERPROFILE
jmp 0x42e639
push str.Desktop
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040b1b6
mov eax, esi
push eax
call fcn.0044bc79
add esp, 0x14
jmp 0x42e6e9
cmp word [ebp + eax*2 - 0x268], 0x5c
je 0x42e6ec
dec eax
jns 0x42e6de
and word [ebp + eax*2 - 0x268], 0
jmp 0x42e012
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEDRIVE
jmp 0x42e639
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEPATH
jmp 0x42e639
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMESHARE
jmp 0x42e639
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.LOGONSERVER
jmp 0x42e639
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDOMAIN
jmp 0x42e639
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDNSDOMAIN
jmp 0x42e639
push dword [esi + 0x31c]
jmp 0x42e68d
movzx eax, byte [esi + 0x318]
jmp 0x42e039
push dword [esi + 0x35c]
jmp 0x42e68d
push dword [esi + 0x360]
jmp 0x42dfc7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test eax, eax
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
jge 0x42e7c1
fadd qword [0x46e148]
push ecx
push ecx
mov esi, edi
fstp qword [esp]
call fcn.0040f65e
jmp case.default.0x42dfbb
push 0x5780001
jmp 0x42e68d