Function at 0x1400187b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1402126b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
test eax, eax
jne 0x1400187d7
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x78]
mov dword [rax], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140018839
mov eax, dword [rsp + 0x30]
jmp 0x1400188c3
cmp dword [rsp + 0x38], 1
je 0x14001884e
cmp dword [rsp + 0x38], 2
je 0x14001884e
mov eax, reloc.WS2_32.dll_listen
jmp 0x1400188c3
cmp qword [rsp + 0x70], 0
je 0x1400188ac
cmp dword [rsp + 0x34], 0
je 0x140018898
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
test rax, rax
jne 0x14001888f
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2 - 2]
test eax, eax
je 0x140018896
mov eax, reloc.WS2_32.dll_listen
jmp 0x1400188c3
jmp 0x1400188ac
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x70]
mov word [rdx + rax], cx
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x78]
mov dword [rcx], eax
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140138320
add rsp, 0x58
ret

Function at 0x1400188e0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x1400188f3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140018930
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x140018948
cmp qword [rsp + 0x70], 0
je 0x140018960
mov dword [rsp + 0x30], 1
jmp 0x140018968
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14001897e
mov eax, reloc.WS2_32.dll_listen
jmp 0x1400189e2
xor eax, eax
test eax, eax
jne 0x14001894e
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x140018997
mov rax, qword [rsp + 0x38]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret