Function at 0x140009bc0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140098500]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x60], rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea r9, [0x140097100]
cmp qword [0x140097118], 0xf
cmova r9, qword [0x140097100]
lea r8, str.SYSTEMCurrentControlSetServicesEventLogApplication_s
mov edx, 0x100
lea rcx, [rbp + 0x40]
call fcn.14000d7f0
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140009fb6
lea rdx, str.EventMessageFile
mov qword [rbp - 0x70], rdx
lea eax, [rdi + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9d, [rsi + 1]
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000a07a
mov dword [rsp + 0x50], 7
lea rdx, str.TypesSupported
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140009ee2
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], sendto
lea ecx, [rsi + 0x30]
call fcn.1400734b0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], 0x24
mov qword [rbp - 0x38], 0x2f
movups xmm0, xmmword [str.event_viewer_registry_keys_installed]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14007e480]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x14007e490]
mov dword [rax + 0x20], ecx
mov byte [rax + 0x24], sil
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140050590
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], sendto
lea ecx, [rsi + 0x60]
call fcn.1400734b0
mov rdx, rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], 0x5c
mov qword [rbp - 0x78], 0x5f
movaps xmm0, xmmword [str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14007e1a0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14007e1b0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14007e1c0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x14007e1d0]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x14007e1e0]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x14007e1e8]
mov dword [rdx + 0x58], eax
mov byte [rdx + 0x5c], sil
mov r9, rbx
mov r8d, 0xf6
lea rdx, [rsp + 0x70]
lea ecx, [rsi + 1]
call fcn.14004f120
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140009e22
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009e1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009e1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], sendto
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140009e71
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009e6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009e6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
movdqa xmm0, xmmword [0x14007e9a0]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140009ec0
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009ebb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009ebb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140073840
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140033f90
mov rbx, rax
lea rcx, [rbp + 0x40]
call fcn.1400080e0
mov qword [rbp - 0x70], rax
lea rax, str.unable_to_set__to__for_registry_key:_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x2f
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x18]
call fcn.140006ca0
nop
lea rcx, str.message:__with_code:_
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], 0x19
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140006ff0
mov rbx, rax
lea rdx, str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp
lea rcx, [rbp - 0x28]
call fcn.1400073f0
nop
mov r9, rbx
mov r8d, 0xf3
lea rdx, [rbp - 0x28]
mov ecx, 3
call fcn.14004f120
nop
lea rcx, [rbp - 0x28]
call fcn.140007850
nop
lea rcx, [rbp - 0x50]
call fcn.140007850
nop
lea rcx, [rbp + 0x18]
call fcn.140007850
nop
lea rcx, [rbp - 8]
call fcn.140007850
call fcn.140007ec0
int3
mov edx, eax
lea rcx, [rbp + 0x18]
call fcn.140033f90
mov rbx, rax
lea rcx, [rbp + 0x40]
call fcn.1400080e0
mov qword [rsp + 0x50], rax
lea rax, str.unable_to_create_registry_key:_
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 0x21
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 8]
call fcn.140006f70
nop
lea rcx, str.message:__with_code:_
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], 0x19
mov r9, rbx
mov r8, rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x28]
call fcn.140006ff0
mov rbx, rax
lea rdx, str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp
lea rcx, [rsp + 0x70]
call fcn.1400073f0
nop
mov r9, rbx
mov r8d, 0xe0
lea rdx, [rsp + 0x70]
mov ecx, 3
call fcn.14004f120
nop
lea rcx, [rsp + 0x70]
call fcn.140007850
nop
lea rcx, [rbp - 0x28]
call fcn.140007850
nop
lea rcx, [rbp - 8]
call fcn.140007850
nop
lea rcx, [rbp + 0x18]
call fcn.140007850
call fcn.140007ec0
int3
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.140033f90
mov rbx, rax
lea rcx, [rbp + 0x40]
call fcn.1400080e0
mov qword [rsp + 0x50], rax
lea rax, str.unable_to_set__to__for_registry_key:_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x2f
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 8]
call fcn.140006d60
nop
lea rcx, str.message:__with_code:_
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], 0x19
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x18]
call fcn.140006ff0
mov rbx, rax
lea rdx, str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_src_service_service_main.cpp
lea rcx, [rbp - 0x28]
call fcn.1400073f0
nop
mov r9, rbx
mov r8d, 0xea
lea rdx, [rbp - 0x28]
mov ecx, 3
call fcn.14004f120
nop
lea rcx, [rbp - 0x28]
call fcn.140007850
nop
lea rcx, [rbp + 0x18]
call fcn.140007850
nop
lea rcx, [rbp - 8]
call fcn.140007850
nop
lea rcx, [rbp - 0x50]
call fcn.140007850
call fcn.140007ec0
int3