Function at 0x140018b10
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], 0
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServicesRasmanParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140018c06
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.NegotiateDH2048_AES256
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140018bdd
cmp dword [rsp + 0x40], eax
je 0x140018bf9
mov rcx, qword [rsp + 0x58]
lea r9d, [rbx + 4]
mov dword [rsp + 0x40], eax
lea rdx, str.NegotiateDH2048_AES256
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140018bf9
call fcn.140005b40
lea rdx, str.IKEv2IPSec::disableMODP2048Support:_failed_to_set_the_NegotiateDH2048_AES256_value___lu_
jmp 0x140018bee
cmp ebx, 2
je 0x140018bf9
call fcn.140005b40
lea rdx, str.IKEv2IPSec::disableMODP2048Support:_failed_to_query_the_NegotiateDH2048_AES256_value___lu_
mov r8d, ebx
mov rcx, rax
call fcn.14001eb20
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140018c1d
call fcn.140005b40
mov r8d, ebx
lea rdx, str.IKEv2IPSec::disableMODP2048Support:_failed_to_open_the_Rasman_Parameters_key___lu_
mov rcx, rax
call fcn.14001eb20
call fcn.140018c40
test al, al
je 0x140018c2e
mov al, 1
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
jmp 0x140018e70
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x1400f0158]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x40]
call fcn.140079be0
lea r8, str.Windscribe_IKEv2
lea rdx, str.PowerShell__Command__Set_VpnConnectionIPsecConfiguration__ConnectionName__ls__AuthenticationTransformConstants_GCMAES256__CipherTransformConstants_GCMAES256__EncryptionMethod_AES256__IntegrityCheckMethod_SHA256__DHGroup_ECP384__PfsGroup_ECP384__Force_
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x40]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x140018f43
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov edi, 1
mov dword [rsp + 0x20], edi
lea r9d, [rbx + 3]
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140018f37
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
movzx ecx, byte [rsp + 0x38]
test eax, eax
cmovne ecx, edi
mov byte [rsp + 0x38], cl
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, byte [rsp + 0x38]
test al, al
jne 0x140018f53
xor bl, bl
jmp 0x1400190c3
mov ecx, dword [0x1400fa820]
mov rax, qword gs:[0x58]
mov r8d, 4
mov rdx, qword [rax + rcx*8]
mov eax, dword [r8 + rdx]
cmp dword [0x1400f8c18], eax
jg 0x14001910f
mov rdi, qword [rsp + 0x30]
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
lea rax, [rbp - 0x40]
nop
inc rbx
cmp word [rax + rbx*2], si
jne 0x140018fa0
mov r8, rbx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.140003fa0
nop
mov r9, rdi
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
lea rcx, [0x1400f8bb0]
call fcn.140012cd0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140019017
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019012
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019152
call fcn.140071a3c
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
cmp byte [rsp + 0x78], 0
jne 0x140019072
call fcn.140005b40
lea r8, [rbp - 0x40]
lea rdx, str.Command_failed:__ls
mov rcx, rax
call fcn.14001ed30
cmp qword [rbp - 0x50], 0
je 0x140019072
call fcn.140005b40
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r8, qword [rbp - 0x60]
lea rdx, str.Output:__s
mov rcx, rax
call fcn.14001eb20
movzx ebx, byte [rsp + 0x78]
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400190ae
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400190a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019109
call fcn.140071a3c
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], select
mov byte [rbp - 0x60], 0
movzx eax, byte [rsp + 0x38]
test al, al
je 0x1400190cd
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x1400190de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.140071b40
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140085c7c
nop
lea rcx, [0x1400f8c18]
call fcn.140071f6c
cmp dword [0x1400f8c18], 0xffffffff
jne 0x140018f7c
lea rcx, [0x1400f8bb0]
call fcn.140012a30
lea rcx, [0x1400b2b60]
call fcn.140071dcc
nop
lea rcx, [0x1400f8c18]
call fcn.140071f0c
jmp 0x140018f7c
call fcn.140085c7c
int3