joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55295a
Capabilities:
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x188]
sub esp, 0x208
mov eax, dword [0x619e70]
xor eax, ebp
mov dword [ebp + 0x184], eax
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
push 0x54
mov dword [esi], vtable.CKMDriver.0
mov byte [esi + 0x410], bl
mov byte [esi + 0x610], bl
mov byte [esi + 0x210], bl
mov byte [esi + 0xa10], bl
mov byte [esi + 0x810], bl
mov byte [esi + 4], bl
mov byte [esi + 0xb40], bl
mov dword [esi + 0x204], edi
mov dword [esi + 0xb30], ebx
mov dword [esi + 0x208], ebx
mov dword [esi + 0x20c], ebx
mov dword [esi + 0xb1c], ebx
mov dword [esi + 0xb20], ebx
mov dword [esi + 0xb24], ebx
mov dword [esi + 0xb28], ebx
mov dword [esi + 0xd44], ebx
mov dword [esi + 0xb10], edi
mov dword [esi + 0xb14], edi
mov dword [esi + 0xb18], edi
mov dword [esi + 0xb2c], edi
mov dword [esi + 0xd40], edi
mov dword [esi + 0xd48], edi
mov dword [esi + 0xd4c], edi
mov dword [esi + 0xd50], edi
mov dword [esi + 0xd54], edi
call fcn.0056cb85
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x552a38
push 0x54
push ebx
push eax
call fcn.0057f470
mov eax, dword [ebp - 0x80]
add esp, 0xc
jmp 0x552a3a
xor eax, eax
mov dword [esi + 0xb3c], eax
mov byte [eax], bl
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x40], edi
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x44], edi
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x48], edi
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x4c], edi
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x50], edi
push 0x200
lea eax, [ebp - 0x7c]
push eax
mov dword [esi + 0xb34], ebx
mov dword [esi + 0xb38], ebx
mov byte [ebp - 0x7c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov dword [ebp - 0x80], eax
cmp eax, ebx
jbe 0x552b07
push str._temp
lea eax, [ebp - 0x7c]
push 0x200
push eax
call fcn.0043a370
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, edi
je 0x552abc
test al, 0x10
jne 0x552abf
mov dword [ebp - 0x80], ebx
cmp dword [ebp - 0x80], ebx
jbe 0x552b07
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x7c]
push eax
push str._scpuz_driver__d.log
push 0x200
lea edi, [esi + 0xb40]
push edi
call fcn.0043a290
push 0x5c5650
push edi
lea edi, [esi + 0xb34]
push edi
call fcn.0057ec99
mov edi, dword [edi]
add esp, 0x20
cmp edi, ebx
je 0x552b07
push edi
call fcn.0057e302
pop ecx
mov ecx, dword [ebp + 0x184]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057db4c
add ebp, 0x188
leave
ret
Function at 0x552b4a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x2710
push dword [esi + 0xb30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
cmp eax, ebx
je 0x552b86
push eax
push str._vCloseDriver__WaitForSingleObject_error___d_n
push esi
call fcn.005550b7
add esp, 0xc
jmp 0x552be4
mov eax, dword [esi + 0xb10]
dec eax
je 0x552bd1
dec eax
jne 0x552bd8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
push dword [esi + 0xb3c]
call fcn.00555d42
lea eax, [ebp + 0xc]
push eax
push 0x28
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x552bd8
push ebx
push str.SeLoadDriverPrivilege
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0055531b
jmp 0x552bd8
mov ecx, esi
call fcn.0055503e
push dword [esi + 0xb30]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0xb30]
cmp eax, ebx
je 0x552c0a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
push str._vCloseDriver__CloseHandle_mutex____d_n
push esi
call fcn.005550b7
add esp, 0xc
mov dword [esi + 0xb30], ebx
cmp dword [ebp + 0x10], ebx
je 0x552c20
lea eax, [esi + 0xb40]
cmp byte [eax], bl
je 0x552c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebx
leave
ret 0xc
Function at 0x552f0d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x619e70]
xor eax, ebp
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x194]
push ebx
push esi
push edi
push eax
mov esi, ecx
mov ecx, dword [ebp + 0x198]
push str._bInitDriver__Extract_path___s_n
push esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
call fcn.005550b7
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add esp, 0xc
lea eax, [esi + 4]
push eax
mov edi, 0x200
push edi
call ebx
lea eax, [esi + 4]
push eax
push str._bInitDriver__GetCurrentDirectory___s_n
push esi
call fcn.005550b7
add esp, 0xc
push edi
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x78]
push eax
push str._bInitDriver__GetModuleFileName___s_n
push esi
call fcn.005550b7
add esp, 0xc
mov ecx, esi
call fcn.0055513a
cmp dword [ebp - 0x7c], 0
mov eax, dword [ebp + 0x19c]
mov dword [esi + 0x20c], eax
lea eax, [esi + 0x410]
je 0x552fbf
push dword [ebp - 0x7c]
push edi
push eax
call fcn.0057eed3
add esp, 0xc
jmp 0x552fc3
push eax
push edi
call ebx
push str.cpuz158
push 0x40
push dword [esi + 0xb3c]
call fcn.0043a290
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x40], 0x158
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd48]
mov dword [eax + 0x4c], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd4c]
mov dword [eax + 0x44], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd50]
mov dword [eax + 0x48], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd54]
mov dword [eax + 0x50], ecx
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xb3c]
mov ecx, esi
call fcn.00552d3c
xor ebx, ebx
mov edi, eax
inc ebx
test edi, edi
jne 0x5530ce
cmp dword [ebp - 0x7c], 0x241
jne 0x5530ce
mov ecx, esi
call fcn.00552ced
push edi
push ebx
push ebx
mov ecx, esi
call fcn.00552b4a
push str.cpuz152
push 0x40
push dword [esi + 0xb3c]
call fcn.0043a290
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x40], 0x152
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd48]
mov dword [eax + 0x4c], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd58]
mov dword [eax + 0x44], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd5c]
mov dword [eax + 0x48], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd54]
mov dword [eax + 0x50], ecx
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xb3c]
mov ecx, esi
call fcn.00552d3c
mov edi, eax
push dword [ebp - 0x7c]
push str._bInitDriver__bInitDriver_returned__d_n
push esi
call fcn.005550b7
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
add esp, 0xc
mov ecx, esi
call fcn.00552ced
test edi, edi
jne 0x553100
push edi
push ebx
push ebx
mov ecx, esi
call fcn.00552b4a
xor eax, eax
jmp 0x553109
and dword [esi + 0xd44], 0
mov eax, edi
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057db4c
add ebp, 0x18c
leave
ret 0xc
Function at 0x5550b7
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x619e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea esi, [edi + 0xb34]
push 0x5c5b28
add edi, 0xb40
push edi
push esi
call fcn.0057ec99
add esp, 0xc
cmp dword [esi], 0
je 0x55512c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0057ebb8
lea eax, [ebp - 0x104]
push eax
push dword [esi]
call fcn.0057fcaa
push dword [esi]
call fcn.0057e302
add esp, 0x1c
and dword [esi], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0057db4c
leave
ret
Function at 0x55513a
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x619e70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
mov edi, 0x9c
push edi
lea eax, [ebp - 0x28]
push 0
push eax
mov esi, ecx
call fcn.0057f470
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x5551ad
mov ebx, 0x94
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0057f470
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
call edi
test eax, eax
jne 0x5551ad
push str._vGetOSVersion__GetVersionEx_returned_NULL_n
push esi
call fcn.005550b7
pop ecx
pop ecx
jmp 0x555309
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
push edx
push ecx
push eax
push str._vGetOSVersion__m_iOSVersion___d___d._d__n
push esi
mov dword [esi + 0xb10], eax
mov dword [esi + 0xb14], ecx
mov dword [esi + 0xb18], edx
call fcn.005550b7
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x555236
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push ebx
call edi
test eax, eax
je 0x555219
lea ecx, [ebp - 0x5c]
push ecx
call eax
push str.IsWow64Process
push ebx
call edi
push str.IsWow64Process2
push ebx
mov dword [ebp - 0x2c], eax
call edi
push ebx
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0x5c]
mov dword [esi + 0xb2c], eax
dec eax
dec eax
push 1
pop edi
je 0x55528a
sub eax, 3
je 0x55525b
dec eax
je 0x555282
dec eax
je 0x55528a
dec eax
dec eax
je 0x555263
sub eax, 3
jne 0x555290
mov dword [esi + 0xb28], edi
jmp 0x555290
cmp dword [ebp - 0x2c], 0
je 0x555290
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
call dword [ebp - 0x2c]
test eax, eax
je 0x555290
mov eax, dword [ebp - 0x38]
mov dword [esi + 0xb1c], eax
jmp 0x555290
mov dword [esi + 0xb20], edi
jmp 0x555290
mov dword [esi + 0xb24], edi
xor eax, eax
cmp dword [ebp - 0x34], eax
je 0x5552e3
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x34]
test eax, eax
je 0x5552e3
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x30]
push eax
push str._vGetOSVersion__process_machine0x_X__native_machine0x_X_n
push esi
call fcn.005550b7
mov eax, 0xaa64
add esp, 0x10
cmp word [ebp - 0x2c], ax
jne 0x5552e3
and dword [esi + 0xb1c], 0
mov dword [esi + 0xb28], edi
push dword [esi + 0xb28]
push dword [esi + 0xb24]
push dword [esi + 0xb20]
push dword [esi + 0xb1c]
push str._vGetOSVersion__IsAMD64_d__IsIA64_d__IsAlpha_d__IsARM_d_n
push esi
call fcn.005550b7
add esp, 0x18
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057db4c
add ebp, 0x78
leave
ret
Function at 0x555659
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x2a8
mov eax, dword [0x619e70]
xor eax, ebp
mov dword [ebp + 0x224], eax
and dword [ebp - 0x7c], 0
push esi
push edi
mov edi, dword [ebp + 0x234]
mov esi, 0x9c
push esi
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x80], ecx
call fcn.0057f470
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x5556c9
push 0x94
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0057f470
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x94
call esi
push edi
mov esi, 0x200
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.0043a290
mov eax, dword [ebp - 0x68]
add esp, 0xc
dec eax
je 0x555757
dec eax
jne 0x55576c
cmp dword [ebp - 0x74], 4
push edi
push str.Global_s
lea eax, [ebp + 0x24]
push esi
push eax
ja 0x55574d
call fcn.0043a290
add esp, 0x10
lea eax, [ebp + 0x24]
push eax
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x555732
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x24]
mov ecx, dword [ebp - 0x80]
push eax
push dword [ebp + 0x230]
call fcn.00555387
jmp 0x555769
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp + 0x24]
je 0x555721
push edi
push esi
push eax
call fcn.0043a290
add esp, 0xc
jmp 0x55571e
call fcn.0043a290
add esp, 0x10
jmp 0x55571e
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x230]
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x224]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop esi
call fcn.0057db4c
add ebp, 0x228
leave
ret 8
Function at 0x555788
Capabilities:
Create service

Disassembly:
push ebp
lea ebp, [esp - 0x98c]
sub esp, 0xa0c
mov eax, dword [0x619e70]
xor eax, ebp
mov dword [ebp + 0x988], eax
mov eax, dword [ebp + 0x998]
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x994]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x80], eax
lea eax, [edi + 0x610]
push eax
mov esi, 0x200
lea eax, [ebp + 0x788]
push esi
push eax
call fcn.0057eed3
lea eax, [ebp + 0x788]
push eax
call fcn.00580480
lea eax, [ebp + eax + 0x788]
add esp, 0x10
cmp byte [eax - 1], 0x5c
je 0x5557f7
mov byte [eax], 0x5c
mov byte [eax + 1], 0
lea eax, [edi + 0xa10]
push eax
lea eax, [ebp + 0x788]
push esi
push eax
call fcn.0043a370
lea eax, [ebp + 0x788]
push eax
push str._WinNT_bCreateService__szDestName___s_n
push edi
call fcn.005550b7
add esp, 0x18
push esi
lea eax, [ebp + 0x388]
push eax
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push 0
call ebx
push esi
lea eax, [ebp - 0x78]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x788]
push eax
push 1
xor esi, esi
push esi
call ebx
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
push 1
push 3
push 1
push 0xf01ff
lea eax, [ebp + 0x388]
push eax
push eax
push dword [edi + 0x208]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x5558ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bCreateService__CreateService_failed__error_code___d_n
push edi
mov dword [ebp - 0x7c], eax
call fcn.005550b7
mov eax, dword [ebp - 0x7c]
add esp, 0xc
xor ebx, ebx
sub eax, 5
je 0x5558de
sub eax, 0x42b
je 0x5558de
dec eax
jne 0x5558de
inc ebx
mov dword [ebp - 0x7c], esi
jmp 0x5558de
push str._WinNT_bCreateService__CreateService_succeeded_n
push edi
call fcn.005550b7
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, esi
jne 0x5558de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bCreateService__CloseServiceHandle_failed__errorcode___d_n
push edi
mov dword [ebp - 0x7c], eax
call fcn.005550b7
add esp, 0xc
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x988]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0057db4c
add ebp, 0x98c
leave
ret 8
Function at 0x555902
Capabilities:
Delete service

Disassembly:
push ebp
push esi
push edi
push 0xf01ff
push dword [esp + 0x14]
mov esi, ecx
push dword [esi + 0x208]
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
jne 0x55593d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str._WinNT_dwDeleteService__Openservice_failed__errorcode___d_n
push esi
call fcn.005550b7
add esp, 0xc
jmp 0x555981
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x555962
call ebx
mov edi, eax
push edi
push str._WinNT_dwDeleteService__DeleteService_failed__errorcode___d_n
push esi
call fcn.005550b7
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x555980
call ebx
mov edi, eax
push edi
push str._WinNT_dwDeleteService__CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.005550b7
add esp, 0xc
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x555989
Capabilities:
Start service

Disassembly:
push ebx
push esi
push 0xf01ff
push dword [esp + 0x10]
mov ebx, ecx
push dword [ebx + 0x208]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x5559d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._WinNT_bStartService__OpenService_failed__error_code___d_n
push ebx
call fcn.005550b7
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
pop esi
pop ebx
ret 8
push ebp
push edi
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x555a38
call ebp
mov esi, eax
push esi
push str._WinNT_bStartService__StartService_failed__error_code___d_n
push ebx
call fcn.005550b7
add esp, 0xc
mov eax, 0x420
cmp esi, eax
ja 0x555a23
je 0x555a1c
mov eax, esi
dec eax
dec eax
je 0x555a36
dec eax
je 0x555a36
sub eax, 0x23e
je 0x555a36
sub eax, 0x45
jmp 0x555a36
xor edi, edi
xor esi, esi
inc edi
jmp 0x555a38
mov eax, esi
sub eax, 0x422
je 0x555a36
sub eax, 0x1a
je 0x555a36
sub eax, 0xbf
xor edi, edi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x555a59
call ebp
mov esi, eax
push esi
push str._WinNT_bStartService__CloseServiceHandle_failed__errorcode___d_n
push ebx
call fcn.005550b7
add esp, 0xc
mov eax, edi
pop edi
pop ebp
jmp 0x5559c5
Function at 0x555a62
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push esi
push edi
push 0xf01ff
push dword [ebp + 8]
mov edi, ecx
push dword [edi + 0x208]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
jne 0x555aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._WinNT_dwStopService__OpenService_failed__errorcode___d_n
push edi
call fcn.005550b7
add esp, 0xc
mov eax, esi
jmp 0x555b6d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x20]
push eax
push 4
push esi
call ebx
test eax, eax
je 0x555b2c
push dword [ebp - 0x1c]
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_INTERROGATE__status__0x_X_n
push edi
call fcn.005550b7
add esp, 0xc
cmp dword [ebp - 0x1c], 1
je 0x555b44
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call ebx
test eax, eax
je 0x555b1e
push dword [ebp - 0x1c]
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__status__0x_X_n
push edi
call fcn.005550b7
add esp, 0xc
cmp dword [ebp - 0x1c], 3
jne 0x555b44
lea esi, [edi + 0x204]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp + 8]
call ebx
push eax
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__failed__pending__result___d_n
jmp 0x555b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__failed__errorcode___d_n
jmp 0x555b38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_INTERROGATE__failed__errorcode___d_n
mov dword [ebp - 4], eax
push edi
call fcn.005550b7
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
test eax, eax
jne 0x555b6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_dwStopService__CloseServiceHandle_failed__errorcode___d_n
push edi
mov dword [ebp - 4], eax
call fcn.005550b7
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x555c0e
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 4]
push eax
lea edi, [esi + 0x210]
push edi
mov dword [ebp - 4], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push edi
push str._WinNT_bInstallDriver__szMachineName___s_n
push esi
call fcn.005550b7
add esp, 0xc
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esi + 0x208], eax
cmp eax, ebx
jne 0x555c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str._WinNT_bInstallDriver__OpenSCManager_failed__error_code___d_n
push esi
call fcn.005550b7
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov edi, dword [ebp + 8]
cmp dword [esi + 0x20c], ebx
je 0x555cea
mov dword [ebp + 8], ebx
cmp dword [esi + 0xb1c], ebx
je 0x555ca3
push dword [edi + 0x48]
jmp 0x555cc3
cmp dword [esi + 0xb20], ebx
je 0x555cb0
push dword [edi + 0x50]
jmp 0x555cc3
cmp dword [esi + 0xb24], ebx
jne 0x555cea
cmp dword [esi + 0xb28], ebx
jne 0x555cea
push dword [edi + 0x44]
mov ecx, esi
call fcn.00556214
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x555cea
push str._WinNT_bInstallDriver__Unable_to_extract_driver_file_n
push esi
call fcn.005550b7
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, ebx
jmp 0x555c81
lea eax, [ebp + 8]
push eax
push edi
mov ecx, esi
call fcn.00555788
mov ebx, eax
test ebx, ebx
je 0x555d16
lea eax, [ebp + 8]
push eax
push edi
mov ecx, esi
call fcn.00555989
mov ebx, eax
test ebx, ebx
jne 0x555d16
push edi
mov ecx, esi
call fcn.00555902
mov eax, dword [esi + 0x208]
test eax, eax
je 0x555cde
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x555cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bInstallDriver__CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.005550b7
add esp, 0xc
jmp 0x555cde
Function at 0x555e6f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x619e70]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
lea eax, [ebp - 0x80]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edi, [esi + 0x610]
push edi
call fcn.00580480
pop ecx
test eax, eax
jle 0x555eda
cmp byte [esi + eax + 0x60f], 0x5c
lea eax, [esi + 0xa10]
push eax
push edi
lea eax, [ebp - 0x6c]
jne 0x555ec5
push str._s_s
jmp 0x555eca
push 0x5c6374
push 0x200
push eax
call fcn.0043a290
add esp, 0x14
jmp 0x555ef7
lea eax, [esi + 0xa10]
push eax
push 0x5a5ef0
lea eax, [ebp - 0x6c]
push 0x200
push eax
call fcn.0043a290
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x555f23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6c]
push eax
push str._bDeleteFile__DeleteFile__s_failed__error___d__n
push esi
call fcn.005550b7
add esp, 0x10
jmp 0x555f35
lea eax, [ebp - 0x6c]
push eax
push str._bDeleteFile__DeleteFile__s_succeeded_n
push esi
call fcn.005550b7
add esp, 0xc
lea eax, [esi + 0x410]
push ebx
push eax
call fcn.00580480
push edi
mov ebx, eax
call fcn.00580480
pop ecx
pop ecx
cmp eax, ebx
pop ebx
jbe 0x555f86
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x555f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._bDeleteFile__RemoveDirectory__s_failed__error___d__n
push esi
call fcn.005550b7
add esp, 0x10
jmp 0x555f86
push edi
push str._bDeleteFile__RemoveDirectory__s_succeeded_n
push esi
call fcn.005550b7
add esp, 0xc
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.0057db4c
add ebp, 0x198
leave
ret