Function at 0x140001000
Capabilities:
Check for debugger via api
Hide thread from debugger
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
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]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1400013ce
xor esi, esi
mov dword [rbp + 0xb], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0xb]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rbp + 0xb], esi
jne 0x1400013ce
mov qword [rsp + 0xb8], rdi
lea rcx, str.ntdll.dll
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400010ae
lea rdx, str.NtSetInformationThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400010ae
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r9d, r9d
lea edx, [rsi + 0x11]
mov rcx, rax
xor r8d, r8d
call rbx
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 0x1400010d5
lea eax, [rdi + 1]
jmp 0x1400013a1
xorps xmm0, xmm0
mov ecx, 8
nop dword [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 0x1400010e0
mov qword [rsp + 0xc0], r14
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14000137a
lea r14, [0x140003314]
nop dword [rax]
mov dword [rbp + 0xf], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rbp + 0xf], esi
jne 0x14000137a
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 + 0x1f]
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]
cmp bl, 0x1b
je 0x140001386
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [rbp + 0x1b]
mov eax, 0xa57eb503
xor ecx, dword [rbp + 0x17]
mov r9d, ebx
mul ecx
xor r9d, 0x7b
shr edx, 6
inc r9d
imul eax, edx, 0x63
sub ecx, eax
add r9d, ecx
mov rcx, rsi
jne 0x1400011f0
mov al, 0x30
mov word [rbp + 0x27], 0x30
jmp 0x14000125d
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 0x1400011f0
cmp rcx, 0xc
jae 0x1400013da
mov byte [rbp + rcx - 9], sil
mov rdx, rsi
test rcx, rcx
je 0x140001254
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0xa]
dec rcx
mov byte [rbp + rdx + 0x27], al
inc rdx
test rcx, rcx
jne 0x140001240
mov byte [rbp + rdx + 0x27], sil
movzx eax, byte [rbp + 0x27]
lea rcx, [rbp + 0x27]
mov rdx, r14
test al, al
je 0x140001270
inc rcx
cmp byte [rcx], sil
jne 0x140001268
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 0x140001280
lea rdx, [rbp + 0x27]
mov rcx, rdi
cmp byte [rdi], sil
je 0x1400012a8
nop word [rax + rax]
inc rcx
cmp byte [rcx], sil
jne 0x1400012a0
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 0x1400012b0
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 0x140001329
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rbp + 0x23]
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 0x140001340
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140001130
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
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 rdi, qword [rsp + 0xb8]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400013f0
mov rsi, qword [rsp + 0xc8]
add rsp, 0xa0
pop rbp
ret
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.140001518
int3