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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov edi, r9d
mov esi, edx
mov r13, rcx
mov r12, qword [rsp + 0x330]
mov qword [rsp + 0x80], r12
mov r14, qword [rsp + 0x338]
mov r15, qword [rsp + 0x340]
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], rax
mov ebx, eax
mov dword [rsp + 0x70], eax
test r8, r8
je 0x1400b53b2
cmp byte [r8], al
je 0x1400b53b2
lea rcx, [rsp + 0x1b0]
sub rcx, r8
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8]
mov byte [rcx + r8], al
lea r8, [r8 + 1]
test al, al
jne 0x1400b53a0
jmp 0x1400b53c8
mov r8d, 0x104
lea rdx, [rsp + 0x1b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
mov r8d, 0xf003f
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x98], rax
test rax, rax
je 0x1400b5839
or edi, 0x10
mov rdx, r12
mov rcx, r13
call fcn.1400b5870
test eax, eax
je 0x1400b5412
mov rdx, r12
mov rcx, r13
call fcn.1400b6600
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
mov dword [rsp + 0x90], ebx
cmp ebx, 5
jg 0x1400b5815
lea r8, [r13 + 0x48]
lea rdx, [r13 + 8]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r14
mov rax, qword [r13 + 0x1e0]
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
mov r9d, 0xf01ff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov r12, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jne 0x1400b54a4
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x1400b5417
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0xb0]
call fcn.140141ad0
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServicesEventLogApplication_]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm1, xmmword [0x140212680]
movaps xmmword [rsp + 0xc0], xmm1
movups xmm0, xmmword [0x140212690]
movaps xmmword [rsp + 0xd0], xmm0
movsd xmm1, qword [0x1402126a0]
movsd qword [rsp + 0xe0], xmm1
lea rcx, [rsp + 0xb0]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400b5502
xor edx, edx
nop dword [rax]
movzx eax, byte [rdx + r13 + 8]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400b5510
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x1400b5561
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x78]
lea r8, [rsp + 0xb0]
mov rdx, 0xffffffff80000002
mov rcx, rsi
call fcn.1400fcd10
jmp 0x1400b557b
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0xb0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400b57f7
lea rcx, [rsp + 0x1b0]
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400b5592
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.EventMessageFile
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test eax, eax
jne 0x1400b5658
lea rcx, [rsp + 0x1b0]
mov rax, rbx
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400b55e0
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.ParameterMessageFile
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test eax, eax
jne 0x1400b5658
mov dword [rsp + 0x80], 7
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
xor r8d, r8d
lea rdx, str.TypesSupported
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400b5686
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r14d, r14d
mov ecx, r14d
mov qword [rsp + 0x88], rcx
jmp 0x1400b5689
xor r14d, r14d
test edi, edi
jne 0x1400b57ff
lea rdi, [r13 + 0x88]
cmp byte [rdi], 0
je 0x1400b57cf
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm1, xmmword [0x1402126f8]
movaps xmmword [rsp + 0xc0], xmm1
movzx eax, word [0x140212708]
mov word [rsp + 0xd0], ax
movzx eax, byte [0x14021270a]
mov byte [rsp + 0xd2], al
lea rcx, [rsp + 0xb0]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400b56e7
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r13 + 8]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400b5700
test rsi, rsi
je 0x1400b575a
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400b5716
inc ebx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
lea r9, str.Description
lea r8, [rsp + 0xb0]
mov rdx, 0xffffffff80000002
mov rcx, rsi
call fcn.1400fd010
jmp 0x1400b57cf
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400b57cf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.Description
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x70], 1
mov edx, 4
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, 0x40020102
mov rcx, r13
call fcn.1400b5900
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400b580a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400b581f
mov ecx, 1
call fcn.1400fc6a0
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x1400b5835
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [rsp + 0x70]
mov eax, ebx
jmp 0x1400b5841
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140113910
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret