Function at 0x140003040
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 [0x140013040]
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 + 0x70], xmm1
mov qword [rbp + 0x80], r12
mov ecx, 0x9e3f
call fcn.14000b6e0
test rax, rax
je 0x140003ad5
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rbp + 0x70], rcx
lea rbx, [rcx + 0x9e18]
mov qword [rbp + 0x80], rbx
mov r8d, 0x9e18
lea rdx, [0x1400130c0]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0x78], rbx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14001d99c], eax
jle 0x140003110
lea rcx, [0x14001d99c]
call fcn.14000b668
cmp dword [0x14001d99c], 0xffffffff
jne 0x140003110
lea rcx, [0x14001d99c]
call fcn.14000b5fc
lea rdx, [rbp + 0xd0]
call fcn.140002840
nop
lea rcx, [rbp - 8]
call fcn.1400025a0
nop
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x140003134
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rax
call fcn.14000ac64
movaps xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rbp + 0x60], xmm0
lea r8, [rbp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.140006ca0
mov esi, 0x1c
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x48]
call fcn.140005460
xorps xmm0, xmm0
movups xmmword [rbp + 0x88], xmm0
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x88], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x98], 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, 0xf
jbe 0x1400031ef
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400031ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
movdqa xmm0, xmmword [0x14000e0e0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x140003243
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000323e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000323e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
movdqa xmm0, xmmword [0x14000e0d0]
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 + 0x88]
cmp qword [rbp + 0xa0], 0xf
cmova rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x140]
call fcn.140005170
nop
mov r8, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
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.140005910
test rax, rax
jne 0x1400032d8
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.140005280
mov qword [rbp + 0x18], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x18]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r14d, 1
test eax, eax
jne 0x140003315
movzx ebx, r14b
jmp 0x140003391
mov qword [rbp + 0xa8], r12
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rdx, qword [rsp + 0x78]
lea r8, [rbp + 0xa8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140003345
movzx ebx, r14b
jmp 0x140003391
mov dword [rbp + 0x60], r14d
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x64], rax
mov dword [rbp + 0x6c], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, 0x10
lea r8, [rbp + 0x60]
xor edx, edx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140003385
movzx ebx, r14b
jmp 0x140003391
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x1400033d5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
movdqa xmm0, xmmword [0x14000e0d0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r12w
test bl, bl
je 0x1400033f4
mov ebx, r12d
jmp 0x140003918
mov rdi, qword [rbp + 0x98]
lea rbx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 0xf
cmova rbx, qword [rbp + 0x88]
call fcn.14000ac64
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rdi
lea r8, [rbp + 0x30]
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.1400019a0
or esi, 0xc0
mov dword [rsp + 0x30], esi
mov qword [rbp + 0x30], r12
lea rax, [0x14001cee8]
mov qword [rbp + 0x38], rax
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x58]
call fcn.140002450
bts esi, 8
mov dword [rsp + 0x30], esi
cmp dword [rbp + 0x30], 0
jne 0x140003adc
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rax, qword [rsp + 0x58]
mov qword [rbp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov qword [rbp + 0x38], rax
call fcn.14000ac64
movaps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp + 0x30], xmm0
lea r8, [rbp + 0x30]
mov edx, eax
lea rcx, [rbp - 0x28]
call fcn.140006ca0
or esi, 0xe00
mov dword [rsp + 0x30], esi
mov r9d, 4
lea r8, str.___
lea rcx, [rbp - 0x28]
call fcn.140006a30
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.140002740
nop
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x40]
call fcn.140005460
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0xf
cmova rdx, qword [rbp + 0x40]
lea r8, [rbp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x14000359a
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140003593
inc rdx
mov rcx, qword [rbp + 0x40]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000358e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400036b6
call fcn.14000b964
mov bl, 1
jmp 0x1400036c7
mov byte [rbp + 0x20], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003558
mov byte [rbp + 0x21], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003558
mov byte [rbp + 0x22], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x22]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003558
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova 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 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003558
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x1400036c2
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
test ebx, ebx
setne bl
movdqa xmm0, xmmword [0x14000e0e0]
mov byte [rbp + 0x40], 0
movdqu xmmword [rbp + 0x50], xmm0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140003718
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003713
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003713
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
movdqa xmm0, xmmword [0x14000e0e0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140003769
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003764
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003764
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
movdqa xmm0, xmmword [0x14000e0e0]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x1400037bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400037ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
movdqa xmm0, xmmword [0x14000e0d0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140003813
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000380e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400038f5
call fcn.14000b964
movdqa xmm0, xmmword [0x14000e0d0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r12w
test bl, bl
je 0x140003831
mov ebx, r12d
jmp 0x140003918
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc0], xmm1
mov r8d, 0x34
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0xb0]
call fcn.140002740
nop
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xb0]
call fcn.140005460
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 0xf
cmova rdx, qword [rbp + 0xb0]
lea rcx, [rbp + 0x118]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0x128]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp + 0x128]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0xf
jbe 0x140003901
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400038fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
movdqa xmm0, xmmword [0x14000e0e0]
movdqu xmmword [rbp + 0xc0], xmm0
mov byte [rbp + 0xb0], 0
mov dword [rbp + 0xf0], ebx
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xf8]
call fcn.1400055f0
nop
lea rcx, [rbp + 0x140]
call fcn.140002a60
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0xf
jbe 0x140003983
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000397e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000397e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], 0xf
mov byte [rbp + 0x88], 0
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0xf
jbe 0x1400039e0
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400039db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
movdqa xmm0, xmmword [0x14000e0e0]
movdqu xmmword [rbp + 0xe0], xmm0
mov byte [rbp + 0xd0], 0
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140003a46
mov rdx, qword [rbp + 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r12
cmp dword [rbp + 0xf0], 0
jl 0x140003a60
lea rdx, [rbp + 0xf8]
mov rcx, r15
call fcn.140005500
jmp 0x140003a63
mov r14d, r12d
mov rdx, qword [rbp + 0x110]
cmp rdx, 0xf
jbe 0x140003aa7
inc rdx
mov rcx, qword [rbp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003aa2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003aa2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b964
mov eax, r14d
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14000b5a0
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]
lea rdx, [rbp + 0x30]
lea rcx, str.absolute
call fcn.1400023f0
int3