Function at 0x1400037c0
Capabilities:
Create pipe
Extract resource via kernel32 functions
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
mov qword [rbp + 0x27], rax
lea r15d, [rax + 1]
mov r13d, 0x3e8
nop dword [rax + rax]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
xor esi, esi
mov qword [rbp - 1], rsi
lea eax, [r15 + r13]
movzx edx, ax
xor ecx, ecx
lea r8d, [rsi + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14000393d
lea rdx, str.Error_finding_resource
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400016d0
mov rcx, rax
lea rdx, [0x1400018b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r9, qword [rbp - 9]
mov rbx, qword [rbp - 0x11]
mov r8, rbx
mov rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x17]
call fcn.140003c80
nop
test rbx, rbx
je 0x1400038b1
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x1400038a6
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400039d1
mov rdx, rsi
mov rcx, rbx
call fcn.140003f1c
inc r15d
cmp r15d, 0xb
jle 0x140003810
mov rdi, qword [rbp + 0x17]
mov rbx, qword [rbp + 0x1f]
cmp rdi, rbx
je 0x140003a47
mov dword [rbp - 0x11], 0x18
mov dword [rbp - 1], 1
mov qword [rbp - 9], 0
xor r9d, r9d
lea r8, [rbp - 0x11]
lea rdx, [rbp + 7]
lea rcx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400039d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error_creating_pipe:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400016d0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400018b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140003a47
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x14000395c
lea rdx, str.Error_loading_resource
jmp 0x140003844
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
movsxd rdi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
xor ebx, ebx
test rdi, rdi
jle 0x140003860
mov r9, qword [rbp - 9]
nop word [rax + rax]
movzx ecx, byte [rbx + r14]
xor cl, 0x41
mov byte [rbp - 0x19], cl
cmp r9, rsi
je 0x1400039ac
mov byte [r9], cl
inc r9
mov qword [rbp - 9], r9
jmp 0x1400039c4
lea r8, [rbp - 0x19]
mov rdx, r9
lea rcx, [rbp - 0x11]
call fcn.140003b10
mov rsi, qword [rbp - 1]
mov r9, qword [rbp - 9]
inc rbx
cmp rbx, rdi
jl 0x140003990
jmp 0x140003864
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rbx, rdi
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x2f]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140003a32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error_writing_to_pipe:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400016d0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400018b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rdi, rdi
je 0x140003a83
mov rdx, qword [rbp + 0x27]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140003a7b
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140003f1c
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140003ec0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret