Function at 0x1400020f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x330], rbx
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r8, rdx
mov r13, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor esi, esi
mov qword [rsp + 0x68], rsi
test rdx, rdx
je 0x140002383
mov rax, qword [rdx]
lea rdx, [rsp + 0x50]
mov rcx, r8
call qword [rax + 0x70]
test eax, eax
jne 0x140002383
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x78]
mov edx, 5
call qword [rax + 0x38]
mov dword [rsp + 0x48], eax
xor r15d, r15d
cmp dword [rsp + 0x3c], r15d
jbe 0x140002259
nop dword [rax]
lea r12, [rsp + 0x78]
lea r12, [r12 + r15*8]
mov rcx, qword [r12]
mov r8, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [r8 + 0x28]
test eax, eax
jne 0x14000223d
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x60]
mov edx, 5
call qword [rax + 0x38]
mov r14d, eax
xor edi, edi
cmp dword [rsp + 0x30], edi
jbe 0x14000222d
nop word [rax + rax]
lea r8, [rbp - 0x60]
lea r8, [r8 + rdi*8]
cmp rsi, rbx
je 0x14000220e
mov rcx, qword [r8]
mov qword [rbx], rcx
add rbx, 8
mov qword [rsp + 0x60], rbx
jmp 0x140002225
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140004a90
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x1400021f0
test r14d, r14d
je 0x1400021c1
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [r12]
mov rax, qword [rcx]
call qword [rax + 0x10]
inc r15d
cmp r15d, dword [rsp + 0x3c]
jb 0x1400021a0
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140002171
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14, qword [rsp + 0x58]
sub rbx, r14
sar rbx, 3
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp dword [rsp + 0x38], edi
jbe 0x1400023ab
xor r15d, r15d
nop
lea rbx, [r14 + rdi*8]
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
mov r8d, 8
lea rdx, [rsp + 0x40]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x20]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
mov r8d, 8
lea rdx, [rsp + 0x48]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r9, [rbp - 0x30]
lea r8, [rsp + 0x30]
mov edx, 0xff
call qword [rax + 0x30]
test eax, eax
jne 0x14000232f
mov eax, dword [rsp + 0x30]
add eax, eax
mov dword [rsp + 0x30], eax
jmp 0x140002334
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x140002375
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
lea rdx, [rbp - 0x30]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, dword [rsp + 0x38]
jb 0x1400022b0
jmp 0x1400023ab
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14, qword [rsp + 0x58]
test r14, r14
je 0x1400023e3
sub rsi, r14
and rsi, 0xfffffffffffffff8
mov rax, r14
cmp rsi, 0x1000
jb 0x1400023d8
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000240d
mov rdx, rsi
mov rcx, r14
call fcn.1400055dc
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140005550
mov rbx, qword [rsp + 0x330]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140012398
int3