Function at 0x140007e20
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140015010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor edi, edi
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
imul eax, ebx
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140015a10], xmm0
movups xmmword [0x140015a20], xmm0
movups xmmword [0x140015a30], xmm0
movups xmmword [0x140015a40], xmm0
movups xmmword [0x140015a50], xmm0
movups xmmword [0x140015a60], xmm0
mov dword [0x140015a70], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub r8d, ecx
add r8d, 0xa
mov ebx, edi
movsxd rsi, r8d
test r8d, r8d
jle 0x140007f43
movabs r15, 0x4ec4ec4ec4ec4ec5
lea r14, [0x140000000]
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, r15
mul rcx
shr rdx, 4
imul rax, rdx, 0x34
sub rcx, rax
movzx eax, byte [rcx + r14 + 0x10750]
mov byte [rbx + r14 + 0x15a10], al
inc rbx
cmp rbx, rsi
jl 0x140007f10
lea rcx, [rsp + 0x78]
call fcn.140002390
nop
cmp qword [rbp - 0x78], 0
je 0x14000840b
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.140003900
nop
mov r8d, 0x36c8
lea rdx, [0x14000ce80]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp - 0x58]
test byte [rdx + rax + 0x10], 6
je 0x140007ff8
call fcn.140004000
test rax, rax
jne 0x140007fea
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x60]
call fcn.140002630
jmp 0x14000840b
call fcn.140004000
test rax, rax
jne 0x14000801f
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x60]
call fcn.140002630
lea rcx, [rsp + 0x78]
call fcn.140002700
test al, al
jne 0x140008051
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
jmp 0x14000840b
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..RTCore64
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140015a90], rax
call fcn.1400079a0
movsxd rsi, eax
cmp esi, 0xffffffff
jne 0x1400080a3
lea rcx, str.failed_to_load_symbol_n
call fcn.140004b50
jmp 0x14000840b
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 0xa
mov qword [rsp + 0x60], 0xf
movsd xmm0, qword [str.win32k.sys]
movsd qword [rsp + 0x48], xmm0
movzx eax, word [0x14000cc80]
mov word [rsp + 0x50], ax
mov byte [rsp + 0x52], 0
lea rcx, [rsp + 0x48]
call fcn.140001e90
mov rbx, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140008129
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008124
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008124
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009f20
test rbx, rbx
jne 0x14000813f
lea rcx, str.failed_to_find_win32k.sys_n
call fcn.140004b50
jmp 0x14000840b
mov r12, rsi
add r12, rbx
jne 0x140008151
lea edi, [r12 - 1]
jmp 0x1400083f9
mov ecx, 0x100
call fcn.14000a550
mov r15, rax
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rbx, r15
mov rsi, r12
sub rsi, r15
nop word [rax + rax]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x74], edi
lea rax, [rsi + rbx]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x48]
mov edx, 0x80002048
mov rcx, qword [0x140015a90]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400083ec
movzx eax, byte [rsp + 0x64]
mov byte [rbx], al
inc rbx
mov rax, rbx
sub rax, r15
cmp rax, 0x100
jb 0x140008180
mov r8, rdi
lea r11, [0x14000cca4]
mov r10, r15
sub r10, r11
nop word [rax + rax]
lea rdx, [0x14000c8c4]
mov rcx, r11
mov al, 0x78
lea r9, [r8 + r10]
cmp al, 0x78
jne 0x14000823d
movzx eax, byte [rcx]
cmp byte [rcx + r9], al
jne 0x14000825d
inc rdx
inc rcx
movzx eax, byte [rdx]
test al, al
jne 0x140008230
lea rax, [r8 + r15]
test rax, rax
jne 0x14000826b
mov edi, 0xfffffffc
jmp 0x1400083f1
inc r8
cmp r8, 0xfd
jae 0x140008253
jmp 0x140008220
lea r14, [r8 + r12]
mov rcx, r15
call fcn.140009f20
test r14, r14
je 0x1400083f9
mov dword [rsp + 0x40], edi
mov rbx, rdi
lea rcx, [rsp + 0x40]
mov r15, r14
sub r15, rcx
add r15, 3
nop word [rax + rax]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x74], edi
lea rsi, [rsp + 0x40]
add rsi, rbx
lea rax, [rsi + r15]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x48]
mov edx, 0x80002048
mov rcx, qword [0x140015a90]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400083de
movzx eax, byte [rsp + 0x64]
mov byte [rsi], al
inc rbx
cmp rbx, 4
jb 0x1400082a0
movsxd rcx, dword [rsp + 0x40]
add rcx, 7
add rcx, r14
mov qword [0x1400159e8], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 0xc
mov qword [rsp + 0x60], 0xf
movsd xmm0, qword [0x14000cd00]
movsd qword [rsp + 0x48], xmm0
mov eax, dword [0x14000cd08]
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x54], 0
lea rcx, [rsp + 0x48]
call fcn.140001e90
mov qword [0x140015a80], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400083c7
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400083bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400083bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009f20
mov rax, qword [0x140015a80]
test rax, rax
jne 0x1400083da
lea rcx, str.failed_to_get_ntoskrnl.exe_n
call fcn.140004b50
jmp 0x14000840b
mov bl, 1
jmp 0x14000840d
lea rcx, str.failed_to_find_NtUserSetGestureConfig__2__n
call fcn.140004b50
jmp 0x14000840b
mov edi, 0xfffffffd
mov rcx, r15
call fcn.140009f20
mov r8d, edi
mov rdx, r12
lea rcx, str.failed_to_find_nt_qword___p____d__n
call fcn.140004b50
xor bl, bl
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140008451
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000844c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000844c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009f20
movzx eax, bl
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140009f00
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret