Function at 0x14008f700
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r14, rdx
mov r15, rcx
mov qword [rbp - 0x40], rdx
xor ebx, ebx
lea r8, [0x1402478fa]
lea rdx, str.expires_at
mov rcx, r14
call fcn.14007f7c0
test rax, rax
je 0x1400900f3
lea r8, [0x140247914]
lea rdx, str.access_token
mov rcx, r14
call fcn.14007f7c0
test rax, rax
je 0x1400900f3
lea r8, [0x140247980]
lea rdx, str.host
mov rcx, r14
call fcn.14007f510
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14007e130
nop
lea r8, [0x14024798f]
lea rdx, str.aes_key
lea rcx, [rsp + 0x78]
call fcn.14007f7c0
test rax, rax
je 0x1400900e8
lea r8, [0x140247922]
lea rdx, [0x140247920]
lea rcx, [rsp + 0x78]
call fcn.14007f7c0
test rax, rax
je 0x1400900e8
lea r8, [0x140247997]
lea rdx, str.gcm_aad
lea rcx, [rsp + 0x78]
call fcn.14007f7c0
test rax, rax
je 0x1400900e8
lea r8, [0x14024799f]
lea rdx, str.host_id
lea rcx, [rsp + 0x78]
call fcn.14007f7c0
test rax, rax
je 0x1400900e8
mov dword [rsp + 0x54], ebx
lea r8, [0x140247922]
lea rdx, [0x140247920]
lea rcx, [rsp + 0x78]
call fcn.14007f510
mov rcx, rax
call fcn.14007e7f0
mov dword [r15 + 0x9e0], eax
lea r8, [0x14024799f]
lea rdx, str.host_id
lea rcx, [rsp + 0x78]
call fcn.14007f510
lea rdx, [rbp + 0x40]
mov rcx, rax
call fcn.14007e600
nop
lea r9, [r15 + 0x9e4]
mov rdi, r9
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
setae byte [rsp + 0x50]
cmovae rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14008f903
test r9, r9
jne 0x14008f8b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x14008f8fd
test rax, rax
je 0x14008f8cf
cmp rcx, 0xc
ja 0x14008f8cf
mov r8, rcx
mov rdx, rax
mov rcx, r9
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14008f903
xor edx, edx
mov qword [r9], rdx
mov dword [r9 + 8], edx
test rax, rax
jne 0x14008f8eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x14008f8fd
cmp rcx, 0xc
jbe 0x14008f903
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov rcx, r15
call fcn.14008ea10
lea r8, [0x14024798f]
lea rdx, str.aes_key
lea rcx, [rsp + 0x78]
call fcn.14007f510
lea rdx, [rbp + 0x60]
mov rcx, rax
call fcn.14007e600
nop
lea r8, [0x140247997]
lea rdx, str.gcm_aad
lea rcx, [rsp + 0x78]
call fcn.14007f510
lea rdx, [rbp + 0x20]
mov rcx, rax
call fcn.14007e600
nop
mov r13, qword [rbp + 0x60]
mov rax, qword [rbp + 0x20]
cmp qword [rbp + 0x70], 0x40
jne 0x14008fa8e
cmp qword [rbp + 0x30], 0xc
jne 0x14008fa8e
lea rdi, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rdi, r13
lea r8, [r15 + 0x9fa]
cmp byte [rdi], 0
je 0x14008fa02
nop dword [rax]
movzx edx, byte [rdi + 1]
test dl, dl
je 0x14008f9fe
movzx ecx, byte [rdi]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14008f9a7
shl cl, 4
jmp 0x14008f9c7
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x14008f9b6
add cl, 9
shl cl, 4
jmp 0x14008f9c7
lea eax, [rcx - 0x61]
cmp al, 5
ja 0x14008f9c5
add cl, 9
shl cl, 4
jmp 0x14008f9c7
xor cl, cl
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14008f9d3
sub dl, 0x30
jmp 0x14008f9ed
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x14008f9df
sub dl, 0x37
jmp 0x14008f9ed
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x14008f9eb
sub dl, 0x57
jmp 0x14008f9ed
xor dl, dl
add dl, cl
mov byte [r8], dl
inc r8
add rdi, 2
cmp byte [rdi], 0
jne 0x14008f990
mov rax, qword [rbp + 0x20]
lea rdi, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rdi, rax
lea r8, [r15 + 0xa1a]
cmp byte [rdi], 0
je 0x14008fa8e
nop dword [rax + rax]
movzx edx, byte [rdi + 1]
test dl, dl
je 0x14008fa8e
movzx ecx, byte [rdi]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14008fa37
shl cl, 4
jmp 0x14008fa57
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x14008fa46
add cl, 9
shl cl, 4
jmp 0x14008fa57
lea eax, [rcx - 0x61]
cmp al, 5
ja 0x14008fa55
add cl, 9
shl cl, 4
jmp 0x14008fa57
xor cl, cl
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14008fa63
sub dl, 0x30
jmp 0x14008fa7d
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x14008fa6f
sub dl, 0x37
jmp 0x14008fa7d
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x14008fa7b
sub dl, 0x57
jmp 0x14008fa7d
xor dl, dl
add dl, cl
mov byte [r8], dl
inc r8
add rdi, 2
cmp byte [rdi], 0
jne 0x14008fa20
and dword [rsp + 0x68], 0xfffffe00
mov qword [rsp + 0x70], rbx
lea r8, [0x1402478fa]
lea rdx, str.expires_at
mov rcx, r14
call fcn.14007f510
mov rcx, rax
call fcn.14007e9e0
mov ecx, dword [rbp - 0x50]
and ecx, 0xfffffe02
or ecx, 2
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x48], rbx
mov esi, eax
mov qword [rbp - 0x58], rsi
lea r8, [0x14024797a]
lea rdx, str.expired_at
lea rcx, [rsp + 0x60]
call fcn.14007f510
mov rbx, rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x70]
call fcn.14007e130
movsx edx, byte [rbx + 8]
movzx ecx, byte [rbp - 0x68]
mov byte [rbx + 8], cl
mov edi, dword [rbp - 0x68]
and edi, 0xffffff00
movzx ecx, dl
or edi, ecx
mov rax, qword [rbx]
mov rcx, qword [rbp - 0x70]
mov qword [rbx], rcx
mov qword [rbp - 0x70], rax
mov ecx, dword [rbx + 8]
mov eax, edi
xor eax, ecx
and eax, 0x100
xor eax, ecx
mov dword [rbx + 8], eax
mov eax, edi
xor eax, ecx
and eax, 0x100
xor eax, edi
mov dword [rbp - 0x68], eax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbp - 0x60]
mov qword [rbx + 0x10], rax
mov qword [rbp - 0x60], rcx
lea rcx, [rbp - 0x70]
call fcn.14007e3b0
nop
lea rcx, [rbp - 0x58]
call fcn.14007e3b0
mov qword [r15 + 0x1530], rsi
lea r8, [0x140247914]
lea rdx, str.access_token
mov rcx, r14
call fcn.14007f510
mov rdi, rax
lea r8, [0x140247914]
lea rdx, str.access_token
lea rcx, [rsp + 0x60]
call fcn.14007f510
mov rcx, rax
mov rdx, rdi
call fcn.14007e4d0
lea r8, [0x140247914]
lea rdx, str.access_token
mov rcx, r14
call fcn.14007f510
lea rdx, [rbp + 0x80]
mov rcx, rax
call fcn.14007e600
nop
lea r9, [r15 + 0xd30]
mov rdi, r9
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
lea rbx, [rbp + 0x80]
mov r15, qword [rbp + 0x98]
cmp r15, 0x10
setae r12b
mov rdi, qword [rbp + 0x80]
cmovae rbx, rdi
mov rsi, qword [rbp + 0x90]
test rsi, rsi
je 0x14008fc7b
test r9, r9
jne 0x14008fc1f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x14008fc75
test rbx, rbx
je 0x14008fc3d
cmp rsi, 0x800
ja 0x14008fc3d
mov r8, rsi
mov rdx, rbx
mov rcx, r9
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14008fc7b
xor edx, edx
mov r8d, 0x800
mov rcx, r9
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
jne 0x14008fc60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x14008fc75
cmp rsi, 0x800
jbe 0x14008fc7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea rax, vtable.Json::FastWriter.0
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov byte [rbp - 8], 0
xor r8d, r8d
lea rdx, [0x140245fe5]
lea rcx, [rbp - 0x28]
call fcn.140084670
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x30]
call fcn.140080730
mov r8d, 1
lea rdx, [0x1402462dc]
lea rcx, [rbp - 0x28]
call fcn.1400847e0
lea rdx, [rbp - 0x28]
lea rcx, [rbp]
call fcn.140083ff0
nop
mov ecx, 0x68
call fcn.1401d0330
mov qword [rbp - 0x38], rax
mov rcx, rax
call fcn.140095650
mov rbx, rax
mov dword [rsp + 0x58], 0x1000
mov edx, 0x1000
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rsi, rax
lea rdx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rdx, qword [rbp]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, dword [rbp + 0x10]
mov rcx, rbx
call fcn.140095860
test eax, eax
jne 0x14008fe25
mov qword [rbp + 0xa0], 0xffffffff80000002
lea r8, str.SOFTWAREMonectPCRemoteReceiver
mov edx, 0x100
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14008fddc
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14008fe12
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
lea rdx, str.HCode
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0xa8]
mov dword [rsp + 0x54], 1
test rcx, rcx
je 0x14008fe25
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14008fe3c
mov rcx, rbx
call fcn.14008f660
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x14008fe7a
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008fe75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008fe75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d0398
xor ebx, ebx
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp], bl
lea rax, vtable.Json::FastWriter.0
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14008fed4
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008fecf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008fecf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d0398
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
lea rax, vtable.Json::Writer.0
mov qword [rbp - 0x30], rax
test r12b, r12b
je 0x14008ff29
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14008ff20
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008ff20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1401d0398
nop
movsx ecx, byte [rsp + 0x68]
sub ecx, 4
je 0x14008ffc5
sub ecx, 2
je 0x14008ff45
cmp ecx, 1
jne 0x14008ffda
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x14008ffda
mov rax, qword [rsi]
mov rdi, qword [rax + 8]
cmp byte [rdi + 0x19], 0
jne 0x14008ffa9
mov r8, qword [rdi + 0x10]
mov rdx, rsi
mov rcx, rsi
call fcn.140084fb0
mov rbx, rdi
mov rdi, qword [rdi]
lea rcx, [rbx + 0x30]
call fcn.14007e3b0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14008ff96
mov eax, dword [rbx + 0x28]
and al, 3
cmp al, 1
jne 0x14008ff96
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0x48
mov rcx, rbx
call fcn.1401d0398
cmp byte [rdi + 0x19], 0
je 0x14008ff60
mov edx, 0x48
mov rcx, qword [rsi]
call fcn.1401d0398
mov edx, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.1401d0398
jmp 0x14008ffda
test dword [rsp + 0x68], 0x100
je 0x14008ffda
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140090010
lea rdi, [rcx - 8]
lea r9, [0x14007e030]
mov r8, qword [rdi]
mov edx, 8
call fcn.1401d0670
mov rdx, qword [rdi]
lea rdx, [rdx*8 + 8]
mov rcx, rdi
call fcn.1401d05f8
nop
mov rax, qword [rbp + 0x38]
cmp rax, 0x10
jb 0x140090050
lea rdx, [rax + 1]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009004a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009004a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d0398
nop
mov rax, qword [rbp + 0x78]
cmp rax, 0x10
jb 0x14009008f
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x140090086
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090086
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.1401d0398
nop
cmp byte [rsp + 0x50], 0
je 0x1400900cf
mov rdx, qword [rbp + 0x58]
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400900c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400900c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d0398
nop
lea rcx, [rsp + 0x78]
call fcn.14007e3b0
nop
mov rcx, r14
call fcn.14007e3b0
mov eax, dword [rsp + 0x54]
jmp 0x1400900fd
lea rcx, [rsp + 0x78]
call fcn.14007e3b0
nop
mov rcx, r14
call fcn.14007e3b0
xor eax, eax
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1401d0310
mov rbx, qword [rsp + 0x410]
add rsp, 0x3c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret