Function at 0x140020758
Capabilities:
Write file on windows

Disassembly:
jmp 0x140029b20
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x418
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x8e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x438]
lea rcx, [0x140095341]
call fcn.140021040
mov dword [rbp + 4], 0xc0000001
mov dword [rbp + 0x24], 0x100002
mov dword [rbp + 0x44], 5
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0x108], 0
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x168], 0
cmp qword [rbp + 0x3f8], 0
je 0x140029bc2
mov rax, qword [rbp + 0x3f8]
mov dword [rax], 0xc0000001
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x1d8]
mov rcx, qword [rbp + 0x3d0]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
movzx eax, al
test eax, eax
jne 0x140029c01
cmp qword [rbp + 0x3f8], 0
je 0x140029bfa
mov rax, qword [rbp + 0x3f8]
mov dword [rax], 0xc00000ef
xor eax, eax
jmp 0x140029f69
cmp dword [rbp + 0x3f0], 0
je 0x140029c1a
mov eax, dword [rbp + 0x24]
or eax, 1
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x44], 3
mov dword [rbp + 0x188], 0x30
mov qword [rbp + 0x190], 0
mov dword [rbp + 0x1a0], 0x40
lea rax, [rbp + 0x1d8]
mov qword [rbp + 0x198], rax
mov qword [rbp + 0x1a8], 0
mov qword [rbp + 0x1b0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x208]
lea r8, [rbp + 0x188]
mov edx, dword [rbp + 0x24]
lea rcx, [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140029cc2
jmp 0x140029f0b
cmp dword [rbp + 0x3f0], 0
je 0x140029ced
mov dword [rbp + 0x148], 0xffffffff
mov dword [rbp + 0x14c], 0xffffffff
lea rax, [rbp + 0x148]
mov qword [rbp + 0x168], rax
mov eax, 0x80000000
cmp qword [rbp + 0x3e0], rax
jae 0x140029d7f
mov eax, dword [rbp + 0x3e0]
mov dword [rbp + 0x64], eax
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x168]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x64]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x128]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x208]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140029d5f
jmp 0x140029f0b
mov rax, qword [rbp + 0x210]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x108], rax
jmp 0x140029f0b
mov dword [rbp + 0x64], 0x7fffffff
mov eax, dword [rbp + 0x64]
mov qword [rbp + 0x3a8], rax
xor edx, edx
mov rax, qword [rbp + 0x3e0]
mov rcx, qword [rbp + 0x3a8]
div rcx
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xe8], 0
jmp 0x140029dc8
mov rax, qword [rbp + 0xe8]
inc rax
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xc8]
cmp qword [rbp + 0xe8], rax
jae 0x140029e6a
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x168]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x64]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x128]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x208]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140029e33
jmp 0x140029f0b
mov eax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x210]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x108], rax
jmp 0x140029db7
mov eax, dword [rbp + 0x64]
mov qword [rbp + 0x3a8], rax
xor edx, edx
mov rax, qword [rbp + 0x3e0]
mov rcx, qword [rbp + 0x3a8]
div rcx
mov rax, rdx
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
je 0x140029f0b
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x168]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x84]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x128]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x208]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140029ef0
jmp 0x140029f0b
mov rax, qword [rbp + 0x210]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0xa8], 0
je 0x140029f3f
cmp dword [rbp + 0x3e8], 0
je 0x140029f32
lea rdx, [rbp + 0x208]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtFlushBuffersFile]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp + 0x1d8]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp qword [rbp + 0x3f8], 0
je 0x140029f62
mov rax, qword [rbp + 0x3f8]
mov ecx, dword [rbp + 4]
mov dword [rax], ecx
mov rax, qword [rbp + 0x108]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140064eb8]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x3b8]
pop rdi
pop rbp
ret