Function at 0x401000
Capabilities:
Check os version
Encode data using xor
Get common file path
Get hostname
Get program files directory
Get session user name
Identify system language via api
Query environment variable
Terminate process

Disassembly:
sub esp, 0x5b4
push ebx
push ebp
push esi
push str.IsWow64Process
push str.kernel32
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x401085
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x401085
cmp dword [esp + 0xc], ebx
je 0x401085
push str.I386
lea ecx, [esp + 0x1c4]
push str.You_are_running_a_32_bit_version_of_Nvidia_uninstaller_on_a_64_bit_system__Binary_type__s_._nWrong_version_of_uninstaller._Uninstaller_exits_now.
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x5d4]
add esp, 0xc
lea edx, [esp + 0x1c0]
push 0x10
push str.Fatal_Error
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
push edi
mov dword [ebp + 0x548], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + ebx*4 + 0x18]
movsx edx, byte [ecx*4 + 0x40b020]
lea eax, [ecx*4 + 0x40b020]
lea esi, [edx + 4]
shr esi, 2
add esi, ecx
test edx, edx
mov dword [esp + ebx*4 + 0x1c], esi
jle 0x4010d8
mov edi, 1
lea esi, [edx + eax - 1]
sub edi, eax
mov cl, byte [esi + 1]
xor byte [esi], cl
dec esi
lea ecx, [edi + esi]
test ecx, ecx
jg 0x4010be
test edx, edx
jle 0x4010d8
lea esi, [eax + 1]
mov ecx, edx
mov edi, eax
rep movsb byte es:[edi], byte [esi]
inc ebx
mov byte [edx + eax], 0
cmp ebx, 5
jl 0x401090
mov edi, dword [esp + 0x5cc]
mov edx, dword [esp + 0x5c8]
mov eax, dword [esp + 0x5d0]
push 0x14
mov dword [ebp + 0x554], 0x40e468
mov dword [ebp + 0x558], edi
mov dword [ebp + 0x550], edx
mov dword [ebp + 0x55c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
je 0x401150
mov dword [eax], 0x40b028
mov ecx, dword [ebp]
mov dword [ecx + 4], 0x402f40
mov edx, dword [ebp]
mov dword [edx + 8], 0x40b034
mov eax, dword [ebp]
mov dword [eax + 0xc], 0x40b050
mov ecx, dword [ebp]
mov dword [ecx + 0x10], ebx
push str.If__Command_Name__is_provided_displayes_syntax_and_description_of_that_command_otherwise_displays_all_the_avilable_commands
push str.Command_Name
push fcn.00401c70
push str.Help
mov ecx, ebp
call fcn.00401720
push str.Executes_the_given_system_command__returns_immidiately_
push str.Command
push 0x402b30
push str.System
mov ecx, ebp
call fcn.00401720
push str.call_and_wait_untill_app_is_done.
push str.Exact_path_to_App__arguments
push 0x402b50
push str.SysCallAndWait
mov ecx, ebp
call fcn.00401720
push str.Defines_the_variable_if_not_defined_and_Sets_the_its_value_to_the_given_value._nIf__Value__is_not_given_it_undefines_the_given_variable
push str.Name_Value_
push 0x401b10
push 0x40b73c
mov ecx, ebp
call fcn.00401720
push str.Outputs_data_after_evaluation
push str.Data
push 0x402630
push str.Echo
mov ecx, ebp
call fcn.00401720
push str.runs_all_the_commands_in_that_section_and_returnd_and_continues_executing_commands_after_that_line
push str.Section_Name
push 0x402950
push str.Call
mov ecx, ebp
call fcn.00401720
push str.Executes_all_the_commands_in_that_file_and_returns
push str.Path_to_an_NVU_File
push fcn.004029f0
push 0x40b644
mov ecx, ebp
call fcn.00401720
push str.Run_all_the_commands_in_this_file_and_delete_the_file
push str.Path_to_an_NVU_File
push fcn.00402ad0
push str.RunOnce
mov ecx, ebp
call fcn.00401720
push str.A_dir_will_be_applied_to_the_given_path_and_for_each_file_found_it_sets_variable_current_file_to_that_file_and_calls_the_given_command.
push str.DirPath_Command
push 0x402c10
push str.DirAndApply
mov ecx, ebp
call fcn.00401720
push str.Executes_command_if_Exp1_is_the_same_as_Exp2_for__or_Exp1_has_Exp2_for___if___is_added_to_the_beging_of_Exp1_it_will_negate_the_result
push str.___Exp1___Exp2_then_Command
push 0x401b70
push 0x40b4a8
mov ecx, ebp
call fcn.00401720
push str.reEvaluates_the_given_command_and_executes_it
push str.Command
push fcn.00401ef0
push str.Eval
mov ecx, ebp
call fcn.00401720
push str.Opens_the_given_log_files_ad_Logs_all_the_commands_in_the_given_file
push str.Filename
push 0x4028a0
push str.StartLogging
mov ecx, ebp
call fcn.00401720
push str.Stops_logging_close_the_file
push 0x40e468
push fcn.00402920
push str.StopLogging
mov ecx, ebp
call fcn.00401720
push str.Waits_for_a_number_of_miliseconds_passed_before_executing_the_next_command
push str.milisconds
push 0x402d70
push str.Sleep
mov ecx, ebp
call fcn.00401720
push str.Shows_the_given_bitmap_for_the_given_time_number_on_the_screen
push str.milisconds__BitmapPath
push 0x402e40
push str.Splash
mov ecx, ebp
call fcn.00401720
mov dword [ebp + 0x54c], str.Generic_command_class_basic_functionality.
mov dword [ebp + 0x404], ebx
mov edx, dword [ebp + 0x404]
mov dword [ebp + edx*8 + 4], ebx
mov eax, dword [ebp + 0x404]
mov dword [ebp + eax*8 + 8], ebx
mov ecx, dword [ebp + 0x404]
inc ecx
mov eax, ecx
mov dword [ebp + 0x404], ecx
cmp eax, 0x80
jl 0x4012f5
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x2c]
mov ecx, ebp
push edx
push str.windir
call fcn.004018f0
lea eax, [esp + 0x2c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x2c]
push ecx
push str.sysdir
mov ecx, ebp
call fcn.004018f0
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.00402d30
add esp, 8
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
push str.syswow64dir
call fcn.004018f0
lea ecx, [esp + 0x2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x2c]
mov ecx, ebp
push edx
push str.Currentdir
call fcn.004018f0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ebx
lea eax, [esp + 0x30]
push 0x17
push eax
push edi
call esi
lea ecx, [esp + 0x2c]
push ecx
push str.commonprograms
mov ecx, ebp
call fcn.004018f0
push ebx
lea edx, [esp + 0x30]
push 0x19
push edx
push edi
call esi
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
push str.commondesktop
call fcn.004018f0
mov ebx, dword [sym.imp.MSVCRT.dll_getenv]
push str.ALLUSERSPROFILE
call ebx
add esp, 4
mov ecx, ebp
push eax
push str.ALLUSERSPROFILEDir
call fcn.004018f0
push str.USERPROFILE
call ebx
add esp, 4
mov ecx, ebp
push eax
push str.USERPROFILEDir
call fcn.004018f0
push 0
lea ecx, [esp + 0x30]
push 0x26
push ecx
push edi
call esi
lea edx, [esp + 0x2c]
mov ecx, ebp
push edx
push str.ProgramFilesDir
call fcn.004018f0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, eax
and esi, 0xffff
lea eax, [esp + 0x2c]
push esi
push str.Language_Resource__d
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push str.Language_Resource
mov ecx, ebp
call fcn.004018f0
and esi, 0x3ff
lea edx, [esp + 0x2c]
push esi
push str.Language_Resource__d
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
push str.Primary_Language_Resource
call fcn.004018f0
push 0x40b204
push 0x40b200
mov ecx, ebp
call fcn.004018f0
mov edx, dword [ebp + 0x550]
lea ecx, [esp + 0x2c]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40b034
push 0x40b020
mov ecx, ebp
call fcn.004018f0
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
push str.Current_Parser_Path
call fcn.004018f0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.00401e10
push eax
push str.Current_Parser_Name
mov ecx, ebp
call fcn.004018f0
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [esp + 0x2c]
push ecx
push str.Computer_Name
mov ecx, ebp
call fcn.004018f0
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x2c]
push ecx
push str.User_Name
mov ecx, ebp
call fcn.004018f0
mov dword [esp + 0x130], 0x94
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x2c]
push eax
push 0x40b1b8
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x2c]
mov ecx, ebp
push edx
push str.OS_Major_Version
call fcn.004018f0
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x2c]
push eax
push 0x40b1b8
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x2c]
mov ecx, ebp
push edx
push str.OS_Minor_Version
call fcn.004018f0
mov eax, dword [esp + 0x140]
mov dword [ebp + 0x560], 0
dec eax
pop edi
je 0x40161b
dec eax
jne 0x401669
push str.ControlClass
push str.DriverBaseRegPath
mov ecx, ebp
call fcn.004018f0
mov eax, dword [esp + 0x130]
cmp eax, 5
jne 0x40160f
mov eax, dword [esp + 0x134]
sub eax, 0
je 0x401608
dec eax
je 0x401601
dec eax
mov ecx, ebp
je 0x4015fa
push str.Unknown_WIN32_NT5
jmp 0x40165f
push str.WinServer2003Family
jmp 0x40165f
push str.WinXP
jmp 0x40165d
push str.Win2K
jmp 0x40165d
cmp eax, 4
jne 0x401669
push str.WinNT4
jmp 0x40165d
push str.ServicesClass
push str.DriverBaseRegPath
mov ecx, ebp
call fcn.004018f0
mov eax, dword [esp + 0x134]
test eax, eax
je 0x401658
cmp eax, 0xa
je 0x401651
cmp eax, 0x5a
mov ecx, ebp
je 0x40164a
push str.Unknown_WIN32_Windows
jmp 0x40165f
push str.WinME
jmp 0x40165f
push str.Win98
jmp 0x40165d
push str.Win95
mov ecx, ebp
push 0x40b0e8
call fcn.004018f0
push str.I386
push str.Platform
mov ecx, ebp
call fcn.004018f0
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x5b4
ret 0xc