Function at 0x140002480
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rdi, rdx
mov ebx, ecx
xor esi, esi
lea rdx, str._______________RingQ_:_
call fcn.140005360
mov rcx, rax
call fcn.140005640
lea rdx, str.Github:_https:__github.com_T4y1oR_RingQ
call fcn.140005360
mov rcx, rax
call fcn.140005640
lea rdx, str.1._Create.exe_fscan.exe
call fcn.140005360
mov rcx, rax
call fcn.140005640
lea rdx, str.2._RingQ.exe
call fcn.140005360
mov rcx, rax
call fcn.140005640
cmp ebx, 2
jge 0x140002501
lea eax, [rsi + 1]
jmp 0x14000284e
lea rdx, str.main.bin
mov rcx, qword [rdi + 8]
call fcn.140001dd0
mov r8d, 0x20
lea rdx, str.main.bin
lea rcx, [rbp - 0x70]
call fcn.140003b90
nop
mov rax, qword [rbp - 0x70]
movsxd rax, dword [rax + 4]
lea r14, vtable.std::ios_base.0
test byte [rbp + rax - 0x60], 6
je 0x140002548
mov ebx, 1
jmp 0x1400027ea
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x38], 1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x80], xmm0
mov rax, qword [rbp + rax - 0x28]
mov qword [rsp + 0x30], rax
test rax, rax
sete byte [rsp + 0x38]
mov byte [rsp + 0x39], 0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400056e0
nop
mov dword [rbp + 0x210], 0x35303235
mov word [rbp + 0x214], 0x3032
mov edi, 6
mov ecx, edi
call fcn.140007608
mov qword [rsp + 0x30], rax
lea rbx, [rax + 6]
mov qword [rsp + 0x40], rbx
mov r8d, edi
lea rdx, [rbp + 0x210]
mov rcx, rax
call sub.msvcrt.dll_memmove
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.1400023d0
nop
lea rdx, str.main.txt
lea rcx, [rbp + 0xa0]
call fcn.1400028d0
nop
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0xb0], dil
jne 0x140002693
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
sub r8, rdx
lea rcx, [rbp + 0xa0]
call fcn.140002a70
lea rcx, [rbp - 0x60]
call fcn.140004900
test rax, rax
jne 0x14000266a
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 2
cmp qword [rbp + rcx - 0x28], 0
cmovne edi, eax
or edi, dword [rbp + rcx - 0x60]
and edi, 0x17
mov dword [rbp + rcx - 0x60], edi
mov eax, dword [rbp + rcx - 0x5c]
and eax, edi
jne 0x14000286c
lea rcx, str.main.bin
call qword [sym.imp.msvcrt.dll_remove]
test eax, eax
jne 0x140002693
lea rdx, str.Create_main.txt_Enjoy__E.g:_RingQ.exe
call fcn.140005360
mov rcx, rax
call fcn.140005640
mov ebx, esi
jmp 0x140002698
mov ebx, 1
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xa0], rax
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x9c], edx
lea rcx, [rbp + 0xa8]
call fcn.1400038d0
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xa0], rax
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x9c], edx
mov qword [rbp + 0x148], r14
lea rcx, [rbp + 0x148]
call fcn.140006d88
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002763
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002750
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028c1
call fcn.140007600
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400027a0
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000279a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028c7
call fcn.140007600
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400027ea
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002866
call fcn.140007600
mov qword [rsp + 0x68], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.1400038d0
mov rcx, qword [rbp - 0x70]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rdx - 0x70], rax
mov rcx, qword [rbp - 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x18]
mov dword [rbp + rdx - 0x74], r8d
mov qword [rbp + 0x40], r14
lea rcx, [rbp + 0x40]
call fcn.140006d88
nop
mov eax, ebx
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14000b8e0
nop
test al, 4
je 0x140002879
lea rdi, str.ios_base::badbit_set
jmp 0x14000288d
test al, 2
lea rdi, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rdi, rax
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.1400013c0
mov r8, rax
mov rdx, rdi
lea rcx, [rbp + 0x1b0]
call fcn.140001c70
lea rdx, [0x140013fd8]
lea rcx, [rbp + 0x1b0]
call sub.msvcrt.dll__CxxThrowException
nop
call fcn.14000b8e0
nop
call fcn.14000b8e0
int3