Function at 0x14000fce0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov edx, 0x81
mov rsi, rcx
xor ecx, ecx
lea r8d, [rdx - 0x77]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000ff79
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000ff79
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14000ff79
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
test eax, eax
je 0x14000ff79
xorps xmm0, xmm0
mov qword [rsp + 0xf8], rbx
xor eax, eax
mov qword [rsp + 0x100], r12
movups xmmword [rbp - 0x49], xmm0
xor r12d, r12d
xor ecx, ecx
movups xmmword [rbp - 0x39], xmm0
lea edx, [rax + 0x44]
mov qword [rbp + 0x17], rax
movups xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x41], 0x44
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x31], r12
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [rbp - 0x41]
lea ecx, [r12 + 0x40]
mov qword [rbp - 0x49], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x39], rax
lea rdi, [rbp - 0x29]
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rdi, [rbp + 7]
mov ecx, 0x18
rep stosb byte [rdi], al
mov r8, qword [rbp - 0x49]
test r8, r8
je 0x14000ff42
cmp qword [rbp - 0x39], rax
je 0x14000ff42
lea r9, [rbp - 0x41]
xor edx, edx
lea ecx, [rax + 0x16]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x14000ff42
mov rax, qword [rbp - 0x49]
lea r9, [rbp - 0x31]
xor r8d, r8d
mov qword [rbp - 1], rax
lea rdx, [rbp - 0x29]
mov dword [rbp - 0x29], 0x1fffff
lea ecx, [r12 + 1]
mov qword [rbp - 0x25], 2
mov dword [rbp - 0xd], r12d
mov dword [rbp - 9], 5
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x14000ff42
mov rcx, qword [rbp - 0x39]
lea edx, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14000ff42
mov r8, qword [rbp - 0x31]
lea edx, [r12 + 1]
mov rcx, qword [rbp - 0x39]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14000ff42
mov rax, qword [rbp - 0x39]
lea r9, [rbp + 7]
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rsi
mov qword [rbp + 0xf], rax
mov dword [rsp + 0x20], 1
mov dword [rbp + 7], 0x18
mov dword [rbp + 0x17], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ff13
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x14000ff42
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000ff42
cmp dword [rbp + 7], r12d
lea r9, [rbp + 7]
mov qword [rsp + 0x30], r12
mov edx, 0x40000000
cmove r9, r12
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000ff42
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140035398
test edi, edi
setne dil
jmp 0x14000ff45
xor dil, dil
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x100]
movzx eax, dil
mov rbx, qword [rsp + 0xf8]
jmp 0x14000ff7b
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14002a740
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret