Function at 0x1400ef5f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rax, qword [rcx]
movzx r9d, byte [rax]
cmp r9, 1
jne 0x1400f00a5
mov rbp, rcx
mov rax, qword [rcx + 8]
add rax, 0xffffffffffffffff
cmp rax, 2
jb 0x1400efa72
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r15d, eax
cmp qword [0x140d814a8], r15
jne 0x1400ef64b
mov r15, qword [0x140d814b0]
mov rcx, qword [rbp + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400ef668
cmp qword [rbp + 0x2010], r15
je 0x1400efa72
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r14, [rbp + 0x1010]
lea r9, [rbp + 0x10]
cmp byte [0x1402ea810], 0
je 0x1400ef696
mov qword [rsp + 0x28], r15
lea rax, [0x140d814d0]
mov qword [rsp + 0x20], rax
lea r8, str._s._s._zu
jmp 0x1400ef6a2
mov qword [rsp + 0x20], r15
lea r8, str._s._zu
mov edx, 0x1000
mov rcx, r14
call method.__sanitizer.internal_snprintf_char__unsigned_long_long__char_const__..._
mov r11, qword [0x1402ea818]
test r11, r11
je 0x1400efa1d
mov ebx, 1
xor edx, edx
nop word cs:[rax + rax]
mov rsi, rbx
cmp byte [r11 + rdx], 0
lea rdx, [rdx + 1]
lea rbx, [rbx + 1]
jne 0x1400ef6d0
lea r8, [rdx - 1]
xor ecx, ecx
nop dword [rax + rax]
cmp byte [rbp + rcx + 0x1010], 0
je 0x1400ef744
cmp byte [rbp + rcx + 0x1011], 0
je 0x1400ef72e
cmp byte [rbp + rcx + 0x1012], 0
je 0x1400ef740
cmp byte [rbp + rcx + 0x1013], 0
je 0x1400ef8fc
add rcx, 4
cmp rcx, 0x1000
jne 0x1400ef6f0
jmp 0x1400efa1d
add rcx, 1
cmp rcx, 0x1000
jne 0x1400ef751
jmp 0x1400efa1d
add rcx, 2
cmp rcx, 0x1000
je 0x1400efa1d
lea r9, [rcx + rbp]
add r9, 0x1010
mov edi, 0x1000
sub rdi, rcx
cmp r8, rdi
jae 0x1400ef830
cmp r9, r11
jae 0x1400ef912
movabs rbx, 0x7fffffffffffffff
cmp r8, rbx
jae 0x1400efa1d
cmp rdx, 8
jb 0x1400ef7b3
lea rbx, [r11 + rdx]
cmp r9, rbx
jae 0x1400efb7c
lea rbx, [rcx + rbp]
add rbx, rdx
add rbx, 0x1010
cmp r11, rbx
jae 0x1400efb7c
xor ebx, ebx
mov r8, rbx
not r8
add r8, rdx
test dl, 3
je 0x1400ef7e8
lea r9, [rcx + rbp]
add r9, 0x1010
movzx esi, sil
and esi, 3
movzx eax, byte [r11 + rbx]
mov byte [r9 + rbx], al
add rbx, 1
add rsi, 0xffffffffffffffff
jne 0x1400ef7d5
cmp r8, 3
jb 0x1400efa1d
add rcx, rbp
add rcx, 0x1013
movzx eax, byte [r11 + rbx]
mov byte [rcx + rbx - 3], al
movzx eax, byte [r11 + rbx + 1]
mov byte [rcx + rbx - 2], al
movzx eax, byte [r11 + rbx + 2]
mov byte [rcx + rbx - 1], al
movzx eax, byte [r11 + rbx + 3]
mov byte [rcx + rbx], al
add rbx, 4
cmp rdx, rbx
jne 0x1400ef7fc
jmp 0x1400efa1d
mov r10d, 0xfff
sub r10, rcx
cmp r9, r11
jae 0x1400ef9b8
cmp rcx, 0xffe
ja 0x1400efa16
cmp r10, 8
jb 0x1400ef87d
lea r9, [rcx + rbp]
add r9, 0x1010
lea rax, [r11 + r10]
cmp r9, rax
jae 0x1400efb89
lea rax, [rbp + 0x200f]
cmp r11, rax
jae 0x1400efb89
xor edx, edx
mov esi, 3
sub esi, ecx
lea r8, [rcx + rdx]
and rsi, 3
je 0x1400ef8ad
lea rbx, [rcx + rbp]
add rbx, 0x1010
movzx eax, byte [r11 + rdx]
mov byte [rbx + rdx], al
add rdx, 1
add rsi, 0xffffffffffffffff
jne 0x1400ef89b
add r8, 0xfffffffffffff004
cmp r8, 3
jb 0x1400efa16
add rcx, rbp
add rcx, 0x1013
movzx eax, byte [r11 + rdx]
mov byte [rcx + rdx - 3], al
movzx eax, byte [r11 + rdx + 1]
mov byte [rcx + rdx - 2], al
movzx eax, byte [r11 + rdx + 2]
mov byte [rcx + rdx - 1], al
movzx eax, byte [r11 + rdx + 3]
mov byte [rcx + rdx], al
add rdx, 4
cmp r10, rdx
jne 0x1400ef8c8
jmp 0x1400efa16
add rcx, 3
cmp rcx, 0x1000
jne 0x1400ef751
jmp 0x1400efa1d
movabs rax, 0x7fffffffffffffff
cmp r8, rax
jae 0x1400efa1d
cmp r9, r11
jbe 0x1400efa1d
xor r8d, r8d
test rdx, rdx
setne r8b
mov r10, rdx
sub r10, r8
add r10, 1
cmp r10, 4
jb 0x1400ef98e
xor esi, esi
xor eax, eax
test rdx, rdx
sete r9b
setne al
add rax, rcx
add rax, rbp
add rax, 0x100f
lea rdi, [r11 + rdx]
cmp rax, rdi
jae 0x1400efb96
lea rax, [rcx + rbp]
add rax, rdx
add rax, 0x1010
mov sil, r9b
mov rdi, r11
sub rdi, rsi
cmp rdi, rax
jae 0x1400efb96
mov rsi, rdx
add rcx, rbp
add rcx, 0x100f
nop dword [rax + rax]
movzx eax, byte [r11 + rsi - 1]
mov byte [rcx + rsi], al
lea rax, [rsi - 1]
cmp rsi, 1
mov rsi, rax
ja 0x1400ef9a0
jmp 0x1400efa1d
cmp rcx, 0xffe
ja 0x1400efa16
cmp r9, r11
jbe 0x1400efa16
cmp r10, 4
jb 0x1400ef9f3
lea rax, [rcx + rbp]
add rax, 0x1010
lea rdx, [r11 + r10]
cmp rax, rdx
jae 0x1400efba4
lea rax, [rbp + 0x200f]
cmp r11, rax
jae 0x1400efba4
mov rbx, r10
add rcx, rbp
add rcx, 0x100f
movzx eax, byte [r11 + rbx - 1]
mov byte [rcx + rbx], al
lea rax, [rbx - 1]
cmp rbx, 1
mov rbx, rax
ja 0x1400efa00
mov byte [rbp + 0x200f], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov rcx, r14
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400efa86
cmp rsi, 1
je 0x1400f00e3
cmp rsi, 2
je 0x1400f0107
mov qword [rbp + 8], rsi
mov qword [rbp + 0x2010], r15
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rbp + 8], rsi
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x1400efad0
mov qword [rsp + 0x20], 0
lea rdx, str.ERROR:_Cant_open_file:
lea r9, [rsp + 0x50]
mov rcx, rax
mov r8d, 0x18
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400efad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffffff
mov rax, r14
nop dword [rax + rax]
add edi, 1
cmp byte [rax], 0
lea rax, [rax + 1]
jne 0x1400efae0
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x1400efb23
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rcx, rax
mov rdx, r14
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400efb23
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.__reason:__d_
lea rcx, [rsp + 0x50]
mov edx, 0x64
mov r9d, ebx
call method.__sanitizer.internal_snprintf_char__unsigned_long_long__char_const__..._
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [rsp + r8 + 0x51], 0
lea r8, [r8 + 1]
jne 0x1400efb50
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
mov ecx, 2
xor r9d, r9d
call method.__sanitizer.WriteToFile_void__void_const__unsigned_long_long__unsigned_long_long__unsigned_int_
call method.__sanitizer.Die__
cmp rdx, 0x20
jae 0x1400efbb5
xor ebx, ebx
jmp 0x1400efd5c
cmp r10, 0x20
jae 0x1400efbdd
xor edx, edx
jmp 0x1400efe50
cmp r10, 0x10
jae 0x1400efc0b
xor r9d, r9d
jmp 0x1400eff5a
cmp r10, 0x10
jae 0x1400efc3b
xor edx, edx
jmp 0x1400f0061
mov rbx, rdx
and rbx, 0xffffffffffffffe0
lea rdi, [rbx - 0x20]
mov r8, rdi
shr r8, 5
add r8, 1
cmp rdi, 0x60
jae 0x1400efc69
xor r9d, r9d
jmp 0x1400efcf6
mov rdx, r10
and rdx, 0xffffffffffffffe0
lea rsi, [rdx - 0x20]
mov rax, rsi
shr rax, 5
add rax, 1
mov r8d, eax
and r8d, 3
cmp rsi, 0x60
jae 0x1400efd90
xor ebx, ebx
jmp 0x1400efe01
neg r8
mov r9, r10
and r9, 0xfffffffffffffff0
lea rsi, [r9 - 0x10]
mov rax, rsi
shr rax, 4
add rax, 1
cmp rsi, 0x30
mov qword [rsp + 0x40], r8
jae 0x1400efe79
xor r12d, r12d
jmp 0x1400efee9
mov rdx, r10
and rdx, 0xfffffffffffffff0
lea rax, [rdx - 0x10]
mov rsi, rax
shr rsi, 4
add rsi, 1
mov r8d, esi
and r8d, 3
cmp rax, 0x30
jae 0x1400effbe
xor ebx, ebx
jmp 0x1400f0015
lea r10, [rcx + rbp]
add r10, 0x1080
mov rax, rdx
and rax, 0xffffffffffffffe0
add rax, 0xffffffffffffffe0
shr rax, 5
add rax, 1
and rax, 0xfffffffffffffffc
xor r9d, r9d
movups xmm0, xmmword [r11 + r9]
movups xmm1, xmmword [r11 + r9 + 0x10]
movups xmmword [r10 + r9 - 0x70], xmm0
movups xmmword [r10 + r9 - 0x60], xmm1
movups xmm0, xmmword [r11 + r9 + 0x20]
movups xmm1, xmmword [r11 + r9 + 0x30]
movups xmmword [r10 + r9 - 0x50], xmm0
movups xmmword [r10 + r9 - 0x40], xmm1
movups xmm0, xmmword [r11 + r9 + 0x40]
movups xmm1, xmmword [r11 + r9 + 0x50]
movups xmmword [r10 + r9 - 0x30], xmm0
movups xmmword [r10 + r9 - 0x20], xmm1
movups xmm0, xmmword [r11 + r9 + 0x60]
movups xmm1, xmmword [r11 + r9 + 0x70]
movups xmmword [r10 + r9 - 0x10], xmm0
movups xmmword [r10 + r9], xmm1
sub r9, 0xffffffffffffff80
add rax, 0xfffffffffffffffc
jne 0x1400efc8e
test r8b, 3
je 0x1400efd4a
lea rdi, [rcx + r9]
lea r8, [rdi + rbp]
add r8, 0x1020
add r9, r11
add r9, 0x10
mov eax, edx
and al, 0x60
add al, 0xe0
shr al, 5
add al, 1
movzx r10d, al
and r10d, 3
shl r10, 5
xor edi, edi
movups xmm0, xmmword [r9 + rdi - 0x10]
movups xmm1, xmmword [r9 + rdi]
movups xmmword [r8 + rdi - 0x10], xmm0
movups xmmword [r8 + rdi], xmm1
add rdi, 0x20
cmp r10, rdi
jne 0x1400efd2b
cmp rdx, rbx
je 0x1400efa1d
test dl, 0x18
je 0x1400ef7b5
mov rdi, rbx
mov rbx, rdx
and rbx, 0xfffffffffffffff8
lea r8, [rcx + rbp]
add r8, 0x1010
mov rax, qword [r11 + rdi]
mov qword [r8 + rdi], rax
add rdi, 8
cmp rbx, rdi
jne 0x1400efd71
cmp rdx, rbx
je 0x1400efa1d
jmp 0x1400ef7b5
and rax, 0xfffffffffffffffc
lea rsi, [rcx + rbp]
add rsi, 0x1080
xor ebx, ebx
movups xmm0, xmmword [r11 + rbx]
movups xmm1, xmmword [r11 + rbx + 0x10]
movups xmmword [rsi + rbx - 0x70], xmm0
movups xmmword [rsi + rbx - 0x60], xmm1
movups xmm0, xmmword [r11 + rbx + 0x20]
movups xmm1, xmmword [r11 + rbx + 0x30]
movups xmmword [rsi + rbx - 0x50], xmm0
movups xmmword [rsi + rbx - 0x40], xmm1
movups xmm0, xmmword [r11 + rbx + 0x40]
movups xmm1, xmmword [r11 + rbx + 0x50]
movups xmmword [rsi + rbx - 0x30], xmm0
movups xmmword [rsi + rbx - 0x20], xmm1
movups xmm0, xmmword [r11 + rbx + 0x60]
movups xmm1, xmmword [r11 + rbx + 0x70]
movups xmmword [rsi + rbx - 0x10], xmm0
movups xmmword [rsi + rbx], xmm1
sub rbx, 0xffffffffffffff80
add rax, 0xfffffffffffffffc
jne 0x1400efda1
test r8, r8
je 0x1400efe3d
lea rax, [rcx + rbx]
lea rsi, [rax + rbp]
add rsi, 0x1020
add rbx, r11
add rbx, 0x10
shl r8, 5
xor edi, edi
movups xmm0, xmmword [rbx + rdi - 0x10]
movups xmm1, xmmword [rbx + rdi]
movups xmmword [rsi + rdi - 0x10], xmm0
movups xmmword [rsi + rdi], xmm1
add rdi, 0x20
cmp r8, rdi
jne 0x1400efe22
cmp r10, rdx
je 0x1400efa16
test r10b, 0x18
je 0x1400ef87f
mov rbx, rdx
mov rdx, r10
and rdx, 0xfffffffffffffff8
mov rax, qword [r11 + rbx]
mov qword [r9 + rbx], rax
add rbx, 8
cmp rdx, rbx
jne 0x1400efe5a
cmp r10, rdx
je 0x1400efa16
jmp 0x1400ef87f
mov qword [rsp + 0x48], rax
lea rsi, [r8 + rdx]
add rsi, 1
and rsi, 0xfffffffffffffff0
add rsi, 0xfffffffffffffff0
shr rsi, 4
add rsi, 1
and rsi, 0xfffffffffffffffc
lea r13, [rcx + rbp]
add r13, 0x1000
xor r12d, r12d
lea rdi, [r11 + r12]
movups xmm0, xmmword [rdx + rdi - 0x10]
lea rax, [r12 + r13]
movups xmmword [rdx + rax], xmm0
movups xmm0, xmmword [rdx + rdi - 0x20]
movups xmmword [rdx + rax - 0x10], xmm0
movups xmm0, xmmword [rdx + rdi - 0x30]
movups xmmword [rdx + rax - 0x20], xmm0
movups xmm0, xmmword [rdx + rdi - 0x40]
movups xmmword [rdx + rax - 0x30], xmm0
add r12, 0xffffffffffffffc0
add rsi, 0xfffffffffffffffc
jne 0x1400efea8
neg r12
mov rax, qword [rsp + 0x48]
test al, 3
je 0x1400eff47
mov r8, rcx
sub r8, r12
mov rax, qword [rsp + 0x40]
lea esi, [rax + rdx]
add sil, 1
and sil, 0x30
add sil, 0xf0
shr sil, 4
add sil, 1
movzx r13d, sil
and r13d, 3
shl r13, 4
mov rsi, r11
sub rsi, r12
add r8, rbp
xor edi, edi
lea rax, [rsi + rdi]
movups xmm0, xmmword [rdx + rax - 0x10]
lea rax, [r8 + rdi]
movups xmmword [rdx + rax + 0x1000], xmm0
add rdi, 0xfffffffffffffff0
mov rax, r13
add rax, rdi
jne 0x1400eff26
cmp r10, r9
je 0x1400efa1d
test r10b, 0xc
je 0x1400f00c6
xor eax, eax
test rdx, rdx
setne al
mov r8, rdx
sub r8, rax
add r8, 1
mov r10, r8
and r10, 0xfffffffffffffffc
sub rbx, rax
and rbx, 0xfffffffffffffffc
mov rsi, rdx
sub rsi, rbx
mov r13, rcx
sub r13, r9
mov r12, r11
sub r12, r9
sub r9, r10
add r13, rbp
xor edi, edi
lea rax, [r12 + rdi]
mov eax, dword [rdx + rax - 4]
lea rbx, [rdi + r13]
mov dword [rdx + rbx + 0x100c], eax
add rdi, 0xfffffffffffffffc
cmp r9, rdi
jne 0x1400eff94
cmp r8, r10
jne 0x1400ef991
jmp 0x1400efa1d
and rsi, 0xfffffffffffffffc
mov r9, r11
sub r9, rcx
add r9, 0xfef
xor ebx, ebx
movups xmm0, xmmword [r9 + rbx]
movups xmmword [rbp + rbx + 0x1fff], xmm0
movups xmm0, xmmword [r9 + rbx - 0x10]
movups xmmword [rbp + rbx + 0x1fef], xmm0
movups xmm0, xmmword [r9 + rbx - 0x20]
movups xmmword [rbp + rbx + 0x1fdf], xmm0
movups xmm0, xmmword [r9 + rbx - 0x30]
movups xmmword [rbp + rbx + 0x1fcf], xmm0
add rbx, 0xffffffffffffffc0
add rsi, 0xfffffffffffffffc
jne 0x1400effd1
neg rbx
test r8, r8
je 0x1400f0052
mov r9, rbp
sub r9, rbx
add r9, 0x1fff
add rbx, rcx
mov rsi, r11
sub rsi, rbx
add rsi, 0xfef
shl r8, 4
xor ebx, ebx
movups xmm0, xmmword [rsi + rbx]
movups xmmword [r9 + rbx], xmm0
add rbx, 0xfffffffffffffff0
mov rax, r8
add rax, rbx
jne 0x1400f003d
cmp r10, rdx
je 0x1400efa16
test r10b, 0xc
je 0x1400f00da
mov r8, r10
and r8, 0xfffffffffffffffc
mov ebx, r10d
and ebx, 3
neg rdx
mov rsi, r11
sub rsi, rcx
add rsi, 0xffb
mov rdi, r8
neg rdi
mov eax, dword [rsi + rdx]
mov dword [rbp + rdx + 0x200b], eax
add rdx, 0xfffffffffffffffc
cmp rdi, rdx
jne 0x1400f0084
cmp r10, r8
jne 0x1400ef9f6
jmp 0x1400efa16
mov qword [rsp + 0x20], 1
lea rcx, str....._sanitizer_common_sanitizer_mutex.h
lea r8, str.__atomic_load_state___memory_order_relaxed_______1__
mov edx, 0x2c
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov rax, qword [rsp + 0x40]
add rax, rbx
and rax, 0xfffffffffffffff0
sub rdx, rax
jmp 0x1400ef98e
and r10d, 0xf
jmp 0x1400ef9f3
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__res_____fd_t_1_____fd_t_1_____fd_t__1_______0_
mov edx, 0x2485
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__res_____fd_t_2_____fd_t_2_____fd_t__1_______0_
mov edx, 0x2486
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
int3