Function at 0x140004d80
Capabilities:
Execute command
Schedule task via schtasks

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 - 0x47]
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rdx, rcx
xor r12d, r12d
cmp qword [rcx + 0x18], 0xf
jbe 0x140004dcf
mov r8, qword [rcx]
add r8, qword [rcx + 0x10]
mov rdx, qword [rcx]
jmp 0x140004dd6
mov r8, qword [rcx + 0x10]
add r8, rcx
lea rcx, [rbp + 0x1f]
call fcn.140006900
nop
cmp qword [rbx + 0x18], 0xf
jbe 0x140004df3
mov r8, qword [rbx]
add r8, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x140004dfa
mov r8, qword [rbx + 0x10]
add r8, rbx
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140006900
nop
lea rdx, str.Scheduling_DLL_replacement_at_reboot:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140006a50
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 7
cmova rdx, qword [rbp + 0x1f]
mov r8, qword [rbp + 0x2f]
mov rcx, rax
call fcn.140007d90
lea rdx, str.___
mov rcx, rax
call fcn.140006a50
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x11]
mov rcx, rax
call fcn.140007d90
lea rdx, [0x140006c30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r15, qword [rbp + 0x2f]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 0x3a
jb 0x1400053fd
lea r14, [rbp + 0x1f]
cmp qword [rbp + 0x37], 7
cmova r14, qword [rbp + 0x1f]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x79], xmm1
lea rsi, [r15 + 0x3a]
mov edi, 7
lea rbx, [rsp + 0x30]
cmp rsi, rdi
jbe 0x140004f4f
mov rdi, rsi
or rdi, 7
cmp rdi, rcx
jbe 0x140004f0e
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140004f42
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400053f7
mov rcx, rax
call fcn.140009138
test rax, rax
je 0x140004f3b
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140004f4a
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400053f7
add rcx, rcx
jne 0x140004edd
mov rbx, r12
jmp 0x140004f4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009138
mov rbx, rax
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x79], rsi
mov qword [rbp - 0x71], rdi
movaps xmm0, xmmword [str.schtasks__create__tn__ReplaceDLL___tr__cmd.exe__c_copy__Y]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x14000b9c0]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x14000b9d0]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x14000b9e0]
movups xmmword [rbx + 0x30], xmm1
movaps xmm0, xmmword [0x14000b9f0]
movups xmmword [rbx + 0x40], xmm0
movaps xmm1, xmmword [0x14000ba00]
movups xmmword [rbx + 0x50], xmm1
movaps xmm0, xmmword [0x14000ba10]
movups xmmword [rbx + 0x60], xmm0
mov eax, dword [0x14000ba20]
mov dword [rbx + 0x70], eax
lea rcx, [rbx + 0x74]
lea r8, [r15 + r15]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi*2], r12w
mov rcx, qword [rbp - 0x79]
mov rdx, qword [rbp - 0x71]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140004ffa
lea rax, [rcx + 1]
mov qword [rbp - 0x79], rax
lea rax, [rsp + 0x30]
cmp rdx, 7
cmova rax, qword [rsp + 0x30]
mov dword [rax + rcx*2], 0x20
lea rax, [rsp + 0x30]
jmp 0x140005019
mov qword [rsp + 0x20], 1
lea r9, [0x14000b9a4]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140006f60
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x49], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x39], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdi, qword [rbp - 0x11]
lea r9, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova r9, qword [rbp - 0x21]
mov rsi, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x1400050a0
lea rax, [rsi + rdi]
mov qword [rbp - 0x39], rax
lea rbx, [rbp - 0x49]
cmp rcx, 7
cmova rbx, qword [rbp - 0x49]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r12w
lea rax, [rbp - 0x49]
jmp 0x1400050b1
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.140006f60
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x59], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x59], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdi, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
sub rax, rdi
cmp rax, 0x18
jb 0x14000512a
lea rax, [rdi + 0x18]
mov qword [rbp - 0x59], rax
lea rbx, [rbp - 0x69]
cmp rcx, 7
cmova rbx, qword [rbp - 0x69]
lea rcx, [rbx + rdi*2]
mov r8d, 0x30
lea rdx, str.___sc_onstart__ru_SYSTEM
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x30], r12w
lea rax, [rbp - 0x69]
jmp 0x140005148
mov qword [rsp + 0x20], 0x18
lea r9, str.___sc_onstart__ru_SYSTEM
mov edx, 0x18
lea rcx, [rbp - 0x69]
call fcn.140006f60
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 1], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xf], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp - 0x51]
cmp rdx, 7
jbe 0x1400051b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009130
movdqa xmm0, xmmword [0x14000bf40]
movdqu xmmword [rbp - 0x59], xmm0
mov word [rbp - 0x69], r12w
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140005216
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005209
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005209
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009130
movdqa xmm0, xmmword [0x14000bf40]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], r12w
mov rdx, qword [rbp - 0x71]
cmp rdx, 7
jbe 0x14000526c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000525f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000525f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009130
movdqa xmm0, xmmword [0x14000bf40]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x30], r12w
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova rcx, qword [rbp - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
test eax, eax
jne 0x1400052b6
lea rdx, str.DLL_replacement_scheduled_at_next_reboot.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140006a50
lea rdx, [0x140006c30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov bl, 1
jmp 0x1400052db
lea rdx, str.Failed_to_schedule_DLL_replacement_at_reboot.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400066e0
lea rdx, [0x1400068c0]
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 bl, bl
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x14000531e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005319
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005319
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009130
movdqa xmm0, xmmword [0x14000bf40]
movdqu xmmword [rbp + 0xf], xmm0
mov word [rbp - 1], r12w
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x140005373
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000536e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000536e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009130
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r12w
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x1400053c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400053c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009130
movzx eax, bl
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140009110
lea r11, [rsp + 0x100]
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.140001100
nop
call fcn.1400011a0
int3