Function at 0x14000da90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, rdx
mov qword [rbp + 0x18], rdx
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000dd22
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000dda6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test r14, r14
je 0x14000dc9e
test eax, eax
je 0x14000dc9e
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000db2d
mov rcx, qword [rbx]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000de2a
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x20]
mov r8d, edi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000dc11
cmp dword [rbp + 0x20], edi
jne 0x14000dc11
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14000dbd1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000dbcc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000dc0a
mov rcx, r8
call fcn.140017140
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140017120
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call fcn.14000d6f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.1400013a0
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.14000d630
nop
mov r8, rax
lea rdx, str.Failed_to_write_to_temporary_file._Resource:
lea rcx, [rbp - 0x48]
call fcn.14000b790
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000eaf0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000eb50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000d7a0
lea rdx, [0x140021cd8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.14000d6f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.1400013a0
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.14000d630
nop
mov r8, rax
lea rdx, str.Failed_to_find_resource
lea rcx, [rbp - 0x48]
call fcn.14000b790
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000eaf0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000eb50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000d7a0
lea rdx, [0x140021cd8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.14000d6f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400013a0
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x68]
call fcn.14000d630
nop
mov r8, rax
lea rdx, str.Failed_to_find_resource
lea rcx, [rbp - 0x48]
call fcn.14000b790
nop
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14000eaf0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.14000eb50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000d7a0
lea rdx, [0x140021cd8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.14000d6f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.1400013a0
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.14000d630
nop
mov r8, rax
lea rdx, str.Failed_to_find_resource
lea rcx, [rbp - 0x48]
call fcn.14000b790
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000eaf0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000eb50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000d7a0
lea rdx, [0x140021cd8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.14000d6f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.1400013a0
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.14000d630
nop
mov r8, rax
lea rdx, str.Failed_to_create_temporary_file._Resource:
lea rcx, [rbp - 0x48]
call fcn.14000b790
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000eaf0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000eb50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000d7a0
lea rdx, [0x140021cd8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3