Function at 0x42ebce
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.00450990
and word [ebp - 0x478], 0
add esp, 0xc
push ebx
lea eax, [ebp - 0x476]
push 0
push eax
call fcn.00450990
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
add esp, 0xc
push eax
call fcn.00452385
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.00452cf7
pop ecx
mov ebx, eax
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x476b28]
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x42ec53
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x5b
jl 0x42ec32
cmp dword [ebp - 4], 0x5b
jne 0x42ecb8
push 0x470490
lea esi, [ebp - 0x1c]
call fcn.0040e2d5
and dword [ebp - 0xc], 0
lea eax, [ebp + 8]
mov ecx, esi
call fcn.0040e494
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x1c]
call fcn.0040e082
cmp dword [ebp - 4], 0
jne 0x42eca9
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call fcn.0044de9c
pop ecx
push dword [ebp + 8]
call fcn.0044de9c
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.00410013
xor esi, esi
jmp 0x42ec8e
cmp dword [ebp - 4], 0x5a
ja case.default.0x42ecc5
mov eax, dword [ebp - 4]
jmp dword [eax*4 + 0x42f4e6]
push 0x4704ec
call fcn.0041028c
jmp case.default.0x42ecc5
push 0x46b614
jmp 0x42ecd1
push 0x46c0d0
jmp 0x42ecd1
push 0x4704f0
jmp 0x42ecd1
push dword [esi + 0x354]
jmp 0x42f397
push dword [esi + 0x358]
jmp 0x42f397
push dword [ebx]
push 0x4704f4
lea eax, [ebp - 0x268]
push eax
call fcn.0044e3e0
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
jmp 0x42ecd1
push dword [ebx + 4]
jmp 0x42ed08
push dword [ebx + 8]
jmp 0x42ed08
push dword [ebx + 0xc]
jmp 0x42ed08
mov eax, dword [ebx + 0x10]
inc eax
push eax
jmp 0x42ed08
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
jmp 0x42f397
mov eax, dword [ebx + 0x18]
inc eax
jmp 0x42ed43
mov eax, dword [ebx + 0x1c]
inc eax
push eax
push str._.3d
jmp 0x42ed0d
push 0x104
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WSOCK32.dll_bind
lea esi, [ebp - 0x268]
call fcn.0040bb94
add esp, 0x10
jmp 0x42ed1c
push 0x104
push str.CommonFilesDir
jmp 0x42ed65
push 0x104
push str.Personal
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040bb94
add esp, 0x10
lea esi, [ebp - 0x268]
call fcn.0040c21d
jmp 0x42ed1c
push 0x104
push str.Common_AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x42ed6a
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.0040bb94
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42ee16
push ebx
push str.Desktop
push edi
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040bb94
add esp, 0x10
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
jmp 0x42ecd1
push 0x104
push str.Common_Documents
jmp 0x42edc7
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.0040bb94
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42ee16
push ebx
push str.Favorites
jmp 0x42ee02
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.0040bb94
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42ee16
push ebx
push str.Programs
jmp 0x42ee02
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.0040bb94
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42ee16
push ebx
push str.Start_Menu
jmp 0x42ee02
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.0040bb94
add esp, 0x10
cmp word [ebp - 0x268], 0
jne 0x42ee16
push ebx
push str.Startup
jmp 0x42ee02
push 0x104
push str.AppData
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
jmp 0x42ed6f
push 0x104
push str.Desktop
jmp 0x42ef24
push 0x104
push str.Favorites
jmp 0x42ef24
push 0x104
push str.Programs
jmp 0x42ef24
push 0x104
push str.Start_Menu
jmp 0x42ef24
push 0x104
push str.Startup
jmp 0x42ef24
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 0x42ed1c
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x42ed1c
push 0x104
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x42ed1c
push 0
jmp 0x42f397
push 6
jmp 0x42f397
push 3
jmp 0x42f397
push 9
jmp 0x42f397
push 5
jmp 0x42f397
push 0xa
jmp 0x42f397
push 2
jmp 0x42f397
push 7
jmp 0x42f397
push 8
jmp 0x42f397
push 4
jmp 0x42f397
xor eax, eax
inc eax
cmp byte [0x4786be], al
mov esi, edi
jne 0x42f013
push eax
jmp 0x42f399
push 0
jmp 0x42f399
xor eax, eax
inc eax
cmp byte [0x48b341], al
jmp 0x42f009
push 0x40
jmp 0x42f397
push 0x41
jmp 0x42f397
push 0x42
jmp 0x42f397
push 0x43
jmp 0x42f397
push dword [esi + 0x26c]
jmp 0x42ecd1
push dword [esi + 0x260]
jmp 0x42ecd1
push dword [esi + 0x278]
jmp 0x42ecd1
mov ecx, dword [esi + 0x290]
call fcn.00406796
jmp 0x42ed43
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x42ed1c
mov eax, dword [0x48a8c4]
mov ecx, eax
dec ecx
je 0x42f0ba
dec ecx
je 0x42f0b0
dec ecx
je 0x42f0a6
neg eax
push eax
push str.UNKN_d
jmp 0x42ed0d
push 0x4707ac
jmp 0x42ecd1
push str.IA64
jmp 0x42ecd1
push 0x470798
jmp 0x42ecd1
cmp byte [0x48a8ac], 1
jne 0x42f0d7
push str.WIN32_NT
jmp 0x42ecd1
push str.WIN32_WINDOWS
jmp 0x42ecd1
xor eax, eax
inc eax
cmp byte [0x48a8ac], al
jne 0x42f150
cmp byte [0x48a8b2], al
jne 0x42f0fe
push str.WIN_LONGHORN
jmp 0x42ecd1
cmp byte [0x48a8b8], al
jne 0x42f110
push str.WIN_VISTA
jmp 0x42ecd1
cmp byte [0x48a8b6], al
jne 0x42f122
push str.WIN_2003
jmp 0x42ecd1
cmp byte [0x48a8b0], al
jne 0x42f134
push str.WIN_XP
jmp 0x42ecd1
cmp byte [0x48a8b4], al
jne 0x42f146
push str.WIN_2000
jmp 0x42ecd1
push str.WIN_NT4
jmp 0x42ecd1
cmp byte [0x48a8bc], al
jne 0x42f162
push str.WIN_95
jmp 0x42ecd1
cmp byte [0x48a8ba], al
jne 0x42f174
push str.WIN_98
jmp 0x42ecd1
push str.WIN_ME
jmp 0x42ecd1
push dword [0x48a6a8]
jmp 0x42f397
push 0x48a6ac
jmp 0x42ecd1
xor eax, eax
inc eax
cmp byte [0x48a8ac], al
push 0x104
lea esi, [ebp - 0x268]
jne 0x42f1cc
cmp byte [0x48a8b5], al
jne 0x42f1b8
push str.InstallLanguage
jmp 0x42f1bd
push str.Default
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.WSOCK32.dll_bind
jmp 0x42ed75
push 0x46b160
push str..DEFAULTControl_PanelDesktopResourceLocale
push reloc.WSOCK32.dll_closesocket
call fcn.0040bb94
add esp, 0x10
lea eax, [ebp - 0x260]
jmp 0x42ed22
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea eax, [ebp - 0x20]
jmp 0x42ed22
lea eax, [ebp - 0x478]
push 0x47097c
push eax
call fcn.0044ddb8
lea eax, [ebp - 0x478]
push eax
xor esi, esi
xor ebx, ebx
call fcn.0044e3ca
add esp, 0xc
test eax, eax
jle 0x42f263
movzx eax, word [ebp + ebx*2 - 0x478]
cmp ax, 0x20
je 0x42f251
cmp ax, 0x2c
jne 0x42f248
mov word [ebp + esi*2 - 0x478], 0x2e
jmp 0x42f250
mov word [ebp + esi*2 - 0x478], ax
inc esi
lea eax, [ebp - 0x478]
push eax
inc ebx
call fcn.0044e3ca
cmp ebx, eax
pop ecx
jl 0x42f228
and word [ebp + esi*2 - 0x478], 0
lea eax, [ebp - 0x478]
jmp 0x42ed22
push 0x104
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x42ed1c
lea eax, [ebp - 0x40]
push eax
xor eax, eax
inc eax
call fcn.0040d07a
pop ecx
lea eax, [ebp - 0x40]
jmp 0x42ed22
lea eax, [ebp - 0x40]
push eax
push 2
pop eax
jmp 0x42f297
lea eax, [ebp - 0x40]
push eax
push 3
jmp 0x42f2ab
lea eax, [ebp - 0x40]
push eax
push 4
jmp 0x42f2ab
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 0x42f397
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 0x42f397
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.004101c7
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp case.default.0x42ecc5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x74
jmp 0x42f301
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x42ed1c
lea eax, [ebp - 0x268]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x42edad
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 0x42ed1c
mov eax, dword [0x48a8e0]
cmp eax, 2
je case.0x42ecc5.42
cmp eax, 3
jne case.0x42ecc5.29
push 1
mov esi, edi
call fcn.004101c7
xor esi, esi
jmp 0x42ec97
cmp byte [0x48a8ac], 0
push 0x104
je 0x42f3c1
lea eax, [ebp - 0x268]
push eax
push str.USERPROFILE
jmp 0x42f343
push str.Desktop
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WSOCK32.dll_accept
lea esi, [ebp - 0x268]
call fcn.0040bb94
mov eax, esi
push eax
call fcn.0044e3ca
add esp, 0x14
jmp 0x42f3f3
cmp word [ebp + eax*2 - 0x268], 0x5c
je 0x42f3f6
dec eax
jns 0x42f3e8
and word [ebp + eax*2 - 0x268], 0
jmp 0x42ed1c
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEDRIVE
jmp 0x42f343
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMEPATH
jmp 0x42f343
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.HOMESHARE
jmp 0x42f343
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.LOGONSERVER
jmp 0x42f343
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDOMAIN
jmp 0x42f343
push 0x104
lea eax, [ebp - 0x268]
push eax
push str.USERDNSDOMAIN
jmp 0x42f343
push dword [esi + 0x320]
jmp 0x42f397
movzx eax, byte [esi + 0x31c]
jmp 0x42ed43
push dword [esi + 0x35c]
jmp 0x42f397
push dword [esi + 0x360]
jmp 0x42ecd1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test eax, eax
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
jge 0x42f4cb
fadd qword [0x4713b0]
push ecx
push ecx
mov esi, edi
fstp qword [esp]
call fcn.00410273
jmp case.default.0x42ecc5
push 0x5780001
jmp 0x42f397