Function at 0x140001000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x47], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
mov edx, 0x400
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140001058
lea eax, [rdi + 1]
jmp 0x14000135d
mov qword [rsp + 0xb0], rbx
xorps xmm0, xmm0
mov qword [rsp + 0xb8], rsi
mov ecx, 8
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmmword [rax - 0x10], xmm0
sub rcx, 1
jne 0x140001070
mov ecx, 0xfffffff6
mov qword [rsp + 0xc0], r14
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor esi, esi
lea rdx, [rbp + 0xb]
mov rcx, rax
mov dword [rbp + 0xb], esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rbp + 0xb]
mov rcx, rbx
and edx, 0xfffffff9
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea r9, [rbp + 0xf]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 1]
mov rcx, rbx
lea rdx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov edx, dword [rbp + 0xb]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
movzx ebx, byte [rbp + 7]
xor bl, 0x7b
cmp byte [rbp + 7], 0x1b
je 0x140001332
lea r14, [0x1400032bc]
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [rbp + 0x1b]
mov eax, 0xa57eb503
xor ecx, dword [rbp + 0x17]
mul ecx
movzx r9d, bl
shr edx, 6
imul eax, edx, 0x63
sub ecx, eax
inc ecx
add r9d, ecx
mov rcx, rsi
jne 0x140001150
mov al, 0x30
mov word [rbp + 0x27], 0x30
jmp 0x1400011bd
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [rbp + rcx - 9], r9b
inc rcx
mov r9d, edx
test edx, edx
jne 0x140001150
cmp rcx, 0xc
jae 0x14000137a
mov byte [rbp + rcx - 9], sil
mov rdx, rsi
test rcx, rcx
je 0x1400011b4
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0xa]
dec rcx
mov byte [rbp + rdx + 0x27], al
inc rdx
test rcx, rcx
jne 0x1400011a0
mov byte [rbp + rdx + 0x27], sil
movzx eax, byte [rbp + 0x27]
lea rcx, [rbp + 0x27]
mov rdx, r14
test al, al
je 0x1400011d0
inc rcx
cmp byte [rcx], sil
jne 0x1400011c8
sub rcx, r14
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400011e0
lea rdx, [rbp + 0x27]
mov rcx, rdi
cmp byte [rdi], sil
je 0x140001208
nop word [rax + rax]
inc rcx
cmp byte [rcx], sil
jne 0x140001200
lea rax, [rbp + 0x27]
sub rcx, rax
nop
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001210
mov ecx, 0x3a98
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], rsi
lea rcx, str.output.txt
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001289
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rbp + 0x1f]
mov qword [rsp + 0x20], rsi
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
xorps xmm0, xmm0
mov ecx, 8
nop dword [rax]
nop dword [rax + rax]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmmword [rax - 0x10], xmm0
sub rcx, 1
jne 0x1400012a0
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rbp + 0xb]
mov dword [rbp + 0xb], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rbp + 0xb]
mov rcx, rbx
and edx, 0xfffffff9
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea r9, [rbp + 0xf]
mov qword [rsp + 0x20], rsi
mov r8d, 1
lea rdx, [rbp + 7]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov edx, dword [rbp + 0xb]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
movzx ebx, byte [rbp + 7]
xor bl, 0x7b
cmp byte [rbp + 7], 0x1b
jne 0x140001111
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14, qword [rsp + 0xc0]
xor eax, eax
mov rbx, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001390
mov rdi, qword [rsp + 0xc8]
add rsp, 0xa0
pop rbp
ret
call fcn.1400014b8
int3