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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1100]
mov eax, 0x1200
call fcn.140006040
sub rsp, rax
mov rax, qword [0x140013028]
xor rax, rsp
mov qword [rbp + 0x10f0], rax
mov rdi, rdx
mov ebx, ecx
xor esi, esi
lea rcx, [rbp - 8]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
lea r15, vtable.com::Utf8Str.0
mov qword [rbp - 8], r15
xor r14d, r14d
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], 4
lea r9, str.__verbose
mov r8, rdi
mov edx, ebx
lea rcx, [rbp + 0x80]
call qword [sym.imp.VBoxRT.dll_RTGetOptInit]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x80]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
test eax, eax
je 0x14000448b
nop dword [rax]
mov ecx, eax
sub ecx, 0x70
je 0x140004002
sub ecx, 5
je 0x140003ff9
cmp ecx, 1
jne 0x140004047
inc dword [0x1400132e0]
jmp 0x140004009
mov rsi, qword [rbp + 0xd0]
jmp 0x140004009
mov r14, qword [rbp + 0xd0]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x80]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
test eax, eax
jne 0x140003fe0
test rsi, rsi
je 0x14000448b
test r14, r14
je 0x140004061
lea rdx, [rbp - 8]
mov rcx, r14
call fcn.1400058a0
cmp eax, 1
jne 0x14000407d
mov ebx, eax
jmp 0x140004499
lea r8, [rbp + 0xd0]
mov edx, eax
lea rcx, str.create
call fcn.140003280
jmp 0x140004497
lea rdx, str.Enter_password:
lea rcx, [rbp - 8]
call fcn.140005a60
cmp eax, 1
jne 0x14000407d
mov ebx, eax
jmp 0x140004499
lea rcx, [rbp - 8]
call qword [sym.imp.VBoxRT.dll_public:_bool___cdecl_RTCString::isEmpty_void_const___ptr64]
test al, al
je 0x140004097
lea rcx, str.Password_is_missing
jmp 0x140004492
lea rcx, [rbp - 0x28]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
mov qword [rbp - 0x28], r15
lea rcx, [rbp - 0x48]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
mov qword [rbp - 0x48], r15
mov rdx, rsi
lea rcx, [rbp + 0x18]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_char_const____ptr64____ptr64]
mov qword [rbp + 0x18], r15
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x18]
call fcn.1400036a0
mov ebx, eax
lea rcx, [rbp + 0x18]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
test ebx, ebx
jns 0x1400040fe
mov r8d, ebx
mov rdx, rsi
lea rcx, str.create___Failed_to_get_domain_and_user_from_string__s___Rrc__n
call fcn.140003220
mov ebx, eax
jmp 0x140004474
lea rcx, [rbp - 0x48]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rbx, rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r9, rbx
mov r8, rax
lea rdx, str._s_s
lea rcx, [rbp + 0x38]
call fcn.140003600
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rbx, rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov qword [rsp + 0x20], rbx
mov r9, rax
lea r8, str.VirtualBox_Autostart_Service
lea rdx, str._s__s__s
lea rcx, [rbp + 0x58]
call fcn.140003600
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
mov qword [rbp - 0x68], r15
lea rcx, [rbp - 0x48]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rbx, rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov qword [rsp + 0x20], rbx
mov r9, rax
lea r8, str.VBoxAutostartSvc
lea rdx, str._s_s_s
lea rcx, [rbp - 0x68]
call qword [sym.imp.VBoxRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::printf_char_const____ptr64____ptr64]
lea rcx, [rbp + 0x38]
call fcn.140004f60
mov ebx, eax
test eax, eax
jns 0x1400041da
lea rcx, [rbp + 0x38]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rdx, rax
mov r8d, ebx
lea rcx, str.Failed_to_get_update__logon_as_service__policy_for_user__s___Rrc__n
call fcn.140003220
mov ebx, eax
jmp 0x140004453
mov ebx, 1
lea edx, [rbx + 1]
lea rcx, str.create
call fcn.140004780
mov rdi, rax
test rax, rax
je 0x140004453
mov edx, 0x1004
lea rcx, [rbp + 0xe0]
call qword [sym.imp.VBoxRT.dll_RTProcGetExecutablePath]
test rax, rax
je 0x140004446
cmp dword [0x1400132e0], 0
je 0x14000423f
lea rcx, [rbp - 0x68]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rdx, rax
lea r8, [rbp + 0xe0]
lea rcx, str.Creating_the__s_service__binary___s_..._n
call qword [sym.imp.VBoxRT.dll_RTPrintf]
lea rcx, [rbp - 0x68]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r9, rax
lea r8, [rbp + 0xe0]
lea rdx, str.__s____service_s
lea rcx, [rbp + 0x18]
call fcn.140003600
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140006cc0
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140006cc0
nop
lea rcx, [rbp + 0x18]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140006cc0
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140006cc0
nop
lea rcx, [rbp - 8]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140006cc0
mov rdx, qword [0x14000c6e0]
mov r10, rdx
mov rax, qword [rsp + 0x70]
test rax, rax
cmovne r10, rax
mov r9, rdx
mov rax, qword [rsp + 0x78]
test rax, rax
cmovne r9, rax
mov rcx, rdx
mov rax, qword [rbp - 0x80]
test rax, rax
cmovne rcx, rax
mov r8, rdx
mov rax, qword [rbp - 0x78]
test rax, rax
cmovne r8, rax
mov rax, qword [rbp - 0x70]
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x58], r9
lea rax, str.Winmgmt
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov r9d, 7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
je 0x1400043c6
lea rcx, [rbp - 0x68]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rdx, rax
lea rcx, str.Successfully_created_the__s_service._n
call qword [sym.imp.VBoxRT.dll_RTPrintf]
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400043fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x431
je 0x1400043f0
mov ecx, eax
call qword [sym.imp.VBoxRT.dll_RTErrConvertFromWin32]
mov edx, eax
mov r8d, edi
lea rcx, str.create___CreateService_failed__rc_Rrc___x__n
call fcn.140003220
jmp 0x1400043fc
lea rcx, str.create___The_service_already_exists__n
call fcn.140003220
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.140006bc0
nop
lea rcx, [rsp + 0x78]
call fcn.140006bc0
nop
lea rcx, [rbp - 0x80]
call fcn.140006bc0
nop
lea rcx, [rbp - 0x78]
call fcn.140006bc0
nop
lea rcx, [rbp - 0x70]
call fcn.140006bc0
nop
lea rcx, [rbp + 0x18]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
jmp 0x140004453
lea rcx, str.create___Failed_to_obtain_the_executable_path_n
call fcn.140003220
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
jmp 0x140004499
lea rcx, str.Username_is_missing
call fcn.140003220
mov ebx, eax
lea rcx, [rbp - 8]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x10f0]
xor rcx, rsp
call fcn.140005f60
mov rbx, qword [rsp + 0x1240]
add rsp, 0x1200
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret