joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c140
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.KERNEL32.dll
push str.WaitForSingleObject
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov al, byte [ebp + 0x20]
mov byte [ebp - 0xc], al
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x1c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push dword [ebp + 0x18]
push eax
push 0x1000c0c7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [ebp + 0x20], eax
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [ebp - 4]
push str.CloseHandle
push ebx
call esi
push eax
call edi
push dword [ebp - 8]
call eax
mov eax, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000c1ca
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.KERNEL32.dll
push str.CreateToolhelp32Snapshot
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
and dword [ebp - 4], 0
push 0
push 2
call eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 8], eax
push ecx
push eax
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000c26b
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x1000c239
mov eax, dword [ebp - 0x128]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000c26b
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x1000c239
mov eax, dword [ebp - 0x128]
mov dword [ebp - 4], eax
push str.CloseHandle
push ebx
call esi
push eax
call edi
push dword [ebp - 8]
call eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000c283
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 2
call eax
mov edi, 0x128
mov ebx, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
push esi
push ebx
mov dword [esi], edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000c2f1
push dword [esp + 0x10]
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
pop ecx
pop ecx
jmp 0x1000c2e8
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000c2f1
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000c2d2
mov eax, dword [esi + 8]
jmp 0x1000c2f3
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x1000c4cb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x1000c51c
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x1000c53a
cmp dword [ebp - 0x98], 5
jne 0x1000c535
cmp dword [ebp - 0x94], 0
jne 0x1000c535
call fcn.1000c35a
jmp 0x1000c53a
call fcn.1000c2f7
pop esi
leave
ret

Function at 0x1000c6e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
push 1
pop eax
xor esi, esi
push str.lla_4.0__compatible_
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_strlen
mov edi, str.Mozi
mov ebx, eax
push edi
call sub.MSVCRT.dll_strlen
lea eax, [ebx + eax + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
push edi
push ebx
call sub.MSVCRT.dll_strcpy
push str.lla_4.0__compatible_
push ebx
call sub.MSVCRT.dll_strcat
add esp, 0x1c
push esi
push esi
push esi
push esi
push ebx
call dword [0x1001bf8c]
mov ebx, eax
cmp ebx, esi
je 0x1000c768
push esi
push 0x80000000
push esi
push esi
push dword [ebp + 8]
push ebx
call dword [0x1001bf88]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x1000c76f
xor al, al
jmp 0x1000c81d
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1000c807
mov edi, 0x400
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x414]
push edi
push eax
push dword [ebp - 8]
call dword [0x1001bf84]
cmp dword [ebp - 0x10], esi
je 0x1000c7c6
cmp word [ebp - 0x414], 0x5a4d
jne 0x1000c7e8
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x414]
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
jbe 0x1000c7eb
jmp 0x1000c790
mov dword [ebp - 0xc], esi
push str.CloseHandle
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp + 8]
call eax
push dword [ebp - 8]
mov edi, dword [0x1001bf80]
call edi
push ebx
call edi
xor eax, eax
cmp dword [ebp - 0xc], esi
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000cad6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
mov esi, ecx
push ebx
push ebx
push ebx
mov dword [esi], 0x100152d4
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.1000c874
test al, al
je 0x1000cb73
cmp byte [0x1001ccdc], bl
jne 0x1000cb73
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x80000000
push 0x1001c35c
push str.32770
push ebx
mov byte [ebp - 0xc], 0x70
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x43
mov byte [ebp - 9], 0x6f
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x69
mov byte [ebp - 5], 0x56
mov byte [ebp - 4], 0x43
mov byte [ebp - 3], bl
call dword [0x1001bf70]
push ebx
push eax
push ebx
push ebx
mov dword [esi + 0x10], eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push 0x50000000
push eax
call dword [sym.imp.MSVCRT.dll__strrev]
pop ecx
push eax
call fcn.10013eff
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1000cf8d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x10014386
call fcn.10013680
sub esp, 0x18
push ebx
push esi
mov esi, ecx
call fcn.1000c874
test al, al
je 0x1000d034
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x1000cfca
call fcn.1000cad6
mov ecx, eax
jmp 0x1000cfcc
xor ecx, ecx
mov eax, dword [esi + 0x124]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x118], ecx
je 0x1000cfee
mov edx, dword [esi + 0x128]
cmp edx, ebx
je 0x1000cfee
push edx
push eax
jmp 0x1000d028
push 0x120
push 0x160
call fcn.1000c90a
cmp al, bl
mov byte [ebp - 0xd], al
jne 0x1000d03b
mov ecx, dword [esi + 0x118]
push 0x90
push 0xb0
call fcn.1000c90a
cmp al, bl
mov byte [ebp - 0xd], al
jne 0x1000d03b
mov ecx, dword [esi + 0x118]
push ebx
push ebx
call fcn.1000c90a
cmp al, bl
mov byte [ebp - 0xd], al
jne 0x1000d03b
xor al, al
jmp 0x1000d0c8
push edi
mov dword [ebp - 0x24], 0x3336324d
mov dword [ebp - 0x20], 0x32335649
mov dword [ebp - 0x1c], 0x3234504d
mov dword [ebp - 0x18], 0x64697663
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x24]
push 0x78
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1000d075
mov dword [eax], 0x100152d8
mov dword [eax + 0x48], ebx
jmp 0x1000d077
xor eax, eax
push dword [edi]
mov ecx, dword [esi + 0x118]
mov dword [esi + 0x11c], eax
push dword [ecx + 8]
mov ecx, eax
call fcn.1000d0d6
test al, al
jne 0x1000d0b7
mov ecx, dword [esi + 0x11c]
cmp ecx, ebx
je 0x1000d0a3
mov eax, dword [ecx]
push 1
call dword [eax]
inc dword [ebp - 0x14]
add edi, 4
cmp dword [ebp - 0x14], 4
mov dword [esi + 0x11c], ebx
jb 0x1000d05e
jmp 0x1000d0c4
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x24]
mov dword [esi + 0x120], eax
mov al, byte [ebp - 0xd]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401a50
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
mov eax, dword [0x4253c0]
xor eax, esp
mov dword [esp + 0x24c], eax
mov eax, dword [esp + 0x258]
push ebp
push esi
mov ebp, ecx
mov ecx, dword [esp + 0x264]
push edi
push str.CommandClass::EnumFiles_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
call fcn.00403da0
mov eax, dword [esp + 0x264]
lea edx, [esp + 0x158]
add esp, 4
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401aa0
lea edx, [esp + 0x154]
push edx
mov ecx, ebp
call fcn.00401300
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401b31
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x12
je 0x401b29
lea edx, [esp + 0x44]
sub esi, edx
lea eax, [esp + 0x44]
mov cl, byte [eax]
mov byte [esi + eax], cl
add eax, 1
test cl, cl
jne 0x401af7
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x15c]
push ecx
mov ecx, ebp
call dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call ebx
cmp eax, 0x12
jne 0x401af3
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ebx
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040bc62
add esp, 0x250
ret 0xc

Function at 0x401b50
Capabilities:
Get common file path

Disassembly:
push str.NvGetSystemWow64Directory_n
call fcn.00403da0
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetSystemWow64DirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
test eax, eax
je 0x401b85
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call eax
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
ret

Function at 0x4023e0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4253c0]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x114]
test esi, esi
push edi
mov edi, ecx
mov eax, esi
jne 0x40240a
mov eax, str.NULL
push eax
push str.CommandClass::NvSetCurrentDirectory__s__n
call fcn.00403da0
add esp, 8
push esi
push str.Current_Script
mov ecx, edi
call fcn.00401c90
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40246b
lea edx, [esp + 0xc]
push edx
mov ecx, edi
call fcn.00401300
mov byte [eax - 1], 0
lea eax, [esp + 0xc]
push eax
push str.Currentdir
mov ecx, edi
call fcn.00401c90
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor ecx, esp
call fcn.0040bc62
add esp, 0x10c
ret 4
Function at 0x402a10
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
push str.CommandClass::RunOnce_n
mov ebx, ecx
call fcn.00403da0
mov esi, dword [esp + 0x14]
add esp, 4
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402b2c
push ebp
push esi
mov ecx, ebx
call fcn.00402900
push str.LeaveBinaries
mov ecx, ebx
call fcn.00401110
test eax, eax
push esi
jne 0x402b1e
push str.Deleting_NVU_file___s__n
call fcn.00403da0
add esp, 8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call ebp
test eax, eax
jne 0x402b2b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x20
jne 0x402b04
push esi
push str.NVU_file___s__couldnt_be_deleted_due_to_Sharing_Violation._n
call fcn.00403da0
push esi
push str.Well_wait___s__to_be_freed_and_get_deleted_for_max._10_secs._n
call fcn.00403da0
push 0xa
push str.nPollTimeoutCount___d_n
call fcn.00403da0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
jmp 0x402ac0
push 0x3e8
call ebx
push esi
call ebp
test eax, eax
push edi
push esi
jne 0x402aee
push str.Deletion_of_NVU_File___s__failed_after__d_seconds._n
call fcn.00403da0
add edi, 1
add esp, 0xc
cmp edi, 0xa
jle 0x402ac0
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
push str.NVU_File___s__deleted_after_polling_for__d_seconds._n
call fcn.00403da0
add esp, 0xc
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
call ebx
push eax
push esi
push str.Failed_to_delete_NVU_file___s__with_error___d__n
call fcn.00403da0
add esp, 0xc
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
push str.Leaving_NVU_file___s__n
call fcn.00403da0
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x403b80
Capabilities:
Check if file exists
Check mutex on windows
Create directory
Get file attributes
Query or enumerate registry value
Read file via mapping

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
push 1
xor edi, edi
push edi
push str.SOFTWARENVIDIA_CorporationInstaller
push SysStringLen
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d15
mov eax, dword [esp + 4]
push esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
push edi
push str.Logging
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x403d14
cmp dword [esp + 0xc], 1
jne 0x403d14
push str.GlobalNVInstallerLogFile
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, edi
mov dword [0x42a9f0], eax
je 0x403d14
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.NVInstallerLogSharedMemory
push 8
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [0x42a9f4], eax
jne 0x403c57
mov edx, dword [0x42a9f0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x42a9f0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov dword [0x42a9f0], edi
pop edi
add esp, 0xc
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x42a9f4]
push edi
push edi
push edi
push 6
cmp eax, 0xb7
push ecx
sete bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [0x42a9ec], eax
jne 0x403cb8
mov edx, dword [0x42a9f4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [0x42a9f0]
push eax
mov dword [0x42a9f4], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x42a9f0]
push ecx
call esi
pop ebx
pop esi
mov dword [0x42a9f0], edi
pop edi
add esp, 0xc
ret
test bl, bl
jne 0x403cc1
mov dword [eax], edi
mov dword [eax + 4], edi
push str.C:Temp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403cdd
push edi
push str.C:Temp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x1c]
mov edx, 0x42a9f8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x403ce8
mov ecx, dword [0x42a9ec]
mov eax, dword [ecx]
mov edx, dword [0x42a9f0]
mov dword [0x425240], eax
add eax, 1
push edx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
pop esi
pop edi
add esp, 0xc
ret
Function at 0x403da0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1414
call fcn.0040c040
mov eax, dword [0x4253c0]
xor eax, esp
mov dword [esp + 0x1410], eax
cmp dword [0x425240], 0xffffffff
je 0x403ec8
mov eax, dword [0x42a9f0]
push edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x141c]
lea ecx, [esp + 0x1420]
push ecx
push edx
lea eax, [esp + 0x41c]
push eax
call fcn.0040bc4b
add esp, 0xc
lea ecx, [esp + 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x41c914
push str.C:TempNVInstaller.log
call fcn.0040c009
mov edi, eax
add esp, 8
test edi, edi
je 0x403eba
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x400
lea eax, [esp + 0x18]
push eax
push str.hh:mm:ss_tt
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
test eax, eax
je 0x403e6d
mov edx, dword [0x425240]
push edx
push 0x42a9f8
lea eax, [esp + 0x1c]
push eax
push str._s____s__d___
push edi
call fcn.0040bdf6
add esp, 0x14
mov ecx, dword [0x42a9ec]
push esi
xor esi, esi
cmp dword [ecx + 4], esi
jle 0x403e9c
jmp 0x403e80
push edi
push 0x41c8d8
call fcn.0040cc15
mov edx, dword [0x42a9ec]
add esi, 1
add esp, 8
cmp esi, dword [edx + 4]
jl 0x403e80
lea eax, [esp + 0x418]
push edi
push eax
call fcn.0040cc15
push edi
call fcn.0040cbb9
push edi
call fcn.0040bd7a
add esp, 0x10
pop esi
mov ecx, dword [0x42a9f0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov ecx, dword [esp + 0x1410]
xor ecx, esp
call fcn.0040bc62
add esp, 0x1414
ret

Function at 0x4041a0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebp
push esi
push str.UninstCommandClass::CheckForUpdate_n
call fcn.00403da0
mov ebp, dword [esp + 0x18]
add esp, 4
lea eax, [esp + 8]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4041d1
pop esi
mov al, 1
pop ebp
add esp, 8
ret 0xc
push ebx
push edi
push esi
xor bl, bl
call fcn.0040b83d
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404224
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push 0x41cd2c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404224
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jb 0x404224
jne 0x404226
mov ecx, dword [edx + 0xc]
cmp ecx, dword [esp + 0x24]
jae 0x404226
mov bl, 1
push edi
call fcn.0040b8a7
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
add esp, 8
ret 0xc

Function at 0x404560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne bl
test bl, bl
mov eax, str.TRUE
jne 0x404581
mov eax, str.FALSE
push eax
push esi
push str.UninstCommandClass::NvFileExists__s____s_n
call fcn.00403da0
add esp, 0xc
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x4045a0
Capabilities:
Move file
Set file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x4253c0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
mov ebp, dword [esp + 0x114]
test ebp, ebp
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, ecx
mov ecx, ebp
jne 0x4045d2
mov ecx, str.NULL
test esi, esi
mov eax, esi
jne 0x4045dd
mov eax, str.NULL
push ecx
push eax
push str.UninstCommandClass::NvReplaceFileOnReboot__s__s__n
call fcn.00403da0
add esp, 0xc
push esi
mov ecx, edi
call fcn.00404560
test al, al
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
jne 0x404619
push esi
call edi
test eax, eax
jne 0x404619
push str.UninstCommandClass::NvReplaceFileOnReboot___File_does_not_exist_n
call fcn.00403da0
add esp, 4
xor al, al
jmp 0x4046e6
push esi
call edi
test eax, eax
je 0x404638
test ebp, ebp
je 0x404638
push str.UninstCommandClass::NvReplaceFileOnReboot___Invaid_path_parameter_instead_of_file_n
call fcn.00403da0
add esp, 4
xor al, al
jmp 0x4046e6
push ebx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call fcn.00414ba6
push eax
call fcn.0040d3b3
call fcn.0040d3c0
push eax
push esi
push str._s_nv_d
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.0040bcec
lea ecx, [esp + 0x2c]
push ecx
push esi
push str.Renaming__s_to__s_n
call fcn.00403da0
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0x28
push 1
lea edx, [esp + 0x14]
push edx
push esi
call edi
cmp eax, 1
sete bl
test bl, bl
mov eax, str.Succeeded
jne 0x4046a4
mov eax, str.Failed
push eax
push esi
push str.UninstCommandClass::NvReplaceFileOnReboot___Rename_of__s__s__n
call fcn.00403da0
add esp, 0xc
test bl, bl
je 0x4046e3
push 4
push ebp
lea eax, [esp + 0x18]
push eax
call edi
cmp eax, 1
sete bl
test bl, bl
mov eax, str.Succeeded
jne 0x4046d5
mov eax, str.Failed
push eax
push str.UninstCommandClass::NvReplaceFileOnReboot____s_n
call fcn.00403da0
add esp, 8
mov al, bl
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040bc62
add esp, 0x108
ret 8
Function at 0x404e00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4253c0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x22c]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x230]
mov dword [esp + 0x14], ecx
push edi
mov ecx, ebx
jne 0x404e3c
mov ecx, str.NULL
test esi, esi
mov eax, esi
jne 0x404e47
mov eax, str.NULL
push ecx
push eax
push str.UninstCommandClass::NvRegEnumAndDeleteSubKeys_HKEY__s__s__n
call fcn.00403da0
lea edx, [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x10], 0
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x404e66
lea edi, [esp + 0x28]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404e80
mov ax, word [0x41cd2c]
mov word [edi], ax
mov eax, ebx
mov ecx, ebx
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404e97
lea edi, [esp + 0x28]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
jmp 0x404eb0
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404eb0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x34]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f97
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404f8c
cmp dword [esp + 0x10], eax
jbe 0x404f8c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, 0xff
lea ebx, [ebx]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x13c]
push edx
add eax, 0xffffffff
push eax
push ecx
mov dword [esp + 0x3c], edi
call esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.00404e00
test eax, eax
jne 0x404f85
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x128]
push ecx
push edx
call ebx
sub dword [esp + 0x10], 1
jne 0x404f30
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bc62
add esp, 0x21c
ret 0xc