Function at 0x4038b8
Capabilities:
Check os version
Get common file path
Get file version info
Get system information on windows
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Number1_Global_
push edi
call esi
push 1
test eax, eax
pop ebx
jne 0x403915
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x144]
mov ecx, dword [ebp + 0x14]
cmp dword [ebp + 0x10], 0
mov dword [ecx], eax
je 0x40448c
push eax
push 0x45a8f0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40448c
push str.Number2_Global_
push edi
call esi
test eax, eax
jne 0x40392c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x148]
jmp 0x4038ef
push str.Number3_Global_
push edi
call esi
test eax, eax
jne 0x403943
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14c]
jmp 0x4038ef
push str.Number4_Global_
push edi
call esi
test eax, eax
jne 0x40395a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x150]
jmp 0x4038ef
push str.Number5_Global_
push edi
call esi
test eax, eax
jne 0x403974
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x154]
jmp 0x4038ef
push str.Number6_Global_
push edi
call esi
test eax, eax
jne 0x40398e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x158]
jmp 0x4038ef
push str.String1_Global_
push edi
call esi
test eax, eax
jne 0x4039b1
mov eax, dword [ebp + 8]
add eax, 0x15c
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40448c
push str.String2_Global_
push edi
call esi
test eax, eax
jne 0x4039c7
mov eax, dword [ebp + 8]
add eax, 0x261
jmp 0x4039a2
push str.String3_Global_
push edi
call esi
test eax, eax
jne 0x4039dd
mov eax, dword [ebp + 8]
add eax, 0x366
jmp 0x4039a2
push str.String4_Global_
push edi
call esi
test eax, eax
jne 0x4039f3
mov eax, dword [ebp + 8]
add eax, 0x46b
jmp 0x4039a2
push str.String5_Global_
push edi
call esi
test eax, eax
jne 0x403a09
mov eax, dword [ebp + 8]
add eax, 0x570
jmp 0x4039a2
push str.String6_Global_
push edi
call esi
test eax, eax
jne 0x403a1f
mov eax, dword [ebp + 8]
add eax, 0x675
jmp 0x4039a2
push str.Random
push edi
call esi
test eax, eax
jne 0x403a43
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x64
xor edx, edx
pop ecx
div ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
push edx
jmp 0x4038ff
push str.ScrollLock
push edi
call esi
test eax, eax
jne 0x403a56
push 0x91
jmp 0x403aa7
push str.NumLock
push edi
call esi
test eax, eax
jne 0x403a69
push 0x90
jmp 0x403aa7
push str.CapsLock
push edi
call esi
test eax, eax
jne 0x403a79
push 0x14
jmp 0x403aa7
push str.AltKey
push edi
call esi
test eax, eax
jne 0x403a89
push 0x12
jmp 0x403aa7
push str.CtrlKey
push edi
call esi
test eax, eax
jne 0x403a99
push 0x11
jmp 0x403aa7
push str.ShiftKey
push edi
call esi
test eax, eax
jne 0x403abe
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ecx, ax
mov eax, dword [ebp + 0x14]
shr ecx, 0xf
mov dword [eax], ecx
push ecx
jmp 0x4038ff
push str.SystemTime
push edi
call esi
test eax, eax
jne 0x403ae5
movzx eax, byte [ebp - 0x14]
movzx ecx, byte [ebp - 0x12]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x10]
shl eax, 8
or eax, ecx
jmp 0x403cf1
push str.Hour
push edi
call esi
test eax, eax
jne 0x403afa
movzx eax, word [ebp - 0x14]
jmp 0x403cf1
push str.Minute
push edi
call esi
test eax, eax
jne 0x403b0f
movzx eax, word [ebp - 0x12]
jmp 0x403cf1
push str.ElapsedTime
push edi
call esi
test eax, eax
jne 0x403b2f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x128]
jmp 0x403cf1
push str.Resolution
push edi
call esi
test eax, eax
jne 0x403b63
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call esi
push eax
push 0
call esi
push eax
push str._04dx_04d
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp + 0x10]
jmp 0x404226
push str.Language
push edi
call esi
test eax, eax
jne 0x403ba9
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
movzx eax, ax
push eax
call fcn.0042fcf3
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push str..DAT
push eax
call esi
test eax, eax
jne 0x403b9a
push 0x45a854
jmp 0x403b9e
lea eax, [ebp - 0x2f]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403b5b
push str.SelectedLanguage
push edi
call esi
test eax, eax
jne 0x403bc1
push 0xc
push dword [ebp + 8]
call fcn.00403526
jmp 0x403b9d
push str.Color_Depth
push edi
call esi
test eax, eax
jne 0x403c41
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 0xe
push ebx
call edi
push 0xc
push ebx
mov esi, eax
call edi
imul esi, eax
dec esi
je 0x403c25
sub esi, 3
je 0x403c1e
sub esi, 4
je 0x403c17
sub esi, 8
je 0x403c10
sub esi, 8
je 0x403c09
push str.True
jmp 0x403c2a
push str.16777216
jmp 0x403c2a
push str.65536
jmp 0x403c2a
push 0x45a814
jmp 0x403c2a
push 0x45a810
jmp 0x403c2a
push 0x45a80c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x403b5b
push str.CurrentScene
push edi
call esi
test eax, eax
jne 0x403c67
push 2
push dword [ebp + 8]
call fcn.0040366a
push dword [ebp + 0x10]
push 0xa
push eax
call fcn.00405a34
jmp 0x403b5b
push str.OSVersion
push edi
call esi
test eax, eax
jne 0x403c7e
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
jmp 0x403cf1
push str.OSVersionMinor
push edi
call esi
test eax, eax
jne 0x403c99
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
mov cl, ah
movzx eax, cl
jmp 0x403cf1
push str.X_Extent
push edi
call esi
test eax, eax
jne 0x403cae
push eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
jmp 0x403cf1
push str.Y_Extent
push edi
call esi
test eax, eax
jne 0x403cbd
push ebx
jmp 0x403ca6
push 0x45a7c4
push edi
call esi
test eax, eax
jne 0x403ccf
movzx eax, word [ebp - 0x16]
jmp 0x403cf1
push str.Month
push edi
call esi
test eax, eax
jne 0x403ce1
movzx eax, word [ebp - 0x1a]
jmp 0x403cf1
push str.Year
push edi
call esi
test eax, eax
jne 0x403cfb
movzx eax, word [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x4038fe
push str.SystemDate
push edi
call esi
test eax, eax
jne 0x403d2c
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x1a]
push eax
push str._02u._02u._u
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x403b5b
push str.DetectOS
push edi
call esi
test eax, eax
jne 0x403e10
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45a784
push edi
call esi
xor ecx, ecx
cmp dword [ebp - 0xb8], ecx
jne 0x403d78
push str.Win31
jmp 0x404222
cmp dword [ebp - 0xb8], ebx
jne 0x403dbc
cmp dword [ebp - 0xc0], ecx
je 0x403db2
cmp dword [ebp - 0xc0], 0xa
je 0x403da8
cmp dword [ebp - 0xc0], 0x5a
jne 0x404225
push str.WinMe
jmp 0x404222
push str.Win98
jmp 0x404222
push str.Win95
jmp 0x404222
cmp dword [ebp - 0xb8], 2
jne 0x404225
mov eax, dword [ebp - 0xc4]
sub eax, 4
je 0x403e06
dec eax
je 0x403de1
push 0x45a760
jmp 0x404222
mov eax, dword [ebp - 0xc0]
sub eax, ecx
je 0x403dfc
dec eax
jne 0x404225
push str.WinXP
jmp 0x404222
push str.Win2000
jmp 0x404222
push str.WinNT4
jmp 0x404222
push str.MonthName
push edi
call esi
test eax, eax
jne 0x403ead
movzx eax, word [ebp - 0x1a]
dec eax
cmp eax, 0xb
ja case.default.0x403e2e
jmp dword [eax*4 + 0x404496]
push str.January
jmp 0x403b9e
push str.February
jmp 0x403b9e
push str.March
jmp 0x403b9e
push str.April
jmp 0x403b9e
push 0x45a714
jmp 0x403b9e
push str.June
jmp 0x403b9e
push str.July
jmp 0x403b9e
push str.August
jmp 0x403b9e
push str.September
jmp 0x403b9e
push str.October
jmp 0x403b9e
push str.November
jmp 0x403b9e
push str.December
jmp 0x403b9e
push str.DayName
push edi
call esi
test eax, eax
jne 0x403f24
movzx eax, word [ebp - 0x18]
sub eax, 0
je 0x403f1a
dec eax
je 0x403f10
dec eax
je 0x403f06
dec eax
je 0x403efc
dec eax
je 0x403ef2
dec eax
je 0x403ee8
dec eax
je 0x403ede
push 0x45a784
jmp 0x403b9e
push str.Saturday
jmp 0x403b9e
push str.Friday
jmp 0x403b9e
push str.Thursday
jmp 0x403b9e
push str.Wednesday
jmp 0x403b9e
push str.Tuesday
jmp 0x403b9e
push str.Monday
jmp 0x403b9e
push str.Sunday
jmp 0x403b9e
push str.IsPDF
push edi
call esi
test eax, eax
jne 0x403f94
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.False
push dword [ebp + 0x10]
call esi
lea eax, [ebp + 8]
xor edi, edi
push eax
push 0x20019
push edi
push str..pdf
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b5b
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x403f86
cmp dword [ebp + 0xc], ebx
jle 0x403f86
push str.True
push dword [ebp + 0x10]
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403b5b
push str.IsFTP
push edi
call esi
test eax, eax
jne 0x403fa7
push 0x45a660
jmp 0x403fb8
push str.IsHTTP
push edi
call esi
test eax, eax
jne 0x403fd6
push 0x45a650
call fcn.004044c6
test eax, eax
pop ecx
je 0x403fcc
push str.True
jmp 0x403b9e
push str.False
jmp 0x403b9e
push str.IEVersion
push edi
call esi
test eax, eax
jne 0x404015
mov ebx, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.HKEY_LOCAL_MACHINESoftwareMicrosoftInternet_ExplorerVersion
push ebx
call edi
push ebx
call fcn.004044f8
mov dword [esp], str.Not_Found
push ebx
call esi
test eax, eax
jne 0x40400f
push str.Not_Installed
push ebx
call edi
push ebx
jmp 0x404226
push str.NetscapeVersion
push edi
call esi
test eax, eax
jne 0x404059
mov edi, dword [ebp + 0x10]
push edi
push str.netscape.exe
call fcn.00404a32
pop ecx
pop ecx
push str.Not_Installed
push edi
call esi
test eax, eax
jne 0x404225
push str.HKEY_LOCAL_MACHINESoftwareNetscapeNetscape_6CurrentVersion
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.004044f8
pop ecx
jmp 0x404225
push str.QuickTimeVersion
push edi
call esi
test eax, eax
jne 0x404079
push dword [ebp + 0x10]
push str.QuickTimePlayer.exe
call fcn.00404a32
pop ecx
pop ecx
jmp 0x403b5b
push str.MediaPlayerMajorVersion
push edi
call esi
test eax, eax
je 0x404232
push str.MediaPlayerMinorVersion
push edi
call esi
test eax, eax
je 0x404232
push str.RealPlayerVersion
push edi
call esi
test eax, eax
jne 0x404189
push str.Not_Installed
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], 0x105
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_realplay.exe
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40414e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x138]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x40414e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x138]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, edi
mov dword [ebp - 4], eax
je 0x40414e
push eax
push dword [0x45a2fc]
call fcn.00430c23
mov esi, eax
cmp esi, edi
je 0x40414e
push esi
lea eax, [ebp - 0x138]
push dword [ebp - 4]
push dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40414e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x45a4d4
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x404155
xor eax, eax
jmp 0x40448f
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
push ecx
mov ecx, dword [eax + 0x14]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 0x10]
mov eax, dword [eax + 0x10]
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 8]
add esp, 0x18
jmp 0x404453
push str.TypeOfCPU
push edi
call esi
test eax, eax
jne 0x40448c
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Unknown_CPU_Type
push edi
call esi
movzx eax, word [ebp - 0x15c]
sub eax, 0
je 0x4041f3
dec eax
dec eax
jne 0x404225
movzx eax, word [ebp - 0x13c]
sub eax, 0x5248
je 0x4041ec
dec eax
dec eax
je 0x4041e5
sub eax, 0x62
jne 0x404225
push str.Alpha_21164
jmp 0x404222
push str.Alpha_21066
jmp 0x404222
push str.Alpha_21064
jmp 0x404222
movzx eax, word [ebp - 0x13c]
sub eax, 3
je 0x40421d
dec eax
je 0x404216
dec eax
je 0x40420f
dec eax
jne 0x404225
push str.Pentium_Pro_II
jmp 0x404222
push str.Pentium
jmp 0x404222
push str.80486
jmp 0x404222
push str.80386
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
jmp 0x404487
and dword [ebp + 8], 0
and dword [ebp - 8], 0
push str.Not_Installed
mov dword [ebp - 0x20], 0x105
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathswmplayer.exe
push SysReAllocStringLen
call ebx
test eax, eax
je 0x40438b
lea eax, [ebp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsmplayer2.exe
push SysReAllocStringLen
call ebx
test eax, eax
je 0x40438b
lea eax, [ebp - 0x138]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x138]
push str.mplayer.exe
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x138]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40436d
mov eax, dword [ebp - 0x24]
push str.mplayer2.exe
lea eax, [ebp + eax - 0x138]
push eax
call edi
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x138]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40436d
lea eax, [ebp - 0x138]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 0x138]
push str.mplayer.exe
push eax
call edi
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x138]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40414e
lea eax, [ebp + esi - 0x138]
push str.mplayer2.exe
push eax
call edi
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x138]
push eax
call ebx
jmp 0x40414e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
je 0x4043af
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x138]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x40414e
lea eax, [ebp - 0x138]
push eax
call fcn.004307c0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x138]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x4043dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40414e
push eax
push dword [0x45a2fc]
call fcn.00430c23
mov ebx, eax
test ebx, ebx
je 0x40414e
push ebx
lea eax, [ebp - 0x138]
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40414e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x45a4d4
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40414e
push str.MediaPlayerMajorVersion
push edi
call esi
test eax, eax
jne 0x40445b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
shr eax, 0x10
push eax
push 0x45a8f0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 4]
add esp, 0xc
mov eax, dword [eax + 0x10]
shr eax, 0x10
jmp 0x404487
push str.MediaPlayerMinorVersion
push edi
call esi
test eax, eax
jne 0x40448c
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10]
push eax
push 0x45a8f0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 4]
add esp, 0xc
movzx eax, word [eax + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10