Function at 0x411700
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a5ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x140
push esi
push edi
sub esp, 0x18
xorps xmm0, xmm0
mov esi, esp
mov edi, ecx
mov dword [ebp - 0x24], edi
push 0xf
movups xmmword [esi], xmm0
push str.sc_stop_HookDrv
push esi
mov dword [esi + 0x10], 0xf
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xf], 0
call fcn.004108c0
mov esi, esp
xorps xmm0, xmm0
push 0x20
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.00406230
mov dword [esi], eax
mov dword [esi + 0x10], 0x11
mov dword [esi + 0x14], 0x1f
movups xmm0, xmmword [str.sc_delete_HookDrv]
movups xmmword [eax], xmm0
mov cl, byte [0x449580]
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], 0
call fcn.004108c0
add esp, 0x18
push 0x449584
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xe
mov byte [ebp - 0x20], 0
lea ecx, [ebp - 0x3c]
push 0x449584
push dword [ebp - 0x20]
call fcn.00416820
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0040ff70
test al, al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
sete al
mov byte [ebp - 0x11], al
cmp ecx, 8
jb 0x41183a
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41182d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41182d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00438d0e
mov al, byte [ebp - 0x11]
add esp, 8
test al, al
je 0x41188e
push str.C:HookDrv.sys
lea ecx, [ebp - 0x3c]
call fcn.0041a350
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.004100c0
add esp, 4
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401e10
cmp byte [ebp - 0x11], 0
jne 0x41188e
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
sub esp, 0x18
xorps xmm0, xmm0
mov esi, esp
mov ecx, esi
push 0x40
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.00406230
mov ecx, eax
mov dword [esi + 0x10], 0x35
mov dword [esi], ecx
mov dword [esi + 0x14], 0x3f
movups xmm0, xmmword [str.sc_create_HookDrv_binpathC:HookDrv.sys_typefilesys]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x4495c4]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x4495d4]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [0x4495e4]
mov dword [ecx + 0x30], eax
mov al, byte [0x4495e8]
mov byte [ecx + 0x34], al
mov byte [ecx + 0x35], 0
call fcn.004108c0
mov esi, esp
xorps xmm0, xmm0
push 0x20
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.00406230
mov dword [esi], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x14], 0x1f
movups xmm0, xmmword [str.sc_start_HookDrv]
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
call fcn.004108c0
add esp, 0x18
mov ecx, edi
call fcn.00410810
test eax, eax
je 0x4119f3
sub esp, 0x18
xorps xmm0, xmm0
mov esi, esp
push 0xf
movups xmmword [esi], xmm0
push str.sc_stop_HookDrv
push esi
mov dword [esi + 0x10], 0xf
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xf], 0
call fcn.004108c0
mov esi, esp
xorps xmm0, xmm0
push 0x20
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.00406230
mov dword [esi], eax
mov dword [esi + 0x10], 0x11
mov dword [esi + 0x14], 0x1f
movups xmm0, xmmword [str.sc_delete_HookDrv]
movups xmmword [eax], xmm0
mov cl, byte [0x449580]
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], 0
call fcn.004108c0
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x18
push 0x449584
call eax
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x150]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x3c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411a23
sub ecx, edx
lea eax, [ebp - 0x150]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406290
push 0xb
push str.module.dll
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.0041ab20
mov esi, eax
mov dword [ebp - 0x20], eax
cmp dword [esi + 0x14], 0x10
jb 0x411a62
mov esi, dword [esi]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x411a9f
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411a95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x411a95
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00438d0e
add esp, 8
push edi
push 0
push 0x1fffff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edi, eax
mov dword [ebp - 0x40], edi
cmp edi, 0xffffffff
je 0x411c57
mov edx, str.____OpenProcess_Handle_:_0x
call fcn.00401b60
push 0x41a330
mov ecx, eax
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__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push edi
mov ecx, eax
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__::operator___void_const__]
push 0x4158c0
mov ecx, eax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411b05
sub ecx, edx
push 4
push 0x1000
lea eax, [ecx + 1]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x411c50
mov edx, str.____Allocation_Base_:_0x
call fcn.00401b60
push 0x41a330
mov ecx, eax
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__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push dword [ebp - 0x1c]
mov ecx, eax
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__::operator___unsigned_long_int_]
push 0x4158c0
mov ecx, eax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411b67
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push esi
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
je 0x411c49
mov edx, str.____Path_Added_To_Thread
call fcn.00401b60
push 0x4158c0
mov ecx, eax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x44876c
push str.ntdll.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Kernel32
mov dword [ebp - 0x44], eax
call esi
push str.LoadLibraryA
push eax
call edi
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
nop dword [eax]
push 0
push 0
push 0
push 0
push 0
push edi
push eax
push esi
push 0
push 0x1fffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
call dword [ebp - 0x44]
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x24]
call fcn.00410810
test eax, eax
mov eax, dword [ebp - 0x18]
je 0x411be0
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411c22
sub ecx, edx
push 0x8000
lea eax, [ecx + 1]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.____Virtual_memory_cleaned
jmp 0x411c5c
mov edx, str._n_____Failed_to_Add_path
jmp 0x411c5c
mov edx, str._n_____Failed_to_alloc_virtual_memory
jmp 0x411c5c
mov edx, str._n_____OpenProcess_failed
call fcn.00401b60
push 0x4158c0
mov ecx, eax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0x24]
call fcn.00410810
sub esp, 0x18
xorps xmm0, xmm0
mov esi, esp
push 0xf
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0xf
mov dword [esi + 0x14], 0xf
push str.sc_stop_HookDrv
push esi
test eax, eax
jne 0x411d20
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xf], 0
call fcn.004108c0
mov esi, esp
xorps xmm0, xmm0
push 0x20
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.00406230
mov dword [esi], eax
mov dword [esi + 0x10], 0x11
mov dword [esi + 0x14], 0x1f
movups xmm0, xmmword [str.sc_delete_HookDrv]
movups xmmword [eax], xmm0
mov cl, byte [0x449580]
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], 0
call fcn.004108c0
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x18
push 0x449584
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xf], 0
call fcn.004108c0
mov esi, esp
xorps xmm0, xmm0
push 0x20
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.00406230
mov dword [esi], eax
mov dword [esi + 0x10], 0x11
mov dword [esi + 0x14], 0x1f
movups xmm0, xmmword [str.sc_delete_HookDrv]
movups xmmword [eax], xmm0
mov cl, byte [0x449580]
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], 0
call fcn.004108c0
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x18
push 0x449584
call eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret