Function at 0x140001180
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
lea ecx, [rdi + 0x30]
call fcn.140001ad0
mov rbx, rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x37], 0x2b
mov qword [rbp + 0x3f], 0x2f
movups xmm0, xmmword [str.https:__www.engagedhits.com_app_api_getEHID]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400034b0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1400034c0]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x1400034c8]
mov word [rax + 0x28], cx
movzx eax, byte [0x1400034ca]
mov byte [rbx + 0x2a], al
mov byte [rbx + 0x2b], dil
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], 3
mov qword [rbp - 1], 0xf
mov eax, dword [0x14000349c]
mov word [rbp - 0x19], ax
movzx eax, byte [0x14000349e]
mov byte [rbp - 0x17], al
mov byte [rbp - 0x16], dil
lea rdx, str.HTTP_Response:_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001660
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
mov rcx, rax
call fcn.1400018e0
mov rcx, rax
lea rdx, [0x140001830]
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]
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], 0xe
mov qword [rbp - 0x29], 0xf
movsd xmm0, qword [str.SOFTWAREEHID_]
movsd qword [rbp - 0x41], xmm0
mov eax, dword [0x1400034e8]
mov dword [rbp - 0x39], eax
movzx eax, word [0x1400034ec]
mov word [rbp - 0x35], ax
mov byte [rbp - 0x33], dil
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], 4
mov qword [rbp + 0x1f], 0xf
mov dword [rbp + 7], 0x44494845
mov byte [rbp + 0xb], dil
lea rax, [rbp - 0x21]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x41]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000136b
lea rdx, str.Registry_key_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001660
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rdx, qword [rbp - 0x41]
mov r8, qword [rbp - 0x31]
mov rcx, rax
call fcn.1400018e0
lea rdx, str._created_successfully_
mov rcx, rax
call fcn.140001660
mov rcx, rax
lea rdx, [0x140001830]
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 [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400013f4
cmp eax, 0xb7
jne 0x1400013a8
lea rdx, str.Registry_key_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001660
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rdx, qword [rbp - 0x41]
mov r8, qword [rbp - 0x31]
mov rcx, rax
call fcn.1400018e0
lea rdx, str._already_exists.
jmp 0x1400013dc
lea rdx, str.Failed_to_create_open_registry_key_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001660
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rdx, qword [rbp - 0x41]
mov r8, qword [rbp - 0x31]
mov rcx, rax
call fcn.1400018e0
lea rdx, [0x1400033fc]
mov rcx, rax
call fcn.140001660
lea rdx, [0x140001830]
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]
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rdx, qword [rbp - 0x41]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400014c0
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rcx, qword [rbp - 0x19]
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rdx, qword [rbp + 7]
mov eax, dword [rbp - 9]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140001491
lea rdx, str.Data_written_to_registry_successfully_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x14000149f
lea rdx, str.Failed_to_write_data_to_registry.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001660
lea rdx, [0x140001830]
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 [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400014e4
lea rdx, str.Failed_to_create_open_registry_key.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001660
mov rcx, rax
lea rdx, [0x140001830]
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]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001522
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000151d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000151d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001b0c
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x140001570
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000156b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000156b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001b0c
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x1400015be
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001b0c
mov qword [rbp - 9], rdi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov edx, 0x30
mov rcx, rbx
call fcn.140001b0c
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001ab0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret