Function at 0x403a53
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 0x403ab0
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 0x404627
push eax
push 0x4648f0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x404627
push str.Number2_Global_
push edi
call esi
test eax, eax
jne 0x403ac7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x148]
jmp 0x403a8a
push str.Number3_Global_
push edi
call esi
test eax, eax
jne 0x403ade
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14c]
jmp 0x403a8a
push str.Number4_Global_
push edi
call esi
test eax, eax
jne 0x403af5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x150]
jmp 0x403a8a
push str.Number5_Global_
push edi
call esi
test eax, eax
jne 0x403b0f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x154]
jmp 0x403a8a
push str.Number6_Global_
push edi
call esi
test eax, eax
jne 0x403b29
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x158]
jmp 0x403a8a
push str.String1_Global_
push edi
call esi
test eax, eax
jne 0x403b4c
mov eax, dword [ebp + 8]
add eax, 0x15c
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x404627
push str.String2_Global_
push edi
call esi
test eax, eax
jne 0x403b62
mov eax, dword [ebp + 8]
add eax, 0x261
jmp 0x403b3d
push str.String3_Global_
push edi
call esi
test eax, eax
jne 0x403b78
mov eax, dword [ebp + 8]
add eax, 0x366
jmp 0x403b3d
push str.String4_Global_
push edi
call esi
test eax, eax
jne 0x403b8e
mov eax, dword [ebp + 8]
add eax, 0x46b
jmp 0x403b3d
push str.String5_Global_
push edi
call esi
test eax, eax
jne 0x403ba4
mov eax, dword [ebp + 8]
add eax, 0x570
jmp 0x403b3d
push str.String6_Global_
push edi
call esi
test eax, eax
jne 0x403bba
mov eax, dword [ebp + 8]
add eax, 0x675
jmp 0x403b3d
push str.Random
push edi
call esi
test eax, eax
jne 0x403bde
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 0x403a9a
push str.ScrollLock
push edi
call esi
test eax, eax
jne 0x403bf1
push 0x91
jmp 0x403c42
push str.NumLock
push edi
call esi
test eax, eax
jne 0x403c04
push 0x90
jmp 0x403c42
push str.CapsLock
push edi
call esi
test eax, eax
jne 0x403c14
push 0x14
jmp 0x403c42
push str.AltKey
push edi
call esi
test eax, eax
jne 0x403c24
push 0x12
jmp 0x403c42
push str.CtrlKey
push edi
call esi
test eax, eax
jne 0x403c34
push 0x11
jmp 0x403c42
push str.ShiftKey
push edi
call esi
test eax, eax
jne 0x403c59
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 0x403a9a
push str.SystemTime
push edi
call esi
test eax, eax
jne 0x403c80
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 0x403e8c
push str.Hour
push edi
call esi
test eax, eax
jne 0x403c95
movzx eax, word [ebp - 0x14]
jmp 0x403e8c
push str.Minute
push edi
call esi
test eax, eax
jne 0x403caa
movzx eax, word [ebp - 0x12]
jmp 0x403e8c
push str.ElapsedTime
push edi
call esi
test eax, eax
jne 0x403cca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x128]
jmp 0x403e8c
push str.Resolution
push edi
call esi
test eax, eax
jne 0x403cfe
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 0x4043c1
push str.Language
push edi
call esi
test eax, eax
jne 0x403d44
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
movzx eax, ax
push eax
call fcn.00433297
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push str..DAT
push eax
call esi
test eax, eax
jne 0x403d35
push 0x464854
jmp 0x403d39
lea eax, [ebp - 0x2f]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403cf6
push str.SelectedLanguage
push edi
call esi
test eax, eax
jne 0x403d5c
push 0xc
push dword [ebp + 8]
call fcn.004036c1
jmp 0x403d38
push str.Color_Depth
push edi
call esi
test eax, eax
jne 0x403ddc
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 0x403dc0
sub esi, 3
je 0x403db9
sub esi, 4
je 0x403db2
sub esi, 8
je 0x403dab
sub esi, 8
je 0x403da4
push str.True
jmp 0x403dc5
push str.16777216
jmp 0x403dc5
push str.65536
jmp 0x403dc5
push 0x464814
jmp 0x403dc5
push 0x464810
jmp 0x403dc5
push 0x46480c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x403cf6
push str.CurrentScene
push edi
call esi
test eax, eax
jne 0x403e02
push 2
push dword [ebp + 8]
call fcn.00403805
push dword [ebp + 0x10]
push 0xa
push eax
call fcn.0040684e
jmp 0x403cf6
push str.OSVersion
push edi
call esi
test eax, eax
jne 0x403e19
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
jmp 0x403e8c
push str.OSVersionMinor
push edi
call esi
test eax, eax
jne 0x403e34
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
mov cl, ah
movzx eax, cl
jmp 0x403e8c
push str.X_Extent
push edi
call esi
test eax, eax
jne 0x403e49
push eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
jmp 0x403e8c
push str.Y_Extent
push edi
call esi
test eax, eax
jne 0x403e58
push ebx
jmp 0x403e41
push 0x4647c4
push edi
call esi
test eax, eax
jne 0x403e6a
movzx eax, word [ebp - 0x16]
jmp 0x403e8c
push str.Month
push edi
call esi
test eax, eax
jne 0x403e7c
movzx eax, word [ebp - 0x1a]
jmp 0x403e8c
push str.Year
push edi
call esi
test eax, eax
jne 0x403e96
movzx eax, word [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x403a99
push str.SystemDate
push edi
call esi
test eax, eax
jne 0x403ec7
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 0x403cf6
push str.DetectOS
push edi
call esi
test eax, eax
jne 0x403fab
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 0x464784
push edi
call esi
xor ecx, ecx
cmp dword [ebp - 0xb8], ecx
jne 0x403f13
push str.Win31
jmp 0x4043bd
cmp dword [ebp - 0xb8], ebx
jne 0x403f57
cmp dword [ebp - 0xc0], ecx
je 0x403f4d
cmp dword [ebp - 0xc0], 0xa
je 0x403f43
cmp dword [ebp - 0xc0], 0x5a
jne 0x4043c0
push str.WinMe
jmp 0x4043bd
push str.Win98
jmp 0x4043bd
push str.Win95
jmp 0x4043bd
cmp dword [ebp - 0xb8], 2
jne 0x4043c0
mov eax, dword [ebp - 0xc4]
sub eax, 4
je 0x403fa1
dec eax
je 0x403f7c
push 0x464760
jmp 0x4043bd
mov eax, dword [ebp - 0xc0]
sub eax, ecx
je 0x403f97
dec eax
jne 0x4043c0
push str.WinXP
jmp 0x4043bd
push str.Win2000
jmp 0x4043bd
push str.WinNT4
jmp 0x4043bd
push str.MonthName
push edi
call esi
test eax, eax
jne 0x404048
movzx eax, word [ebp - 0x1a]
dec eax
cmp eax, 0xb
ja case.default.0x403fc9
jmp dword [eax*4 + 0x404631]
push str.January
jmp 0x403d39
push str.February
jmp 0x403d39
push str.March
jmp 0x403d39
push str.April
jmp 0x403d39
push 0x464714
jmp 0x403d39
push str.June
jmp 0x403d39
push str.July
jmp 0x403d39
push str.August
jmp 0x403d39
push str.September
jmp 0x403d39
push str.October
jmp 0x403d39
push str.November
jmp 0x403d39
push str.December
jmp 0x403d39
push str.DayName
push edi
call esi
test eax, eax
jne 0x4040bf
movzx eax, word [ebp - 0x18]
sub eax, 0
je 0x4040b5
dec eax
je 0x4040ab
dec eax
je 0x4040a1
dec eax
je 0x404097
dec eax
je 0x40408d
dec eax
je 0x404083
dec eax
je 0x404079
push 0x464784
jmp 0x403d39
push str.Saturday
jmp 0x403d39
push str.Friday
jmp 0x403d39
push str.Thursday
jmp 0x403d39
push str.Wednesday
jmp 0x403d39
push str.Tuesday
jmp 0x403d39
push str.Monday
jmp 0x403d39
push str.Sunday
jmp 0x403d39
push str.IsPDF
push edi
call esi
test eax, eax
jne 0x40412f
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 0x403cf6
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 0x404121
cmp dword [ebp + 0xc], ebx
jle 0x404121
push str.True
push dword [ebp + 0x10]
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403cf6
push str.IsFTP
push edi
call esi
test eax, eax
jne 0x404142
push 0x464660
jmp 0x404153
push str.IsHTTP
push edi
call esi
test eax, eax
jne 0x404171
push 0x464650
call fcn.00404661
test eax, eax
pop ecx
je 0x404167
push str.True
jmp 0x403d39
push str.False
jmp 0x403d39
push str.IEVersion
push edi
call esi
test eax, eax
jne 0x4041b0
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.00404693
mov dword [esp], str.Not_Found
push ebx
call esi
test eax, eax
jne 0x4041aa
push str.Not_Installed
push ebx
call edi
push ebx
jmp 0x4043c1
push str.NetscapeVersion
push edi
call esi
test eax, eax
jne 0x4041f4
mov edi, dword [ebp + 0x10]
push edi
push str.netscape.exe
call fcn.00404bcd
pop ecx
pop ecx
push str.Not_Installed
push edi
call esi
test eax, eax
jne 0x4043c0
push str.HKEY_LOCAL_MACHINESoftwareNetscapeNetscape_6CurrentVersion
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.00404693
pop ecx
jmp 0x4043c0
push str.QuickTimeVersion
push edi
call esi
test eax, eax
jne 0x404214
push dword [ebp + 0x10]
push str.QuickTimePlayer.exe
call fcn.00404bcd
pop ecx
pop ecx
jmp 0x403cf6
push str.MediaPlayerMajorVersion
push edi
call esi
test eax, eax
je 0x4043cd
push str.MediaPlayerMinorVersion
push edi
call esi
test eax, eax
je 0x4043cd
push str.RealPlayerVersion
push edi
call esi
test eax, eax
jne 0x404324
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 0x4042e9
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 0x4042e9
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 0x4042e9
push eax
push dword [0x464334]
call fcn.004341c8
mov esi, eax
cmp esi, edi
je 0x4042e9
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 0x4042e9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x4644d4
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4042f0
xor eax, eax
jmp 0x40462a
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 0x4045ee
push str.TypeOfCPU
push edi
call esi
test eax, eax
jne 0x404627
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 0x40438e
dec eax
dec eax
jne 0x4043c0
movzx eax, word [ebp - 0x13c]
sub eax, 0x5248
je 0x404387
dec eax
dec eax
je 0x404380
sub eax, 0x62
jne 0x4043c0
push str.Alpha_21164
jmp 0x4043bd
push str.Alpha_21066
jmp 0x4043bd
push str.Alpha_21064
jmp 0x4043bd
movzx eax, word [ebp - 0x13c]
sub eax, 3
je 0x4043b8
dec eax
je 0x4043b1
dec eax
je 0x4043aa
dec eax
jne 0x4043c0
push str.Pentium_Pro_II
jmp 0x4043bd
push str.Pentium
jmp 0x4043bd
push str.80486
jmp 0x4043bd
push str.80386
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
jmp 0x404622
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 0x404526
lea eax, [ebp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsmplayer2.exe
push SysReAllocStringLen
call ebx
test eax, eax
je 0x404526
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 0x404508
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 0x404508
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 0x4042e9
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 0x4042e9
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 0x40454a
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 0x4042e9
lea eax, [ebp - 0x138]
push eax
call fcn.00433d65
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 0x404578
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4042e9
push eax
push dword [0x464334]
call fcn.004341c8
mov ebx, eax
test ebx, ebx
je 0x4042e9
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 0x4042e9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4644d4
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4042e9
push str.MediaPlayerMajorVersion
push edi
call esi
test eax, eax
jne 0x4045f6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
shr eax, 0x10
push eax
push 0x4648f0
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 0x404622
push str.MediaPlayerMinorVersion
push edi
call esi
test eax, eax
jne 0x404627
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10]
push eax
push 0x4648f0
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