Function at 0x140080220
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14008a010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___BEGIN_INJECTING_TO_REGISTRY
call fcn.1400804e0
mov rcx, rax
lea rdx, [0x1400806b0]
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 edi, edi
mov qword [rbp - 0x18], 7
xor r8d, r8d
mov qword [rbp - 0x30], rdi
lea rdx, [0x140085990]
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x30]
call fcn.1400017f0
lea rcx, [rbp - 0x30]
call fcn.14007ffd0
mov rdx, qword [rbp - 0x18]
test eax, eax
setne bl
cmp rdx, 8
jb 0x1400802dc
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400802d7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400802d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008279c
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
test bl, bl
jne 0x140080313
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._____FAILED_INJECTING_TO_REGISTRY
call fcn.1400804e0
mov rcx, rax
lea rdx, [0x1400806b0]
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 rdx, qword [str.p__b_]
mov rcx, qword [str.SOFTWAREMicrosoftWindowsAssignedAccessConfiguration]
call fcn.14007fd00
cmp eax, 1
je 0x140080488
mov rdx, qword [str.SOFTWAREMicrosoftWindowsAssignedAccessConfiguration]
lea rax, [rbp - 0x40]
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140080445
mov rax, qword [0x14008a138]
movabs rcx, 0x7ffffffffffffffe
mov word [rbp - 0x38], di
cmp rax, rcx
je 0x1400804ce
cmp qword [0x14008a140], 8
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x30], 1
lea r9, [0x14008a128]
cmovae r9, qword [0x14008a128]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.14007f960
mov eax, dword [rbp - 0x20]
lea rcx, [rbp - 0x30]
mov rdx, qword [str.p__b_]
add eax, eax
cmp qword [rbp - 0x18], 8
mov r9d, 1
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140080435
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140080430
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140080430
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008279c
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
mov rdx, qword [str.p__b_]
mov rcx, qword [str.SOFTWAREMicrosoftWindowsAssignedAccessConfiguration]
call fcn.14007fd00
test eax, eax
jne 0x140080488
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._____FAILED_INJECTING_TO_REGISTRY
call fcn.1400804e0
mov rcx, rax
lea rdx, [0x1400806b0]
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 rdx, str.___FAILED_TO_INJECT_REGISTRY_n
jmp 0x14008048f
lea rdx, str.___REGISTRY_INJECTED_SUCCESSFULLY_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400804e0
lea rdx, [0x1400806b0]
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 - 0x10]
xor rcx, rsp
call fcn.1400824f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140001600
int3