Function at 0x140006aa9
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x140006d26
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x20]
call fcn.14000dec0
lea edx, [r14 + 3]
lea r8d, [r14 + 1]
lea rcx, [rbp + 0x20]
call fcn.140007d90
nop
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.140007fd0
lea r8d, [r14 + 0x10]
lea rdx, [rbp - 8]
lea rcx, [0x140042bb8]
call fcn.140009c20
nop
lea rax, [rbp - 0x50]
mov qword [rsp + 0x78], rax
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x50]
call fcn.1400081e0
mov rbx, rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x80], rax
lea rdx, [0x140040bf8]
cmp qword [0x140040c10], 0x10
cmovae rdx, qword [0x140040bf8]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], r14b
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140006b80
lea rcx, [rsp + 0x58]
call fcn.140008800
nop
lea rax, [rsp + 0x38]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov rcx, qword [rbp + 0xa8]
test cl, 2
jne 0x140006bec
mov rax, qword [rbp + 0x78]
mov r8, qword [rax]
test r8, r8
je 0x140006bec
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xa0]
cmovb r8, qword [rbp + 0xa0]
sub r8, rdx
jmp 0x140006c14
test cl, 4
jne 0x140006c1f
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x140006c1f
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x88]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rsp + 0x38]
call fcn.140008800
nop
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x70]
lea rcx, [0x140042bb8]
call fcn.140009f40
nop
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
mov rcx, rax
call fcn.140008940
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x18], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140006c8d
inc rdx
mov rcx, qword [rbp - 0x70]
call fcn.140004a10
mov dword [rbp - 0x30], r14d
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x30]
mov r8d, dword [rbp - 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140006ccb
inc rdx
mov rcx, qword [rbp - 0x28]
call fcn.140004a10
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x140006cf1
inc rdx
mov rcx, qword [rbp - 8]
call fcn.140004a10
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], 0
lea rcx, [rbp + 0x20]
call fcn.140006990
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14000a750
add rsp, 0x230
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret