Function at 0x180009400
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0x40], rsp
mov r14, rcx
xor r13d, r13d
mov qword [r11 - 0x88], r13
mov qword [r11 + 0x20], r13
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x50], r13d
xor eax, eax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov dword [rsp + 0x7c], eax
mov qword [r11 - 0x80], r13
mov dword [r11 + 0x10], 0x44
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [rax + 0x1e]
mov qword [rsp + 0x120], r13
mov ecx, 0x1000a
call fcn.180053ad4
mov rsi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rsi, rsi
je 0x18000954b
test rax, rax
je 0x18000954b
mov r9, r14
lea r8, [0x18008890c]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180009534
mov word [rbx + 0x1fffe], r13w
lea rdx, [r13 - 2]
mov rcx, rbx
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov rdx, rsi
lea rcx, [rsp + 0x120]
call fcn.180054798
test eax, eax
je 0x18000950b
mov r8d, edi
mov rdx, rbx
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
lea r9, str.SetPermissionsAllApplicationPackages
mov edx, 0x13d
mov r8d, 2
lea rcx, str...ApiAuxNA.cpp
call fcn.180001b40
jmp 0x180009564
mov edx, edi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x18000955e
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rsi, rsi
je 0x180009571
mov rcx, rsi
call fcn.180053a94
test rbx, rbx
je 0x18000957e
mov rcx, rbx
call fcn.180053a94
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov r12d, eax
test eax, eax
je 0x18000971e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r15d, [rax + 0x1e]
mov dword [rsp + 0x120], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [rax + 0x1e]
mov qword [rsp + 0x90], r13
mov ecx, 0x1000a
call fcn.180053ad4
mov rdi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x1800096c3
test rax, rax
je 0x1800096c3
mov qword [rsp + 0x20], r14
mov r9d, r12d
lea r8, str._d:__s
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x1800096ac
mov word [rbx + 0x1fffe], r13w
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov rdx, rdi
lea rcx, [rsp + 0x90]
call fcn.180054798
test eax, eax
je 0x180009683
mov r8d, esi
mov rdx, rbx
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
lea r9, str.SetPermissionsAllApplicationPackages
mov edx, 0x142
mov r8d, 1
lea rcx, str...ApiAuxNA.cpp
call fcn.180001b40
jmp 0x1800096dc
mov edx, esi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x1800096d6
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x1800096e9
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x1800096f6
mov rcx, rbx
call fcn.180053a94
mov dword [rsp + 0xb8], r15d
lea rdx, [0x180009712]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x120]
jmp 0x180009dcf
mov edx, dword [rsp + 0x118]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov qword [rsp + 0x88], rax
test rax, rax
jne 0x180009809
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x18000976e
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1800097e0
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x1800097ba
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rbx
lea r9, str.SetPermissionsAllApplicationPackages
mov edx, 0x146
mov r8d, 1
lea rcx, str...ApiAuxNA.cpp
call fcn.180001b40
jmp 0x1800097d8
mov edx, 5
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
mov dword [rsp + 0x98], 5
lea rdx, [0x1800097ff]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, 5
jmp 0x180009dcf
lea r9, [rsp + 0x118]
mov r8, rax
xor edx, edx
lea ecx, [rdx + 0x54]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x18000998d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r15d, [rax + 0x1e]
mov dword [rsp + 0x120], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [rax + 0x1e]
mov qword [rsp + 0xa0], r13
mov ecx, 0x1000a
call fcn.180053ad4
mov rdi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x180009932
test rax, rax
je 0x180009932
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov qword [rsp + 0x20], r14
lea r8, str._d:__s
mov edx, 0xffff
mov rcx, rbx
call fcn.180053a4c
test eax, eax
jle 0x18000991b
mov word [rbx + 0x1fffe], r13w
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.180054798
test eax, eax
je 0x1800098f2
mov r8d, esi
mov rdx, rbx
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
lea r9, str.SetPermissionsAllApplicationPackages
mov edx, 0x14b
mov r8d, 1
lea rcx, str...ApiAuxNA.cpp
call fcn.180001b40
jmp 0x18000994b
mov edx, esi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180009945
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x180009958
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x180009965
mov rcx, rbx
call fcn.180053a94
mov dword [rsp + 0xa8], r15d
lea rdx, [0x180009981]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x120]
jmp 0x180009dcf
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x50], 0xa0000000
mov dword [rsp + 0x54], 2
mov dword [rsp + 0x58], 3
mov dword [rsp + 0x6c], r13d
mov dword [rsp + 0x70], 5
mov qword [rsp + 0x78], rbx
lea r9, [rsp + 0x128]
mov r8, qword [rsp + 0x80]
lea rdx, [rsp + 0x50]
lea ecx, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov r12d, eax
test eax, eax
je 0x180009b60
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r15d, [rax + 0x1e]
mov dword [rsp + 0x120], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [rax + 0x1e]
mov qword [rsp + 0xb0], r13
mov ecx, 0x1000a
call fcn.180053ad4
mov rdi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x180009b05
test rax, rax
je 0x180009b05
mov qword [rsp + 0x20], r14
mov r9d, r12d
lea r8, str._d:__s
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180009aee
mov word [rbx + 0x1fffe], r13w
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov rdx, rdi
lea rcx, [rsp + 0xb0]
call fcn.180054798
test eax, eax
je 0x180009ac5
mov r8d, esi
mov rdx, rbx
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
lea r9, str.SetPermissionsAllApplicationPackages
mov edx, 0x159
mov r8d, 1
lea rcx, str...ApiAuxNA.cpp
call fcn.180001b40
jmp 0x180009b1e
mov edx, esi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180009b18
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x180009b2b
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x180009b38
mov rcx, rbx
call fcn.180053a94
mov dword [rsp + 0xcc], r15d
lea rdx, [0x180009b54]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x120]
jmp 0x180009dcf
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov r12d, eax
test eax, eax
je 0x180009cf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r15d, [rax + 0x1e]
mov dword [rsp + 0x120], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [rax + 0x1e]
mov qword [rsp + 0xc0], r13
mov ecx, 0x1000a
call fcn.180053ad4
mov rdi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x180009c9b
test rax, rax
je 0x180009c9b
mov qword [rsp + 0x20], r14
mov r9d, r12d
lea r8, str._d:__s
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180009c84
mov word [rbx + 0x1fffe], r13w
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov rdx, rdi
lea rcx, [rsp + 0xc0]
call fcn.180054798
test eax, eax
je 0x180009c5b
mov r8d, esi
mov rdx, rbx
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
lea r9, str.SetPermissionsAllApplicationPackages
mov edx, 0x15e
mov r8d, 1
lea rcx, str...ApiAuxNA.cpp
call fcn.180001b40
jmp 0x180009cb4
mov edx, esi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180009cae
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x180009cc1
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x180009cce
mov rcx, rbx
call fcn.180053a94
mov dword [rsp + 0xc8], r15d
lea rdx, [0x180009cea]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x120]
jmp 0x180009dcf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180009d0f
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x128]
test rcx, rcx
je 0x180009d23
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
xor eax, eax
jmp 0x180009dcf
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret