joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487860
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0cfa
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x487897
cmp dword [ebp + 0xc], 0
jne 0x48789e
xor eax, eax
jmp 0x487a23
lea ecx, [ebp - 0x47c]
call fcn.004097c0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
jne 0x4878e1
mov eax, dword [ebp + 8]
push eax
push 0x4cc664
lea ecx, [ebp - 0x47c]
push ecx
call fcn.00409d70
add esp, 0xc
jmp 0x4878f9
mov edx, dword [ebp + 8]
push edx
push str._sdesktop.ini
lea eax, [ebp - 0x47c]
push eax
call fcn.00409d70
add esp, 0xc
lea ecx, [ebp - 0x47c]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x400
lea ecx, [ebp - 0x474]
push ecx
push 0x4cc6a0
push 0x4cc6a4
push 0x4cc6b8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x47c]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x64
lea edx, [ebp - 0x74]
push edx
push 0x4cc6d8
push 0x4cc6dc
push 0x4cc6f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 0x475], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x48797b
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x487982
mov byte [ebp - 0x475], 1
mov dword [ebp - 0x480], 1
movzx ecx, byte [ebp - 0x475]
test ecx, ecx
je 0x4879ff
lea ecx, [ebp - 0x47c]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov edx, dword [ebp + 0xc]
push edx
push str.IconFile
push 0x4cc724
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x480], eax
lea ecx, [ebp - 0x47c]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.IconIndex
push str..ShellClassInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and eax, dword [ebp - 0x480]
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderW]
and eax, dword [ebp - 0x480]
mov dword [ebp - 0x480], eax
mov edx, dword [ebp - 0x480]
mov dword [ebp - 0x484], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.00409680
mov eax, dword [ebp - 0x484]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4891e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0f11
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00433ca0
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [ebp + 8]
push edx
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x489368
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x48935b
lea ecx, [ebp - 0x21c]
call fcn.004097c0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
push 0x4cc248
lea eax, [ebp - 0x21c]
push eax
call fcn.00409d70
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x21c]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x48933c
mov dword [ebp - 0x220], 0x208
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp + 0x10]
push edx
push 0x4cc274
lea eax, [ebp - 0x21c]
push eax
call fcn.00409d70
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00419c50
test eax, eax
jne 0x48933c
mov dword [ebp - 0x22c], 1
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00409680
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4897f0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x48981c
xor eax, eax
jmp 0x489879
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x489846
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x489879
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret

Function at 0x489890
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4898b5
xor eax, eax
jmp 0x489980
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 1
push 3
push 1
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x489930
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x489922
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x489920
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x489980
jmp 0x489930
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x489980
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x489967
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x489967
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x489980
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x489e70
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x92c
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x1a
mov esi, 0x4cc158
lea edi, [ebp - 0x204]
rep movsd dword es:[edi], dword [esi]
push 0x196
push 0
lea eax, [ebp - 0x19c]
push eax
call fcn.00433ca0
add esp, 0xc
mov dword [ebp - 0x918], 0
mov dword [ebp - 0x914], 0x12c
mov dword [ebp - 0x928], 7
mov dword [ebp - 0x910], 0xf003f
cmp dword [ebp + 0x10], 0
je 0x489eef
mov ecx, dword [ebp - 0x910]
or ecx, 0x100
mov dword [ebp - 0x910], ecx
jmp 0x489f0a
call sym.Install_adv.exe_int___cdecl_isWow64_void_
test eax, eax
je 0x489f0a
mov edx, dword [ebp - 0x910]
or edx, 0x200
mov dword [ebp - 0x910], edx
lea eax, [ebp - 0x920]
push eax
mov ecx, dword [ebp - 0x910]
push ecx
push 0
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48a0d0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x914]
push ecx
lea edx, [ebp - 0x6b4]
push edx
mov eax, dword [ebp - 0x918]
push eax
mov ecx, dword [ebp - 0x920]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x48a0c3
mov edx, dword [ebp - 0x918]
add edx, 1
mov dword [ebp - 0x918], edx
lea eax, [ebp - 0x6b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x48a09e
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4cc154
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x6b4]
push ecx
lea edx, [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x924]
push eax
mov ecx, dword [ebp - 0x910]
push ecx
push 0
lea edx, [ebp - 0x45c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48a09e
mov dword [ebp - 0x914], 0x12c
push 0x258
push 0
lea ecx, [ebp - 0x90c]
push ecx
call fcn.00433ca0
add esp, 0xc
lea edx, [ebp - 0x914]
push edx
lea eax, [ebp - 0x90c]
push eax
lea ecx, [ebp - 0x928]
push ecx
push 0
push 0x4cc1c0
mov edx, dword [ebp - 0x924]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x924]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x90c]
push ecx
lea ecx, [ebp - 0x91c]
call fcn.004096a0
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x91c]
call fcn.0040f4b0
test eax, eax
jne 0x48a093
mov eax, dword [ebp - 0x920]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x92c], 1
lea ecx, [ebp - 0x91c]
call fcn.00409680
mov eax, dword [ebp - 0x92c]
jmp 0x48a0d2
lea ecx, [ebp - 0x91c]
call fcn.00409680
mov dword [ebp - 0x914], 0x12c
push 0x258
push 0
lea ecx, [ebp - 0x6b4]
push ecx
call fcn.00433ca0
add esp, 0xc
jmp 0x489f33
mov edx, dword [ebp - 0x920]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x48a0f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0f61
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4ec00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004096a0
mov dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00416d70
push eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00412520
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00409680
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48a197
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00409680
mov eax, dword [ebp - 0x2c]
jmp 0x48a288
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
call fcn.004097c0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c]
push edx
push 0x4cc144
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00419af0
mov byte [ebp - 4], 3
push 0x4cc148
lea ecx, [ebp - 0x18]
push ecx
call fcn.00419a70
add esp, 8
movzx edx, al
test edx, edx
je 0x48a257
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00419cc0
lea ecx, [ebp - 0x14]
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
jne 0x48a20b
lea ecx, [ebp - 0x14]
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_CreateFolder_wchar_t_const__
add esp, 4
push 0x4cc14c
lea ecx, [ebp - 0x14]
call fcn.004156b0
lea ecx, [ebp - 0x1c]
push ecx
push 0x4cc150
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x10]
call fcn.00419af0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00409610
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00409680
jmp 0x48a1c3
mov dword [ebp - 0x3c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00409680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00409680
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x48a430
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 3
push 0
push 1
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x48a471
xor eax, eax
jmp 0x48a512
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48a49c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x48a512
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48a4cf
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x48a512
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sym.Install_adv.exe_int___cdecl_ImportCACert_void___int_
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x48a820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x100000
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x48a888
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jge 0x48a850
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
push eax
call fcn.0043ccbf
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x48a874
jmp 0x48a888
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
jmp 0x48a83a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jne 0x48a899
mov dword [ebp - 0x14], 1
jmp 0x48a8a0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x48a8b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x100000
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043f755
add esp, 4
test eax, eax
jne 0x48a920
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x48a920
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x48a8f0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
call fcn.0043f624
add esp, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x48a8ca
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jne 0x48a931
mov dword [ebp - 0x14], 1
jmp 0x48a938
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x48aa10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48aa2b
xor eax, eax
jmp 0x48aab7
mov ecx, dword [ebp + 0x14]
push ecx
call sym.Install_adv.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call fcn.0047ac4d
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
call sym.Install_adv.exe_int___cdecl_NsReadFile_wchar_t_const___void___unsigned_long_int_
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48aa82
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0047ac48
add esp, 4
xor eax, eax
jmp 0x48aab7
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0047ac48
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x48aac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48aafb
xor eax, eax
jmp 0x48abb6
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48ab19
xor eax, eax
jmp 0x48abb6
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x48ab4b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x48abb6
mov eax, dword [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48ab64
jmp 0x48aba9
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00434120
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x48abc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48abf3
xor eax, eax
jmp 0x48ac63
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48ac0e
xor eax, eax
jmp 0x48ac63
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48ac40
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x48ac63
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00434120
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x48ac70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48aca3
xor eax, eax
jmp 0x48ad13
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48acbe
xor eax, eax
jmp 0x48ad13
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48acf0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x48ad13
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call sym.Install_adv.exe_int___cdecl_NsWriteFile_wchar_t_const___void___unsigned_long_int_
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov esp, ebp
pop ebp
ret