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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1100]
mov eax, 0x1200
call fcn.1400059f0
sub rsp, rax
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1250], rbx
mov rax, qword [0x1400101f0]
xor rax, rsp
mov qword [rbp + 0x10f0], rax
mov rdi, rdx
mov ebx, ecx
xor r13b, r13b
xor r14d, r14d
mov esi, r14d
lea rcx, [rsp + 0x70]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
lea r15, vtable.com::Utf8Str.0
mov qword [rsp + 0x70], r15
mov r12d, r14d
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], 3
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 0x140004678
mov edx, eax
sub edx, 0x70
je 0x1400041e3
sub edx, 5
je 0x1400041da
dec edx
jne 0x140004204
mov r13b, 1
jmp 0x1400041ea
mov rsi, qword [rbp + 0xd0]
jmp 0x1400041ea
mov r12, qword [rbp + 0xd0]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x80]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
test eax, eax
je 0x140004220
jmp 0x1400041c5
lea r8, [rbp + 0xd0]
mov edx, eax
lea rcx, str.create
call fcn.140003120
mov ebx, eax
jmp 0x140004686
test rsi, rsi
je 0x140004678
test r12, r12
je 0x140004261
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.140005310
cmp eax, 1
jne 0x140004279
mov rax, qword [sym.imp.VBoxRT.dll_const_RTCString::vftable]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.VBoxRT.dll_protected:_void___cdecl_RTCString::cleanup_void____ptr64]
mov eax, 1
jmp 0x14000469f
lea rdx, str.Enter_password:
lea rcx, [rsp + 0x70]
call fcn.1400054b0
cmp eax, 1
jne 0x140004279
jmp 0x140004240
cmp qword [rbp - 0x80], 0
jne 0x140004293
lea rcx, str.Password_is_missing
call fcn.1400030c0
mov ebx, eax
jmp 0x140004686
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x48], r15
lea rcx, [rbp - 8]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCString::constructor_void____ptr64]
mov qword [rbp - 8], 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 - 8]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x18]
call fcn.140003b90
mov ebx, eax
mov rcx, qword [sym.imp.VBoxRT.dll_const_RTCString::vftable]
mov qword [rbp + 0x18], rcx
lea rcx, [rbp + 0x18]
call qword [sym.imp.VBoxRT.dll_protected:_void___cdecl_RTCString::cleanup_void____ptr64]
test ebx, ebx
jns 0x140004333
mov r8d, ebx
mov rdx, rsi
lea rcx, str.create___CreateService_failed__failed_to_get_domain_and_user_from_string__s___d_._n
call fcn.1400030c0
mov ebx, eax
mov rcx, qword [sym.imp.VBoxRT.dll_const_RTCString::vftable]
mov qword [rbp - 8], rcx
lea rcx, [rbp - 8]
call qword [sym.imp.VBoxRT.dll_protected:_void___cdecl_RTCString::cleanup_void____ptr64]
nop
mov rcx, qword [sym.imp.VBoxRT.dll_const_RTCString::vftable]
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x48]
call qword [sym.imp.VBoxRT.dll_protected:_void___cdecl_RTCString::cleanup_void____ptr64]
nop
jmp 0x140004686
lea rcx, [rbp - 8]
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 r8, rax
mov r9, rbx
lea rdx, str._s_s
lea rcx, [rbp + 0x60]
call fcn.140003540
nop
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 - 8]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r9, rax
mov qword [rsp + 0x20], rbx
lea r8, str.VirtualBox_Autostart_Service
lea rdx, str._s__s__s
lea rcx, [rbp + 0x40]
call fcn.140003540
nop
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x28], r15
lea rcx, [rbp - 8]
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 r9, rax
mov qword [rsp + 0x20], rbx
lea r8, str.VBoxAutostartSvc
lea rdx, str._s_s_s
lea rcx, [rbp - 0x28]
call qword [sym.imp.VBoxRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::printf_char_const____ptr64____ptr64]
mov ebx, 1
lea edx, [rbx + 1]
lea rcx, str.create
call fcn.140003810
mov rdi, rax
test rax, rax
je 0x140004634
mov edx, 0x1004
lea rcx, [rbp + 0xe0]
call qword [sym.imp.VBoxRT.dll_RTProcGetExecutablePath]
test rax, rax
je 0x14000461f
test r13b, r13b
je 0x140004440
lea rcx, [rbp - 0x28]
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 - 0x28]
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.140003540
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400061f0
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400061f0
nop
lea rcx, [rbp + 0x18]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1400061f0
nop
lea rcx, [rbp + 0x60]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400061f0
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400061f0
nop
mov rdx, qword [0x14000aec0]
mov r10, rdx
mov rax, qword [rbp - 0x50]
test rax, rax
cmovne r10, rax
mov r9, rdx
mov rax, qword [rbp - 0x68]
test rax, rax
cmovne r9, rax
mov rcx, rdx
mov rax, qword [rbp - 0x58]
test rax, rax
cmovne rcx, rax
mov r8, rdx
mov rax, qword [rbp - 0x70]
test rax, rax
cmovne r8, rax
mov rax, qword [rbp - 0x60]
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
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 rdi, rax
test rax, rax
je 0x1400045a8
lea rcx, [rbp - 0x28]
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]
mov ebx, r14d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400045d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x1400045cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.create___CreateService_failed__err_d._n
call fcn.1400030c0
jmp 0x1400045d7
lea rcx, str.create___The_service_already_exists._n
call fcn.1400030c0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rbp - 0x50]
call fcn.140006100
nop
lea rcx, [rbp - 0x68]
call fcn.140006100
nop
lea rcx, [rbp - 0x58]
call fcn.140006100
nop
lea rcx, [rbp - 0x70]
call fcn.140006100
nop
lea rcx, [rbp - 0x60]
call fcn.140006100
nop
lea rcx, [rbp + 0x18]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
jmp 0x140004634
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.create___Failed_to_obtain_the_executable_path:__d_n
call fcn.1400030c0
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x60]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
nop
lea rcx, [rbp - 8]
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, [rsp + 0x70]
call qword [sym.imp.VBoxRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
jmp 0x14000469d
lea rcx, str.Username_is_missing
call fcn.1400030c0
mov ebx, eax
mov rcx, qword [sym.imp.VBoxRT.dll_const_RTCString::vftable]
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x70]
call qword [sym.imp.VBoxRT.dll_protected:_void___cdecl_RTCString::cleanup_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x10f0]
xor rcx, rsp
call fcn.140005930
mov rbx, qword [rsp + 0x1250]
add rsp, 0x1200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret