joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b590
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a99ff
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4e100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48b5d8
xor eax, eax
xor edx, edx
jmp 0x48b73e
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
cmp dword [ebp - 0x1c], 3
jne 0x48b617
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x48b612
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
sbb eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
jmp 0x48b738
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00418e50
mov byte [ebp - 4], 1
push 0x17
push 0
push 0x4c8f84
lea ecx, [ebp - 0x18]
call fcn.00418e70
lea ecx, [ebp - 0x14]
call fcn.00418e50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00418e00
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x34]
call fcn.00418930
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00418e30
push eax
mov ecx, dword [ebp - 0x30]
call fcn.004189f0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [eax + 0x54]
call ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004189d0
lea ecx, [ebp - 0x70]
call fcn.00418b90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00418e00
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [eax + 0x60]
call ecx
lea ecx, [ebp - 0x70]
call fcn.00418bb0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00418c90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00418ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00418ce0
jmp 0x48b722
mov dword [ebp - 4], 0xffffffff
jmp 0x48b732
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
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 0x48bad0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x4c3cb0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x48bb01
xor eax, eax
jmp 0x48bc5b
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047912d
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48bb33
xor eax, eax
jmp 0x48bc5b
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x48bb64
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00479128
add esp, 4
xor eax, eax
jmp 0x48bc5b
mov dword [ebp - 0x18], 0x34
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x4c3cb4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x48bc44
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x4c3cb8
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x48bc44
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push str._d._d._d._d
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00479128
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x48beb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.004307d0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x4c3c48
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x108], 2
jne 0x48bfdb
cmp dword [ebp - 0x114], 5
jne 0x48bf32
cmp dword [ebp - 0x110], 0
jne 0x48bf32
push str.Win2000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48bfd9
cmp dword [ebp - 0x114], 5
jne 0x48bf58
cmp dword [ebp - 0x110], 0
jbe 0x48bf58
push 0x4c3c60
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48bfd9
cmp dword [ebp - 0x114], 6
jne 0x48bf7b
cmp dword [ebp - 0x110], 0
jne 0x48bf7b
push str.Vista
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48bfd9
cmp dword [ebp - 0x114], 6
jne 0x48bf9e
cmp dword [ebp - 0x110], 1
jne 0x48bf9e
push str.Win7
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48bfd9
cmp dword [ebp - 0x114], 6
jne 0x48bfc1
cmp dword [ebp - 0x110], 2
jb 0x48bfc1
push str.Win8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48bfd9
cmp dword [ebp - 0x114], 0xa
jne 0x48bfd9
push str.Win10
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48c026
cmp dword [ebp - 0x108], 1
jne 0x48c026
cmp dword [ebp - 0x114], 4
jne 0x48c005
cmp dword [ebp - 0x110], 0x5a
jae 0x48c005
push 0x4c3c98
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x114], 4
jne 0x48c026
cmp dword [ebp - 0x110], 0x5a
jb 0x48c026
push 0x4c3ca0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret

Function at 0x48c040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.004307d0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x48c0a2
cmp dword [ebp - 0x114], 6
jb 0x48c0a2
cmp dword [ebp - 0x110], 2
jb 0x48c0a2
mov eax, 1
jmp 0x48c0a4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret

Function at 0x48c0c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.004307d0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x48c119
cmp dword [ebp - 0x114], 6
jb 0x48c119
mov eax, 1
jmp 0x48c11b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret
Function at 0x48c1a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x24]
cmp ecx, 9
je 0x48c1c2
movzx edx, word [ebp - 0x24]
cmp edx, 6
jne 0x48c1cb
mov eax, 1
jmp 0x48c1cd
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x48c2d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x48c342
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, dword [ebp + 0xc]
jg 0x48c319
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48c32b
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
jmp 0x48c344
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x48c350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48c381
xor eax, eax
jmp 0x48c3f1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48c39c
xor eax, eax
jmp 0x48c3f1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48c3ce
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x48c3f1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00430c50
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x48c400
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48c427
xor eax, eax
xor edx, edx
jmp 0x48c4bc
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0043ba4f
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x48c448
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
jmp 0x48c4bc
xorps xmm0, xmm0
movlpd qword [ebp - 0x44], xmm0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
je 0x48c4b8
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
shl eax, 0x20
xor ecx, ecx
add eax, dword [ebp - 0x44]
adc ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jmp 0x48c4bc
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret
Function at 0x48e3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.004307d0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, word [ebp + eax*2 - 0x212]
cmp eax, 0x5c
jne 0x48e40f
push str.nslicense.txt
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x48e421
push str._nslicense.txt
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x210]
push eax
push 0x4c56c8
push 0x1f55
call sym.Install_adv.exe_int___cdecl_NsResSave_int__wchar_t_const___wchar_t_const__
add esp, 0xc
push 5
push 0
lea ecx, [ebp - 0x210]
push ecx
push str.notepad.exe
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret
Function at 0x48e7e0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9cf6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4e100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x48e81b
jmp 0x48e8a8
mov ecx, dword [ebp - 0x14]
add ecx, 0x16b0
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.00409500
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x16b0]
push eax
push 0x4c54f0
lea ecx, [ebp - 0x10]
push ecx
call fcn.00409ab0
add esp, 0x10
push str._s__S__SILENT__silent__quiet__noreboot__verysilent__sp__norestart__q__qn__SilentInstall
lea ecx, [ebp - 0x18]
call fcn.004093e0
mov byte [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x18]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x10]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004093c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x48feb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9ef8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4e100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 0x1348
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x48fef0
jmp 0x48ff9e
lea ecx, [ebp - 0x10]
call fcn.00409500
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x1348
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x16b0]
push eax
push 0x4c51d4
lea ecx, [ebp - 0x10]
push ecx
call fcn.00409ab0
add esp, 0x10
lea ecx, [ebp - 0x10]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ff8f
lea ecx, [ebp - 0x10]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x14]
call sym.Install_adv.exe_public:_bool___thiscall_CNsInstaller::ReplaceRegPath_wchar_t_const__
lea ecx, [ebp - 0x18]
call fcn.00409500
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
push edx
push str._s___s_
lea eax, [ebp - 0x18]
push eax
call fcn.00409ab0
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x18]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push str.regedit.exe
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004093c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x491580
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa01a
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
push str.http:__hofosoft.cn_Components_
lea ecx, [ebp - 0x224]
call fcn.004093e0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x224]
call fcn.004155d0
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004307d0
add esp, 0xc
push 0
push 0x1c
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4c4cbc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x21c]
push ecx
call sym.Install_adv.exe_int___cdecl_CreateDirTree_wchar_t_const__
add esp, 4
push 0x4c4bfc
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x491662
push 0x4c4cd4
call sym.Install_adv.exe_public:_static_class_CNsProcess____cdecl_CNsProcess::Instance_void_
mov ecx, eax
call sym.Install_adv.exe_public:_void___thiscall_CNsProcess::KillProcess_wchar_t_const__
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x220]
cmp dword [edx + 4], 0
je 0x491692
push 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x1614]
push ecx
push 0x7ea
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x220]
mov byte [ecx + 0x160d], 1
push 1
push sym.Install_adv.exe_private:_static_void___stdcall_CNsInstaller::DownNotify_int__wchar_t_const___long_long___int64___long_long___int64___double_
push 0
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x224]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_public:_static_class_CNsDownload____cdecl_CNsDownload::Instance_void_
mov ecx, eax
call sym.Install_adv.exe_public:_int___thiscall_CNsDownload::GetHttpFile_wchar_t_const___wchar_t_const___int__void____stdcall___int__wchar_t_const___long_long___int64___long_long___int64___double___int_
mov eax, dword [ebp - 0x220]
movzx ecx, byte [eax + 0x160e]
test ecx, ecx
je 0x4916e5
push 0
mov ecx, dword [ebp - 0x220]
call sym.Install_adv.exe_private:_void___thiscall_CNsInstaller::DoSetup_wchar_t_const__
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004093c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret 4
Function at 0x491790
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.004307d0
add esp, 0xc
push 0
push 0x1c
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.hfinstall_nscomponent_setup.exe
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49188b
cmp dword [ebp + 8], 0
je 0x491840
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x491826
push 0
push 1
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
jmp 0x49183e
push 0
push 1
push 0x4c4c6c
lea ecx, [ebp - 0x210]
push ecx
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
jmp 0x49187e
mov edx, dword [ebp - 0x214]
cmp dword [edx + 0x1614], 0xfffffffe
jne 0x491866
push 5
push 1
push 0
lea eax, [ebp - 0x210]
push eax
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
jmp 0x49187e
push 0
push 1
push 0x4c4c74
lea ecx, [ebp - 0x210]
push ecx
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret 4
Function at 0x4919c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
mov ecx, dword [ebp - 0x210]
add ecx, 0x16b0
call fcn.00409530
test eax, eax
jle 0x4919f3
jmp 0x491ae0
mov eax, dword [ebp + 8]
add eax, 0x10cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x491a92
mov ecx, dword [ebp + 8]
add ecx, 0x10cc
push ecx
mov ecx, dword [ebp - 0x210]
add ecx, 0x16b0
call fcn.00409300
mov ecx, dword [ebp - 0x210]
add ecx, 0x16b0
call fcn.00409530
sub eax, 1
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
push edx
mov ecx, dword [ebp - 0x210]
add ecx, 0x16b0
call fcn.0041ff20
movzx eax, ax
cmp eax, 0x5c
jne 0x491a78
movzx ecx, word [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x210]
add ecx, 0x16b0
call fcn.0041fe20
mov edx, dword [ebp - 0x210]
add edx, 0x16b0
push edx
mov ecx, dword [ebp - 0x210]
call sym.Install_adv.exe_private:_void___thiscall_CNsInstaller::ReplaceSysPath_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
jmp 0x491ae0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004307d0
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x4c4a68
mov ecx, dword [ebp - 0x210]
add ecx, 0x16b0
push ecx
call fcn.00409ab0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret 4
Function at 0x4924c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x4924db
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x190]
jge 0x492521
push 8
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.004307d0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 8
lea edx, [ebp - 0x10]
push edx
call fcn.0043bd34
add esp, 0x10
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043c190
add esp, 0xc
jmp 0x4924d2
mov esp, ebp
pop ebp
ret 8