Function at 0x14002a8b0
Capabilities:
Create service
Persist via windows service
Set current directory
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x2e0
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov r8d, 0x104
lea rdx, [rsp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x1c0]
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.140150800
mov edx, 0x5c
lea rcx, [rsp + 0xb0]
call fcn.140149b38
test rax, rax
je 0x14002a91a
mov byte [rax + 1], 0
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rbx, [0x14021f400]
test eax, eax
je 0x14002a9ba
lea r8, [0x1401f3b10]
mov edx, 0x104
mov rcx, rbx
call fcn.140150800
lea r8, [rsp + 0x1c0]
mov edx, 0x104
mov rcx, rbx
call fcn.140150860
lea r8, [0x1401f3b10]
mov edx, 0x104
mov rcx, rbx
call fcn.140150860
cmp qword [0x14021f178], 0
je 0x14002a9a6
lea r8, str.__inifile
mov edx, 0x104
mov rcx, rbx
call fcn.140150860
mov r8, qword [0x14021f178]
mov edx, 0x104
mov rcx, rbx
call fcn.140150860
lea r8, str.__service
mov edx, 0x104
mov rcx, rbx
call fcn.140150860
xor edx, edx
mov qword [rsp + 0x2f0], rdi
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x14002aa81
mov rax, qword [0x14022a710]
cmp dword [rax + 0xe20], esi
je 0x14002aa5b
xor edx, edx
xor ecx, ecx
mov r8d, 0x400001cf
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov rdi, rax
test rbx, rbx
je 0x14002aa77
test rax, rax
je 0x14002aa77
cmp rax, rbx
je 0x14002aa77
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetThreadDesktop]
lea r9d, [rsi + 0x10]
xor ecx, ecx
lea r8, str.UltraVNC
lea rdx, str.Failed_to_open_service_control_manager
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CloseDesktop]
lea eax, [rsi + 1]
jmp 0x14002ad36
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.UltraVNC
lea rdx, str.Failed_to_open_service_control_manager
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x14002ad36
xor edi, edi
lea rax, str.Tcpip
mov qword [rsp + 0x60], rdi
lea r8, [0x14021bd30]
mov qword [rsp + 0x58], rdi
lea rdx, [0x14021bd30]
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rdi
mov rcx, rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbx, rax
test rax, rax
jne 0x14002ac26
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002ab60
mov rax, qword [0x14022a710]
cmp dword [rax + 0xe20], edi
je 0x14002ab54
xor edx, edx
xor ecx, ecx
mov r8d, 0x400001cf
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov rdi, rax
test rbx, rbx
je 0x14002ac13
test rax, rax
je 0x14002ac13
cmp rax, rbx
je 0x14002ac13
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetThreadDesktop]
lea rdx, str.Failed:_Permission_denied
jmp 0x14002abbd
lea rdx, str.Failed:_Permission_denied
jmp 0x14002abfe
cmp eax, 0x431
je 0x14002ac13
mov rax, qword [0x14022a710]
cmp dword [rax + 0xe20], edi
je 0x14002abf7
xor edx, edx
xor ecx, ecx
mov r8d, 0x400001cf
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov rdi, rax
test rbx, rbx
je 0x14002ac13
test rax, rax
je 0x14002ac13
cmp rax, rbx
je 0x14002ac13
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetThreadDesktop]
lea rdx, str.Failed_to_create_a_new_service
lea r8, str.UltraVNC
mov r9d, reloc.WS2_32.dll_recv
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14002ad36
lea rdx, str.Failed_to_create_a_new_service
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.UltraVNC
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14002ad36
mov eax, dword [0x1401f3a10]
lea r9, [0x14021bd30]
movups xmm0, xmmword [str.Provides_secure_remote_desktop_sharing]
mov dword [rsp + 0xa0], eax
lea r8, str.SYSTEMCurrentControlSetServices_s
movzx eax, word [0x1401f3a14]
lea rcx, [rsp + 0xb0]
movups xmm1, xmmword [0x1401f3a00]
mov word [rsp + 0xa4], ax
mov edx, 0x100
movzx eax, byte [0x1401f3a16]
mov byte [rsp + 0xa6], al
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm1
call fcn.14002cfe0
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0xb0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea rcx, [rsp + 0x80]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x14002ace0
mov rcx, qword [rsp + 0x70]
lea rdx, str.Description
inc eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rdi, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140147af0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2e0
pop rsi
ret