Function at 0x140006ca0
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x408
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x380], 0xfffffffffffffffe
mov qword [rbp + 0x98], rcx
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0x340], 0
mov qword [rbp + 0x348], 0
mov qword [rbp + 0x358], 0
mov rax, qword [rbp + 0x358]
mov qword [rbp + 0x350], rax
mov rcx, qword [rbp + 0x350]
mov qword [rbp + 0x320], 0
mov qword [rbp + 0x328], 0
mov qword [rbp + 0x338], 0
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x330], rax
mov rdx, qword [rbp + 0x330]
mov r8d, 2
call sub.advapi32.dll_OpenSCManagerW
mov rcx, rax
mov qword [rbp + 0xa8], rcx
mov qword [rbp + 0x240], rcx
call fcn.140007e20
test al, 1
jne 0x140006d9b
call fcn.1400083b0
mov qword [rbp + 0x80], rax
mov r8, rdx
mov rdx, qword [rbp + 0x80]
lea rcx, [rbp + 0xb0]
mov qword [rbp + 0x88], rcx
call fcn.140008410
mov rcx, qword [rbp + 0x88]
call fcn.140004cc0
mov qword [rbp + 0x90], rax
jmp 0x140006dae
mov rax, qword [rbp + 0x98]
mov qword [rax], 0
jmp 0x140006ebd
mov rdx, qword [rbp + 0x90]
mov rcx, qword [rbp + 0xa8]
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceW
mov qword [rbp + 0x78], rax
jmp 0x140006dcd
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x248], rax
lea rcx, [rbp + 0xb0]
call fcn.140009760
mov rcx, qword [rbp + 0x78]
call fcn.140007e20
test al, 1
jne 0x140006e61
lea rcx, [rbp + 0x1f0]
lea rdx, str.____Service_already_exists._n
mov r8d, 1
call fcn.1400082b0
lea rcx, [rbp + 0x1f0]
call fcn.14007f6c0
mov rcx, qword [rbp + 0xa8]
call sub.advapi32.dll_CloseServiceHandle
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x220], rdx
mov qword [rbp + 0x228], rcx
mov rdx, qword [rbp + 0x220]
mov rcx, qword [rbp + 0x228]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rcx
mov qword [rax], 1
jmp 0x140006ebd
lea rcx, [rbp + 0xc8]
mov qword [rbp + 0x50], rcx
call fcn.140008500
mov rcx, qword [rbp + 0x50]
mov qword [rbp + 0x270], rcx
lea rax, [0x140005a00]
mov qword [rbp + 0x278], rax
mov qword [rbp + 0x260], rcx
mov qword [rbp + 0x268], rax
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x60], rax
call fcn.1400083c0
mov qword [rbp + 0x68], rdx
mov qword [rbp + 0x70], rax
jmp 0x140006ed0
mov rax, qword [rbp + 0xa0]
add rsp, 0x408
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0x58]
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x70]
mov qword [rbp + 0x168], rcx
mov qword [rbp + 0x170], rax
lea rcx, [rbp + 0x168]
mov qword [rbp + 0x290], rcx
lea rax, [fcn.14001dd90]
mov qword [rbp + 0x298], rax
mov qword [rbp + 0x280], rcx
mov qword [rbp + 0x288], rax
mov rcx, qword [rbp + 0x280]
mov rax, qword [rbp + 0x288]
mov qword [rbp + 0x148], r8
mov qword [rbp + 0x150], rdx
mov qword [rbp + 0x158], rcx
mov qword [rbp + 0x160], rax
mov rax, rsp
mov qword [rax + 0x20], 2
lea rdx, [0x140098ec0]
lea rcx, [rbp + 0x118]
mov r8d, 2
lea r9, [rbp + 0x148]
call fcn.140008170
jmp 0x140006f6f
lea rcx, [rbp + 0x100]
lea rdx, [rbp + 0x118]
call fcn.14000ab70
jmp 0x140006f84
mov rax, qword [rbp + 0x110]
mov qword [rbp + 0xf0], rax
movups xmm0, xmmword [rbp + 0x100]
movaps xmmword [rbp + 0xe0], xmm0
lea rcx, [rbp + 0xe0]
call fcn.140005b10
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x48], rax
jmp 0x140006fb6
mov r8, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x178]
call fcn.140008410
jmp 0x140006fcc
lea rcx, [rbp + 0x178]
call fcn.140004cc0
mov qword [rbp + 0x38], rax
jmp 0x140006fde
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x250], rax
call fcn.1400083b0
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], rax
jmp 0x140006ff8
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x190]
call fcn.140008410
jmp 0x14000700e
lea rcx, [rbp + 0x190]
call fcn.140004cc0
mov qword [rbp + 0x20], rax
jmp 0x140007020
call fcn.1400083b0
mov qword [rbp + 0x10], rdx
mov qword [rbp + 0x18], rax
jmp 0x14000702f
mov r8, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x1a8]
call fcn.140008410
jmp 0x140007045
lea rcx, [rbp + 0x1a8]
call fcn.140004cc0
mov qword [rbp + 8], rax
jmp 0x140007057
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0xa8]
mov r9, qword [rbp + 0x38]
mov qword [rbp + 0x300], 0
mov qword [rbp + 0x308], 0
mov qword [rbp + 0x318], 0
mov rax, qword [rbp + 0x318]
mov qword [rbp + 0x310], rax
mov r10, qword [rbp + 0x310]
mov qword [rbp + 0x360], 0
mov qword [rbp + 0x368], 0
mov qword [rbp + 0x378], 0
mov rax, qword [rbp + 0x378]
mov qword [rbp + 0x370], rax
mov r11, qword [rbp + 0x370]
mov qword [rbp + 0x2e0], 0
mov qword [rbp + 0x2e8], 0
mov qword [rbp + 0x2f8], 0
mov rax, qword [rbp + 0x2f8]
mov qword [rbp + 0x2f0], rax
mov rsi, qword [rbp + 0x2f0]
mov qword [rbp + 0x2c0], 0
mov qword [rbp + 0x2c8], 0
mov qword [rbp + 0x2d8], 0
mov rax, qword [rbp + 0x2d8]
mov qword [rbp + 0x2d0], rax
mov rdi, qword [rbp + 0x2d0]
mov qword [rbp + 0x2a0], 0
mov qword [rbp + 0x2a8], 0
mov qword [rbp + 0x2b8], 0
mov rax, qword [rbp + 0x2b8]
mov qword [rbp + 0x2b0], rax
mov rbx, qword [rbp + 0x2b0]
mov rax, rsp
mov qword [rbp - 8], rax
mov qword [rax + 0x60], rbx
mov qword [rax + 0x58], rdi
mov qword [rax + 0x50], rsi
mov qword [rax + 0x48], r11
mov qword [rax + 0x40], r10
mov qword [rax + 0x38], r9
mov dword [rax + 0x30], 1
mov dword [rax + 0x28], 2
mov dword [rax + 0x20], 1
mov r9d, 0xf01ff
call sub.advapi32.dll_CreateServiceW
mov qword [rbp], rax
jmp 0x1400071bd
mov rax, qword [rbp]
mov qword [rbp + 0x258], rax
lea rcx, [rbp + 0x1a8]
call fcn.140009760
jmp 0x1400071d6
lea rcx, [rbp + 0x190]
call fcn.140009760
jmp 0x1400071e4
mov rcx, qword [rbp]
call fcn.140007e20
mov byte [rbp - 9], al
jmp 0x1400071f2
mov al, byte [rbp - 9]
test al, 1
jne 0x140007209
jmp 0x1400071fb
lea rcx, [rbp + 0x178]
call fcn.140009760
jmp 0x140007224
lea rdx, str.____Failed_to_create_service._n
lea rcx, [rbp + 0x1c0]
mov r8d, 1
call fcn.1400082b0
jmp 0x140007280
lea rcx, [rbp + 0xe0]
call fcn.14000fc10
jmp 0x140007232
lea rcx, [rbp + 0xc8]
call fcn.14000fc10
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x230], rdx
mov qword [rbp + 0x238], rcx
mov rdx, qword [rbp + 0x230]
mov rcx, qword [rbp + 0x238]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rcx
mov qword [rax], 1
jmp 0x140006ebd
lea rcx, [rbp + 0x1c0]
call fcn.14007f6c0
jmp 0x14000728e
mov rcx, qword [rbp + 0xa8]
call sub.advapi32.dll_CloseServiceHandle
jmp 0x14000729c
mov rax, qword [rbp + 0x98]
mov qword [rax], 0
lea rcx, [rbp + 0x178]
call fcn.140009760
jmp 0x1400072b8
lea rcx, [rbp + 0xe0]
call fcn.14000fc10
jmp 0x1400072c6
lea rcx, [rbp + 0xc8]
call fcn.14000fc10
jmp 0x140006ebd