Function at 0x140065660
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov r14, qword [rbp + 0x130]
mov qword [rbp + 0x40], r14
mov rax, qword [rbp + 0x138]
mov qword [rsp + 0x50], rax
xor r15d, r15d
lea rcx, [r14 + 0x18]
cmp qword [r14 + 0x30], 7
jbe 0x1400656c3
mov rcx, qword [r14 + 0x18]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edi, 1
mov r8d, edi
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp + 0xa8], rax
cmp rax, 0xffffffffffffffff
jne 0x14006573a
lea rcx, [r14 + 0x38]
call fcn.14002adf0
lea rcx, [r14 + 0x18]
call fcn.14002adf0
lea eax, [rdi + 4]
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.14019acb0
mov rbx, qword [rsp + 0x240]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov word [rbp + 0x48], di
mov qword [rsp + 0x38], r15
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, 2
lea r8, [rbp + 0x48]
mov edx, 0x9c040
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [r14 + 4]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
jne 0x140065787
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x140065797
mov r8d, edi
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
mov qword [rbp + 0xd8], rax
test rax, rax
jne 0x1400657cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [r14 + 0x38]
call fcn.14002adf0
lea rcx, [r14 + 0x18]
call fcn.14002adf0
lea eax, [r13 + 4]
jmp 0x140065710
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
cmp qword [r14 + 0x10], 0
je 0x1400657ee
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x30], eax
mov rax, qword [r14 + 0x10]
mov qword [rbp + 0x34], rax
mov dword [rbp + 0x3c], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0x70]
call fcn.140064220
nop
mov edx, dword [r14]
mov eax, edx
shr eax, 1
test al, 1
mov eax, dword [rbp + 0x70]
jne 0x140065829
and eax, 0xfffffffd
jmp 0x14006582c
or eax, 2
mov ecx, edx
shr ecx, 3
test cl, 1
jne 0x14006583b
and eax, 0xfffffffe
jmp 0x14006583e
or eax, 1
shr edx, 2
test dl, 1
jne 0x14006584b
and eax, 0xfffffffb
jmp 0x14006584e
or eax, 4
mov dword [rbp + 0x70], eax
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], r15
mov r8d, 0x16
lea rdx, str.Dumped_by_CrashHandler
lea rcx, [rbp + 0xb0]
call fcn.14002a920
nop
cmp qword [r14 + 0x48], 0
je 0x1400658c1
mov r8d, 2
lea rdx, [0x1402370a0]
lea rcx, [rbp + 0xb0]
call fcn.140023d10
lea rdx, [r14 + 0x38]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 7
jbe 0x1400658b5
mov rdx, qword [rdx]
lea rcx, [rbp + 0xb0]
call fcn.140023d10
mov dword [rsp + 0x48], 6
nop dword [rax]
xor eax, eax
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x28], eax
lea ecx, [rax + 0x18]
call fcn.14019af70
mov rsi, rax
mov qword [rbp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov ecx, 0x10
call fcn.14002aac0
mov qword [rsi], rax
lea rcx, [rax + 0x10]
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
add rax, 0x10
mov qword [rsi + 8], rax
mov qword [rbp + 0xe0], rsi
mov dword [rbp + 0x20], 1
mov rax, qword [rsi]
mov qword [rbp + 0x24], rax
mov rax, qword [rsi]
mov dword [rax], 0xb
mov eax, dword [rbp + 0xc0]
lea ecx, [rax*2 + 2]
mov rax, qword [rsi]
mov dword [rax + 4], ecx
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rcx, qword [rbp + 0xb0]
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov qword [rbp + 0x68], r15
cmp byte [0x140329819], 0
je 0x140065c7c
lea r8, [rbp + 0x68]
xor edx, edx
xor ecx, ecx
mov rax, qword [0x1403298f8]
call qword [case.0x1400617cf.0]
test eax, eax
jne 0x140065c59
mov r9d, dword [rbp + 0x70]
inc dword [rbp + 0xa4]
mov r8, qword [rbp + 0x98]
test r8, r8
je 0x140065a1d
mov eax, r9d
mov r10d, r9d
mov r11, qword [rbp + 0x90]
mov rdi, qword [rbp + 0x88]
mov r15, qword [rbp + 0x80]
nop word [rax + rax]
cmp r9d, eax
jne 0x140065a1a
lea rdx, [r11 - 1]
add rdx, r8
mov rcx, rdx
shr rcx, 2
lea rax, [rdi - 1]
and rcx, rax
and edx, 3
mov rax, qword [r15 + rcx*8]
mov eax, dword [rax + rdx*4]
not eax
and eax, r10d
mov dword [rbp + 0x70], eax
sub r8, 1
mov qword [rbp + 0x98], r8
je 0x140065a0e
mov r10d, eax
jmp 0x1400659d0
xor r15d, r15d
mov qword [rbp + 0x90], r15
jmp 0x140065a1d
xor r15d, r15d
mov dword [rbp + 0x60], r9d
lea rax, [rbp + 0x30]
cmp qword [r14 + 0x10], 0
cmove rax, r15
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, dword [r14 + 4]
mov rcx, r13
mov rax, qword [rsp + 0x50]
call qword [case.0x1400617cf.0]
test eax, eax
jne 0x140065aa1
lea rcx, [rbp + 0x68]
call fcn.14016cc70
nop
mov rcx, rsi
call fcn.140058d00
mov edx, 0x18
mov rcx, rsi
call fcn.14019af20
cmp qword [rbp + 0x98], 0
jne 0x1400658d0
lea rcx, [r14 + 0x18]
cmp qword [r14 + 0x30], 7
jbe 0x140065a96
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140065c13
mov eax, dword [rbp + 0xa4]
mov dword [rsp + 0x48], eax
mov dword [rbp + 0x50], 0x30363333
mov dword [rbp + 0x54], 0x38434645
movsd xmm0, qword [str.dump]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [0x14023c298]
mov dword [rsp + 0x68], eax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], pe_nt_image_headers64
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call fcn.140026d50
nop
mov rdi, qword [rbp + 0x50]
test rdi, rdi
je 0x140065ba5
lea rax, str.Dumped_in_process_on_attempts__with_flags_:x
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x30
mov rax, qword [rdi]
mov edx, 2
mov rcx, rdi
mov rax, qword [rax + 0x78]
call qword [case.0x1400617cf.0]
test al, al
je 0x140065ba5
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x80], xmm0
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x60]
call fcn.1400671a0
nop
mov rcx, qword [rdi]
mov r10, qword [rcx + 0x10]
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x140065b68
mov rcx, qword [rax]
mov r8, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], r8
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x70], xmm0
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x60]
mov edx, 2
mov rcx, rdi
mov rax, r10
call qword [case.0x1400617cf.0]
nop
lea rcx, [rbp - 0x60]
call fcn.14002adf0
nop
mov rdi, qword [rbp + 0x58]
test rdi, rdi
je 0x140065bef
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140065be8
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400617cf.0]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140065be8
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x1400617cf.0]
mov rbx, qword [rbp + 0xa8]
lea rcx, [rbp + 0x68]
call fcn.14016cc70
nop
mov rcx, rsi
call fcn.140058d00
mov edx, 0x18
mov rcx, rsi
call fcn.14019af20
mov dword [rsp + 0x48], r15d
lea rcx, [rbp + 0xb0]
call fcn.14002adf0
nop
lea rcx, [rbp + 0x78]
call fcn.1400664c0
nop
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [r14 + 0x38]
call fcn.14002adf0
lea rcx, [r14 + 0x18]
call fcn.14002adf0
mov eax, dword [rsp + 0x48]
jmp 0x140065710
lea r8, str.LdrLockLoaderLock
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rbp - 0x40]
call fcn.14019cd80
nop
lea rdx, str.NtDll_Fncs_not_initialized
lea rcx, [rbp - 0x20]
call fcn.140029190
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.140025b20
lea rdx, [0x1402ba3c0]
lea rcx, [rbp]
call fcn.14019cd80
int3