Function at 0x14012aeb0
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1403bae80]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
lea rdx, [rbp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x103
ja 0x14012b219
mov edx, 0x94
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x14012af32
lea rdx, str.Resource_not_found._n
lea rcx, [0x1403be190]
call fcn.14012fe10
jmp 0x14012b234
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x14012af5d
lea rdx, str.Failed_to_load_resource._n
lea rcx, [0x1403be190]
call fcn.14012fe10
jmp 0x14012b234
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x14012af93
lea rdx, str.Failed_to_lock_resource._n
lea rcx, [0x1403be190]
call fcn.14012fe10
jmp 0x14012b234
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp + 0xb0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14012afb2
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.140130540
nop
mov r8d, 9
lea rdx, str.file.docx
lea rcx, [rsp + 0x30]
call fcn.14012ef20
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14012b05f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012b05a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14012b262
call fcn.1402ba250
movdqa xmm0, xmmword [0x14039b7a0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, Ordinal_266
lea rcx, [rbp - 0x80]
call fcn.1402e9a60
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.14012eb70
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x70], 6
je 0x14012b0f0
lea rdx, str.Failed_to_create_temporary_file._n
lea rcx, [0x1403be190]
call fcn.14012fe10
jmp 0x14012b17a
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14012ca70
lea rcx, [rbp - 0x78]
call fcn.14012ea70
test rax, rax
jne 0x14012b13f
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x38], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x70]
and eax, 0x17
mov dword [rbp + rcx - 0x70], eax
mov edx, dword [rbp + rcx - 0x6c]
and edx, eax
jne 0x14012b268
lea r8, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova r8, qword [rbp + 0x90]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.14012c7a0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.1402b9914
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0xf
jbe 0x14012b234
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012b212
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14012b25c
call fcn.1402ba250
jmp 0x14012b234
lea rdx, str.Failed_to_get_temporary_path.
lea rcx, [0x1403be190]
call fcn.14012fe10
mov rcx, rax
call fcn.1401300c0
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1402ba230
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1402c945c
nop
call fcn.1402c945c
nop
test dl, 4
je 0x14012b276
lea rbx, str.ios_base::badbit_set
jmp 0x14012b28b
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140129690
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140129f60
lea rdx, [0x1403b51a0]
lea rcx, [rsp + 0x58]
call fcn.1402bc6a0
int3