Function at 0x140002030
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x140002030
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
lea rdi, [rsp + 0x30]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x130]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x118], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea rcx, [rsp + 0x58]
call fcn.140001244
nop
lea rdx, str.EdgeApp
lea rcx, [rsp + 0x98]
call fcn.140001244
nop
lea rcx, [rsp + 0x58]
call fcn.14000106e
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 2
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14000213f
lea rdx, str.Failed_to_open_registry_key:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000109b
mov qword [rsp + 0xd8], rax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov qword [rsp + 0xe0], rax
lea rdx, [0x14000101e]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.MSVCP140D.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 byte [rsp + 0xd0], 0
lea rcx, [rsp + 0x98]
call fcn.1400010f5
nop
lea rcx, [rsp + 0x58]
call fcn.1400010f5
movzx eax, byte [rsp + 0xd0]
jmp 0x140002278
mov rcx, qword [rsp + 0x130]
call fcn.1400013a2
inc rax
mov dword [rsp + 0xe8], eax
mov rcx, qword [rsp + 0x130]
call fcn.14000106e
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x98]
call fcn.14000106e
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x100], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x44], 0
je 0x140002250
lea rdx, str.Failed_to_set_registry_value:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000109b
mov qword [rsp + 0x108], rax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov qword [rsp + 0x110], rax
lea rdx, [0x14000101e]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.MSVCP140D.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 byte [rsp + 0xd1], 0
lea rcx, [rsp + 0x98]
call fcn.1400010f5
nop
lea rcx, [rsp + 0x58]
call fcn.1400010f5
movzx eax, byte [rsp + 0xd1]
jmp 0x140002278
mov byte [rsp + 0xd2], 1
lea rcx, [rsp + 0x98]
call fcn.1400010f5
nop
lea rcx, [rsp + 0x58]
call fcn.1400010f5
movzx eax, byte [rsp + 0xd2]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140010260]
call fcn.140001424
mov rax, rdi
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140001276
add rsp, 0x120
pop rdi
ret