Function at 0x1400033e0
Capabilities:
Create service
Delete service
Get common file path
Pause service
Persist via windows service
Start service
Stop service

Disassembly:
push rdi
sub rsp, 0x2c0
mov rax, qword [0x140052030]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rax, [rsp + 0x71]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x73]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x74]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x75]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x76]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x71]
movzx r8d, byte [rsp + 0x72]
movzx edx, byte [rsp + 0x73]
lea rcx, [rsp + 0x100]
call fcn.140009130
mov rcx, rax
call fcn.1400074c0
mov qword [rsp + 0xa0], rax
movzx r9d, byte [rsp + 0x74]
movzx r8d, byte [rsp + 0x75]
movzx edx, byte [rsp + 0x76]
lea rcx, [rsp + 0x120]
call fcn.1400090c0
mov rcx, rax
call fcn.1400074c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140055110], rax
call fcn.140003210
movzx eax, al
test eax, eax
je 0x1400034f6
mov al, 1
jmp 0x14000384b
mov byte [rsp + 0x70], 0
lea rcx, [rsp + 0x160]
call fcn.140002f10
nop
lea rax, [rsp + 0x1a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x140]
call fcn.140008220
nop
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x140]
call fcn.1400080f0
lea rax, [rsp + 0x77]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x79]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x77]
movzx r8d, byte [rsp + 0x78]
movzx edx, byte [rsp + 0x79]
lea rcx, [rsp + 0xe0]
call fcn.1400091a0
mov rcx, rax
call fcn.1400076c0
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.1400080c0
lea rax, [rsp + 0x7a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x7b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x7c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x140]
call fcn.140008010
mov qword [rsp + 0xb0], rax
movzx r9d, byte [rsp + 0x7a]
movzx r8d, byte [rsp + 0x7b]
movzx edx, byte [rsp + 0x7c]
lea rcx, [rsp + 0xf0]
call fcn.1400091e0
mov rcx, rax
call fcn.1400076c0
mov qword [rsp + 0xb8], rax
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xb8]
mov cx, 0x65
call fcn.1400030c0
mov dword [rsp + 0x88], 0xf003f
mov r8d, dword [rsp + 0x88]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x140]
call fcn.140008010
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x160]
call fcn.140008010
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x160]
call fcn.140008010
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, dword [rsp + 0x88]
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0x80], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140003210
movzx eax, al
test eax, eax
je 0x140003777
mov byte [rsp + 0x70], 1
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x160]
call fcn.140008010
mov r8d, 0x10020
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
lea r8, [rsp + 0x180]
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x7d], al
lea rcx, [rsp + 0x140]
call fcn.140008150
nop
lea rcx, [rsp + 0x160]
call fcn.140008150
movzx eax, byte [rsp + 0x7d]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140018320
add rsp, 0x2c0
pop rdi
ret