Function at 0x140004520
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140076180]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movdqa xmm1, xmmword [0x140063090]
movdqu xmmword [rbp + 0x37], xmm1
mov byte [rbp + 0x27], dil
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 0x27]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rdi
mov r8, rbx
lea rcx, [rbp + 7]
call fcn.140005ec0
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rdx, qword [rbp + 7]
lea r8, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova r8, qword [rbp + 0x27]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r9d, dword [rbp + 0x37]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
mov rcx, qword [rbp + 0x17]
mov rdx, qword [rbp + 0x1f]
cmp rcx, rdx
jae 0x1400045f8
lea rax, [rcx + 1]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 7]
cmp rdx, 7
cmova rax, qword [rbp + 7]
mov dword [rax + rcx*2], edi
jmp 0x14000460c
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, [rbp + 7]
call fcn.1400060f0
mov rcx, qword [rbp + 0x17]
mov rdx, qword [rbp + 0x1f]
cmp rcx, rdx
jae 0x140004633
lea rax, [rcx + 1]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 7]
cmp rdx, 7
cmova rax, qword [rbp + 7]
mov dword [rax + rcx*2], edi
jmp 0x140004647
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, [rbp + 7]
call fcn.1400060f0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rax
mov dword [rbp - 0x29], 3
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rax, qword [rbp + 7]
mov qword [rbp - 0x21], rax
mov eax, 0x614
mov word [rbp - 0x11], ax
lea rcx, [rbp - 0x31]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x14000469c
lea rdx, str.Folder_successfully_deleted.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x1400046aa
lea rdx, str.Failed_to_delete_the_folder.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005890
lea rdx, [0x140005c90]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x140004703
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400046fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140054d5c
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], di
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x140004751
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000474c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000474c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140054d5c
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400549f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret