joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4842a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x4842c7
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp + 0xc]
push edx
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4842ee
mov eax, dword [ebp - 0xc]
jmp 0x4843de
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x484310
mov eax, dword [ebp - 0xc]
jmp 0x4843de
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x484335
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
jmp 0x4843de
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x484362
jmp 0x4843d1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00434120
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4843c7
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00414ca0
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x484ef0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0a66
mov eax, dword fs:[0]
push eax
sub esp, 0x270
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 - 0x27c], ecx
push 0x4cbc8c
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043ce99
add esp, 8
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x268]
call fcn.004096a0
mov dword [ebp - 4], 0
push 0x4cbc90
lea ecx, [ebp - 0x268]
call fcn.004156b0
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x268]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
jne 0x484faa
mov byte [ebp - 0x261], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00409680
mov al, byte [ebp - 0x261]
jmp 0x485063
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0x10
je 0x484fc1
jmp 0x484fc3
jmp 0x485019
lea ecx, [ebp - 0x26c]
call fcn.004097c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x4cbc98
lea eax, [ebp - 0x26c]
push eax
call fcn.00409d70
add esp, 0x10
lea ecx, [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x274]
push edx
mov ecx, dword [ebp - 0x27c]
call sym.Install_adv.exe_private:_void___thiscall_CNsSkin::WriteSkin_struct__iobuf___class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.00409680
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x484faa
mov edx, dword [ebp - 0x274]
push edx
call fcn.0043cf8f
add esp, 4
mov byte [ebp - 0x262], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00409680
mov al, byte [ebp - 0x262]
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 8
Function at 0x485080
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0a9e
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
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 - 0x84], ecx
mov dword [ebp - 0x88], 0
push 0
push 0x80
push 3
push 0
push 1
push bind
mov ecx, dword [ebp + 0xc]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x4850e7
jmp 0x485222
push 0
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x64]
call fcn.004097c0
mov dword [ebp - 4], 0
push 0x5c
mov ecx, dword [ebp + 0xc]
call fcn.00416d70
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
push 0x2e
mov ecx, dword [ebp + 0xc]
call fcn.00416dc0
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x54], 0
jle 0x485170
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x54]
jle 0x485170
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x74]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004126b0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00409610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00409680
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0047ac4d
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x7c], 0
push 0
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.00433ca0
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x64]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
push eax
push 1
push 0x40
lea ecx, [ebp - 0x50]
push ecx
call fcn.0043ccbf
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x5c]
push eax
push 1
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0043ccbf
add esp, 0x10
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
push eax
call fcn.0047ac48
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00409680
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 8
Function at 0x485240
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x48525a
mov ecx, dword [ebp - 4]
call sym.Install_adv.exe_public:_void___thiscall_CNsSkin::FreeSkin_void_
cmp dword [ebp + 8], 0
je 0x48526c
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call sym.Install_adv.exe_public:_void___thiscall_CNsSkin::SetSkinName_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push bind
mov ecx, dword [ebp - 4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x48529a
xor al, al
jmp 0x485303
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x485ba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 8]
call sym.Install_adv.exe_private:_struct_tagNsTimer____thiscall_CNsThread::AddTimer_struct_tagNsTimer__
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x485be5
jmp 0x485c0a
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push sym.Install_adv.exe_private:_static_unsigned_int___stdcall_CNsThread::TimerThread_void__
push 0
push 0
call fcn.0043c9f4
add esp, 0x18
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x14], edx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x485db0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x102
jne 0x485ddf
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8
Function at 0x485e80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call fcn.0043c9f4
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x485ebe
cmp dword [ebp - 4], 0
je 0x485ebe
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x485ec1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x486460
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0xf003f
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x486481
mov ecx, dword [ebp - 4]
or ecx, 0x100
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
push str.RegDeleteKeyExW
push 0x4cca44
call sym.Install_adv.exe_bool___cdecl_NsGetProcAddr_wchar_t_const___char_const___void___
add esp, 0xc
movzx eax, al
test eax, eax
je 0x4864c6
cmp dword [ebp - 8], 0
je 0x4864c4
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 8]
test eax, eax
jne 0x4864c4
mov al, 1
jmp 0x4864de
jmp 0x4864dc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4864dc
mov al, 1
jmp 0x4864de
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x486690
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0bd2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4ec00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4866c8
mov eax, 1
jmp 0x486741
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48673c
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x10]
call fcn.004096a0
mov dword [ebp - 4], 0
push str..bak
lea ecx, [ebp - 0x10]
call fcn.004156b0
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 0x486718
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.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0043fa9b
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00409680
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x486750
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0bf5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4ec00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4867f5
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4867f5
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.004096a0
mov dword [ebp - 4], 0
push 0x4cc974
lea ecx, [ebp - 0x10]
call fcn.004156b0
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 0x4867d1
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.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043fa9b
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00409680
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x486820
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push str.SeShutdownPrivilege
call sym.Install_adv.exe_int___cdecl_SetPrivilege_wchar_t_const___int_
add esp, 8
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
je 0x486849
mov eax, dword [ebp - 4]
or eax, 4
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x486860
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0x4cc9d8
call sym.Install_adv.exe_int___cdecl_SetPrivilege_wchar_t_const___int_
add esp, 8
mov dword [ebp - 4], 2
cmp dword [ebp + 8], 0
je 0x486889
mov eax, dword [ebp - 4]
or eax, 4
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4868a0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0x4cc94c
call sym.Install_adv.exe_int___cdecl_SetPrivilege_wchar_t_const___int_
add esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4868c9
mov eax, dword [ebp - 4]
or eax, 4
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4868e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sym.Install_adv.exe_int___cdecl_isWin7_void_
test eax, eax
jne 0x4868f3
xor eax, eax
jmp 0x48694a
push 0x4cc9d0
mov eax, dword [ebp + 8]
push eax
call fcn.0043ce99
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x486911
xor eax, eax
jmp 0x48694a
push 0
push 0x15
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043fa80
add esp, 0xc
mov byte [ebp - 1], 0x20
mov edx, dword [ebp - 8]
push edx
push 1
push 1
lea eax, [ebp - 1]
push eax
call fcn.0043ccbf
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043cf8f
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x486d60
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x288
push 0x288
call fcn.0043b36e
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x486d9b
xor eax, eax
jmp 0x486ed3
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x486dd6
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043a4c7
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
call fcn.0043b36e
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x486dd6
xor eax, eax
jmp 0x486ed3
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x486ec4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
jmp 0x486dfc
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x486ec4
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x1a0], 6
je 0x486e14
jmp 0x486df4
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x190], 6
je 0x486e22
jmp 0x486df4
mov edx, 1
imul eax, edx, 5
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + eax + 0x194]
push edx
mov eax, 1
shl eax, 2
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + eax + 0x194]
push edx
mov eax, 1
imul ecx, eax, 3
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + ecx + 0x194]
push eax
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + ecx + 0x194]
push eax
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + ecx + 0x194]
push eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + edx + 0x194]
push ecx
push 0x4cc92c
lea edx, [ebp - 0x24]
push edx
call fcn.0041d3b0
add esp, 0x20
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.004195d0
mov dword [ebp - 0x34], 1
jmp 0x486ec4
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043a4c7
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x487010
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0c56
mov eax, dword fs:[0]
push eax
sub esp, 0x158
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 - 0x140], 0
lea ecx, [ebp - 0x28]
call fcn.004197c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c], 0x114
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x138], 5
jne 0x48708f
cmp dword [ebp - 0x134], 0
jne 0x48708f
push str.Windows2000
lea ecx, [ebp - 0x28]
call fcn.004195d0
jmp 0x487135
cmp dword [ebp - 0x138], 5
jne 0x4870b3
cmp dword [ebp - 0x134], 1
jne 0x4870b3
push str.WindowsXP
lea ecx, [ebp - 0x28]
call fcn.004195d0
jmp 0x487135
cmp dword [ebp - 0x138], 6
jne 0x4870d4
cmp dword [ebp - 0x134], 0
jne 0x4870d4
push str.Windows2003
lea ecx, [ebp - 0x28]
call fcn.004195d0
jmp 0x487135
cmp dword [ebp - 0x138], 5
jne 0x4870f5
cmp dword [ebp - 0x134], 2
jne 0x4870f5
push str.windowsvista
lea ecx, [ebp - 0x28]
call fcn.004195d0
jmp 0x487135
cmp dword [ebp - 0x138], 6
jne 0x487116
cmp dword [ebp - 0x134], 1
jne 0x487116
push str.windows7
lea ecx, [ebp - 0x28]
call fcn.004195d0
jmp 0x487135
cmp dword [ebp - 0x138], 6
jne 0x487135
cmp dword [ebp - 0x134], 2
jne 0x487135
push str.windows10
lea ecx, [ebp - 0x28]
call fcn.004195d0
lea ecx, [ebp - 0x164]
push ecx
call fcn.004871c0
add esp, 4
movzx edx, word [ebp - 0x164]
cmp edx, 6
je 0x48715c
movzx eax, word [ebp - 0x164]
cmp eax, 9
jne 0x48716b
push str._x64
lea ecx, [ebp - 0x28]
call fcn.004195b0
jmp 0x487178
push str._x86
lea ecx, [ebp - 0x28]
call fcn.004195b0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004196d0
mov edx, dword [ebp - 0x140]
or edx, 1
mov dword [ebp - 0x140], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004195f0
mov eax, dword [ebp + 8]
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 0x4876a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00433ca0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._at.exe
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x487702
xor eax, eax
jmp 0x48771f
push 0
push 0
push str._delete__yes
lea ecx, [ebp - 0x20c]
push ecx
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret

Function at 0x487730
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0cc7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00433ca0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4cc778
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4877ad
xor eax, eax
jmp 0x487840
lea ecx, [ebp - 0x21c]
call fcn.004097c0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x4877e3
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s__every:m_t_w_th_f_s_su___s_
lea eax, [ebp - 0x21c]
push eax
call fcn.00409d70
add esp, 0x10
jmp 0x4877ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x4cc7c8
lea eax, [ebp - 0x21c]
push eax
call fcn.00409d70
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x21c]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x218]
push ecx
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
mov dword [ebp - 0x220], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00409680
mov eax, dword [ebp - 0x220]
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