Function at 0x14002ace0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xbd0]
sub rsp, 0xcd0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xd18], rbx
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rbp + 0xbc0], rax
mov r15, r9
mov r12d, r8d
mov r13, rcx
call fcn.140004250
mov rcx, rax
test rax, rax
jne 0x14002ad3e
mov ecx, 0x80004005
call fcn.140003fc0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.140004250
mov rcx, rax
test rax, rax
jne 0x14002ad65
mov ecx, 0x80004005
call fcn.140003fc0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov edx, 0x104
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
lea rcx, [rbp + 0x380]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x14002ad94
mov r8d, eax
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x50]
call fcn.140003d30
lea rdx, [0x14009fb50]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14002adc0
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.14000d4f0
lea r8, [0x14009fc58]
mov edx, 0x6c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14002b0b6
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x14002b0b6
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14002b0b6
call fcn.1400050c0
mov r9, rax
lea r8, str._Command___s_
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140015960
mov ebx, esi
mov edx, 2
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rsi, rax
mov r8d, ebx
mov rdx, r14
mov rcx, rax
call fcn.1400816b0
test rsi, rsi
jne 0x14002ae85
xor ecx, ecx
jmp 0x14002ae9a
mov rcx, rdi
nop dword [rax + rax]
inc rcx
cmp word [rsi + rcx*2], 0
jne 0x14002ae90
mov r8d, ecx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140003d30
lea r8, [rsp + 0x60]
lea rdx, str._Command_
lea rcx, [rsp + 0x40]
call fcn.140009e00
mov eax, 0x88888889
mul r12d
shr edx, 5
imul eax, edx, 0x3c
sub r12d, eax
mov dword [rsp + 0x20], r12d
mov r9d, edx
lea r8, str.PT_dM_dS
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.140015960
lea r8, [rbp + 0x170]
lea rdx, str.PT0M30S
lea rcx, [rsp + 0x40]
call fcn.140009e00
test r15, r15
je 0x14002af41
mov r9, r15
lea r8, str._Arguments__s__Arguments_
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.140015960
lea r8, [rbp + 0x170]
lea rdx, [0x14009fc80]
lea rcx, [rsp + 0x40]
call fcn.140009e00
lea r8, str._GroupId_S_1_5_32_545__GroupId_
lea rdx, str._GroupId_Users__GroupId_
lea rcx, [rsp + 0x40]
call fcn.140009e00
mov rbx, qword [rsp + 0x40]
mov r15d, dword [rbx - 0xc]
lea r8, str.ST_CPL.pkg.XML
mov edx, 0x104
lea rcx, [rbp + 0x590]
call fcn.140015960
lea rdx, [0x1400dc500]
mov ecx, 0x104
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
lea rax, [rbp + 0x590]
mov qword [rsp + 0x20], rax
lea r9, [0x1400dc500]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140015960
lea r8, [0x140099a58]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov r14d, 1
test eax, eax
jne 0x14002b01a
mov dword [rsp + 0x48], 0xfeff
mov r9, qword [rsp + 0x38]
mov r8d, r14d
lea edx, [rax + 2]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, r15d
mov r9, qword [rsp + 0x38]
lea r8d, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__flushall]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14002b028
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, str.schtasks__create__Tn__s__XML___s___F
mov edx, 0x104
lea rcx, [rbp + 0x7a0]
call fcn.140015960
mov dword [rsp + 0x4c], 0xffffffff
lea r8, [rsp + 0x4c]
mov edx, r14d
lea rcx, [rbp + 0x7a0]
call fcn.14002b130
lea r9, [rsp + 0x60]
lea r8, str.CMD__C_del___s___F
mov edx, 0x104
lea rcx, [rbp + 0x9b0]
call fcn.140015960
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], r14d
lea r9, str.DEL_ST_CPL
lea r8, [0x1400949f8]
lea rdx, [rbp + 0x9b0]
lea rcx, str.DEL_ST_CPL
call fcn.14002a5e0
jmp 0x14002b0b9
xor r14d, r14d
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002b0d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14002b0f5
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r14d
mov rcx, qword [rbp + 0xbc0]
xor rcx, rsp
call fcn.140079e30
mov rbx, qword [rsp + 0xd18]
add rsp, 0xcd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret