Function at 0x140002480
Capabilities:
Delete file
Move 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.1400053a0
mov rcx, rax
call fcn.140005680
lea rdx, str.Github:_https:__github.com_T4y1oR_RingQ
call fcn.1400053a0
mov rcx, rax
call fcn.140005680
lea rdx, str.E.g_1
call fcn.1400053a0
mov rcx, rax
call fcn.140005680
lea rdx, str.E.g_2
call fcn.1400053a0
mov rcx, rax
call fcn.140005680
cmp ebx, 2
jge 0x140002501
lea eax, [rsi + 1]
jmp 0x14000288a
mov rbx, qword [rdi + 8]
lea rdx, [0x14000fbec]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_strstr]
mov rcx, rbx
test rax, rax
je 0x14000252b
lea rdx, str.main.bin
call fcn.140001dd0
jmp 0x14000254d
lea rdx, [0x14000fbfc]
call qword [sym.imp.msvcrt.dll_strstr]
test rax, rax
je 0x14000254d
lea rdx, str.main.bin
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_rename]
mov r8d, 0x20
lea rdx, str.main.bin
lea rcx, [rbp - 0x70]
call fcn.140003bd0
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 0x140002584
mov ebx, 1
jmp 0x140002826
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.140005720
nop
mov dword [rbp + 0x210], 0x35303235
mov word [rbp + 0x214], 0x3032
mov edi, 6
mov ecx, edi
call fcn.140007648
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.140002910
nop
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0xb0], dil
jne 0x1400026cf
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
sub r8, rdx
lea rcx, [rbp + 0xa0]
call fcn.140002ab0
lea rcx, [rbp - 0x60]
call fcn.140004940
test rax, rax
jne 0x1400026a6
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 0x1400028a8
lea rcx, str.main.bin
call qword [sym.imp.msvcrt.dll_remove]
test eax, eax
jne 0x1400026cf
lea rdx, str.Create_main.txt_success___Enjoy_:_
call fcn.1400053a0
mov rcx, rax
call fcn.140005680
mov ebx, esi
jmp 0x1400026d4
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.140003910
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.140006dc8
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000279f
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000278c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028fd
call fcn.140007640
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400027dc
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002903
call fcn.140007640
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002826
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002813
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028a2
call fcn.140007640
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.140003910
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.140006dc8
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.14000b920
nop
test al, 4
je 0x1400028b5
lea rdi, str.ios_base::badbit_set
jmp 0x1400028c9
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, [0x140014058]
lea rcx, [rbp + 0x1b0]
call sub.msvcrt.dll__CxxThrowException
nop
call fcn.14000b920
nop
call fcn.14000b920
int3