Function at 0x14010c0c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1401f6080]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rbp - 0x38], esi
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.1400b8aa0
mov qword [rbp - 0x48], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x48]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14010c521
mov qword [rbp - 0x38], rsi
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
lea r8, [rbp - 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14010c521
mov dword [rbp - 0x30], 1
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], 2
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14010c521
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.1400b83d0
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14010c1ca
mov rbx, qword [rbx]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rax
call fcn.1401747e0
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14010b2c0
mov dword [rbp - 0x38], 3
mov qword [rbp - 0x48], rsi
lea rax, [0x141671618]
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14010ba70
mov dword [rbp - 0x38], 7
cmp dword [rbp - 0x48], 0
jne 0x14010c552
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14010b420
nop
mov r9d, 4
lea r8, [0x1401d2d84]
xor edx, edx
mov rcx, rax
call fcn.140025ea0
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], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rbp - 0x38], reloc.WS2_32.dll_ntohs
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
mov r8d, Ordinal_35
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp - 0x30]
call fcn.1400256b0
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14010c2bb
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x30]
call fcn.140025310
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x14010c2f2
mov bl, 1
jmp 0x14010c3ed
mov byte [rbp - 0x50], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x14010c32c
mov bl, 1
jmp 0x14010c3ed
mov byte [rbp - 0x4f], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x4f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x14010c366
mov bl, 1
jmp 0x14010c3ed
mov byte [rbp - 0x4e], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x4e]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x14010c39d
mov bl, 1
jmp 0x14010c3ed
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, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x14010c3dd
mov bl, 1
jmp 0x14010c3ed
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp - 0x30]
call fcn.1400252b0
nop
lea rcx, [rsp + 0x30]
call fcn.1400252b0
nop
lea rcx, [rbp - 0x70]
call fcn.1400252b0
nop
lea rcx, [rsp + 0x70]
call fcn.1400b83d0
nop
lea rcx, [rsp + 0x50]
call fcn.1400b83d0
test bl, bl
jne 0x14010c52b
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov r8d, gethostname
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 0x10]
call fcn.1400256b0
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14010c45d
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140025310
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1416743fc], eax
jle 0x14010c4ca
lea rcx, [0x1416743fc]
call fcn.140175548
cmp dword [0x1416743fc], 0xffffffff
jne 0x14010c4ca
lea rcx, [0x1401c4a38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtLoadDriver
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1416743f0], rax
lea rcx, [0x1416743fc]
call fcn.1401754dc
cmp qword [0x1416743f0], 0
je 0x14010c511
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov rax, qword [0x1416743f0]
lea rcx, [rbp - 0x48]
call rax
test eax, eax
sete bl
jmp 0x14010c513
xor bl, bl
lea rcx, [rbp - 0x10]
call fcn.1400252b0
movzx eax, bl
jmp 0x14010c52d
lea rcx, [rsp + 0x30]
call fcn.1400b83d0
xor al, al
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140175100
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x48]
lea rcx, str.absolute
call fcn.14010ba10
int3