Function at 0x140083f10
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [0x1400cfe30]
xor ebx, ebx
test rcx, rcx
je 0x140083f4c
cmp byte [0x1400cfe28], bl
je 0x140083f3f
lea rcx, [0x1400cfe20]
call fcn.140084b90
mov rcx, qword [0x1400cfe30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400cfe30], rbx
cmp byte [0x1400c79b5], bl
je 0x140084172
cmp dword [0x1400cfce0], ebx
jne 0x140084108
movdqa xmm0, xmmword [0x1400ba100]
mov ecx, 0xfffffff6
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x3d], bx
mov byte [rsp + 0x3f], bl
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x3c], bl
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x140084002
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x140083ff9
mov edx, dword [rsp + 0x38]
and edx, 0xffffffe0
cmp edx, dword [rsp + 0x38]
je 0x140083fef
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x140083fea
mov ecx, 0x110
call fcn.14000e3d0
test al, al
je 0x1400840fc
lea rdx, str.Error:_win32_signal_open:_SetConsoleMode_failed
jmp 0x1400840f2
mov byte [rsp + 0x3c], 1
mov dword [rsp + 0x20], 2
jmp 0x140084002
mov qword [rsp + 0x28], 0xffffffffffffffff
mov edx, 1
lea rcx, [0x140084600]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x140084037
mov ecx, 0x140
call fcn.14000e3d0
test al, al
je 0x140084037
lea rdx, str.WARN:_SetConsoleCtrlHandler_failed
mov ecx, 0x140
call fcn.14000e000
mov eax, dword [rsp + 0x20]
cmp eax, 2
jne 0x1400840a2
mov rax, qword [rsp + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400840bc
cmp dword [0x1400cfe94], 1
jb 0x140084080
mov ecx, 0x1001
call fcn.14000e3d0
test al, al
je 0x140084080
lea rdx, str.Press_any_key_to_continue...
mov ecx, 0x1001
call fcn.14000e000
nop word [rax + rax]
mov rcx, qword [rsp + 0x28]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rsp + 0x20]
call fcn.1400849a0
test eax, eax
je 0x140084080
mov eax, dword [rsp + 0x20]
cmp eax, 1
jne 0x1400840bc
mov rcx, qword [rsp + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400840bc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x3c], bl
je 0x140084172
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x140084172
mov ecx, 0x110
call fcn.14000e3d0
test al, al
je 0x1400840fc
lea rdx, str.Error:_win32_signal_close:_SetConsoleMode_failed
mov ecx, 0x110
call fcn.14000e000
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
cmp dword [0x1400cfce0], 2
jne 0x140084172
mov rax, qword [0x1400cfce8]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140084172
cmp dword [0x1400cfe94], 1
jb 0x140084150
mov ecx, 0x1001
call fcn.14000e3d0
test al, al
je 0x140084150
lea rdx, str.Press_any_key_to_continue...
mov ecx, 0x1001
call fcn.14000e000
nop dword [rax]
mov rcx, qword [0x1400cfce8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x1400cfce0]
call fcn.1400849a0
test eax, eax
je 0x140084150
cmp byte [0x1400cfd00], bl
je 0x140084187
lea rcx, [0x1400cfd01]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1400cfce0], 1
jne 0x1400841a7
mov rcx, qword [0x1400cfce8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400841a7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400cfcfc], bl
je 0x1400841f1
mov edx, dword [0x1400cfcf8]
mov rcx, qword [0x1400cfce8]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x1400841f1
mov ecx, 0x110
call fcn.14000e3d0
test al, al
je 0x1400841e5
lea rdx, str.Error:_win32_signal_close:_SetConsoleMode_failed
mov ecx, 0x110
call fcn.14000e000
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
xorps xmm0, xmm0
movups xmmword [0x1400cfce0], xmm0
movups xmmword [0x1400cfcf0], xmm0
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [0x1400cb9e8]
add rsp, 0x40
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jns 0x1401504f8
and dh, byte [rdx - 0x15db05d4]
shr dword [rdx - 0x1ebb94], cl
or eax, 0xe47f5938
jmp [rdx - 0x541a0d94]
xor byte [rax + 0x4d08205c], dl
jo 0x140150574
or al, dl
adc eax, 0x5037ff02
invalid
push rax
rcl byte [0x1904d042c]
invalid
mov edx, 0xf14ea319
lahf
loopne 0x140150561
sub eax, 0x402d3c29
and al, 0xaa
stosb byte [rdi], al
stc
xlatb
cmc
xor al, 0
jp 0x140150524
xchg byte [rcx + rbp*8 - 0x3cc5b9c8], bh
or al, byte [rcx + 0x7e5add1a]
fstp qword [rdx + 0x7e]
mov dl, bl
adc al, byte [rcx]
add byte [rbx - 0x2772cd63], bl
outsd dx, dword [rsi]
not byte [rcx + 0xb6b798]
rcr dword [rcx + rbx*4], 0x15
neg ebx
push rsi
shl byte [rsi], 0xb
je 0x1401504f6
sbb al, 0x99
adc eax, 0xc056dbf7
or esi, dword es:[rdx + rcx*4 - 0xc]
sbb dl, byte [rcx]
hlt
adc al, 0x3b
jl 0x140150591
loope 0x14015051b
ror dword [rsp + rbx*8], cl
add byte [rdi + rbx - 0xa], al
mov ebx, edi
add byte [rbp - 0x47], dl
xlatb
invalid
jl 0x140150602
or bl, ch
mov dword [rcx + riz*4], eax
push rsi
out 1, al
invalid
in al, dx
push 0xef38d6
enter 0x1a7e, 0x1f
adc dword [rdi], ebx
fsubp st(6)
test al, 0xfe
invalid