Function at 0x1400ce840
Capabilities:
Get system information on windows
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
test rdx, rdx
je 0x1400cea9f
mov rbx, rdx
mov r14, rcx
mov r9, qword [rcx + 0x10]
cmp r9, rdx
ja 0x1400ceac3
mov r15, qword [0x140cb88e8]
test r15, r15
jne 0x1400ce88c
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15d, dword [rsp + 0x2c]
mov qword [0x140cb88e8], r15
lea rax, [r15 - 1]
test r15, rax
jne 0x1400ceae0
lea rax, [rbx + r15]
add rax, 0xffffffffffffffff
neg r15
and r15, rax
xor ecx, ecx
mov rdx, r15
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400ceb76
mov r12, rax
mov rcx, qword [r14]
mov r9, qword [r14 + 0x10]
test r9, r9
je 0x1400ce962
cmp r9, 8
jb 0x1400ce8fa
lea rax, [rcx + r9]
cmp r12, rax
jae 0x1400ce980
lea rax, [r12 + r9]
cmp rcx, rax
jae 0x1400ce980
xor edx, edx
mov rdi, rdx
not rdi
add rdi, r9
mov rax, r9
and rax, 3
je 0x1400ce922
nop
movzx ebx, byte [rcx + rdx]
mov byte [r12 + rdx], bl
add rdx, 1
add rax, 0xffffffffffffffff
jne 0x1400ce910
cmp rdi, 3
jb 0x1400ce95f
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [r12 + rdx], al
movzx eax, byte [rcx + rdx + 1]
mov byte [r12 + rdx + 1], al
movzx eax, byte [rcx + rdx + 2]
mov byte [r12 + rdx + 2], al
movzx eax, byte [rcx + rdx + 3]
mov byte [r12 + rdx + 3], al
add rdx, 4
cmp r9, rdx
jne 0x1400ce930
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
call method.__sanitizer.UnmapOrDie_void__unsigned_long_long_
mov qword [r14], r12
mov qword [r14 + 8], r15
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp r9, 0x20
jae 0x1400ce98d
xor edx, edx
jmp 0x1400cea6e
mov rdx, r9
and rdx, 0xffffffffffffffe0
lea rax, [rdx - 0x20]
mov rsi, rax
shr rsi, 5
add rsi, 1
mov r8d, esi
and r8d, 3
cmp rax, 0x60
jae 0x1400ce9b4
xor edi, edi
jmp 0x1400cea20
and rsi, 0xfffffffffffffffc
xor edi, edi
nop word [rax + rax]
movups xmm0, xmmword [rcx + rdi]
movups xmm1, xmmword [rcx + rdi + 0x10]
movups xmmword [r12 + rdi], xmm0
movups xmmword [r12 + rdi + 0x10], xmm1
movups xmm0, xmmword [rcx + rdi + 0x20]
movups xmm1, xmmword [rcx + rdi + 0x30]
movups xmmword [r12 + rdi + 0x20], xmm0
movups xmmword [r12 + rdi + 0x30], xmm1
movups xmm0, xmmword [rcx + rdi + 0x40]
movups xmm1, xmmword [rcx + rdi + 0x50]
movups xmmword [r12 + rdi + 0x40], xmm0
movups xmmword [r12 + rdi + 0x50], xmm1
movups xmm0, xmmword [rcx + rdi + 0x60]
movups xmm1, xmmword [rcx + rdi + 0x70]
movups xmmword [r12 + rdi + 0x60], xmm0
movups xmmword [r12 + rdi + 0x70], xmm1
sub rdi, 0xffffffffffffff80
add rsi, 0xfffffffffffffffc
jne 0x1400ce9c0
test r8, r8
je 0x1400cea5b
lea rax, [r12 + rdi]
add rax, 0x10
add rdi, rcx
add rdi, 0x10
shl r8, 5
xor esi, esi
nop word [rax + rax]
movups xmm0, xmmword [rdi + rsi - 0x10]
movups xmm1, xmmword [rdi + rsi]
movups xmmword [rax + rsi - 0x10], xmm0
movups xmmword [rax + rsi], xmm1
add rsi, 0x20
cmp r8, rsi
jne 0x1400cea40
cmp r9, rdx
je 0x1400ce95f
test r9b, 0x18
je 0x1400ce8fc
mov rax, rdx
mov rdx, r9
and rdx, 0xfffffffffffffff8
nop dword [rax + rax]
mov rdi, qword [rcx + rax]
mov qword [r12 + rax], rdi
add rax, 8
cmp rdx, rax
jne 0x1400cea80
cmp r9, rdx
je 0x1400ce95f
jmp 0x1400ce8fc
mov qword [rsp + 0x20], 0
lea rcx, str....._sanitizer_common_sanitizer_common.h
lea r8, str.__new_capacity_______0__
mov edx, 0x250
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov qword [rsp + 0x20], rbx
lea rcx, str....._sanitizer_common_sanitizer_common.h
lea r8, str.__size________new_capacity__
mov edx, 0x251
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov rsi, qword [0x140125c00]
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400ceb9a
lea rcx, [0x140125c00]
call method.__sanitizer::ReportFile.ReopenIfNecessary__
mov rcx, qword [0x140125c08]
cmp rcx, 0xffffffffffffffff
je 0x1400cebdb
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400ceb36
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x1400ceb61
mov qword [rsp + 0x20], 0
lea rdx, str.IsPowerOfTwo_boundary__n
lea r9, [rsp + 0x28]
mov r8d, 0x17
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400ceb6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.IsPowerOfTwo_boundary__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rsi], 0
call method.__sanitizer.Die__
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsp + 0x20], 0
lea rdx, str.InternalMmapVector
lea r8, str.allocate
mov rcx, r15
mov r9d, eax
call method.__sanitizer.ReportMmapFailureAndDie_unsigned_long_long__char_const__char_const__unsigned_int__bool_
xor edi, edi
mov rbx, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400cebbf
mov al, 1
xchg byte [rsi], al
test al, al
je 0x1400ceaf3
add edi, 1
cmp edi, 0x63
ja 0x1400cebd0
pause
cmp byte [rsi], 0
jne 0x1400cebbc
jmp 0x1400cebb0
xor ecx, ecx
call rbx
cmp byte [rsi], 0
jne 0x1400cebbc
jmp 0x1400cebb0
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x250a
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
int3