joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484700
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.00439103
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x48473e
cmp dword [ebp - 4], 0
je 0x48473e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x484741
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x484cf0
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 0x484d11
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 0x4c49c4
call sym.Install_adv.exe_bool___cdecl_NsGetProcAddr_wchar_t_const___char_const___void___
add esp, 0xc
movzx eax, al
test eax, eax
je 0x484d56
cmp dword [ebp - 8], 0
je 0x484d54
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 0x484d54
mov al, 1
jmp 0x484d6e
jmp 0x484d6c
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 0x484d6c
mov al, 1
jmp 0x484d6e
xor al, al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9502
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e100c]
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 0x484f58
mov eax, 1
jmp 0x484fd1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x484fcc
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x10]
call fcn.004093e0
mov dword [ebp - 4], 0
push str..bak
lea ecx, [ebp - 0x10]
call fcn.004155d0
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 0x484fa8
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.0043c1ab
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004093c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x484fe0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9525
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e100c]
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 0x485085
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x485085
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.004093e0
mov dword [ebp - 4], 0
push 0x4c48f4
lea ecx, [ebp - 0x10]
call fcn.004155d0
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 0x485061
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.0043c1ab
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004093c0
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 0x4850b0
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 0x4850d9
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 0x4850f0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0x4c4958
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 0x485119
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 0x485130
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0x4c48cc
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 0x485159
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 0x485170
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 0x485183
xor eax, eax
jmp 0x4851da
push 0x4c4950
mov eax, dword [ebp + 8]
push eax
call fcn.004395a8
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4851a1
xor eax, eax
jmp 0x4851da
push 0
push 0x15
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043c190
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.004393ce
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043969e
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4855f0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x288
push 0x288
call fcn.00437a7c
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x48562b
xor eax, eax
jmp 0x485763
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x485666
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00436bd5
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
call fcn.00437a7c
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x485666
xor eax, eax
jmp 0x485763
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x485754
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
jmp 0x48568c
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x485754
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x1a0], 6
je 0x4856a4
jmp 0x485684
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x190], 6
je 0x4856b2
jmp 0x485684
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 str._02X__02X__02X__02X__02X__02X
lea edx, [ebp - 0x24]
push edx
call fcn.0041d2d0
add esp, 0x20
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.004194f0
mov dword [ebp - 0x34], 1
jmp 0x485754
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00436bd5
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret
Function at 0x4858a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9586
mov eax, dword fs:[0]
push eax
sub esp, 0x158
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 - 0x140], 0
lea ecx, [ebp - 0x28]
call fcn.004196e0
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 0x48591f
cmp dword [ebp - 0x134], 0
jne 0x48591f
push str.Windows2000
lea ecx, [ebp - 0x28]
call fcn.004194f0
jmp 0x4859c5
cmp dword [ebp - 0x138], 5
jne 0x485943
cmp dword [ebp - 0x134], 1
jne 0x485943
push str.WindowsXP
lea ecx, [ebp - 0x28]
call fcn.004194f0
jmp 0x4859c5
cmp dword [ebp - 0x138], 6
jne 0x485964
cmp dword [ebp - 0x134], 0
jne 0x485964
push str.Windows2003
lea ecx, [ebp - 0x28]
call fcn.004194f0
jmp 0x4859c5
cmp dword [ebp - 0x138], 5
jne 0x485985
cmp dword [ebp - 0x134], 2
jne 0x485985
push str.windowsvista
lea ecx, [ebp - 0x28]
call fcn.004194f0
jmp 0x4859c5
cmp dword [ebp - 0x138], 6
jne 0x4859a6
cmp dword [ebp - 0x134], 1
jne 0x4859a6
push str.windows7
lea ecx, [ebp - 0x28]
call fcn.004194f0
jmp 0x4859c5
cmp dword [ebp - 0x138], 6
jne 0x4859c5
cmp dword [ebp - 0x134], 2
jne 0x4859c5
push str.windows10
lea ecx, [ebp - 0x28]
call fcn.004194f0
lea ecx, [ebp - 0x164]
push ecx
call fcn.00485a50
add esp, 4
movzx edx, word [ebp - 0x164]
cmp edx, 6
je 0x4859ec
movzx eax, word [ebp - 0x164]
cmp eax, 9
jne 0x4859fb
push str._x64
lea ecx, [ebp - 0x28]
call fcn.004194d0
jmp 0x485a08
push str._x86
lea ecx, [ebp - 0x28]
call fcn.004194d0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004195f0
mov edx, dword [ebp - 0x140]
or edx, 1
mov dword [ebp - 0x140], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00419510
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.0042eb1e
mov esp, ebp
pop ebp
ret
Function at 0x485f30
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004307d0
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 0x485f92
xor eax, eax
jmp 0x485faf
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.0042eb1e
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a95f7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4e100c]
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.004307d0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4c46f8
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 0x48603d
xor eax, eax
jmp 0x4860d0
lea ecx, [ebp - 0x21c]
call fcn.00409500
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x486073
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.00409ab0
add esp, 0x10
jmp 0x48608f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x4c4748
lea eax, [ebp - 0x21c]
push eax
call fcn.00409ab0
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.004093c0
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.0042eb1e
mov esp, ebp
pop ebp
ret
Function at 0x4860f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a962a
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4e100c]
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 0x486127
cmp dword [ebp + 0xc], 0
jne 0x48612e
xor eax, eax
jmp 0x4862b3
lea ecx, [ebp - 0x47c]
call fcn.00409500
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 0x486171
mov eax, dword [ebp + 8]
push eax
push 0x4c45e4
lea ecx, [ebp - 0x47c]
push ecx
call fcn.00409ab0
add esp, 0xc
jmp 0x486189
mov edx, dword [ebp + 8]
push edx
push str._sdesktop.ini
lea eax, [ebp - 0x47c]
push eax
call fcn.00409ab0
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 0x4c4620
push 0x4c4624
push 0x4c4638
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 0x4c4658
push 0x4c465c
push 0x4c4670
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 0x48620b
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x486212
mov byte [ebp - 0x475], 1
mov dword [ebp - 0x480], 1
movzx ecx, byte [ebp - 0x475]
test ecx, ecx
je 0x48628f
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 0x4c46a4
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.004093c0
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.0042eb1e
mov esp, ebp
pop ebp
ret
Function at 0x487a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9841
mov eax, dword fs:[0]
push eax
sub esp, 0x220
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 - 0x22c], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004307d0
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [ebp + 8]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x487bf8
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 0x487beb
lea ecx, [ebp - 0x21c]
call fcn.00409500
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
push 0x4c41c8
lea eax, [ebp - 0x21c]
push eax
call fcn.00409ab0
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 SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x487bcc
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 0x4c41f4
lea eax, [ebp - 0x21c]
push eax
call fcn.00409ab0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00419b70
test eax, eax
jne 0x487bcc
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.004093c0
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.0042eb1e
mov esp, ebp
pop ebp
ret
Function at 0x488080
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e100c]
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 0x4880ac
xor eax, eax
jmp 0x488109
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 0x4880d6
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x488109
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.0042eb1e
mov esp, ebp
pop ebp
ret

Function at 0x488120
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 0x488145
xor eax, eax
jmp 0x488210
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 0x4881c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4881b2
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 0x4881b0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x488210
jmp 0x4881c0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x488210
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4881f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x4881f7
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 0x488210
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 0x488700
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 [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x1a
mov esi, 0x4c40d8
lea edi, [ebp - 0x204]
rep movsd dword es:[edi], dword [esi]
push 0x196
push 0
lea eax, [ebp - 0x19c]
push eax
call fcn.004307d0
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 0x48877f
mov ecx, dword [ebp - 0x910]
or ecx, 0x100
mov dword [ebp - 0x910], ecx
jmp 0x48879a
call sym.Install_adv.exe_int___cdecl_isWow64_void_
test eax, eax
je 0x48879a
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 0x488960
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 0x488953
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 0x48892e
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4c40d4
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 0x48892e
mov dword [ebp - 0x914], 0x12c
push 0x258
push 0
lea ecx, [ebp - 0x90c]
push ecx
call fcn.004307d0
add esp, 0xc
lea edx, [ebp - 0x914]
push edx
lea eax, [ebp - 0x90c]
push eax
lea ecx, [ebp - 0x928]
push ecx
push 0
push 0x4c4140
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.004093e0
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x91c]
call fcn.0040f3c0
test eax, eax
jne 0x488923
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.004093c0
mov eax, dword [ebp - 0x92c]
jmp 0x488962
lea ecx, [ebp - 0x91c]
call fcn.004093c0
mov dword [ebp - 0x914], 0x12c
push 0x258
push 0
lea ecx, [ebp - 0x6b4]
push ecx
call fcn.004307d0
add esp, 0xc
jmp 0x4887c3
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.0042eb1e
mov esp, ebp
pop ebp
ret