Function at 0x180145f80
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push r14
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov rbx, r9
mov rsi, r8
mov r14, rcx
test r8, r8
je 0x1801462e6
test rbx, rbx
je 0x1801462e6
mov qword [rax + 8], rdi
xor r9d, r9d
mov qword [rax + 0x18], r15
xor r15d, r15d
mov rax, qword [rcx + 0x90]
mov rcx, rsi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], pe_nt_image_headers64
lea edx, [r15 + 4]
mov dword [rsp + 0x20], 4
lea r8d, [r15 + 3]
call rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180146109
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x180161450]
lea rdx, [rbp - 0x68]
movdqa xmm1, xmmword [0x180162370]
lea rcx, [rsp + 0x40]
mov ebx, eax
movabs rax, 0x28c0569f668d68fb
mov qword [rbp - 0x28], rax
movabs rax, 0xd4e8db436895128c
mov qword [rbp - 0x20], rax
movabs rax, 0xa620eecc1455531b
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x18], rax
movdqa xmm0, xmmword [0x180161080]
movdqu xmmword [rbp - 0x58], xmm1
movdqa xmm1, xmmword [0x180160380]
movdqu xmmword [rbp - 0x48], xmm0
movdqu xmmword [rbp - 0x38], xmm1
call fcn.1800095a0
mov r9, rsi
mov dword [rsp + 0x20], ebx
lea r8, [rbp - 0x10]
mov edx, 0x100000
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x10], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp + 0x10], xmm1
movsd xmm0, qword [rax + 0x30]
movsd qword [rbp + 0x20], xmm0
movzx ecx, word [rax + 0x38]
mov word [rbp + 0x28], cx
lea rcx, [0x18017bd90]
movzx eax, byte [rax + 0x3a]
mov byte [rbp + 0x2a], al
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rdi
mov rdi, qword [rsp + 0x170]
mov r15, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x188]
add rsp, 0x150
pop r14
pop rsi
pop rbp
ret
movdqa xmm0, xmmword [0x180161440]
lea rdx, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x50], 0xe394dcde
mov dword [rsp + 0x54], eax
lea rcx, [rbp + 0x30]
movabs rax, 0x28c0569f668d68fb
mov qword [rsp + 0x58], rax
movabs rax, 0xd4e8db436895128c
mov qword [rsp + 0x60], rax
movabs rax, 0xa620eecc1455531b
mov qword [rsp + 0x68], rax
movdqu xmmword [rsp + 0x40], xmm0
call fcn.180009a20
lea r8, [rbp - 0x80]
mov edx, 0x100000
movups xmm1, xmmword [rax]
movups xmmword [rbp - 0x80], xmm1
mov ecx, dword [rax + 0x10]
mov dword [rbp - 0x70], ecx
lea rcx, [0x18017bd90]
movzx eax, byte [rax + 0x14]
mov byte [rbp - 0x6c], al
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [r14 + 0xa0]
mov r8, 0xffffffffffffffff
mov dword [rbp + 0x78], r15d
inc r8
cmp byte [rbx + r8], r15b
jne 0x1801461c4
lea r9, [rbp + 0x78]
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov rcx, rdi
call rax
test eax, eax
jne 0x1801462de
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x180162600]
lea rdx, [rbp - 0x68]
movdqa xmm1, xmmword [0x180162420]
lea rcx, [rbp - 0x10]
mov ebx, eax
movabs rax, 0x8488351c950cfdf5
mov qword [rbp - 0x28], rax
movabs rax, 0xffd248db3b5cd2f8
mov qword [rbp - 0x20], rax
movabs rax, 0x2b7ae7f98d26cfe2
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x18], rax
movdqa xmm0, xmmword [0x180161730]
movdqu xmmword [rbp - 0x58], xmm1
movdqa xmm1, xmmword [0x1801602f0]
movdqu xmmword [rbp - 0x48], xmm0
movdqu xmmword [rbp - 0x38], xmm1
call fcn.180009d10
mov r9, rsi
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x40]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rsp + 0x40], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rsp + 0x60], xmm1
movsd xmm0, qword [rax + 0x30]
movsd qword [rsp + 0x70], xmm0
movzx eax, word [rax + 0x38]
mov word [rsp + 0x78], ax
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [r14 + 0xa8]
mov rdi, 0xffffffffffffffff
mov rax, rdi
jmp 0x1801460e5
mov rax, 0xffffffffffffffff
jmp 0x1801460f5