Function at 0x4167d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466688
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x47e048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 0x100], 0
mov ecx, esp
xorps xmm0, xmm0
push 0xf
movups xmmword [ecx], xmm0
push str.sc_stop_HookDrv
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00408640
call fcn.00417b10
mov ecx, esp
xorps xmm0, xmm0
push 0x11
push str.sc_delete_HookDrv
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00408640
call fcn.00417b10
add esp, 0x18
push 0x46a91c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0xfc]
mov esi, 0xe
mov dword [ebp - 0x104], eax
call fcn.0041a778
mov edi, eax
xor eax, eax
mov dword [ebp - 4], 0
push eax
push eax
push esi
xorps xmm0, xmm0
mov dword [ebp - 0xec], 0
push 0x46a91c
mov ecx, 7
mov dword [ebp - 0x100], 4
movups xmmword [ebp - 0xfc], xmm0
push edi
mov dword [ebp - 0xe8], ecx
mov word [ebp - 0xfc], ax
call fcn.0041a796
mov esi, eax
test edx, edx
jne 0x416bf3
mov ecx, dword [ebp - 0xec]
cmp esi, ecx
ja 0x4168fb
cmp dword [ebp - 0xe8], 8
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xec], esi
cmovae eax, dword [ebp - 0xfc]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x41690b
sub eax, ecx
lea ecx, [ebp - 0xfc]
push 0
push eax
call fcn.004172a0
cmp dword [ebp - 0xe8], 8
lea eax, [ebp - 0xfc]
push esi
cmovae eax, dword [ebp - 0xfc]
push eax
push 0xe
push 0x46a91c
push edi
call fcn.0041a796
test edx, edx
jne 0x416bf9
cmp dword [ebp - 0xe8], 8
lea ecx, [ebp - 0x30]
push 0xffffffffffffffff
push 3
lea eax, [ebp - 0xfc]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp - 0xfc]
push ecx
push eax
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], 0xffff
call fcn.0041a839
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10c], eax
push ecx
push eax
lea ecx, [ebp - 0x114]
call fcn.00416f70
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], 0x47e03c
test eax, eax
je 0x416aae
cmp eax, 1
sete byte [ebp - 0xe1]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 0xffffffff
call fcn.00406c90
cmp byte [ebp - 0xe1], 0
je 0x416b7b
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0xec], 0
push str.C:HookDrv.sys
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xe8], 0
movups xmmword [ebp - 0xfc], xmm0
call fcn.004082b0
push 0xb0
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 2
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xfc]
cmp dword [ebp - 0xe8], 8
lea ecx, [ebp - 0xe0]
cmovae eax, dword [ebp - 0xfc]
push 1
push 0x40
push 0x22
push eax
call fcn.00415c30
push 0
push 0x2f70
push 0x467878
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
lea ecx, [ebp - 0xdc]
test al, al
je 0x416ac2
call fcn.00417440
test eax, eax
jne 0x416a9a
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xe0]
call fcn.00416530
mov byte [ebp - 0xe1], 0
jmp 0x416af6
mov byte [ebp - 0xe1], 1
test ecx, ecx
jne 0x416bff
jmp 0x4169b3
call fcn.00417440
test eax, eax
jne 0x416ae4
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xe0]
call fcn.00416530
mov byte [ebp - 0xe1], 1
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x416b3f
mov edx, dword [ebp - 0xfc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416b35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416b35
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041abdb
add esp, 8
xor eax, eax
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 7
mov word [ebp - 0xfc], ax
cmp byte [ebp - 0xe1], al
je 0x416bef
push str.____Driver_buffer_created_into_image_n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00414b90
add esp, 8
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x35
movups xmmword [ecx], xmm0
push str.sc_create_HookDrv_binpathC:HookDrv.sys_typefilesys
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00408640
call fcn.00417b10
mov ecx, esp
xorps xmm0, xmm0
push 0x10
push str.sc_start_HookDrv
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00408640
call fcn.00417b10
add esp, 0x18
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041abe9
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x416bd4
push edx
call fcn.004170d0
push edx
call fcn.004170d0
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x108]
push eax
push str.exists
call fcn.00417020
int3