Function at 0x1402b3080
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov r15, r8
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x88], rdx
call fcn.140091ae4
mov r8, rax
cmp dword [rax], 4
jbe 0x1402b3145
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x1402b30d8
mov rcx, qword [r15]
mov qword [rsp + 0x48], rcx
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402b30ea
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
lea rax, [r13 + 8]
cmp qword [rax + 0x18], 8
jb 0x1402b30fd
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
lea rax, str.started_execution
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [0x140453f6c]
mov rcx, r8
call fcn.140001860
call fcn.14008d91c
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1400ca444
nop
mov rsi, qword [rsp + 0x60]
xor ebx, ebx
test rsi, rsi
jne 0x1402b319a
mov rcx, qword [rsp + 0x198]
mov edi, 0x80004003
mov r9d, edi
lea r8, str.amcorewcd_sourcecommands_adapters_src_restrictexecutionadapter.cpp
lea edx, [rsi + 0x28]
call fcn.140070bd4
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402b3193
call fcn.14007e3e0
mov eax, edi
jmp 0x1402b3b10
lea r14, [r13 + 8]
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.1402284b0
nop
mov rax, qword [rsp + 0x78]
mov byte [rax + 0x68], 2
mov rax, qword [rsi]
mov r8, qword [rax + 0x30]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xb8]
call fcn.14006a6bc
mov rdx, rax
mov rcx, rsi
mov rax, r8
call qword [case.0x1400ae9d9.0]
nop
mov dword [rsp + 0xb8], ebx
lea rsi, [0x1404e26b8]
mov r8, rsi
lea rdx, [0x140137f20]
lea rcx, [0x1404e26b0]
call qword [sym.imp.msvcp_win.dll_int___cdecl_std::_Execute_once_struct_std::once_flag____ptr64__int____cdecl___void____ptr64__void____ptr64__void____ptr64____ptr64___void____ptr64_]
nop dword [rax + rax]
test eax, eax
jne 0x1402b321d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_terminate]
nop dword [rax + rax]
int3
mov qword [rsp + 0xc0], rsi
lea r8, [rsp + 0xb8]
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.1401f7de0
nop
cmp dword [rsp + 0xb8], ebx
jle 0x1402b32d8
lea rdx, str.Parsing_the_JSON_configuration_parameters_string_has_failed_since_the_JSON_string_is_not_valid
lea rcx, [rsp + 0xd8]
call fcn.14008c350
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14006a6bc
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 0xfc
mov r9d, 0x80070057
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.1402b3b3c
nop
lea rcx, [rsp + 0xd8]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x40]
call fcn.14007fb38
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1402b32bf
call fcn.14007e3e0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402b32ce
call fcn.14007e3e0
mov eax, 0x80070057
jmp 0x1402b3b10
lea rdx, [0x1404fcfa8]
lea rcx, [rsp + 0x40]
call fcn.14007199c
mov rcx, rax
call fcn.140073ed8
mov rdx, rax
lea rcx, [rsp + 0x138]
call fcn.140099980
nop
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0xd8]
call fcn.14033b034
nop
lea rdx, [0x1404fcfe8]
lea rcx, [rsp + 0x118]
call fcn.140099980
nop
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [0x1404fcfc8]
mov rax, qword [rax + 8]
call qword [case.0x1400ae9d9.0]
test al, al
je 0x1402b3373
lea rdx, [0x1404fcfc8]
lea rcx, [rsp + 0x40]
call fcn.14007199c
mov rcx, rax
call fcn.140073ed8
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.14007d520
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rsp + 0x108], xmm0
mov word [rsp + 0xf8], bx
lea r12, [0x140504a80]
mov r8, r12
cmp qword [0x140504a98], 8
cmovae r8, qword [0x140504a80]
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x1402b33b3
mov rcx, qword [r14]
mov r9, qword [0x140504a90]
mov rdx, qword [r14 + 0x10]
call fcn.140087470
lea rcx, [rsp + 0xf8]
test al, al
je 0x1402b33d6
call fcn.1403433b8
jmp 0x1402b33db
call fcn.140343558
test eax, eax
jns 0x1402b34c0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jle 0x1402b33fe
movzx esi, ax
or esi, 0x80070000
lea rdx, str.Failed_to_get_policy_path
lea rcx, [rsp + 0x98]
call fcn.14008c350
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14006a6bc
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 0xfe
mov r9d, esi
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.1402b3b3c
nop
lea rcx, [rsp + 0x98]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xf8]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x118]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xd8]
call fcn.14007a750
nop
lea rcx, [rsp + 0x138]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x40]
call fcn.14007fb38
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1402b34aa
call fcn.14007e3e0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402b34b9
call fcn.14007e3e0
mov eax, esi
jmp 0x1402b3b10
mov dl, 1
lea rcx, [rsp + 0xf8]
call fcn.1402b4c64
mov esi, eax
test eax, eax
jns 0x1402b359b
lea rdx, str.Failed_to_create_policy_path
lea rcx, [rsp + 0x98]
call fcn.14008c350
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14006a6bc
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 0xfe
mov r9d, esi
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.1402b3b3c
nop
lea rcx, [rsp + 0x98]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xf8]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x118]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xd8]
call fcn.14007a750
nop
lea rcx, [rsp + 0x138]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x40]
call fcn.14007fb38
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1402b3585
call fcn.14007e3e0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402b3594
call fcn.14007e3e0
mov eax, esi
jmp 0x1402b3b10
mov qword [rsp + 0x48], rbx
lea r8, [0x1403a9ce8]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xb8]
call fcn.1400b9f70
nop
lea r8, [rsp + 0x118]
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.1400f0a08
nop
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1402b4b38
nop
lea rcx, [rsp + 0x98]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xb8]
call fcn.14007a7c0
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
jne 0x1402b36f6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jle 0x1402b3629
movzx esi, ax
or esi, 0x80070000
lea rdx, str.Failed_to_create_policy_file
lea rcx, [rsp + 0x98]
call fcn.14008c350
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14006a6bc
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 0xfe
mov r9d, esi
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.1402b3b3c
nop
lea rcx, [rsp + 0x98]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x48]
call fcn.1400f0310
nop
lea rcx, [rsp + 0xf8]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x118]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xd8]
call fcn.14007a750
nop
lea rcx, [rsp + 0x138]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x40]
call fcn.14007fb38
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1402b36e0
call fcn.14007e3e0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402b36ef
call fcn.14007e3e0
mov eax, esi
jmp 0x1402b3b10
mov dword [rsp + 0x70], ebx
mov rsi, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
sub rsi, rdx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x1402b3a04
cmp dword [rsp + 0x70], esi
jne 0x1402b3a04
lea rcx, [rsp + 0x48]
call fcn.1400f0310
cmp qword [0x140504a98], 8
cmovae r12, qword [0x140504a80]
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x1402b375f
mov rcx, qword [r14]
mov r9, qword [0x140504a90]
mov r8, r12
mov rdx, qword [r14 + 0x10]
call fcn.140087470
lea rcx, [rsp + 0x118]
test al, al
je 0x1402b38a7
call fcn.140342d0c
mov esi, eax
test eax, eax
js 0x1402b38ae
mov ecx, 0x66
call fcn.1403437e0
mov esi, eax
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x1402b37da
mov dword [rsp + 0x70], esi
lea rcx, str.SendToastNotification_returned
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, [0x1404543e2]
mov rcx, rax
call fcn.14000877c
test esi, esi
jns 0x1402b38ae
lea rdx, [0x1403a9f84]
lea rcx, [rsp + 0x98]
call fcn.14008c350
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14006a6bc
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 0xfe
mov r9d, 0x802a0001
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.1402b3b3c
nop
lea rcx, [rsp + 0x98]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xf8]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x118]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xd8]
call fcn.14007a750
nop
lea rcx, [rsp + 0x138]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x40]
call fcn.14007fb38
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1402b3891
call fcn.14007e3e0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402b38a0
call fcn.14007e3e0
xor eax, eax
jmp 0x1402b3b10
call fcn.1403436f8
mov esi, eax
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x1402b3931
cmp qword [r15 + 0x18], 8
jb 0x1402b38c2
mov r15, qword [r15]
mov qword [rsp + 0x50], r15
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402b38d4
mov rcx, qword [rdi]
mov qword [rsp + 0x48], rcx
cmp qword [r14 + 0x18], 8
jb 0x1402b38e3
mov r14, qword [r14]
mov qword [rsp + 0x70], r14
lea rcx, str.finished_execution
mov qword [rsp + 0xb8], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x20], rcx
lea rdx, [0x140453f29]
mov rcx, rax
call fcn.140001008
mov eax, 0xfffffffe
mov r14d, 3
test esi, esi
cmovs r14d, eax
lea rdx, [0x1403a9f84]
lea rcx, [rsp + 0x98]
call fcn.14008c350
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14006a6bc
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], r14b
mov r9d, esi
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.1402b3b3c
nop
lea rcx, [rsp + 0x98]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xf8]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x118]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xd8]
call fcn.14007a750
nop
lea rcx, [rsp + 0x138]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x40]
call fcn.14007fb38
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1402b39ee
call fcn.14007e3e0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402b39fd
call fcn.14007e3e0
mov eax, esi
jmp 0x1402b3b10
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jle 0x1402b3a1f
movzx esi, ax
or esi, 0x80070000
lea rdx, str.Failed_to_write_policy_content_to_file
lea rcx, [rsp + 0x98]
call fcn.14008c350
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14006a6bc
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 0xfe
mov r9d, esi
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.1402b3b3c
nop
lea rcx, [rsp + 0x98]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x48]
call fcn.1400f0310
nop
lea rcx, [rsp + 0xf8]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x118]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0xd8]
call fcn.14007a750
nop
lea rcx, [rsp + 0x138]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x40]
call fcn.14007fb38
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1402b3ad6
call fcn.14007e3e0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402b3ae5
call fcn.14007e3e0
mov eax, esi
jmp 0x1402b3b10
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140112420
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret