Function at 0x4251b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x481b52
push eax
mov dword fs:[0], esp
sub esp, 0x498
push esi
push edi
push 0
call fcn.00416680
push 0x208
lea eax, [ebp - 0x4a4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x4a4]
push 0x104
push eax
call fcn.004301e0
add esp, 0x18
test al, al
jne 0x425226
push str.Couldnt_resolve_own_module_path__unicode__n
push 0
call fcn.00428a80
add esp, 8
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4a4]
push eax
push str.Rootpath_is__ls_n
push 0
call fcn.00428a80
push str.WINDIR
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push 0
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
add esp, 0x18
test eax, eax
jne 0x425c3d
cmp dword [ebp - 0x24], eax
je 0x425c3d
lea ecx, [ebp - 0x4a4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425270
sub ecx, edx
lea eax, [ebp - 0x4a4]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4ad018
call fcn.00424430
push dword [ebp - 0x24]
lea ecx, [ebp - 0x5c]
call fcn.00406c60
mov ecx, dword [ebp - 0x48]
mov eax, ecx
mov edi, dword [ebp - 0x4c]
sub eax, edi
mov dword [ebp - 4], 0
cmp eax, 0x13
jb 0x4252de
cmp ecx, 7
lea esi, [ebp - 0x5c]
lea eax, [edi + 0x13]
cmova esi, dword [ebp - 0x5c]
push 0x26
mov dword [ebp - 0x4c], eax
push str.System32_ntdll.dll
lea eax, [esi + edi*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x26], ax
jmp 0x4252f2
push 0x13
push str.System32_ntdll.dll
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
push 0x13
call fcn.00408c10
push str.Launching_PDB_thread_s__n
push 0
call fcn.00428a80
lea eax, [ebp - 0x74]
push eax
call fcn.00421da0
add esp, 0xc
push 0xf
push str.x86wntdll.pdb
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00406d90
mov edx, eax
cmp dword [edx + 0x14], 0xf
jbe 0x425326
mov edx, dword [edx]
mov ecx, edx
mov byte [ebp - 0x10], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425330
push dword [ebp - 0x10]
sub ecx, esi
lea eax, [ebp - 0x3c]
push ecx
push edx
push eax
call fcn.0041f650
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
call fcn.00424aa0
add esp, 0x14
lea ecx, [ebp - 0x3c]
call fcn.00406c00
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.00406e70
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 1
push eax
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 1
push eax
lea eax, [ebp - 0x12]
mov byte [ebp - 0x12], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x4ad018
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x40], 0x7ab410
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 0x42c190
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.0041fb90
add esp, 0x28
mov byte [ebp - 0x18], 0
mov ecx, dword [eax]
mov dword [eax], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
mov ecx, section..data
push eax
call fcn.00421410
mov ecx, dword [ebp - 0x1c]
or edi, 0xffffffff
test ecx, ecx
je 0x4253ff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4253ff
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x4253f9
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x4253fd
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x425423
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x425423
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x42541d
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x425421
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push str.Launching_import_resolver_thread_n
push 0
call fcn.00428a80
push 0xb0
mov dword [ebp - 0x44], 0x7ab638
mov dword [ebp - 0x40], 0x416820
call fcn.00435b7d
add esp, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x42546d
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.0041efc0
mov esi, eax
jmp 0x42546f
xor esi, esi
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 4
test esi, esi
je 0x425c72
lea ecx, [esi + 4]
lock inc dword [ecx]
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [ecx], eax
jne 0x4254ac
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4254a4
mov eax, dword [ecx]
push esi
jmp 0x4254aa
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov ecx, 0x4ad010
mov byte [ebp - 0x18], 0
call fcn.00421410
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4254e4
lock xadd dword [ecx + 4], edi
dec edi
jne 0x4254e4
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x4254de
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x4254e2
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x7ab5fc], eax
test eax, eax
jne 0x425515
call esi
push eax
push str.Failed_to_create_event__1_:__08X_n
push 0
call fcn.00428a80
add esp, 0xc
push 0
push 0
push 1
push 0
call edi
mov dword [0x7ab4e8], eax
test eax, eax
jne 0x42553a
call esi
push eax
push str.Failed_to_create_event__2_:__08X_n
push 0
call fcn.00428a80
add esp, 0xc
push 0
push 0
push 1
push 0
call edi
mov dword [0x7ab4ec], eax
test eax, eax
jne 0x42555f
call esi
push eax
push str.Failed_to_create_event__3_:__08X_n
push 0
call fcn.00428a80
add esp, 0xc
push 0
push 0
push 1
push 0
call edi
mov dword [0x7ab53c], eax
test eax, eax
jne 0x425584
call esi
push eax
push str.Failed_to_create_event__4_:__08X_n
push 0
call fcn.00428a80
add esp, 0xc
call sym.HOPE_Loader.exe_GetSymbolState
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x4255a0
push 0xa
call esi
call sym.HOPE_Loader.exe_GetSymbolState
test eax, eax
jne 0x425593
call sym.HOPE_Loader.exe_GetImportState
test eax, eax
je 0x4255bd
nop dword [eax]
push 0xa
call esi
call sym.HOPE_Loader.exe_GetImportState
test eax, eax
jne 0x4255b0
push str.____ntdll_pdb_loaded_n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004134f0
sub esp, 0x10
xorps xmm0, xmm0
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0xf
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.sc_stop_HookDrv]
movq qword [ecx], xmm0
mov eax, dword [0x4936c0]
mov dword [ecx + 8], eax
mov ax, word [0x4936c4]
mov word [ecx + 0xc], ax
mov al, byte [0x4936c6]
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], 0
call fcn.00426410
mov esi, esp
mov dword [ebp - 0x10], 0x1f
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00416190
mov ecx, dword [ebp - 0x10]
add esp, 8
mov dword [esi], eax
mov dword [esi + 0x10], 0x11
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.sc_delete_HookDrv]
movups xmmword [eax], xmm0
mov cl, byte [0x4936d8]
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], 0
call fcn.00426410
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x18
push 0x4936dc
call edi
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x3c]
push dword [ebp - 0x18]
push 0xe
push 0x4936dc
push eax
call fcn.0041f650
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
push eax
call fcn.00424aa0
add esp, 0x14
mov byte [ebp - 0x12], al
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00406c00
cmp byte [ebp - 0x12], 0
jne 0x4257d8
push str.C:HookDrv.sys
lea ecx, [ebp - 0x3c]
call fcn.00406c60
cmp dword [ebp - 0x28], 7
lea eax, [ebp - 0x3c]
push 1
cmova eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x124]
push 0x40
push 0x22
push eax
mov byte [ebp - 4], 6
call fcn.00420310
push 0
push 0x2f70
push 0x490328
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 7
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 - 0x120]
test al, al
je 0x42574e
call fcn.0041d5c0
test eax, eax
jne 0x42573d
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x124]
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 - 0x124]
call fcn.004215e0
mov byte [ebp - 0x11], 0
jmp 0x42577f
call fcn.0041d5c0
test eax, eax
jne 0x425770
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x124]
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 - 0x124]
call fcn.004215e0
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x4257bf
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4257b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4257b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
cmp byte [ebp - 0x11], 0
je 0x425962
push str.___Driver_buffer_created_into_image
push 0
call fcn.00428a80
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x10], 0x3f
mov esi, esp
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
movups xmmword [esi], xmm0
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00416190
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov dword [esi], edx
add esp, 8
mov dword [esi + 0x10], 0x35
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.sc_create_HookDrv_binpathC:HookDrv.sys_typefilesys]
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x493744]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [0x493754]
movups xmmword [edx + 0x20], xmm0
mov eax, dword [0x493764]
mov dword [edx + 0x30], eax
mov al, byte [0x493768]
mov byte [edx + 0x34], al
mov byte [edx + 0x35], 0
call fcn.00426410
mov esi, esp
mov dword [ebp - 0x10], 0x1f
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00416190
mov ecx, dword [ebp - 0x10]
add esp, 8
mov dword [esi], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.sc_start_HookDrv]
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
call fcn.00426410
mov eax, dword [0x69bb1c]
add esp, 0x18
cmp eax, 1
jne 0x42596c
mov esi, dword [ebp + 8]
push 0x493780
push esi
call fcn.00421e00
add esp, 8
test eax, eax
jne 0x42598e
push 0x207
push eax
mov byte [ebp - 0x29c], al
lea eax, [ebp - 0x29b]
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x94], esi
push eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 3
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x78], 0
call fcn.00421da0
add esp, 0x10
push 9
push 0x493794
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.00406d90
cmp dword [ebp - 0x28], 0xf
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x29c]
cmova ecx, dword [ebp - 0x3c]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x425950
jmp 0x425b21
mov esi, 5
jmp 0x425a3a
cmp eax, 2
jne 0x425b39
mov esi, dword [ebp + 8]
push 0x4937a0
push esi
call fcn.00421e00
add esp, 8
test eax, eax
je 0x425a88
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0xf
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.sc_stop_HookDrv]
movq qword [ecx], xmm0
mov eax, dword [0x4936c0]
mov dword [ecx + 8], eax
mov ax, word [0x4936c4]
mov word [ecx + 0xc], ax
mov al, byte [0x4936c6]
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], 0
call fcn.00426410
mov esi, esp
mov dword [ebp - 0x10], 0x1f
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00416190
mov ecx, dword [ebp - 0x10]
add esp, 8
mov dword [esi], eax
mov dword [esi + 0x10], 0x11
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.sc_delete_HookDrv]
movups xmmword [eax], xmm0
mov cl, byte [0x4936d8]
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], 0
call fcn.00426410
add esp, 0x18
push 0x4936dc
call edi
mov esi, 4
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x425a76
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x425a6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x425a6c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x207
lea eax, [ebp - 0x29b]
mov byte [ebp - 0x29c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x94], esi
push eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 3
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x78], 0
call fcn.00421da0
add esp, 0x10
push 0xb
push str.helper.dll
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.00406d90
cmp dword [ebp - 0x28], 0xf
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x29c]
cmova ecx, dword [ebp - 0x3c]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x425b14
lea eax, [ebp - 0x29c]
push eax
call sym.HOPE_Loader.exe_InjectA
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00406e70
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0xf
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.sc_stop_HookDrv]
movq qword [ecx], xmm0
mov eax, dword [0x4936c0]
mov dword [ecx + 8], eax
mov ax, word [0x4936c4]
mov word [ecx + 0xc], ax
mov al, byte [0x4936c6]
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], 0
call fcn.00426410
mov esi, esp
mov dword [ebp - 0x10], 0x1f
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00416190
mov ecx, dword [ebp - 0x10]
add esp, 8
mov dword [esi], eax
mov dword [esi + 0x10], 0x11
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.sc_delete_HookDrv]
movups xmmword [eax], xmm0
mov cl, byte [0x4936d8]
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], 0
call fcn.00426410
add esp, 0x18
push 0x4936dc
call edi
push str.DllMain_exit_n
push 0
call fcn.00428a80
mov ecx, dword [ebp - 0x48]
add esp, 8
cmp ecx, 7
jbe 0x425c2b
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x425c21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x425c21
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Couldnt_resolve___WINDIR___n
push 0
call fcn.00428a80
mov eax, dword [ebp - 0x24]
add esp, 8
test eax, eax
je 0x425c5d
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, 3
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 4
call fcn.004175f0
int3