Function at 0x140001000
Capabilities:
Create service
Delete service
Persist via windows service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor ebx, ebx
mov dword [0x140021c28], 0x110
mov qword [0x140021c20], rbx
mov rdi, r8
mov qword [0x140021c38], rbx
mov dword [0x140021c40], ebx
mov dword [0x140021c2c], 2
mov qword [0x140021c30], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rbp, str.BMTGBJTXService
mov qword [rsp + 0x80], rbx
mov dword [0x140021c44], eax
lea rdx, str.install
lea rax, [0x140001350]
mov qword [rsp + 0x70], rbp
mov rcx, rdi
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], rbx
call fcn.14000753c
test eax, eax
jne 0x1400011f4
lea rcx, [0x14001cea8]
call fcn.140001b40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140001104
lea r8d, [rbx + 1]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
je 0x1400010f3
mov rcx, rax
lea esi, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
jne 0x1400011ea
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x140001138
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14001cfe8]
call fcn.140001b40
call fcn.1400017a0
jmp 0x14000131d
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x60], rbx
lea rax, [0x14001d000]
mov qword [rsp + 0x58], rbx
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rax
mov r8, rbp
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rbx
mov rdx, rbp
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x1400011cc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [0x14001d008]
call fcn.140001b40
call fcn.1400017a0
jmp 0x14000131d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [0x14001d020]
call fcn.140001b40
call fcn.1400017a0
jmp 0x14000131d
lea rdx, str.uninstall
mov rcx, rdi
call fcn.14000753c
test eax, eax
jne 0x140001302
lea rcx, [0x14001ced0]
call fcn.140001b40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x14000131d
mov r8d, 1
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
je 0x140001258
mov rcx, rax
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x14000131d
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x14000128d
lea rcx, [0x14001cfe8]
jmp 0x140001318
mov r8d, 0x10020
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x1400012b9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [0x14001d1d8]
jmp 0x140001318
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x1400012f9
lea rcx, [0x14001d1e8]
jmp 0x140001318
lea rcx, str.Service_could_not_be_deleted
jmp 0x140001318
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x14000131d
lea rcx, [0x14001cee8]
call fcn.140001b40
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140001d30
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret