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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005373f0
add esp, 0xc
lea esi, [ebp - 0x20c]
call fcn.0040b210
mov ecx, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push 0
push str.LOG_LEVEL_DEBUG
push str.Debug_Info
call esi
mov edi, 1
mov dword [0x5ceb24], eax
cmp eax, edi
je 0x40b110
cmp eax, 2
jne 0x40b16a
lea edx, [ebp - 0x20c]
push edx
push 0
push str.LOG_USEFILE
push str.Debug_Info
call esi
test eax, eax
je 0x40b16a
lea eax, [ebp - 0x20c]
push eax
push 0x1400000
push str.LOG_USEFILE_DIVSIZE
push str.Debug_Info
call esi
lea ecx, [ebp - 0x20c]
push ecx
push 0xa
push str.LOG_USEFILE_MAXCOUNT
push str.Debug_Info
mov dword [0x5ceb30], eax
call esi
mov dword [0x5ceb34], eax
test eax, eax
je 0x40b16a
mov dword [0x5ceb2c], edi
lea edx, [ebp - 0x20c]
push edx
push 0
push str.LOG_LEVEL_EVENT
push str.Debug_Info
call esi
mov dword [0x5b72b4], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.LOG_USEMINIDUMP
push str.Debug_Info
call esi
test eax, eax
je 0x40b1f1
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.LOG_USEMINIDUMP_TYPE
push str.Debug_Info
call esi
lea edx, [ebp - 0x20c]
push edx
push 0xa
push str.LOG_USEMINIDUMP_MAXCOUNT
push str.Debug_Info
mov dword [0x5ceb40], eax
call esi
mov dword [0x5ceb44], eax
mov dword [0x5ceb28], edi
test eax, eax
je 0x40b1f7
mov dword [0x5ceb3c], edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
mov dword [0x5ceb28], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005337cb
mov esp, ebp
pop ebp
ret

Function at 0x40b210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, 1
test esi, esi
jne 0x40b23e
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.Uninst.ini
lea edx, [ebp - 0x20c]
push edx
push 0x58b914
push 0xffffffffffffffff
push 0x104
push esi
call fcn.00535cbb
add esp, 0x18
test eax, eax
js 0x40b22d
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x40b740
Capabilities:
Access the windows event log
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559330
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push str.BaseInstaller
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
lea ebx, [esi + 4]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x40b7a4
push 0x5a78ac
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x80004005
call fcn.005372e6
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x40b7ef
lea edx, [ebp - 0x18]
push edx
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b7ef
push 0x5a78ac
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x80004005
call fcn.005372e6
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x14]
push ecx
push edx
push esi
push 1
push eax
call edi
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004401c2
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40b830
push 0x5a78ac
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], 0x80004005
call fcn.005372e6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ecx
push esi
push 1
push edx
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x40b84e
jmp dword [eax*4 + 0x40b8dc]
mov ebx, 4
jmp case.default.0x40b84e
mov ebx, 2
jmp case.default.0x40b84e
mov ebx, 1
mov edi, dword [ebp - 0x20]
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push 1
push ecx
push 0x99999999
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov dword [ebp - 4], 0xffffffff
jmp 0x40b8a1
test edi, edi
je 0x40b8ac
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test esi, esi
je 0x40b8b9
push esi
call fcn.004401b7
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b8c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bcf0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559490
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [0x58bacc]
mov ebx, ecx
xor eax, eax
mov ecx, 0x104
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov ecx, dword [str.Canon]
mov dword [ebp - 0x64], ecx
mov ecx, dword [0x58bad0]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], ecx
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov ecx, 7
mov esi, str.BaseInstaller
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
push 8
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40bdae
push 0x5a78ac
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x80004005
call fcn.005372e6
mov edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x70]
push ecx
push ebx
push edx
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x40be10
push 0x5a78ac
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x80004005
call fcn.005372e6
mov dword [ebp - 0x6c], 0
mov eax, 0x40bde3
ret
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40bdf1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor esi, esi
cmp esi, 2
jge 0x40bde3
lea ecx, [esi + esi*4]
lea edx, [ebp + ecx*8 - 0x64]
mov ecx, dword [ebp - 0x74]
push edx
push ebx
push str._s_s
call fcn.0040ab70
add esp, 0xc
push 0
push ebx
call edi
inc esi
jmp 0x40be18
Function at 0x40d110
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bd90
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x40]
push str.Tool_GetSpoolerServiceStatus
push eax
call fcn.0040ac70
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.00442c4d
mov ecx, dword [eax + 4]
call fcn.004499ce
xor edi, edi
push 0xf003f
push edi
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x40d1f5
push 4
push str.SPOOLER
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x40d1db
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ecx, [ecx]
lea ecx, [ebp - 0x2c]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x40d1c9
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jb 0x40d1a0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x38]
jmp 0x40d1eb
mov edx, dword [ebp - 0x28]
push edi
mov dword [ebp - 0x30], edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x38]
jmp 0x40d1eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x40d1eb
mov dword [ebp - 0x30], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x30]
push edi
push str.return___08x
lea eax, [ebp - 0x40]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x31]
mov byte [ebp - 4], 0
call fcn.0040aa10
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x40dc00
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a20b
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x42c]
push str.VDCUDeleteService
push eax
call fcn.0040ac70
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x420]
push 0
push ecx
mov dword [ebp - 4], 0
call fcn.005373f0
add esp, 0xc
push str.SOFTWARECanonVDCSETUP
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x424]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x420]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dcdb
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x424]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x448]
push edx
push 0
push str.Path
push eax
mov dword [ebp - 0x430], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40dd0c
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.return___08x
lea edx, [ebp - 0x42c]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x40de12
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x44
lea ecx, [ebp - 0x490]
push 0
push ecx
call fcn.005373f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
push 0x58abe4
lea eax, [ebp - 0x218]
xor edx, edx
push eax
mov dword [ebp - 0x490], 0x44
mov dword [ebp - 0x464], 1
mov word [ebp - 0x460], dx
call esi
push str.AuVdc.exe
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x490]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.__remove
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp - 0x43c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x440]
push edx
mov edi, eax
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x40dde4
lea eax, [ebp - 0x444]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call ebx
push edi
push str.return___08x
lea ecx, [ebp - 0x42c]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x40de30
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x38]
push str.Tool_VDCServiceStopAndStart
push eax
call fcn.0040ac70
add esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push ecx
push str.bVdcCtrl___d__bDebug___d
lea edx, [ebp - 0x38]
push 1
push edx
mov dword [ebp - 4], ebx
call fcn.0040aed0
add esp, 0x14
push 0x20000000
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebx
jne 0x40dec7
push ebx
push str.return___08x
push 2
lea eax, [ebp - 0x38]
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x40dfad
push 0xf01ff
push str.Canon_NetSpot_Suite_Service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x40def3
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
push str.return___08x
push 2
lea ecx, [ebp - 0x38]
push ecx
jmp 0x40dea9
cmp dword [ebp + 8], ebx
je 0x40df1f
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40df77
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push ebx
push str.return___08x
push 2
lea edx, [ebp - 0x38]
push edx
jmp 0x40dea9
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40df4c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0
push str.return___08x
push 2
lea ecx, [ebp - 0x38]
push ecx
jmp 0x40dea9
cmp dword [ebp - 0x2c], 1
je 0x40df7c
lea edx, [ebp - 0x30]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, 1
je 0x40df77
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0
jmp 0x40de9e
mov ebx, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
push ebx
push str.return___08x
lea ecx, [ebp - 0x38]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x40e2f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55a19b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1068
call fcn.00539330
mov eax, dword [0x5b4450]
xor eax, esp
mov dword [esp + 0x1064], eax
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, esp
push eax
lea eax, [esp + 0x1078]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x10]
push str.ServiceStopFromCmdLine
push eax
call fcn.0040ac70
add esp, 0xc
push str.SPOOLER
push str.lpszService___s
lea ecx, [esp + 0x14]
push 1
push ecx
mov dword [esp + 0x1090], 0
call fcn.0040aed0
push 0x400
lea edx, [esp + 0x80]
push 0
push edx
call fcn.005373f0
add esp, 0x1c
push 0x400
lea eax, [esp + 0x470]
push 0
push eax
call fcn.005373f0
add esp, 0xc
push 0x200
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.cmd.exe
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x474]
push 0x58b914
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea edx, [esp + 0x38]
push 0
push edx
call fcn.005373f0
add esp, 0x1c
push str.SPOOLER
push str._C_net_stop___s___Y
lea ecx, [esp + 0x874]
xor eax, eax
push 0x400
push ecx
mov dword [esp + 0x34], 0x44
mov word [esp + 0x64], ax
mov dword [esp + 0x60], 1
call fcn.00535c9d
add esp, 0x10
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x88c]
push ecx
lea edx, [esp + 0x490]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x40e492
mov eax, dword [esp + 0x14]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
push str.SPOOLER
push str.SPOOLER
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e492
call fcn.00442c4d
mov eax, dword [eax + 4]
mov dword [eax + 0x874], 1
push esi
push str.return___08x
lea eax, [esp + 0x14]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x1080], 0xffffffff
call fcn.0040ae50
mov eax, esi
mov ecx, dword [esp + 0x1078]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x40e4e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55d2db
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x106c
call fcn.00539330
mov eax, dword [0x5b4450]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, esp
push eax
lea eax, [esp + 0x1080]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x18]
push str.ServiceStartFromCmdLine
push eax
mov ebx, ecx
call fcn.0040ac70
add esp, 0xc
push ebx
push str.lpszService___s
lea ecx, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x1098], 0
call fcn.0040aed0
push 0x400
lea edx, [esp + 0x88]
push 0
push edx
call fcn.005373f0
add esp, 0x1c
push 0x400
lea eax, [esp + 0x478]
push 0
push eax
call fcn.005373f0
add esp, 0xc
push 0x200
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.cmd.exe
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x47c]
push 0x58b914
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea edx, [esp + 0x40]
push 0
push edx
call fcn.005373f0
add esp, 0x1c
push ebx
push str._C_net_start___s___Y
lea ecx, [esp + 0x87c]
xor eax, eax
push 0x400
push ecx
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6c], ax
mov dword [esp + 0x68], 1
call fcn.00535c9d
add esp, 0x10
xor ecx, ecx
call fcn.0040ebe0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x894]
push ecx
lea edx, [esp + 0x498]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x40e66a
mov ecx, 1
call fcn.0040ebe0
mov esi, eax
mov eax, dword [esp + 0x1c]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
call edi
push esi
push str.return___08x
lea eax, [esp + 0x1c]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x1088], 0xffffffff
call fcn.0040ae50
mov eax, esi
mov ecx, dword [esp + 0x1080]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x40ea90
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bd90
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [ebp - 0x40]
push str.GetServiceStartAndStopStatus
push eax
mov esi, ecx
call fcn.0040ac70
add esp, 0xc
push esi
push str.lpszService___s
lea ecx, [ebp - 0x40]
push 1
push ecx
mov dword [ebp - 4], edi
call fcn.0040aed0
add esp, 0x10
call fcn.00442c4d
mov ecx, dword [eax + 4]
call fcn.004499ce
push 0xf003f
push edi
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x38], ebx
cmp ebx, edi
je 0x40eb85
push 4
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x40eb6b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ebx, [ebx]
lea edx, [ebp - 0x2c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x40eb59
push 0x64
call ebx
inc esi
cmp esi, 0x96
jb 0x40eb30
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x38]
jmp 0x40eb7b
mov eax, dword [ebp - 0x28]
push edi
mov dword [ebp - 0x30], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x38]
jmp 0x40eb7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x40eb7b
mov dword [ebp - 0x30], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x30]
push edi
push str.return___08x
lea ecx, [ebp - 0x40]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x31]
mov byte [ebp - 4], 0
call fcn.0040aa10
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x40fd60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a168
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x1c]
push str.Tool_ShoutCutCreateFolder
push eax
call fcn.0040ac70
add esp, 0xc
push 0x17
push str.nFolder___d
lea ecx, [ebp - 0x1c]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
add esp, 0x10
push 0x208
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
jne 0x40fe03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.return___s
lea edx, [ebp - 0x1c]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [ebp - 0x10]
push esi
push ecx
mov edi, eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40fe29
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x40fe64
cmp dword [ebp - 0x10], edi
je 0x40fe64
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x40fe64
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40fe64
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x10], edi
push esi
push str.return___s
lea eax, [ebp - 0x1c]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret