Function at 0x140006850
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov rax, qword [0x1401550c0]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
xor r12d, r12d
mov r8d, 0x104
lea rdx, [rbp + 0x3c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000704a
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rbp + 0x3c0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x1400068d0
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp - 0x70]
call fcn.140003440
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rcx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x140006927
dec rax
mov rbx, rdi
cmp rax, rbx
cmovb rbx, rax
add rbx, rcx
cmp byte [rbx], 0x5c
je 0x140006922
cmp rbx, rcx
je 0x140006927
dec rbx
cmp byte [rbx], 0x5c
jne 0x140006915
sub rbx, rcx
jmp 0x14000692a
mov rbx, rdi
lea rcx, [rbp - 0x70]
call fcn.140002fe0
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea rax, [rbp + 0x3c0]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x140006950
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp - 0x50]
call fcn.140003440
nop
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp + 0x178]
lea rcx, [rbp - 0x50]
call fcn.140008650
nop
lea rcx, [rbp - 0x50]
call fcn.140002fe0
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x60]
call fcn.1400fe0d0
movabs rsi, 0xf0bb751dc0ffdcb9
mov qword [rsp + 0x50], rsi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
movabs r13, 0xeb214fe420a39aa6
mov qword [rsp + 0x50], r13
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
movabs r15, 0xf0bb751d84b393e5
mov qword [rsp + 0x50], r15
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x3a0], rax
mov qword [rsp + 0x50], r13
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x3a8], rax
movdqa xmm0, xmmword [rsp + 0x70]
xorps xmm0, xmmword [rbp + 0x3a0]
movdqa xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x70]
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], 0
jne 0x140006a14
movabs r14, 0x7fffffffffffffff
mov rax, r14
mov rdx, qword [rbp + 0x188]
sub rax, rdx
cmp rax, rcx
jb 0x1400070d1
lea r9, [rbp + 0x178]
cmp qword [rbp + 0x190], 0xf
cmova r9, qword [rbp + 0x178]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x30]
call fcn.14000a140
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0x60]
call fcn.1400091a0
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [0x140135938]
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp - 0x30]
call fcn.140002fe0
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
cmp dword [rbp + rcx + 0x70], 0
jne 0x140006c75
lea rcx, [rbp + 0x70]
call fcn.140008f30
test rax, rax
jne 0x140006b0e
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0xa8], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x70]
and eax, 0x17
mov dword [rbp + rcx + 0x70], eax
mov edx, dword [rbp + rcx + 0x74]
and edx, eax
jne 0x1400070d7
mov qword [rsp + 0x50], rsi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], r13
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x50], r15
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x380], rax
mov qword [rsp + 0x50], r13
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x388], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp + 0x380]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140006b70
mov rcx, r14
mov rdx, qword [rbp + 0x188]
sub rcx, rdx
cmp rcx, rax
jb 0x1400070cb
nop
lea r9, [rbp + 0x178]
cmp qword [rbp + 0x190], 0xf
cmova r9, qword [rbp + 0x178]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x10]
call fcn.14000a140
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
lea rcx, [rbp - 0x10]
call fcn.140002fe0
test ebx, ebx
jne 0x140006fca
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x50], rsi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], r13
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x50], r15
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x380], rax
mov qword [rsp + 0x50], r13
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x388], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp + 0x380]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140006c51
mov rcx, r14
mov rdx, qword [rbp + 0x188]
sub rcx, rdx
cmp rcx, rax
jb 0x1400070cb
jmp 0x140006b90
jmp 0x1405e9c10
xor bl, bl
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [0x140135938]
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x70]
call fcn.140008320
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [0x140135908]
mov qword [rbp + rcx + 0x60], rax
mov rcx, qword [rbp + 0x60]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x18]
mov dword [rbp + rdx + 0x5c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x110]
call fcn.1400a6b2c
nop
lea rcx, [rbp + 0x178]
call fcn.140002fe0
movzx eax, bl
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.1400cc9e0
lea r11, [rsp + 0x5e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001e20
nop
call fcn.140001e20
nop
test dl, 4
je 0x1400070e5
lea rbx, str.ios_base::badbit_set
jmp 0x1400070fa
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x390]
call fcn.140005ec0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.140006730
lea rdx, [0x140152968]
lea rcx, [rbp + 0x38]
call fcn.1400cec80
int3