Function at 0x140002b10
Capabilities:
Delete file
Get common file path

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 - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x1400b9080]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xor r12d, r12d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14040e880], xmm0
movups xmmword [0x14040e890], xmm0
movups xmmword [0x14040e8a0], xmm0
movups xmmword [0x14040e8b0], xmm0
movups xmmword [0x14040e8c0], xmm0
movups xmmword [0x14040e8d0], xmm0
mov dword [0x14040e8e0], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub r8d, ecx
add r8d, 0xa
movsxd rdi, r8d
lea rsi, [0x14040e880]
test r8d, r8d
jle 0x140002bfa
mov ebx, r12d
movabs r14, 0x4ec4ec4ec4ec4ec5
lea r15, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x34
sub rcx, rax
movzx eax, byte [rcx + r15]
mov byte [rbx + rsi], al
inc rbx
cmp rbx, rdi
jl 0x140002bd0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x1b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x103
ja 0x1400033a3
lea rcx, [rbp + 0x1b0]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop
inc rax
cmp byte [rcx + rax], r12b
jne 0x140002c40
cmp byte [rbp + rax + 0x1af], 0x5c
jne 0x140002c6a
dec rax
cmp rax, 0x104
jae 0x1400034a4
mov byte [rbp + rax + 0x1b0], r12b
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x100], xmm1
lea rax, [rbp + 0x1b0]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x140002c90
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0xf0]
call fcn.140008a20
nop
mov r8d, 1
lea rdx, [0x14009e790]
lea rcx, [rbp + 0xf0]
call fcn.140007580
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140002cf7
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140007580
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140002d7d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008bf80
movdqa xmm0, xmmword [0x1400a9af0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp + 0x108]
cmp rdx, 0x10
jb 0x140002dd4
inc rdx
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002dcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002dcf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008bf80
movdqa xmm0, xmmword [0x1400a9af0]
movdqu xmmword [rbp + 0x100], xmm0
mov byte [rbp + 0xf0], 0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdx, qword [rbp - 0x40]
mov r8d, Ordinal_35
lea rcx, [rbp - 0x20]
call fcn.140007020
nop
mov r8d, 0x8708
lea rdx, [0x14009ed40]
lea rcx, [rbp - 0x20]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
lea rcx, [rbp - 0x18]
test al, al
je 0x140003048
call fcn.140007380
test rax, rax
jne 0x140002e88
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.140006fb0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movabs rax, 0x22c2b8fadc40c653
mov qword [rbp + 0x160], rax
movabs rax, 0x8230561708d606a0
mov qword [rbp + 0x168], rax
movabs rax, 0x14d9f30f4f4f265
mov qword [rbp + 0x170], rax
movabs rax, 0xedea776dc71c3dd2
mov qword [rbp + 0x178], rax
movabs rax, 0x6ad071f6d12e43a7
mov qword [rbp + 0x180], rax
movabs rax, 0x84e7c443a21446c4
mov qword [rbp + 0x188], rax
movabs rax, 0x4eabd9bcfc1deb08
mov qword [rbp + 0x110], rax
movabs rax, 0xf05376787cf662c5
mov qword [rbp + 0x118], rax
movabs rax, 0x6d38e91091809300
mov qword [rbp + 0x120], rax
movabs rax, 0xcd8f1b0fa66e58bc
mov qword [rbp + 0x128], rax
movabs rax, 0xcf00393a74731c3
mov qword [rbp + 0x130], rax
movabs rax, 0x84e7c443a2712aad
mov qword [rbp + 0x138], rax
movups xmm1, xmmword [rbp + 0x110]
movups xmm2, xmmword [rbp + 0x120]
movups xmm3, xmmword [rbp + 0x130]
movdqa xmm0, xmmword [rbp + 0x160]
xorps xmm0, xmm1
movdqa xmmword [rbp + 0x110], xmm0
xorps xmm2, xmmword [rbp + 0x170]
movdqa xmmword [rbp + 0x120], xmm2
xorps xmm3, xmmword [rbp + 0x180]
movdqa xmmword [rbp + 0x130], xmm3
lea rdx, [rbp + 0x110]
mov rcx, qword [0x140090640]
call fcn.140007660
lea rdx, [0x140007830]
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 - 0x28]
cmp rdx, 0x10
jb 0x140003472
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000303e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400032e5
call fcn.14008bf80
jmp 0x140003472
call fcn.140007380
test rax, rax
jne 0x14000306f
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.140006fb0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x40]
call fcn.140025930
test al, al
movabs rax, 0x22c2b8fadc40c653
jne 0x1400032f0
mov qword [rbp + 0x110], rax
movabs rax, 0x8230561708d606a0
mov qword [rbp + 0x118], rax
movabs rax, 0x14d9f30f4f4f265
mov qword [rbp + 0x120], rax
movabs rax, 0xedea776dc71c3dd2
mov qword [rbp + 0x128], rax
movabs rax, 0x6ad071f6d12e43a7
mov qword [rbp + 0x130], rax
movabs rax, 0x84e7c443a21446c4
mov qword [rbp + 0x138], rax
movabs rax, 0x3585381cf0edf649
mov qword [rbp + 0x140], rax
movabs rax, 0xd38d25d958c97d26
mov qword [rbp + 0x148], rax
movabs rax, 0x305d81f20f8396fb
mov qword [rbp + 0x150], rax
movabs rcx, 0x54373eefe634c988
mov qword [rbp + 0x158], rcx
movabs rax, 0x4eabd9bcfc1deb08
mov qword [rbp + 0x160], rax
movabs rax, 0xe74276787cf662c5
mov qword [rbp + 0x168], rax
movabs rax, 0x606ded5580879b02
mov qword [rbp + 0x170], rax
movabs rax, 0x99981619b43c59bc
mov qword [rbp + 0x178], rax
movabs rax, 0xfb31880a34b3087
mov qword [rbp + 0x180], rax
movabs rax, 0xe18fb063d07b20e4
mov qword [rbp + 0x188], rax
movabs rax, 0x54f75d729c988069
mov qword [rbp + 0x190], rax
movabs rax, 0xa5e457bd78ac1144
mov qword [rbp + 0x198], rax
movabs rax, 0x305d81f20f83e49e
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], rcx
movups xmm1, xmmword [rbp + 0x170]
movups xmm2, xmmword [rbp + 0x180]
movups xmm3, xmmword [rbp + 0x190]
movups xmm4, xmmword [rbp + 0x1a0]
movdqa xmm0, xmmword [rbp + 0x110]
xorps xmm0, xmmword [rbp + 0x160]
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm1, xmmword [rbp + 0x120]
movdqa xmmword [rbp - 0x80], xmm1
xorps xmm2, xmmword [rbp + 0x130]
movdqa xmmword [rbp - 0x70], xmm2
xorps xmm3, xmmword [rbp + 0x140]
movdqa xmmword [rbp - 0x60], xmm3
xorps xmm4, xmmword [rbp + 0x150]
movdqa xmmword [rbp - 0x50], xmm4
lea rdx, [rsp + 0x70]
mov rcx, qword [0x140090640]
call fcn.140007660
lea rdx, [0x140007830]
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]
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140003472
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000303e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000303e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop dword [rax]
mov qword [rbp + 0xf0], rax
movabs rax, 0x8230561708d606a0
mov qword [rbp + 0xf8], rax
movabs rcx, 0x22aed9b4806e9a0f
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rbp + 0xf0]
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x14000339b
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003396
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003396
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008bf80
mov rax, rbx
jmp 0x140003474
movabs rax, 0x22c2b8fadc40c653
mov qword [rbp + 0xf0], rax
movabs rax, 0x8230561708d606a0
mov qword [rbp + 0xf8], rax
movabs rax, 0x14d9f30f4f4f265
mov qword [rbp + 0x100], rax
movabs rax, 0xedea776dc71c3dd2
mov qword [rbp + 0x108], rax
movabs rax, 0x4eabd9bcfc1deb08
mov qword [rsp + 0x40], rax
movabs rax, 0xe75776787cf662c5
mov qword [rsp + 0x48], rax
movabs rax, 0x716def5d9180d211
mov qword [rsp + 0x50], rax
movabs rax, 0xedea776dc77449b3
mov qword [rsp + 0x58], rax
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
movdqa xmm0, xmmword [rbp + 0xf0]
xorps xmm0, xmm1
movdqa xmmword [rbp + 0x110], xmm0
xorps xmm2, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0x120], xmm2
lea rdx, [rbp + 0x110]
mov rcx, qword [0x140090640]
call fcn.140007660
lea rdx, [0x140007830]
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]
xor eax, eax
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.14008bf60
lea r11, [rsp + 0x3d0]
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
call fcn.14008c1b8
int3