Function at 0x140024040
Capabilities:
Copy file
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2b8]
sub rsp, 0x390
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.140016df8
test eax, eax
je 0x140024082
mov eax, 1
jmp 0x140024477
mov r15d, 0x104
lea rcx, [rsp + 0x60]
xor r13d, r13d
mov r8d, r15d
xor edx, edx
mov dword [rbp + 0x2d8], r13d
call fcn.14003a5c0
mov r8d, r15d
lea rcx, [rbp + 0x180]
xor edx, edx
call fcn.14003a5c0
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x38], xmm1
call fcn.140016dd0
test eax, eax
je 0x1400240f1
lea rdx, [0x1400a1508]
lea rcx, [rsp + 0x48]
call fcn.140060710
lea rdx, [0x1400a1508]
lea rcx, [rsp + 0x38]
call fcn.140060710
jmp 0x140024128
call fcn.14001fc90
mov edx, 0xa
lea ecx, [rdx - 4]
call fcn.14001fd08
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14001fd44
mov edx, ntohs
lea ecx, [rdx - 5]
call fcn.14001fd08
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.14001fd44
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140060710
lea r8, [rsp + 0x48]
lea rdx, str.c:windows_s
lea rcx, [rsp + 0x60]
call fcn.1400055a4
lea rcx, [rsp + 0x60]
call fcn.140021108
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
lea rdx, str.c:windows_s_s.sys
lea rcx, [rsp + 0x60]
call fcn.1400055a4
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, str.c:windows_system32PcmInfo_Helper.sys
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1400241af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
lea r9, [rsp + 0x60]
mov r8d, eax
lea rdx, str.CopyFile_failed_error_d_to_s__n
mov ecx, ebx
call fcn.1400191e0
jmp 0x140024351
lea rcx, str.c:windows_system32PcmInfo_Helper.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r14d, 0x40
mov ecx, r14d
call fcn.140037e70
mov r8d, r14d
mov qword [0x1400c5298], rax
xor edx, edx
mov rcx, rax
call fcn.14003a5c0
mov rcx, qword [0x1400c5298]
lea r8d, [r14 - 1]
mov rdx, rdi
call fcn.140045fa0
mov r8, rsi
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400233bc
mov dword [rbp + 0x2d8], eax
mov r13d, eax
test eax, eax
jne 0x140024224
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.sInstall2_failed_error_d__n
lea ebx, [r14 - 0x3f]
jmp 0x140024347
mov r8, r15
lea rcx, [rbp + 0x70]
xor edx, edx
call fcn.14003a5c0
cmp byte [rbx + 1], 0x3a
mov esi, 4
jne 0x14002427d
lea rdx, [0x1400a1584]
mov rcx, rbx
call fcn.14003a760
cmp rax, rbx
je 0x14002427d
mov r8d, esi
lea rdx, [0x1400a1584]
lea rcx, [rbp + 0x70]
call fcn.14003a170
mov rcx, rbx
call fcn.140045e50
mov r8, rax
lea rcx, [rbp + 0x74]
mov rdx, rbx
call fcn.14003a170
jmp 0x14002428f
mov r8d, 0x103
lea rcx, [rbp + 0x70]
mov rdx, rbx
call fcn.140045fa0
mov r8, rdi
lea rdx, str.SYSTEMCurrentControlSet_services_s
lea rcx, [rbp + 0x180]
call fcn.1400055a4
lea rcx, [rbp + 0x70]
call fcn.140045e50
mov dword [rsp + 0x28], eax
lea r8, [0x1400a15b8]
lea rax, [rbp + 0x70]
mov ebx, 1
mov r14, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, [rbp + 0x180]
mov rcx, r14
call fcn.14001fd98
test eax, eax
je 0x1400242ed
lea rdx, str.Reg_AddValue_failed_error_d__n
jmp 0x140024347
call fcn.1400236ec
test eax, eax
je 0x140024325
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], esi
mov r9d, esi
mov qword [rsp + 0x20], rax
lea r8, [0x1400a15e8]
mov dword [rsp + 0x30], ebx
lea rdx, [rbp + 0x180]
mov rcx, r14
call fcn.14001fd98
test eax, eax
jne 0x1400242e4
mov rcx, rdi
call fcn.140021d00
mov dword [rbp + 0x2d8], eax
mov r13d, eax
test eax, eax
jne 0x140024351
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1400a15f0]
mov r8d, eax
mov ecx, ebx
call fcn.1400191e0
call fcn.140016dd0
test eax, eax
jne 0x140024474
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x400
mov ecx, esi
call fcn.140037e70
mov ecx, dword [str..sys]
mov r8d, esi
mov dword [rsp + 0x30], ecx
xor edx, edx
mov cl, byte [0x1400a160c]
mov rdi, rax
mov byte [rsp + 0x34], cl
mov rcx, rax
mov qword [rsp + 0x58], rax
call fcn.14003a5c0
mov r9d, 0x80
mov dword [rsp + 0x20], ebx
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, str.c:windowsSystem32drivers
call fcn.14001ea60
test eax, eax
jne 0x1400243e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetAllFilesInDir_1stLevel_failed_error_d__r_n
mov ecx, ebx
mov r8d, eax
call fcn.1400191e0
mov r13, qword [rsp + 0x58]
lea rdi, str.c:windowsSystem32drivers_ntfs.sys
xor r14d, r14d
xor r12d, r12d
mov r15, r13
mov rsi, qword [r15]
test rsi, rsi
je 0x14002442c
mov rcx, rsi
call fcn.14007ef6c
lea rdx, str..sys
mov rcx, rsi
call fcn.14003a760
test rax, rax
je 0x14002442c
mov edx, 0x64
mov ecx, ebx
call fcn.14001fd08
cmp eax, 0x5a
ja 0x14002443e
add r12d, ebx
add r15, 8
cmp r12d, 0x80
jge 0x140024441
jmp 0x1400243f7
mov rdi, rsi
mov rcx, rdi
call fcn.140045e50
test rax, rax
jne 0x140024457
add r14d, ebx
cmp r14d, 0x64
jl 0x1400243f1
mov r13d, dword [rbp + 0x2d8]
test rdi, rdi
je 0x140024474
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, r13d
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret