Function at 0x14000a830
Capabilities:
Execute command
Persist via path registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x7f70]
mov eax, 0x8070
call fcn.140025900
sub rsp, rax
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rbp + 0x7f60], rax
mov rbx, rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000a8c0
lea rdx, str.Error_opening_registry_key
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140018dc0
lea rdx, [0x140018fa0]
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]
jmp 0x14000aae2
mov dword [rsp + 0x58], 0x8000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000a90e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Error_querying_PATH_value
jmp 0x14000a89f
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14000a930
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14001a010
nop
mov rsi, qword [rbx + 0x10]
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a95b
mov r9, qword [rbx]
lea rcx, [rsp + 0x38]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x50]
cmp r15, 0xf
cmova rcx, r14
mov qword [rsp + 0x20], rsi
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
call fcn.140019e00
mov rdx, rax
cmp rax, 0xffffffffffffffff
je 0x14000aa8c
test rax, rax
je 0x14000aad3
lea rcx, [rsp + 0x38]
cmp r15, 0xf
cmova rcx, r14
cmp byte [rcx + rax - 1], 0x3b
jne 0x14000aad3
inc rsi
dec rdx
cmp rdi, rdx
jb 0x14000ab0e
mov rax, rdi
sub rax, rdx
cmp rax, rsi
cmovb rsi, rax
lea rcx, [rsp + 0x38]
cmp r15, 0xf
cmova rcx, r14
sub rdi, rsi
mov r8, rdi
sub r8, rdx
add rcx, rdx
inc r8
lea rdx, [rcx + rsi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x48], rdi
lea eax, [rdi + 1]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000aa8c
lea rcx, str.setx_PATH___PATH__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str.Removed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140018dc0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000aa62
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14001b6b0
lea rdx, str._from_PATH
mov rcx, rax
call fcn.140018dc0
lea rdx, [0x140018fa0]
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]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14000aae2
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000aadd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000aadd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp rdi, rdx
jb 0x14000ab0e
jmp 0x14000a9c1
call fcn.1400247e0
mov rcx, qword [rbp + 0x7f60]
xor rcx, rsp
call fcn.1400247c0
lea r11, [rsp + 0x8070]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140018990
nop
int3