Function at 0x140033fa0
Capabilities:
Create process on windows
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1400820c0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, rcx
xor r15d, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
lea r8, [0x140071f28]
lea edx, [r15 + 0x65]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140034123
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
lea r8d, [r15 + 6]
lea rdx, [0x14006e87c]
lea rcx, [rbp - 0x18]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 0x18]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
lea rax, str.Could_not_find_resource._Error___
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x23
movups xmm0, xmmword [rbp - 0x80]
movaps xmmword [rsp + 0x50], xmm0
movsd xmm1, qword [rbp - 0x70]
movsd qword [rsp + 0x60], xmm1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.140019af0
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400340df
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400340df
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400340df
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x140034918
mov rcx, qword [rbp - 0x18]
inc rdx
cmp rdx, 0x1000
mov rax, rcx
jb 0x140034119
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003494f
call fcn.140038e94
jmp 0x140034918
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140034226
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x18], xmm1
lea r8d, [rax + 6]
lea rdx, [0x14006e87c]
lea rcx, [rbp + 8]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 8]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
lea rax, str.Could_not_load_resource._Error___
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x23
movups xmm0, xmmword [rbp - 0x80]
movaps xmmword [rsp + 0x50], xmm0
movsd xmm1, qword [rbp - 0x70]
movsd qword [rsp + 0x60], xmm1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.140019af0
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003420f
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003420f
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14003420f
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x140034918
mov rcx, qword [rbp + 8]
jmp 0x1400340f1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
jne 0x140034329
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x38], xmm1
lea r8d, [rax + 6]
lea rdx, [0x14006e87c]
lea rcx, [rbp + 0x28]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
lea rax, str.Could_not_lock_resource._Error___
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x23
movups xmm0, xmmword [rbp - 0x80]
movaps xmmword [rsp + 0x50], xmm0
movsd xmm1, qword [rbp - 0x70]
movsd qword [rsp + 0x60], xmm1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.140019af0
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140034312
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140034312
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140034312
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x140034918
mov rcx, qword [rbp + 0x28]
jmp 0x1400340f1
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x140034456
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x58], xmm1
lea r8d, [rax + 6]
lea rdx, [0x14006e87c]
lea rcx, [rbp + 0x48]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 0x48]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.Resource_size_is_zero.
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x16
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x50], xmm0
lea r9, [rbp - 0x80]
mov r8d, 4
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.140007190
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140034413
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140034413
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140034413
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x60]
cmp rdx, 0xf
jbe 0x140034918
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034119
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003494f
jmp 0x140034119
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0xc0]
call fcn.14005e8e0
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140034477
mov rdx, qword [rsi]
lea rcx, [rbp + 0xc0]
call fcn.140035900
nop
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0xd0], 6
je 0x14003458d
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x78], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rbp + 0x68]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 0x68]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.Could_not_open_output_file.
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x1b
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x50], xmm0
lea r9, [rbp - 0x80]
mov r8d, 4
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.140007190
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140034573
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140034573
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140034573
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 0xf
jbe 0x140034890
mov rcx, qword [rbp + 0x68]
jmp 0x1400346b2
mov r8, rbx
mov rdx, r14
lea rcx, [rbp + 0xc0]
call fcn.140035cb0
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0xd0], 6
je 0x1400346e4
xorps xmm0, xmm0
movups xmmword [rbp + 0x88], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x98], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rbp + 0x88]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.Could_not_write_to_output_file.
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x1f
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x50], xmm0
lea r9, [rbp - 0x80]
mov r8d, 4
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.140007190
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003469a
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003469a
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14003469a
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0xf
jbe 0x140034890
mov rcx, qword [rbp + 0x88]
inc rdx
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400346da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034949
call fcn.140038e94
jmp 0x140034890
lea rcx, [rbp + 0xc8]
call fcn.1400363e0
mov ebx, 2
test rax, rax
jne 0x140034736
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx + 0x108], 0
cmovne eax, ebx
or eax, dword [rbp + rcx + 0xd0]
and eax, 0x17
mov dword [rbp + rcx + 0xd0], eax
mov edx, dword [rbp + rcx + 0xd4]
and edx, eax
jne 0x140034955
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rbp - 0x40]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.Resource_extracted_successfully_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x20
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x50], xmm0
lea r9, [rbp - 0x80]
mov r8d, ebx
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.140007190
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140034809
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140034809
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140034809
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140034844
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003483f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034949
call fcn.140038e94
xorps xmm6, xmm6
cmp qword [rsi + 0x18], 7
jbe 0x140034851
mov rsi, qword [rsi]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
lea r9, [0x14007200c]
mov r8, rsi
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
movq rcx, xmm6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
psrldq xmm6, 8
movq rcx, xmm6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xc0], rax
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xbc], edx
lea rcx, [rbp + 0xc8]
call fcn.140035680
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xc0], rax
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0xbc], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x168], rax
lea rcx, [rbp + 0x168]
call fcn.1400380b8
nop
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140038a00
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140042e3c
nop
call fcn.140042e3c
nop
test dl, 4
je 0x140034963
lea rbx, str.ios_base::badbit_set
jmp 0x140034977
test bl, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.1400338e0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140033cb0
lea rdx, [0x14007ff20]
lea rcx, [rbp - 0x40]
call fcn.14003ac08
int3