Function at 0x140003010
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 r12
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
mov qword [rbp + 0x70], r12
mov ecx, 0x9e3f
call fcn.14000b648
test rax, rax
je 0x140003adf
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rcx
lea rbx, [rcx + 0x9e18]
mov qword [rbp + 0x70], rbx
mov r8d, 0x9e18
lea rdx, [0x140013050]
call fcn.14000c473
mov qword [rbp + 0x68], rbx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14001d95c], eax
jle 0x1400030de
lea rcx, [0x14001d95c]
call fcn.14000b538
cmp dword [0x14001d95c], 0xffffffff
jne 0x1400030de
lea rcx, [0x14001d95c]
call fcn.14000b4d8
lea rdx, [rbp + 0xd8]
call fcn.140002810
nop
lea rcx, [rbp - 8]
call fcn.140002580
nop
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140003102
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rax
call fcn.14000aa5c
movaps xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp + 0x80], xmm0
lea r8, [rbp + 0x80]
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.140006bf0
mov esi, 0x1c
lea rdx, [rbp + 0xd8]
lea rcx, [rbp - 0x48]
call fcn.140005410
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or esi, 0x20
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x1400031cc
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400031c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e1a0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x140003220
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000321b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000321b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e190]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], r12w
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x140]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rdx, qword [rbp + 0x90]
lea rcx, [rbp + 0x140]
call fcn.140005130
nop
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
sub r8, rdx
lea rcx, [rbp + 0x140]
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 + 0x148]
call fcn.140005870
test rax, rax
jne 0x1400032b5
mov rax, qword [rbp + 0x140]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x140]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x78]
call fcn.140005240
mov qword [rbp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x30]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r14d, 1
test eax, eax
jne 0x1400032f5
movzx ebx, r14b
jmp 0x14000337d
mov qword [rbp + 0xb0], r12
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea r8, [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140003325
movzx ebx, r14b
jmp 0x14000337d
mov dword [rbp + 0x80], r14d
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x84], rax
mov dword [rbp + 0x8c], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, 0x10
lea r8, [rbp + 0x80]
xor edx, edx
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140003371
movzx ebx, r14b
jmp 0x14000337d
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400033c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e190]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r12w
test bl, bl
je 0x1400033e0
mov ebx, r12d
jmp 0x140003905
mov rdi, qword [rbp + 0xa0]
lea rbx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rbx, qword [rbp + 0x90]
call fcn.14000aa5c
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rdi
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.140001940
or esi, 0xc0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x14000e190]
movdqu xmmword [rsp + 0x68], xmm1
mov word [rsp + 0x58], r12w
bts esi, 8
mov dword [rsp + 0x30], esi
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x58]
call fcn.1400023f0
test eax, eax
jne 0x140003ae6
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x68]
mov qword [rbp + 0x28], rax
call fcn.14000aa5c
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x20], xmm0
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, [rbp - 0x28]
call fcn.140006bf0
or esi, 0xe00
mov dword [rsp + 0x30], esi
mov r9d, 4
lea r8, str.___
lea rcx, [rbp - 0x28]
call fcn.140006970
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
bts esi, 0xc
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x50], xmm1
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp + 0x40]
call fcn.140002710
nop
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0x40]
call fcn.140005410
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rdx, qword [rbp + 0x40]
lea r8, [rbp + 0x20]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x140003589
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140003582
inc rdx
mov rcx, qword [rbp + 0x40]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000357d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400036a8
call fcn.14000b8dc
xor bl, bl
jmp 0x1400036b4
mov byte [rbp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003547
mov byte [rbp + 0x39], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003547
mov byte [rbp + 0x3a], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x3a]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003547
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, r14d
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003547
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x1400036b4
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e1a0]
mov byte [rbp + 0x40], 0
movdqu xmmword [rbp + 0x50], xmm0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140003705
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003700
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003700
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e1a0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140003756
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003751
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003751
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e1a0]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400037ac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400037a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e190]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140003800
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400038e2
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e190]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r12w
test bl, bl
jne 0x14000381e
mov ebx, r12d
jmp 0x140003905
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc8], xmm1
mov r8d, 0x34
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0xb8]
call fcn.140002710
nop
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0xb8]
call fcn.140005410
lea rdx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 0x10
cmovae rdx, qword [rbp + 0xb8]
lea rcx, [rbp + 0x120]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x130]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp + 0x130]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0x10
jb 0x1400038ee
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400038e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e1a0]
movdqu xmmword [rbp + 0xc8], xmm0
mov byte [rbp + 0xb8], 0
mov dword [rbp + 0xf8], ebx
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0x100]
call fcn.140005510
nop
lea rcx, [rbp + 0x140]
call fcn.140002a30
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x140003970
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000396b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000396b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
mov rdx, qword [rbp + 0xf0]
cmp rdx, 0x10
jb 0x1400039cd
inc rdx
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400039c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
movdqa xmm0, xmmword [0x14000e1a0]
movdqu xmmword [rbp + 0xe8], xmm0
mov byte [rbp + 0xd8], 0
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140003a2d
mov rdx, qword [rbp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r12
cmp dword [rbp + 0xf8], 0
jl 0x140003a6a
lea rax, [rbp + 0x100]
cmp r15, rax
je 0x140003a6d
lea rdx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0x10
cmovae rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x110]
mov rcx, r15
call fcn.140005a60
jmp 0x140003a6d
mov r14d, r12d
mov rdx, qword [rbp + 0x118]
cmp rdx, 0x10
jb 0x140003ab1
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003aac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003aac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
mov eax, r14d
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14000b390
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, [rbp - 0x68]
mov edx, eax
lea rcx, str.absolute
call fcn.140002320
int3