joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ac10
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 0x43ac4c
push eax
push str._vCloseDriver__WaitForSingleObject_error___d_n
push esi
call fcn.0043bd3b
add esp, 0xc
jmp 0x43acaa
mov eax, dword [esi + 0xb10]
dec eax
je 0x43ac97
dec eax
jne 0x43ac9e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
push dword [esi + 0xb3c]
call fcn.0043c9e3
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 0x43ac9e
push ebx
push str.SeLoadDriverPrivilege
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0043bf9f
jmp 0x43ac9e
mov ecx, esi
call fcn.0043bcc2
push dword [esi + 0xb30]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0xb30]
cmp eax, ebx
je 0x43acd0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
push str._vCloseDriver__CloseHandle_mutex____d_n
push esi
call fcn.0043bd3b
add esp, 0xc
mov dword [esi + 0xb30], ebx
cmp dword [ebp + 0x10], ebx
je 0x43ace6
lea eax, [esi + 0xb40]
cmp byte [eax], bl
je 0x43ace6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebx
leave
ret 0xc
Function at 0x43afd3
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x5f72d8]
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.0043bd3b
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.0043bd3b
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.0043bd3b
add esp, 0xc
mov ecx, esi
call fcn.0043bdbe
cmp dword [ebp - 0x7c], 0
mov eax, dword [ebp + 0x19c]
mov dword [esi + 0x20c], eax
lea eax, [esi + 0x410]
je 0x43b085
push dword [ebp - 0x7c]
push edi
push eax
call fcn.0055c215
add esp, 0xc
jmp 0x43b089
push eax
push edi
call ebx
push str.cpuz155
push 0x40
push dword [esi + 0xb3c]
call fcn.0045ea70
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x40], 0x155
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.0043ae02
xor ebx, ebx
mov edi, eax
inc ebx
test edi, edi
jne 0x43b194
cmp dword [ebp - 0x7c], 0x241
jne 0x43b194
mov ecx, esi
call fcn.0043adb3
push edi
push ebx
push ebx
mov ecx, esi
call fcn.0043ac10
push str.cpuz152
push 0x40
push dword [esi + 0xb3c]
call fcn.0045ea70
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.0043ae02
mov edi, eax
push dword [ebp - 0x7c]
push str._bInitDriver__bInitDriver_returned__d_n
push esi
call fcn.0043bd3b
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
add esp, 0xc
mov ecx, esi
call fcn.0043adb3
test edi, edi
jne 0x43b1c6
push edi
push ebx
push ebx
mov ecx, esi
call fcn.0043ac10
xor eax, eax
jmp 0x43b1cf
and dword [esi + 0xd44], 0
mov eax, edi
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a90d
add ebp, 0x18c
leave
ret 0xc
Function at 0x43bd3b
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5f72d8]
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 0x5871f0
add edi, 0xb40
push edi
push esi
call fcn.0055bc59
add esp, 0xc
cmp dword [esi], 0
je 0x43bdb0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0055bb78
lea eax, [ebp - 0x104]
push eax
push dword [esi]
call fcn.0055cfca
push dword [esi]
call fcn.0055b0dd
add esp, 0x1c
and dword [esi], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055a90d
leave
ret
Function at 0x43bdbe
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x5f72d8]
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.0055b160
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 0x43be31
mov ebx, 0x94
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0055b160
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
call edi
test eax, eax
jne 0x43be31
push str._vGetOSVersion__GetVersionEx_returned_NULL_n
push esi
call fcn.0043bd3b
pop ecx
pop ecx
jmp 0x43bf8d
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.0043bd3b
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 0x43beba
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push ebx
call edi
test eax, eax
je 0x43be9d
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 0x43bf0e
sub eax, 3
je 0x43bedf
dec eax
je 0x43bf06
dec eax
je 0x43bf0e
dec eax
dec eax
je 0x43bee7
sub eax, 3
jne 0x43bf14
mov dword [esi + 0xb28], edi
jmp 0x43bf14
cmp dword [ebp - 0x2c], 0
je 0x43bf14
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
call dword [ebp - 0x2c]
test eax, eax
je 0x43bf14
mov eax, dword [ebp - 0x38]
mov dword [esi + 0xb1c], eax
jmp 0x43bf14
mov dword [esi + 0xb20], edi
jmp 0x43bf14
mov dword [esi + 0xb24], edi
xor eax, eax
cmp dword [ebp - 0x34], eax
je 0x43bf67
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 0x43bf67
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.0043bd3b
mov eax, 0xaa64
add esp, 0x10
cmp word [ebp - 0x2c], ax
jne 0x43bf67
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.0043bd3b
add esp, 0x18
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a90d
add ebp, 0x78
leave
ret
Function at 0x43c2dd
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x2a8
mov eax, dword [0x5f72d8]
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.0055b160
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 0x43c34d
push 0x94
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0055b160
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.0045ea70
mov eax, dword [ebp - 0x68]
add esp, 0xc
dec eax
je 0x43c3db
dec eax
jne 0x43c3f0
cmp dword [ebp - 0x74], 4
push edi
push str.Global_s
lea eax, [ebp + 0x24]
push esi
push eax
ja 0x43c3d1
call fcn.0045ea70
add esp, 0x10
lea eax, [ebp + 0x24]
push eax
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x43c3b6
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.0043c00b
jmp 0x43c3ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp + 0x24]
je 0x43c3a5
push edi
push esi
push eax
call fcn.0045ea70
add esp, 0xc
jmp 0x43c3a2
call fcn.0045ea70
add esp, 0x10
jmp 0x43c3a2
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.0055a90d
add ebp, 0x228
leave
ret 8
Function at 0x43c40c
Capabilities:
Create service

Disassembly:
push ebp
lea ebp, [esp - 0x98c]
sub esp, 0xa0c
mov eax, dword [0x5f72d8]
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.0055c215
lea eax, [ebp + 0x788]
push eax
call fcn.0055b840
lea eax, [ebp + eax + 0x788]
add esp, 0x10
cmp byte [eax - 1], 0x5c
je 0x43c47b
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.0045eb50
lea eax, [ebp + 0x788]
push eax
push str._WinNT_bCreateService__szDestName___s_n
push edi
call fcn.0043bd3b
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 0x43c530
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.0043bd3b
mov eax, dword [ebp - 0x7c]
add esp, 0xc
xor ebx, ebx
sub eax, 5
je 0x43c562
sub eax, 0x42b
je 0x43c562
dec eax
jne 0x43c562
inc ebx
mov dword [ebp - 0x7c], esi
jmp 0x43c562
push str._WinNT_bCreateService__CreateService_succeeded_n
push edi
call fcn.0043bd3b
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, esi
jne 0x43c562
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.0043bd3b
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.0055a90d
add ebp, 0x98c
leave
ret 8
Function at 0x43c586
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 0x43c5c1
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.0043bd3b
add esp, 0xc
jmp 0x43c605
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43c5e6
call ebx
mov edi, eax
push edi
push str._WinNT_dwDeleteService__DeleteService_failed__errorcode___d_n
push esi
call fcn.0043bd3b
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x43c604
call ebx
mov edi, eax
push edi
push str._WinNT_dwDeleteService__CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.0043bd3b
add esp, 0xc
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x43c60d
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 0x43c654
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.0043bd3b
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 0x43c6bc
call ebp
mov esi, eax
push esi
push str._WinNT_bStartService__StartService_failed__error_code___d_n
push ebx
call fcn.0043bd3b
add esp, 0xc
mov eax, 0x420
cmp esi, eax
ja 0x43c6a7
je 0x43c6a0
mov eax, esi
dec eax
dec eax
je 0x43c6ba
dec eax
je 0x43c6ba
sub eax, 0x23e
je 0x43c6ba
sub eax, 0x45
jmp 0x43c6ba
xor edi, edi
xor esi, esi
inc edi
jmp 0x43c6bc
mov eax, esi
sub eax, 0x422
je 0x43c6ba
sub eax, 0x1a
je 0x43c6ba
sub eax, 0xbf
xor edi, edi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x43c6dd
call ebp
mov esi, eax
push esi
push str._WinNT_bStartService__CloseServiceHandle_failed__errorcode___d_n
push ebx
call fcn.0043bd3b
add esp, 0xc
mov eax, edi
pop edi
pop ebp
jmp 0x43c649
Function at 0x43c6e6
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 0x43c72f
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.0043bd3b
add esp, 0xc
mov eax, esi
jmp 0x43c7f1
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 0x43c7b0
push dword [ebp - 0x1c]
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_INTERROGATE__status__0x_X_n
push edi
call fcn.0043bd3b
add esp, 0xc
cmp dword [ebp - 0x1c], 1
je 0x43c7c8
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call ebx
test eax, eax
je 0x43c7a2
push dword [ebp - 0x1c]
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__status__0x_X_n
push edi
call fcn.0043bd3b
add esp, 0xc
cmp dword [ebp - 0x1c], 3
jne 0x43c7c8
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 0x43c7bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__failed__errorcode___d_n
jmp 0x43c7bc
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.0043bd3b
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
test eax, eax
jne 0x43c7ee
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.0043bd3b
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x43c8af
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.0043bd3b
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 0x43c929
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.0043bd3b
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 0x43c98b
mov dword [ebp + 8], ebx
cmp dword [esi + 0xb1c], ebx
je 0x43c944
push dword [edi + 0x48]
jmp 0x43c964
cmp dword [esi + 0xb20], ebx
je 0x43c951
push dword [edi + 0x50]
jmp 0x43c964
cmp dword [esi + 0xb24], ebx
jne 0x43c98b
cmp dword [esi + 0xb28], ebx
jne 0x43c98b
push dword [edi + 0x44]
mov ecx, esi
call fcn.0043ceb5
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x43c98b
push str._WinNT_bInstallDriver__Unable_to_extract_driver_file_n
push esi
call fcn.0043bd3b
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, ebx
jmp 0x43c922
lea eax, [ebp + 8]
push eax
push edi
mov ecx, esi
call fcn.0043c40c
mov ebx, eax
test ebx, ebx
je 0x43c9b7
lea eax, [ebp + 8]
push eax
push edi
mov ecx, esi
call fcn.0043c60d
mov ebx, eax
test ebx, ebx
jne 0x43c9b7
push edi
mov ecx, esi
call fcn.0043c586
mov eax, dword [esi + 0x208]
test eax, eax
je 0x43c97f
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x43c97f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bInstallDriver__CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.0043bd3b
add esp, 0xc
jmp 0x43c97f
Function at 0x43cb10
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5f72d8]
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.0055b840
pop ecx
test eax, eax
jle 0x43cb7b
cmp byte [esi + eax + 0x60f], 0x5c
lea eax, [esi + 0xa10]
push eax
push edi
lea eax, [ebp - 0x6c]
jne 0x43cb66
push str._s_s
jmp 0x43cb6b
push 0x587b0c
push 0x200
push eax
call fcn.0045ea70
add esp, 0x14
jmp 0x43cb98
lea eax, [esi + 0xa10]
push eax
push 0x585150
lea eax, [ebp - 0x6c]
push 0x200
push eax
call fcn.0045ea70
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 0x43cbc4
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.0043bd3b
add esp, 0x10
jmp 0x43cbd6
lea eax, [ebp - 0x6c]
push eax
push str._bDeleteFile__DeleteFile__s_succeeded_n
push esi
call fcn.0043bd3b
add esp, 0xc
lea eax, [esi + 0x410]
push ebx
push eax
call fcn.0055b840
push edi
mov ebx, eax
call fcn.0055b840
pop ecx
pop ecx
cmp eax, ebx
pop ebx
jbe 0x43cc27
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x43cc18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._bDeleteFile__RemoveDirectory__s_failed__error___d__n
push esi
call fcn.0043bd3b
add esp, 0x10
jmp 0x43cc27
push edi
push str._bDeleteFile__RemoveDirectory__s_succeeded_n
push esi
call fcn.0043bd3b
add esp, 0xc
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.0055a90d
add ebp, 0x198
leave
ret
Function at 0x45ca00
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x224
mov eax, dword [0x5f72d8]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x22c]
push ebx
push esi
xor esi, esi
push str.setupapi.dll
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x45cc19
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push edi
push str.CM_Get_DevNode_Registry_PropertyA
push ebx
call esi
push str.CM_Locate_DevNodeA
push ebx
mov ebp, eax
call esi
push str.CM_Get_Child
push ebx
mov edi, eax
call esi
push str.CM_Get_Sibling
push ebx
mov dword [esp + 0x28], eax
call esi
push str.CM_Get_Parent
push ebx
mov dword [esp + 0x34], eax
call esi
mov dword [esp + 0x24], eax
test ebp, ebp
je 0x45cbf5
test edi, edi
je 0x45cbf5
cmp dword [esp + 0x20], 0
je 0x45cbf5
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x45cbf5
test eax, eax
je 0x45cbf5
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x45cbed
mov eax, dword [esp + 0x10]
mov edi, 0x200
push 0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x38]
push ecx
push 0
push 0xa
push eax
mov dword [esp + 0x34], edi
call ebp
test eax, eax
jne 0x45cb19
mov eax, dword [esp + 0x238]
lea ecx, [esp + 0x30]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45cb10
test dl, dl
je 0x45cb0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45cb10
add eax, 2
add ecx, 2
test dl, dl
jne 0x45caf0
xor eax, eax
jmp 0x45cb15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45cb8b
mov edx, dword [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x2c]
test eax, eax
jne 0x45cb37
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x45cac7
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push edx
call esi
test eax, eax
je 0x45cb7e
lea esp, [esp]
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [esp + 0x30]
test eax, eax
jne 0x45cbf5
mov eax, dword [esp + 0x14]
push 0
push eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
call esi
test eax, eax
jne 0x45cb50
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x45cac7
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push 1
push edx
mov dword [esp + 0x34], edi
call ebp
test eax, eax
jne 0x45cbed
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
push 0x100
push ecx
call fcn.0055c215
add esp, 0xc
push ebx
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0055a90d
add esp, 0x224
ret
mov dword [esp + 0x18], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0055a90d
add esp, 0x224
ret
mov ecx, dword [esp + 0x228]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0055a90d
add esp, 0x224
ret