Function at 0x1401fa540
Capabilities:
Create thread
Delete file
Enumerate files on windows
Query environment variable
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2ee0]
mov eax, 0x2fe0
call fcn.140203440
sub rsp, rax
mov rax, qword [0x14049bcb8]
xor rax, rsp
mov qword [rbp + 0x2ed0], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
movsxd r14, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rcx, qword [rax]
mov qword [rbp - 0x78], rcx
cmp r14, 1
jle 0x1401fa63f
mov ebx, 1
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbp - 0x78]
mov rcx, qword [rax + rbx*8]
movzx eax, byte [rcx]
sub al, 0x2d
test al, 0xfd
jne 0x1401fa633
inc rcx
lea rdx, str.embedding
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1401fa633
mov r8d, 0x1004
lea rdx, [rbp + 0xec0]
lea rcx, str.HOMEDRIVE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x1002
ja 0x1401fa633
mov edi, 0x1004
sub edi, eax
mov eax, eax
lea rdx, [rbp + 0xec0]
lea rdx, [rdx + rax*2]
mov r8d, edi
lea rcx, str.HOMEPATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1401fa633
cmp eax, edi
jae 0x1401fa633
lea rcx, [rbp + 0xec0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc rbx
cmp rbx, r14
jl 0x1401fa5b0
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov ecx, r14d
call qword [sym.imp.VBoxRT.dll_RTR3InitExe]
mov dil, 1
xor eax, eax
mov esi, eax
mov ebx, eax
lea r15d, [rax + 0xa]
mov r12d, 0x15180
mov r13d, 0x6400000
mov byte [rsp + 0x70], al
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0x1e
lea r9, str.__embedding
mov r8, qword [rbp - 0x78]
mov edx, r14d
lea rcx, [rbp + 0x20]
call qword [sym.imp.VBoxRT.dll_RTGetOptInit]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x20]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
mov r8d, eax
test eax, eax
je 0x1401fa751
lea r14, [0x140000000]
nop dword [rax]
lea eax, [r8 - 0x46]
cmp eax, 0x2f
ja case.0x1401fa6e0.80
movsxd rcx, eax
movzx eax, byte [r14 + rcx + 0x1fafec]
mov ecx, dword [r14 + rax*4 + 0x1fafc0]
add rcx, r14
jmp rcx
xor dil, dil
jmp case.0x1401fa6e0.77
mov rax, qword [rbp + 0x70]
lea rsi, [0x14030eea8]
test rax, rax
cmovne rsi, rax
xor dil, dil
jmp case.0x1401fa6e0.77
mov rbx, qword [rbp + 0x70]
jmp case.0x1401fa6e0.77
mov r15d, dword [rbp + 0x70]
jmp case.0x1401fa6e0.77
mov r13, qword [rbp + 0x70]
jmp case.0x1401fa6e0.77
mov r12d, dword [rbp + 0x70]
jmp case.0x1401fa6e0.77
mov byte [rsp + 0x70], 1
jmp case.0x1401fa6e0.77
lea rdx, [rbp + 0x70]
mov ecx, r8d
call qword [sym.imp.VBoxRT.dll_RTGetOptPrintError]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x20]
call qword [sym.imp.VBoxRT.dll_RTGetOpt]
mov r8d, eax
test eax, eax
jne 0x1401fa6c0
test dil, dil
je 0x1401fa8ec
test rbx, rbx
je 0x1401fa751
cmp byte [rbx], al
jne 0x1401fa795
mov r8b, 1
mov edx, 0x1004
lea rcx, [rbp + 0xec0]
call fcn.1402b79c0
test eax, eax
js 0x1401faf7b
lea r8, str.VBoxSVC.log
mov edx, 0x1004
lea rcx, [rbp + 0xec0]
call qword [sym.imp.VBoxRT.dll_RTPathAppend]
test eax, eax
js 0x1401faf7b
lea rbx, [rbp + 0xec0]
mov byte [rbp + 0xa8], 0
xor r14d, r14d
mov dword [rbp + 0x84], r14d
lea rax, [rbp + 0xa8]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x88], 0xc00
mov qword [rbp + 0x98], r14
mov qword [rbp + 0xa0], r14
mov dword [rbp + 0x80], 0xbabe0001
lea rax, [rbp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], 0x20001
lea rax, str.VBOXSVC_RELEASE_LOG
mov qword [rsp + 0x20], rax
lea r9, [0x14033fe64]
mov r8d, 0x4800000
mov rdx, rbx
lea rcx, str.COM_Server
call fcn.1402b88f0
test eax, eax
jns 0x1401fa8ef
mov r9d, eax
mov r8, qword [rbp + 0x90]
lea rdx, str.failed_to_open_release_log___s___Rrc_
lea ecx, [r14 + 1]
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
jmp 0x1401faf90
xor r9d, r9d
lea r8, str.Usage
lea rdx, str.Options:_n_n_RegServer:_tregister_COM_out_of_proc_server_n_UnregServer:_tunregister_COM_out_of_proc_server_n_ReregServer:_tunregister_and_register_COM_server_nno_options:_trun_the_server
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1401faf90
xor r14d, r14d
mov qword [rsp + 0x78], r14
call qword [sym.imp.VBoxRT.dll_RTBldCfgRevisionStr]
mov rbx, rax
call qword [sym.imp.VBoxRT.dll_RTBldCfgVersion]
mov r9, rbx
mov r8, rax
lea rdx, str._sr_s_n
lea rcx, [rsp + 0x78]
call fcn.14002d750
mov qword [rbp - 0x80], r14
lea r8, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_serverwin_svcmain.cpp
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.VBoxRT.dll_RTStrToUtf16Tag]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.VBoxRT.dll_RTStrFree]
xor r9d, r9d
lea r8, str.Version
mov rdx, qword [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.VBoxRT.dll_RTUtf16Free]
xor eax, eax
jmp 0x1401faf90
xor r14d, r14d
call qword [sym.imp.VBoxRT.dll_RTBldCfgRevision]
mov ebx, eax
call qword [sym.imp.VBoxRT.dll_RTBldCfgVersion]
lea r8, [0x1403c04c0]
mov qword [rsp + 0x60], r8
lea rdx, [0x1403c04c4]
mov qword [rsp + 0x58], rdx
lea rcx, [0x1403413dc]
mov qword [rsp + 0x50], rcx
lea r9, [0x1403c04c8]
mov qword [rsp + 0x48], r9
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea r8, str._s_s_s_s_VirtualBox__s_r_u__s_s_s_s
mov edx, 0x30
lea rcx, [0x1404b0128]
call qword [sym.imp.VBoxRT.dll_RTStrPrintf]
movzx eax, dil
neg al
sbb ecx, ecx
and ecx, 2
call fcn.1402b7cf0
mov ebx, eax
test eax, eax
jns 0x1401fa9fe
mov ecx, 0x1420010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401fa9cf
lea rax, str.SUCCEEDED_hRes_
mov qword [rsp + 0x38], rax
lea rax, str.int___cdecl_WinMain_struct_HINSTANCE____struct_HINSTANCE____char__int_
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x446
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxMain_src_serverwin_svcmain.cpp
mov qword [rsp + 0x20], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x142
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1420010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401fa9fe
mov dword [rsp + 0x20], ebx
lea r9, str.SVCMAIN:_init_failed:__Rhrc_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x142
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x68
call fcn.14020335c
mov rbx, rax
test rax, rax
je 0x1401faf60
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
mov qword [0x1404ad6d8], rbx
lea rcx, [rbx + 8]
call qword [sym.imp.VBoxRT.dll_RTCritSectInit]
test eax, eax
js 0x1401faa4d
mov byte [rbx + 0x38], 1
mov qword [0x1404ad6e0], rbx
xor r15d, r15d
mov qword [rbx + 0x48], r15
lea rax, vtable.CExeModule.0
mov qword [rbx], rax
mov qword [0x1404b00f8], rbx
movups xmm0, xmmword [0x140403e00]
movups xmmword [0x1404b0118], xmm0
lea rax, [0x14049bbe0]
cmp rax, 0xffffffffffffffff
je 0x1401faa8b
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [0x1404b00f8]
mov dword [rcx + 0x50], eax
mov r14d, r15d
test dil, dil
jne 0x1401faaf3
test rsi, rsi
je 0x1401fadf2
cmp byte [rsi], r14b
je 0x1401faae8
lea rcx, [rbp - 0x20]
call fcn.1401fb0f0
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.1401fb3c0
mov ebx, eax
test eax, eax
js 0x1401faad7
lea rcx, [rbp - 0x20]
call fcn.1401fb910
mov ebx, eax
lea rcx, [rbp - 0x20]
call fcn.1401fb150
test ebx, ebx
jns 0x1401fadf2
mov r14d, 1
jmp 0x1401fadf2
mov rbx, qword [0x1404b00f8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x58], rax
test rax, rax
je 0x1401fab36
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x1401f9950]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rax, qword [0x1404b00f8]
mov edi, r15d
mov rbx, qword [rax + 0x48]
test rbx, rbx
je 0x1401fabba
cmp qword [rbx], rdi
je 0x1401fabba
nop
test edi, edi
js 0x1401fabba
mov rax, qword [rbx + 8]
test rax, rax
je 0x1401fabb0
lea r8, [rbp - 0x80]
lea rdx, [0x14030ef70]
mov rcx, qword [rbx + 0x10]
call qword [case.0x140010858.0]
mov edi, eax
test eax, eax
js 0x1401fab9a
lea rax, [rbx + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8d, [r9 - 1]
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rbx]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov edi, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1401fabb0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140010858.0]
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1401fab50
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edx, 1
lea rcx, [0x1401f9120]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x1404b0108], rax
mov qword [rbp - 0x70], 0x200
mov qword [rbp - 0x60], r15
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x38], r15
lea rdx, [0x1401f9df0]
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x40], 2
lea r12, [0x1403bfd00]
mov qword [rbp - 0x30], r12
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x1401fac47
mov ecx, 0x1420010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401facc4
lea r9, str.Failed_to_register_window_class_for_session_monitoring_n
jmp 0x1401facb0
mov qword [rsp + 0x58], r15
mov rax, qword [0x1404b0108]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r12
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x1404b0100], rax
test rax, rax
jne 0x1401facc4
mov ecx, 0x1420010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401facc4
lea r9, str.Failed_to_create_window_for_session_monitoring_n
mov r8d, 0x142
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov rdi, r15
movzx esi, byte [rsp + 0x70]
test sil, sil
je 0x1401fad11
mov dword [rsp + 0x78], r15d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x1401fa4a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x1401fad5a
nop word [rax + rax]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x1401fad30
mov rcx, qword [0x1404b0100]
test rcx, rcx
je 0x1401fad8f
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [0x1404b0100], r15
mov rdx, qword [0x1404b0108]
test rdx, rdx
je 0x1401fad8f
mov rcx, r12
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov qword [0x1404b0108], r15
test sil, sil
je 0x1401fadbd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, r15d
mov rax, qword [0x1404b00f8]
mov rbx, qword [rax + 0x48]
test rbx, rbx
je 0x1401fadf2
cmp qword [rbx], rdx
je 0x1401fadf2
test edx, edx
js 0x1401fadf2
mov ecx, dword [rbx + 0x20]
test ecx, ecx
je 0x1401fade8
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov edx, eax
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1401fadd5
mov rsi, qword [0x1404b00f8]
mov rbx, qword [rsi + 0x48]
test rbx, rbx
je 0x1401fae34
cmp qword [rbx], 0
je 0x1401fae34
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401fae26
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140010858.0]
mov qword [rbx + 0x18], r15
add rbx, 0x28
cmp qword [rbx], 0
jne 0x1401fae10
cmp byte [rsi + 0x38], 0
je 0x1401fae7b
mov rdi, qword [rsi + 0x40]
test rdi, rdi
je 0x1401fae6d
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
call qword [case.0x140010858.0]
mov rbx, qword [rdi + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rdi
call fcn.140202f90
mov rdi, rbx
test rbx, rbx
jne 0x1401fae43
mov qword [rsi + 0x40], r15
lea rcx, [rsi + 8]
call qword [sym.imp.VBoxRT.dll_RTCritSectDelete]
mov byte [rsi + 0x38], 0
mov byte [0x1404b0110], 0
call fcn.1402b8430
mov rcx, qword [0x1404b00f8]
test rcx, rcx
je 0x1401faea4
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140010858.0]
mov qword [0x1404b00f8], r15
mov r8d, 0x104
lea rdx, [rbp + 0xcb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1401faf5b
mov edx, 0x5c
lea rcx, [rbp + 0xcb0]
call sub.VCRUNTIME140.dll_wcsrchr
mov word [rax], r15w
lea rcx, [rbp + 0xcb0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1401faf5b
lea rdx, [rbp + 0x80]
lea rcx, str.VirtualBoxVM.exe.
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401faf5b
nop dword [rax + rax]
test byte [rbp + 0x80], 0x10
jne 0x1401faf3e
lea rdx, str.VirtualBoxVM.exe
lea rcx, [rbp + 0xac]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1401faf3e
lea rcx, [rbp + 0xac]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1401faf10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, r14d
jmp 0x1401faf90
mov qword [0x1404b00f8], r14
lea rdx, str.not_enough_memory_to_create_ExeModule.
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
jmp 0x1401faf90
mov r8d, eax
lea rdx, str.failed_to_construct_release_log_filename__rc_Rrc
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
mov rcx, qword [rbp + 0x2ed0]
xor rcx, rsp
call fcn.140202f70
lea r11, [rsp + 0x2fe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret