Function at 0x140004950
Capabilities:
Enumerate processes
Start service

Disassembly:
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140035080]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
mov qword [rsp + 0x40], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400049cf
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x5c]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov edx, 0x14
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x1400049f4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.____This_program_requires_administrator_privileges
lea rcx, [0x1400366c0]
call fcn.1400018e0
mov rcx, rax
call fcn.140002570
mov eax, 1
jmp 0x140004ac0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], r14d
je 0x1400049cf
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movdqu xmmword [rsp + 0x40], xmm0
call fcn.140004040
test al, al
jne 0x140004a3d
lea rdx, str.____Failed_to_initialize_driver
lea rcx, [0x1400366c0]
call fcn.1400018e0
mov rcx, rax
call fcn.140002570
mov eax, 1
jmp 0x140004ac0
lea rdx, str.___Driver_initialized_in_the_system
mov qword [rsp + 0x2c0], rbx
lea rcx, [0x140036590]
call fcn.1400018e0
mov rcx, rax
call fcn.140002570
mov rbx, qword [rsp + 0x48]
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140004ae0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140004ae0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.____Failed_to_start_driver
lea rcx, [0x1400366c0]
call fcn.1400018e0
mov rcx, rax
call fcn.140002570
mov eax, 1
mov rbx, qword [rsp + 0x2c0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400094b0
mov r14, qword [rsp + 0x2d8]
add rsp, 0x2b0
pop rbp
ret
lea rdx, str.___Driver_is_running
lea rcx, [0x140036590]
call fcn.1400018e0
mov rcx, rax
call fcn.140002570
lea rdx, [0x140004720]
mov ecx, 2
call fcn.14000f420
lea rdx, str.___Moonblood_Started
lea rcx, [0x140036590]
call fcn.1400018e0
mov rcx, rax
call fcn.140002570
movzx eax, byte [0x140035018]
nop
test al, al
je 0x140004d4f
mov qword [rsp + 0x2c8], rsi
mov qword [rsp + 0x2d0], rdi
nop word [rax + rax]
mov rsi, qword [0x140036398]
mov rdi, qword [0x140036390]
cmp rdi, rsi
je 0x140004d2f
nop word [rax + rax]
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004c3d
xor edx, edx
mov dword [rsp + 0x60], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x64]
call fcn.1400236f0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140004c34
nop dword [rax + rax]
lea rcx, [rbp - 0x74]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140004bd0
cmp qword [rdi + 0x18], 7
mov r8, rdi
jbe 0x140004be7
mov r8, qword [rdi]
mov rdx, qword [rdi + 0x10]
cmp rdx, rax
jne 0x140004c23
lea rax, [rbp - 0x74]
test rdx, rdx
je 0x140004c14
lea rcx, [rbp - 0x74]
sub r8, rcx
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x140004c23
add rax, 2
sub rdx, 1
jne 0x140004c00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x68]
jmp 0x140004c40
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140004bc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
test eax, eax
je 0x140004d22
xor ecx, ecx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x40], ecx
xorps xmm0, xmm0
mov rcx, qword [str..TfSysMon]
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x44], eax
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004d22
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], r14d
mov r9d, 0x18
mov edx, 0xb4a00404
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004d22
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rdi + 0x18], 7
mov rbx, rdi
jbe 0x140004cdd
mov rbx, qword [rdi]
lea rdx, str.___Killed_process:
lea rcx, [0x1400367e0]
call fcn.140001b90
mov rcx, rax
mov rdx, rbx
call fcn.140001b90
mov dl, 0xa
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.1400047c0
movzx edx, ax
mov rcx, rbx
call fcn.140004570
mov rcx, rbx
call fcn.140003ee0
add rdi, 0x20
cmp rdi, rsi
jne 0x140004b70
movzx eax, byte [0x140035018]
nop
test al, al
jne 0x140004b50
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2c8]
xor eax, eax
jmp 0x140004ab8