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

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x4151e5
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x4151f8
pop ebx
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov cl, byte [esi + 0xe]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
mov edi, 1
push esi
shl edi, cl
mov word [esp + 0x14], 0x4d42
call ebp
add eax, 0xe
mov dword [esp + 0x12], eax
xor eax, eax
push ebx
mov word [esp + 0x1a], ax
mov word [esp + 0x1c], ax
mov eax, dword [esi]
push 0xe
lea edx, [esp + 0x18]
lea ecx, [eax + edi*4 + 0xe]
push 1
push edx
mov dword [esp + 0x2a], ecx
call fcn.00498e14
add esp, 0x10
push ebx
push esi
call ebp
push eax
push 1
push esi
call fcn.00498e14
add esp, 0x10
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8
Function at 0x4178a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
xor edx, edx
cmp eax, 1
push edi
mov esi, ecx
jne 0x417949
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3cc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
div ecx
mov ebp, dword [esp + 0x18]
test eax, eax
jbe 0x417a18
lea edi, [esi + 0x3f4]
nop
xor edx, edx
test ecx, ecx
mov eax, edi
jle 0x417903
mov ecx, dword [esp + 0x14]
sub ecx, edi
mov edi, edi
mov bl, byte [ecx + eax]
xor byte [eax], bl
add edx, 1
add eax, 1
cmp edx, dword [esi + 0x3cc]
jl 0x4178f0
push ebp
push edi
mov ecx, esi
call fcn.004175d0
mov ecx, dword [esi + 0x3cc]
push ecx
push ebp
push edi
call fcn.00499030
mov eax, dword [esi + 0x3cc]
add dword [esp + 0x20], eax
add ebp, eax
mov ecx, eax
mov eax, dword [esp + 0x28]
xor edx, edx
div ecx
mov ebx, dword [esp + 0x2c]
add ebx, 1
add esp, 0xc
mov dword [esp + 0x20], ebx
cmp ebx, eax
jb 0x4178e0
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp eax, 2
mov eax, dword [esp + 0x1c]
jne 0x4179de
div dword [esi + 0x3cc]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
jbe 0x417a18
mov edi, edi
push edi
lea eax, [esi + 0x3f4]
push eax
mov ecx, esi
call fcn.004175d0
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
mov eax, edi
jle 0x4179a3
jmp 0x417990
mov dl, byte [ecx + ebp]
xor byte [eax], dl
add ecx, 1
add eax, 1
cmp ecx, dword [esi + 0x3cc]
jl 0x417990
mov eax, dword [esi + 0x3cc]
push eax
lea eax, [esi + 0x3f4]
push edi
push eax
call fcn.00499030
mov eax, dword [esi + 0x3cc]
add ebp, eax
add edi, eax
mov eax, dword [esp + 0x28]
xor edx, edx
div dword [esi + 0x3cc]
add ebx, 1
add esp, 0xc
cmp ebx, eax
jb 0x417970
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
div dword [esi + 0x3cc]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
test eax, eax
jbe 0x417a18
push ebx
push edi
mov ecx, esi
call fcn.004175d0
mov eax, dword [esi + 0x3cc]
add edi, eax
add ebx, eax
mov eax, dword [esp + 0x1c]
xor edx, edx
div dword [esi + 0x3cc]
add ebp, 1
cmp ebp, eax
jb 0x4179f2
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x421acb
Capabilities:
Get common file path

Disassembly:
sub esp, 0x204
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
or eax, 0xffffffff
xor ebx, ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi + 0x204], eax
mov dword [esi + 0xb50], eax
mov dword [esi + 0xb54], eax
mov dword [esi + 0xb58], eax
mov dword [esi + 0xb64], eax
mov dword [esi + 0xd70], eax
mov dword [esi + 0xd78], eax
mov dword [esi + 0xd7c], eax
mov dword [esi + 0xd80], eax
mov dword [esi + 0xd84], eax
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 0xb70]
lea ebp, [esi + 0xb6c]
push 0x200
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 [edi], bl
mov dword [esi + 0xb68], ebx
mov dword [esi + 0x208], ebx
mov dword [esi + 0x20c], ebx
mov dword [esi + 0xb5c], ebx
mov dword [esi + 0xb60], ebx
mov dword [esi + 0xd74], ebx
mov dword [ebp], ebx
mov byte [esp + 0x18], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x421bc0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4c3480
push 0x200
push edi
call fcn.004374b0
push 0x4b6804
push edi
push ebp
call fcn.0049798f
mov ebp, dword [ebp]
add esp, 0x20
cmp ebp, ebx
je 0x421bc0
push ebp
call fcn.0049784f
add esp, 4
mov ecx, dword [esp + 0x210]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004972eb
add esp, 0x204
ret
Function at 0x421c80
Capabilities:
Check os version

Disassembly:
sub esp, 0xc8
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
push edi
push 0x9c
lea eax, [esp + 0x34]
push 0
push eax
mov esi, ecx
call fcn.00497ff0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x9c
call edi
test eax, eax
jne 0x421d10
push 0x94
push eax
lea edx, [esp + 0x38]
push edx
call fcn.00497ff0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x94
call edi
test eax, eax
jne 0x421d10
push str.GetVersionEx_returned_NULL_n
push esi
call fcn.00421bf0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.004972eb
add esp, 0xc8
ret
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
push ebp
push edx
push ecx
push eax
push str.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.00421bf0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x4b7870
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421dbe
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push edi
call ebx
test eax, eax
je 0x421db6
lea ecx, [esp + 0x14]
push ecx
call eax
movzx eax, word [esp + 0x14]
cmp eax, 9
mov dword [esi + 0xb64], eax
jne 0x421da7
push str.IsWow64Process
push edi
call ebx
test eax, eax
je 0x421db6
lea edx, [esp + 0x10]
push edx
push ebp
call eax
test eax, eax
je 0x421db6
mov eax, dword [esp + 0x10]
mov dword [esi + 0xb5c], eax
jmp 0x421db6
cmp eax, 6
jne 0x421db6
mov dword [esi + 0xb60], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov ecx, dword [esi + 0xb5c]
push ecx
push str.m_bIsAMD64___d_n
push esi
call fcn.00421bf0
mov ecx, dword [esp + 0xdc]
add esp, 0xc
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.004972eb
add esp, 0xc8
ret

Function at 0x421df0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xb68]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x421e3d
mov eax, dword [esi + 0xb50]
sub eax, 1
je 0x421e29
sub eax, 1
jne 0x421e30
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
mov ecx, esi
call fcn.00422ea0
jmp 0x421e30
mov ecx, esi
call fcn.00422830
mov eax, dword [esi + 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0xb68]
test eax, eax
je 0x421e67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
push str.CloseHandle_mutex____d_n
push esi
call fcn.00421bf0
add esp, 0xc
mov dword [esi + 0xb68], 0
cmp dword [esp + 0x10], 0
je 0x421e84
cmp byte [esi + 0xb70], 0
lea eax, [esi + 0xb70]
je 0x421e84
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret 0xc
Function at 0x421fc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b4]
push edi
push 0x9c
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, ecx
call fcn.00497ff0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x9c
call edi
test eax, eax
jne 0x422031
push 0x94
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00497ff0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call edi
push esi
lea ecx, [esp + 0xb0]
push 0x200
push ecx
call fcn.004374b0
mov eax, dword [esp + 0x2c]
add esp, 0xc
sub eax, 1
je 0x4220d4
sub eax, 1
jne 0x4220ee
mov eax, dword [esp + 0x14]
cmp eax, 4
jbe 0x4220a5
cmp eax, 5
jne 0x422071
cmp dword [esp + 0x18], ebx
je 0x4220a5
push esi
push str.Global_s
lea edx, [esp + 0xb4]
push 0x200
push edx
call fcn.004374b0
mov edx, dword [esp + 0x2c4]
add esp, 0x10
lea ecx, [esp + 0xac]
push ecx
push edx
mov ecx, ebp
call fcn.00437010
jmp 0x4220f0
push esi
lea eax, [esp + 0xb0]
push 0x200
push eax
call fcn.004374b0
mov edx, dword [esp + 0x2c0]
add esp, 0xc
lea ecx, [esp + 0xac]
push ecx
push edx
mov ecx, ebp
call fcn.00437010
jmp 0x4220f0
mov ecx, dword [esp + 0x2b4]
lea eax, [esp + 0xac]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x4220f0
mov eax, ebx
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004972eb
add esp, 0x2a0
ret 8
Function at 0x4226d0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x204
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
mov esi, ecx
push str.Win9x_hCreateServiceHandle_n
push esi
call fcn.00421bf0
lea eax, [esi + 0xb10]
push eax
push str.._s.vxd
lea ecx, [esp + 0x20]
push 0x200
push ecx
xor ebx, ebx
call fcn.004374b0
add esp, 0x18
lea edi, [esi + 0x610]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
lea edx, [esp + 0x14]
push edx
push str.Win9x_hCreateServiceHandle_service___s__path___s__n
push esi
call fcn.00421bf0
add esp, 0x10
push ebx
push 0x4000000
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x422772
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
push ebx
push str.Win9x_hCreateServiceHandle_CreateFile_error___d__handle___X_n
push esi
call fcn.00421bf0
add esp, 0x10
add esi, 4
push esi
mov dword [ebp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004972eb
add esp, 0x204
ret 4

Function at 0x4228e0
Capabilities:
Create service

Disassembly:
sub esp, 0x204
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
mov ebp, dword [esp + 0x210]
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x610]
push eax
lea ecx, [esp + 0x14]
push 0x200
push ecx
xor ebx, ebx
call fcn.004979df
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422923
sub eax, edx
cmp byte [esp + eax + 0xf], 0x5c
lea eax, [esp + eax + 0x10]
je 0x42293f
mov byte [eax], 0x5c
mov byte [eax + 1], bl
lea edx, [esi + 0xa10]
push edx
lea eax, [esp + 0x14]
push 0x200
push eax
call fcn.004373f0
push str.WinNT_bCreateService_n
push esi
call fcn.00421bf0
lea ecx, [esp + 0x24]
push ecx
push str.szDestName___s_n
push esi
call fcn.00421bf0
add esp, 0x20
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 1
push 3
push 1
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push eax
mov eax, dword [esi + 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4229db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.CreateService_failed__error_code___d_n
push esi
call fcn.00421bf0
mov eax, ebx
add esp, 0xc
sub eax, 5
je 0x4229d0
sub eax, 0x42b
je 0x4229d0
sub eax, 1
je 0x4229d4
xor edi, edi
jmp 0x4229ff
mov edi, 1
jmp 0x4229ff
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x4229ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.WinNT_bCreateService_:_CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.00421bf0
add esp, 0xc
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
pop esi
mov dword [ebp], ebx
pop ebp
pop ebx
xor ecx, esp
call fcn.004972eb
add esp, 0x204
ret 4
Function at 0x422a20
Capabilities:
Delete service

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push str.WinNT_dwDeleteService_n
push esi
xor edi, edi
call fcn.00421bf0
mov ecx, dword [esi + 0x208]
add esp, 8
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x422a71
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.00421bf0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x422a96
call ebp
mov edi, eax
push edi
push str.WinNT_dwDeleteService_:_DeleteService_failed__errorcode___d_n
push esi
call fcn.00421bf0
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x422ab4
call ebp
mov edi, eax
push edi
push str.WinNT_dwDeleteService_:_CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.00421bf0
add esp, 0xc
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x422ac0
Capabilities:
Start service

Disassembly:
push ebx
push ebp
push esi
mov ebx, ecx
push str.WinNT_bStartService_n
push ebx
call fcn.00421bf0
mov ecx, dword [ebx + 0x208]
add esp, 8
push 0xf01ff
lea eax, [ebx + 0xb10]
push eax
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
jne 0x422b19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.OpenService_failed__error_code___d_n
push ebx
call fcn.00421bf0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push edi
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, eax
test edi, edi
jne 0x422b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.StartService_failed__error_code___d_n
push ebx
call fcn.00421bf0
add esp, 0xc
cmp esi, 0x420
ja 0x422b58
je 0x422b8b
mov eax, esi
sub eax, 2
je 0x422b58
sub eax, 0x23f
xor edi, edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x422b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.WinNT_bStartService_:_CloseServiceHandle_failed__errorcode___d_n
push ebx
call fcn.00421bf0
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov edi, 1
jmp 0x422b5a
Function at 0x422ba0
Capabilities:
Continue service
Stop service

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
push str.WinNT_dwStopService_n
push esi
mov dword [esp + 0x10], 0
call fcn.00421bf0
mov ecx, dword [esi + 0x208]
add esp, 8
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x422bfb
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.00421bf0
add esp, 0xc
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
lea edx, [esp + 0x10]
push edx
push 4
push edi
call ebp
test eax, eax
je 0x422c7b
cmp dword [esp + 0x14], 1
je 0x422c7b
push ebx
lea eax, [esp + 0x14]
push eax
push 1
push edi
call ebp
cmp dword [esp + 0x18], 3
mov ebx, eax
jne 0x422c5d
mov ecx, dword [esi + 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push 1
push edi
mov dword [esi + 0x204], 0xffffffff
call ebp
mov ebx, eax
push ebx
push str.WinNT_dwStopService_:_ControlService_failed__pending__result___d_n
push esi
call fcn.00421bf0
add esp, 0xc
test ebx, ebx
pop ebx
jne 0x422c7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinNT_dwStopService_:_ControlService_failed__errorcode___d_n
push esi
mov dword [esp + 0x18], eax
call fcn.00421bf0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
pop ebp
jne 0x422ca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinNT_dwStopService_:_CloseServiceHandle_failed__errorcode___d_n
push esi
mov dword [esp + 0x14], eax
call fcn.00421bf0
add esp, 0xc
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x20
ret
Function at 0x422d30
Capabilities:
Get hostname

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
push str.WinNT_bInstallDriver_n
push esi
call fcn.00421bf0
add esp, 8
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 0x210]
push edi
xor ebx, ebx
mov dword [esp + 0x18], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push edi
push str.szMachineName___s_n
push esi
call fcn.00421bf0
add esp, 0xc
cmp byte [edi], bl
je 0x422d77
mov ebx, edi
push 0xf003f
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [esi + 0x208], eax
jne 0x422db7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.OpenSCManager_failed__error_code___d_n
push esi
call fcn.00421bf0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [ecx], edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
cmp dword [esi + 0x20c], 0
je 0x422e19
cmp dword [esi + 0xb5c], 0
je 0x422dd2
mov edx, dword [esi + 0xd80]
push edx
jmp 0x422deb
cmp dword [esi + 0xb60], 0
je 0x422de4
mov eax, dword [esi + 0xd84]
push eax
jmp 0x422deb
mov ecx, dword [esi + 0xd7c]
push ecx
mov ecx, esi
call fcn.00423420
test eax, eax
jne 0x422e19
push str.Unable_to_extract_driver_file_n
push esi
call fcn.00421bf0
mov edx, dword [esp + 0x20]
add esp, 8
pop edi
pop esi
mov dword [edx], 0x5001
xor eax, eax
pop ebx
add esp, 8
ret 4
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004228e0
mov edi, eax
test edi, edi
je 0x422e44
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00422ac0
mov edi, eax
test edi, edi
jne 0x422e44
mov ecx, esi
call fcn.00422a20
mov eax, dword [esi + 0x208]
test eax, eax
je 0x422e74
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x422e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.WinNT_bInstallDriver_:_CloseServiceHandle_failed__errorcode___d_n
push esi
call fcn.00421bf0
add esp, 0xc
jmp 0x422e78
mov ebx, dword [esp + 0xc]
cmp dword [esi + 0x20c], 0
je 0x422e88
mov ecx, esi
call fcn.00422ff0
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword [edx], ebx
pop ebx
add esp, 8
ret 4

Function at 0x422ff0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x204
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0xa10]
push eax
lea edi, [esi + 0x610]
push edi
push str._s_s
lea ecx, [esp + 0x18]
push 0x200
push ecx
call fcn.004374b0
add esp, 0x14
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
lea ebx, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x423040
lea edx, [esi + 0x410]
sub ecx, ebx
lea esi, [edx + 1]
mov bl, byte [edx]
add edx, 1
test bl, bl
jne 0x423054
sub edx, esi
cmp ecx, edx
jbe 0x42306a
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004972eb
add esp, 0x204
ret
Function at 0x437bb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b8]
push edi
push 0x9c
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, ecx
call fcn.00497ff0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x9c
call edi
test eax, eax
jne 0x437c21
push 0x94
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00497ff0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call edi
push esi
lea ecx, [esp + 0xb0]
push 0x200
push ecx
call fcn.004374b0
mov eax, dword [esp + 0x2c]
add esp, 0xc
sub eax, 1
je 0x437cc4
sub eax, 1
jne 0x437cde
mov eax, dword [esp + 0x14]
cmp eax, 4
jbe 0x437c95
cmp eax, 5
jne 0x437c61
cmp dword [esp + 0x18], ebx
je 0x437c95
push esi
push str.Global_s
lea edx, [esp + 0xb4]
push 0x200
push edx
call fcn.004374b0
mov edx, dword [esp + 0x2c8]
add esp, 0x10
lea ecx, [esp + 0xac]
push ecx
push edx
mov ecx, ebp
call fcn.00437010
jmp 0x437ce0
push esi
lea eax, [esp + 0xb0]
push 0x200
push eax
call fcn.004374b0
mov edx, dword [esp + 0x2c4]
add esp, 0xc
lea ecx, [esp + 0xac]
push ecx
push edx
mov ecx, ebp
call fcn.00437010
jmp 0x437ce0
mov ecx, dword [esp + 0x2b8]
lea eax, [esp + 0xac]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x437ce0
mov eax, ebx
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004972eb
add esp, 0x2a0
ret 0xc
Function at 0x438360
Capabilities:
Get file version info

Disassembly:
sub esp, 0x58
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x64]
push edi
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x20], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4384b6
push esi
push edi
call fcn.00488f77
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4384ac
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x4c3de4
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4384ac
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43848d
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 2]
movzx eax, word [eax]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43843f
mov edx, dword [esp + 0x14]
push edx
lea eax, [ebx + 0x10]
push 0x100
push eax
call fcn.004374b0
add esp, 0xc
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43848d
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [ebx + 0x110]
push 0x100
push edx
call fcn.004374b0
add esp, 0xc
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0xa]
mov dword [ebx], ecx
movzx edx, word [eax + 8]
mov dword [ebx + 4], edx
movzx ecx, word [eax + 0xe]
mov dword [ebx + 8], ecx
movzx edx, word [eax + 0xc]
mov dword [ebx + 0xc], edx
push esi
call fcn.00488fa7
add esp, 4
pop esi
mov ecx, dword [esp + 0x60]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004972eb
add esp, 0x58
ret 8