joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46245e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x48370c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc28
call fcn.0040e76b
add esp, 4
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x404499
push 0
push str.Resouse_font1.fnt
mov ecx, eax
call fcn.0040b3e0
jmp 0x40449b
xor eax, eax
push 0xfffe2556
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x484cc8], eax
call fcn.0040b340
fld1
mov eax, dword [0x484cc8]
fstp dword [eax + 0xc08]
push 0xff
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x464144
lea edx, [ebp - 0x110]
push 0x100
push edx
call fcn.0040f970
fld dword [0x464140]
add esp, 8
lea eax, [ebp - 0x110]
fstp dword [esp]
push eax
call fcn.00402b10
add esp, 8
mov dword [0x4851c0], eax
mov edx, dword [eax]
push 0xffffffffffffffff
mov ecx, eax
mov eax, dword [edx + 0x10]
push 0xfffe2556
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e729
mov esp, ebp
pop ebp
ret

Function at 0x404ff0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46256b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48370c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040e2f1
push 4
mov dword [ebp - 4], 0
call fcn.0040e76b
mov edi, eax
add esp, 4
test edi, edi
je 0x405070
call fcn.0040dfaf
mov dword [edi], eax
call fcn.0040dd6e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040dca3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405066
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040dccb
jmp 0x405072
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462688
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48370c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x407101
cmp byte [edi + 0x49], bl
je 0x407101
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4070f5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x407055
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40706d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x407096
dec eax
je 0x40709a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4070f0
jmp 0x4070fc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4070aa
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4070d3
cmp ebx, 0x10
jae 0x4070b9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00410444
add esp, 0x10
cmp esi, eax
jne 0x4070ed
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4070f9
test esi, esi
jne 0x407061
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406790
jmp 0x40705b
lea ecx, [ebp - 0x2c]
call fcn.004014d0
xor al, al
jmp 0x407103
lea ecx, [ebp - 0x2c]
call fcn.004014d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e729
mov esp, ebp
pop ebp
ret
Function at 0x408ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4628ac
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x48370c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.0040ec20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408b50
sub eax, esi
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x130]
call fcn.00406920
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x188], 0x5c
call fcn.00404910
push eax
push ebx
lea ecx, [ebp - 0x184]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00407a10
push 0x4643bc
push eax
lea edx, [ebp - 0x168]
push edx
mov byte [ebp - 4], 1
call fcn.004084d0
push str.ip.txt
push eax
lea eax, [ebp - 0x14c]
push eax
mov byte [ebp - 4], 2
call fcn.004084d0
add esp, 0x18
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 3
call fcn.00407e10
mov edi, 0x10
cmp dword [ebp - 0x138], edi
jb 0x408bfb
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040e597
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x154], edi
jb 0x408c29
mov edx, dword [ebp - 0x168]
push edx
call fcn.0040e597
add esp, 4
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x170], edi
jb 0x408c52
mov eax, dword [ebp - 0x184]
push eax
call fcn.0040e597
add esp, 4
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], edi
jae 0x408c66
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x114]
push 0x104
push ecx
call fcn.0040f9dd
push 0x4643f8
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x18c]
push eax
call fcn.00410e47
mov eax, dword [ebp - 0x18c]
add esp, 0x18
cmp eax, ebx
jne 0x408cb8
cmp dword [ebp - 0x11c], edi
jb 0x408cb4
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.0040e597
add esp, 4
xor al, al
jmp 0x408d1d
push 2
push ebx
push eax
call fcn.00410cf8
mov edx, dword [ebp - 0x18c]
push edx
call fcn.00410c09
mov esi, eax
mov eax, dword [ebp - 0x18c]
push eax
call fcn.004109b7
mov ecx, dword [ebp - 0x18c]
push ecx
push esi
push 1
push 0x484d78
call fcn.0041099a
mov edx, dword [ebp - 0x18c]
push edx
mov byte [eax + 0x484d78], bl
call fcn.004106dc
add esp, 0x28
cmp dword [ebp - 0x11c], edi
jb 0x408d1b
mov eax, dword [ebp - 0x130]
push eax
call fcn.0040e597
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e729
mov esp, ebp
pop ebp
ret
Function at 0x40e729
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48370c]
jne 0x40e733
repz ret
jmp fcn.004143e1

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x410eb5
call fcn.00416044
mov dword [eax], esi
call fcn.00416031
push 0x16
pop esi
mov dword [eax], esi
call fcn.00416204
mov eax, esi
jmp 0x410f0a
test dword [ebp + 0xc], 0xfffffff9
jne 0x410e9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416057
pop ecx
call fcn.00416031
mov eax, dword [eax]
jmp 0x410f0a
test al, 0x10
jne 0x410f08
test al, 1
je 0x410f08
test byte [ebp + 0xc], 2
je 0x410f08
call fcn.00416044
mov dword [eax], 5
call fcn.00416031
mov dword [eax], 0xd
jmp 0x410ed9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x420ec7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48370c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004151f6
and dword [ebp - 0x14], 0
cmp dword [0x48682c], 0
mov dword [ebp - 0x18], eax
jne 0x420f7a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421022
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x421022
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x48682c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x486830], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x486834], eax
call edi
push eax
call esi
mov dword [0x48683c], eax
test eax, eax
je 0x420f7a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x486838], eax
mov eax, dword [0x486838]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x420fd3
cmp dword [0x48683c], ecx
je 0x420fd3
push eax
call esi
push dword [0x48683c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420fd3
test ebx, ebx
je 0x420fd3
call edi
test eax, eax
je 0x420fca
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x420fca
test byte [ebp - 8], 1
jne 0x420fd3
or dword [ebp + 0x10], 0x200000
jmp 0x421006
mov eax, dword [0x486830]
cmp eax, dword [ebp - 0x18]
je 0x421006
push eax
call esi
test eax, eax
je 0x421006
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x421006
mov eax, dword [0x486834]
cmp eax, dword [ebp - 0x18]
je 0x421006
push eax
call esi
test eax, eax
je 0x421006
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48682c]
call esi
test eax, eax
je 0x421022
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x421024
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e729
leave
ret
Function at 0x43d010
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [ecx]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
movzx edx, word [eax]
mov eax, dword [esp + 0x14]
sub eax, ebx
cmp ebp, eax
mov dword [esp + 0x18], ebx
jbe 0x43d036
mov ebp, eax
xor eax, eax
test ebp, ebp
jbe 0x43d074
sub ebx, esi
mov eax, ebp
mov dword [esp + 0x14], ebp
push edi
movzx edi, byte [ebx + esi]
mov ecx, edx
shr ecx, 8
xor ecx, edi
add edi, edx
imul edi, edi, 0x3193
mov edx, 0x58bf
sub edx, edi
and edx, 0xffff
mov byte [esi], cl
inc esi
dec eax
jne 0x43d045
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop edi
mov ecx, dword [esp + 0x10]
add ebx, ebp
mov dword [ecx], ebx
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
mov word [ecx], dx
pop ebx
ret
Function at 0x401a50
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
mov eax, dword [0x4243c0]
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_FindClose]
pop ebx
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040b9d2
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]
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 [0x4243c0]
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.0040b9d2
add esp, 0x10c
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 SysReAllocStringLen
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 [0x4299f0], 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 [0x4299f4], eax
jne 0x403c57
mov edx, dword [0x4299f0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4299f0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov dword [0x4299f0], edi
pop edi
add esp, 0xc
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4299f4]
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 [0x4299ec], eax
jne 0x403cb8
mov edx, dword [0x4299f4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [0x4299f0]
push eax
mov dword [0x4299f4], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x4299f0]
push ecx
call esi
pop ebx
pop esi
mov dword [0x4299f0], 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, 0x4299f8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x403ce8
mov ecx, dword [0x4299ec]
mov eax, dword [ecx]
mov edx, dword [0x4299f0]
mov dword [0x424240], 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.0040bd90
mov eax, dword [0x4243c0]
xor eax, esp
mov dword [esp + 0x1410], eax
cmp dword [0x424240], 0xffffffff
je 0x403ec8
mov eax, dword [0x4299f0]
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.0040b9bb
add esp, 0xc
lea ecx, [esp + 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x41b914
push str.C:TempNVInstaller.log
call fcn.0040bd5d
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 [0x424240]
push edx
push 0x4299f8
lea eax, [esp + 0x1c]
push eax
push str._s____s__d___
push edi
call fcn.0040bb4a
add esp, 0x14
mov ecx, dword [0x4299ec]
push esi
xor esi, esi
cmp dword [ecx + 4], esi
jle 0x403e9c
jmp 0x403e80
push edi
push 0x41b8d8
call fcn.0040c965
mov edx, dword [0x4299ec]
add esi, 1
add esp, 8
cmp esi, dword [edx + 4]
jl 0x403e80
lea eax, [esp + 0x418]
push edi
push eax
call fcn.0040c965
push edi
call fcn.0040c909
push edi
call fcn.0040bace
add esp, 0x10
pop esi
mov ecx, dword [0x4299f0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov ecx, dword [esp + 0x1410]
xor ecx, esp
call fcn.0040b9d2
add esp, 0x1414
ret
Function at 0x403ee0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2024
call fcn.0040bd90
mov eax, dword [0x4243c0]
xor eax, esp
mov dword [esp + 0x2020], eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push SysReAllocStringLen
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040b6
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.PendingFileRenameOperations
push eax
mov dword [esp + 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4040ab
mov ecx, dword [esp + 4]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1028]
push eax
call fcn.0040cce0
lea ecx, [esp + 0x102c]
push ecx
call fcn.0040cc75
mov edx, dword [str.nvuninst.exe]
mov eax, dword [0x41b92c]
mov ecx, dword [0x41b930]
mov dword [esp + 0x20], edx
mov dl, byte [0x41b934]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov byte [esp + 0x2c], dl
add esp, 0x10
mov dword [esp + 0x18], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403fa5
push ebp
sub eax, edx
push edi
mov edi, eax
mov eax, dword [esp + 0xc]
xor ebp, ebp
sub eax, edi
mov byte [esp + 0xb], cl
mov dword [esp + 0x14], eax
je 0x4040a9
push ebx
push esi
lea esp, [esp]
cmp edi, 4
mov eax, edi
lea ecx, [esp + 0x20]
lea edx, [esp + ebp + 0x1030]
jb 0x403ff6
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x403ffa
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x403fe2
test eax, eax
je 0x404057
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x404049
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x404057
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x404049
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x404057
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x404049
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x404057
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x404057
test esi, esi
mov eax, 1
jg 0x404059
or eax, 0xffffffff
jmp 0x404059
xor eax, eax
test eax, eax
jne 0x404075
push edi
lea ecx, [esp + ebp + 0x34]
push str.nvuninst.ex_
push ecx
call fcn.0040cce0
add esp, 0xc
mov byte [esp + 0x13], 1
add ebp, 1
cmp ebp, dword [esp + 0x1c]
jb 0x403fd0
cmp byte [esp + 0x13], 0
pop esi
pop ebx
je 0x4040a9
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
push 7
push 0
push str.PendingFileRenameOperations
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebp
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2020]
xor ecx, esp
call fcn.0040b9d2
add esp, 0x2024
ret