joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x40160a
cmp eax, 0x3e5
je 0x40160a
cmp byte [esi + 0x15], 0
je 0x40167f
jmp 0x401663
mov edi, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401640
cmp byte [esi + 0x15], 0
je 0x401637
push edi
mov edi, 1
push str.WriteFile_timeout_after__d_millisecond_n
mov ecx, edi
call fcn.00401970
add esp, 8
mov dword [ebp - 4], 0
jmp 0x401686
mov ecx, dword [esi + 0x1c]
push 1
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x401686
cmp byte [esi + 0x15], al
je 0x40167f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401790
push eax
mov edi, 1
push str.WriteFile_failure:__s_n
lea ecx, [edi + 1]
call fcn.00401970
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x401691
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4016a4
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402010
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402055
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x402055
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
jne 0x402055
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x402060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4020a0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4020a0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4020b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402100
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402100
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
jne 0x402100
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4029f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416438
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x41c2b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x402afb
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x402af5
push 0x41e6c4
push 0x419648
push 1
push 0
push 0x419718
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x402af5
lea eax, [ebp - 0x10]
push eax
mov edi, str.ROOTCIMV2SecurityMicrosoftVolumeEncryption
call fcn.00402250
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x402a87
mov ecx, dword [eax]
jmp 0x402a89
xor ecx, ecx
mov eax, dword [0x41e6c4]
mov edx, dword [eax]
push 0x41e6c8
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [ebp - 0x10]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004022f0
test esi, esi
js 0x402ae8
mov eax, dword [0x41e6c8]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x402b11
mov eax, dword [0x41e6c8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x41e6c4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0x2256
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
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
Function at 0x403670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x419eac
push eax
call fcn.00405e80
mov esi, eax
add esp, 8
test esi, esi
je 0x4036a2
push 2
push 0
push esi
call fcn.004079f6
add esp, 0xc
test eax, eax
je 0x4036aa
push esi
call fcn.00406347
add esp, 4
mov eax, 0x220a
pop esi
pop ebp
ret
push edi
push esi
call fcn.00407907
mov edi, eax
add esp, 4
test edi, edi
jns 0x4036cc
push esi
call fcn.00406347
add esp, 4
pop edi
mov eax, 0x2243
pop esi
pop ebp
ret
push 0
push 0
push esi
call fcn.004079f6
add esp, 0xc
test eax, eax
je 0x4036ef
push esi
call fcn.00406347
add esp, 4
pop edi
mov eax, 0x220a
pop esi
pop ebp
ret
lea ecx, [edi + 1]
push ecx
call fcn.004055dc
add esp, 4
mov dword [ebx], eax
push esi
test eax, eax
jne 0x403713
call fcn.00406347
add esp, 4
pop edi
mov eax, 0x2206
pop esi
pop ebp
ret
push edi
push 1
push eax
call fcn.00407585
add esp, 0x10
push esi
cmp eax, edi
je 0x403735
call fcn.00406347
add esp, 4
pop edi
mov eax, 0x223a
pop esi
pop ebp
ret
mov edx, dword [ebx]
mov byte [eax + edx], 0
mov eax, dword [ebp + 8]
mov dword [eax], edi
call fcn.00406347
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x403b20
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x403b8c
mov ecx, 0x41d328
call fcn.00401080
test al, al
jne 0x403b4e
pop edi
mov eax, 0x2001
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
push edi
mov ecx, 0x41d328
call fcn.004015b0
cmp esi, eax
je 0x403b97
mov eax, dword [0x41d344]
cmp eax, 0xffffffff
je 0x403b7b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41d344], 0xffffffff
mov dword [0x41d340], 0
mov byte [0x41d33c], 0
pop edi
mov eax, 0x2249
pop esi
mov esp, ebp
pop ebp
ret
push 0x500000
call fcn.004055dc
mov esi, eax
add esp, 4
test esi, esi
jne 0x403be1
mov eax, dword [0x41d344]
cmp eax, 0xffffffff
je 0x403bc5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41d344], 0xffffffff
pop edi
mov dword [0x41d340], 0
mov byte [0x41d33c], 0
mov eax, 0x2206
pop esi
mov esp, ebp
pop ebp
ret
push 0x500000
push 0
push esi
call fcn.004084a0
add esp, 0xc
push 0xffffffffffffffff
push 0x500000
push esi
mov ecx, 0x41d328
call fcn.004014b0
cmp dword [esi], 0x19
je 0x403c26
push esi
call fcn.004055a2
add esp, 4
mov ecx, 0x41d328
call fcn.00401480
pop edi
mov eax, 0x2212
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 4], 0
je 0x403c4a
push esi
call fcn.004055a2
add esp, 4
mov ecx, 0x41d328
call fcn.00401480
pop edi
mov eax, 0x2231
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ebx
call edi
push 0x419eb0
lea eax, [ebp - 4]
push ebx
push eax
call fcn.00405e97
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x403c3f
mov ecx, dword [esi + 8]
push eax
push ecx
lea edx, [esi + 0xc]
push 1
push edx
call fcn.004076f9
add esp, 0x10
cmp eax, dword [esi + 8]
je 0x403c9e
mov ecx, 0x41d328
call fcn.00401480
pop edi
mov eax, 0x2232
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call fcn.00406347
add esp, 4
push 2
push ebx
call edi
push esi
call fcn.004055a2
add esp, 4
mov ecx, 0x41d328
call fcn.00401480
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404240
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 0x419eb8
mov dword [ebp - 0x68], 0x4042e0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x4042ce
push esi
push 0x419eb8
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4042cd
push str.StartServiceCtrlDispatcher
lea ecx, [ebp - 0x54]
push 0x50
push ecx
call fcn.004071c5
add esp, 0xc
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
push 2
push 0
push 0
push 0
push 4
lea edx, [ebp - 0x54]
push esi
mov dword [ebp - 0x5c], 0x419eb8
mov dword [ebp - 0x58], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
Function at 0x404490
Capabilities:
Access the windows event log
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x419eb8
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4044f7
push str.Enter_SvcInitAndRun
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.004071c5
add esp, 0xc
push 0
lea edx, [ebp - 0x5c]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
lea ecx, [ebp - 0x54]
push esi
mov dword [ebp - 0x5c], 0x419eb8
mov dword [ebp - 0x58], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push 1
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x404643
push 0
push 0
push 1
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x404643
mov eax, dword [0x41e1f4]
push edi
push 0x41e1fc
lea edx, [ebp - 0x80]
mov edi, 4
push eax
mov dword [ebp - 0x68], 0xc
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], 0
mov dword [0x41e200], edi
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 0
call esi
mov dword [0x41e29c], eax
test eax, eax
je 0x404642
push 0
push 0
push 0
call esi
mov dword [0x41e2a8], eax
test eax, eax
je 0x404642
cmp dword [0x41e200], edi
jne 0x404642
mov esi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0x400
push 0x400
push 0xff
push 6
push 3
push str..PipeIntelFwDiscoveryHeciNamedPipe
call esi
mov dword [0x41e6d0], eax
cmp eax, 0xffffffff
je 0x40461b
push 0
push eax
call ebx
test eax, eax
je 0x4045f4
mov eax, dword [0x41e6d0]
lea edx, [ebp - 0x6c]
push edx
push 0
push eax
push 0x404710
push 0
push 0
call edi
test eax, eax
je 0x404601
push eax
jmp 0x4045fb
mov ecx, dword [0x41e6d0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x41e200], 4
je 0x4045a3
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
mov edx, dword [0x41e1f4]
push 0x41e1fc
push edx
mov dword [0x41e200], 1
mov dword [0x41e208], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405593
mov esp, ebp
pop ebp
ret
Function at 0x404660
Capabilities:
Check os version
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x404700
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4046ff
push ebx
push esi
push 2
push 0x419eb8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4046fa
lea ecx, [ebp - 0x19c]
push ecx
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x198], 5
jbe 0x4046f7
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x1a0]
push eax
push 3
push esi
mov dword [ebp - 0x1a0], edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x4046fd
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret

Function at 0x404dd0
Capabilities:
Access the windows event log
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x419eb8
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x404e35
push str.Enter_SvcStop
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.004071c5
add esp, 0xc
push 0
lea edx, [ebp - 0x78]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
lea ecx, [ebp - 0x54]
push esi
mov dword [ebp - 0x78], 0x419eb8
mov dword [ebp - 0x74], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x404e8e
push ebx
push 0x24
push 0x419eb8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x404e8a
lea eax, [ebp - 0x70]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404e87
cmp dword [ebp - 0x6c], 4
jne 0x404e87
lea ecx, [ebp - 0x70]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push esi
call ebx
push edi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405593
mov esp, ebp
pop ebp
ret
Function at 0x404ea0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x419eb8
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x404f22
test ebx, ebx
jne 0x404edc
push edi
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.004071c5
add esp, 0xc
lea eax, [ebx + 4]
jmp 0x404ef6
push ebx
push edi
push str._s_failed_w_err_0x_08lx
lea ecx, [ebp - 0x54]
push 0x50
push ecx
call fcn.004071c5
add esp, 0x14
mov eax, 1
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 2
push 0
push 0
push 0
push eax
lea edx, [ebp - 0x54]
push esi
mov dword [ebp - 0x5c], 0x419eb8
mov dword [ebp - 0x58], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405593
mov esp, ebp
pop ebp
ret
Function at 0x404f40
Capabilities:
Check os version
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x106
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004084a0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x10b]
push ecx
mov bl, 0x22
push 0
mov byte [ebp - 0x10c], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
mov eax, 0x104
cmp byte [ebp + eax - 0x10c], 0
jne 0x404fbf
dec eax
jmp 0x404fb2
push edi
push 3
push 0
push 0
mov byte [ebp + eax - 0x10b], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x404ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0x41a088
push 0
push 0
lea edx, [ebp - 0x10c]
push edx
push 1
push 2
push 0x10
push 0xf01ff
push 0x419eb8
push 0x419eb8
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x4050f7
push 0x419eb8
push str._s_installed._n
call fcn.0040601f
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
add esp, 8
lea eax, [ebp - 0x1a8]
push eax
push 1
push esi
mov dword [ebp - 0x1a8], str.Intel
call ebx
test eax, eax
jne 0x40508f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig2_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1a0]
push ecx
mov dword [ebp - 0x1a0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x19c], 5
jbe 0x4050ee
lea edx, [ebp - 0x1a4]
push edx
push 3
push esi
mov dword [ebp - 0x1a4], 1
call ebx
test eax, eax
jne 0x4050ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig2_failed_to_set_to_automatic_delayed_start_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40510b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00405593
mov esp, ebp
pop ebp
ret
Function at 0x405130
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x405179
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
push esi
push 0x10024
push 0x419eb8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x405262
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40521f
push ebx
push 0x419eb8
push str.Stopping__s.
call fcn.0040601f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x4051fc
cmp dword [ebp - 0x1c], 3
jne 0x4051fc
push 0x41a184
call fcn.0040601f
add esp, 4
push 0x3e8
call edi
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x4051d7
cmp dword [ebp - 0x1c], 1
pop ebx
push 0x419eb8
jne 0x40520f
push str._n_s_stopped._n
jmp 0x405214
push str._n_s_failed_to_stop._n
call fcn.0040601f
mov edi, dword [ebp - 0x24]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x405245
push 0x419eb8
push str._s_removed._n
call fcn.0040601f
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x405276
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x405276
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00405593
mov esp, ebp
pop ebp
ret
Function at 0x405290
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4052d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 5
push 0x419eb8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4053ff
push 0x419eb8
push str._s_was_installed._n
call fcn.0040601f
add esp, 8
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4053d4
push str.Service_status:
call fcn.0040601f
mov eax, dword [ebp - 0x24]
dec eax
add esp, 4
cmp eax, 6
ja case.default.0x40533d
jmp dword [eax*4 + 0x40543c]
push str.Stopped
call fcn.00407a72
add esp, 4
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
push str.Running
call fcn.00407a72
add esp, 4
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
push str.Paused
call fcn.00407a72
add esp, 4
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
push str.Pending
call fcn.00407a72
add esp, 4
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x405418
push 0x419eb8
push str._s_was_not_installed._n
jmp 0x40541e
push eax
push str.OpenService_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
push edi
call ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00405593
mov esp, ebp
pop ebp
ret