Function at 0x140046ff0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x560]
sub rsp, 0x660
mov rax, qword [0x1401b90e0]
xor rax, rsp
mov qword [rbp + 0x550], rax
xor r15d, r15d
mov r14d, r15d
mov dword [rsp + 0x48], r15d
mov qword [rbp - 8], r15
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], r14b
lea r8d, [r15 + 0x12]
lea rdx, str.Windowsprefetch_
lea rcx, [rbp - 0x18]
call fcn.140040520
nop
lea rcx, [rbp - 0x68]
call fcn.140045ce0
nop
lea rsi, [rbp - 0x68]
mov r8, qword [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rsi, r8
lea rbx, [rbp - 0x68]
cmovae rbx, r8
add rbx, qword [rbp - 0x58]
mov qword [rsp + 0x38], rbx
lea rdi, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdi, r8
cmp rdi, rbx
je 0x1400470b4
sub rsi, rdi
nop word [rax + rax]
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [rsi + rdi], al
inc rdi
cmp rdi, rbx
jne 0x1400470a0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r15w
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
lea rdx, [rbp + 0x130]
call qword [sym.imp.MSVCP140.dll__To_wide]
test eax, eax
jne 0x140047104
lea rcx, str.invalid_char_filename_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
lea rax, [rbp + 0x130]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140047112
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140047163
lea rdi, [rdx + rcx]
mov qword [rbp - 0x38], rdi
lea rbx, [rbp - 0x48]
cmp r8, 8
cmovae rbx, qword [rbp - 0x48]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
lea rdx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r15w
lea rax, [rbp - 0x48]
jmp 0x140047178
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x130]
lea rcx, [rbp - 0x48]
call fcn.1400494e0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140048ae0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1400471c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400471c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400471c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008183c
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
mov ecx, 8
call fcn.140081b50
mov rbx, rax
mov qword [rax], r15
lea r12, [0x140048740]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], 1
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.140081b50
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rdi, vtable.std::_Ref_count_resource_void____ptr64____ptr64__void____cdecl___void____ptr64____ptr64__.0
mov qword [rax], rdi
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rbx
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x80]
call fcn.140048250
nop
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], 7
mov word [rbp + 0xa0], r15w
movdqa xmm0, xmmword [0x1401ac870]
movdqa xmmword [rbp + 0xc0], xmm0
mov dword [rbp - 0x70], r15d
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x70]
lea rcx, [rbp + 0x340]
call qword [sym.imp.MSVCP140.dll__Open_dir]
mov rcx, qword [rbp + 0x70]
mov qword [rcx], rax
test rax, rax
je 0x1400472d8
mov r8d, dword [rsp + 0x48]
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x70]
call fcn.140048590
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14004731c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047317
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047317
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008183c
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x140047348
lock inc dword [rcx + 8]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rcx
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x20]
call fcn.140048250
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x40]
call fcn.140048250
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
mov ecx, 8
call fcn.140081b50
mov rsi, rax
mov qword [rax], r15
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.140081b50
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
mov qword [rax], rdi
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rsi
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xf0], r15
mov qword [rbp + 0xf8], 7
mov word [rbp + 0xe0], r15w
mov qword [rbp + 0x110], r15
mov qword [rbp + 0x118], 7
mov word [rbp + 0x100], r15w
movdqa xmm0, xmmword [0x1401ac870]
movdqa xmmword [rbp + 0x120], xmm0
mov rbx, qword [rbp + 0x10]
nop dword [rax]
test rbx, rbx
je 0x140047460
mov rax, qword [rsi]
cmp qword [rbx], rax
sete al
jmp 0x140047462
xor al, al
test al, al
jne 0x14004770a
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x48]
call fcn.140048250
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x70]
call fcn.140048250
or r14d, 1
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
mov rax, qword [rbp - 0x80]
lea rbx, [rcx + rax*2]
lea rdi, [rsp + 0x70]
cmovae rdi, qword [rsp + 0x70]
mov rcx, r15
mov qword [rsp + 0x60], rcx
mov r8d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x68], r8
mov byte [rsp + 0x50], cl
mov rdx, rbx
sub rdx, rdi
sar rdx, 1
cmp rdx, 0x10
jb 0x1400474f9
lea rcx, [rsp + 0x50]
call fcn.140049aa0
mov rcx, r15
mov qword [rsp + 0x60], rcx
mov r8, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp rdi, rbx
je 0x14004755b
nop dword [rax + rax]
movzx r9d, byte [rdi]
cmp rcx, r8
jae 0x14004753c
lea rax, [rcx + 1]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp r8, 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140047546
lea rcx, [rsp + 0x50]
call fcn.140049150
add rdi, 2
mov r8, qword [rsp + 0x68]
cmp rdi, rbx
je 0x14004755b
mov rcx, qword [rsp + 0x60]
jmp 0x140047510
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
lea rcx, [rsp + 0x50]
cmp r8, 0x10
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14004759a
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
lea rdx, str.WMIC
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x1400475d4
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140047611
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004760c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400476f5
call fcn.14008183c
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140047666
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047660
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400476fc
call fcn.14008183c
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1400476a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004769d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047703
call fcn.14008183c
mov rbx, qword [rbp + 0x10]
mov rdx, qword [rbx]
test rdx, rdx
je 0x140047450
lea r8, [rsp + 0x48]
lea rcx, [rbp + 0x340]
call qword [sym.imp.MSVCP140.dll__Read_dir]
cmp word [rax], 0
jne 0x1400476db
mov rcx, qword [rbx]
call qword [sym.imp.MSVCP140.dll__Close_dir]
mov qword [rbx], r15
jmp 0x140047450
mov r8d, dword [rsp + 0x48]
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x10]
call fcn.140048590
jmp 0x140047445
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]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp + 0xd0]
call fcn.140045be0
nop
lea rcx, [rbp + 0x10]
call fcn.140045be0
nop
lea rcx, [rbp + 0x70]
call fcn.140045be0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140047769
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047764
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047764
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008183c
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1400477b7
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400477b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400477b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008183c
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.140081290
lea r11, [rsp + 0x660]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret