Function at 0x1401a9e50
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x260
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
movdqa xmm0, xmmword [0x14038ac50]
movdqu xmmword [rsp + 0xb0], xmm0
xor esi, esi
mov byte [rsp + 0xa0], sil
call fcn.1401aa548
mov qword [rsp + 0xc8], rsi
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rsi
mov dword [rsp + 0xe0], esi
lea rax, [rsp + 0x120]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0xf8], esi
mov byte [rsp + 0xfc], sil
mov byte [rsp + 0x138], sil
mov dword [rsp + 0x120], esi
lea rax, [0x14035f4f8]
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x140], 1
mov qword [rsp + 0x1d8], rsi
xor edx, edx
mov r8d, SysAllocStringByteLen
lea rcx, [rsp + 0x148]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor eax, eax
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x1e8], rax
mov qword [rsp + 0x1f0], rsi
lea r15, vtable.sense::CommonTelemetry::OctagonReportActivity.0
mov qword [rsp + 0xc0], r15
lea rcx, [rsp + 0xc0]
call fcn.1401a98ac
nop
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.1401aa70c
mov ebx, eax
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.14018e668
mov rcx, qword [rsp + 0x268]
lea rax, str.Failed_to_get_SGRM_Report
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.amcorewcd_source_behaviormonitor_srcoctagonreportaction.cpp
lea edx, [rsi + 0x53]
call fcn.14006d134
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.1401ab8a4
nop
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
sub rax, rbx
sar rax, 5
cmp rax, 3
je 0x1401a9ffd
call fcn.1402b9bb8
mov rbx, qword [rsp + 0x48]
add rbx, 0x20
mov dword [rsp + 0x40], esi
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1401aa012
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, dword [rbx + 0x10]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1401aa4c1
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140076f04
nop
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1401aa05b
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x60]
mov r8d, 1
mov edx, eax
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1401aa503
mov ebx, dword [rsp + 0x40]
movdqa xmm0, xmmword [0x14038ac50]
movdqu xmmword [rsp + 0x210], xmm0
mov byte [rsp + 0x200], sil
lea rcx, [rsp + 0x200]
cmp rbx, 0xf
ja 0x1401aa0d8
mov qword [rsp + 0x210], rbx
mov r8d, ebx
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_memmove]
mov byte [rsp + rbx + 0x200], sil
jmp 0x1401aa0e6
mov r9, qword [rsp + 0x60]
mov rdx, rbx
call fcn.1400672b8
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401aa12a
mov rax, qword [rsp + 0x70]
sub rax, rcx
mov rdx, rcx
cmp rax, 0x1000
jb 0x1401aa125
test dl, 0x1f
jne 0x1401aa11e
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x1401aa11e
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x1401aa125
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402e0278
lea rdx, [rsp + 0x200]
lea rcx, [rdi + 0x30]
call fcn.140087cf8
lea rcx, [rsp + 0x200]
call fcn.1400550a8
mov r8d, 0xfde9
lea rdx, [rdi + 0x30]
lea rcx, [rsp + 0x200]
call fcn.1400917b0
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14017e56c
lea rbx, [rdi + 0x28]
cmp rbx, rax
je 0x1401aa182
mov r8, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], r8
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401aa1a2
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 0xc0]
call qword [case.0x140245398.0]
nop
lea rcx, [rsp + 0x200]
call fcn.14004e0f0
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
call qword [case.0x140245398.0]
cmp eax, 5
jne 0x1401aa1c9
call fcn.1402b9bb8
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rsp + 0x90], xmm0
mov word [rsp + 0x80], si
movdqu xmmword [rsp + 0x210], xmm0
mov word [rsp + 0x200], si
lea rdx, str.nonce
lea rcx, [rsp + 0x200]
call fcn.14004d5c4
nop
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x200]
mov rcx, rbx
call fcn.140089340
mov bl, al
lea rcx, [rsp + 0x200]
call fcn.14004e0f0
test bl, bl
jne 0x1401aa2e0
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1401aa287
lea rax, str.Incorrect_SGRM_Report._Nonce_value_is_missing
mov qword [rsp + 0x220], rax
mov qword [rsp + 0x228], 0x5c
lea rax, [rsp + 0x200]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403daea2]
call fcn.140001158
call fcn.1402b9bb8
nop
lea rcx, [rsp + 0x80]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0x48]
call fcn.1400c0a38
nop
mov qword [rsp + 0xc0], r15
lea rcx, [rsp + 0xc0]
call fcn.14018e25c
lea rcx, [rsp + 0xc0]
call fcn.14018d5d4
nop
lea rcx, [rsp + 0xa0]
call fcn.1400550a8
mov eax, 0x80004005
jmp 0x1401aa497
lea rbx, [rdi + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401fedf8
test al, al
jne 0x1401aa445
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401aa3ef
lea rax, str.unexpected_nonce_is_received_on_the_SGRM_Report
mov qword [rsp + 0x220], rax
mov qword [rsp + 0x228], 0x60
cmp qword [rbx + 0x18], 8
jb 0x1401aa337
mov rbx, qword [rbx]
lea rdx, [0x140344690]
mov rcx, rdx
mov rax, rsi
test rbx, rbx
je 0x1401aa359
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x1401aa350
mov qword [rsp + 0x230], rcx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x238], eax
mov dword [rsp + 0x23c], esi
lea rcx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rcx, qword [rsp + 0x80]
mov rax, rsi
test rcx, rcx
je 0x1401aa3a8
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x1401aa39f
mov qword [rsp + 0x240], rdx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x248], eax
mov dword [rsp + 0x24c], esi
lea rax, [rsp + 0x200]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403db4ac]
mov rcx, r10
call fcn.140001158
call fcn.1402b9bb8
nop
lea rcx, [rsp + 0x80]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0x48]
call fcn.1400c0a38
nop
mov qword [rsp + 0xc0], r15
lea rcx, [rsp + 0xc0]
call fcn.14018e25c
lea rcx, [rsp + 0xc0]
call fcn.14018d5d4
nop
lea rcx, [rsp + 0xa0]
call fcn.1400550a8
mov eax, 0x80004005
jmp 0x1401aa497
lea rcx, [rsp + 0x80]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0x48]
call fcn.1400c0a38
nop
mov qword [rsp + 0xc0], r15
lea rcx, [rsp + 0xc0]
call fcn.14018e25c
lea rcx, [rsp + 0xc0]
call fcn.14018d5d4
nop
lea rcx, [rsp + 0xa0]
call fcn.1400550a8
nop
xor eax, eax
jmp 0x1401aa497
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1402dfdb0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140048a6c
mov r9d, eax
mov rcx, qword [rsp + 0x268]
lea rax, str.base64Decode_failed_to_calculate_needed_size_of_converted_message
mov qword [rsp + 0x20], rax
lea r8, str.amcorewcd_sourceincconverters.h
mov edx, 0x144
call fcn.14004d1a0
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140048a6c
mov r9d, eax
mov rcx, qword [rsp + 0x268]
lea rax, str.base64Decode_failed
mov qword [rsp + 0x20], rax
lea r8, str.amcorewcd_sourceincconverters.h
mov edx, 0x154
call fcn.14004d1a0
int3