Function at 0x1400018d8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140026c70]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, r8
mov esi, edx
mov rbx, rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x14001bf80]
mov rdi, rax
mov r8, qword [rbx]
mov rcx, rbx
mov rax, qword [r8 + 0x18]
call qword [0x14001bf80]
mov rdx, rax
test rax, rax
je 0x14000194b
cmp rdi, 4
jb 0x14000194b
cmp dword [rax], 0x43425844
jne 0x140001b29
jmp 0x14000194d
xor edx, edx
test rdx, rdx
je 0x140001b29
mov qword [rbp - 0x39], rdx
and dword [rbp - 0x31], 0
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
mov r8, qword [rbp - 0x39]
mov r9d, dword [rbp - 0x31]
cmp r9d, dword [rdx + 0x1c]
jne 0x14000197a
cmp r8, rdx
je 0x14000198d
mov eax, r9d
mov ecx, dword [r8 + rax*4 + 0x20]
cmp dword [rcx + r8], esi
je 0x14000198d
inc r9d
jmp 0x14000196f
cmp r9d, dword [rdx + 0x1c]
jne 0x14000199c
cmp r8, rdx
je 0x140001af5
mov eax, r9d
mov ecx, dword [r8 + rax*4 + 0x20]
lea rsi, [rcx + r8]
mov r14d, dword [rcx + r8 + 4]
movaps xmm0, xmmword [r15]
movdqa xmmword [rbp - 0x39], xmm0
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14000c244
nop
cmp qword [rbp - 0x49], 0
je 0x1400019db
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rcx, qword [rbp - 0x59]
jmp 0x1400019dd
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x39], rax
mov r15d, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x140001a56
cmp qword [rbp - 0x49], 0
je 0x140001a35
lea rdi, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rdi, qword [rbp - 0x59]
jmp 0x140001a37
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
mov rdx, rdi
call fcn.14000f544
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x69]
mov r8d, r14d
lea rdx, [rsi + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140001ab3
cmp qword [rbp - 0x49], 0
je 0x140001a91
lea rdi, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rdi, qword [rbp - 0x59]
jmp 0x140001a93
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
mov rdx, rdi
call fcn.14000f544
nop
test rbx, rbx
je 0x140001ac8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x59]
call fcn.140007cac
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140016ac0
mov rbx, qword [rsp + 0x118]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Unable_to_find_required_part_in_blob
lea rcx, [rbp - 0x39]
call fcn.140007f64
nop
lea r8, [rbp - 0x39]
mov edx, 0x80004005
lea rcx, [rbp - 0x19]
call fcn.140001154
lea rdx, [0x140024040]
lea rcx, [rbp - 0x19]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
lea rdx, str.Unable_to_find_required_part_in_blob
lea rcx, [rbp - 0x39]
call fcn.140007f64
nop
lea r8, [rbp - 0x39]
mov edx, 0x80004005
lea rcx, [rbp - 0x19]
call fcn.140001154
lea rdx, [0x140024040]
lea rcx, [rbp - 0x19]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3