Function at 0x140001410
Capabilities:
Delete file
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor esi, esi
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x15]
lea rax, [rbp - 0x19]
mov dword [rbp - 0x15], esi
mov qword [rsp + 0x28], rax
lea rdx, [0x1400059b8]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov dword [rbp - 0x19], esi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ecx, dword [rbp - 0x15]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rbp - 0x19]
mov rbx, rax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r9, [rbp - 0x15]
xor r8d, r8d
mov rdi, rax
lea rdx, [0x1400059b8]
lea rax, [rbp + 0x3f]
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140001508
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_current_user_SID_
call fcn.140002f10
mov rcx, rax
lea rdx, [0x1400030f0]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001705
mov edx, 1
mov qword [rsp + 0x30], rsi
mov r8d, edx
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov qword [rsp + 0x20], rsi
lea rcx, str.C:WindowsSystem32SystemSettingsAdminFlows.exe
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
je 0x14000155b
lea rdx, str.Failed_to_change_ownership_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002f10
mov rcx, rax
lea rdx, [0x1400030f0]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400016fc
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Ownership_changed_to_the_current_user_
call fcn.140002f10
mov rcx, rax
lea rdx, [0x1400030f0]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rsp + 0x30], rsi
lea r9, [rbp - 9]
mov dword [rsp + 0x28], 0x80
lea rcx, str.C:WindowsSystem32SystemSettingsAdminFlows.exe
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
mov dword [rbp - 9], 0x18
mov qword [rbp - 1], rsi
mov dword [rbp + 7], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400015d3
lea rdx, str.Failed_to_open_SystemSettingsAdminFlows.exe_
jmp 0x14000153a
xorps xmm0, xmm0
mov qword [rbp + 0x2f], rsi
lea rax, str.Everyone
mov dword [rbp + 0xf], 0x10000000
lea r9, [rbp - 0x11]
mov qword [rbp + 0x37], rax
xor r8d, r8d
mov qword [rbp + 0x13], 2
lea rdx, [rbp + 0xf]
mov dword [rbp + 0x2b], 1
mov ecx, 1
mov qword [rbp - 0x11], rsi
movdqu xmmword [rbp + 0x1b], xmm0
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x1400016d0
mov rax, qword [rbp - 0x11]
lea rcx, str.C:WindowsSystem32SystemSettingsAdminFlows.exe
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, 1
mov r8d, 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x1400016a1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Permissions_granted_successfully_
call fcn.140002f10
mov rcx, rax
lea rdx, [0x1400030f0]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.C:WindowsSystem32SystemSettingsAdminFlows.exe
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140001698
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.SystemSettingsAdminFlows.exe_deleted_successfully_
jmp 0x1400016af
lea rdx, str.Failed_to_delete_SystemSettingsAdminFlows.exe_
jmp 0x1400016a8
lea rdx, str.Failed_to_set_security_info_on_the_file_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002f10
lea rdx, [0x1400030f0]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400016f3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_set_ACL_entries_
call fcn.140002f10
mov rcx, rax
lea rdx, [0x1400030f0]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140003440
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret