Function at 0x7ff7ed63ce40
Capabilities:
Write file on windows

Disassembly:
cmp dword [r8 + 0x110], 0
mov rax, qword [rsp + 0x38]
jne 0x7ff7ed63d190
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
jmp 0x7ff7ed63ce40
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [rsp + 0x88]
xor r14d, r14d
mov dword [rdx + 8], 3
xorps xmm0, xmm0
mov rbx, r8
mov rbp, r9
mov qword [rdx + 0x80], rbx
mov rdi, rdx
mov qword [rdx + 0x78], r14
mov rsi, rcx
mov qword [rdx + 0x70], rax
mov dword [rdx + 0x88], r14d
mov qword [rdx + 0xa0], r14
mov qword [rdx + 0xa8], 0xffffffffffffffff
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
test dword [r8 + 0x58], 0x180000
je 0x7ff7ed63ceda
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0xa0], rax
test rax, rax
je 0x7ff7ed63d161
or rax, 1
mov qword [rdi + 0x58], rax
movups xmm0, xmmword [0x7ff7ed7d59b8]
mov r8, qword [rsp + 0x80]
movups xmmword [rdi + 0x90], xmm0
test r8, r8
jne 0x7ff7ed63cefc
movups xmmword [rsp + 0x30], xmm0
jmp 0x7ff7ed63cf43
cmp r8, 1
jne 0x7ff7ed63cf17
cmp dword [rsp + 0x90], r14d
jne 0x7ff7ed63cf17
movups xmm0, xmmword [rbp]
movups xmmword [rsp + 0x30], xmm0
jmp 0x7ff7ed63cf43
lea rax, [rsp + 0x30]
mov rdx, rbp
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.7ff7ed63c770
test eax, eax
jne 0x7ff7ed63d14e
mov rdi, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x30]
mov ecx, dword [rbx + 0x58]
mov eax, ecx
and eax, 0x1100000
cmp eax, 0x1100000
jne 0x7ff7ed63cfdd
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rbx + 0x118]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x7ff7ed63cf88
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x7ff7ed63d14e
mov qword [rdi + 0x60], r14
mov ecx, dword [rbx + 0x7c]
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x7ff7ed63cfb1
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x7ff7ed63cfb1
or eax, 4
mov dword [rbx + 0x58], eax
test al, 8
je 0x7ff7ed63cfb1
mov rax, qword [rbx + 8]
inc dword [rax + 8]
inc dword [rsi + 0x20]
lea r9, [rdi + 0x40]
inc dword [rbx + 0x78]
xor r8d, r8d
inc dword [rbx + 0x100]
xor edx, edx
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x7ff7ed63d176
jmp 0x7ff7ed63d14c
bt ecx, 0x18
jae 0x7ff7ed63d014
mov rdx, rdi
mov rcx, rbx
movups xmmword [rdi + 0x90], xmm0
call fcn.7ff7ed63d3a0
cmp dword [rbx + 0x100], r14d
jne 0x7ff7ed63d003
call fcn.7ff7ed63e6f0
mov eax, dword [rsp + 0x30]
mov qword [rdi + 0x60], rax
add qword [rbx + 0x60], rax
jmp 0x7ff7ed63d11b
mov r10, qword [rbx + 0x118]
lea rax, [rdi + 0x40]
mov ebp, dword [rsp + 0x30]
xor r9d, r9d
mov rdx, qword [rsp + 0x38]
bt ecx, 0x14
mov rcx, r10
mov qword [rsp + 0x20], rax
mov r8d, ebp
jae 0x7ff7ed63d0b0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x7ff7ed63d096
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x7ff7ed63d073
mov eax, ebp
mov edx, 0xffffffff
mov qword [rdi + 0x60], rax
add qword [rbx + 0x60], rax
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7ff7ed63d09a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0xa0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov qword [rdi + 0xa0], r14
jmp 0x7ff7ed63d14e
mov qword [rdi + 0x60], r14
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xa0], r14
jmp 0x7ff7ed63d11b
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x7ff7ed63d0d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x7ff7ed63cf7d
mov rax, rbp
mov qword [rdi + 0x60], rax
add qword [rbx + 0x60], rax
jmp 0x7ff7ed63d0dc
mov qword [rdi + 0x60], r14
test dword [rbx + 0x58], 0x80000
je 0x7ff7ed63d11b
mov rdx, qword [rdi + 0xa0]
lea rcx, [rdi + 0xa8]
mov dword [rsp + 0x28], 4
lea r8, [0x7ff7ed636fe0]
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x7ff7ed63cf7d
mov ecx, dword [rbx + 0x7c]
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x7ff7ed63d140
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x7ff7ed63d140
or eax, 4
mov dword [rbx + 0x58], eax
test al, 8
je 0x7ff7ed63d140
mov rax, qword [rbx + 8]
inc dword [rax + 8]
inc dword [rsi + 0x20]
inc dword [rbx + 0x78]
inc dword [rbx + 0x100]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.7ff7ed63f180
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x7ff7ed7d54a8]
call fcn.7ff7ed63f180
int3
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x360
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rsi, qword [rsp + 0x3c0]
xor r14d, r14d
mov r15, qword [rsp + 0x3c8]
mov rbx, r9
mov qword [rsp + 0x48], rdx
mov r12, r8
mov dword [rsp + 0x40], r14d
mov r13, rcx
mov edi, r14d
test rsi, rsi
je 0x7ff7ed63d213
mov rcx, rbx
mov rdx, rsi
nop dword [rax]
mov eax, dword [rcx]
lea rcx, [rcx + 0x10]
add rdi, rax
sub rdx, 1
jne 0x7ff7ed63d1f0
mov eax, 0xffffffff
cmp rdi, rax
jbe 0x7ff7ed63d213
mov eax, 0x2747
jmp 0x7ff7ed63d373
test r15, r15
je 0x7ff7ed63d24d
cmp dword [r15 + 0x10], 0xc
je 0x7ff7ed63d229
mov eax, 0x32
jmp 0x7ff7ed63d373
mov rcx, r12
call fcn.7ff7ed63c900
mov edx, eax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov rcx, r15
call fcn.7ff7ed6371a0
test eax, eax
jne 0x7ff7ed63d373
test r15, r15
mov qword [rsp + 0x3b8], rbp
setne r14b
inc r14
add r14, rsi
cmp r14, 6
jae 0x7ff7ed63d2b1
lea rbp, [rsp + 0x2f0]
xorps xmm0, xmm0
lea rdx, [rsp + 0x60]
mov r8d, 0x10
lea rcx, [rsp + 0x50]
movups xmmword [rsp + 0x60], xmm0
call fcn.7ff7ed62aa30
movups xmm0, xmmword [rax]
mov eax, 1
movups xmmword [rbp], xmm0
test r15, r15
je 0x7ff7ed63d2f4
mov ecx, dword [rsp + 0x40]
sub ecx, eax
je 0x7ff7ed63d2ce
cmp ecx, eax
jne 0x7ff7ed63d2d3
or dword [rsp + 0x60], 2
jmp 0x7ff7ed63d2d3
mov edx, 0x10
mov rcx, r14
call fcn.7ff7ed62a690
mov rbp, rax
test rax, rax
jne 0x7ff7ed63d270
lea eax, [rbp + 8]
jmp 0x7ff7ed63d36b
or dword [rsp + 0x60], 6
mov r8d, 0x278
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.7ff7ed62aa30
movups xmm0, xmmword [rax]
mov eax, 2
movups xmmword [rbp + 0x10], xmm0
test rdi, rdi
je 0x7ff7ed63d325
or dword [rsp + 0x60], 1
mov dword [rsp + 0x68], edi
test rsi, rsi
je 0x7ff7ed63d325
shl rax, 4
add rax, rbp
nop
lea rax, [rax + 0x10]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x10]
movups xmmword [rax - 0x10], xmm0
sub rsi, 1
jne 0x7ff7ed63d310
mov rax, qword [rsp + 0x3d0]
mov r9, rbp
mov rdx, qword [rsp + 0x48]
mov r8, r12
mov dword [rsp + 0x30], 1
mov rcx, r13
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call 0x7ff7ed63ce40
mov ebx, eax
lea rax, [rsp + 0x2f0]
cmp rbp, rax
je 0x7ff7ed63d369
mov rcx, rbp
call fcn.7ff7ed62a730
mov eax, ebx
mov rbp, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.7ff7ed6b54e0
add rsp, 0x360
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret