Function at 0x140035120
Capabilities:
Install driver
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140112040]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rbp - 0x28], r14d
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
mov qword [rbp + 0x50], r14
mov edx, 0x9e18
lea rcx, [rbp + 0x40]
call fcn.140022460
mov rbx, qword [rbp + 0x40]
mov r8d, 0x9e18
lea rdx, [0x140162ce0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + 0x9e18]
mov qword [rbp + 0x48], rax
lea rdx, [rbp + 0x20]
call fcn.140034bf0
nop
lea rcx, [rbp - 0x50]
call fcn.140034aa0
nop
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x1400351b7
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
call fcn.14009d694
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rbp]
call fcn.1400360f0
mov ebx, Ordinal_30
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
lea rcx, [rbp]
call fcn.140015270
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], r14
mov qword [rbp + 0x70], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 0x20
lea rcx, [rbp]
call fcn.140004fe0
nop
lea rcx, [rbp - 0x50]
call fcn.140015200
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rdx, qword [rbp + 0x58]
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rbp + 0xe0]
call fcn.140035e70
nop
mov r8, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
sub r8, rdx
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0xe8]
call fcn.140031c20
test rax, rax
jne 0x1400352c4
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xe0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x30]
call fcn.140016430
mov qword [rbp], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, 1
test eax, eax
je 0x1400356c6
mov qword [rbp - 0x28], r14
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
lea r8, [rbp - 0x28]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400356c6
mov dword [rbp - 0x20], edi
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x14], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x20]
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400356c6
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.140015200
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rax, qword [rbp + 0x58]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp - 0x18], rax
call fcn.14009d694
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140022db0
or ebx, 0xc0
mov dword [rbp - 0x28], ebx
mov qword [rbp], r14
lea rax, [0x140284930]
mov qword [rbp + 8], rax
lea r8, [rbp]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140034900
bts ebx, 8
mov dword [rbp - 0x28], ebx
cmp dword [rbp], 0
jne 0x1400357be
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
mov qword [rbp - 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x18], rax
call fcn.14009d694
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.1400360f0
or ebx, 0xe00
mov dword [rbp - 0x28], ebx
mov r9d, 4
lea r8, [0x1400fa234]
lea rcx, [rbp - 0x70]
call fcn.140033cb0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
bts ebx, 0xc
mov dword [rbp - 0x28], ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, Ordinal_35
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp - 0x20]
call fcn.1400052d0
nop
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140015270
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
lea r8, [rbp]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1400354ff
movzx ebx, dil
jmp 0x1400355f7
mov byte [rbp - 0x30], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140035539
mov bl, 1
jmp 0x1400355f7
mov byte [rbp - 0x2f], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x2f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140035573
mov bl, 1
jmp 0x1400355f7
mov byte [rbp - 0x2e], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x2e]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400355aa
mov bl, 1
jmp 0x1400355f7
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, edi
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400355e7
mov bl, 1
jmp 0x1400355f7
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp - 0x20]
call fcn.140004fe0
nop
lea rcx, [rsp + 0x30]
call fcn.140004fe0
nop
lea rcx, [rbp - 0x70]
call fcn.140004fe0
nop
lea rcx, [rsp + 0x50]
call fcn.140015200
nop
lea rcx, [rsp + 0x70]
call fcn.140015200
test bl, bl
jne 0x1400356d0
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x88], xmm1
mov r8d, gethostname
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x78]
call fcn.1400052d0
nop
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
lea rcx, [rbp + 0x78]
call fcn.140015270
lea rdx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
cmova rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
lea rcx, [rbp + 0x78]
call fcn.140004fe0
jmp 0x1400356d3
lea rcx, [rsp + 0x30]
call fcn.140015200
mov ebx, r14d
mov dword [rbp + 0x98], ebx
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xa0]
call fcn.140014e80
nop
lea rcx, [rbp + 0xe0]
call fcn.140034cf0
nop
lea rcx, [rbp + 0x58]
call fcn.140004fe0
nop
lea rcx, [rbp + 0x20]
call fcn.140004fe0
nop
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140035749
mov rdx, qword [rbp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035743
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035743
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009e1f0
nop
cmp dword [rbp + 0x98], 0
jl 0x140035786
lea rax, [rbp + 0xa0]
cmp rsi, rax
je 0x140035789
lea rdx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova rdx, qword [rbp + 0xa0]
mov r8, qword [rbp + 0xb0]
mov rcx, rsi
call fcn.1400159b0
jmp 0x140035789
mov edi, r14d
lea rcx, [rbp + 0xa0]
call fcn.140004fe0
mov eax, edi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14009e1d0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea r8, [rsp + 0x70]
lea rdx, [rbp]
lea rcx, str.absolute
call fcn.140023470
int3