Function at 0x140087620
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rbx, rcx
mov qword [rbp - 0x80], 0xffffffff80000002
lea r8, str.SOFTWAREMonectPCRemoteReceiver
mov edx, 0x100
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r14d, r14d
test eax, eax
je 0x1400876cb
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0xc]
mov rdx, qword [rbx + 0x13e8]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x1400876fc
mov dword [rbx + 0xc], 1
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x38]
mov rdx, qword [rbx + 0x13f0]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x14008772a
mov dword [rbx + 0x38], r14d
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 8]
mov rdx, qword [rbx + 0x13e0]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x14008775b
mov dword [rbx + 8], 1
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x10]
mov rdx, qword [rbx + 0x13f8]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087789
mov dword [rbx + 0x10], r14d
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x34]
mov rdx, qword [rbx + 0x1400]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x1400877ba
mov dword [rbx + 0x34], 1
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x14]
mov rdx, qword [rbx + 0x1408]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x1400877eb
mov dword [rbx + 0x14], 1
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x18]
mov rdx, qword [rbx + 0x1410]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087819
mov dword [rbx + 0x18], r14d
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x30]
mov rdx, qword [rbx + 0x1418]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087847
mov dword [rbx + 0x30], r14d
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x3c]
mov rdx, qword [rbx + 0x1420]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087878
mov dword [rbx + 0x3c], 1
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x40]
mov rdx, qword [rbx + 0x1428]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x1400878a6
mov dword [rbx + 0x40], r14d
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x44]
mov rdx, qword [rbx + 0x1430]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x1400878d4
mov dword [rbx + 0x44], r14d
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x48]
mov rdx, qword [rbx + 0x1438]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087905
mov dword [rbx + 0x48], 1
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x4c]
mov rdx, qword [rbx + 0x1440]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087936
mov dword [rbx + 0x4c], 1
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x50]
mov rdx, qword [rbx + 0x1448]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087967
mov dword [rbx + 0x50], 1
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x54]
mov rdx, qword [rbx + 0x1450]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087998
mov dword [rbx + 0x54], 1
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x58]
mov rdx, qword [rbx + 0x1458]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x1400879c9
mov dword [rbx + 0x58], 1
mov dword [rsp + 0x60], 8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov rdx, qword [rbx + 0x1478]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x1400879f6
mov word [rbx], r14w
mov dword [rsp + 0x60], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x264]
mov rdx, qword [rbx + 0x14b8]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087a2b
mov word [rbx + 0x264], r14w
mov dword [rsp + 0x60], reloc.WS2_32.dll_recvfrom
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x1c]
mov rdx, qword [rbx + 0x1460]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087a65
mov dword [rbx + 0x1c], 0x656e6f6d
mov word [rbx + 0x20], 0x7463
mov byte [rbx + 0x22], al
mov dword [rsp + 0x60], 0x208
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x5c]
mov rdx, qword [rbx + 0x1470]
lea rcx, [rbp - 0x80]
call fcn.140088010
test eax, eax
jne 0x140087aac
cmp word [rbx + 0x5c], ax
jne 0x140087aac
mov dword [rsp + 0x60], 0x104
lea rdx, [rsp + 0x60]
lea rcx, [rbx + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x5b0]
call sub.VCRUNTIME140.dll_memset
lea r8, str.SOFTWAREMonectPCRemoteReceiver
mov edx, 0x100
lea rcx, [rbp + 0x5b0]
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 + 0x5b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov qword [rbp + 0x190], 0xffffffff80000002
lea r8, [rbp + 0x5b0]
mov edx, 0x100
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140087b81
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x198]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop
mov rcx, qword [rbp + 0x198]
test rcx, rcx
jne 0x140087b92
lea esi, [rcx - 1]
jmp 0x140087be5
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, 0xffffffff
test eax, eax
cmove esi, dword [rsp + 0x60]
mov rcx, qword [rbp + 0x198]
mov edi, r14d
test esi, esi
jle 0x140087cbb
mov dword [rsp + 0x68], 8
mov dword [rsp + 0x64], 0x100
test rcx, rcx
je 0x140087cb1
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140087caa
cmp edi, dword [rsp + 0x60]
jae 0x140087c97
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x64]
lea r8, [rbp + 0x3a8]
mov edx, edi
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140087caa
lea rcx, [rbx + 0x12c8]
lea rdx, [rbp + 0x3a0]
call fcn.140087e90
mov rcx, qword [rbp + 0x198]
inc edi
cmp edi, esi
jl 0x140087bf0
lea rcx, [rbx + 0x12d8]
cmp word [rbx], 0x63
jne 0x140087cdd
cmp word [rbx + 2], 0x6e
jne 0x140087cdd
cmp word [rbx + 4], 0
lea r8, str.https:__monect.cn
je 0x140087ce4
lea r8, str.https:__monect.com
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov dword [rsp + 0x60], 0x208
lea r9, [rbx + 0x284]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x1468]
lea rcx, [rbp - 0x80]
call fcn.140088010
mov dword [rsp + 0x60], 0x208
lea r9, [rbx + 0x48c]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x1480]
lea rcx, [rbp - 0x80]
call fcn.140088010
mov dword [rsp + 0x60], 0x208
lea r9, [rbx + 0x694]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x1488]
lea rcx, [rbp - 0x80]
call fcn.140088010
mov dword [rsp + 0x60], 0x208
lea r9, [rbx + 0x89c]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x1490]
lea rcx, [rbp - 0x80]
call fcn.140088010
mov dword [rsp + 0x60], 0x208
lea r9, [rbx + 0xaa4]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x1498]
lea rcx, [rbp - 0x80]
call fcn.140088010
mov dword [rsp + 0x60], 0x208
lea r9, [rbx + 0xcac]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x14a0]
lea rcx, [rbp - 0x80]
call fcn.140088010
mov dword [rsp + 0x60], 0x208
lea r9, [rbx + 0xeb4]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x14a8]
lea rcx, [rbp - 0x80]
call fcn.140088010
mov dword [rsp + 0x60], 0x208
lea r9, [rbx + 0x10bc]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x14b0]
lea rcx, [rbp - 0x80]
call fcn.140088010
nop
mov rcx, qword [rbp + 0x198]
test rcx, rcx
je 0x140087e4b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140087e5a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1401d0310
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret