Function at 0x14002176c
Capabilities:
Write file on windows

Disassembly:
jmp 0x14002abf0
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, [0x140098341]
call fcn.140022068
nop
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 0x14002ac93
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 0x14002acd2
cmp qword [rbp + 0x3f8], 0
je 0x14002accb
mov rax, qword [rbp + 0x3f8]
mov dword [rax], 0xc00000ef
xor eax, eax
jmp 0x14002b03d
cmp dword [rbp + 0x3f0], 0
je 0x14002aceb
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 0x14002ad93
jmp 0x14002afdc
cmp dword [rbp + 0x3f0], 0
je 0x14002adbe
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 0x14002ae50
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 0x14002ae30
jmp 0x14002afdc
mov rax, qword [rbp + 0x210]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x108], rax
jmp 0x14002afdc
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 0x14002ae99
mov rax, qword [rbp + 0xe8]
inc rax
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xc8]
cmp qword [rbp + 0xe8], rax
jae 0x14002af3b
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 0x14002af04
jmp 0x14002afdc
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 0x14002ae88
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 0x14002afdc
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 0x14002afc1
jmp 0x14002afdc
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 0x14002b012
cmp dword [rbp + 0x3e8], 0
je 0x14002b004
lea rdx, [rbp + 0x208]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtFlushBuffersFile]
nop
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
nop
lea rcx, [rbp + 0x1d8]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop
cmp qword [rbp + 0x3f8], 0
je 0x14002b036
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, [0x140068200]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x3b8]
pop rdi
pop rbp
ret