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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x12a0
call fcn.1400c3110
sub rsp, rax
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x1290], rax
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x290]
mov r8d, 0x800
call fcn.1400c5120
mov r8d, 0x800
lea rdx, [rsp + 0x290]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
xor r15d, r15d
mov rsi, rax
test rax, rax
je 0x14004ecbc
mov ebx, r15d
jmp 0x14004ecc4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r15
lea rdi, [r14 + 0x30]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
test ebx, ebx
jne 0x14004ef0f
mov rax, qword [r14]
mov rcx, r14
mov qword [rsp + 0x12c8], rbp
mov rax, qword [rax + 0x10]
call qword [0x1400fac68]
mov rbx, rax
mov rcx, r14
mov rax, qword [r14]
mov rax, qword [rax]
call qword [0x1400fac68]
mov qword [rsp + 0x60], r15
mov r9d, 0xf01ff
mov qword [rsp + 0x58], r15
mov rdx, rax
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x290]
mov qword [rsp + 0x48], r15
mov r8, rbx
mov qword [rsp + 0x40], r15
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
mov rbp, rax
test rax, rax
je 0x14004eda7
mov qword [rsp + 0x30], r15
mov r9d, 0x400
mov dword [rsp + 0x28], 0x400
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
jmp 0x14004eddf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov qword [rsp + 0x30], r15
mov r9d, 0x400
mov r8d, eax
mov dword [rsp + 0x28], 0x400
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ecx, 0x1000
mov ebx, eax
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
test ebx, ebx
jne 0x14004ef02
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rax, qword [r14]
mov rcx, r14
mov dword [rsp + 0x78], 7
mov rax, qword [rax]
call qword [0x1400fac68]
lea r9, str.SYSTEMCurrentControlSetServicesEventLogSystem
mov edx, 0x104
lea r8, str._s_s
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x80]
call fcn.140017d20
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], r15
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegCreateKeyW]
test eax, eax
jne 0x14004eecf
mov r8d, 0x800
lea rdx, [rsp + 0xa90]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov rcx, qword [rsp + 0x70]
lea rdx, str.TypesSupported
mov ebx, eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea eax, [rbx + 1]
mov r9d, 1
lea rcx, [rsp + 0xa90]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea rdx, str.EventMessageFile
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov al, 1
mov rbp, qword [rsp + 0x12c8]
mov rcx, qword [rsp + 0x1290]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0x12a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
xor al, al
jmp 0x14004eed1
xor al, al
jmp 0x14004eed9