joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ad10
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x51229b
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x5706b0]
xor eax, esp
mov dword [esp + 0x4a4], eax
push ebx
push ebp
push esi
mov eax, dword [0x5706b0]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push 0xffffffffffffffff
push eax
call fcn.00451ca2
mov ecx, eax
call fcn.00450b41
test eax, eax
je 0x42afa0
push 1
mov ecx, edi
call fcn.00426ec0
mov dl, 0x31
mov cl, 0x34
mov al, 0x37
mov byte [esp + 0x494], dl
mov byte [esp + 0x495], 0x62
mov byte [esp + 0x496], 0x33
mov byte [esp + 0x497], 0x30
mov byte [esp + 0x498], cl
mov byte [esp + 0x499], 0x63
mov byte [esp + 0x49a], al
mov byte [esp + 0x49b], 0x61
mov byte [esp + 0x49c], 0x32
mov byte [esp + 0x49d], 0x64
mov byte [esp + 0x49e], 0x30
mov byte [esp + 0x49f], 0x30
mov byte [esp + 0x4a0], cl
mov byte [esp + 0x4a1], al
mov byte [esp + 0x4a2], dl
mov byte [esp + 0x4a3], 0x30
mov byte [esp + 0x4a4], 0
mov dword [esp + 0x1c], vtable.CRJK.0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x494]
push ecx
lea esi, [esp + 0x20]
mov dword [esp + 0x4c4], 0
call fcn.004220f0
mov ebx, dword [edi + 0xa58]
mov ecx, dword [edi + 0xa48]
push ebx
mov edx, ecx
mov eax, esi
call fcn.00422b90
cmp word [edi + 0x404], 0
lea esi, [edi + 0x404]
jne 0x42ae95
push 0x543fa8
push 0x100
push esi
call fcn.00450bd1
mov ecx, dword [0x57c8d8]
add esp, 0xc
test ecx, ecx
je 0x42ae95
mov eax, dword [0x57d0e4]
mov edx, dword [ecx]
mov edx, dword [edx + 0xa4]
push eax
push 0
call edx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.004efaf0
push eax
push str.cpuz__d.cvf
push 0x100
push esi
call fcn.00450bd1
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42af94
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 0x43
push 0
mov byte [esp + 0x498], al
mov byte [esp + 0x49c], al
lea eax, [esp + 0x14]
push eax
push 0xb
lea ecx, [esp + 0x4a0]
push ecx
push esi
mov byte [esp + 0x4a9], 0x50
mov byte [esp + 0x4aa], 0x55
mov byte [esp + 0x4ab], 0x5a
mov byte [esp + 0x4ad], 0x56
mov byte [esp + 0x4ae], 0x46
mov byte [esp + 0x4af], 0x32
mov byte [esp + 0x4b0], 0x30
mov byte [esp + 0x4b1], 0x30
mov byte [esp + 0x4b2], 0x23
call ebp
mov eax, dword [edi + 0xa48]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push esi
call ebp
mov eax, dword [0x57d0f0]
movzx ecx, byte [eax]
add cl, 5
mov byte [esp + 0x494], cl
movzx edx, byte [eax + 4]
add dl, 5
mov byte [esp + 0x495], dl
movzx ecx, byte [eax + 8]
add cl, 5
mov byte [esp + 0x496], cl
movzx edx, byte [eax + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x4a0]
push ecx
add dl, 5
push esi
mov byte [esp + 0x4ab], dl
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00451ca2
mov ecx, eax
call fcn.0045054e
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a4]
xor ecx, esp
call fcn.004edcb6
add esp, 0x4b4
ret
Function at 0x436d65
Capabilities:
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x188]
sub esp, 0x208
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp + 0x184], eax
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
push 0x200
lea eax, [ebp - 0x7c]
push eax
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 + 0xb10], bl
mov byte [esi + 0x810], bl
mov byte [esi + 4], bl
mov byte [esi + 0xb78], bl
mov dword [esi + 0x204], edi
mov dword [esi + 0xb6c], ebx
mov dword [esi + 0x208], ebx
mov dword [esi + 0x20c], ebx
mov dword [esi + 0xb5c], ebx
mov dword [esi + 0xb60], ebx
mov dword [esi + 0xb64], ebx
mov dword [esi + 0xd7c], ebx
mov dword [esi + 0xb50], edi
mov dword [esi + 0xb54], edi
mov dword [esi + 0xb58], edi
mov dword [esi + 0xb68], edi
mov dword [esi + 0xd78], edi
mov dword [esi + 0xd80], edi
mov dword [esi + 0xd84], edi
mov dword [esi + 0xd88], edi
mov dword [esi + 0xd8c], edi
mov dword [esi + 0xb70], ebx
mov dword [esi + 0xb74], ebx
mov byte [ebp - 0x7c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov dword [ebp - 0x80], eax
cmp eax, ebx
jbe 0x436e9d
push str._temp
lea eax, [ebp - 0x7c]
push 0x200
push eax
call fcn.00450c1b
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, edi
je 0x436e52
test al, 0x10
jne 0x436e55
mov dword [ebp - 0x80], ebx
cmp dword [ebp - 0x80], ebx
jbe 0x436e9d
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 + 0xb78]
push edi
call fcn.00450b87
push 0x51614c
push edi
lea edi, [esi + 0xb70]
push edi
call fcn.004eed67
mov edi, dword [edi]
add esp, 0x20
cmp edi, ebx
je 0x436e9d
push edi
call fcn.004ee46c
pop ecx
mov ecx, dword [ebp + 0x184]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004edcb6
add ebp, 0x188
leave
ret

Function at 0x436ebe
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5706b0]
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 + 0xb70]
push 0x516178
add edi, 0xb78
push edi
push esi
call fcn.004eed67
add esp, 0xc
cmp dword [esi], 0
je 0x436f33
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004eec86
lea eax, [ebp - 0x104]
push eax
push dword [esi]
call fcn.004efb9b
push dword [esi]
call fcn.004ee46c
add esp, 0x1c
and dword [esi], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004edcb6
leave
ret
Function at 0x436f41
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xcc
mov eax, dword [0x5706b0]
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.004ef550
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 0x436fb4
mov ebx, 0x94
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ef550
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
call edi
test eax, eax
jne 0x436fb4
push str._vGetOSVersion__GetVersionEx_returned_NULL_n
push esi
call fcn.00436ebe
pop ecx
pop ecx
jmp 0x437080
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 + 0xb50], eax
mov dword [esi + 0xb54], ecx
mov dword [esi + 0xb58], edx
call fcn.00436ebe
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.kernel32.dll
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x43706c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push ebx
call edi
test eax, eax
je 0x437065
lea ecx, [ebp - 0x54]
push ecx
call eax
movzx eax, word [ebp - 0x54]
mov dword [esi + 0xb68], eax
cmp eax, 9
jne 0x437045
push str.IsWow64Process
push ebx
call edi
test eax, eax
je 0x437065
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x30]
call eax
test eax, eax
je 0x437065
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0xb5c], eax
jmp 0x437065
cmp eax, 6
jne 0x437056
mov dword [esi + 0xb60], 1
jmp 0x437065
cmp eax, 2
jne 0x437065
mov dword [esi + 0xb64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [esi + 0xb5c]
push str._vGetOSVersion__m_bIsAMD64___d_n
push esi
call fcn.00436ebe
add esp, 0xc
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004edcb6
add ebp, 0x78
leave
ret

Function at 0x437092
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x2710
push dword [esi + 0xb6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4370cb
push eax
push str._vCloseDriver__WaitForSingleObject_error___d_n
push esi
call fcn.00436ebe
add esp, 0xc
jmp 0x4370f9
mov eax, dword [esi + 0xb50]
dec eax
je 0x4370e6
dec eax
jne 0x4370ed
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.004383d5
jmp 0x4370ed
mov ecx, esi
call fcn.00437e09
push dword [esi + 0xb6c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0xb6c]
test eax, eax
je 0x437120
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
push str._vCloseDriver__CloseHandle_mutex____d_n
push esi
call fcn.00436ebe
add esp, 0xc
and dword [esi + 0xb6c], 0
cmp dword [ebp + 0x10], 0
je 0x437138
lea eax, [esi + 0xb78]
cmp byte [eax], 0
je 0x437138
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
leave
ret 0xc
Function at 0x437534
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x2a8
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp + 0x224], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x234]
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x80], ecx
call fcn.004ef550
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 0x4375a4
push 0x94
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004ef550
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x94
call esi
push ebx
mov esi, 0x200
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00450b87
mov eax, dword [ebp - 0x68]
add esp, 0xc
dec eax
je 0x437608
dec eax
jne 0x43761d
cmp dword [ebp - 0x74], 4
jbe 0x4375e6
cmp dword [ebp - 0x74], 5
jne 0x4375d1
cmp dword [ebp - 0x70], eax
je 0x4375e6
push ebx
push str.Global_s
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00450b87
add esp, 0x10
jmp 0x4375f4
push ebx
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00450b87
add esp, 0xc
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x230]
call fcn.0043722b
jmp 0x43761a
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 esi
xor ecx, ebp
pop ebx
call fcn.004edcb6
add ebp, 0x228
leave
ret 8
Function at 0x437e79
Capabilities:
Create service

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x194]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x80], eax
lea eax, [esi + 0x610]
push eax
mov edi, 0x200
lea eax, [ebp - 0x78]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.004ef010
lea eax, [ebp - 0x78]
push eax
call fcn.004f00e0
lea eax, [ebp + eax - 0x78]
add esp, 0x10
cmp byte [eax - 1], 0x5c
je 0x437ed9
mov byte [eax], 0x5c
mov byte [eax + 1], bl
lea eax, [esi + 0xa10]
push eax
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00450c1b
lea eax, [ebp - 0x78]
push eax
push str._WinNT_bCreateService__szDestName___s_n
push esi
call fcn.00436ebe
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x78]
push ecx
xor edi, edi
inc edi
push edi
push 3
push edi
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push eax
push dword [esi + 0x208]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
jne 0x437f5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bCreateService__CreateService_failed__error_code___d_n
push esi
mov dword [ebp - 0x7c], eax
call fcn.00436ebe
mov eax, dword [ebp - 0x7c]
add esp, 0xc
sub eax, 5
je 0x437f53
sub eax, 0x42b
je 0x437f53
dec eax
je 0x437f57
xor edi, edi
jmp 0x437f81
mov dword [ebp - 0x7c], ebx
jmp 0x437f81
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
jne 0x437f81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bCreateService__CloseServiceHandle_failed__errorcode___d_n
push esi
mov dword [ebp - 0x7c], eax
call fcn.00436ebe
add esp, 0xc
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x188]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004edcb6
add ebp, 0x18c
leave
ret 4

Function at 0x437fa5
Capabilities:
Delete service

Disassembly:
push ebp
push esi
push edi
mov esi, ecx
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push dword [esi + 0x208]
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
jne 0x437fe3
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.00436ebe
add esp, 0xc
jmp 0x438027
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x438008
call ebx
mov edi, eax
push edi
push str._WinNT_dwDeleteService__DeleteService_failed__errorcode___d_n
push esi
call fcn.00436ebe
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x438026
call ebx
mov edi, eax
push edi
push str._WinNT_dwDeleteService__CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.00436ebe
add esp, 0xc
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x43802d
Capabilities:
Start service

Disassembly:
push ecx
push ebx
push esi
mov ebx, ecx
push 0xf01ff
lea eax, [ebx + 0xb10]
push eax
push dword [ebx + 0x208]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [esp + 8], eax
test eax, eax
jne 0x438079
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.00436ebe
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
pop esi
pop ebx
pop ecx
ret 4
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 0x4380c0
call ebp
mov esi, eax
push esi
push str._WinNT_bStartService__StartService_failed__error_code___d_n
push ebx
call fcn.00436ebe
add esp, 0xc
mov eax, esi
dec eax
dec eax
je 0x4380be
dec eax
je 0x4380be
sub eax, 0x23e
je 0x4380be
sub eax, 0x1df
je 0x4380e7
dec eax
dec eax
xor edi, edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x4380e1
call ebp
mov esi, eax
push esi
push str._WinNT_bStartService__CloseServiceHandle_failed__errorcode___d_n
push ebx
call fcn.00436ebe
add esp, 0xc
mov eax, edi
pop edi
pop ebp
jmp 0x43806d
xor edi, edi
xor esi, esi
inc edi
jmp 0x4380c0
Function at 0x4380ee
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push esi
push edi
mov esi, ecx
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push dword [esi + 0x208]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x43813b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str._WinNT_dwStopService__OpenService_failed__errorcode___d_n
push esi
call fcn.00436ebe
add esp, 0xc
mov eax, edi
jmp 0x4381fd
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x24]
push eax
push 4
push edi
call ebx
test eax, eax
je 0x4381bc
push dword [ebp - 0x20]
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_INTERROGATE__status__0x_X_n
push esi
call fcn.00436ebe
add esp, 0xc
cmp dword [ebp - 0x20], 1
je 0x4381d4
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call ebx
test eax, eax
je 0x4381ae
push dword [ebp - 0x20]
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__status__0x_X_n
push esi
call fcn.00436ebe
add esp, 0xc
cmp dword [ebp - 0x20], 3
jne 0x4381d4
lea edi, [esi + 0x204]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
lea eax, [ebp - 0x24]
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 0x4381cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__failed__errorcode___d_n
jmp 0x4381c8
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 esi
call fcn.00436ebe
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
test eax, eax
jne 0x4381fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_dwStopService__CloseServiceHandle_failed__errorcode___d_n
push esi
mov dword [ebp - 4], eax
call fcn.00436ebe
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x4382a4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 0x18]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 8]
push eax
lea edi, [esi + 0x210]
push edi
mov dword [ebp - 8], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push edi
push str._WinNT_bInstallDriver__szMachineName___s_n
push esi
call fcn.00436ebe
add esp, 0xc
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esi + 0x208], eax
cmp eax, edi
jne 0x43831c
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.00436ebe
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
leave
ret 4
cmp dword [esi + 0x20c], edi
je 0x43837c
mov dword [ebp - 4], edi
cmp dword [esi + 0xb5c], edi
je 0x438337
push dword [esi + 0xd88]
jmp 0x438355
cmp dword [esi + 0xb60], edi
je 0x438347
push dword [esi + 0xd8c]
jmp 0x438355
cmp dword [esi + 0xb64], edi
jne 0x43837c
push dword [esi + 0xd84]
mov ecx, esi
call fcn.00438897
mov dword [ebp - 4], eax
cmp eax, edi
je 0x43837c
push str._WinNT_bInstallDriver__Unable_to_extract_driver_file_n
push esi
call fcn.00436ebe
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
jmp 0x438316
push ebx
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00437e79
mov ebx, eax
cmp ebx, edi
je 0x4383a6
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0043802d
mov ebx, eax
cmp ebx, edi
jne 0x4383a6
mov ecx, esi
call fcn.00437fa5
mov eax, dword [esi + 0x208]
cmp eax, edi
je 0x4383d0
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x4383d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinNT_bInstallDriver__CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.00436ebe
add esp, 0xc
mov eax, ebx
pop ebx
jmp 0x438372
Function at 0x4384f1
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5706b0]
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.004f00e0
pop ecx
test eax, eax
jle 0x43855c
cmp byte [esi + eax + 0x60f], 0x5c
lea eax, [esi + 0xa10]
push eax
push edi
lea eax, [ebp - 0x6c]
jne 0x438547
push str._s_s
jmp 0x43854c
push 0x516d0c
push 0x200
push eax
call fcn.00450b87
add esp, 0x14
jmp 0x438579
lea eax, [esi + 0xa10]
push eax
push 0x514d14
lea eax, [ebp - 0x6c]
push 0x200
push eax
call fcn.00450b87
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 0x4385a5
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.00436ebe
add esp, 0x10
jmp 0x4385b7
lea eax, [ebp - 0x6c]
push eax
push str._bDeleteFile__DeleteFile__s_succeeded_n
push esi
call fcn.00436ebe
add esp, 0xc
lea eax, [esi + 0x410]
push ebx
push eax
call fcn.004f00e0
push edi
mov ebx, eax
call fcn.004f00e0
pop ecx
pop ecx
cmp eax, ebx
pop ebx
jbe 0x438608
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x4385f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._bDeleteFile__RemoveDirectory__s_failed__error___d__n
push esi
call fcn.00436ebe
add esp, 0x10
jmp 0x438608
push edi
push str._bDeleteFile__RemoveDirectory__s_succeeded_n
push esi
call fcn.00436ebe
add esp, 0xc
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.004edcb6
add ebp, 0x198
leave
ret
Function at 0x450933
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, dword [ebp + 0x1bc]
push ebx
push edi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c0]
xor edi, edi
push str.setupapi.dll
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
je 0x450ab6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CM_Get_DevNode_Registry_PropertyA
push ebx
call esi
push str.CM_Locate_DevNodeA
push ebx
mov dword [ebp - 0x64], eax
call esi
push str.CM_Get_Child
push ebx
mov dword [ebp - 0x6c], eax
call esi
push str.CM_Get_Sibling
push ebx
mov dword [ebp - 0x70], eax
call esi
push str.CM_Get_Parent
push ebx
mov dword [ebp - 0x60], eax
call esi
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x64], edi
je 0x450aae
cmp dword [ebp - 0x6c], edi
je 0x450aae
cmp dword [ebp - 0x70], edi
je 0x450aae
cmp dword [ebp - 0x60], edi
je 0x450aae
cmp eax, edi
je 0x450aae
push edi
push edi
lea eax, [ebp - 0x54]
push eax
call dword [ebp - 0x6c]
test eax, eax
jne 0x450aab
mov esi, 0x200
push edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
push 0xa
push dword [ebp - 0x54]
mov dword [ebp - 0x68], esi
call dword [ebp - 0x64]
test eax, eax
jne 0x450a2a
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x80]
call fcn.004f0170
pop ecx
pop ecx
test eax, eax
je 0x450a77
push edi
push dword [ebp - 0x54]
lea eax, [ebp - 0x58]
push eax
call dword [ebp - 0x70]
test eax, eax
je 0x450a61
push edi
push dword [ebp - 0x54]
jmp 0x450a56
push edi
push dword [ebp - 0x54]
lea eax, [ebp - 0x58]
push eax
call dword [ebp - 0x78]
test eax, eax
jne 0x450a69
mov eax, dword [ebp - 0x58]
push edi
mov dword [ebp - 0x54], eax
push eax
lea eax, [ebp - 0x58]
push eax
call dword [ebp - 0x60]
test eax, eax
jne 0x450a3f
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
jmp 0x450a70
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x74], edi
je 0x4509ff
jmp 0x450aae
push edi
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], esi
lea eax, [ebp - 0x50]
push eax
push edi
xor esi, esi
inc esi
push esi
push dword [ebp - 0x54]
call dword [ebp - 0x64]
test eax, eax
jne 0x450aab
lea eax, [ebp - 0x50]
push eax
push 0x100
push dword [ebp - 0x7c]
call fcn.004ef010
add esp, 0xc
mov dword [ebp - 0x5c], esi
jmp 0x450aae
mov dword [ebp - 0x5c], edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ebp - 0x5c]
pop edi
xor ecx, ebp
pop ebx
call fcn.004edcb6
add ebp, 0x1b4
leave
ret