Function at 0x42e492
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.0044fbe0
and word [ebp - 0x478], 0
add esp, 0xc
push ebx
lea eax, [ebp - 0x476]
push 0
push eax
call fcn.0044fbe0
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
add esp, 0xc
push eax
call fcn.00451931
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.0045236b
pop ecx
mov ebx, eax
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x475b28]
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x42e517
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x5b
jl 0x42e4f6
cmp dword [ebp - 4], 0x5b
jne 0x42e57c
push 0x46f448
lea esi, [ebp - 0x1c]
call fcn.0040dcac
and dword [ebp - 0xc], 0
lea eax, [ebp + 8]
mov ecx, esi
call fcn.0040de6b
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x1c]
call fcn.0040da82
cmp dword [ebp - 4], 0
jne 0x42e56d
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call fcn.0044d460
pop ecx
push dword [ebp + 8]
call fcn.0044d460
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.0040f9ea
xor esi, esi
jmp 0x42e552
cmp dword [ebp - 4], 0x5a
ja case.default.0x42e589
mov eax, dword [ebp - 4]
jmp dword [eax*4 + 0x42edaa]
push 0x46f4a4
call fcn.0040fc63
jmp case.default.0x42e589
push 0x46a624
jmp 0x42e595
push 0x46b0e0
jmp 0x42e595
push 0x46f4a8
jmp 0x42e595
push dword [esi + 0x354]
jmp 0x42ec5b
push dword [esi + 0x358]
jmp 0x42ec5b
push dword [ebx]
push 0x46f4ac
lea eax, [ebp - 0x268]
push eax
call fcn.0044d9d9
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
jmp 0x42e595
push dword [ebx + 4]
jmp 0x42e5cc
push dword [ebx + 8]
jmp 0x42e5cc
push dword [ebx + 0xc]
jmp 0x42e5cc
mov eax, dword [ebx + 0x10]
inc eax
push eax
jmp 0x42e5cc
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
jmp 0x42ec5b
mov eax, dword [ebx + 0x18]
inc eax
jmp 0x42e607
mov eax, dword [ebx + 0x1c]
inc eax
push eax
push str._.3d
jmp 0x42e5d1
push 0x104
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x268]
call fcn.0040b58f
add esp, 0x10
jmp 0x42e5e0
push 0x104
push str.CommonFilesDir
jmp 0x42e629
push 0x104
push str.Personal
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040b58f
add esp, 0x10
lea esi, [ebp - 0x268]
call fcn.0040bc18
jmp 0x42e5e0
push 0x104
push str.Common_AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x42e62e
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.0040b58f
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e6da
push ebx
push str.Desktop
push edi
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040b58f
add esp, 0x10
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
jmp 0x42e595
push 0x104
push str.Common_Documents
jmp 0x42e68b
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.0040b58f
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e6da
push ebx
push str.Favorites
jmp 0x42e6c6
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.0040b58f
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e6da
push ebx
push 0x46f6c0
jmp 0x42e6c6
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.0040b58f
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e6da
push ebx
push str.Start_Menu
jmp 0x42e6c6
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.0040b58f
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42e6da
push ebx
push str.Startup
jmp 0x42e6c6
push 0x104
push str.AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
jmp 0x42e633
push 0x104
push str.Desktop
jmp 0x42e7e8
push 0x104
push str.Favorites
jmp 0x42e7e8
push 0x104
push 0x46f6c0
jmp 0x42e7e8
push 0x104
push str.Start_Menu
jmp 0x42e7e8
push 0x104
push str.Startup
jmp 0x42e7e8
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 0x42e5e0
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
jmp 0x42e5e0
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
jmp 0x42e5e0
push 0
jmp 0x42ec5b
push 6
jmp 0x42ec5b
push 3
jmp 0x42ec5b
push 9
jmp 0x42ec5b
push 5
jmp 0x42ec5b
push 0xa
jmp 0x42ec5b
push 2
jmp 0x42ec5b
push 7
jmp 0x42ec5b
push 8
jmp 0x42ec5b
push 4
jmp 0x42ec5b
xor eax, eax
inc eax
cmp byte [0x47765e], al
mov esi, edi
jne 0x42e8d7
push eax
jmp 0x42ec5d
push 0
jmp 0x42ec5d
xor eax, eax
inc eax
cmp byte [0x48a2e1], al
jmp 0x42e8cd
push 0x40
jmp 0x42ec5b
push 0x41
jmp 0x42ec5b
push 0x42
jmp 0x42ec5b
push 0x43
jmp 0x42ec5b
push dword [esi + 0x268]
jmp 0x42e595
push dword [esi + 0x25c]
jmp 0x42e595
push dword [esi + 0x274]
jmp 0x42e595
mov ecx, dword [esi + 0x28c]
call fcn.004061e5
jmp 0x42e607
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
jmp 0x42e5e0
mov eax, dword [0x489864]
mov ecx, eax
dec ecx
je 0x42e97e
dec ecx
je 0x42e974
dec ecx
je 0x42e96a
neg eax
push eax
push str.UNKN_d
jmp 0x42e5d1
push 0x46f764
jmp 0x42e595
push str.IA64
jmp 0x42e595
push 0x46f750
jmp 0x42e595
cmp byte [0x48984c], 1
jne 0x42e99b
push str.WIN32_NT
jmp 0x42e595
push str.WIN32_WINDOWS
jmp 0x42e595
xor eax, eax
inc eax
cmp byte [0x48984c], al
jne 0x42ea14
cmp byte [0x489852], al
jne 0x42e9c2
push str.WIN_LONGHORN
jmp 0x42e595
cmp byte [0x489858], al
jne 0x42e9d4
push str.WIN_VISTA
jmp 0x42e595
cmp byte [0x489856], al
jne 0x42e9e6
push str.WIN_2003
jmp 0x42e595
cmp byte [0x489850], al
jne 0x42e9f8
push str.WIN_XP
jmp 0x42e595
cmp byte [0x489854], al
jne 0x42ea0a
push str.WIN_2000
jmp 0x42e595
push str.WIN_NT4
jmp 0x42e595
cmp byte [0x48985c], al
jne 0x42ea26
push str.WIN_95
jmp 0x42e595
cmp byte [0x48985a], al
jne 0x42ea38
push str.WIN_98
jmp 0x42e595
push str.WIN_ME
jmp 0x42e595
push dword [0x489648]
jmp 0x42ec5b
push 0x48964c
jmp 0x42e595
xor eax, eax
inc eax
cmp byte [0x48984c], al
push 0x104
lea esi, [ebp - 0x268]
jne 0x42ea90
cmp byte [0x489855], al
jne 0x42ea7c
push str.InstallLanguage
jmp 0x42ea81
push str.Default
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x42e639
push 0x46a170
push str..DEFAULTControl_PanelDesktopResourceLocale
push reloc.WSOCK32.dll_closesocket
call fcn.0040b58f
add esp, 0x10
lea eax, [ebp - 0x260]
jmp 0x42e5e6
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea eax, [ebp - 0x20]
jmp 0x42e5e6
lea eax, [ebp - 0x478]
push str.3__2__8__1
push eax
call fcn.0044d37c
lea eax, [ebp - 0x478]
push eax
xor esi, esi
xor ebx, ebx
call fcn.0044d9c3
add esp, 0xc
test eax, eax
jle 0x42eb27
movzx eax, word [ebp + ebx*2 - 0x478]
cmp ax, 0x20
je 0x42eb15
cmp ax, 0x2c
jne 0x42eb0c
mov word [ebp + esi*2 - 0x478], 0x2e
jmp 0x42eb14
mov word [ebp + esi*2 - 0x478], ax
inc esi
lea eax, [ebp - 0x478]
push eax
inc ebx
call fcn.0044d9c3
cmp ebx, eax
pop ecx
jl 0x42eaec
and word [ebp + esi*2 - 0x478], 0
lea eax, [ebp - 0x478]
jmp 0x42e5e6
push 0x104
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
jmp 0x42e5e0
lea eax, [ebp - 0x40]
push eax
xor eax, eax
inc eax
call fcn.0040ca75
pop ecx
lea eax, [ebp - 0x40]
jmp 0x42e5e6
lea eax, [ebp - 0x40]
push eax
push 2
pop eax
jmp 0x42eb5b
lea eax, [ebp - 0x40]
push eax
push 3
jmp 0x42eb6f
lea eax, [ebp - 0x40]
push eax
push 4
jmp 0x42eb6f
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 0x42ec5b
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 0x42ec5b
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.0040fb9e
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp case.default.0x42e589
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x74
jmp 0x42ebc5
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
jmp 0x42e5e0
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x42e671
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 0x42e5e0
mov eax, dword [0x489880]
cmp eax, 2
je case.0x42e589.42
cmp eax, 3
jne case.0x42e589.29
push 1
mov esi, edi
call fcn.0040fb9e
xor esi, esi
jmp 0x42e55b
cmp byte [0x48984c], 0
push 0x104
je 0x42ec85
lea eax, [ebp - 0x268]
push eax
push str.USERPROFILE
jmp 0x42ec07
push str.Desktop
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040b58f
mov eax, esi
push eax
call fcn.0044d9c3
add esp, 0x14
jmp 0x42ecb7
cmp word [ebp + eax*2 - 0x268], 0x5c
je 0x42ecba
dec eax
jns 0x42ecac
and word [ebp + eax*2 - 0x268], 0
jmp 0x42e5e0
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEDRIVE
jmp 0x42ec07
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEPATH
jmp 0x42ec07
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMESHARE
jmp 0x42ec07
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.LOGONSERVER
jmp 0x42ec07
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDOMAIN
jmp 0x42ec07
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDNSDOMAIN
jmp 0x42ec07
push dword [esi + 0x31c]
jmp 0x42ec5b
movzx eax, byte [esi + 0x318]
jmp 0x42e607
push dword [esi + 0x35c]
jmp 0x42ec5b
push dword [esi + 0x360]
jmp 0x42e595
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
test eax, eax
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
jge 0x42ed8f
fadd qword [0x470318]
push ecx
push ecx
mov esi, edi
fstp qword [esp]
call fcn.0040fc4a
jmp case.default.0x42e589
push 0x5780001
jmp 0x42ec5b