Function at 0x140012528
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xa90]
sub rsp, 0xb90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xa80], rax
mov dil, r9b
mov qword [rsp + 0x48], r8
or r9, 0xffffffffffffffff
mov r14, rdx
xor r15d, r15d
mov rsi, rcx
inc r9
cmp byte [r8 + r9], r15b
jne 0x140012569
lea rax, [rbp + 0x280]
mov dword [rsp + 0x28], 0x400
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x3ff
cmp eax, ecx
cmovg eax, ecx
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x800
jae 0x140012a62
mov word [rbp + rcx + 0x280], r15w
mov ebx, 0x80000080
test dil, dil
jne 0x14001274b
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0x280]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14001274b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm0, xmmword [0x140046390]
lea r8, [rbp + 0x170]
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x170], xmm0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x180], xmm1
movdqa xmmword [rbp + 0x190], xmm0
lea rdx, [rsp + 0x48]
movdqa xmmword [rbp + 0x1b0], xmm0
lea rcx, [rsp + 0x50]
movdqa xmmword [rbp + 0x1d0], xmm0
movdqa xmmword [rbp + 0x1f0], xmm0
movdqa xmmword [rbp + 0x210], xmm0
movdqa xmmword [rbp + 0x230], xmm0
movdqa xmmword [rbp + 0x250], xmm0
movdqa xmm0, xmmword [0x140047030]
movdqa xmmword [rbp + 0x1a0], xmm1
movdqa xmmword [rbp + 0x1c0], xmm1
movdqa xmmword [rbp + 0x1e0], xmm1
movdqa xmmword [rbp + 0x200], xmm1
movdqa xmmword [rbp + 0x220], xmm1
movdqa xmmword [rbp + 0x240], xmm1
movdqa xmmword [rbp + 0x260], xmm1
movdqa xmm1, xmmword [0x1400467a0]
movdqa xmmword [rsp + 0x50], xmm0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm1
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x270], 2
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp], xmm1
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmmword [rbp + 0x40], xmm1
mov qword [rbp + 0x50], 0x17
call fcn.1400020ec
xor al, al
mov rcx, qword [rbp + 0xa80]
xor rcx, rsp
call fcn.140019540
mov rbx, qword [rsp + 0xbd8]
add rsp, 0xb90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0x280]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400128b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x140046430]
lea r9, [rsp + 0x40]
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x50], xmm0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x50]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rsp + 0x48]
movdqa xmmword [rbp - 0x50], xmm0
lea rcx, [rbp + 0x170]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmm0, xmmword [0x140046d70]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp], xmm1
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmmword [rbp + 0x40], xmm1
movdqa xmm1, xmmword [str.u02__]
movdqa xmmword [rbp + 0x170], xmm0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x180], xmm1
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x190], xmm0
movdqa xmmword [rbp + 0x1b0], xmm0
movdqa xmmword [rbp + 0x1d0], xmm0
movdqa xmmword [rbp + 0x1f0], xmm0
movdqa xmmword [rbp + 0x210], xmm0
movdqa xmmword [rbp + 0x230], xmm0
movdqa xmmword [rbp + 0x250], xmm0
mov dword [rsp + 0x40], eax
mov qword [rbp + 0x50], 3
movdqa xmmword [rbp + 0x1a0], xmm1
movdqa xmmword [rbp + 0x1c0], xmm1
movdqa xmmword [rbp + 0x1e0], xmm1
movdqa xmmword [rbp + 0x200], xmm1
movdqa xmmword [rbp + 0x220], xmm1
movdqa xmmword [rbp + 0x240], xmm1
movdqa xmmword [rbp + 0x260], xmm1
mov qword [rbp + 0x270], 0x19
call fcn.14001171c
jmp 0x140012723
mov r8, rsi
lea rdx, [rbp + 0x170]
mov rcx, r14
call fcn.1400132a4
mov esi, 0x100
mov dword [rsp + 0x40], r15d
mov r8d, esi
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov rcx, rbx
lea rdx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140012920
cmp dword [rsp + 0x40], esi
jne 0x140012920
xor eax, eax
lea rdi, [rbp + 0x170]
mov ecx, esi
rep stosb byte [rdi], al
lea rdi, [rbp + 0x170]
mov ecx, esi
rep stosb byte [rdi], al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140012725
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x140046430]
lea r9, [rsp + 0x44]
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x50], xmm0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x50]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rsp + 0x48]
movdqa xmmword [rbp - 0x50], xmm0
lea rcx, [rbp + 0x60]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmm0, xmmword [0x140046ee0]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp], xmm1
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmmword [rbp + 0x40], xmm1
movdqa xmm1, xmmword [str.9___]
movdqa xmmword [rbp + 0x60], xmm0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm1
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x80], xmm0
movdqa xmmword [rbp + 0xa0], xmm0
movdqa xmmword [rbp + 0xc0], xmm0
movdqa xmmword [rbp + 0xe0], xmm0
movdqa xmmword [rbp + 0x100], xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
mov dword [rsp + 0x44], eax
mov qword [rbp + 0x50], 3
movdqa xmmword [rbp + 0x90], xmm1
movdqa xmmword [rbp + 0xb0], xmm1
movdqa xmmword [rbp + 0xd0], xmm1
movdqa xmmword [rbp + 0xf0], xmm1
movdqa xmmword [rbp + 0x110], xmm1
movdqa xmmword [rbp + 0x130], xmm1
movdqa xmmword [rbp + 0x150], xmm1
mov qword [rbp + 0x160], 0x1d
call fcn.14001171c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rdi, [rbp + 0x170]
mov rcx, rsi
rep stosb byte [rdi], al
jmp 0x140012725
call fcn.140019674
int3