Function at 0x140086d70
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xdb0]
sub rsp, 0xeb0
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0xda0], rax
mov rdi, rcx
mov qword [rbp - 0x80], 0xffffffff80000002
lea rcx, [rbp - 0x70]
mov edx, 0x100
lea r8, str.SOFTWAREMonectPCRemoteReceiver
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x78]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
je 0x140086e1a
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rsi
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x13e0]
lea rax, [rdi + 8]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x13e8]
lea rax, [rdi + 0xc]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x13f0]
lea rax, [rdi + 0x38]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x13f8]
lea rax, [rdi + 0x10]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1400]
lea rax, [rdi + 0x34]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1408]
lea rax, [rdi + 0x14]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1410]
lea rax, [rdi + 0x18]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1418]
lea rax, [rdi + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1420]
lea rax, [rdi + 0x3c]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1428]
lea rax, [rdi + 0x40]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1430]
lea rax, [rdi + 0x44]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1438]
lea rax, [rdi + 0x48]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1440]
lea rax, [rdi + 0x4c]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1448]
lea rax, [rdi + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1450]
lea rax, [rdi + 0x54]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1458]
lea rax, [rdi + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087186
mov rdx, qword [rdi + 0x1460]
lea rax, [rdi + 0x1c]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recvfrom
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rbx, [rdi + 0x284]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400871c5
mov rdx, qword [rdi + 0x1468]
add eax, eax
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rbx, [rdi + 0x5c]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400873b5
mov rdx, qword [rdi + 0x1470]
add eax, eax
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400873b5
mov rdx, qword [rdi + 0x1480]
lea rax, [rdi + 0x48c]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400873b5
mov rdx, qword [rdi + 0x1488]
lea rax, [rdi + 0x694]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400873b5
mov rdx, qword [rdi + 0x1490]
lea rax, [rdi + 0x89c]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400873b5
mov rdx, qword [rdi + 0x1498]
lea rax, [rdi + 0xaa4]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400873b5
mov rdx, qword [rdi + 0x14a0]
lea rax, [rdi + 0xcac]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400873b5
mov rdx, qword [rdi + 0x14a8]
lea rax, [rdi + 0xeb4]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400873b5
mov rdx, qword [rdi + 0x14b0]
lea rax, [rdi + 0x10bc]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400873b5
mov rdx, qword [rdi + 0x14b8]
lea rax, [rdi + 0x264]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
lea r8, str.SOFTWAREMonectPCRemoteReceiver
mov edx, 0x100
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str.AllowList
mov edx, 0x100
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp + 0x3a0]
mov qword [rbp + 0x190], 0xffffffff80000002
mov edx, 0x100
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x198]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140087488
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x40], rsi
lea rdx, [rbp + 0x1a0]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rbp + 0x198]
test rcx, rcx
je 0x140087587
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rsi
xor r9d, r9d
mov qword [rsp + 0x48], rsi
xor r8d, r8d
mov qword [rsp + 0x40], rsi
xor edx, edx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140087580
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x9a0]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
mov ebx, esi
cmp dword [rsp + 0x60], ebx
jbe 0x140087580
mov rcx, qword [rbp + 0x198]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
lea rax, [rbp + 0x9a0]
mov dword [rsp + 0x68], 0x200
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x5a0]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x64], 0x400
mov qword [rsp + 0x28], rax
mov edx, ebx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140087580
mov rcx, qword [rbp + 0x198]
lea rdx, [rbp + 0x5a0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140087510
mov rcx, qword [rbp + 0x198]
mov rax, qword [rdi + 0x12c8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400875d2
test rcx, rcx
je 0x1400875c6
lea rax, [rbx + 0x10]
mov dword [rsp + 0x28], 8
lea rdx, [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x198]
mov rbx, qword [rbx]
cmp rbx, qword [rdi + 0x12c8]
jne 0x140087596
test rcx, rcx
je 0x1400875dd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400875ec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rbp + 0xda0]
xor rcx, rsp
call fcn.1401d0310
lea r11, [rsp + 0xeb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret